cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beatejung <beatej...@online.de>
Subject Re: WidgetValidation
Date Mon, 28 Feb 2005 17:36:24 GMT
hi greg,
i tried your code. you should do this to access the other widget:



>    <fd:field id="eventEndTimeCode" required="true">
>     <fd:label>Event End Timecode<br/>(Format HH:MM:SS:FF)</fd:label>
>     <fd:datatype base="string" />
>     <fd:validation>
>         <fd:regexp
> pattern="(([0-1][0-9])|(2[0-3]))\:(([0-5][0-9]\:){2})([0-9][0-9]\/[0-9][0-9
>])"> <fd:failmessage>Invalid time code: hh:mm:ss:ff/FF</fd:failmessage>
> </fd:regexp>
>         <fd:javascript> <!--CANNOT REFERENCE eventStartTimeCode FROM
> HERE-->

	var start=widget.getForm().lookupWidget("eventStartTimeCode");

good luck
beate


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message