0

Using ZK Framework with JSP Page(using JSTL)

asked 2010-11-10 02:51:47 +0800

hiravoza gravatar image hiravoza
30

Hi all,

I am new to ZK Framework & I have basic knowledge of of usage with ZUL file, but I now I have to use it using JSTL in JSP Pages.

The problem I am facing is in ZUL file I was calling normal java scripts as follows
<button id='btn2' label="Hi With JScript" xmlns:w="client" w:onClick="testFunc(this.id);" />

now in case of JSTL i have used prefix "z" but I am unable to write

<z:button id='btn2' label="Hi With JScript" xmlns:w="client" w:onClick="testFunc(this.id);" />

as page cant find the reference of "xmlns". Please tell me a proper way to call the javascript function in that case.

thanks in advance.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-11-14 19:12:01 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

two ways
1.
in Java
void test() {
Clients.evalJavascript("xxxxxx");
}
2.
import ZK client namespace tld

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-11-10 02:51:47 +0800

Seen: 288 times

Last updated: Nov 14 '10

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