Hi,
The following code still causes infinite loop:
LifecycleFactory factory = (LifecycleFactory)
FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
Lifecycle lifecycle = factory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
lifecycle.execute(iasWebCommon.getFacesContext());
lifecycle.render(iasWebCommon.getFacesContext());
When I try to interrupt it by your suggested code:
iasWebCommon.getFacesContext().renderResponse();
I have this exception:
javax.servlet.ServletException:
java.lang.StringBuffer.insert(ILjava/lang/CharSequence;)Ljava/lang/StringBuffer;
javax.faces.webapp.FacesServlet.service(FacesServlet.java:123)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:129)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
root cause
javax.faces.FacesException:
java.lang.StringBuffer.insert(ILjava/lang/CharSequence;)Ljava/lang/StringBuffer;
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:372)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:129)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
NOTE: Is this a bug, because It works with 1.1.1 or a false usage of
lifecycle implementation ?
Best Regards,
Onur
On 2/1/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> You can add my message in any case.
>
> regards,
>
> Martin
>
> On 1/31/06, Dudu <[EMAIL PROTECTED]> wrote:
> > I have a poor english, but I'll try to report it.
> > Thanks a lot.
> >
> >
> > On 1/31/06, Martin Marinschek <[EMAIL PROTECTED] > wrote:
> > > First: I've got rid of the null - and display a warning instead, now.
> > >
> > > But can you still open a jira-issue on this warning and assign Bruno
> > > Aranda to this issue?
> > >
> > > He is off to the UK until wednesday, but he'll fix it then. The
> > > problem is that we render the MyFaces javascript stuff in
> > > ViewTag.doEndTag() - now ADF-Faces will have it's own ViewTag (or
> > > document tag or whatever) and Facelets doesn't use the ViewTag at all
> > > anymore. So instead of doing it in the ViewTag, I suppose we should do
> > > it right away in the ExtensionsFilter - then it will work w or w/o
> > > MyFaces impl just perfectly.
> > >
> > > regards,
> > >
> > > Martin
> > >
> > > On 1/31/06, Dudu <[EMAIL PROTECTED]> wrote:
> > > > I'm using ADF faces too....
> > > > This 'null' starting appearing when I configured the myfaces extension
> > > > filter, and dowloaded the nightly builds...
> > > >
> > > > On 1/31/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> > > > > Grrrr, what a bug...
> > > > >
> > > > > I've tried out the MyFaces examples - even with JsCookMenu and with
> > > > > tree2, and I don't see this null. I wonder what is different in your
> > > > > setup!
> > > > >
> > > > > Are you using facelets? Are you using the RI? Are you using ADF faces?
> > > > >
> > > > > Just trying to shoot into the dark here ;)
> > > > >
> > > > > regards,
> > > > >
> > > > > Martin
> > > > >
> > > > > On 1/31/06, Dudu < [EMAIL PROTECTED]> wrote:
> > > > > > sorry...
> > > > > > but it is strange....
> > > > > > the component who I add right before the end tag </body> dissapeared
> > > > > > and the first component added is in the location before 'null' and
> > > > > > </body>
> > > > > >
> > > > > > On 1/31/06, Dudu <[EMAIL PROTECTED]> wrote:
> > > > > > > is rendered before, but a 'null' is rendered more before.......
> > > > > > > The end of document page is like this...
> > > > > > > <input text here> </form> null</body> </html>
> > > > > > >
> > > > > > > On 1/31/06, Martin Marinschek < [EMAIL PROTECTED]>
> > wrote:
> > > > > > > > Do you use client-side or server side-state-saving?
> > > > > > > >
> > > > > > > > if you put an <h:inputText> field right before the body end, is
> > it
> > > > > > > > rendered after or before?
> > > > > > > >
> > > > > > > > regards,
> > > > > > > >
> > > > > > > > Martin
> > > > > > > >
> > > > > > > > On 1/31/06, Dudu < [EMAIL PROTECTED]> wrote:
> > > > > > > > > I'm using the Myfaces nightly build of 30 january.....
> > > > > > > > > After I have configured the MyFaces Extension Filter in the
> > xml file, a
> > > > > > > > > 'null' is wireted at bottom of all pages....
> > > > > > > > >
> > > > > > > > > What is happening?
> > > > > > > > > Thanks.
> > > > > > > > >
> > > > > > > > > Ps: just once, not a 'null' , but a textfield was redered...
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >
> > > > > > > > http://www.irian.at
> > > > > > > >
> > > > > > > > Your JSF powerhouse -
> > > > > > > > JSF Consulting, Development and
> > > > > > > > Courses in English and German
> > > > > > > >
> > > > > > > > Professional Support for Apache MyFaces
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Dudu
> > > > > > > `P
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Dudu
> > > > > > `P
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > http://www.irian.at
> > > > >
> > > > > Your JSF powerhouse -
> > > > > JSF Consulting, Development and
> > > > > Courses in English and German
> > > > >
> > > > > Professional Support for Apache MyFaces
> > > > >
> > > >
> > > >
> > > > --
> > > > Dudu
> > > > `P
> > > >
> > >
> > >
> > > --
> > >
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> > >
> >
> >
> >
> > --
> > Dudu
> > `P
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>