You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Anjali Abraham <an...@aztec.soft.net> on 2005/09/27 16:11:21 UTC

How to get the localization for the PropertySelection

Hi,
            Another question on localization.....
Well, I have in my html wherein I have a drop down, and that is being
implemented using PropertySelection.
 
How do I get the data's in my drop down in a localization using
Tapestry4???????
 
My html content is:
<tr>
   <th class="text"><span jwcid="@FieldLabel"
field="ognl:components.timeZone" displayName="message:timeZone"/></th>
      <td><select jwcid="timeZone"> </select></td>
</tr>
 
My .page content:
<component id="timeZone" type="PropertySelection">
<binding name="model" value="timeZones"/>
<binding name="value" value="timeZone"/>
            <binding name="displayName" value="message:timeZone"/>
</component>
 
My .Java code for the same is:
public IPropertySelectionModel getTimeZones() {
return new StringPropertySelectionModel(new String[] { "Pacific Standard
Time", "Mountain Standard Time", "Central Standard Time", "Eastern Standard
Time","Greenwich Mean Time"});
 }
 
I know that I need to specify these values mentioned in  this
StringPropertySelectionModel method need to be moved to my .properties
files... but how do I need to access these from my .properties file and
display that in my .html files.
 
Please respnd with solutions,
Thanks in advance,
 
 
 
Regards,
Anjali