Yep. Bruno, It's trivial to make your own component classes - probably
textfields, no? - that have an API that's more to your taste. It's one
of Wicket's main ideas to make creating custom components easy, so why
not make use of that?
Eelco
On 5/9/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
because there is only one converter and validators must be stored in a list.
This is all to keep the internal state of a component as clean as possible.
You don't have to create an anon class. You can return there a normal class
or a inner class if you want.
johan
On 5/9/06, Bruno Borges <[EMAIL PROTECTED]> wrote:
>
> I really don't like the idea of having too many properties that must be
"get" through anonymous classes.
>
> Why there's no setConverter(IConverter c) just like add(IValidator v)
returning the object itself?
>
> see ya
>
>
>
> On 5/9/06, Johan Compagner < [EMAIL PROTECTED]> wrote:
> >
> > currently not. What could be better in your eyes?
> >
> > We will overhaul the converter interface in the next version so that it
should be simpler.
> >
> >
> > johan
> >
> >
> >
> >
> > On 5/9/06, Bruno Borges <[EMAIL PROTECTED]> wrote:
> > >
> > > This is the only way I know (better: I learned from
Wiki/Docs/Examples) on how to use MaskConverter:
> > >
> > >
> > > TextField zipCode = new TextField("zipCode") {
> > >
> > > public IConverter getConverter() {
> > >
> > > MaskFormatter zipFormat = null;
> > > try {
> > >
> > > zipFormat = new MaskFormatter("#####-###"); // Brazillian format
> > > } catch(Exception e) {} // never throws
> > >
> > > return new UncheckedMaskConverter(zipFormat);
> > > }
> > > };
> > >
> > > Isn't a better way to to this?
> > >
> > > --
> > > Bruno Borges
> > >
> > > [EMAIL PROTECTED]
> > > Sun Certified Java Programmer for 1.4
> > > Sun Certified Web Component Developer for 1.4
> >
> >
>
>
>
> --
> Bruno Borges
> [EMAIL PROTECTED]
> Sun Certified Java Programmer for 1.4
> Sun Certified Web Component Developer for 1.4
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user