IceFaces & Seam 1.1CR1 -> <h:dataTabe problem...
sherkan777 Nov 27, 2006 9:25 AMHi All,
I have page with <h:dataTable "Person" of objects
Person has: id, name, surename, etc.
@Stateful
@Name("sampleAction")
@Scope(ScopeType.CONVERSATION)
public class SampleAction implements SampleConsole {
public SampleAction() {}
@In(scope=ScopeType.SESSION, value="person", required=false)
private Person person;
@PersistenceContext
private EntityManager em;
@DataModel
private List<Person> personList;
@DataModelSelection
private Person selectedPerson;
And page:
<h:dataTable id="personsTable"
rows="20"
var="person"
value="#{personList}"
style="border: none; width: 100%;"
cellpadding="0"
cellspacing="0">
<ice:column>
<f:facet name="header">
<h:outputText value="myHead"/>
</f:facet>
<h:outputText value="#{person.name}"/>
<s:link value="#{person.topic}" action="#{sampleAction.selectPerson}"/>
</h:column>
Everythink works fine, when I open page i see name of all persons (16rows).
Today I've changed Seam 1.1 Beta to 1.1CR1. (I want to use IceFaces).
I've changed web.xml, and faces-config.xml as in example "icefaces", and when I started my project I saw, nothing! :/
I see dattable with 16 rows, but there where should be a person's name there is clear area with nothink. I have no errors on Jboss console.
Here's my web.xml
<?xml version="1.0" ?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <listener> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> </listener> <!-- <filter> <filter-name>Seam Redirect Filter</filter-name> <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class> </filter> <filter-mapping> <filter-name>Seam Redirect Filter</filter-name> <url-pattern>*.seam</url-pattern> </filter-mapping> --> <!-- Tomahawk--> <filter> <filter-name>MyFacesExtensionsFilter</filter-name> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> <init-param> <param-name>maxFileSize</param-name> <param-value>20m</param-value> </init-param> </filter> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <servlet-name>Faces Servlet</servlet-name> </filter-mapping> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> </filter-mapping> <!-- /Tomahawk --> <filter> <filter-name>Seam Exception Filter</filter-name> <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class> </filter> <filter-mapping> <filter-name>Seam Exception Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>client</param-value> </context-param> <context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.xhtml</param-value> </context-param> <context-param> <param-name>facelets.DEVELOPMENT</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>com.icesoft.faces.actionURLSuffix</param-name> <param-value>.seam</param-value> </context-param> <context-param> <param-name>com.icesoft.faces.synchronousUpdate</param-name> <param-value>true</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>Blocking Servlet</servlet-name> <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class> <load-on-startup> 1 </load-on-startup> </servlet> <servlet> <servlet-name>Persistent Faces Servlet</servlet-name> <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Persistent Faces Servlet</servlet-name> <url-pattern>/xmlhttp/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Persistent Faces Servlet</servlet-name> <url-pattern>/xmlhttp/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Persistent Faces Servlet</servlet-name> <url-pattern>*.iface</url-pattern> </servlet-mapping> <!-- Blocking Servlet Mapping --> <servlet-mapping> <servlet-name>Blocking Servlet</servlet-name> <url-pattern>/block/*</url-pattern> </servlet-mapping> <!-- Faces Servlet Mapping --> <servlet-mapping> <servlet-name>Persistent Faces Servlet</servlet-name> <url-pattern>*.seam</url-pattern> </servlet-mapping> <!-- MyFaces --> <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener> <servlet> <servlet-name>Seam Remoting</servlet-name> <servlet-class>org.jboss.seam.remoting.SeamRemotingServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Seam Remoting</servlet-name> <url-pattern>/seam/remoting/*</url-pattern> </servlet-mapping> <!-- <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.seam</url-pattern> </servlet-mapping> --> <context-param> <param-name>facelets.LIBRARIES</param-name> <param-value>/WEB-INF/tomahawk.taglib.xml</param-value> </context-param> </web-app>
and faces-config.xml:
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"> <faces-config> <application> <view-handler>com.icesoft.faces.facelets.D2DSeamFaceletViewHandler</view-handler> </application> <!-- <application> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> </application> --> <lifecycle> <phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener> </lifecycle> <application> <message-bundle>messages</message-bundle> <locale-config> <default-locale>pl</default-locale> <supported-locale>en</supported-locale> </locale-config> </application> <navigation-rule> <navigation-case> <from-outcome>home</from-outcome> <to-view-id>/home.xhtml</to-view-id> <redirect /> </navigation-case> </navigation-rule> </faces-config>
I've changed <h:datatable to <ice:datatable, <ice:column and <ice:outputText but still nothing.
Can anyone tell me why I see nothing on my table after migration to seam 1.1CR1.