Posts by Nadinael Silva Teixeira • 46 points
8 posts
-
0
votes1
answer41
viewsA: Help with Broken pipe
I had a similar problem when I went to test my TC, the solution I found was to apply the following attributes in Persistence.xml. If you haven’t solved it yet, try these parameters in the xml of…
-
0
votes1
answer263
viewsA: Swap button after JSF click
If I understand correctly, you want when the user clicks on a button it disappears and the other one is in place. You can use the 'rendered JSF attribute joined with a boolean expression or variable…
-
0
votes1
answer66
viewsA: How to disable a button during ajax request with primefaces?
Look, I do something similar in my TC, it’s different, but the intention is the same, During an ajax status, I call a Dialog, with a Modal and besides, I set in the CSS class a High Z-Index. It’s…
-
0
votes3
answers143
viewsA: How to enter records when starting the JSF+JPA system?
Daniel, complementing what Paulo Cardoso said, you can use @Postconstruct on a particular Managed Bean and apply @Applicationscoped, so it will run only once when you access the application.…
-
0
votes3
answers355
viewsA: Primefaces Datatable Edit does not send updated value for editing
I never edited this way, but I noticed q in your codes your update is only updating the message. It might be that. try like this: <p:ajax event="rowEditCancel" listener="#{pBean.onRowCancel}"…
-
0
votes1
answer54
viewsA: error file facesProduces
just read a little its error log to see the problem: "Ambiguous dependencies for type Httpservletrequest with Qualifiers". No jsf expert, but I know this error occurs when you’re injecting…
-
0
votes2
answers130
viewsA: Jformattedtextfield is accepting no characters
You can add a keytyped event. private void campoSomenteNumero(java.awt.event.KeyEvent evt) { String num = "0123456789"; if (!num.contains(evt.getKeyChar() + "") { evt.consume(); } } Something like…
-
0
votes1
answer929
viewsA: Use external css file in JSF
I’m using a CSS with the same name as yours, to make it work, I declared it as follows: <h:outputStylesheet name="estilo.css" library="css" /> Take a look at the folder structure I used in the…