Posts by Mario Hayasaki Júnior • 96 points
10 posts
-
0
votes1
answer331
viewsA: JSF Open Image (Defaultstreamedcontent) on another screen
Return a Streamedcontent with the following attributes. InputStream itStream = new ByteArrayInputStream(arrayDeBytes); StreamedContent file = new DefaultStreamedContent(itStream, extensaoDoArquivo,…
-
0
votes1
answer494
viewsA: Problem implementing JSF Converter with p:selectOneMenu
In itemValue leave only itemValue="#{tipoEvolucao}" No need to send the ID, it is already referenced in the convert.
-
1
votes1
answer298
viewsA: Clear form after registration (Javaserver Faces)
In your Bean implement the Postconstruct that is called when starting your page. @PostConstruct public void init(){ limparRegistro(); }
-
2
votes1
answer419
viewsA: Problems with p:selectManyCheckbox using Enum
Your widget items need to be a List The recommended is you make a List In your bean would stay public List<SelectItem> getUrgencias(){ List<SelectItem> listUrgencias = new…
-
0
votes1
answer45
viewsA: method picking wrong value
Try creating the 'prepDownloadAditivoNovo' method by passing the id through it, without using f:attribute, Ex: '#{fileUploadBean.prepDownloadAditivoNovo(con.id)}' and you take the id in the done…
-
0
votes1
answer78
viewsA: cellEditor of the first faces giving error
Differentiates Facet from input and output. Ex: <f:facet name="output"> <h:outputText value="#{historico.produto.quantidadeRecente}"/> </f:facet> <f:facet name="input">…
primefacesanswered Mario Hayasaki Júnior 96 -
2
votes1
answer65
viewsA: Lock the enter key inside the <p:editor>
In your inputText put on the property onkeyPress. onkeypress="if(event.keyCode == 13){event.preventDefault(); return false;}"
-
0
votes1
answer183
viewsA: How to delete multiple lines in datatable
Add the rowKey property to the datatable by passing the var id. Ex: rowKey="#{family.id}"
-
0
votes1
answer371
viewsA: How to automatically scroll the page using javascript?
Try using this Javascript function when doing the last step of the screen. window.scrollTo(xpos, ypos); Ex: function onFinish(){ window.scrollTo(40, 0); }…
-
0
votes3
answers241
viewsA: Help with Subquery in SQL?
Test this sql using class or.id = 0; SELECT * FROM responsavel_alunos RespAlunos INNER JOIN pessoas Responsavel ON (Responsavel.id = RespAlunos.pessoas_id) INNER JOIN pessoas Aluno ON (Aluno.id =…