Re: Validate regexp error

2007-10-15 Thread mogulwraith

Tapestry 5
To restate, Im trying to do something similar to the documentation listed
near the end of this page

http://tapestry.apache.org/tapestry5/tutorial1/forms.html

for your convenience the sample code is as follows:

@Validate(required,regexp=\\d{5}(-\\d{4})?)
  public String getZip()
  {
return _zip;
  }   

But Im getting the error: Failure reading parameter validate of component
core/PropertyEditBlocks:textfield: Unknown validator type 'regexp'.
Configured validators are max, maxlength, min, minlength, required.

Do I have to manually create the UI element for the beaneditform as you have
listed or is there something I have to do to get the Validate annotation to
work for regular expressions?


Josh Canfield-2 wrote:
 
 Can you provide us some code and error message?
 
 It should look something like this...
 
 input t:id=runningTime t:type=textfield t:size=6 t:value=
 video.runningTime t:validate=required,regexp=\d+:\d{2} type=text /
 
 Josh
 
 On 10/12/07, mogulwraith [EMAIL PROTECTED] wrote:


 The documentation shows a validation of a zip code but an Unknown
 Validator
 error is produced.
 What do I need to do differently than what is written in the
 documentation?
 --
 View this message in context:
 http://www.nabble.com/Validate-regexp-error-tf4616208.html#a13183605
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 --
 TheDailyTube.com. Sign up and get the best new videos on the internet
 delivered fresh to your inbox.
 
 

-- 
View this message in context: 
http://www.nabble.com/Validate-regexp-error-tf4616208.html#a13219821
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validate regexp error

2007-10-12 Thread mogulwraith

The documentation shows a validation of a zip code but an Unknown Validator
error is produced.
What do I need to do differently than what is written in the documentation?
-- 
View this message in context: 
http://www.nabble.com/Validate-regexp-error-tf4616208.html#a13183605
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validate regexp error

2007-10-12 Thread mogulwraith

I was using the Validate annotation. 

it gave me this:
Failure reading parameter validate of component
core/PropertyEditBlocks:textfield: Unknown validator type 'regexp'.
Configured validators are max, maxlength, min, minlength, required.




Josh Canfield-2 wrote:
 
 Can you provide us some code and error message?
 
 It should look something like this...
 
 input t:id=runningTime t:type=textfield t:size=6 t:value=
 video.runningTime t:validate=required,regexp=\d+:\d{2} type=text /
 
 Josh
 
 On 10/12/07, mogulwraith [EMAIL PROTECTED] wrote:


 The documentation shows a validation of a zip code but an Unknown
 Validator
 error is produced.
 What do I need to do differently than what is written in the
 documentation?
 --
 View this message in context:
 http://www.nabble.com/Validate-regexp-error-tf4616208.html#a13183605
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 --
 TheDailyTube.com. Sign up and get the best new videos on the internet
 delivered fresh to your inbox.
 
 

-- 
View this message in context: 
http://www.nabble.com/Validate-regexp-error-tf4616208.html#a13185264
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Request Parameters

2007-09-21 Thread mogulwraith

From Javascript I try to build a link something like:

var link = ${requestlink} + ?firstparam= + paramA + secondparam= +
paramB;

But when this gets back to the server the only parameter available with
request.getParameter is the first one. How can I accomplish this?

-- 
View this message in context: 
http://www.nabble.com/Request-Parameters-tf4498661.html#a12830070
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 confused about Services and XmlHttpResponse

2007-07-27 Thread mogulwraith

I do mean XmlHttpRequest of course...
-- 
View this message in context: 
http://www.nabble.com/T5-confused-about-Services-and-XmlHttpResponse-tf4160459.html#a11837658
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5 and IE Conditional Comments

2007-07-17 Thread mogulwraith

I tried using the IE downlevel-hidden conditional comment to suggest an IE
compatible version of my stylesheet but it seems Tapestry might be
interfering with that. Is that what is happening here? If so is there a way
to change the stylesheet based on browser?
-- 
View this message in context: 
http://www.nabble.com/T5-and-IE-Conditional-Comments-tf4099858.html#a11658907
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]