0

Validation possibility wished for inside Selectors

asked 2012-03-12 10:31:56 +0800

testuser35 gravatar image testuser35
27

Hello ZK community,

is it possible to put the method String[][] splitListenAnnotationValues(String str) (Selectors.java)
into a separate helper class that includes an output for being able to
do validation on produced output. Thank you.

Kind regards,
Stephan

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-03-12 10:36:48 +0800

SimonPai gravatar image SimonPai
1696 1

Hi Stephan,

Didn't really get your idea. Would you like to elaborate your concern?

Simon

link publish delete flag offensive edit

answered 2012-03-13 10:19:58 +0800

digulla gravatar image digulla
506 5

We would like to write validation code that reads all the annotations, uses your helper method to analyze them and then to validate that the event names are correct, that the fields/widget IDs exist, etc. That would catch a lot of typos and side effects (for example when someone changes the ZUL and forgets to update all the related annotations).

With the current implementation, such a validator would need to copy your code because it's private. We want to avoid that.

If possible, please also return an array of real objects which add meaning to the data instead of a brittle 2D String array.

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: 2012-03-12 10:31:56 +0800

Seen: 162 times

Last updated: Mar 13 '12

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