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();
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
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(..
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
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,