-
1. Re: Not getting <h:inputHidden> value inside an action
nbelaevski Jun 18, 2011 9:10 PM (in response to manakor)Hi Nikita,
Can you please check if
jQuery("input[id$='myHidden']")
returns the input? -
2. Re: Not getting <h:inputHidden> value inside an action
manakor Jun 20, 2011 2:43 AM (in response to nbelaevski)Yes, I have checked even before, that
jQuery("input[id$='myHidden']")
returns an object, which is needed. -
3. Re: Not getting <h:inputHidden> value inside an action
manakor Jul 7, 2011 8:14 AM (in response to manakor)Strange, but the problem has been just in one attribute of <a4j:jsFunction> which I finally added:
<a4j:jsFunction name="callFunction" execute="@all" actionListener="#{...}" />
That's really strange for me, because I was thinking that if execute attribute is not presented than all the forms has been processed. But seems that's false.
Can anyone point me where is detailed documentation of execute attribute please?
-
4. Re: Not getting <h:inputHidden> value inside an action
nbelaevski Jul 7, 2011 1:47 PM (in response to manakor) -
5. Re: Not getting <h:inputHidden> value inside an action
manakor Jul 11, 2011 11:39 AM (in response to nbelaevski)And now completely the same happens if instead of <a4j:jsFunction> I am using <a4j:commandLink>, however even execute="@all" doesn't help.
So I have 1st form:
<h:form id="formOne">
<h:inputHidden id="and" binding="#{...}" value="something" />
</h:form>
Than 2nd form with <a4j:commandLink> inside, which has an actionListener where I actually have to get <h:inputHidden> value:
<h:form id="formTwo">
<a4j:commandLink actionListener="#{...}" execute="@all" value="Click this" />
</h:form>
And at the end, when I am clicking on that link, I am not getting hidden input value while debugging… That's really strange, because I am using execute="@all" for a commandLink, which actually has to submit all the forms and pass input values, as I think.
However, if I locate my <a4j:commandLink> inside 1st form, values of hidden inputs are there on my hand. So, the logic could be that execute="@all" doesn't really make it's job for me (don't submit all the forms), or something with beans scope maybe…
Any guidance on that please?
-
6. Re: Not getting <h:inputHidden> value inside an action
nbelaevski Jul 11, 2011 12:26 PM (in response to manakor)Nikita,
Only elements enclosed in the current form are submitted to the server.