Beehive
  1. Beehive
  2. BEEHIVE-1101

netui JSP tags should support dataSource "refs"

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0, 1.0.1, 1.0.2
    • Fix Version/s: None
    • Component/s: NetUI
    • Labels:
      None

      Description

      In 1.0.1, the NetUI JSP tags use a "dataSource" attribute to refer to data in a data bindable object. For UI elements that are translated into HTML "input"s, the "dataSource" attribute is often bound to an action form. For example:

      <netui:textBox dataSource="actionForm.name"/>

      where the rendered HTML will contain:

      <input type="text" name="

      {actionForm.name}

      "/>

      In some circumstances, however, this behavior is limiting; for example, wnen building reusable UI components using JSP 2.0 .tag files, the dataSource might need to be referred to via a dataSource "ref" that refers to a property on a JavaBean or entry in a Map to find the actual expression. This might look like:

      <netui:textBox dataSource="ref:refBean.textProperty"/>

      where the "ref:" prefix would cause the <textBox> tag to lookup the "refBean.textProperty" to ultimately find the expression "actionForm.name". This would allow the creation of larger, reusable components that could be data bound to objects of different shapes rather than to a the shape of a single action form.

      Would be a nice-to-have feature...

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Eddie O'Neil
            Reporter:
            Eddie O'Neil
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development