Hi,
Its not working...
My code is like this:
<input name="reset" jwcid="@Any" type=reset value="ognl:rRDTO.reset"
displayName="message:reset" style="background: white; color: grey;">
and for the above code I am getting this error:
org.apache.hivemind.ApplicationRuntimeException
Could not parse template context:/WEB-INF/signup.html.
location: context:/WEB-INF/signup.html, line 95
90
<TR>
91
<td> </td>
92
<TD align="left">
93
<input name="submit" type=submit value="Signup" style="background: white;
color: grey;">
94
<input name="reset" type=reset jwcid="@Any" value="ognl:rRDTO.reset"
displayName="message:reset" style="background: white; color: grey;">
95
</TD>
96
</TR>
97
98
</TABLE>
99
</FORM>
100
</td>
org.apache.tapestry.parse.TemplateParseException
Closing tag </TD> on line 95 is improperly nested with tag <input> on line
94.
location: context:/WEB-INF/signup.html, line 95
90
<TR>
91
<td> </td>
92
<TD align="left">
93
<input name="submit" type=submit value="Signup" style="background: white;
color: grey;">
94
<input name="reset" type=reset jwcid="@Any" value="ognl:rRDTO.reset"
displayName="message:reset" style="background: white; color: grey;">
95
</TD>
96
</TR>
But when I remove jwcid="@Any" from the input tag, the error goes
off...?????
Regards,
Anjali
-----Original Message-----
From: Filip S. Adamsen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 27, 2005 1:51 PM
To: Tapestry users
Subject: Re: How ro apply Localization
Hi,
Add jwcid="@Any" to your <input> and it should work.
Anjali Abraham wrote:
> Hi,
> Everything works but what about for the input tag with the
> type=submit an type=reset....
> I have given in the code like this:
> <input name="reset" type=reset value="ognl:rRDTO.reset"
> displayName="message:reset" style="background: white; color: grey;">
>
> But on the button, I am getting its display name as "ognl:rRDTO.reset"...
> For this how can we apply localization????????
>
> Please respond,
> Thanks in advance,
>
> Regards,
> Anjali
>
> -----Original Message-----
> From: Muralidhar Y. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 27, 2005 9:17 AM
> To: 'Tapestry users'
> Subject: RE: How ro apply Localization
>
>
> If you want to acieve both you have to use "FieldLabel" component and map
> its display name parameter to localisation. Look at the following one.
> Always you have to use "FieldLabel" in combination with "ValidField" .
>
> <td class="labelmndt"><span jwcid="@FieldLabel"
> field="ognl:components.origin" displayName="message:origin" >Origin</span>
:
> </td>
> <td><input class="inputs" jwcid="[EMAIL PROTECTED]"
> value="ognl:rRDTO.origin"
> displayName="message:origin" />
> </td>
>
>
> 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: 26 September 2005 19:08
> To: Tapestry users
> Subject: RE: How ro apply Localization
>
> Hi,
> Well It worked, but there is a small issue.
> 1st of all let me tell you what I have done...
> <tr>
> <th class="text" width="40%"><label jwcid="@FieldLabel"
> field="component:firstName">message:signup.firstname</label></th>
> <td width="60%"><input type="text" jwcid="firstName"
> size="30"/></td>
> </tr>
> the above code is my previous code before change
>
> Actually I was using @FieldLabel for displaying label. This also helps me
to
> show that field as mandatory fields showing it to me in red color.
>
> Then I have changed it to:
> <tr>
> <th class="text" width="40%">
> <span jwcid="@Insert" value="message:signup.firstname"/>
> </th>
> <td width="60%"><input type="text" jwcid="firstName"
> size="30"/></td>
> </tr>
>
> With this change in code, the localization worked but when I click on the
> submit button by leaving my first name field empty, its not showing it as
> red color....
> How can I implement both the features..??????
>
> Please respond,
> Thanks in advance,
> Regards,
> Anjali
>
> -----Original Message-----
> From: Andreas Andreou [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 26, 2005 8:08 PM
> To: Tapestry users
> Subject: Re: How ro apply Localization
>
> Use
> <span jwcid="@Insert" value="message:signup.firstname"/>
>
> Anjali Abraham wrote:
>
>
>>In my .html file, I have the code like this:
>><tr>
>><th class="text" width="40%"><label jwcid="@FieldLabel"
>>field="component:firstName">message:signup.firstname</label></th>
>> <td width="60%"><input type="text" jwcid="firstName"
>>size="30"/></td> </tr>
>>
>>I am trying to apply localization as shown above. But nothing matters
>>in this case...
>>How do I need to apply localization in this case.....
>>Please help...
>>Thanks in advance,
>>
>>Regards,
>>Anjali
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>