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

Clickable links and request params in a dataTable  RSS feed

 
M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to faces. I want to build a table from a collection of objects, and make a link for each to open that item on a different form.

In the past, I added request parameters to my links to know which one is clicked. Like this: a href='view.jsp?row=1&col=1' then do a request.getParameter('row') in my servlet.

How do I do this equivalant in JSF? I can't even find any examples of a faces action even accessing the request object.
 
Ryan Lubke
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by M Burke:
I am new to faces. I want to build a table from a collection of objects, and make a link for each to open that item on a different form.

In the past, I added request parameters to my links to know which one is clicked. Like this: a href='view.jsp?row=1&col=1' then do a request.getParameter('row') in my servlet.

How do I do this equivalant in JSF? I can't even find any examples of a faces action even accessing the request object.


I'd recommend going through these tutorials: http://balusc.blogspot.com/2006/06/using-datatables.html
 
M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I think this will help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!