Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-91

Replace ID for messages by adding "replaceIdForMessage" attribute

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Message(s), New Component
    • None
    • JBoss 4.0.3, XP

    Description

      A Java property map, a collection of name/value pairs, is renederd as a dataTable, and user can change values.
      Two columns: property name and property value. Values are rendered in a subview as different components based on their types.

      For validation errors or conversion errors, the generated IDs are used, for example,
      "_idJsp155": value is required

      <outputLabel for=".."> does not work in this case.

      An optional attribute for UIData component like
      replaceIdForMessages="#

      {row.propertyName}

      "

      would solve the problem.
      Its value can bind to a back bean property, supporting localization automatically.

      It is more efficient than <outputLabel for="..."> that requires findComponent() to search the tree.

      Attachments

        Activity

          People

            Unassigned Unassigned
            javaone9 Dave
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: