Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to show pages based on action in JSF  RSS feed

 
Madhav Kanneganti
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a page showing with three buttons (ViewUsers, AddUsers, RemoveUsers), the actions follows
1) when the user clicks on View button showing a page with the list of Users currently listed in a group (all html input fields are readonly mode).
2) when the user clicks on Add button, we are showing a button (javascript function calls and shows a text box dynamically) and allowing adding multiple users, and finally update button go for action in serverside to add users into Database.
3) when the user clicks on Remove button, we are showing users with check boxes and finally update button go for action in serverside to remove users into Database.

All three are rendering on same JSP but differentiated with the button type (if...else if...else if...) , see the following code snippe


Can we able to make in JSF (in single page) using JSF tags? please suggest the idea on this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!