You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Pratibha Gopalam <pr...@ltp.soft.net> on 2007/01/16 10:22:32 UTC
PatternValidator with Tapesty 4.0
Hello,
Has anybody used PatternValidator with Tapestry 4.0? I would like to
validate an user input against a pattern. I tried using the
PatternValidator like below
<bean name="patternValidator"
class="org.apache.tapestry.valid.PatternValidator">
<set name="clientScriptingEnabled" value="true"/>
<set name="required" value="true"/>
<set name="patternString" value="[a-zA-Z]"/>
</bean>
but got exceptions saying patternString/pattern property not found in
PatternValidator.
Can anybody help me here?
thanks,
Pratibha
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: PatternValidator with Tapesty 4.0
Posted by Jesse Kuhnert <jk...@gmail.com>.
http://tapestry.apache.org/tapestry4.1/components/general/script.html
On 1/18/07, Pratibha Gopalam <pr...@ltp.soft.net> wrote:
>
> I am trying to use the scriptPath property to set a script path. But it
> says that the property not present.
>
> Can anybody please help me with this?
>
> Pratibha Gopalam wrote:
> > Thanks you very much of the inputs. It works now!
> >
> > andyhot wrote:
> >> Nick Westgate wrote:
> >>> Yet again, mourn the passing of Spindle, which would warn you that
> >>> <set name="patternString" value="[a-zA-Z]"/>
> >>> has an invalid OGNL expression for value.
> >>>
> >>> You want to pass a string, so use quotes:
> >>> <set name="patternString" value="'[a-zA-Z]'"/>
> >>
> >> or better
> >> <set name="patternString" value="literal:[a-zA-Z]"/>
> >>
> >>>
> >>> Cheers,
> >>> Nick.
> >>>
> >>>
> >>> Pratibha Gopalam wrote:
> >>>> Hello,
> >>>>
> >>>> Has anybody used PatternValidator with Tapestry 4.0? I would like
> >>>> to validate an user input against a pattern. I tried using the
> >>>> PatternValidator like below
> >>>>
> >>>> <bean name="patternValidator"
> >>>> class="org.apache.tapestry.valid.PatternValidator">
> >>>> <set name="clientScriptingEnabled" value="true"/>
> >>>> <set name="required" value="true"/>
> >>>> <set name="patternString" value="[a-zA-Z]"/>
> >>>> </bean>
> >>>>
> >>>> but got exceptions saying patternString/pattern property not found
> >>>> in PatternValidator.
> >>>>
> >>>> Can anybody help me here?
> >>>>
> >>>> thanks,
> >>>> Pratibha
> >>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>
> >>>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Jesse Kuhnert
Tapestry/Dojo team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: PatternValidator with Tapesty 4.0
Posted by Pratibha Gopalam <pr...@ltp.soft.net>.
I am trying to use the scriptPath property to set a script path. But it
says that the property not present.
Can anybody please help me with this?
Pratibha Gopalam wrote:
> Thanks you very much of the inputs. It works now!
>
> andyhot wrote:
>> Nick Westgate wrote:
>>> Yet again, mourn the passing of Spindle, which would warn you that
>>> <set name="patternString" value="[a-zA-Z]"/>
>>> has an invalid OGNL expression for value.
>>>
>>> You want to pass a string, so use quotes:
>>> <set name="patternString" value="'[a-zA-Z]'"/>
>>
>> or better
>> <set name="patternString" value="literal:[a-zA-Z]"/>
>>
>>>
>>> Cheers,
>>> Nick.
>>>
>>>
>>> Pratibha Gopalam wrote:
>>>> Hello,
>>>>
>>>> Has anybody used PatternValidator with Tapestry 4.0? I would like
>>>> to validate an user input against a pattern. I tried using the
>>>> PatternValidator like below
>>>>
>>>> <bean name="patternValidator"
>>>> class="org.apache.tapestry.valid.PatternValidator">
>>>> <set name="clientScriptingEnabled" value="true"/>
>>>> <set name="required" value="true"/>
>>>> <set name="patternString" value="[a-zA-Z]"/>
>>>> </bean>
>>>>
>>>> but got exceptions saying patternString/pattern property not found
>>>> in PatternValidator.
>>>>
>>>> Can anybody help me here?
>>>>
>>>> thanks,
>>>> Pratibha
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: PatternValidator with Tapesty 4.0
Posted by Pratibha Gopalam <pr...@ltp.soft.net>.
Thanks you very much of the inputs. It works now!
andyhot wrote:
> Nick Westgate wrote:
>> Yet again, mourn the passing of Spindle, which would warn you that
>> <set name="patternString" value="[a-zA-Z]"/>
>> has an invalid OGNL expression for value.
>>
>> You want to pass a string, so use quotes:
>> <set name="patternString" value="'[a-zA-Z]'"/>
>
> or better
> <set name="patternString" value="literal:[a-zA-Z]"/>
>
>>
>> Cheers,
>> Nick.
>>
>>
>> Pratibha Gopalam wrote:
>>> Hello,
>>>
>>> Has anybody used PatternValidator with Tapestry 4.0? I would like to
>>> validate an user input against a pattern. I tried using the
>>> PatternValidator like below
>>>
>>> <bean name="patternValidator"
>>> class="org.apache.tapestry.valid.PatternValidator">
>>> <set name="clientScriptingEnabled" value="true"/>
>>> <set name="required" value="true"/>
>>> <set name="patternString" value="[a-zA-Z]"/>
>>> </bean>
>>>
>>> but got exceptions saying patternString/pattern property not found
>>> in PatternValidator.
>>>
>>> Can anybody help me here?
>>>
>>> thanks,
>>> Pratibha
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: PatternValidator with Tapesty 4.0
Posted by andyhot <an...@di.uoa.gr>.
Nick Westgate wrote:
> Yet again, mourn the passing of Spindle, which would warn you that
> <set name="patternString" value="[a-zA-Z]"/>
> has an invalid OGNL expression for value.
>
> You want to pass a string, so use quotes:
> <set name="patternString" value="'[a-zA-Z]'"/>
or better
<set name="patternString" value="literal:[a-zA-Z]"/>
>
> Cheers,
> Nick.
>
>
> Pratibha Gopalam wrote:
>> Hello,
>>
>> Has anybody used PatternValidator with Tapestry 4.0? I would like to
>> validate an user input against a pattern. I tried using the
>> PatternValidator like below
>>
>> <bean name="patternValidator"
>> class="org.apache.tapestry.valid.PatternValidator">
>> <set name="clientScriptingEnabled" value="true"/>
>> <set name="required" value="true"/>
>> <set name="patternString" value="[a-zA-Z]"/>
>> </bean>
>>
>> but got exceptions saying patternString/pattern property not found in
>> PatternValidator.
>>
>> Can anybody help me here?
>>
>> thanks,
>> Pratibha
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: PatternValidator with Tapesty 4.0
Posted by Nick Westgate <ni...@key-planning.co.jp>.
Yet again, mourn the passing of Spindle, which would warn you that
<set name="patternString" value="[a-zA-Z]"/>
has an invalid OGNL expression for value.
You want to pass a string, so use quotes:
<set name="patternString" value="'[a-zA-Z]'"/>
Cheers,
Nick.
Pratibha Gopalam wrote:
> Hello,
>
> Has anybody used PatternValidator with Tapestry 4.0? I would like to
> validate an user input against a pattern. I tried using the
> PatternValidator like below
>
> <bean name="patternValidator"
> class="org.apache.tapestry.valid.PatternValidator">
> <set name="clientScriptingEnabled" value="true"/>
> <set name="required" value="true"/>
> <set name="patternString" value="[a-zA-Z]"/>
> </bean>
>
> but got exceptions saying patternString/pattern property not found in
> PatternValidator.
>
> Can anybody help me here?
>
> thanks,
> Pratibha
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org