3 Replies Latest reply on Jul 15, 2008 4:43 AM by Ilya Shaikovsky

    a4j:support on rich:panel does not fire action method of the

    Michael Kolomiets Newbie

      Hello!
      I have rich:panel and inner a4j:support elements in my xhtml-code:

      <rich:panel styleClass="noScrollBar"
       style="veryLongStyleString"
       bodyClass="etherObjectPanelBody">
       <h:outputText value="#{eof.name}" />
       <a4j:support event="onclick"
       action="#{assemblyController.selectEtherObjectFeed}"
       ajaxSingle="true" eventsQueue="assemblies">
       <f:param name="EtherObjectFeedId" value="#{eof.id}" />
       </a4j:support>
      </rich:panel>
      

      declaration of business-method in interface:
      public String selectEtherObjectFeed();
      

      and implementation in bean class:
      @Stateful
      @Name("assemblyController")
      @Scope(ScopeType.SESSION)
      @Synchronized(timeout = 10000)
      public class AssemblyControllerBean implements Serializable, AssemblyController {
      ...
      public String selectEtherObjectFeed() {
       log.debug((currentUser != null ? currentUser.getLogin() + " # " : "")
       + "selectEtherObjectFeed: called");
       String etherObjectFeedId = FacesContext.getCurrentInstance()
       .getExternalContext().getRequestParameterMap().get(
       "EtherObjectFeedId");
       if (etherObjectFeedId != null) {
       this.etherObjectFeed = entityManager.find(EtherObjectFeed.class,
       new Long(etherObjectFeedId));
       } else {
       this.etherObjectFeed = null;
       }
       return "success";
      }
      


      Busines method selectEtherObjectFeed of bean is not called when I click mouse on the panel. But a4j:log show what a4j:support posts data to server on click event. jBoss log does not have any error or warning messages.

      Help me to resolve this problem, PLS.

      I work with jBoss AS 4.2.2GA, Seam 2.0.2.SP1, RichFaces 3.2.0.SR1 and JSF 1.2 RI.

      --
      Michael