Posts by Marco Aurélio Soares de Souza • 125 points
8 posts
-
0
votes1
answer331
viewsQ: How to print a specific JSON value in PHP
I have the following JSON file and would like to print only the value of the 'name' field, which is within 'contact'. I am using PHP language. C:\wamp64\www\macmind\client-search.php:31: array…
-
2
votes1
answer327
viewsQ: Set which Jframes will focus?
I need to leave a JFrame in focus and not allow use of others, until I close this. Every time you open a new frame the others below it should be dead. How can I do that?…
-
1
votes0
answers152
viewsQ: What to do when a <p:dialog> closes in less than a second?
I’m creating one to edit a client’s database. It loads the data with the values of the attribute of the object passed, but in less than a second it closes again. What to do? XHTML code (client…
-
1
votes2
answers722
viewsQ: How to edit a database value using JSF?
I’m trying to edit a database record using JSF. The logic is simple, there is a client list, and when you press the edit button in front of each client in the list, a form is opened, with inputTexts…
-
4
votes1
answer1474
viewsQ: How to persist a record in the database through Java restful webservice?
I already have a method that takes a json and persists in the Mysql database. I can test it by the interface created by Netbeans, which has a field for inserting a json, but how do I make an http…
-
1
votes1
answer181
viewsQ: How do I popular an arraylist<Type> with a result brought from the mysql database, using Hibernate?
On many topics I see an excerpt of code that I can’t reproduce: Query query = session.createQuery() I cannot create this Session object using the createQuery() method. Can someone show me an example…
-
1
votes1
answer268
viewsQ: commandbutton executes method, but being null values. Why are inputstexts values not being assigned to class attributes?
In all the examples I saw of the code below, the normal one was to start the xhtml page to create a new client-like object. Through the values entered in the inputs set the attributes of this object…
-
1
votes1
answer654
viewsQ: Commandbutton Primefaces does not call the method
Man commandbutton does not show error when clicked, but also does not execute the method. Commandbutton code: p:commandButton action="#{clienteMB.cliente.Salvar}" value="Incluir"/ Method code:…