0

setRawValue is protected

asked 2006-05-14 11:49:47 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3729548

By: nobody

I have a custom constraint set on an input field which raises an error if the value of the field is 0.00

This is working fine when I call setValue as this function internally calls the validation

But I also want to be able to set a value directly without invoking the validation.
The method setRawValue is protected which means i will need to derive the component class. Can we not make this public? Otherwise I will need to derive all the input fields just for using one function !!






delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2006-05-15 07:31:05 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3730299

By: henrichen

Please post to Feature-Request, we can discuss it there? Why do you need this?

/henri

link publish delete flag offensive edit

answered 2006-05-15 08:45:06 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3730406

By: nobody

Two reasons for this
1. I want to be able to set some initial values for fields so for e.g. if its a decimalbox I want to set it to 0.00 but when the user enters the field I want the user to enter a value > 0.00

2. Also some of the fields are active fields such that in the onBlur event other fields get updated and if those fields are set to 0.00 I don't want the validation message popping up because the user has not entered the field yet




link publish delete flag offensive edit

answered 2006-05-15 09:10:22 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3730434

By: henrichen

It looks the two good reasons. Basicly, we want to give the developer a freedom to avoid field validation in some cases.

Then, please post to Feature-Request. (Remember to copy those two reasons there, too :))

/henri

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: 2006-05-14 11:49:47 +0800

Seen: 168 times

Last updated: May 15 '06

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