Posts by Rodrigo • 234 points
8 posts
-
1
votes2
answers578
viewsA: How do I block access to an application from the user’s IP?
You can take the user’s IP like this: HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); String ipAddress =…
-
0
votes1
answer672
viewsA: Update does not work when trying to update a <p:panelGrid>
The problem is that you are trying to update a component - using the update - that is not yet rendered. Even if in the current action it changes the condition of the rendered for real. To solve…
-
0
votes1
answer438
viewsA: Return value processed in Javascript to the Managed bean
It is possible, indirectly, using the p:remoteCommand. Where a Javascript call can run methods on Bean. See an example in: remoteCommand Primefaces.…
-
1
votes1
answer1973
viewsA: Speaker gap in panelGrid
Use the columnClasses attribute to reference your css classes. <h:panelGrid columns="4" columnClasses="col1, col2, col3, col4"> <p:outputLabel value="Pokémon" for="pokemon" />…
-
0
votes2
answers294
viewsA: Error in update selectOneRadio
If a component is not rendered on the page, no matter how much its attribute rendered change the value to true, you won’t be able to draw it just by doing the update using your ID. You must update…
-
0
votes2
answers1460
viewsA: Message from "required" Primefaces
In this case, I would put the growl as globalOnly="true" and add messages directly from Bean: FacesContext context = FacesContext.getCurrentInstance(); context.addMessage(null, new FacesMessage(…
-
0
votes1
answer1333
viewsA: Change validation behavior in Primefaces components
From what I understand, you need to run the validation only when you click on Salvar, and not when Pesquisar. If this is really it, add the immediate="true" in his commandButton research.…
-
3
votes1
answer341
viewsA: How to add data to a list whenever a <p:hotkey> is used?
You must inform the form which data will be synchronized Interface > Bean That’s what the attribute is for process where you inform the ID of the components that will be "synchronized". For more…