Hi anjali first I need a rRDTO in my code so I used it and you don't need
that. I had given that code as an example.

Ok coming to your problem again. See if you need to use ognl expression
like(message:lblname) if html tag should contain atleast one tapestry
component. That means one "jwcid" attribute then you can use any of the ognl
expression for localisation. In your code  you declared jwcid="resendCode"
once that is enough you can straight awy use ognl expression like the
following

 <input name="submit" value="message:ResendCode"  type=submit
jwcid="resendCode"
    style="background: white; color: grey;" />
                      
                           in the above "message:ResendCode" is an ognl
expression which takes the text from the properties file mapped with the key
"ResendCode" .

In your earlier case you had not declared even a single "jwcid" that means
in that html tag you have not declared any tapestry component so ognl
expression does not work. To make it work we are adding a component "Any"
which does nothing but add the same tag to html and the same informal
parameters to that html tag.

In current case you had already one "jwcid" declared so why do you think of
declaring or using "Any" componet. Here you can directly use
"message:keyFromResourceBundle" ognl expression to the attribute you like to
have localisation.

Is it clear now...




Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero  
(Keep Smiling. Be happy All The Time.)

-----Original Message-----
From: Anjali Abraham [mailto:[EMAIL PROTECTED] 
Sent: 27 September 2005 16:23
To: Tapestry users
Subject: RE: How ro apply Localization

Hi,
        Need help again!!!!
        Well I have one more problem regarding localization for button
names.
I have a scenario wherein I have 2 buttons in my one page and based on click
on individual button, I need to carry out different functionality... for
this I have given jwcid to each button. 
Now my question is, as we cannt give 2 jwcid in a single <input> tag, so how
are we going to give localization to that button without using jwcid="@Any".

Well let me given you my .html and .page code:
Below is my .html code:

<input name="submit" value="Resend code"  type=submit jwcid="resendCode"
style="background: white; color: grey;" />

<input name="submit" value="Verify" type=submit jwcid="verify"
style="background: white; color: grey;" />

And Below is my .page file:

<component id="resendCode" type="Submit">
        <binding name="selected" value="buttonClicked"/>
        <binding name="tag" value="literal:resendCode"/> </component>

<component id="verify" type="Submit">
        <binding name="selected" value="buttonClicked"/>
        <binding name="tag" value="literal:verify"/> </component>

Please respond with solution:
Thanks in advance,

Regards,
Anjali

-----Original Message-----
From: Filip S. Adamsen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 27, 2005 3:19 PM
To: Tapestry users
Subject: Re: How ro apply Localization

Hi,

Well, if you ONLY want localization and nothing else on your reset button,
then perhaps

   <input name="reset" type="reset" jwcid="@Any" value="message:reset" 
style="background: white; color: grey;">

would do the trick? Question is, what do you need your rRDTO property for?
It looks like it's just there for no reason at all...

-Filip

Anjali Abraham wrote:
> Well you are right, I haven't defined "rRDTO" in my .java or my .page 
> file... well I have one doubt, do I require this for my reset button's
label
> apply localization and if it is required then how do I define the OGNL 
> expression for " rRDTO" in my either .java/.page file.
> 
> Regards,
> Anjali

Reply via email to