Note that there are some explanatory texts on larger screens.

plurals
  1. POa4j:CommandLink action not execute on rich:popupPanel when panel is rendered
    text
    copied!<p>I have link that opens popup panel, before opening that panel I would like some action to be executed from my ejb stateless bean and popup panel should be rendered. After opened that panel I click commandButton which should execute action from my bean and close that panel. Second action is not executed.</p> <p>If I remove 'render' attribute from first a4j:commandLink everything is ok.</p> <p>I used: Richfaces 4.1.0.Final (I also tried 4.2.3.Final and the newest: 4.3.0.20121214-M3), Seam 3.1.0.Final, JBoss 7.1.1.Final.</p> <p>my_page.xhtml:</p> <pre><code> &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:s="http://jboss.org/seam/faces" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"&gt; &lt;h:head&gt;&lt;/h:head&gt; &lt;h:body&gt; &lt;h:form&gt; &lt;a4j:commandLink action="#{myBean.init()}" render="myPopupPanel" oncomplete="#{rich:component('myPopupPanel')}.show(); return false;"&gt; Open panel &lt;/a4j:commandLink&gt; &lt;/h:form&gt; &lt;rich:popupPanel id="myPopupPanel" modal="false" autosized="true" resizeable="false"&gt; &lt;h:form id="deviceInputEditForm"&gt; &lt;a4j:commandButton action="#{myBean.doAction()}" value="DoAction" oncomplete="#{rich:component('myPopupPanel')}.hide();" /&gt; &lt;/h:form&gt; &lt;/rich:popupPanel&gt; &lt;/h:body&gt; &lt;/html&gt; </code></pre> <p>MyBean.java:</p> <pre><code>package com.hajdi.test; import javax.ejb.Stateless; import javax.inject.Named; @Named @Stateless public class MyBean { public void init() { System.out.println("Init called."); } public void doAction() { System.out.println("doAction called"); } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload