User session in a ZKUI Composer

79 views
Skip to first unread message

cfo...@gmail.com

unread,
Jun 15, 2012, 10:41:08 AM6/15/12
to zk-ui...@googlegroups.com
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

asfer...@gmail.com

unread,
Nov 26, 2012, 5:15:50 AM11/26/12
to zk-ui...@googlegroups.com
It works by using

def cat1S = Sessions.getCurrent().getAttribute("cat1S") and
Sessions.getCurrent().setAttribute("cat1S",Categorie1.get(cat1Search.selectedItem.value))

Reply all
Reply to author
Forward
0 new messages