Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Syntax for the h:commandLink param functionality

 
Kamron Abtahi
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently generating a list of search results in a JSF. This list of search results has a <h:commandLink> tag around the unique identifiers of each entity that is shown in the search results page. I would like it so that when this link on the unique identifier is clicked, to have it produce another page with results of that specific entity. I would be able to produce this if i could extract the value that is enclosed in the <h:commandLink> tag. I have read that there is a <f:param> function within <h:commandLink> that can solve my problem and produce this variable for me. Can anyone tell me the syntax behind that for the .jsf page, the java class, and the face-config.xml?

Thanks in advance.
 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this Blog and it will answer a lot of your questions

Communication in JSF
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!