Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Submitting a page with a hiddenInput fieldwith javascript

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a page in which there are several hyperlinks (at this point they're just standard anchor tags), and when the user clicks on a link, I'd like it to populate a hidden input field, submit the form, then render the same page based on the selection that was made...

I found this post:

https://coderanch.com/t/211708/JSF/java/value-which-changed-javascript-pagecode

...which gets me about 75% of the way there, but it doesn't address two other issues:

1. What's the best/accepted practice for submitting the form?
2. How do I interact with the hidden input field on the server side after it's submitted?

Perhaps I'm looking at this incorrectly, and I'll certainly seriously consider any other suggestions that are offered...

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