You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by Chad Schoettger <ch...@gmail.com> on 2006/10/18 22:03:10 UTC

Re: [jira] Created: (BEEHIVE-1101) netui JSP tags should support dataSource "refs"

Hi Eddie,

I was wondering if you'd had much of a chance to look into this issue?
If not, would you mind if I took a look and posted a proposed solution
back to the dev list for discussion?  Assuming agreement on the dev
list for the solution I could also make the necessary code changes.

It's your bug, so I don't know if you've already looked into it or
have code ready to be commited -- if that's the case I'll look for
something else in the current set of open bugs.

  -- Thanks, Chad

On 4/17/06, Eddie O'Neil (JIRA) <de...@beehive.apache.org> wrote:
> netui JSP tags should support dataSource "refs"
> -----------------------------------------------
>
>          Key: BEEHIVE-1101
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-1101
>      Project: Beehive
>         Type: New Feature
>
>   Components: NetUI
>     Versions: V1, 1.0.1, v.next
>     Reporter: Eddie O'Neil
>  Assigned to: Eddie O'Neil
>
>
> 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...
>
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira
>
>