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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to