[daisy] Custom field editor
Paul Focke
paul at outerthought.org
Wed Jul 23 13:56:31 CEST 2008
Valerie
I think the default field editor is a little to complex for what you are
trying to do. It has to be able to deal with all kinds of different
daisy field types and what not, so there is more that can go wrong.
Try to start off from the google map example[1] I believe that one is
simpler and probably easier to understand. You just have to skip the
javascript part in the template and leave out the code concerning
latitude and longitude.
Oh yeah, remember to restart the wiki after adding or modifying classes.
Paul
[1] http://cocoondev.org/wiki/g1/564-cd.html
On Wed, 2008-07-23 at 13:06 +0200, Valerie Nyre wrote:
> Hello Paul
>
> Thank you very much for answering.
>
> My only intention is to specify custom validation rules per custom field.
>
> I want to say that a string must be only 30 characters in length or must
> be a valid e-mail address...
>
> First I though I could just use the Cocoons forms validation (define a
> new forms definition fragment for each custom field) but now I am not
> sure if this is really possible. In my first attempt I first tried to do
> this: Compile this default field editor under a different class name and
> place the class into a JAR. but then a class null pointer exception
> happened. ... I will try it again but I am not sure if there is much
> more to know yet...
> Now I am looking at how the ACL editor creates forms binding and I also
> see that the doLoad and doSave methods are required. This is already
> mentioned in the
>
>
> Thanks again
>
>
> Valerie
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
More information about the daisy
mailing list