0

coerceFromString(String str) does not exist in ZK 3.5.1?

asked 2008-11-27 17:13:05 +0800

zacusca gravatar image zacusca
79 1 2

Hello!

I tried to use the method "protected java.lang.Object coerceFromString(java.lang.String value) throws org.zkoss.zk.ui.WrongValueException" from ,
and I got the following exception:

Nov 27, 2008 5:09:29 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1084
SEVERE: >>org.zkoss.zk.ui.UiException: Sourced file: inline evaluation of: ``register();'' : Error in method invocation: Method coerceFromString( java.lang.String ) not found in class'org.zkoss.zul.Textbox' : at Line: 48 : in file: inline evaluation of: ``import domain.User; import java.security.MessageDigest; void loginVi . . . '' : username .coerceFromString ( "" )

>>Sourced file: inline evaluation of: ``register();'' : Error in method invocation: Method coerceFromString( java.lang.String ) not found in class'org.zkoss.zul.Textbox' : at Line: 48 : in file: inline evaluation of: ``import domain.User; import java.security.MessageDigest; void loginVi . . . '' : username .coerceFromString ( "" )
>>
>> at bsh.BSHMethodInvocation.eval(Unknown Source)
>> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>> at bsh.BSHBlock.evalBlock(Unknown Source)
>> at bsh.BSHBlock.eval(Unknown Source)
>>...

Could anyone tell me what am I doing wrong? :|

Thanks in advance!

Radu

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-11-28 00:44:07 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

protected java.lang.Object coerceFromString(java.lang.String value)

It is a protected method(not public) so you cannot call it.

link publish delete flag offensive edit

answered 2008-11-29 13:52:41 +0800

zacusca gravatar image zacusca
79 1 2

yeah....point taken :) ...

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: 2008-11-27 17:13:05 +0800

Seen: 135 times

Last updated: Nov 29 '08

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