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 Re-Use same Visual Web JSF page but Different Informmation?  RSS feed

 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sirs et Madames,
Am wanting to display a list of locations via a table with 3 columns, Location Id, Location Name, Location Type. Location name is a hyperlink and on clicking it, it is meant to take you to a table of child locations (all location found within the location you clicked on). The new child location table also displays same information i.e Location Id, Location Name, Location Type. I do not see the point of navigating to a whole new page to display child locations how can I re-use the same page to display the child locations as I used to display the parent locations? I have tried the following to achieve this but all I get is always the parent locations table being rendered. The page Bean is as follows:



LocationBusinessLogic looks thus:


The JSP looks thus:



UtilityMethods looks thus:


As I say, the page re-renders but not with the desired effect as it always displays the same (Parent Locations) table rather than re-rendering with child locations when a paent Name (hyperlink) is clicked. Any help or suggestions would be greatly appreciated.

Thanks in advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!