@Override
 protected void onComponentTag(ComponentTag tag) {
   checkComponentTag(tag, "progress");
   super.onComponentTag(tag);
   tag.put("value", value.get());
   tag.put("max", max.get());
 }
Esempio n. 2
0
  /** @see org.apache.wicket.Component#onComponentTag(ComponentTag) */
  @Override
  protected void onComponentTag(final ComponentTag tag) {
    checkComponentTag(tag, "img");
    super.onComponentTag(tag);
    final IResource resource = getImageResource();
    if (resource != null) {
      localizedImageResource.setResource(resource);
    }
    final ResourceReference resourceReference = getImageResourceReference();
    if (resourceReference != null) {
      localizedImageResource.setResourceReference(resourceReference);
    }
    localizedImageResource.setSrcAttribute(tag);

    if (shouldAddAntiCacheParameter()) {
      addAntiCacheParameter(tag);
    }
  }
 /*
  * (non-Javadoc)
  * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
  */
 @Override
 protected void onComponentTag(ComponentTag tag) {
   super.onComponentTag(tag);
   // make sure that our JS button will render in the container of right tag
   tag.setName("div");
 }