-
1. Re: Passing parameters through richfaces components
dxxvi Apr 6, 2009 12:32 PM (in response to msantana)Did you try this
<a:commandButton action="#{someBean.someMethod}" reRender="theModalPanel" oncomplete="show modal panel"> <f:setPropertyActionListener value="some value" target="#{someBean.someProperty}"/> </a:commandButton> <rich:modalPanel ...> <a:form> <h:inputHidden value="#{someBean.someProperty}" /> </a:form> </rich:modalPanel>
If you need the button id, maybe you should try actionListener instead of action for the a:commandButton.
Not sure if it works but that's what I think.
-
2. Re: Passing parameters through richfaces components
msantana Apr 6, 2009 2:05 PM (in response to msantana)Tank you for the replay!.
Yes i already do that but i only want to know if there is a way to pass values through the richfaces components without setting it to a property of a bean. Something ilke: On the action of a button set the value to some input but without setting a property on a bean.Thanx again for your support!
-
3. Re: Passing parameters through richfaces components
oguzyalcin.oguzhanyalcin.gazi.edu.tr Apr 6, 2009 2:58 PM (in response to msantana)I've faced with the same problem. I've asked the same question to the richfaces users form and absolutely get no reply :) I wrote a bean and passed variables from one component to other by using that.
-
4. Re: Passing parameters through richfaces components
niox.nikospara.yahoo.com Apr 6, 2009 4:55 PM (in response to msantana)You can always set the value of the h:inputHidden directly from Javascript using its id, like:
<a:commandButton onclick="document.getElementById('hidden:id').value=#{var.id}" ... />
Where hidden:id is the client id of the h:inputHidden and #{var.id} is the id of the current object.
-
5. Re: Passing parameters through richfaces components
msantana Apr 7, 2009 2:07 PM (in response to msantana)Thank to all of you guys! I will try setting the value through JavaScript!
Thanx again!