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
ListIColumn columns = new ArrayListIColumn();
Hi,
I cannot find the purpose of the IModel constructor argument in
AjaxFallbackLink(java.lang.String id, IModelT 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
It is for an object you can use in the onclick handler.
new AjaxFallbackLinkPerson(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.
a href=#
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 AjaxFallbackLinkPerson(oo, new Model(person)) {
onclick() {
Person p =
Trying to add an AjaxFallbackLink to a DataTable via an AbstractColumn
and I can't figure out how to set the text in the cell to say
something like view details or something.
I know that in the constructor, the String is for the component's ID,
and I thought that the model was for the text in the
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,