6 Replies Latest reply on Apr 11, 2007 3:42 PM by sergeysmirnov

    dataTable

    konikoni

      The method of sessionbean doesn't fire, what i do wrong?

      I use latest seam and the session bean is stateless.

      <s:div id="tbl" style="margin-top:5px" rendered="#{not empty fahrzeugList}">
       <h:form>
       <rich:dataTable
       onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       cellpadding="0" cellspacing="0"
       width="900" border="0" var="kfz" value="#{fahrzeugList}">
      
       <rich:column>
       <f:facet name="header">
       <h:outputText value="FNr"/>
       </f:facet>
       <h:outputText value="#{kfz.id}"/>
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Kategorie"/>
       </f:facet>
       <h:outputText value="#{kfz.category}"/>
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Fabrikat"/>
       </f:facet>
       <h:outputText value="#{kfz.hersteller.bezeichnung}"/>
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Modell"/>
       </f:facet>
       <h:outputText value="#{kfz.kfzmodel.bezeichnung}"/>
       </rich:column>
      
       <rich:column>
       <f:facet name="header">
       <h:outputText value=""/>
       </f:facet>
       <h:commandLink action="#(fedit.editKfz}" value="Bearbeiten" reRender="tbl" />
       </rich:column>
      
       </rich:dataTable>
       </h:form>


        • 1. Re: dataTable
          triplex_1

          hi - sry but i don't know your problem but i see you use richfaces!!

          rich:dataTable

          could u tell me how u manage this?

          i need this one:

          <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>

          - this doesn't works in my case...

          thx
          triplex

          • 2. Re: dataTable
            konikoni

            xmlns:rich="http://richfaces.ajax4jsf.org/rich"

            The table works, but the action(session bean method) doesn't execute.

            • 3. Re: dataTable
              triplex_1

              hmm - i have a .jsp file!! not xhtml..

              <xmlns:rich="http://richfaces.ajax4jsf.org/rich">
              <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
              <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
              <%@ taglib uri="http://www.exadel.com/vcp/components" prefix="vcp"%>
              <html>
              <title>Willkommen zum PIS-PatientenInformationsSystem</title>
              <body>
              <f:view>
               <h:form>
               <rich:dataTable border="1" value="#{searchBean.al}" var="patient" cellpadding="1" cellspacing="1">
               <rich:column>
               <h:outputText value="#{patient.svnr}"/>
               </rich:column>
               </rich:dataTable>
               </h:form>
              </f:view>
              </body>
              </html>


              i added your tip - but i think this is false how i did it - isn't it?
              sry that i spamm your thread but i wanted my richfaces to work:/

              thx:)
              triplex

              • 4. Re: dataTable
                konikoni

                You need ajax4jsf, richfaces based on it:

                xmlns:rich="http://richfaces.ajax4jsf.org/rich"
                 xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"


                Configs in web.xml:

                <filter>
                 <display-name>Ajax4jsf Filter</display-name>
                 <filter-name>ajax4jsf</filter-name>
                 <filter-class>org.ajax4jsf.Filter</filter-class>
                 </filter>
                
                
                 <filter-mapping>
                 <filter-name>ajax4jsf</filter-name>
                 <url-pattern>*.jsf</url-pattern>
                 </filter-mapping>
                
                 <context-param>
                 <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                 <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.ajax4jsf.SKIN</param-name>
                 <param-value>blueSky</param-value>
                 </context-param>



                You nedd libs from a4j and richfaces

                • 5. Re: dataTable
                  konikoni

                  <h:commandLink action="#(fedit.editKfz}" value="Bearbeiten" reRender="tbl" />


                  action="#(fedit.editKfz}" "(" instead of "{"

                  I see no different between, because my resolution is very high:)

                  • 6. Re: dataTable

                     

                    "triplex_1" wrote:

                    <xmlns:rich="http://richfaces.ajax4jsf.org/rich">
                    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
                    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
                    <%@ taglib uri="http://www.exadel.com/vcp/components" prefix="vcp"%>
                    


                    It should be:

                    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
                    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
                    <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
                    


                    Be careful with the basic stuff.