cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Mata <manuel_mata_ru...@yahoo.es>
Subject Form library limitation ?
Date Thu, 07 Jun 2007 16:17:43 GMT
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


Mime
View raw message