xiaochong / zkui

Grails ZK UI Plugin
http://grails.org/plugin/zkui
GNU Lesser General Public License v3.0
24 stars 8 forks source link

User Session in a ZKUI Composer #68

Closed velo6raptor closed 12 years ago

velo6raptor commented 12 years ago

Hi all,

I'd like to recover the user session in a Composer, i don't know how to do ? I put the user in session in the authenticate function of the grails controller with session.util = util I'd like to recover it in a ZK page based on a Composer What is the line code, what api is called ? import org.zkoss.zk.ui.http.SimpleSession ? import org.zkoss.zk.ui.Sessions ?

Thanks

velo6raptor commented 12 years ago

Please could you give me an answer ? Thanks in advance

velo6raptor commented 12 years ago

i found no need

xiaochong commented 12 years ago

Use org.zkoss.zk.ui.Executions.current.session to get a session which was dynamic injection in zkui composer,so you can direct access to the session by getSession() mothod in composer.

velo6raptor commented 12 years ago

Thanks