0

ZK:Button action property in ZK JSP 1.4

asked 2010-01-25 16:17:52 +0800

jbagtas gravatar image jbagtas
3

Hi,

I'm currently investigating upgrading from ZK 3.5 to 5 and ZK JSP to 1.4. The below code used to work by setting a form property "Action" before the form was submitted. It seems the action property is no longer valid in 1.4.

<zk:button label="Start" id='${execBtnName}' action="onclick:document.doEMC.Action.value='${execBtnAction}';doSubmit( document.doEMC )"/>

Using ZK JSP 1.3, the above code was converted into the below HTML code

<table id="z_pf_s1!box" cellspacing="0" cellpadding="0" border="0" class="z-button " onclick="document.doEMC.Action.value='EMC:doStart';doSubmit( document.doEMC )">

It is now converted into

zkb('zul.wgt.Button','z_2b_41','',{
id:'EMC:startButton',label:'Start'});

Anyone know how to emulate the same behavior with ZK 5 & ZK JSP 1.4?

Thanks in advance!

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-01-26 21:13:44 +0800

samchuang gravatar image samchuang
4084 4

updated 2010-01-26 21:14:11 +0800

Hi ~~

in this document,
it mentions "Note: Client Side Action is deprecated in ZK 5. For ZK 5 developers, please refer to ZK5: Client Computing with ZUML"

so, action has to rewrite, you could refer to
ZK_5.0_and_jQuery and ZK5:_Client_Computing_with_ZUML

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

RSS

Stats

Asked: 2010-01-25 16:17:52 +0800

Seen: 719 times

Last updated: Jan 26 '10

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