[jboss-user] [JBoss Seam] - Re: ajax4jsf and outjecting to conversations
baz
do-not-reply at jboss.com
Wed Feb 21 04:46:59 EST 2007
More information:
For both versions i do:
I start my app and navigate to the page containing my button then clearing the console and pressing the button
The generated debug output was compared:
*** C:\TEMP\filenonajax.txt Wed Feb 21 09:32:52 2007
| --- C:\TEMP\fileajax.txt Wed Feb 21 09:33:21 2007
| ***************
| *** 0 ****
| --- 1,3 ----
| + DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter: Filter start request processing at 21.02.07 09:24 for uri: /baz/faces/pages/showExperiment.xhtml
| + DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter: Incoming request has Content-Type header without character encoding: application/x-www-form-urlencoded
| + DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter: Filter request output to XML
| ***************
| *** 14 ****
| ! DEBUG org.jboss.seam.jsf.AbstractSeamPhaseListener: After restoring conversation context: ConversationContext(6)
| --- 17 ----
| ! DEBUG org.jboss.seam.jsf.AbstractSeamPhaseListener: After restoring conversation context: ConversationContext(20)
| ***************
| *** 21 ****
| ! DEBUG org.ajax4jsf.framework.renderer.AjaxContainerRenderer: Request parameters map org.apache.myfaces.context.servlet.RequestParameterMap at dea215
| --- 24 ----
| ! DEBUG org.ajax4jsf.framework.renderer.AjaxContainerRenderer: Request parameters map org.apache.myfaces.context.servlet.RequestParameterMap at c2e526
| ***************
| *** 552 ****
| ! DEBUG org.jboss.seam.core.Manager: Storing conversation state: 6
| --- 555 ----
| ! DEBUG org.jboss.seam.core.Manager: Storing conversation state: 20
| ***************
| *** 576 ****
| --- 580,582 ----
| + DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter: Finished request processing total time 141ms for uri: /baz/faces/pages/showExperiment.xhtml
| + DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter: Filter start request processing at 21.02.07 09:24 for uri: /baz/faces/managePages/experiment/createAnalysis.xhtml
| + DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter: Filter request output to XML
| ***************
| *** 587,589 ****
| ! DEBUG org.jboss.seam.core.Manager: Found conversation id in request parameter: 6
| ! DEBUG org.jboss.seam.core.Manager: Restoring conversation with id: 6
| ! DEBUG org.jboss.seam.jsf.AbstractSeamPhaseListener: After restoring conversation context: ConversationContext(6)
| --- 593,597 ----
| ! DEBUG org.jboss.seam.core.Events: Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.facesPage
| ! DEBUG org.jboss.seam.core.Events: Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.facesPage
| ! DEBUG org.jboss.seam.core.Events: Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.facesPage
| ! DEBUG org.jboss.seam.core.Manager: No stored conversation, or concurrent call to the stored conversation
| ! DEBUG org.jboss.seam.jsf.AbstractSeamPhaseListener: After restoring conversation context: ConversationContext(21)
| ***************
|
I have detected that the ajax version stores conversation context 20 but cannot restore it.
Whereas the nonajax version stores context 6 and was able to restore it.
For this output i set the option in log4j as this:
| log4j.rootLogger=debug, stdout
|
| log4j.logger.de.bafz=debug
| log4j.logger.org.jboss.seam=debug
| log4j.logger.org.jboss.seam.jsf.SeamVariableResolver=error
| log4j.logger.org.jboss.seam.Component=error
| log4j.logger.org.jboss.seam.contexts.Contexts=error
| log4j.logger.org.jboss.seam.util.Naming=error
| log4j.logger.org.jboss.resource.connectionmanager.IdleRemover=error
|
When setting Component,Contexts and SeamVariableResolver i get a very different logging output. I am currently examining this diffs. Will report later
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019791#4019791
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019791
More information about the jboss-user
mailing list