Posts by Welson Teles • 54 points
6 posts
-
0
votes1
answer447
viewsA: How to create 2 instances of the same component on the same page?
I discovered the problem, in the component app-procura-conta has a Bootstrap modal that needs ID to work properly, and I hadn’t bothered to change that ID, and when I used the component 2 times on…
-
0
votes1
answer447
viewsQ: How to create 2 instances of the same component on the same page?
I’m having problems with the components in Angular, I have a component that emits an event when selecting a particular item, and I need to use it twice on the same page, but the second component…
-
0
votes0
answers21
viewsQ: How do you take the value of a static attribute inside a method when you have a variable with the same name in that method?
When it is a non-static attribute you can use the this.nomeAtributo. Example: public class NomeDaClasse { private String atributo; public void (String atributo) { fazerAlgo(this.atributo);…
-
0
votes1
answer298
viewsQ: How does it work to put dynamic content by making an Android app natively?
Guys, I’m seeing a little bit of mobile development (Android), and I saw that the design is done using XML, and from what I saw, it seems to have no loop tag, to repeat similar structures, and…
-
1
votes2
answers790
viewsA: Null return for List<String> method
I think you have to "tipar" the return of createQuery. I think something like that: TypedQuery<String> query = em.createQuery("select * from escritorio where id="+id, String.class); Must be…
-
2
votes2
answers319
viewsA: Error: Exception in thread "main" java.lang.Nullpointerexception at pub.Pub.main(Pub.java:18)
You have to create a Band object first, before assigning values to it. m.banda = new Banda();