Hi All,
I looked at the following
http://cwiki.apache.org/WICKET/adding-links-in-a-defaultdatatable.html
to create a column with hyperlinks. Also added the following for the markup
public IResourceStream getMarkupResourceStream(MarkupContainer
container,
Class containerClass)
{
return new StringResourceStream("<wicket:panel> \"#\" <div
wicket:id=\"label\">[Component Name ]</div> </wicket:panel>");
}
Now: Question is :
I want to be able to get the value of the label on which I clicked and use
that value and get Blob from DB.
But when I access item.getModelObject() it always returns NULL as model is
already detached (btw, I am using LoadableDetachableModel while populating
DataTable). How to get back the label(text) on which I clicked.I am adding
the reusable component(PropertyColumn with Link) like this
columns.add(new LinkPropertyColumn(new Model("Generated Image
Id"),"<SortProperty>","<PropertyExpression>")
{
@Override
public void onClick(Item item, String componentId, IModel model)
{
//HOWTO: Get the value of the link on which I clicked ??
// model.getObject() returns NULL
// item.getModelObject() returns NULL
}
Thanks for any suggestions
--
View this message in context:
http://www.nabble.com/Link-inside-DataTable---PropertyColumn-with-Link-tp19163807p19163807.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]