Questions tagged as 'jsf'

2
answers

Keep a session in Java with jsf and ManagedBean

Starting with Java EE and JSF, I need to create a simple login and keep the id and nick of the user in the session. For that, create a class package Controlador; import java.io.Serializable; import javax.faces.bean.ManagedBean; import java...
asked by 06.05.2016 / 23:13
1
answer

EL: Illegal syntax. in JSF + primefaces

Please, I would like to know what is wrong with this expression. <p:inputText id="text_url" disabled="#{menuBean.tipoMenu.equalsIgnoreCase('I')?false:true}" value="#{menuBean.tipoMenu.equals('I')?menuBean.menu.formul...
asked by 21.05.2018 / 18:59
1
answer

Accommodate elements in repeater

I am using <ui:repeat> to display the data of a list of an object called DiscountPorWeight, which has 3 attributes: An Object called Service Type An integer called kilograms A double called cost The code I use to sh...
asked by 22.03.2017 / 23:16
1
answer

I need to save the result of my query in a List and then send it to an xhtml

How do I send these data from two tables to a List and how do I print them in the xhtml? What I need is that you bring me this information Ex: User Table Name: Juan IdCargo: 1 Cargo Tables IdLoad: 1 Name: Administrator Result: User.N...
asked by 03.03.2017 / 21:49
1
answer

Maintain a session in several applications

I am using java and jsf I have created some applications each with their own login, now I need to validate session in one applications and when I move to another applications I do not log in again. I have tried saving variables in session and...
asked by 17.03.2017 / 19:32
1
answer

JSF - Pass conditioned checkbox value for Update statement

I have the following problem, I have a datatable in Primefaces that shows me a series of records, to which I can edit them. At the time of editing, it sends me a Modal window that shows me the editable fields between them, a checkbox that is pre...
asked by 01.02.2017 / 17:29
2
answers

Get the next number using JSF + PrimeFaces

I have the following problem, which I do not know how to solve. I want that when making the registration in a table I already propose in the view a following number. I managed to arm the query, but for some reason it does not refresh in the view...
asked by 21.09.2016 / 19:31
1
answer

2 listsItems fill in one from the other JSF

Good afternoon, I have 2 listItems the first is filled with the values Physical Person and Legal Person and the second is filled with the values DNI, PASSPORT I want at the time of choosing Physical Person in the first one, the second one ret...
asked by 23.08.2016 / 14:08
2
answers

Problem session, Prime Faces view could not be restored

I have a JSF application but after a while I close the session but it gives me the following error and does not redirect to the login. public String cerrarSession() { SessionUtils.getSession().invalidate(); return "/login"; } Sessi...
asked by 19.08.2016 / 21:24
3
answers

Primefaces - The variable is not updated

I have the following table in a dialog with a p:commandLink , which when clicked must update the value of the variable encab_idadmision , taken from admv.idadmision . Already review and admv.idadmision has the value,...
asked by 14.09.2016 / 15:01