Hi,
I am having a table with deactivate and delete link columns. In the delete
column I want to have delete image, so pressing on the image will activate
the delete function on the server.
My html code:
<td>< a href="#" wicket:id="active-link" >< span wicket:id="poll.active" >
</td>
<td>< a href="#" wicket:id="delete-link" >< img src="images/delete_icon.png"
/> </td>
My java code:
Link activeLink = new Link("active-link", item.getModel()) {
public void onClick() {
onActivePoll((Poll) getModelObject());
}
};
activeLink.add(new Label("poll.active", "activate"));
item.add(activeLink);
Link deleteLink = new Link("delete-link", item.getModel()) {
public void onClick() {
onDeletePoll((Poll) getModelObject());
}
};
item.add(deleteLink);
While the activate link work ok, the delete link which use the image is not
appearing in the html and I see just the image with no link.
Any idea what I am doing wrong?
Thanks in advance,
Itay
--
View this message in context:
http://www.nabble.com/image-link-inside-of-table-problem-tp20442713p20442713.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]