@Override
  protected void initNestedMetawidget(MetawidgetTag metawidget, Map<String, String> attributes) {

    super.initNestedMetawidget(metawidget, attributes);

    BaseHtmlMetawidgetTag tag = (BaseHtmlMetawidgetTag) metawidget;

    tag.setStyle(mStyle);
    tag.setStyleClass(mStyleClass);
  }
Exemplo n.º 2
0
  /**
   * Sets the path of the object to inspect.
   *
   * <p>The value is set as a path (eg. <code>customerSearch</code>) rather than the object itself
   * (eg. <code>${customerSearch}</code>) so that we can 'inspect from parent' if needed.
   */
  public void setValue(String value) {

    super.setPathInternal(value);

    // Take the whole LHS of the path as the prefix, so that names are unique

    if (value != null) {
      int lastIndexOf = value.lastIndexOf(StringUtils.SEPARATOR_DOT_CHAR);

      if (lastIndexOf != -1) {
        setPathPrefix(value.substring(0, lastIndexOf + 1));
      }
    }
  }
Exemplo n.º 3
0
  /** Sets the LocalizationContext used to localize labels. */
  public void setBundle(LocalizationContext bundle) {

    super.setBundle(bundle.getResourceBundle());
  }