Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF hide components  RSS feed

 
Anton Notna
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day, dear all!
I have to show/hide some fields depending on chosed value in comboBox.
Does exist any best practice for doing such things?
I recognize only 2 ways: AJAX enabled components and custom JavaScript

What you think about the stuff?
 
Kumar Saravanan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anton,

Add Ajax to your component to refresh other component (show or hide based on your business functionality).

Use ajax4jsf to add or implement ajax functionality to your component.

Thanks,
Kumaran Saravanan
 
Anton Notna
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have viewed AJAX4JSF and I really like it. Do you have any examples how to do such thing with the library?
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this link will help you

AJAX-JSF

I'm using AJAX-JSF myself and it works fine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!