This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Conditionally rendering fields in JSF 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Conditionally rendering fields in JSF 2.0" Watch "Conditionally rendering fields in JSF 2.0" New topic
Author

Conditionally rendering fields in JSF 2.0

David Lidz
Greenhorn

Joined: Mar 30, 2011
Posts: 14
The only real implementation I can think of is by using Javascript to hide/show a tag.
But I want a more Ajax approach to it by sending the request to the server when the tag is to be rendered.
Is it possible to make such an implementation using Ajax in JSF 2.0?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

I do it all the time. Just indicate that AJAX is to re-render the field(s), and have the AJAX-invoked server-side method set properties that can be queried in a "rendered=" attribute EL expression on the fields being re-rendered.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Conditionally rendering fields in JSF 2.0
 
Similar Threads
f:ajax and client-side components
Send Ajax request to refresh dataTable
JSF 2.0 - replacing JS Alert Box with what?
jafvalidations-ajax problem
Problem Using the <f:ajax /> Tag