All Questions
308
questions
0
votes
0
answers
47
views
jsf and jstl in xhtml page c:choose and c:if not behave that way the condition speak
I have Xhtml page wrote by jsf, I'm not sure what happen into the page that test failed one condition and always true or false , I check test condition and said the false and true happen the way ...
1
vote
0
answers
59
views
h:commandButton is execute before click
I'm use jsf 2.2 with tomcat.
I'm trying to build a shopping cart, i have an xhtml page that add product to the cart,
The problem is that the action in h:commandButton is called every time i refresh ...
0
votes
0
answers
50
views
Methods execute in wrong order
Methods in xhtml are supposed to run in hierarchical order.
cursoAlumnoView.listarEntrega() runs first, then all methods listed above it.
<c:forEach items="#{cursoAlumnoView.listaCursoAlumno()}...
-1
votes
1
answer
209
views
When submitting the form on the jsp page is running forever
When submitting the form on the jsp page below (cadastroPaciente.jsp), the System is running forever without returning any error.
I've already tested the connection alone in a Test Class and the ...
0
votes
1
answer
428
views
JSF InputText to array of Integers in a forEach loop
It's my first post here, so be critical for my question, let me know if i ask it wrong way.
The problem is that I want to make <h:inputText> inside a <c:forEach> loop. The fields should ...
2
votes
1
answer
852
views
JSF Primefaces: How to use ternary operator for items inside a <f:selectItems> rendered HTML dropdown list?
Am using JSF Primefaces 7.0 to render an XHTML file to display a list of users (along with their e-mail addresses) inside a single HTML dropdown list.
pom.xml:
<dependency>
<groupId>...
1
vote
1
answer
923
views
How to use Ternary Operator using Primefaces using JSF EL to render specific text when items are null?
Am using JSF Primefaces 7.0 to render an xhtml file to display a user (alongside the username inside parenthesis) if his name is null or an empty string, I wish to just show the username without the ...
1
vote
1
answer
398
views
Programatically Set Attribute with a Value Expression when component is within JSTL forEach loop
First time asking a question so please bear with me.
I have a pure Java custom component that extends UIInput (JSF 2.2, Mojarra) and I am using it like so:
<c:forEach items="#{bean.items}" var="...
0
votes
1
answer
147
views
JSTL XML in JSF Facelet
I am trying to create a composite component in JSF Facelets 1.2.8.
The component is supposed to be a table optimised to work with the jquery jstree framework for presenting a table as a directory tree....
0
votes
0
answers
208
views
Null pointer Issues using the <c:if condition tag JSF Primefaces [duplicate]
ParentPage.xhtml
<p:tab id="games" title="Games">
<ui:include src="/jsf/sections/general.xhtml" />
<ui:fragment rendered="#{javaMB....
0
votes
1
answer
64
views
Implement logic to show only one button
I'm trying to implement a JSTL logic which displayed submit buttons based on the following logic:
<c:choose>
<!-- if it's demo mode skip every limit check, if not check them --&...
0
votes
1
answer
94
views
Loop through hashmap and use key to access another hashmap within
I'm building a liferay jsf portlet which contains a few selectmanycheckboxes. For each selectcheckbox there are 2 lists. The first one is for storing the visible elements, and the second one contains ...
1
vote
1
answer
480
views
Wrong var value after updating nested c:forEach
I have found some strange behaviour when updating nested c:forEach. Apparently value of var is not correct on inner c:forEach.
The following example declares a simple Child Class, a Parent Class ...
0
votes
1
answer
681
views
EL not resolved when passed as attribute to composite component inside datatable
I'm facing a problem with an EL expression not being resolved at the initialization of a composite component. Here is the code:
<p:column sortable="false" toggleable="false" ...
-2
votes
1
answer
1k
views
JSTL c:forEach tag not working for El expression in JSF
In trying to solve a larger problem using JSF, I noticed that I can't seem use c:forEach to iterate over lists. Research has taught me that there are several different versions now, and I believe I'm ...