Questions tagged as 'jsf-2.2'

2
answers

JSF panelGrid does not work

The code below should show a simple screen split between names and input areas, but panelGrid is not working, what's wrong? When running, nothing appears. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http:...
asked by 06.11.2016 / 05:32
2
answers

Validation with JSF

I want to validate the form displayed in the image in a different way than the framework imposes on me. Validation would be something like an alert, meaning the user would be informed that they can only add data if they select a combo option. Th...
asked by 23.07.2014 / 15:10
3
answers

f: param sends id null and java.lang.NumberFormatException is thrown

I use the same registration form to update a datatable record. when clicking update it sends to the inputText the name to be updated so far so well, the problem is when the name is changed and the button is clicked. the inputText returns to the...
asked by 18.10.2014 / 22:15
1
answer

FileUpload does not load the listener in JSF 2.2

I am migrating a project to JEE7 from PrimeFaces 3.5 to 5.0 and I have a problem with FileUpload. It does not load the file in the JSF 2.2 event listener. Follow the xhtml code: <p:fileUpload id="import" value="#{fileBean.file}" mode="si...
asked by 08.05.2017 / 22:21
1
answer

How to assign new value from SelectOneMenu to entity?

I have a table with several columns, among them I have one that is a SelectOneMenu , the table is loaded with a list of Inscricao . In the subscription status column I have a SelectOneMenu with the statuses: {"Solicitada...
asked by 06.07.2015 / 02:14
3
answers

Business rules in JSF [closed]

In JSF where would be the best place to set business rules? In the model, in the managed-bean, or in a business rules layer (I'm rather reluctant to adopt this latter approach), or do I implement such rules as JSF custom validators? I have quest...
asked by 16.06.2015 / 18:34
1
answer

Clear a Bean variable from the JSF page

I have a page with some iteration loops inside my JSF page and here I would like to know how I can clean up this page attribute after each loop. To be clearer, I know that when rendering a page sometimes a method is called a few times,...
asked by 08.12.2015 / 11:02
1
answer

The Primeface confirmation screen does not work

This is the screen that appears in my Browser WhenIpressthedeletebuttonitsimplydoesnothing.ItdoesnotgenerateanyerrorsintheeclipseconsolesThisistheseparatecodeproblemhere!<p:columnstyle="width: 100px; text-align: center">...
asked by 18.03.2015 / 19:30
1
answer

What is the difference between the following methods?

I'm developing an application in JSF and I came across the following methods and want to know the difference between them. ((HttpSession)FacesContext.getCurrentInstance() .getExternalContext().getSession(false)).invalidate...
asked by 29.03.2015 / 19:03
1
answer

Check if there is a file in a certain folder rendered jsf

Personal I'm saving image to a particular project folder and I need to check if this file exists in the folder. I was using a command as below: rendered="Fotos/#{consultaFuncionariosBean.pessoaModel.codigo != null}.png" But it did not work....
asked by 05.07.2017 / 15:50