• Post Reply Bookmark Topic Watch Topic
  • New Topic

want to show command links vise versa  RSS feed

 
chandu andChandu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi .......we hav two command links for each row in table.but now we need to show only one link at a time.if i click on one link after the completion of that process it should display the table with other link.......
here is code for jsp and bean method...if i click on enroll after completion of that process it should disply cancelenroll link.....vise versa
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chandu,

As you have not posted code... Suppose you are displaying courses table and for each row you have those links.

Your BackingBean might have a list Course Entity.

Then you are trying associate some external state "Enrollment" to it.

so you can have CourseExtStateWrapper like following

So in the backing bean now you make use of List <CourseExtStateWrapper> instead of List <Course>.

Links problem now can be easily solved based on enrolled flag state.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!