0

this.execution null

asked 2016-05-04 07:41:10 +0800

echavanon gravatar image echavanon
0

I have a class that extends GenericForwardComposer<window>. In my method doFinally a want to get some args (this.execution.getArg().get("listbox")) but this.execution is null. If i check my event on clic in my page that open Window i have 1 arg :

final Map<string, object=""> args = new HashMap<string, object="">(); args.put("listbox", this.lboxTemplateEfs);

final Window templatesWindow = ZkComponentUtils.createWindow(Bundles.get(Bundles.ZULS, Zuls.WKPWINDOWTEMPLATE_UPDATE), this.vbox, args); ZkComponentUtils.doModal(templatesWindow);

Can you tell me where is the problem with execution please ?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2016-05-04 10:27:39 +0800

Darksu gravatar image Darksu
1991 1 4

Hello echavanon,

Try retrieving the arguments in the doAfterCompose as shown below:

http://www.phoneshuo.com/ZK/4ad6d4354437e4a754220b7004aaecaf.html

Best Regards,

Darksu

link publish delete flag offensive edit

answered 2016-05-04 10:28:22 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6
http://www.hybris.com/

Hello!

i am not able to fully understand the scenario (maybe you should prepare a fiddle next time) but i'd suggest you to use Executions.getCurrent() instead of the this.execution.

Giovanni

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2016-05-04 07:41:10 +0800

Seen: 11 times

Last updated: May 04 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More