Posts by Daniel Azevedo • 85 points
13 posts
-
0
votes2
answers856
viewsA: How to use p:fileDownload to download a specific file
I resolved it this way My method getFile public StreamedContent getFile() throws FileNotFoundException { try{ InputStream stream = new FileInputStream("C:/Uploads/Monografia/" +…
-
0
votes0
answers63
viewsQ: p:selectOneMenu does not correctly filter the dataList
I have a column with the filter p:selectOneMenu . I use it to filter a column that has lines that can have one or several attributes. Then I use the Primefaces component p:dataList to show this…
-
0
votes2
answers856
viewsQ: How to use p:fileDownload to download a specific file
I have a datatable and I want to implement a download button to download the pdf file from that specific line. I already managed to implement p:fileUpload and now I want to download this uploaded…
-
0
votes1
answer112
viewsQ: Selectevent autocomplete returns null object
I’m using the autocomplete and when I enter a field, it alone fills two other fields with the method handleSelect(SelectEvent event). But these two objects of these fields are getting null when…
-
0
votes2
answers248
viewsA: Datatable column row with more than one attribute
The doubt was silly, but I’ll leave here what solved my problem that can help other people. I used Datalist and solved my problem <p:dataList value="#{monografia.listaLinhaPesquisas}"…
-
2
votes2
answers248
viewsQ: Datatable column row with more than one attribute
I have a Datatable with several columns. One of them is a column that should display more than one attribute in each row of that column, as it is part of a Manytomany relationship. This column will…
-
0
votes0
answers227
viewsQ: Filter Datatable Primefaces does not work with p:selectCheckboxnu
Talk to me, people! I’m using the filter itself datatable of primefaces but it’s not working when I use it to filter the p:selectCheckboxMenu.When I select one of the options it doesn’t find…
-
0
votes2
answers7879
viewsA: Select Join with JPQL
My login method looked like this and solved my problem //Método login usando JPQL public Usuario login(Long matricula, String senha) { try { Usuario usuario = (Usuario) manager .createQuery( "SELECT…
-
1
votes1
answer148
viewsQ: Selectonemenu (Primefaces) field not saved in the seat
I’ve come to ask for your help again because I need to finish my CBT. I have a dialog which has several fields, one of them is a <p:selectOneMenu>. When I fill in all fields and go save, all…
-
2
votes2
answers7879
viewsQ: Select Join with JPQL
Talk guys! I’m busting my chops here on my TCC and I need your help. I know the trouble I’m in must be very silly, but I don’t have much knowledge. I searched everywhere, JPQL documentation and…
-
0
votes1
answer190
viewsQ: Show in Autocomplete the attribute of a specific user
I’m trying to make an autocomplete to show only the names of registered teachers. I believe the problem is in the search for the attribute, since to get the attribute I have to do the following way:…
-
0
votes1
answer339
viewsA: Show data in a Datatable + JSF + Primefaces + CDI + Managedbean
I managed to solve my problem. I’m sorry that I’m not aware of this stupid beginner’s question that the problem was pretty simple to solve, but you’d already killed yourself looking for it and you…
-
3
votes1
answer339
viewsQ: Show data in a Datatable + JSF + Primefaces + CDI + Managedbean
Talk to me, people! I’m having a problem to popular a Datatable, I’m using Jsf, CDI. I believe that the name of teacher is coming normal because he is an object and the pupil is a List, But I don’t…