You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by mahulianand <ma...@gmail.com> on 2012/10/01 07:02:59 UTC
Problem in Localizing submit button
i want to localize my submit and reset button
this is the code i have written
<input wicket:id="btnLogin" name="bt_Login" wicket:message="value:submit"
type="submit">
<input wicket:id="btnReset" wicket:message="value:reset" type="reset">
but null value is coming for the button.
when i check the code in IE i was like
<input name="btnLogin" id="btnLogin2" type="submit" wicket:id=""
wicket:message="" value="Submit"/>
<input name="btnReset" id="btnReset3" type="reset" wicket:id=""
wicket:message="" value="Reset"/>
how come the wicket:id and wicket:message became "" and even though it is
showing value in tag in page its null
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-Localizing-submit-button-tp4652555.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Problem in Localizing submit button
Posted by mahulianand <ma...@gmail.com>.
yeah i had tried it using Resource Model.
still no good.
But surprisingly when i created the project again from zero the problem
didnt repeat itself.
so may be i made some mistake in the previous project.
Thanks.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-Localizing-submit-button-tp4652555p4652729.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Problem in Localizing submit button
Posted by Paul Bors <pa...@bors.ws>.
You can always use myButton.add(new AttributeModifier("value", new
ResourceModel("my.language.pack.key"))) :)
But yes, someone should open the Jira with the quick start and also mention
the improvement for the button html tag itself.
~ Thank you,
Paul Bors
-----Original Message-----
From: Sebastien [mailto:sebfz1@gmail.com]
Sent: Friday, October 05, 2012 2:13 PM
To: users@wicket.apache.org
Subject: Re: Problem in Localizing submit button
> In the mid time you could look to the Java code and provide the model
> for
the VALUE attribute of the button (I know that works :)
True, but be sure the associated tag is (input type="button"); it does not
work with tag (button), AFAIK.
Would be a good enhancement btw.
Regards,
Sebastien.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Problem in Localizing submit button
Posted by Sebastien <se...@gmail.com>.
> In the mid time you could look to the Java code and provide the model for
the VALUE attribute of the button (I know that works :)
True, but be sure the associated tag is (input type="button"); it does not
work with tag (button), AFAIK.
Would be a good enhancement btw.
Regards,
Sebastien.
RE: Problem in Localizing submit button
Posted by Paul Bors <pa...@bors.ws>.
In the mid time you could look to the Java code and provide the model for the VALUE attribute of the button (I know that works :)
http://wicket.apache.org/apidocs/1.5/org/apache/wicket/markup/html/form/Button.html#Button(java.lang.String, org.apache.wicket.model.IModel)
~ Thank you,
Paul Bors
-----Original Message-----
From: Martin Grigorov [mailto:mgrigorov@apache.org]
Sent: Friday, October 05, 2012 7:25 AM
To: users@wicket.apache.org
Subject: Re: Problem in Localizing submit button
Create a quickstart application and attach it to a ticket in Jira.
On Fri, Oct 5, 2012 at 2:22 PM, mahulianand <ma...@gmail.com> wrote:
> i also tried it using wicket 1.5.8 but same problem any suggestions
> please.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Problem-in-Localizing-submi
> t-button-tp4652555p4652689.html Sent from the Users forum mailing list
> archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Problem in Localizing submit button
Posted by Martin Grigorov <mg...@apache.org>.
Create a quickstart application and attach it to a ticket in Jira.
On Fri, Oct 5, 2012 at 2:22 PM, mahulianand <ma...@gmail.com> wrote:
> i also tried it using wicket 1.5.8 but same problem
> any suggestions please.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-Localizing-submit-button-tp4652555p4652689.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Problem in Localizing submit button
Posted by mahulianand <ma...@gmail.com>.
i also tried it using wicket 1.5.8 but same problem
any suggestions please.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-Localizing-submit-button-tp4652555p4652689.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Problem in Localizing submit button
Posted by Martin Grigorov <mg...@apache.org>.
Please try with 1.5.8
The 'value' attribute is OK as far as I see.
There is some problem with wicket:xyz
On Mon, Oct 1, 2012 at 12:14 PM, mahulianand <ma...@gmail.com> wrote:
> i am using wicket 1.5.2 version
>
> the problem is that instead of the text in properties file null value is
> printed on the button.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-Localizing-submit-button-tp4652555p4652569.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Problem in Localizing submit button
Posted by mahulianand <ma...@gmail.com>.
i am using wicket 1.5.2 version
the problem is that instead of the text in properties file null value is
printed on the button.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-Localizing-submit-button-tp4652555p4652569.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Problem in Localizing submit button
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
Which version of Wicket is this ?
wicket:xyz tags and attributes are not written in the produced HTML in
production mode.
You can disable them in DEV mode too with:
app.getMarkupSettings().setStripWicketTags(true).
On Mon, Oct 1, 2012 at 8:02 AM, mahulianand <ma...@gmail.com> wrote:
> i want to localize my submit and reset button
> this is the code i have written
>
> <input wicket:id="btnLogin" name="bt_Login" wicket:message="value:submit"
> type="submit">
> <input wicket:id="btnReset" wicket:message="value:reset" type="reset">
>
> but null value is coming for the button.
> when i check the code in IE i was like
>
> <input name="btnLogin" id="btnLogin2" type="submit" wicket:id=""
> wicket:message="" value="Submit"/>
> <input name="btnReset" id="btnReset3" type="reset" wicket:id=""
> wicket:message="" value="Reset"/>
>
> how come the wicket:id and wicket:message became "" and even though it is
> showing value in tag in page its null
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-Localizing-submit-button-tp4652555.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org