You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bla Bla <or...@hotmail.com> on 2004/11/12 12:56:50 UTC

submit-button-text ?!?!

hi,
i want to make multilingual buttons.
but it doesn´t work...
i have tried this:

html:
===
...
<form jwcid="form">
<table cellpadding="4" bgcolor="#FFFFE0" align="center">
......
<tr align="right">
<td colspan="2"><input type="submit" value="ognl:submitButtonTxt"/></td>
</tr>
</table>
</form>

page:
====

<component id="form" type="Form">
<binding name="listener" expression="listeners.formSubmit" />
</component>
<component id="SubmitButtonTxt" type="Submit">
<binding name="value" expression="SubmitButtonText"/>
</component>


java:
===

public String getSubmitButtonText(){
  log.info("Entered getSubmitButtonText()");
  String text;
    // do something...
return text;
}


the result was, that "submitButtonTxt" was printing on my buttons :-(

any one knows, what´s wrong??

_________________________________________________________________
Machen Sie lästigen E-Mails ein Ende. MSN Hotmail mit Junk-Mail-Filter. 
http://www.msn.de/antispam/prevention/junkmailfilter Jetzt kostenlos 
anmelden!


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


Re: submit-button-text ?!?!

Posted by Markus Wiederkehr <ma...@gmail.com>.
OGNL expressions can only be used with Tapestry components, not
ordinary HTML tags. You can use the Any component:

<input type="submit" jwcid="@Any" value="ognl:submitButtonTxt"/>

Markus

PS: Someone should add this to the FAQ...

On Fri, 12 Nov 2004 11:56:50 +0000, Bla Bla <or...@hotmail.com> wrote:
> hi,
> i want to make multilingual buttons.
> but it doesn´t work...
> i have tried this:
> 
> html:
> ===
> ...
> <form jwcid="form">
> <table cellpadding="4" bgcolor="#FFFFE0" align="center">
> ......
> <tr align="right">
> <td colspan="2"><input type="submit" value="ognl:submitButtonTxt"/></td>
> </tr>
> </table>
> </form>
> 
> page:
> ====
> 
> <component id="form" type="Form">
> <binding name="listener" expression="listeners.formSubmit" />
> </component>
> <component id="SubmitButtonTxt" type="Submit">
> <binding name="value" expression="SubmitButtonText"/>
> </component>
> 
> java:
> ===
> 
> public String getSubmitButtonText(){
>   log.info("Entered getSubmitButtonText()");
>   String text;
>     // do something...
> return text;
> }
> 
> the result was, that "submitButtonTxt" was printing on my buttons :-(
> 
> any one knows, what´s wrong??
> 
> _________________________________________________________________
> Machen Sie lästigen E-Mails ein Ende. MSN Hotmail mit Junk-Mail-Filter.
> http://www.msn.de/antispam/prevention/junkmailfilter Jetzt kostenlos
> anmelden!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
>

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