[JBoss-user] [JBoss Seam] - Re: @Factory ([EMAIL PROTECTED]) method called repeatedly on every req
Hi it seams to be the case... the f:view was in the template, we moved it here for the test's sake. The "View Transactions" button is the one doing the problem. On the GET request (when the page is loaded for the first time) a @Factory and @Begin initialize() is called to initialize the transactionList DataModel. When the "View Transactions" is pushed the list of transactions should be filtered accordingly the restriction given in the input field "transactionCode". This happens (the filter method is called and the transactionList is updated ), but first the initialize method is called one more time. After this it works ok - pushing the "View Transactions" button only updates the model, the factory method is not called again, i.e. the conversational context is estimated. | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | | http://www.w3.org/1999/xhtml"; xmlns:ui="http://java.sun.com/jsf/facelets"; xmlns:h="http://java.sun.com/jsf/html"; xmlns:f="http://java.sun.com/jsf/core"; > | | | | Next generation PMX - Prototype: Transaction view | | | | | conversationId="#{conversation.id}" | | Transaction code: | | | | | | | | | | Transaction code | #{trans.identifier} | | | Description | #{trans.description} | | | Type | #{trans.transactionType} | | | Status | | | | | Supplier | #{trans.materialDefinition.supplier} | | | Material | #{trans.materialDefinition.identifier} | | | | | Quantity | #{trans.orderedQuantity.value} | #{trans.orderedQuantity.unit} | | | Edit | Edit | | | Process | Process | | | View | View | | | | | | | | Regards, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927787#3927787 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927787 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @Factory ([EMAIL PROTECTED]) method called repeatedly on every req
Hi Gavin, Just re-checked this again w/ Seam beta 2... The second request is a JSF Postback triggered by an inside a . Funny enough s on the same page work properly... Are these both handled differently?! We also put the conversation id on the form and one can clearly see that after pushing the it is another conversation... cu, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927768#3927768 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927768 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @Factory ([EMAIL PROTECTED]) method called repeatedly on every req
Ok the last was a dead-end, so I am where I was before... the @Factory method beeing called twice. Any hints are welcome! Wrong configuration? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913095#3913095 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913095 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @Factory ([EMAIL PROTECTED]) method called repeatedly on every req
Hmmm, could it be that JspStateManagerImpl.saveSerializedView only does save changes done to the FacesContext when it is called for the first time? | ... | if (serializedView == null) | { | // first call to saveSerializedView --> create SerializedView | Object treeStruct = getTreeStructureToSave(facesContext); | Object compStates = getComponentStateToSave(facesContext); | serializedView = new StateManager.SerializedView(treeStruct, compStates); | externalContext.getRequestMap().put(SERIALIZED_VIEW_REQUEST_ATTR, | serializedView); | } | ... | well it gets called twice from StateManagerInterceptor.saveSerializedView the second time after the @Factory/@Begin call w/ the updated FacesContext and this code segment gets skipped... cu, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912611#3912611 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912611 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @Factory ([EMAIL PROTECTED]) method called repeatedly on every req
Ok I do not know if this is relevant but on the second request (after the @Factory and @Begin method is called on the the first request) in org.jboss.seam.core.Manager::restore() the storedConversationId is null and a new id gets generated (Id.nextId()). In difference on the next request the id is restored properly. cu, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912570#3912570 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912570 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: @Factory ([EMAIL PROTECTED]) method called repeatedly on every req
Hi Gavin, No don't think so, the timeout was set pretty high. I did set it even higher today: | | org.jboss.seam.core.manager.conversationTimeout | 360 | | but with no effect. Plus - if the conversation gets timed out the SFSB should be destroyed, right? And the brakepoint in the @Destroy method gets never called before undeploy. cu, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912565#3912565 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912565 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - @Factory ([EMAIL PROTECTED]) method called repeatedly on every request
Hi, We are using a @Factory method to initialize and @Begin conversation. So far so good, the corresponding variable gets initialized and the conversation gets started. The strange thing is that the corresponding member that gets initialized by the @Factory method is later not found in the conversational context, correspondingly the Factory gets called again. We did step through the stuff and it seams that old conversation id is not found, a new one is generated, correspondingly a new instance of the backing SFSB... One can also see the different SFSBs getting destroyed on undeploy. Any ideas? The source is trivial | @org.jboss.seam.annotations.datamodel.DataModel | private List transactionList; | ... | @org.jboss.seam.annotations.Factory("transactionList") | @org.jboss.seam.annotations.Begin | public String initialize() { | log.info("initialize"); | // fetch some data from the DB and set it to this.transactionList | intFilter(); | return "transactionlist"; | } | | In another conversation we have the variant w/ a @In/@Out variable w/ the same effect. We are using latest CVS version. Related topics (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=73310, http://www.jboss.com/index.html?module=bb&op=viewtopic&t=72267, http://www.jboss.com/index.html?module=bb&op=viewtopic&t=73702) cu & thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912397#3912397 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912397 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Conversation start with @Factory ?
Cool, we give it a try! :) thanks, Lachezar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911669#3911669 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911669 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Conversation start with @Factory ?
Hi lcoetzee, Did you get it working? We have similar problem right now. And I was wondering about the return value of your @Factory and @Begin method. The docu says: anonymous wrote : @Begin: Specifies that a long-running conversation begins when this method returns a non-null outcome without exception. ... and your method is void, right? Has this been changed? In the special case of @Factory and @Begin? On the other hand -> which outcome should be returned here... cu, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911659#3911659 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911659 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user