Forums Register Login

Clickable links and request params in a dataTable

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
Thanks, I think this will help.
Everyone is a villain in someone else's story. Especially this devious tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 5669 times.
Similar Threads
Running an application bean method automatically on start?
Generating a detail view from a dataTable
Set Managed Bean property (value) without user interaction
ViewExpiredException: (Myfaces1.2.6 and Richfaces3.3.0) Possible problem and solution discussion.
Mulitple fo:page-sequence
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:46:39.