Uploaded image for project: 'S2JSF'
  1. S2JSF
  2. JSF-50

selectタグのnullLabel属性にもValueBinding可能にしてほしい

XMLWordPrintable

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major Major
    • 1.1.2, 1.0.23
    • Affects Version/s: 1.1.1, 1.0.22
    • None
    • Environment:

      要望:
       ローカライズされたnullラベルを表示したい
      →nullLabel属性にもValueBinding可能にしてほしい

      指定方法:
      s2jsf-examples: selectOneMenu.html:

      <select m:value="#

      {selectOneMenuDto.aaa}

      " m:required="true"
      m:nullLabel="#

      {localizedNullLabel}

      "
      m:label="Aaa" size="2">
      <option>Please select</option>
      <option value="1">One</option>
      <option value="2">Two</option>
      <option value="3">Three</option>
      </select><br />

      patch:
      — HtmlSelectTagBase.java.org Thu Feb 15 15:26:07 2007
      +++ HtmlSelectTagBase.java Thu Feb 15 15:32:57 2007
      @@ -108,9 +108,14 @@
      child.setItemLabel(itemLabel);
      }
      if (nullLabel != null) {

      • child.setNullLabel(nullLabel);
        + String nullLabelVb = nullLabel;
        + if (isValueReference(nullLabel)) { + Object vb = BindingUtil.resolveBinding(nullLabel); + nullLabelVb = vb.toString(); + }

        + child.setNullLabel(nullLabelVb);
        }
        component.getChildren().add(child);
        }
        }
        -}
        \ No newline at end of file
        +}

            Assignee:
            yone yone
            Reporter:
            ttanaka T.Tanaka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: