Posts by Phelipe Galiotti • 111 points
7 posts
-
0
votes1
answer55
viewsA: uploadFile primefaces
It worked for me, doing it this way, see if it solves your problem. ServletContext context = (ServletContext) aFacesContext.getExternalContext().getContext(); String realPath =…
-
0
votes2
answers260
viewsA: Delete file (photo) from folder when performing update
You need the file path before anything else a look at the code below that will be clear to you String fileName = "C:\images\olamundo.jpg"; removerArquivo(fileName); public void removeArquivo (String…
javaanswered Phelipe Galiotti 111 -
1
votes2
answers542
viewsA: How to update a line(Row) in datatable? (Primefaces)
Staff I managed to solve the problem! It had no way, it was necessary to use the library of omnifaces (link for anyone who wants to see more http://showcase.omnifaces.org/utils/Ajax). Rather with…
-
3
votes2
answers1250
viewsA: JSF - Bar loading while executing a Java method
In addition to what Washington commented, you can opt tbm for the "p:blockUI" component. It will lock your screen and display something of your preference as a gif loading for example. See an…
-
1
votes2
answers4580
viewsA: Primefaces JSF - <p:commandButton that serves the update and oncomplete
Looking at your code I saw that the 'oncomplete' this right, it will perform this function of the primefaces to show your dialog. As for Update it works when you need to update something inside your…
-
1
votes2
answers542
viewsQ: How to update a line(Row) in datatable? (Primefaces)
Hey, guys? Please, can some Javelin ninja help me with this case? I have a datatable and need to know how to update a single Row after an event, such as a click on a commandButton. I studied a…
-
2
votes1
answer3999
viewsA: Calling xhtml page by commandButton
There are some navigation modes such as dynamic, static and redirected. for statistical navigation see a simple example: <p:commandButton value="Sobre" action="sobre" /> remembering that for…