-
1. componentControl & popupPanel & a4j:ajax
snaker Mar 2, 2011 11:49 AM (in response to snaker)I resolved my problem, if someone need the same this code perfectly work.
<a4j:commandLink ajaxSingle="true" value="ver Recetas">
<a4j:ajax execute="@form" render="@form form1" event="click" listener="#{bean.seeItems}" oncomplete="#{rich:component
('popupItems)}.show()" />
</a4j:commandLink><rich:popupPanel id="'popupItems" modal="true" resizeable="false" movable="true" autosized="true" width="800">
<f:facet name="header">
<h:outputText value="ITEMS"/>
</f:facet>
<f:facet name="controls">
<h:outputLink value="#" onclick="#{rich:component('popupItems)}.hide();return false;" styleClass="link1">
X
</h:outputLink>
</f:facet>
<h:outputText value="#{bean.items.get(0).name}"/>
</rich:popupPanel>
I don't know if it is correct, but it works very good
-
2. componentControl & popupPanel & a4j:ajax
ilya_shaikovsky Mar 3, 2011 3:24 AM (in response to snaker)1) not worked because event should be "action"
2) not needed to place ajax into links because you could just specify all the attributes at link (it's already has ajax behavior attached.)
-
3. componentControl & popupPanel & a4j:ajax
snaker Mar 3, 2011 4:11 AM (in response to ilya_shaikovsky)then, i don't know why works with my last writed code.
One example please?
-
4. componentControl & popupPanel & a4j:ajax
ilya_shaikovsky Mar 3, 2011 4:27 AM (in response to snaker)i'm not saying it shouldn't works.. actually it should just telling that it's not needed to plug ajax behavior to the component which already provides the same ajax and options (inner just redefines built-in)
so most clean usage for me is:
<a4j:commandLink value="ver Recetas" execute="@form" render="@form form1" oncomplete="#{rich:component('popupItems)}.show()"
actionListener="#{bean.seeItems}"/>
P.S. not ajaxSingle not supported as now execute specifies processing options.
-
5. componentControl & popupPanel & a4j:ajax
snaker Mar 3, 2011 5:16 AM (in response to ilya_shaikovsky)Thaks, it works perfectly with your code