Hi all,
currently, the visibility of the resource link is not updated when the parent
component of the panel is rendered again based on an ajax call.
How can the visibility set dynamically based on the model’s data?
Thanks, Chris
public SomePanel(String id, final IModel<List<A>> model) {
super(id, model);
ResourceLink pl = new ResourceLink("pdfLink", new
ByteArrayResource("application/pdf") {...}
pl.setVisible(routingModel.getObject().get(0).getElements().size() > 0);
...
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]