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
1
vote
1 answer
jsf component with render attribute failing validation
I have couple of panel grids with rendered attribute, on value change event of a drop down list, I make one of the panel grids visible, this works fine. But after the panel is displayed all the conversions and validations attached to components…

baba.kabira
- 3,111
- 2
- 26
- 37
1
vote
1 answer
Components still end up in component tree even when rendered attribute is false
Mojarra 2.1.
I checked the method public void execute(FacesContext facesContext) throws FacesException in the class com.sun.faces.lifecycle.RestoreViewPhase. Now, once the view's restored by the invokation viewRoot =…

St.Antario
- 26,175
- 41
- 130
- 318
1
vote
1 answer
Primefaces: conditionally rendered component doesn't get submitted
I have a field that is rendered conditionally, based on a dropdown. All of that goes without problem, but when I submit the form of which the newly rendered component should be part of, it doesn't get submitted.
The code is fairly…

hhschoone
- 19
- 1
- 5
1
vote
1 answer
Rendered attribute has no effect in dropdown, while it works in input text
I have data table with a dropdown and an input text. I have a button which adds a new row to the data table.
On add, I want to show the submitted value of dropdown and input text of previous row as output text, and display the dropdown and input…

user3041619
- 35
- 5
1
vote
1 answer
Inoperative p:commandLink when using #{param} in rendered attribute
I have a page displaying some profile, so it's URL ../faces/savedProfile.xhtml?profileId=1234.
On that page I have p:pane containing a few p:commandLink components, something like this:
...
…

user1801069
- 75
- 1
- 5
0
votes
0 answers
What happen if you 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
0
votes
0 answers
Hide specific items
Please refer this related question. how ever i do not want to disable instead i need to hide. seems there is no render property for select one radio items. how can i achieve this

teja
- 93
- 2
- 11
0
votes
1 answer
XPages CSJS gets executed while SSJS does not
I have a Custom Control for uploading files to a page. And it works so well but only when it's not inside xp.this.rendered property. If it is, it gives me very unexpected results. Here's the code for the div which I use:

J.Doe
- 179
- 14
0
votes
1 answer
0
votes
0 answers
Textbox ID of Items not working properly
In my aspx, I have few textboxes. Some are straightforward textboxes and others are rendered output textboxes. The textboxes are mapped to received uploaded XML data to the site/database and it is also supposed to allow user to modify the data in…

Geezus
- 39
- 3
- 11
0
votes
1 answer
PrimeFaces 5.2: How to render Element that dependent on different contexts?
Let's say: For repeatable code fragment reuse in different context. I had a fragment.xhtml will be included in multiple other different xhtml, say main1.xhtml and main2.xhtml
fragment.xhtml as:

cidy.long
- 417
- 12
- 35
0
votes
0 answers
JSF is not showing component even though the attribute "rendered" evaluates to true
I have a simple JSF page with several tags like this:
...
...
…

Alexandre Gazola
- 19
- 6
0
votes
0 answers
rendered attribute not evaluated in include
I have a include file with a parameter bean which I use for two concrete java BeanA and BeanB classes.
BeanB class has additional methods and therefore I check the render attribute to not access a method not available:
View:

djmj
- 5,579
- 5
- 54
- 92
0
votes
1 answer
Render link when not null
As I 'll show up a table on a page , there are certain elements that have no value . But the elements that have a value to form a link to another page . Right now it shows nothing , neither it has value or not.
I'm new to Java and do not understand…

MrKrantz
- 53
- 1
- 9
0
votes
0 answers