But how for example will it then be possible to run time intensive
functions while updating the process status within the gui?
I think in a MVC or event driven environment it must be possible to
completly seperate the business logic from the gui.
In Swing for example it is the usual way to put time intensive actions
into an own thread. e.g. time consuming database queries of which the
results shall be displayed after a while, without freezing the whole gui.

regards
/thomas

Johan Compagner wrote:
> First of all you shouldn't really access the session in another thread.
> Because that is not really supported by a webcontainer, especially in
> clustering or persistent storage..
> 
> So if you want to spawn to a thread you should only really do backend
> logic, not gui logic things.
> 
> If you really want then you could look at Session.set/get and
> Application.set/get
> 
> johan
> 
> 
> On 3/14/07, *Thomas Küchenthal* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     Dear all,
> 
>     within my Wicket application I'm using a self build process
>     framework. I
>     klick on a wicket button and a process starts running in an own thread.
>     I want the process thread to take over the control of the wicket thread
>     to e.g. build the gui, or change the current model of a component
>     etc...
>     (Actually I'm using the wizard component and want to combine/synchronize
>     my own process steps with the wizard steps)
> 
>     But for now I receive this error message:
> 
>     caused by: wicket.WicketRuntimeException : there is no session attached
>     to current thread Thread-51
>             at wicket.Session.get(Session.java:210)
>             at wicket.Page.dirty(Page.java:338)
>             at wicket.Page.componentStateChanging(Page.java:956)
>             at wicket.Component.addStateChange(Component.java:2347)
> 
> 
> 
>     How can I attach the process thread to the wicket thread?
> 
>     Thanks in advance
> 
>     /thomas
> 
>     -------------------------------------------------------------------------
> 
>     Take Surveys. Earn Cash. Influence the Future of IT
>     Join SourceForge.net's Techsay panel and you'll get the chance to
>     share your
>     opinions on IT & business topics through brief surveys-and earn cash
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     _______________________________________________
>     Wicket-user mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/wicket-user
>     <https://lists.sourceforge.net/lists/listinfo/wicket-user>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to