• 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
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

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!
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic