In JSF (Java Server Faces), the tags have an attribute called rendered. It is used to tell if that UI element should be output or not based on a server-side expression language condition.
Questions tagged [rendered-attribute]
66 questions
2
votes
1 answer
JSF rendered only if record is null
The data shown in the table below is also displayed in my web app. With the exception of the BOOKINGNO column, which instead has an h:commandButton. The commandButton should only be rendered if the BOOKINGNO record is null on the corresponding…

DinosaurHunter
- 652
- 2
- 9
- 23
2
votes
1 answer
Why is required="true" not triggered when rendered="false"
I have a some doubts about parsing of html tags in facelet. Let we have facelet which contains the follow
user2953119
2
votes
1 answer
Action/ActionListener method checked even if rendered=false
I have a composite component representing a table, that depending on the editable attribute (which I have created) may or may not display links to edit a row.
The edit links are of type and have actionListeners pointing to a method…

nivis
- 913
- 3
- 17
- 34
2
votes
1 answer
Rules for checking rendered-attribute for JSF2 custom-component
I have a simple custom-component like this which does not respect the attribute rendered.
@FacesComponent("my.OutputText")
public class OutputText extends UIPanel
{
@Override public void encodeBegin(FacesContext context) throws IOException…

Thor
- 6,607
- 13
- 62
- 96
2
votes
2 answers
JSF attribute `rendered` in `rich:menuItem` can't read `boolean` value from parameter
I am using JSF 1.2_09, rich faces 3.3.3, jsf-facelets 1.1.14.
Looks like attribute rendered in rich:menuItem can't read boolean value from parameter enableEdit...
Even if enableEdit has true value, rich:menuItem is not rendered (not visible).
Does…

Damjan Komlenac
- 63
- 1
- 7
2
votes
1 answer
How to check two conditions inside rendered attribute?
I tried below code
But this doesn't works.

Heena Jain
- 45
- 1
- 1
- 7
2
votes
3 answers
How to render a h:panelGroup inside ui:repeat based on value from javascript?
I get the boolean value into the but I can't find a way to get it into the rendered-attribute of the . I also don't see a way to use a bean value, because every iteration would need one on it's own.
this is my jsf…

Lester
- 1,830
- 1
- 27
- 44
2
votes
1 answer
How come JSF 2.x with EL 2.2 allows MethodExpression in place for ValueExpression?
I am seeing several questions asking how to pass parameters to JSF methods. With EL2.2 and servlet 3.0, it enables user to pass parameters into a method call.
One example: How to pass an argument to method from rendered h:outputText? The question…

Baimai Wu
- 118
- 10
1
vote
1 answer
1
vote
0 answers
JSF - How to throw an exception when submit a button with condition rendered = false
I am working on a project on JSF2.0
Here is my code
CountBean.java
count = 1;
function increase() {
this.count++;
}
function decrease() {
this.count--;
}
count.xhtml

Nguyễn Hữu Thanh
- 11
- 1
1
vote
1 answer
JSF Lifecycle Issue: Component tree is built before request attributes are applied
I have a JSF 2.0 facelets view containing of a search form, an ui:repeat for displaying results, and a pager. It is backed by a request bean. The form post consists of the current page, and the search criteria. The pager shows next and previous page…

Paul Schyska
- 666
- 8
- 17
1
vote
3 answers
JSF javascript boolean rendered
Whats the easiest way to toggle the rendering of a JSF Component based on a javascript flag?
I want to display certain things based on whether the user has HTML5 enabled...e.g. geolocation, native date picker etc.
Thanks,D

DD.
- 21,498
- 52
- 157
- 246
1
vote
2 answers
JSF: Empty space caused by rendered attribute
How can I get rid of the empty space by components not rendered via rendered attribute?
I want to display a list of objects in a dataTable and sort them by a property they have. I do it likes this:
view plaincopy to clipboardprint?

geeehhdaa
- 822
- 5
- 17
- 30
1
vote
1 answer
Facelet Custom Component - prevent rendering
After reading this answer, I am still stumped. I agree that JSTL should be avoided and understand how its evaluation occurs in the wrong phase. However, per the documentation on the facelets development site, it appears that tags…

Lucas
- 14,227
- 9
- 74
- 124
1
vote
0 answers
is it possible to include the value of the 'id' attribute in the 'rendered' condition of a JSF component?
I need to do something like this, since the rendering depends on the id's value which is also available on my DB:
Actually I can obtain the…

imnotthatrobot
- 122
- 10