-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all,
I would like passing params to the composer of the created zulFile... Is it possible?
For exemple:
Composer1:
public void onClick() { Iframe myIFrame = new Iframe(); myIFrame.setSrc("http://anotherServer/test.zul"); // How I can pass params? And is it possible to pass object as param? }
Composer test.zul of another server:
@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); // How can I retrieve params? }
Thanks for your help,
Regards,
SHERKHAN
Here is what I used with an include component . Probably it will work with iframe too.
myIFrame.setSrc("http://anotherServer/test.zul?paramName=value")
Executions.getCurrent().getParameter(paramName)
Thanks vinhvo,
but is it possible to pass object instead string?
Thanks for your help,
Best regards,
SHERKHAN
Hi samchuang,
In my case I would like passing an parameter to another ZK application on another server. So I think I can't use createComponent() or include... But with include I don't know how we can pass object parameter...
Best regards,
SHERKHAN
Yes you are right, but in this case I can just pass string param. It's OK for me, but is it another (easy) way to pass Object param as we can do with createComponents()? It is just for my zk knowledge :).
Thanks for you help,
SHERKHAN
Asked: 2010-07-30 04:32:33 +0800
Seen: 875 times
Last updated: Aug 03 '10