Hi,

What version are you using?

With the following code setName() was called.

@Property( write = false )
private String name;
public void setName( String name ){     <== called
    ...
    this.name = ....
}



With the following code setName() was not called.

@Property( write = false )
@Validate( "Required,MinLength=5,MaxLength=16" ) 
private String name;
public void setName( String name ){      <== not called
    ...
    this.name = ....
} 


I don't know why the setter is not called if I add @Validate.


osamuo


Markus Lux <markus....@gmail.com> wrote: With your example code I'm getting an 
ComponentEventException saying that
"name" is read-only.
Try adding a public-modifier to your setter. That worked for me.

On Sun, Feb 22, 2009 at 3:49 PM,  wrote:

> Hi,
>
> When I set '@Validate' for a TextField, the setter was never called.
> It seems to be a bug.
>
> @Property( write = false )
> @Validate( "Required,MinLength=5,MaxLength=16" )
> private String name;
> void setName( String name ){      <=== not called
>    ...
>    this.name = ....
> }
>
> Thanks,
> osamuo
>
>
>
>
> ---------------------------------
> Power up the Internet with Yahoo! Toolbar.
>

 

 
---------------------------------
Power up the Internet with Yahoo! Toolbar.

Reply via email to