-
1. Passing parameters between components without backing beans?
nbelaevski Mar 30, 2011 7:00 AM (in response to raid3n)Hi,
You should set header text via jQuery by 'show' event.
-
2. Passing parameters between components without backing beans?
raid3n Mar 30, 2011 7:06 AM (in response to nbelaevski)Hi Nick,
and if I have:
<input name="something1" />
<input name="something2" />
<input name="something3" />
<rich:popupPanel id="confirmPane" autosized="true"
header="jQuery($('#inputHidden').val())">
<ui:include src="page.xhtml">
<ui:param name="something" value="$('#inputHidden').val()" />
</ui:include>
</rich:popupPanel>
<rich:jQuery selector="[name]"
query="$('#inputHidden').val($(this).attr('name')); #{rich:component('confirmPane')}.show(); "
event="click">
</rich:jQuery>
<h:inputHidden id="inputHidden" />
??
-
3. Passing parameters between components without backing beans?
nbelaevski Mar 30, 2011 2:31 PM (in response to raid3n)Sorry, I am not getting the question. You should use 'onshow' attribute and define handler for the event.
-
4. Passing parameters between components without backing beans?
raid3n Mar 30, 2011 4:26 PM (in response to nbelaevski)I did not understand how to do that.
-
5. Passing parameters between components without backing beans?
ilya_shaikovsky Mar 31, 2011 3:46 AM (in response to raid3n)onshow="jqueryCodeToSetNewHeader()"
header="jQuery($('#inputHidden').val())" - will never works as header evaluated at server side.
-
6. Passing parameters between components without backing beans?
raid3n Mar 31, 2011 5:14 AM (in response to ilya_shaikovsky)Ilya you're too kind!
I choose another way: http://community.jboss.org/message/596627#596627
because I should use the header name also in the ui:param in the value attribute.