users@glassfish.java.net

Re: JSF tags are not renedered on web page!!!

From: shamanth hegde <shamanth12_at_gmail.com>
Date: Mon, 1 Aug 2011 11:45:17 +0530

Thanks jason..
Updated faces-config.xml to 2.0.
But still JSF tags are not rendered..:(
I guess i am missing some specific setting in deployment descriptor.

Regards,
Shamanth

On Sat, Jul 30, 2011 at 7:37 AM, Jason Lee <jason.d.lee_at_oracle.com> wrote:

> Try updating your faces-config to 2.0. It's at 1.1 right.now, so Faceless
> is not being used.
>
> Sent from my Verizon Wireless Phone
>
>
> ----- Reply message -----
> From: "shamanth hegde" <shamanth12_at_gmail.com>
> Date: Fri, Jul 29, 2011 7:47 am
> Subject: JSF tags are not renedered on web page!!!
> To: <users_at_glassfish.java.net>
>
> Hi,
>
> I have written some simple xhtml code for login to an application.
> But the <h: tags in these files are not rendered on the web page and the
> web
> page only displays the html related tags.
> Below is my web.xml and faces-config.xml
>
> web.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="3.0" 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-app_3_0.xsd">
> <context-param>
> <param-name>javax.faces.PROJECT_STAGE</param-name>
> <param-value>Development</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-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>/faces/*</url-pattern>
> </servlet-mapping>
> <session-config>
> <session-timeout>
> 30
> </session-timeout>
> </session-config>
> <welcome-file-list>
> <welcome-file>Login.xhtml</welcome-file>
> </welcome-file-list>
>
> </web-app>
>
>
> 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>
> <navigation-rule>
> <from-view-id>Login.xhtml</from-view-id>
> <navigation-case>
> <from-action>#{loginBean.authenticateUser}
> </from-action>
> <from-outcome>success</from-outcome>
> <to-view-id>Welcome.xhtml</to-view-id>
> </navigation-case>
> <navigation-case>
> <from-action>#{loginBean.authenticateUser}
> </from-action>
> <from-outcome>failure</from-outcome>
> <to-view-id>Login.xhtml</to-view-id>
>
> </navigation-case>
> </navigation-rule>
> <managed-bean>
> <managed-bean-name>loginBean</managed-bean-name>
>
> <managed-bean-class>hiringPortal.backingBean.LoginBean</managed-bean-class>
>
> <managed-bean-scope>session</managed-bean-scope></managed-bean>
>
> </faces-config>
>
> Also have two jsf librbaries(jsf-api.jar and jsf-impl.jar) in WEB-INF/lib
> directory of the project.
>
> But somehow the JSF <h: tags are not parsed and rendered on the web page.
>
> Please let me know whether i am missing anything here.
>
> Thanks in advance.
>
> Regards,
> Shamanth
>
>
>