/** * Renders and icon/image from a JcrResourceStream which is referenced by an {@link IModel}. Delegates rendering * to the {@link JcrImage} which simply outputs an {@code <img />} element. * @param id the Wicket id of the icon * @param model the model containing the icon stream * @return the icon component */ public static HippoIcon fromStream(final String id, final IModel<JcrResourceStream> model) { return fromStream(id, model, -1, -1); }
return HippoIcon.fromStream(id, Model.of(stream), iconWidth, iconHeight);