4 Replies Latest reply on Jan 30, 2009 7:33 AM by ilya_shaikovsky

    a4j:commandButton question

    superstef2

      Hi,

      i have a problem with a simple a4j:commandButton and a panelGrid where two panel should be shown side by side.

      If i press the command button nothing happens.
      If i replace the a4j:commandButton-Tag through a h:commandButton my save()-Method in my handler will be called.

      My two panels will be shown one below the other.

      What's wrong with my implementation???

      Am i blind??


      
      <h:form>
       <h:panelGrid columns="2" columnClasses="gridContent" style="">
       <rich:panel bodyClass="inpanelBody">
       <f:facet name="header">Domains</f:facet>
       <c:if test="#{domainListHandler.allDomainsSize > 10 } ">
       <rich:datascroller align="center" for="users" maxPages="20"
       page="#{domainListHandler.scrollerPage}" reRender="sc2" id="sc1" />
       </c:if>
       <rich:spacer height="30" styleClass="rich-spacer" />
       <rich:dataTable width="500px" id="domains" rows="10" columnClasses="col"
      value="#{domainListHandler.allDomains}" var="domain">
      ....
      ....
      <rich:panel bodyClass="inpanelBody">
       <f:facet name="header">Domain bearbeiten</f:facet>
       <h:panelGroup id="out">
       <rich:panel>
       <h:panelGrid columns="2" rendered="#{not empty domainHandler.domain}">
       <h:outputText value="Domain:" />
       <h:inputText id="domain" value="#{domainHandler.domain }" size="50" />
      
       <h:outputText value="URL: " />
       <h:inputText id="url" value="#{domainHandler.url }" size="60" />
      
       <rich:spacer height="7" />
       <rich:spacer />
      
       <a4j:commandButton value="speichern" reRender="domains" action="#{domainHandler.save}" id="save"/>
       <h:commandButton action="#{domainHandler.reset }" value="verwerfen" id="reset" />
       </h:panelGrid>
       </rich:panel>
       </h:panelGroup>
       </rich:panel>
      ...