You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tobias Wehrum <Le...@dragonlab.de> on 2008/10/09 14:50:54 UTC

Re: [T5] Change validation message key

Hi Julien,

may I ask where the problem was and how you solved it?

- Tobias

Julien schrieb:
> Hi,
>
> Thanks for your reply, and sorry for my bad english (i'm french) ;)
>
> Using the app.properties file isn't really a good solution for me, 
> since I replaced the default MessagesSource to used a database instead 
> of propertie file.
> By the way, it helped me to find where was my mistake :)
>
> Thanks a lot Filip
>
>
> Filip S. Adamsen a écrit :
>> Hi,
>>
>> You can stick the message in app.properties and it will be used 
>> whenever a message isn't found in the component's messages.
>>
>> -Filip
>>
>> Julien skrev:
>>> Hi,
>>>
>>> I've created a custom validator, and i'd like to customize the 
>>> message key, to create generic validation messages.
>>> For example, if I use my "email" validator, tapestry will look for 
>>> "<fieldId>-email-message" key, so I have to copy my message text in 
>>> every page... arrg
>>>
>>> The Javadoc of AbstractValidator ( 
>>> http://tapestry.formos.com/nightly/tapestry5/apidocs/org/apache/tapestry5/validator/AbstractValidator.html 
>>> ) say that we can set the message key in the constructor, like this:
>>>
>>> public EmailValidator() {
>>>        super(null, String.class, "mykey");
>>> }
>>>
>>> Well, did it, Tapestry still looking for "<fieldId>-email-message"...
>>>
>>> What did I missed ?
>>>
>>> One more thing; I use my own MessageSource ( 
>>> http://www.nabble.com/T5-%3A-Expanding-Messages-Catalog-for-localization-from-arbitrary-source-td16608683.html#a16611882 
>>> )
>>>
>>> Thx
>>>
>>>  Julien
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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


T5: SlidingPanel

Posted by su...@gmx.de.
I am looking for a SlidingPanel ("Accordion") component. I found one on:

http://code.google.com/p/tapestry5-component

but unfortunately it is only useful for pure text inside of the SlidingPanel.

I am looking for one that uses CSS class names instead so that you can also put other components...

Basically one that uses this kind of HTML structure:

<div class="info">
	<h3><span>Title</span><a href="#" class="botton-user-open"> </a></h3>
	<div class="hidden-box">
		<div class="closed">
			<h4>Title 2<a href="#" class="botton-user-open"> </a></h4>
			<div class="hidden-box">
				 Content 1
                                 <some other component/>
			</div>
		</div>
		<div>
			<h4>Title 2<a href="#" class="botton-user-open"> </a></h4>
			<ul class="list hidden-box">
				<li>Content </li>
                        </ul>
               </div>
       </div>
</div>




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