0

Validation error in zul alert method, when using " instead of "

asked 2009-08-31 09:21:18 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

I have placed the following line in one of my zul file.

<label id="d" value="Validation Checking" onClick="alert("Validation")" />

Eclipse is showing red_line (error mark) in this line. When I right-click and choose validation, it completes with no errors. When I run and check this code, it executes in client browser without any issues.

Where does the problem lies? Is it an error in eclipse or in ZK plugin addon?

Seems, it was a long time known bug! Anybody having any solutions or suggestions?

Thanks.

My software versions:

ZK Studio Plug-in version is 0.9.5.v200907031701
Eclpise Version: 3.4.2, Build id: M20090211-1700

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-08-31 09:38:38 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

updated 2009-08-31 09:39:10 +0800

If I change as shown below, then it doesn't shows any error:

<label id="d" value="Validation Checking" onClick='alert("Validation")' />

Note: I have used & quot; code instead of "(double quote). But, it displays as double quote in my previous post.

link publish delete flag offensive edit

answered 2009-09-02 00:50:23 +0800

PeterKuo gravatar image PeterKuo
481 2

you may post to zk studio bug.

to escape the ", you may try &amp;quot;

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: 2009-08-31 09:21:18 +0800

Seen: 372 times

Last updated: Sep 02 '09

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