You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Santa_Claus <is...@dimensionv.de> on 2007/12/05 22:08:03 UTC

[Trinidad] messages

Hello,

I want to change the properties of the <tr:message> tag manually. How can
this be done?

Thanks for your help!
-- 
View this message in context: http://www.nabble.com/-Trinidad--messages-tf4952319.html#a14180692
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [Trinidad] messages

Posted by Santa_Claus <is...@dimensionv.de>.
Hi,

I´ve already tried this, it doesn´t work! :-(



Matthias Wessendorf-4 wrote:
> 
> Ok,
> 
> but... this validator, is! part of Tomahawk:
> <f:validator validatorId="org.apache.myfaces.validator.Email"/>
> (and now commons).
> 
> However the validator is available in your project, you can add the
> messages to your resource bundle(s)
> like to your (what ever the real file name is) "Messages_de.resources"
> file.
> 
> Just add these keys:
> org.apache.myfaces.Email.INVALID = Keine Email Adresse!
> org.apache.myfaces.Email.INVALID_detail = Der eingegebene Wert ({0})
> ist keine korrekte E-Mail-Adresse.
> 
> HTH,
> Matthias
> 
> 
> On Dec 6, 2007 4:39 PM, Santa_Claus <is...@dimensionv.de> wrote:
>>
>> Hello Matthias,
>> I don´t use tomahawk, as the configuration wouldn´t work out on my
>> system.
>> I have no idea where the output comes from.
>>
>> Regards, Santa
>>
>>
>> hi,
>>
>> i thought, you want to replace the Trinidad build-in Strings;
>> >      <f:validator validatorId="org.apache.myfaces.validator.Email"/>
>> > If an invalid email adress is entered, the output
>> > "org.apache.myfaces.Email.INVALID" is generated, which I want to change
>> > according to my locale.
>>
>> aren't there translations / messages for German in tomahawk?
>>
>> -M
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-Trinidad--messages-tf4952319.html#a14194512
>>
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Matthias Wessendorf
> 
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
> 
> 

-- 
View this message in context: http://www.nabble.com/-Trinidad--messages-tf4952319.html#a14195354
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [Trinidad] messages

Posted by Matthias Wessendorf <ma...@apache.org>.
Ok,

but... this validator, is! part of Tomahawk:
<f:validator validatorId="org.apache.myfaces.validator.Email"/>
(and now commons).

However the validator is available in your project, you can add the
messages to your resource bundle(s)
like to your (what ever the real file name is) "Messages_de.resources" file.

Just add these keys:
org.apache.myfaces.Email.INVALID = Keine Email Adresse!
org.apache.myfaces.Email.INVALID_detail = Der eingegebene Wert ({0})
ist keine korrekte E-Mail-Adresse.

HTH,
Matthias


On Dec 6, 2007 4:39 PM, Santa_Claus <is...@dimensionv.de> wrote:
>
> Hello Matthias,
> I don´t use tomahawk, as the configuration wouldn´t work out on my system.
> I have no idea where the output comes from.
>
> Regards, Santa
>
>
> hi,
>
> i thought, you want to replace the Trinidad build-in Strings;
> >      <f:validator validatorId="org.apache.myfaces.validator.Email"/>
> > If an invalid email adress is entered, the output
> > "org.apache.myfaces.Email.INVALID" is generated, which I want to change
> > according to my locale.
>
> aren't there translations / messages for German in tomahawk?
>
> -M
>
>
> --
> View this message in context: http://www.nabble.com/-Trinidad--messages-tf4952319.html#a14194512
>
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: [Trinidad] messages

Posted by Santa_Claus <is...@dimensionv.de>.
Hello Matthias,
I don´t use tomahawk, as the configuration wouldn´t work out on my system.
I have no idea where the output comes from.

Regards, Santa


hi,

i thought, you want to replace the Trinidad build-in Strings;
>      <f:validator validatorId="org.apache.myfaces.validator.Email"/>
> If an invalid email adress is entered, the output
> "org.apache.myfaces.Email.INVALID" is generated, which I want to change
> according to my locale.

aren't there translations / messages for German in tomahawk?

-M


-- 
View this message in context: http://www.nabble.com/-Trinidad--messages-tf4952319.html#a14194512
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [Trinidad] messages

Posted by Matthias Wessendorf <ma...@apache.org>.
hi,

i thought, you want to replace the Trinidad build-in Strings;
>      <f:validator validatorId="org.apache.myfaces.validator.Email"/>
> If an invalid email adress is entered, the output
> "org.apache.myfaces.Email.INVALID" is generated, which I want to change
> according to my locale.

aren't there translations / messages for German in tomahawk?

-M

>
> I hope my problem is clear now.
> Thanks in advance
>
> Santa
>
>
>
>
> Matthias Wessendorf-4 wrote:
> >
> > Hello Santa,
> >
> > are you talking about replacing some "wordings" or "translations" ?
> >
> > That is possible w/ a res.bundle;
> > You can see in the trinidad-skins.xml in the demo bundle how you can add
> > a resource bundle name:
> >
> > <skin>
> > <id>
> > purple.desktop
> > </id>
> > <family>
> > purple
> > </family>
> > <render-kit-id>
> > org.apache.myfaces.trinidad.desktop
> > </render-kit-id>
> > <style-sheet-name>
> > skins/purple/purpleSkin.css
> > </style-sheet-name>
> > <bundle-name>
> > org.apache.myfaces.trinidaddemo.resource.SkinBundle
> > </bundle-name>
> > </skin>
> >
> > And the resource bundle code looks like this:
> >
> > package org.apache.myfaces.trinidaddemo.resource;
> >
> > import java.util.ListResourceBundle;
> >
> > public class SkinBundle extends ListResourceBundle
> > {
> > @Override
> > public Object[][] getContents()
> > {
> > return _CONTENTS;
> > }
> >
> > static private final Object[][] _CONTENTS =
> > {
> > {"af_tableSelectMany.SELECT_COLUMN_HEADER", "Select A Lot"},
> > {"af_tableSelectOne.SELECT_COLUMN_HEADER", "Select Just One"},
> > ...,
> > };
> >
> > HTH,
> > Matthias
> >
> > On Dec 5, 2007 10:08 PM, Santa_Claus <is...@dimensionv.de> wrote:
> >>
> >> Hello,
> >>
> >> I want to change the properties of the <tr:message> tag manually. How can
> >> this be done?
> >>
> >> Thanks for your help!
> >> --
> >> View this message in context:
> >> http://www.nabble.com/-Trinidad--messages-tf4952319.html#a14180692
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > sessions: http://www.slideshare.net/mwessendorf
> > mail: matzew-at-apache-dot-org
> >
> >
>
> --
> View this message in context: http://www.nabble.com/-Trinidad--messages-tf4952319.html#a14193898
>
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: [Trinidad] messages

Posted by Santa_Claus <is...@dimensionv.de>.
Hello Matthias,

yes, I mean the automatically generated error messages and their
translation.
An example:
I´m using a validator to check if an email-adress is valid.
Here is the jsf code:

<tr:inputText id="email" label="#{msg['user.email']}"
value="#{registrationBean.user.email}" required="true" >
     <f:validator validatorId="org.apache.myfaces.validator.Email"/>
<tr:message id="emailError" for="email" styleClass="error"/>

If an invalid email adress is entered, the output
"org.apache.myfaces.Email.INVALID" is generated, which I want to change
according to my locale.

I hope my problem is clear now.
Thanks in advance

Santa

	

Matthias Wessendorf-4 wrote:
> 
> Hello Santa,
> 
> are you talking about replacing some "wordings" or "translations" ?
> 
> That is possible w/ a res.bundle;
> You can see in the trinidad-skins.xml in the demo bundle how you can add
> a resource bundle name:
> 
> <skin>
> <id>
> purple.desktop
> </id>
> <family>
> purple
> </family>
> <render-kit-id>
> org.apache.myfaces.trinidad.desktop
> </render-kit-id>
> <style-sheet-name>
> skins/purple/purpleSkin.css
> </style-sheet-name>
> <bundle-name>
> org.apache.myfaces.trinidaddemo.resource.SkinBundle
> </bundle-name>
> </skin>
> 
> And the resource bundle code looks like this:
> 
> package org.apache.myfaces.trinidaddemo.resource;
> 
> import java.util.ListResourceBundle;
> 
> public class SkinBundle extends ListResourceBundle
> {
> @Override
> public Object[][] getContents()
> {
> return _CONTENTS;
> }
> 
> static private final Object[][] _CONTENTS =
> {
> {"af_tableSelectMany.SELECT_COLUMN_HEADER", "Select A Lot"},
> {"af_tableSelectOne.SELECT_COLUMN_HEADER", "Select Just One"},
> ...,
> };
> 
> HTH,
> Matthias
> 
> On Dec 5, 2007 10:08 PM, Santa_Claus <is...@dimensionv.de> wrote:
>>
>> Hello,
>>
>> I want to change the properties of the <tr:message> tag manually. How can
>> this be done?
>>
>> Thanks for your help!
>> --
>> View this message in context:
>> http://www.nabble.com/-Trinidad--messages-tf4952319.html#a14180692
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Matthias Wessendorf
> 
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
> 
> 

-- 
View this message in context: http://www.nabble.com/-Trinidad--messages-tf4952319.html#a14193898
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [Trinidad] messages

Posted by Matthias Wessendorf <ma...@apache.org>.
Hello Santa,

are you talking about replacing some "wordings" or "translations" ?

That is possible w/ a res.bundle;
You can see in the trinidad-skins.xml in the demo bundle how you can add
a resource bundle name:

<skin>
<id>
purple.desktop
</id>
<family>
purple
</family>
<render-kit-id>
org.apache.myfaces.trinidad.desktop
</render-kit-id>
<style-sheet-name>
skins/purple/purpleSkin.css
</style-sheet-name>
<bundle-name>
org.apache.myfaces.trinidaddemo.resource.SkinBundle
</bundle-name>
</skin>

And the resource bundle code looks like this:

package org.apache.myfaces.trinidaddemo.resource;

import java.util.ListResourceBundle;

public class SkinBundle extends ListResourceBundle
{
@Override
public Object[][] getContents()
{
return _CONTENTS;
}

static private final Object[][] _CONTENTS =
{
{"af_tableSelectMany.SELECT_COLUMN_HEADER", "Select A Lot"},
{"af_tableSelectOne.SELECT_COLUMN_HEADER", "Select Just One"},
...,
};

HTH,
Matthias

On Dec 5, 2007 10:08 PM, Santa_Claus <is...@dimensionv.de> wrote:
>
> Hello,
>
> I want to change the properties of the <tr:message> tag manually. How can
> this be done?
>
> Thanks for your help!
> --
> View this message in context: http://www.nabble.com/-Trinidad--messages-tf4952319.html#a14180692
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: [Trinidad] sortProperty in tr:table (tr:column)

Posted by Alessandro Lazarotti <al...@siq.com.br>.
ops, I understand now the code.

... thanks
Alessandro


Alessandro Lazarotti escreveu:
> Thanks Gerhard!
> But how to apply the patch?
> 
> []s
> Alessandro
> 
> Gerhard Petracek escreveu:
>> hello alessandro,
>>
>> that's a known issue - i provided a patch:
>> https://issues.apache.org/jira/browse/TRINIDAD-768
>>
>> regards,
>> gerhard
>>
>>
>>
>> 2007/12/5, Alessandro Lazarotti <alessandro@siq.com.br 
>> <ma...@siq.com.br>>:
>>
>>     How sort properties of objects like:
>>
>>     <tr:column headerText="City" sortable="true"
>>     sortProperty="country.state.city" defaultSortOrder="descending">
>>             <tr:outputText value="#{ myVar.country.state.city}" />
>>     </tr:column>
>>
>>     ... the navigation in object (country.state.city) don't work with
>>     Trinidad or I don't known to work with tr:table?
>>
>>     (In Tomahawk, this working fine)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>     Scott O'Bryan escreveu:
>>      > Not sure what you mean by manually...  What properties.  Are you
>>     talking
>>      > attributes?
>>      >
>>      > Scott
>>      >
>>      > Santa_Claus wrote:
>>      >> Hello,
>>      >>
>>      >> I want to change the properties of the <tr:message> tag
>>     manually. How can
>>      >> this be done?
>>      >>
>>      >> Thanks for your help!
>>      >>
>>      >
>>      >
>>
>>
>>
>>
>> -- 
>>
>> http://www.irian.at
>>
>> Your JSF powerhouse -
>> JSF Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
> 

Re: [Trinidad] sortProperty in tr:table (tr:column)

Posted by Alessandro Lazarotti <al...@siq.com.br>.
Thanks Gerhard!
But how to apply the patch?

[]s
Alessandro

Gerhard Petracek escreveu:
> hello alessandro,
> 
> that's a known issue - i provided a patch:
> https://issues.apache.org/jira/browse/TRINIDAD-768
> 
> regards,
> gerhard
> 
> 
> 
> 2007/12/5, Alessandro Lazarotti <alessandro@siq.com.br 
> <ma...@siq.com.br>>:
> 
>     How sort properties of objects like:
> 
>     <tr:column headerText="City" sortable="true"
>     sortProperty="country.state.city" defaultSortOrder="descending">
>             <tr:outputText value="#{ myVar.country.state.city}" />
>     </tr:column>
> 
>     ... the navigation in object (country.state.city) don't work with
>     Trinidad or I don't known to work with tr:table?
> 
>     (In Tomahawk, this working fine)
> 
> 
> 
> 
> 
> 
> 
> 
> 
>     Scott O'Bryan escreveu:
>      > Not sure what you mean by manually...  What properties.  Are you
>     talking
>      > attributes?
>      >
>      > Scott
>      >
>      > Santa_Claus wrote:
>      >> Hello,
>      >>
>      >> I want to change the properties of the <tr:message> tag
>     manually. How can
>      >> this be done?
>      >>
>      >> Thanks for your help!
>      >>
>      >
>      >
> 
> 
> 
> 
> -- 
> 
> http://www.irian.at
> 
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces

Re: [Trinidad] sortProperty in tr:table (tr:column)

Posted by Gerhard Petracek <ge...@gmail.com>.
hello alessandro,

that's a known issue - i provided a patch:
https://issues.apache.org/jira/browse/TRINIDAD-768

regards,
gerhard



2007/12/5, Alessandro Lazarotti <al...@siq.com.br>:
>
> How sort properties of objects like:
>
> <tr:column headerText="City" sortable="true"
> sortProperty="country.state.city" defaultSortOrder="descending">
>         <tr:outputText value="#{myVar.country.state.city}" />
> </tr:column>
>
> ... the navigation in object (country.state.city) don't work with
> Trinidad or I don't known to work with tr:table?
>
> (In Tomahawk, this working fine)
>
>
>
>
>
>
>
>
>
> Scott O'Bryan escreveu:
> > Not sure what you mean by manually...  What properties.  Are you talking
> > attributes?
> >
> > Scott
> >
> > Santa_Claus wrote:
> >> Hello,
> >>
> >> I want to change the properties of the <tr:message> tag manually. How
> can
> >> this be done?
> >>
> >> Thanks for your help!
> >>
> >
> >
>



-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

[Trinidad] sortProperty in tr:table (tr:column)

Posted by Alessandro Lazarotti <al...@siq.com.br>.
How sort properties of objects like:

<tr:column headerText="City" sortable="true" 
sortProperty="country.state.city" defaultSortOrder="descending">
	<tr:outputText value="#{myVar.country.state.city}" />
</tr:column>

... the navigation in object (country.state.city) don't work with 
Trinidad or I don't known to work with tr:table?

(In Tomahawk, this working fine)









Scott O'Bryan escreveu:
> Not sure what you mean by manually...  What properties.  Are you talking 
> attributes?
> 
> Scott
> 
> Santa_Claus wrote:
>> Hello,
>>
>> I want to change the properties of the <tr:message> tag manually. How can
>> this be done?
>>
>> Thanks for your help!
>>   
> 
> 

Re: [Trinidad] messages

Posted by Scott O'Bryan <da...@gmail.com>.
Not sure what you mean by manually...  What properties.  Are you talking 
attributes?

Scott

Santa_Claus wrote:
> Hello,
>
> I want to change the properties of the <tr:message> tag manually. How can
> this be done?
>
> Thanks for your help!
>