• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Clickable links and request params in a dataTable

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, I think this will help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic