Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Have you tried to remove the brackets on the listener call?</p> <p>before:</p> <pre><code>myListener="#{fravaersoplysningerController.testListener()}" </code></pre> <p>after:</p> <pre><code>myListener="#{fravaersoplysningerController.testListener}" </code></pre> <p>Also, wondering that ´f:ajax´ brings ´oncomplete´ as an attribute, would have expected something like</p> <pre><code>&lt;f:ajax onevent="function(data){if (data=="complete) { #{cc.attrs.noteDialog}.show();}" /&gt; </code></pre> <p>or like @BalusC says, an primefaces ajax instead...</p> <p><strong>Edit:</strong> Just hacked your example in the IDE, downsized a bit:</p> <p>xhtml:</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:io="http://java.sun.com/jsf/composite/inout" ... /&gt; ... &lt;h:body&gt; &lt;h:dataTable var="item" value="#{scPaymentLevelValues}"&gt; &lt;h:column&gt; &lt;io:testSomething text="myText" renderAsLink="myRenderAsLink" year="2012" month="12" fravaersoplysningCode="womething" noteDialog="yeah" myListener="#{testBean.testListener}" /&gt; &lt;/h:column&gt; &lt;/h:dataTable&gt; &lt;/h:body&gt; &lt;/html&gt; </code></pre> <p>component:</p> <pre><code>&lt;ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:cc="http://java.sun.com/jsf/composite"&gt; &lt;cc:interface&gt; &lt;cc:attribute name="text" required="true" /&gt; &lt;cc:attribute name="renderAsLink" required="true" /&gt; &lt;cc:attribute name="year" required="true" /&gt; &lt;cc:attribute name="month" required="true" /&gt; &lt;cc:attribute name="fravaersoplysningCode" required="true" /&gt; &lt;cc:attribute name="noteDialog" required="true" /&gt; &lt;cc:attribute name="myListener" method-signature="void listener()" required="true" /&gt; &lt;/cc:interface&gt; &lt;!-- IMPLEMENTATION --&gt; &lt;cc:implementation&gt; &lt;h:commandButton value="hhii" rendered="true"&gt; &lt;f:ajax oncomplete="alert('hi');" listener="#{cc.attrs.myListener}" /&gt; &lt;/h:commandButton&gt; &lt;/cc:implementation&gt; &lt;/ui:composition&gt; </code></pre> <p>Bean:</p> <pre><code>import java.io.Serializable; import org.jboss.seam.ScopeType; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Scope; @Name("testBean") @Scope(ScopeType.CONVERSATION) public class TestBean implements Serializable { public void testListener(){ System.out.println("testListener : {}"+ String.format("Im working")); } } </code></pre> <p>Am getting the desired output <code>testListener : {}Im working</code>. Using Mojarra 2.1.7, Seam 2.3.1.CR1. Can you maybe try downgrading to h:dataTables and h:commandButton, check if it's working there... and if so upgrading to primefaces until it stops working - and then decide how to go on?.</p> <p>Hope, that helps... if so, please vote. :-)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

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