• 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

passing parameter on button click

 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i want to pass parameter to the backing bean on button click. it works good on <h:command link, but when i tried passing <f:param / f:attribute inside <hx:commandExButton, its not getting value in backing bean. im using ibm-jsf.jar

my code :
<hx:commandExButton type="submit" value="Archive"
styleClass="commandExButton" id="buttonArchive"
action="#{pc_Home.doButtonArchiveAction}" >
<f:param value="hello" name="certID" />
</hx:commandExButton>


doButtonArchiveAction of backigbean is getting invoked but im not able to ge the certID using request.getParameter("certID"). it returns null.
Any ideas or suggestions are welcome.

Thanks,
Rajeev
 
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hope this example helps...

i have a datatable that lists the authorities. Every authority row has an "Edit" button next to it. In my backing bean, I coded to logic to workout which authority row needs to be edited.



and in my backing bean,

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic