aspose file tools
The moose likes JSF and the fly likes Clickable links and request params in a dataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Clickable links and request params in a dataTable" Watch "Clickable links and request params in a dataTable" New topic
Author

Clickable links and request params in a dataTable

M Burke
Ranch Hand

Joined: Jun 25, 2004
Posts: 375
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

Joined: Jun 20, 2007
Posts: 36
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

Joined: Jun 25, 2004
Posts: 375
Thanks, I think this will help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Clickable links and request params in a dataTable
 
Similar Threads
Generating a detail view from a dataTable
Mulitple fo:page-sequence
ViewExpiredException: (Myfaces1.2.6 and Richfaces3.3.0) Possible problem and solution discussion.
Running an application bean method automatically on start?
Set Managed Bean property (value) without user interaction