File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conditionally rendering fields in JSF 2.0

 
David Lidz
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17639
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic