You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ur...@bluemail.ch on 2006/06/04 21:12:56 UTC
action property
I like to add an action property to my component. In the call I get this
exception.
I get the same exception when I use outputLink.
Any advices?
javax.servlet.ServletException: No faces context?!
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.account_jsp._jspService(org.apache.jsp.account_jsp:95)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Re: action property
Posted by Matthias Wessendorf <ma...@apache.org>.
Hi
*.faces is mapped to your JSP
A simple explanation:
A request to /foo.faces goes to the FacesServlet.
And through the "infrastructure" of JSF (lifecycle for instance)
Finally the "tags" in foo.jsp got rendered during Phase 6 of the
lifecycle (called "render response") and the *rendered* content will
be shown in your browser.
So, no access to a *.jsp inside of browsers address bar, when trying
to access a Faces application
-Matthias
On 6/4/06, urswagner@bluemail.ch <ur...@bluemail.ch> wrote:
>
> Yes this would work, but I think this is not solution. I think *.jsp should
> be mapped to *.faces.
> I think this entry in web.xml should do it.
>
> <servlet-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>*.faces</url-pattern>
> </servlet-mapping>
>
> >-- Original-Nachricht --
> >Reply-To: "MyFaces Discussion" <us...@myfaces.apache.org>
> >Date: Sun, 04 Jun 2006 21:33:02 +0200
> >From: Ondrej Svetlik <on...@svetlik.info>
> >To: MyFaces Discussion <us...@myfaces.apache.org>
> >Subject: Re: action property
> >
> >
> >urswagner@bluemail.ch wrote:
> >> I like to add an action property to my component. In the call I get this
> >> exception.
> >> I get the same exception when I use outputLink.
> >> Any advices?
> >>
> >> javax.servlet.ServletException: No faces context?!
> >> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
> >> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
> >> org.apache.jsp.account_jsp._jspService(org.apache.jsp.account_jsp:95)
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
> >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> >> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> >>
> >>
> >
> >I get the same exception when pointing to page.jsp instead of
> >page.faces. Is that your problem?
> >
> >Best regards
> >
> >Ondrej Svetlik
>
>
--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com
Re: action property
Posted by ur...@bluemail.ch.
Yes this would work, but I think this is not solution. I think *.jsp should
be mapped to *.faces.
I think this entry in web.xml should do it.
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
>-- Original-Nachricht --
>Reply-To: "MyFaces Discussion" <us...@myfaces.apache.org>
>Date: Sun, 04 Jun 2006 21:33:02 +0200
>From: Ondrej Svetlik <on...@svetlik.info>
>To: MyFaces Discussion <us...@myfaces.apache.org>
>Subject: Re: action property
>
>
>urswagner@bluemail.ch wrote:
>> I like to add an action property to my component. In the call I get this
>> exception.
>> I get the same exception when I use outputLink.
>> Any advices?
>>
>> javax.servlet.ServletException: No faces context?!
>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
>> org.apache.jsp.account_jsp._jspService(org.apache.jsp.account_jsp:95)
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>>
>>
>
>I get the same exception when pointing to page.jsp instead of
>page.faces. Is that your problem?
>
>Best regards
>
>Ondrej Svetlik
Re: action property
Posted by Ondrej Svetlik <on...@svetlik.info>.
urswagner@bluemail.ch wrote:
> I like to add an action property to my component. In the call I get this
> exception.
> I get the same exception when I use outputLink.
> Any advices?
>
> javax.servlet.ServletException: No faces context?!
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
> org.apache.jsp.account_jsp._jspService(org.apache.jsp.account_jsp:95)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
>
I get the same exception when pointing to page.jsp instead of
page.faces. Is that your problem?
Best regards
Ondrej Svetlik