myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Wessendorf <mat...@apache.org>
Subject Re: [MyFaces 2.0] <f:ajax onevent> issue
Date Thu, 31 Dec 2009 13:04:23 GMT
On Thu, Dec 31, 2009 at 11:25 AM, Matthias Wessendorf <matzew@apache.org> wrote:
> On Wed, Dec 30, 2009 at 7:27 PM, Jakob Korherr <jakob.korherr@gmail.com> wrote:
>> Hi Matthias,
>>
>> There are currently many f:ajax related bugs.
>
> Yeah, I just noticed that :-)

looks like some duplicated IDs are around when submitting Ajax requests:

java.lang.IllegalStateException: Client-id : j_id656309279_1ee968d7 is
duplicated in the faces tree. Component : j_id656309279_1ee968d7,
path: {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /ajax.xhtml][Class:
javax.faces.component.html.HtmlHead,Id: j_id656309279_1ee968f9][Class:
javax.faces.component.UIOutput,Id: j_id656309279_1ee968d7]}
	at org.apache.myfaces.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241)
	at org.apache.myfaces.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:216)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
Caused by: java.lang.IllegalStateException: Client-id :
j_id656309279_1ee968d7 is duplicated in the faces tree. Component :
j_id656309279_1ee968d7, path: {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /ajax.xhtml][Class:
javax.faces.component.html.HtmlHead,Id: j_id656309279_1ee968f9][Class:
javax.faces.component.UIOutput,Id: j_id656309279_1ee968d7]}
	at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:515)
	at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:530)
	at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:530)
	at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:468)
	at javax.faces.application.StateManager.saveView(StateManager.java:114)
	at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveView(JspStateManagerImpl.java:460)
	at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:862)
	at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:222)
	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:73)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:201)
	... 18 more


Not much time to check this out, today ;-)

Just posting here to have it search-able in the archive.....



>
>> These bugs are mostly because
>> of forgotten characters like ', \ or in your case ).
>>
>> Curtiss Howard already filed MYFACES-2458, but the problem you're seeing is
>> not mentioned yet.
>>
>> Regards,
>> Jakob
>>
>>
>> 2009/12/30 Matthias Wessendorf <matzew@apache.org>
>>>
>>> Hi,
>>>
>>> I am seeing this:
>>> missing ) after argument list
>>> [Break on this error]
>>>
>>> jsf.util.chain(document.getElementById('...d656309279_1ee9688b','j_id1670484283_385
>>>
>>> on something like:
>>>
>>> <h:commandLink value="Click me">
>>>  <f:ajax onevent="myCustomJSCallback" />
>>> </h:commandLink>
>>>
>>>
>>> Is this already known? Otherwise I will file a bug on that (I am
>>> running on trunk)
>>>
>>> -Matthias
>>>
>>> --
>>> Matthias Wessendorf
>>>
>>> blog: http://matthiaswessendorf.wordpress.com/
>>> sessions: http://www.slideshare.net/mwessendorf
>>> twitter: http://twitter.com/mwessendorf
>>
>>
>
>
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Mime
View raw message