"Newlukai" wrote : And what's with the original post? Should I remove all 
@DataModel anntotation s (and then remove @DataModelSelection and 
@DataModelSelectionIndex as well?)? Or is there another workaround, is it a bug 
or did I make a mistake?

I dont't think that this can be the solution, the annotation is to important. 
But I think that this is maybe a config-mistake.

Here 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">
  | 
  |     <!-- Tiles    -->      
  |     <context-param>
  |       <param-name>tiles-definitions</param-name>
  |       <param-value>/WEB-INF/tiles.xml</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <description>
  |             State saving method: "client" or "server" (= default)
  |             See JSF Specification 2.5.2
  |         </description>
  |            
  |     <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |         <param-value>client</param-value>        
  |     </context-param>
  | 
  |     <context-param>          
  |  <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
  |         <param-value>true</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
  |         <param-value>true</param-value>        
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
  |         <param-value>false</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
  |         <param-value>true</param-value>        
  |     </context-param>
  |     
  |     <!-- Faces Servlet -->
  |     <servlet>
  |         <servlet-name>Faces Servlet</servlet-name>
  |         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  |         <load-on-startup>1</load-on-startup>
  |     </servlet>
  | 
  |     <servlet-mapping>
  |         <servlet-name>Faces Servlet</servlet-name>
  |         <url-pattern>*.jsf</url-pattern>
  |     </servlet-mapping>
  |     
  |     <!-- Welcome files -->
  |     <welcome-file-list>
  |         <welcome-file>index.jsp</welcome-file>
  |     </welcome-file-list>
  | 
  |     
  |     <!-- 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>
  |             <url-pattern>*.jsf</url-pattern>
  |     </filter-mapping>
  | 
  |     <filter-mapping>
  |             <filter-name>MyFacesExtensionsFilter</filter-name>
  |            <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
  |     </filter-mapping>
  |     
  |     
  |     <!-- Seam -->
  |     <listener>
  |           
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  |     </listener>
  |     
  |     <context-param>
  |             
<param-name>org.jboss.seam.core.init.myFacesLifecycleBug</param-name>
  |             <param-value>false</param-value>
  |      </context-param>
  |     
  |     <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>*.jsf</url-pattern>
  |     </filter-mapping>    
  | 
  |     <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>*.jsf</url-pattern>
  |     </filter-mapping>
  |     
  |     <context-param>
  |         <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
  |         <param-value>kam/#{ejbName}/local</param-value>
  |     </context-param>
  |         
  |     <listener>
  |         
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |     </listener>     
  |         
  |     <!-- security requirement -->
  |     <security-constraint>
  |             <web-resource-collection>
  |                     <web-resource-name>AMT</web-resource-name>
  |                     <url-pattern>/pages/*</url-pattern>
  |             </web-resource-collection>
  |             
  |             <auth-constraint>
  |                     <role-name>login</role-name>
  |             </auth-constraint>
  |             
  |             <user-data-constraint>  
  |                    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
  |             </user-data-constraint>         
  |                                     
  |     </security-constraint>
  |     
  |     <security-role>
  |             <description>Authorized to see all webpages</description>
  |         <role-name>login</role-name>
  |     </security-role>
  |     
  |     <!-- Authentifizierung  -->
  |     <login-config>
  |             <auth-method>FORM</auth-method>
  |             <realm-name>kamEntityManager</realm-name>
  |             <form-login-config>
  |                         
<form-login-page>/pages/login/login.jsf</form-login-page>
  |                     
<form-error-page>/pages/login/error.jsf</form-error-page>
  |             </form-login-config>
  |     </login-config>    
  |     
  | </web-app>
  | 

And here the snippet from the faces-config.xml:

  | <?xml version="1.0"?>
  | <!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>
  |             <locale-config>
  |                     <default-locale>de</default-locale>
  |                     <!--
  |                     <supported-locale>en</supported-locale>
  |                     -->
  |             </locale-config>
  |             <message-bundle>
  |                     de.fhg.iff.kam.resources.messages
  |             </message-bundle>
  |     </application>
  |     
  |     <!-- seam --> 
  |     <application>
  |         
<variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>
  |     </application>
  |     
  |     <!-- managed-beans -->  
  |     <managed-bean>
  |             <managed-bean-name>DemoDate</managed-bean-name>
  |             <managed-bean-class>java.util.Date</managed-bean-class>
  |             <managed-bean-scope>request</managed-bean-scope>
  |     </managed-bean> 
  |     
  |     <!-- nav: Login  -->
  |     <navigation-rule>
  | 
  |        ...cut off...
  | 
  |     </navigation-rule>
  |     
  |     <application>
  |             
<view-handler>org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl</view-handler>
  |     </application>
  | 
  |     <!-- -->
  |     <lifecycle>
  |             
<!--phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener-->
  |              <!-- 
phase-listener>org.jboss.seam.jsf.SeamTransactionManagedPersistencePhaseListener</phase-listener-->
  |              
<phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener>
  |     </lifecycle>
  | </faces-config>
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948287#3948287

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948287


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to