Re: AjaxFallbackLink Text

2009-07-02 Thread Joshua Martin
Finally figured it out... For the benefit of others, my entire page with the AjaxFallbackLink w/ custom text: @SuppressWarnings("serial") public AssetsPage () { // List for columns List columns = new ArrayList();

Re: AjaxFallbackLink Text

2009-06-28 Thread Martin Grigorov
or override onComponentTagBody() and use the model instead of a Label. El dom, 28-06-2009 a las 11:09 +0200, Martijn Dashorst escribió: > It is for an object you can use in the onclick handler. > > new AjaxFallbackLink("oo", new Model(person)) { > onclick() { > Person p = getModelObj

Re: AjaxFallbackLink Text

2009-06-28 Thread Martijn Dashorst
It is for an object you can use in the onclick handler. new AjaxFallbackLink("oo", new Model(person)) { onclick() { Person p = getModelObject(); p.delete(); } } to display dynamic text inside the link, just nest a Label component inside the link. Link link = new Link(..

Re: AjaxFallbackLink Text

2009-06-27 Thread Bernard
Hi, I cannot find the purpose of the IModel constructor argument in AjaxFallbackLink(java.lang.String id, IModel model) as I was also trying to modify the anchor text via the IModel with AJAX. What is it? Many thanks. Bernard On Thu, 25 Jun 2009 12:11:37 -0500, you wrote: >Two ways come to m

Re: AjaxFallbackLink Text

2009-06-25 Thread Jeremy Thomerson
Two ways come to mind: - override onComponentTagBody and write it directly to the response - use a wicket:fragment - add the fragment to the column, the link to the fragment, and define the text in the html (or use wicket:message, etc) -- Jeremy Thomerson http://www.wickettraining.com On Thu,