2 Replies Latest reply on Oct 6, 2008 11:26 AM by Anders Norgaard

    Should <a4j:support event=

    Anders Norgaard Newbie

      Hi,

      I have

      <rich:extendedDataTable height="200px" width="100%" frozenColCount="3"
       id="fwList" rows="#{firmwaremanager.getRowCount()}"
       value="#{firmwaremanager.getFirmwares()}" var="fw"
       >
       <a4j:support event="onselectionchange" action="#{fw.setSelection(fw)}"/>
      ...
      </rich:extendedDataTable>
      


      but #{fw.setSelection(fw)} is not called when I change the selected row. Is this a bug, or am I doing something wrong?

      If I have

      <rich:extendedDataTable height="200px" width="100%" frozenColCount="3"
       id="fwList" rows="#{firmwaremanager.getRowCount()}"
       value="#{firmwaremanager.getFirmwares()}" var="fw"
       onselectionchange="alert('test')"
       >
      ...
      </rich:extendedDataTable>
      


      then the alert is called.

      Best
      Anders

        • 1. Re: Should <a4j:support event=
          Ilya Shaikovsky Master

          seems request fired but some risen at 2-nd or 3-rd phase. place rich:messages on the page.

          • 2. Re: Should <a4j:support event=
            Anders Norgaard Newbie

            Hmm, like this?

            
            <h:form>
            <rich:messages passedLabel="Data is allowed to be stored." layout="list">
             <f:facet name="header">
             <h:outputText value="Entered Data Status:"></h:outputText>
             </f:facet>
             <f:facet name="passedMarker">
             <h:graphicImage value="/images/ajax/passed.gif" />
             </f:facet>
             <f:facet name="errorMarker">
             <h:graphicImage value="/images/ajax/error.gif" />
             </f:facet>
             </rich:messages>
            
             <f:facet name="header"><h:outputText value="Existing firmware versions" /></f:facet>
             <rich:extendedDataTable height="200px" width="100%" frozenColCount="3"
             id="fwList" rows="#{firmwaremanager.getRowCount()}"
             value="#{firmwaremanager.getFirmwares()}" var="fw"
             >
             <a4j:support event="onselectionchange" action="#{fw.setSelection(fw)}"/>
            
            ...
            </rich:extendedDataTable>
            </h:form>


            It doesn't produce any output.

            The code is taken from
            http://livedemo.exadel.com/richfaces-demo/richfaces/messages.jsf?c=messages&tab=usage

            Best
            Anders

            PS The link on http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/messages.html is dead it has 3 S'es
            http://livedemo.exadel.com/richfaces-demo/richfaces/messsages.jsf?c=messages