myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Kurz <michi.k...@gmx.at>
Subject Re: Configuration problem?
Date Wed, 17 Feb 2010 20:48:09 GMT
OK, I see your problem. You use Facelets which does not know how to deal 
with jsp tags. Therefore they are rendered "as is".

-
Michael

Am 17.02.2010 20:49, schrieb Jozef Dropco:
> Hi Michael, here is whole web.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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">
> <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>
> <!-- Set to true for using the lightweight dialog feature -->
> <context-param>
> <param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</param-name>
>
> <param-value>false</param-value>
> </context-param>
> <!-- Temporary internal flag to set to enabled and test Optimized PPR -->
> <context-param>
> <param-name>org.apache.myfaces.trinidadinternal.ENABLE_PPR_OPTIMIZATION</param-name>
>
> <param-value>false</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.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.resource.DEBUG</param-name>
> <param-value>false</param-value>
> </context-param>
> <context-param>
> <param-name>org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT</param-name>
> <param-value>true</param-value>
> </context-param>
> <context-param>
> <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
> <param-value>org.apache.myfaces.trinidadinternal.facelets.TrinidadFaceletViewHandler</param-value>
>
> </context-param>
> <context-param>
> <param-name>org.apache.myfaces.trinidad.FACELETS_VIEW_MAPPINGS</param-name>
> <param-value>*.xhtml</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>faces</servlet-name>
> </filter-mapping>
> <!-- Faces Servlet -->
> <servlet>
> <servlet-name>faces</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> </servlet>
> <!-- resource loader servlet -->
> <servlet>
> <servlet-name>resources</servlet-name>
> <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
>
> </servlet>
> <!-- Faces Servlet Mappings -->
> <servlet-mapping>
> <servlet-name>faces</servlet-name>
> <url-pattern>/faces/*</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>faces</servlet-name>
> <url-pattern>*.faces</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>resources</servlet-name>
> <url-pattern>/adf/*</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>resources</servlet-name>
> <url-pattern>/afr/*</url-pattern>
> </servlet-mapping>
> </web-app>
>
> And I have tried rename files, but no change at all
> Thanks,
> Jozef
>
> On 17.2.2010 16:01, Michael Kurz wrote:
>> Hi Jozef,
>>
>> you mention that you have jsp content in xhtml files. There might be a
>> problem with the context parameter javax.faces.DEFAULT_SUFFIX and/or
>> your servlet mapping. Can you supply these infos (from your web.xml)?
>>
>> Have you tried renaming your file from *.xhtml to *.jsp?
>>
>> regards
>> Michael
>>
>>
>> Am 17.02.2010 12:33, schrieb Jozef Dropco:
>>> I have following problem that I am not able to solve, I think I made
>>> somewhere mistake.
>>> Code:
>>> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
>>> xmlns:tr="...trinidad...">
>>> <jsp:directive.page
>>> contentType="text/html;charset=utf-8"></jsp:directive.page>
>>>
>>> This I have in xhtml file. Problem is when I deploy it on server and try
>>> it everything seems allright, but when I open source code I see this:
>>> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
>>>
>>> <jsp:directive.page
>>> contentType="text/html;charset=utf-8"></jsp:directive.page>
>>>
>>> What Am I doing wrong please help
>>

Mime
View raw message