-
1. Re: Icefaces SessionRenderer in Seam 2.2.0
nickarls Nov 8, 2009 12:14 PM (in response to rasave)Should work, they have examples on their site
-
2. Re: Icefaces SessionRenderer in Seam 2.2.0
rasave Nov 8, 2009 12:29 PM (in response to rasave)Are there really examples where they only use the SessionRendered without the RenderManager? Could you point me to such an example? And just to sort things out: Is the expected behaviour that if I have a simple page such as:
<h:outputText value="#{bean.value} /> <ice:form> <ice:commandButton action="#{bean.longSubmit()}" value="Long submit" /> </ice:form>
And a simple Seam bean such as:
@Name("bean") @Scope(ScopeType.SESSION) public class Bean implements Serializable { public void longSubmit() { private String value = ""; SessionRenderer.addCurrentSession("test"); <-- A unit of time consuming work that sets value --> SessionRenderer.render("testCenter"); <-- Another unit of time consuming work that sets value --> SessionRenderer.render("testCenter"); } public String getValue() { return value; } }
Would it be true that the outputText on the page would be updated during thread-execution (and not after). The only way I achieved this was by setting the bean to Scope.APPLICATION and have the submit-method being @Asynchronous.. but as you probably understand I can't have that in the application...
Can someone at least point out what the expected behavior is?
-ra
-
3. Re: Icefaces SessionRenderer in Seam 2.2.0
nickarls Nov 8, 2009 12:47 PM (in response to rasave)I recall using the SR myself but can't recall when flushing is done. Judy G will probably appear and answer you soon ;-)
-
4. Re: Icefaces SessionRenderer in Seam 2.2.0
rasave Nov 8, 2009 12:55 PM (in response to rasave)Ok. I look forward to that. :)
You may also disregard that I render
testCenter
while adding the session totest
in my example above.. that was a simple copy-and-paste-mishap.-ra
-
5. Re: Icefaces SessionRenderer in Seam 2.2.0
jguglielmin Nov 17, 2009 5:18 PM (in response to rasave)For an example of SessionRenderer with Seam, you can review SeamInAction code for open18ice