You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by cosmindumy <co...@yahoo.com> on 2012/01/23 16:26:50 UTC

replace with tag

Hello,
Due to Internet Explorer issues, I have to change all <input wicket:id="id"
type = "button"> with  
Everything was fine until I had to change a component whose value was put
using ResourceModel.
The java component is a customized AjaxButtom. 
When I instatiate the component like  submit = new SubmitButton("submit",
new ResourceModel("my.key")); there is no text on my button.
If I inspect the element "a" has a attribute value with the text.
How can I solve this?
Thanks.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-input-type-button-with-tag-a-tp4320997p4320997.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: replace with tag

Posted by cosmindumy <co...@yahoo.com>.
In wicket 1.4.18 there is no method setBody() in AbstractLink.
If there is no other possibility don't bother. I found a backup solution.    

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-input-type-button-with-tag-a-tp4320997p4323257.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: replace with tag

Posted by Martin Grigorov <mg...@apache.org>.
org.apache.wicket.markup.html.link.AbstractLink#setBody()

On Mon, Jan 23, 2012 at 6:14 PM, cosmindumy <co...@yahoo.com> wrote:
> Hi,
> SubmitLink doesn't know ajax, nor AjaxCallDecorator. And AjaxSubmitLink
> doesn't has a model. How can I dinamically change the text in
> AjaxSubmitLink?
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-input-type-button-with-tag-a-tp4320997p4321148.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: replace with tag

Posted by cosmindumy <co...@yahoo.com>.
Hi,
SubmitLink doesn't know ajax, nor AjaxCallDecorator. And AjaxSubmitLink
doesn't has a model. How can I dinamically change the text in
AjaxSubmitLink? 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-input-type-button-with-tag-a-tp4320997p4321148.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: replace with tag

Posted by Martin Grigorov <mg...@apache.org>.
You need SubmitLink instead.
I.e. <a ...>TEXT</a> instead of <a .. value="TEXT"></a>

On Mon, Jan 23, 2012 at 5:26 PM, cosmindumy <co...@yahoo.com> wrote:
> Hello,
> Due to Internet Explorer issues, I have to change all <input wicket:id="id"
> type = "button"> with
> Everything was fine until I had to change a component whose value was put
> using ResourceModel.
> The java component is a customized AjaxButtom.
> When I instatiate the component like  submit = new SubmitButton("submit",
> new ResourceModel("my.key")); there is no text on my button.
> If I inspect the element "a" has a attribute value with the text.
> How can I solve this?
> Thanks.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-input-type-button-with-tag-a-tp4320997p4320997.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