myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fassel <...@elfwyn.net>
Subject Re: [Trinidad] Problems Configuring Application for Use with MyFaces Trinidad and Facelets
Date Wed, 25 Feb 2009 14:40:43 GMT
Using the 1.1.14 Libs did not help - the Problem is the same as before.

As I have said earlier I have to use an earlier Version of the el-api 
and el-ri jars
They are from facelets 1.0.1 as suggested in this Article:
http://forums.java.net/jive/thread.jspa?messageID=154133

I have already consultet with the wiki and other sources,
but this special configuration with this specific error doesn't seem to 
be covered yet.

However - since I'm new to this technology there might be things that I 
have missed while
configuring the Application.

Thanks for the help

S.Fassel

Richard Yee wrote:
> Check the trinidad wiki. I think you need to upgrade to facelets 1.1.14
>
> -R
>
> Sent from my iPhone
>
> On Feb 25, 2009, at 5:15 AM, Stefan Fassel <dev@elfwyn.net> wrote:
>
>> Hello
>>
>> I am having Problems porting a small functioning MyFaces Core Page to 
>> Trinidad.
>>
>> To make the rendering of the Trinidad-based xhtml Page work I have 
>> added the Default Render Kit ID:
>> <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>

>>
>> and removed the Facelets View Handler:
>> <!--view-handler>com.sun.facelets.FaceletViewHandler</view-handler-->
>> from faces-config.xml
>>
>> After this the Button Actions cease to work properly and the Action 
>> Method previously working with
>> MyFaces Core TagLibs is not executed. Neither is the Browser 
>> redirected to the intended target Page.
>>
>> The widgets seem to be rendered correctly as far as I can see.
>>
>> Maybe the EL-Expressions in the xhtml - Page are not evaluated anymore?
>> Maybe something with the removal of the FaceletsViewHandler?
>>
>> Environment is:
>> Tomcat 5.5.23
>> Trinidad 1.0.10
>> MyFaces 1.1.6
>> Facelets 1.1.11with EL-Libraries from an older Version for 
>> Compatibility reasons.
>>
>> Restrictions are Java 1.4 and JSF 1.1
>>
>> Here is the relevant part of the web.xml I'm using:
>>
>>   <context-param>
>>       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
>>       <param-value>.xhtml</param-value>
>>   </context-param>
>>   <context-param>
>>       <param-name>facelets.VIEW_MAPPINGS</param-name>
>>       <param-value>*.xhtml</param-value>
>>   </context-param>
>>   <context-param>
>>       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>>       <param-value>client</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION</param-name>

>>
>>       <param-value>true</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>

>>
>>       <param-value>false</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
>>       <param-value>false</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>

>>
>>       <param-value>true</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
>>       <param-value>session</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</param-name>

>>
>>       <param-value>true</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY</param-name>
>>       <param-value>512000</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name>

>>
>>       <param-value>5120000</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR</param-name>
>>       <param-value>/tmp</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.resource.DEBUG</param-name>
>>       <param-value>true</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS</param-name>

>>
>>       <param-value>3</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METHOD</param-name>
>>       <param-value>all</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.DIALOG_NAVIGATION_PREFIX</param-name>

>>
>>       <param-value>userInputHere:</param-value>
>>   </context-param>
>>   <context-param>
>>       
>> <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>

>>
>>       <param-value>com.sun.facelets.FaceletViewHandler</param-value>
>>   </context-param>
>>   <context-param>
>>       <param-name>facelets.SKIP_COMMENTS</param-name>
>>       <param-value>true</param-value>
>>   </context-param>
>>     <filter>
>>       <filter-name>trinidad</filter-name>
>>       
>> <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>

>>
>>   </filter>
>>   <filter-mapping>
>>       <filter-name>trinidad</filter-name>
>>       <servlet-name>FacesServlet</servlet-name>
>>   </filter-mapping>
>>
>>   <listener>
>>       
>> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>

>>
>>   </listener>
>>
>>   <!-- Faces Servlet -->
>>   <servlet>
>>       <servlet-name>FacesServlet</servlet-name>
>>       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>>       <!--load-on-startup>1</load-on-startup-->
>>   </servlet>
>>   <!-- Resource Loader Servlet -->
>>   <servlet>
>>       <servlet-name>resources</servlet-name>
>>       
>> <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>

>>
>>   </servlet>
>>
>>   <servlet-mapping>
>>       <servlet-name>FacesServlet</servlet-name>
>>       <url-pattern>*.jsf</url-pattern>
>>   </servlet-mapping>
>>   <servlet-mapping>
>>       <servlet-name>FacesServlet</servlet-name>
>>       <url-pattern>/faces/*</url-pattern>
>>   </servlet-mapping>
>>   <servlet-mapping>
>>       <servlet-name>resources</servlet-name>
>>       <url-pattern>/adf/*</url-pattern>
>>   </servlet-mapping>
>>
>>
>>
>>


Mime
View raw message