javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-983

Enable all standard validator and converter attributes for ValueExpressions

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: Validation/Conversion
    • Labels:
      None

      Description

      At the moment for example the <f:convertNumber> converter does not allow to use dynamic value expressions. As a result the converter cannot be used within <h:dataTable> or any other iterating components because the attribute values will be evaluated at component creation and not at runtime.

      Imagine an example where money values of different currencies will be displayed in a table:
      <h:dataTable value="someData" var="item">
      <h:column>
      <h:outputText value="#

      {item.moneyValue}

      ">
      <f:convertNumber currencyCode="#

      {item.moneyCurrencyCode}

      " />
      </h:outputText>
      </h:column>
      </h:dataTable>

      This will not work as the currencyCode attribute will not be evaluated dynamically when converting the value.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Mathias Werlitz
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: