[jboss-user] [JBoss Seam] - Re: seam integration with trinidad

pratap_pps do-not-reply at jboss.com
Thu Dec 27 23:19:30 EST 2007


I changed it to createRuleBean, still the problem remains the same....

import java.util.Arrays;
import java.util.List;

import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;

import org.apache.myfaces.trinidad.component.core.input.CoreInputFile;
import org.apache.myfaces.trinidad.component.core.input.CoreInputText;
import org.apache.myfaces.trinidad.component.core.input.CoreSelectBooleanCheckbox;
import org.apache.myfaces.trinidad.component.core.input.CoreSelectOneChoice;
import org.apache.myfaces.trinidad.component.core.nav.CoreCommandButton;
import org.apache.myfaces.trinidad.component.core.output.CoreOutputLabel;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.*;

@Name("createRuleBean")
@Scope(ScopeType.SESSION)
/**
 * 
 * Backing bean for the createRule page
 *
 */
public class CreateRuleBean 
{
	private CoreOutputLabel label01;

........

I am also attaching the web.xml and faces-config.xml

<faces-config version="1.2"
   xmlns="http://java.sun.com/xml/ns/javaee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">

 
  
    <!-- Use the ADF RenderKit -->
    
    <!-- DEFAULT/SUPPORTED LOCALE/S FOR THE DEMO -->
   
 <default-render-kit-id>
      org.apache.myfaces.trinidad.core
    </default-render-kit-id>

        
	

  
      
   <!-- seam on JSF 1.2 -->
  
   

   <el-resolver>
           org.jboss.seam.jsf.SeamELResolver
       </el-resolver>
       

	  

	
        <phase-listener>
            org.jboss.seam.jsf.SeamPhaseListener
        </phase-listener>
    
</faces-config>






<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
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">
    
	<!-- rich faces -->

<context-param>
  <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
  <param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>

   	
 
    <!-- Seam -->           
                  
      <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>        
        
    
      <filter-name>Seam Filter</filter-name>
      <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
    

    <filter-mapping>
      <filter-name>Seam Filter</filter-name>
      <url-pattern>/*</url-pattern>
    </filter-mapping>
    
    
      <servlet-name>Seam Resource Servlet</servlet-name>
      <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
    
    
    <servlet-mapping>
      <servlet-name>Seam Resource Servlet</servlet-name>
      <url-pattern>/seam/resource/*</url-pattern>
    </servlet-mapping>     
    
    
	<!-- Trinidad -->

	
  
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
  

    
  <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
  </filter-mapping>

 <!-- resource loader servlet -->
  
    <servlet-name>resources</servlet-name>
    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
  

  <!-- source code servlet -->
  
    <servlet-name>source</servlet-name>
    <servlet-class>org.apache.myfaces.trinidaddemo.webapp.SourceCodeServlet</servlet-class>
  

  <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>source</servlet-name>
    <url-pattern>*.source</url-pattern>
  </servlet-mapping>


    <!-- Faces Servlet -->
    
    
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
    
    
    <!-- Faces Servlet Mapping -->
    
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.seam</url-pattern>
    </servlet-mapping>
    
    <!-- JSF parameters -->
    
    <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>
    
    
        <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
     
        
    <session-config>
        <session-timeout>10</session-timeout> 
    </session-config> 
    
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list> 

</web-app>


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

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



More information about the jboss-user mailing list