You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Skorpien126 <lo...@web.de> on 2007/03/27 22:44:49 UTC

Extendet ValidationDelegate not used

Hmm I´ve a strange behaviour in my app...

I´ve build an own ValidationDelegate because I want to display the
errorMessage in the Label. Therefor I thought ... extend a Subclass
(http://tapestry.apache.org/tapestry4.1/usersguide/validation.html) should
be easy. My subclass extends from the orginal
org.apache.tapestry.valid.ValidationDelegate class.

The Delegate is defined in the .page:
 <bean name="delegate" class="myPackage.ErrorValidationDelegate"/>

I´ve several other "workarounds" like "FriendlyUrls" so I turned them of to
find the error.
Furthermore I extend the FieldLabel Component. (took a look to the appfuse
startup-application) 
There I set a breakPoint to find out what the app is doing:

I set this code in the renderComponent-method:
 if (form.getDelegate() instanceof myPackage.ErrorValidationDelegate)
 {
      //breakpoint here
 }

The Thread never reach the breakPoint.... and the Bean is never of type
ErrorValidationDelegate ... it´s always the basic ValidationDelegate. 
Maybe it´s a very simple Problem... but i can´t figure out. Can someone help
me??? ideas??? Would should I check???
-- 
View this message in context: http://www.nabble.com/Extendet-ValidationDelegate-not-used-tf3475496.html#a9700709
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Extendet ValidationDelegate not used

Posted by Skorpien126 <lo...@web.de>.
:( ... Shame on me. That was the problem.
I wish me a copy&paste... Validator :)



andyhot wrote:
> 
> Are you sure you made your form use that bean?
> jwcid="@Form" delegate="bean:delegate" ?
> 
> Skorpien126 wrote:
>> Hmm I´ve a strange behaviour in my app...
>>
>> I´ve build an own ValidationDelegate because I want to display the
>> errorMessage in the Label. Therefor I thought ... extend a Subclass
>> (http://tapestry.apache.org/tapestry4.1/usersguide/validation.html)
>> should
>> be easy. My subclass extends from the orginal
>> org.apache.tapestry.valid.ValidationDelegate class.
>>
>> The Delegate is defined in the .page:
>>  <bean name="delegate" class="myPackage.ErrorValidationDelegate"/>
>>
>> I´ve several other "workarounds" like "FriendlyUrls" so I turned them of
>> to
>> find the error.
>> Furthermore I extend the FieldLabel Component. (took a look to the
>> appfuse
>> startup-application) 
>> There I set a breakPoint to find out what the app is doing:
>>
>> I set this code in the renderComponent-method:
>>  if (form.getDelegate() instanceof myPackage.ErrorValidationDelegate)
>>  {
>>       //breakpoint here
>>  }
>>
>> The Thread never reach the breakPoint.... and the Bean is never of type
>> ErrorValidationDelegate ... it´s always the basic ValidationDelegate. 
>> Maybe it´s a very simple Problem... but i can´t figure out. Can someone
>> help
>> me??? ideas??? Would should I check???
>>   
> 
> 
> -- 
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Extendet-ValidationDelegate-not-used-tf3475496.html#a9712335
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Extendet ValidationDelegate not used

Posted by andyhot <an...@di.uoa.gr>.
Are you sure you made your form use that bean?
jwcid="@Form" delegate="bean:delegate" ?

Skorpien126 wrote:
> Hmm I´ve a strange behaviour in my app...
>
> I´ve build an own ValidationDelegate because I want to display the
> errorMessage in the Label. Therefor I thought ... extend a Subclass
> (http://tapestry.apache.org/tapestry4.1/usersguide/validation.html) should
> be easy. My subclass extends from the orginal
> org.apache.tapestry.valid.ValidationDelegate class.
>
> The Delegate is defined in the .page:
>  <bean name="delegate" class="myPackage.ErrorValidationDelegate"/>
>
> I´ve several other "workarounds" like "FriendlyUrls" so I turned them of to
> find the error.
> Furthermore I extend the FieldLabel Component. (took a look to the appfuse
> startup-application) 
> There I set a breakPoint to find out what the app is doing:
>
> I set this code in the renderComponent-method:
>  if (form.getDelegate() instanceof myPackage.ErrorValidationDelegate)
>  {
>       //breakpoint here
>  }
>
> The Thread never reach the breakPoint.... and the Bean is never of type
> ErrorValidationDelegate ... it´s always the basic ValidationDelegate. 
> Maybe it´s a very simple Problem... but i can´t figure out. Can someone help
> me??? ideas??? Would should I check???
>   


-- 
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