You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Manuel Mata <ma...@yahoo.es> on 2007/06/07 18:17:43 UTC

Form library limitation ?

Hi all. I have a widget defined in a libray to reuse
it in forms but i have the next problem. This is the
widget in the library.

<fd:field id="phone">
<fd:label><i18n:text key="label.phone"/>:</fd:label>
<fd:help><i18n:text key="help.phone"/></fd:help>
<fd:hint><i18n:text key="label.phone"/></fd:hint>
<fd:datatype base="string"/>
<fd:validation>
<fd:length max="12"/>
<fd:regexp pattern="\d{9}|\d{3} \d{3} \d{3}|\d{3}
\d{2} \d{2} \d{2}">
<fd:failmessage><i18n:text
key="error.phone-not-valid"/></fd:failmessage>
</fd:regexp>
</fd:validation>
</fd:field>

And when i use it in a form definition the required
attribute doesnt work.

<fd:import prefix="basic" uri="widgets.xml"/>
<fd:expand id="basic:phone" required="true"/>

Would this be a bug or Im using it badly ?

Thx anyway. See ya.


		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

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