Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passing parameter to method without post/get/ajax  RSS feed

 
Ronald Johnson
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
e.g. i just wanna pass a parameter to any method i have in the backbean.
the problem with f:param etc is that i need to use post/get/ajax, which will not work if the person for example do a reload of the page
(when reloading, the parameter will be null, if i use for example parameter map)
 
evan k. stone
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not entirely sure if I understand the question, but could you use a hidden input component (<h:inputHidden ... />)?

If you give it and the form it resides in ids, then you can change the value of the hidden input element as well on the client side by using some very simple javascript... let me know if you need an example.
[ May 03, 2007: Message edited by: evan k. stone ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!