Rendering the component based on valueChangeListener

Advertisement
Hi
i have to rendered the af:table based on valueChangedListener..
i have a tableLayout and inside tableLayout i have af table.i have dropdown list in that drop down list i put valuechangeListener event when i select the value from drop down list i have to do rendered the table.
so what i did here is
tableLayout3.setRendered(true);
AdfFacesContext.getCurrentInstance().addPartialTarget(tableLayout3);
but it is not diaplaying the table but when tried with button action it is properly displaying the table.
can any body help plz ..
Thanks and Regards,
Harish
Advertisement

Replay

Your EL is indeed wrong. Place the operators inside the EL, otherwise they would evaluate to plain (non-EL) values.
<f:subview rendered ="#{bean.value1 || bean.value2}">