rendered=#{bean.field} not taking value.

UI Components for JSF
Post Reply
Hirenkumar69
Posts: 8
Joined: 18 Jan 2017, 22:33

19 Jan 2017, 19:09

Below snip is not working.

situation is , if value of buildConfigureBB.isConfigure == true then field should be display.

else not.

<p:outputLabel rendered="#{buildConfigureBB.isConfigure ne false}" value="Comments"/>
<p:inputTextarea rendered="#{buildConfigureBB.isConfigure ne false}" id="commentval1" rows="1" cols="60" value="#{buildConfigureBB.isConfigure}" />
</h:panelGrid>


I tried to display current value of isConfigure in value= ....it is coming correctly but it is not working with rendered=

Please assist.

Thank You!
Hiren Patel

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

19 Jan 2017, 21:11

rendered="#{buildConfigureBB.isConfigure}" must work. Otherwise something is wrong with your environment, the bean doesn't exist or isConfigure returns the wrong value.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

19 Jan 2017, 22:03

does it work for an `h:outputText`? If not, it is indeed like Thomas states a generic non-pf issue

Hirenkumar69
Posts: 8
Joined: 18 Jan 2017, 22:33

19 Jan 2017, 23:48

tandraschko wrote:rendered="#{buildConfigureBB.isConfigure}" must work. Otherwise something is wrong with your environment, the bean doesn't exist or isConfigure returns the wrong value.

I tried everything, I also displayed boolean value passed by buildConfigureBB.isConfigure it is dipayed as value="#{buildConfigureBB.isConfigure}"


then why render="#{buildConfigureBB.isConfigure}" is not working.

Also wants to make a note that at the same time i have some ajax call on other fileds on same form.

do you think that can prevents.

Please help
HP

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 51 guests