Questions tagged [rendered-attribute]

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.

66 questions
0
votes
2 answers

Rendering elements in MyFaces 1.1.1

I am trying to create a simple jsf page where I have a dropdown whose value determines which label to render. Initially all the labels' render is set as false through the backing bean constructor. But I have called submit onchange which sets the…
0
votes
0 answers

Rendered attribute for PrimeFaces datatable not working

I have a primeface table that shows data from an database stored in a List called notificationList based on a search from. I want the table to be displayed after the submit button is clicked however after I add the rendered attribute the table not…
Jenna Deng
  • 31
  • 1
  • 10
0
votes
0 answers

java.lang.IllegalArgumentException: wrong number of arguments at javax.faces.component.UIComponentBase.isRendered

I get a really awkward expection, I have no idea what is wrong: I use Glassfish 3.1.2, JSF, EJB and JPA. I have absolutely no idea what is wrong :( I hope you can give me some…
matthias
  • 1,938
  • 23
  • 51
0
votes
1 answer

Rendered attribute in xhtml

Below is my code in xhtml: In my bean: public boolean xyzmethod(){ String def = "ghi"; if(!def.equal("ghi"){ return false; } return true; } My requirement is, I don't want to display this…
Indu New
  • 1
  • 1
  • 3
0
votes
1 answer

What is the correct way to use RequestScoped Bean and rendered attribute?

does anybody know how to use RequestScoped bean together with rendered attribute in jsf? The rendered attribute is evaluated before applyValues phase and therefore is not correctly evaluated. I don't want to preserve any state. The example could be…
Filip Majernik
  • 7,700
  • 13
  • 45
  • 53
0
votes
1 answer

JSF ajax render message and redirect

I have a JSF application where users login in a login form inserting their email and password. The ManagedBean has the following 2 methods. The method checkIdentity1() returns an URL ("" if the validation is incorrect in order to stay in the same…
jose
  • 303
  • 4
  • 17
0
votes
0 answers

backingBean doens't receive commandButton action

Im using a rendered commandButton and other button to save input data, But the backing bean doens't receive input from view. I tried all proposition in this post[post]but still doens't work, any help, thanks in advance here is a part of the…
0
votes
1 answer

Why rendered is not working on panel

How can dynamically show or hide a panel ? With the given example below, when I click btn-1 then panel-2 shows and panel-1 hides. But when I click btn-2 nothing happens. ManagedBean @ManagedBean @ViewScoped public class SampleController implements…
bell
  • 63
  • 11
0
votes
1 answer

Rendered Attibute not working

I have a JSF page with a selectOneMenu and an inputText. The inputText need apears only with some option is selected on selectOneMenu. Here is the JSF code:
brbrbr
  • 157
  • 4
  • 17
0
votes
1 answer

update rich:datatable when rich:inputNumberSlider value change

my interface is like in the picture I want the value of the réduction field changes when the value of the inputNumberSlider changes.
0
votes
3 answers

Conditionally show image in JSF inside dataList

inside a iteration with primefaces dataList I want render an image conditionally like this:
opfau
  • 731
  • 9
  • 37
0
votes
1 answer

ConversationScoped bean action not fired using a rendered commandlink

I'm having trouble understanding why a action method on my ConversationScope'd bean doesnt fire. The bean is: package org.work; import java.io.Serializable; import javax.enterprise.context.ConversationScoped; import…
mkjmkjmkj
  • 21
  • 4
0
votes
1 answer

JSF rendered and fragments

I'm facing a a problem with JSF, i have a fragment that is rendered on all pages, and displays the latest entries of a table (~ 10 items). And i want to reuse it on a page that lists all entries. I put a rendered rule to prevent the all pages…
Maxinne
  • 1,693
  • 2
  • 23
  • 47
0
votes
3 answers

Use "contains" statement in rendered attribute on "h:outputlink" JSF

Simply I have an array in my back-bean included some values like '1'-'2'-'3'-'4'-'5' In JSF I want to use rendered attribute in h:outputlink to visible or invisible a link on data-table rows based on some value from each row for example I can have…
soheilz92
  • 127
  • 2
  • 19