You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Mathieu Goulène <mg...@oalia.com> on 2003/11/04 17:36:31 UTC

RE : Intake in 2.3

I have exactly the same problem with, DateString, int, ...

Does anybody know a workaround, or a stable release that fixes this bug?

Thanx

MG

-----Message d'origine-----
De : Scott Eade [mailto:seade@backstagetech.com.au] 
Envoyé : mercredi 10 septembre 2003 04:25
À : Turbine Users List
Objet : Re: Intake in 2.3

Jürgen Hoffmann wrote:

>I used to have fields in Turbine 2.3 of Type:
>		<field name="ClientEmail" mapToProperty="ClientEmail"
>key="ClientEmail" type="String">
>			<rule name="required"
>value="false">Required</rule>
>			<rule name="mask"
>value="^[a-z0-9]+(?:[a-z0-9-.]*[a-z0-9])?@[a-z](?:[a-z0-9-]*[a-z0-9])?\.
>[a-z]+$">ValidValue</rule>
>		</field>
>And
>		<field name="DeadLineDateString"
>mapToProperty="DeadLine" key="DeadLine" type="DateString">
>			<rule name="required"
>value="false">Required</rule>
>			<rule name="format1"
>value="dd.MM.yy">DD_MM_YYYY</rule>
>			<rule name="flexible"
>value="false">DD_MM_YY_HH_MM</rule>
>		</field>
>
>If the user left the fields blank in T2.2 it would be accepted by
>Intake's isAllValid() Method, but now the user has to enter valid values
>for the form to be submitted.
>
>Could this be worked around with an empty mask? 
>
>Is this a bug or a feature?
>
It is a bug.  The new StringValidator does not suspend
validation when DefaultValidator has detected that the
value is empty and that this is an acceptable value.
This bug affects many of the other validators also.

I have just tried prepending my regex with "^$|" in order
to allow an empty value through, but this doesn't seem to
work.

If you to not specify a mask rule the String validation
should succeed, but I don't think DateString will.

I'll look into this further as I am just now hitting this
problem myself.

Scott

-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au





---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


AW: Intake in 2.3

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi Mathieu,

This should be fixed in Turbine 2.3.1

Kind regards

Jürgen Hoffmann
ByteACTION GmbH




-----Ursprüngliche Nachricht-----
Von: Mathieu Goulène [mailto:mg@oalia.com] 
Gesendet: Dienstag, 4. November 2003 17:37
An: 'Turbine Users List'
Betreff: RE : Intake in 2.3

I have exactly the same problem with, DateString, int, ...

Does anybody know a workaround, or a stable release that fixes this bug?

Thanx

MG

-----Message d'origine-----
De : Scott Eade [mailto:seade@backstagetech.com.au] 
Envoyé : mercredi 10 septembre 2003 04:25
À : Turbine Users List
Objet : Re: Intake in 2.3

Jürgen Hoffmann wrote:

>I used to have fields in Turbine 2.3 of Type:
>		<field name="ClientEmail" mapToProperty="ClientEmail"
>key="ClientEmail" type="String">
>			<rule name="required"
>value="false">Required</rule>
>			<rule name="mask"
>value="^[a-z0-9]+(?:[a-z0-9-.]*[a-z0-9])?@[a-z](?:[a-z0-9-]*[a-z0-9])?\.
>[a-z]+$">ValidValue</rule>
>		</field>
>And
>		<field name="DeadLineDateString"
>mapToProperty="DeadLine" key="DeadLine" type="DateString">
>			<rule name="required"
>value="false">Required</rule>
>			<rule name="format1"
>value="dd.MM.yy">DD_MM_YYYY</rule>
>			<rule name="flexible"
>value="false">DD_MM_YY_HH_MM</rule>
>		</field>
>
>If the user left the fields blank in T2.2 it would be accepted by
>Intake's isAllValid() Method, but now the user has to enter valid values
>for the form to be submitted.
>
>Could this be worked around with an empty mask? 
>
>Is this a bug or a feature?
>
It is a bug.  The new StringValidator does not suspend
validation when DefaultValidator has detected that the
value is empty and that this is an acceptable value.
This bug affects many of the other validators also.

I have just tried prepending my regex with "^$|" in order
to allow an empty value through, but this doesn't seem to
work.

If you to not specify a mask rule the String validation
should succeed, but I don't think DateString will.

I'll look into this further as I am just now hitting this
problem myself.

Scott

-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au





---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org