do something like this ...

on the markup template

<span wicket:id="mySpan">some text<s/pan>

on java
Label mySpan = new Label("mySpan", new AbstractReadonlyModel<String>(){

         public String getObject() {
               return myUpdatedText ;
         }
});
mySpan.setOutputMarkupId(true) ;

//on your ajax line
updateMyText();
ajaxRequestTarget.add(mySpan);

Josh.

On Sat, Mar 17, 2012 at 5:15 PM, Dan12321 <wee...@centrum.cz> wrote:

> Hello,
> I have got span element (....) with text and I would like to refresh this
> span when I click on ajaxlink. It is possible? How can refresh only this
> span element.
> The ajaxlink is not connect with this span element. These are two different
> elements in page.
>
> Thanks.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/refresh-component-tp4480640p4480640.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to