Re:

2012-05-18 Thread TG
I got - Could not convert 'headBlock' into a component parameter binding: Exception generating conduit for expression 'headBlock': Class app.components.LayoutWithSegments does not contain a property (or public field) named 'headBlock'. There are 4 files involved (2 .tml and 2 java files), which o

Re:

2012-05-18 Thread Taha Siddiqi
Why not use blocks ... public class Layout { @Parameter(defaultPrefix = BindingConstants.BLOCK) @Property private Block headBlock; } regards Taha On May 19, 2012, at 7:52 AM, TG wrote: > I need to do this - > > > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.x

Re: dynamic validation for required / not required

2012-05-18 Thread George Christman
First time I've stumped you :) Anyhow, I found a work around. Just had to use single quoates in the parameter to pass back my string value, then I could handle setting up the Field on the backend. t:validator="prop:getAuthorizerValidator('authorizer')" public FieldValidator getAuthorize

Re: Tapestry 5 email validator rules are not correct

2012-05-18 Thread Norman Franke
I missed that, sorry, indeed, that's not valid. Norman Franke Answering Service for Directors, Inc. www.myasd.com On May 18, 2012, at 2:52 PM, Ray Nicholus wrote: > Having a plus in the domain of your email address is effectively not valid > as this type of a domain is not allowed by DNS. Cha

Re: dynamic validation for required / not required

2012-05-18 Thread Thiago H. de Paula Figueiredo
On Fri, 18 May 2012 16:40:43 -0300, George Christman wrote: Hi Thiago, do you have any suggestions on my previous question? If I had, I'd have posted it, I guarantee. :) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instruct

Re: dynamic validation for required / not required

2012-05-18 Thread George Christman
Hi Thiago, do you have any suggestions on my previous question? -- View this message in context: http://tapestry.1045711.n5.nabble.com/dynamic-validation-for-required-not-required-tp4422440p5712101.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Tapestry 5 email validator rules are not correct

2012-05-18 Thread Ray Nicholus
Having a plus in the domain of your email address is effectively not valid as this type of a domain is not allowed by DNS. Character with an accent are also not allowed in email addresses. See RFC 5322 section 3.2.3 (mirrored at http://tools.ietf.org/html/rfc5322#section-3.2.3). Quotes are also

Re: Forms and JavaScriptSupport

2012-05-18 Thread Juan Alba
That was all with my problem. Thanks Taha for all the help. If somebody wants the code: *Class:* Object onSuccess(){ ... if (request.isXHR()) { ajaxResponseRenderer.addCallback(new JavaScriptCallback() { @Override public void run(JavaScriptSupport arg0) { arg0.addScript(String.forma

Re: Tapestry 5.2.5 Select component's multiple property

2012-05-18 Thread Taha Siddiqi
Hi I can't see how it is problematic. Can you share the code ? regards Taha On May 18, 2012, at 2:30 PM, Ab wrote: > Hey Taha, > I was using the code you posted to allow multiple selects and it worked > perfectly with ONE t:MultipleSelect component. However, I'm working on a web > page with two

tapestry-security and CAS integration?

2012-05-18 Thread Chris Cureau
Since Apache Shiro 1.2.0, there is a plugin that allows Schiro to communicate directly with CAS SSO server. Has this functionality made it into tapestry-security yet? It'd be handy to have. :) Cheers, Chris

Re: getting the POST parameters from a third party app

2012-05-18 Thread ramonchu
Hi. My problem was solved.The issue was that the third party application was submitting the data to instead of so no data was actually received. Should be this considered as an error? Thanks for the answer. -- View this message in context: http://tapestry.1045711.n5.nabble.com/getting-the-POST

Re: Rendering another component inside a component

2012-05-18 Thread Lance Java
One of Tapestry's principles is static structure and dynamic behaviour so components can't be created at runtime. The MarkupWriter is for writing HTML, not TML. Can you do what you want in a tml file instead? If not, you can do it programatically like this: Component.tml -

Re: Tapestry 5.2.5 Select component's multiple property

2012-05-18 Thread Ab
Hey Taha, I was using the code you posted to allow multiple selects and it worked perfectly with ONE t:MultipleSelect component. However, I'm working on a web page with two fields that are MultipleSelect. How do I accomplish that. In both getRender and getModel you're using myList. In my case I ha

Loop and parameters question

2012-05-18 Thread Nicolas Barrera
Hi, all I got the following question, supose that I want to define an accordion like this... t:activeElementId="activeElement"> > > > Element 1 > > content from block 1 > > > > Element 2 > > content from block 2 > > > > > but, that I w

Rendering another component inside a component

2012-05-18 Thread egarcia-sms
Hi. I've implemented a component in Tapestry 5, and I need my component to use for some of its rendering, but of course, just using writer.element("t:actionlink", ...) doesn't work. What is the preferred approach to render a few components inside another custom one? Thanks in advance! -- View

Re: Tapestry 5 email validator rules are not correct

2012-05-18 Thread Norman Franke
Having a + is valid. Some email systems allow users to filter based on stuff after the +, so joe+...@bar.com would still go to j...@bar.com, but he could then filter it into folders. I used to do this in college. See: http://en.wikipedia.org/wiki/Email_address The format of email addresses is l

Re: Charset problem of component event handler parameter

2012-05-18 Thread Rural Hunter
Very very strange. I tried to encode Chinese first in javascript then sent to the component event handler. Javascript: new Ajax.Request(spec.url, { method: 'post', parameters: {content: encodeURIComponent('?

Tapestry 5 email validator rules are not correct

2012-05-18 Thread Ray Nicholus
Examples of currently allowed (and invalid) addresses: accent char - ép...@example.com '+' in domain - test@foo+example.com '/' in domain - test@example/com wrapped in single quotes - 'f...@example.com' wrapped in double quotes - "f...@example.com" Is there currently a case in JIRA to a

Re: tapestry-security with jdbcrealm

2012-05-18 Thread kc22033
Kalle, Thanks for the prompt & thorough response! I will dig into the docs & samples you've pointed me to & return here if I have more questions. -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-security-with-jdbcrealm-tp5711720p5711875.html Sent from the Tapestry

Re: Tapestry Regexp Validator

2012-05-18 Thread Taha Siddiqi
Just use int or long. Translators will take care of the leading zero. On May 18, 2012, at 6:02 PM, Fight Ice wrote: > > So I can't use int type for the field which uses the regexp. > Could anyone give me some advices for this case? > ---

RE: Tapestry Regexp Validator

2012-05-18 Thread Fight Ice
So I can't use int type for the field which uses the regexp. Could anyone give me some advices for this case?

RE: Tapestry Regexp Validator

2012-05-18 Thread Fight Ice
Solved! In my java file: @Property private int productAmount; The "productAmount" is int type. So the regexp validator doesn't works. Thanks a lot Taha! This case confused me. Why and how this happened?

Re: Tapestry Regexp Validator

2012-05-18 Thread Taha Siddiqi
I just created a page Template Java Page import org.apache.tapestry5.annotations.Property; public class TestPage { @Property private String email; } Properties file productAmount-regexp=^[1-9][0-9]* and it works :) regards Taha On Ma

RE: Tapestry Regexp Validator

2012-05-18 Thread Fight Ice
^[1-9][0-9]* or ^[1-9]\\d* still doesn't work. > Subject: Re: Tapestry Regexp Validator > From: tawus.tapes...@gmail.com > Date: Fri, 18 May 2012 14:12:14 +0530 > To: users@tapestry.apache.org > > Your regular expression indicates that productionAmount should be 1-9. Is > that so ? > > if it i

Re: Tapestry Regexp Validator

2012-05-18 Thread Taha Siddiqi
Your regular expression indicates that productionAmount should be 1-9. Is that so ? if it is a number not starting with zero shouldn't it be ^[1-9][0-9]* or ^[1-9]\\d* On May 18, 2012, at 1:55 PM, Fight Ice wrote: > > in template file: > > t:validate="required,regexp,min=1" t:type="t

RE: Tapestry Regexp Validator

2012-05-18 Thread Fight Ice
productAmount-regexp=^[1-9][0-9]* > Subject: Re: Tapestry Regexp Validator > From: tawus.tapes...@gmail.com > Date: Fri, 18 May 2012 13:43:28 +0530 > To: users@tapestry.apache.org > > > Can you share the code ? > > > On May 18, 2012, at 1:28 PM, Fight Ice wrote: > > > > > Tapestry 5.3.2: >

RE: Tapestry Regexp Validator

2012-05-18 Thread Fight Ice
in template file: in properties file: productAmount-regexp=^[1-9] The product amount can't start with zero. > From: ricr...@hotmail.com > To: users@tapestry.apache.org > Subject: Tapestry Regexp Validator > Date: Fri, 18 May 2012 15:58:12 +0800 > > > Tapestry 5.3.

Re: Tapestry Regexp Validator

2012-05-18 Thread Taha Siddiqi
Can you share the code ? On May 18, 2012, at 1:28 PM, Fight Ice wrote: > > Tapestry 5.3.2: > I try to use Email validator in my email input field, but it doesn't work. > Then I use the regexp validator in my properties file like this: > email-regexp=^[a-zA-Z0-9_\-]+@[a-zA-Z0-9_\-]+(\.[a-zA-Z0

Tapestry Regexp Validator

2012-05-18 Thread Fight Ice
Tapestry 5.3.2: I try to use Email validator in my email input field, but it doesn't work. Then I use the regexp validator in my properties file like this: email-regexp=^[a-zA-Z0-9_\-]+@[a-zA-Z0-9_\-]+(\.[a-zA-Z0-9_\-]+)+$ It still doesn't work. Finally I found even regexp like this "^[1-9]" does