You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by Srinivas Surapaneni <sr...@comcast.net> on 2006/04/12 03:24:54 UTC
composite components using tag files
I am trying to build composite components from netui tags
Ex: There is no dual list component, calendar component in beehive
I am trying to use the new JSP tag file mechanism to create a tag file which
contains all the components required for the dual list
But I need to pass the select options for List 1 , List 2 and 2 datasources
to the tag as attributes
But the datasource does not take runtime expressions. Is there any way to
use runtime expressions for netui components like textBox, select, checkbox
etc
Other thing we are tryinh to create is reusable datagrid
We want to create a list of column names in the pageflow scope and in the
reusable datagrid
we want to use container.item.xxxxxxxx - where xxxxx comes from the column
list.
Is there any easy way to do this?
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
Re: composite components using tag files
Posted by Eddie O'Neil <ek...@gmail.com>.
Srinivas--
No, I don't have a sample that shows lazy data loading. It should
be possible to use the data grid with lazy data loading (small windows
into larger data sets) by getting the data and then building a custom
pager that displays what the application knows is the "right" location
in the data set. You can do this in JSP 2.0 EL with the arithmetic
operators.
Like I said -- I've not tried this, so I might need to make a couple
of changes to support you here (or submit patches!), so let me know if
that's needed.
Thanks!
Eddie
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> Are there any samples to use DataGrid for lazy loading the data
>
> If we have 1000 records, I will set the dataset size to 1000. But in memory,
> it has only records for that page
>
> When the user clicks on the next or previous links on the pager, we will
> load the next page items from the database
>
> Can this be easily supported by DataGrid?
>
> -----Original Message-----
> From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> Sent: Tuesday, April 11, 2006 10:45 PM
> To: Beehive Users
> Subject: Re: composite components using tag files
>
> On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > We can customize the Sort by using <netui:anchor formSubmit="true"> for
> the
> > sort links and if we embed the whole dataGrid in a form. Are you talking
> > abot the same thing?
>
> [eko] Interesting idea -- that might work, but I've never tried it.
> Let me know. :)
>
> >
> > But the pager links are generated from PagerModel. we have to re implement
> > the PagerModel that generates the links that use javascript to submit the
> > form. Does beehive framework support any utility methods to build url's
> that
> > simulate the <netui:anchor formSubmit="true"> ?
>
> [eko] I'd suggest just writing your own pager UI using JSP 2.0 EL and
> the Pager Model. Then, you're in complete control of what it looks
> like and how it functions and can write JavaScript to add parameters
> to the <netui:form> for POSTing. In this case, three's at least a
> test of this (no sample yet, sorry) here:
>
> http://svn.apache.org/repos/asf/beehive/trunk/netui/test/webapps/drt/web/WEB
> -INF/tags/org/apache/beehive/netui/test/databinding/tagfiles/jumpToPage.tag
>
> This is a pager inside of a JSP 2.0 .tag file that supports
> jump-to-page functionality that uses an HTML <form> and renders a
> drop-down box for moving between pages in a data set. Maybe that
> helps...
>
> >
> >
> >
> >
> > -----Original Message-----
> > From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> > Sent: Tuesday, April 11, 2006 10:26 PM
> > To: Beehive Users
> > Subject: Re: composite components using tag files
> >
> > This sounds like a classic problem in the web -- user edits data in
> > a text box and clicks on another link that isn't wired up to POST the
> > form. :)
> >
> > If you're using the auto-generated sort links in the data grid's
> > <netui-data:headerCell> tags, you should be able to write JavaScript
> > in the header cell's "onClick" JavaScript event handler that gathers
> > the data from the form, converts the GET to a POST, and submits it to
> > the server. But, I've not tried this. :)
> >
> > JSF would likely support this case because it converts everything
> > into POSTs, as I recall. The NetUI data grid does things differently
> > so that pages can be bookmarked because the state is captured in URLs.
> >
> > > I will try the datagrid again with the <netui:form> tags and see how the
> > > url's are generated for paging and sorting
> >
> > Maybe I mistyped -- this won't work by default as a <netui:form>
> > wrapping a data grid only allows HTML <input> elements to POST from
> > cells in the grid. But, if you write JavaScript to wire parameters to
> > the form from the sort / filter / page URLs, you should also be able
> > to attach that state to the form and POST. I'm interested in that --
> > let me know how it works out.
> >
> > Thanks!
> >
> > Eddie
> >
> >
> > On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > > For the paging and sorting URL's , if you look at the view source from
> the
> > > browser, they are using GET and not POST
> > >
> > > That is fine if it is read only data
> > >
> > > But if we have a editable grid, when the user changes some data in the
> > text
> > > box and click on the paging or sorting, the user would like to see the
> > > changes
> > >
> > > This is only possible if we post the form and display it again
> > >
> > > Thank You
> > > Srinivas Surapaneni
> > >
> > > -----Original Message-----
> > > From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> > > Sent: Tuesday, April 11, 2006 10:11 PM
> > > To: Beehive Users
> > > Subject: Re: composite components using tag files
> > >
> > > Comments in line...
> > >
> > > On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > > > If I am using a editable grid, I want to use < netui:textbox
> > > > dataSource="container.item.xxxxxx - where xxxxx I want to use from
> the
> > > list
> > > > of columns that got passed into the tag as attribute
> > >
> > > [eko] Apologies -- I think I misunderstood before. When you say "the
> > > list of columns", you mean the data in the data set being rendered in
> > > the data grid. :) Yes, this should be possible -- just wrap the data
> > > grid itself or a specific row in a <netui:form> tag. I looked, and we
> > > don't seem to have a sample of this, which is unfortunate. I've added
> > > a JIRA issue:
> > >
> > > http://issues.apache.org/jira/browse/BEEHIVE-1098
> > >
> > > to track adding one.
> > >
> > > >
> > > > One more question on the datagrid
> > > >
> > > > All the datagrid urls are plain url's , not form posts
> > > > When we want to use the dataGrid for editable grids, we need to post
> it.
> > > > Basically, for all the sorting and paging we have to post the form. Is
> > > there
> > > > any plan to provide this feature?
> > >
> > > [eko] Not sure I understand this -- could you describe your use case
> > > in a little more detail? Today, the data grid does paging and sorting
> > > as HTTP GETs so that the links are bookmarkable and don't require form
> > > POSTs. Currently, I don't have any plans to change this behavior.
> > > For editable data grids, you should be able to POST a form for a
> > > specific row or for the entire data grid, but that's separate from the
> > > links for sorting, filtering, and paging, which is state that can be
> > > stored on the server and "re-attached" when an edit is finished.
> > >
> > > Again, I'll try to put together an example of this, but it's going to
> > > take me a couple of weeks to complete because of some other
> > > committments in the interim.
> > >
> > > >
> > > >
> > > > Thank You
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> > > > Sent: Tuesday, April 11, 2006 9:36 PM
> > > > To: Beehive Users
> > > > Subject: Re: composite components using tag files
> > > >
> > > > Comments in line...
> > > >
> > > >
> > > > On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > > > > I am trying to build composite components from netui tags
> > > > >
> > > >
> > > > [eko] It should be possible to build composite components from the
> > > > NetUI tags. The only limitation that I'm aware of is that some NetUI
> > > > JSP tags can't be split across a JSP and a .tag file because they use
> > > > the method "findAncestorWithClass" which requires some JSP tags to be
> > > > in a single JSP tag hierarchy.
> > > >
> > > > >
> > > > >
> > > > > Ex: There is no dual list component, calendar component in beehive
> > > >
> > > > [eko] True -- feel free to contribute one! :)
> > > >
> > > > >
> > > > > I am trying to use the new JSP tag file mechanism to create a tag
> file
> > > > which
> > > > > contains all the components required for the dual list
> > > > >
> > > > >
> > > > >
> > > > > But I need to pass the select options for List 1 , List 2 and 2
> > > > datasources
> > > > > to the tag as attributes
> > > > >
> > > > >
> > > >
> > > > [eko] The NetUI "dataSource" attribute is a little special as it's
> > > > used to round-trip data into a page, to the browser, and back to the
> > > > server on a POST. Usually, you'd only reference the "actionForm"
> > > > implicit object from a "dataSource". For repeating tags like the data
> > > > grid, you might reference many other things. The "netui-samples" web
> > > > application provides some good examples of this, and documentation on
> > > > the nuances of the "dataSource" attribute are described here:
> > > >
> > > > http://beehive.apache.org/docs/1.0.1/netui/databinding.html
> > > >
> > > > To pass the options to a select box, you'd use the "optionsDataSource"
> > > > tag for the choices and use "dataSource" as the place data is stored
> > > > when a JSP POSTs. The netui-samples/ webapp in the distribution has
> > > > examples of this.
> > > >
> > > > >
> > > > >
> > > > >
> > > > > But the datasource does not take runtime expressions. Is there any
> way
> > > to
> > > > > use runtime expressions for netui components like textBox, select,
> > > > checkbox
> > > > > etc
> > > > >
> > > >
> > > > [eko] On the dataSource attribute, this is (unfortunately) not
> > > > possible because of limitations in the JSP 2.0 Expression Language,
> > > > though the rest of the attributes should be runtime expressionable.
> > > >
> > > > >
> > > > >
> > > > > Other thing we are tryinh to create is reusable datagrid
> > > > >
> > > > >
> > > > >
> > > > > We want to create a list of column names in the pageflow scope and
> in
> > > the
> > > > > reusable datagrid
> > > > >
> > > > >
> > > > >
> > > > > we want to use container.item.xxxxxxxx - where xxxxx comes from the
> > > > column
> > > > > list.
> > > > >
> > > > >
> > > > >
> > > > > Is there any easy way to do this?
> > > > >
> > > > >
> > > >
> > > > [eko] I don't know why this shouldn't work, but you'll need to use the
> > > > appropriate JSTL tag to render all of the <netui-data:headerCell>s
> > > > from inside of the <netui-data:header> tag. But, I've not tried it --
> > > > if you run into trouble with it, let me know.
> > > >
> > > > >
> > > > > --
> > > > > No virus found in this outgoing message.
> > > > > Checked by AVG Free Edition.
> > > > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:
> > 4/8/2006
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > No virus found in this incoming message.
> > > > Checked by AVG Free Edition.
> > > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:
> 4/8/2006
> > > >
> > > >
> > > > --
> > > > No virus found in this outgoing message.
> > > > Checked by AVG Free Edition.
> > > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:
> 4/8/2006
> > > >
> > > >
> > > >
> > >
> > > --
> > > No virus found in this incoming message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> > >
> > >
> > > --
> > > No virus found in this outgoing message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> > >
> > >
> > >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>
RE: composite components using tag files
Posted by Srinivas Surapaneni <sr...@comcast.net>.
Are there any samples to use DataGrid for lazy loading the data
If we have 1000 records, I will set the dataset size to 1000. But in memory,
it has only records for that page
When the user clicks on the next or previous links on the pager, we will
load the next page items from the database
Can this be easily supported by DataGrid?
-----Original Message-----
From: Eddie O'Neil [mailto:ekoneil@gmail.com]
Sent: Tuesday, April 11, 2006 10:45 PM
To: Beehive Users
Subject: Re: composite components using tag files
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> We can customize the Sort by using <netui:anchor formSubmit="true"> for
the
> sort links and if we embed the whole dataGrid in a form. Are you talking
> abot the same thing?
[eko] Interesting idea -- that might work, but I've never tried it.
Let me know. :)
>
> But the pager links are generated from PagerModel. we have to re implement
> the PagerModel that generates the links that use javascript to submit the
> form. Does beehive framework support any utility methods to build url's
that
> simulate the <netui:anchor formSubmit="true"> ?
[eko] I'd suggest just writing your own pager UI using JSP 2.0 EL and
the Pager Model. Then, you're in complete control of what it looks
like and how it functions and can write JavaScript to add parameters
to the <netui:form> for POSTing. In this case, three's at least a
test of this (no sample yet, sorry) here:
http://svn.apache.org/repos/asf/beehive/trunk/netui/test/webapps/drt/web/WEB
-INF/tags/org/apache/beehive/netui/test/databinding/tagfiles/jumpToPage.tag
This is a pager inside of a JSP 2.0 .tag file that supports
jump-to-page functionality that uses an HTML <form> and renders a
drop-down box for moving between pages in a data set. Maybe that
helps...
>
>
>
>
> -----Original Message-----
> From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> Sent: Tuesday, April 11, 2006 10:26 PM
> To: Beehive Users
> Subject: Re: composite components using tag files
>
> This sounds like a classic problem in the web -- user edits data in
> a text box and clicks on another link that isn't wired up to POST the
> form. :)
>
> If you're using the auto-generated sort links in the data grid's
> <netui-data:headerCell> tags, you should be able to write JavaScript
> in the header cell's "onClick" JavaScript event handler that gathers
> the data from the form, converts the GET to a POST, and submits it to
> the server. But, I've not tried this. :)
>
> JSF would likely support this case because it converts everything
> into POSTs, as I recall. The NetUI data grid does things differently
> so that pages can be bookmarked because the state is captured in URLs.
>
> > I will try the datagrid again with the <netui:form> tags and see how the
> > url's are generated for paging and sorting
>
> Maybe I mistyped -- this won't work by default as a <netui:form>
> wrapping a data grid only allows HTML <input> elements to POST from
> cells in the grid. But, if you write JavaScript to wire parameters to
> the form from the sort / filter / page URLs, you should also be able
> to attach that state to the form and POST. I'm interested in that --
> let me know how it works out.
>
> Thanks!
>
> Eddie
>
>
> On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > For the paging and sorting URL's , if you look at the view source from
the
> > browser, they are using GET and not POST
> >
> > That is fine if it is read only data
> >
> > But if we have a editable grid, when the user changes some data in the
> text
> > box and click on the paging or sorting, the user would like to see the
> > changes
> >
> > This is only possible if we post the form and display it again
> >
> > Thank You
> > Srinivas Surapaneni
> >
> > -----Original Message-----
> > From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> > Sent: Tuesday, April 11, 2006 10:11 PM
> > To: Beehive Users
> > Subject: Re: composite components using tag files
> >
> > Comments in line...
> >
> > On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > > If I am using a editable grid, I want to use < netui:textbox
> > > dataSource="container.item.xxxxxx - where xxxxx I want to use from
the
> > list
> > > of columns that got passed into the tag as attribute
> >
> > [eko] Apologies -- I think I misunderstood before. When you say "the
> > list of columns", you mean the data in the data set being rendered in
> > the data grid. :) Yes, this should be possible -- just wrap the data
> > grid itself or a specific row in a <netui:form> tag. I looked, and we
> > don't seem to have a sample of this, which is unfortunate. I've added
> > a JIRA issue:
> >
> > http://issues.apache.org/jira/browse/BEEHIVE-1098
> >
> > to track adding one.
> >
> > >
> > > One more question on the datagrid
> > >
> > > All the datagrid urls are plain url's , not form posts
> > > When we want to use the dataGrid for editable grids, we need to post
it.
> > > Basically, for all the sorting and paging we have to post the form. Is
> > there
> > > any plan to provide this feature?
> >
> > [eko] Not sure I understand this -- could you describe your use case
> > in a little more detail? Today, the data grid does paging and sorting
> > as HTTP GETs so that the links are bookmarkable and don't require form
> > POSTs. Currently, I don't have any plans to change this behavior.
> > For editable data grids, you should be able to POST a form for a
> > specific row or for the entire data grid, but that's separate from the
> > links for sorting, filtering, and paging, which is state that can be
> > stored on the server and "re-attached" when an edit is finished.
> >
> > Again, I'll try to put together an example of this, but it's going to
> > take me a couple of weeks to complete because of some other
> > committments in the interim.
> >
> > >
> > >
> > > Thank You
> > >
> > >
> > > -----Original Message-----
> > > From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> > > Sent: Tuesday, April 11, 2006 9:36 PM
> > > To: Beehive Users
> > > Subject: Re: composite components using tag files
> > >
> > > Comments in line...
> > >
> > >
> > > On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > > > I am trying to build composite components from netui tags
> > > >
> > >
> > > [eko] It should be possible to build composite components from the
> > > NetUI tags. The only limitation that I'm aware of is that some NetUI
> > > JSP tags can't be split across a JSP and a .tag file because they use
> > > the method "findAncestorWithClass" which requires some JSP tags to be
> > > in a single JSP tag hierarchy.
> > >
> > > >
> > > >
> > > > Ex: There is no dual list component, calendar component in beehive
> > >
> > > [eko] True -- feel free to contribute one! :)
> > >
> > > >
> > > > I am trying to use the new JSP tag file mechanism to create a tag
file
> > > which
> > > > contains all the components required for the dual list
> > > >
> > > >
> > > >
> > > > But I need to pass the select options for List 1 , List 2 and 2
> > > datasources
> > > > to the tag as attributes
> > > >
> > > >
> > >
> > > [eko] The NetUI "dataSource" attribute is a little special as it's
> > > used to round-trip data into a page, to the browser, and back to the
> > > server on a POST. Usually, you'd only reference the "actionForm"
> > > implicit object from a "dataSource". For repeating tags like the data
> > > grid, you might reference many other things. The "netui-samples" web
> > > application provides some good examples of this, and documentation on
> > > the nuances of the "dataSource" attribute are described here:
> > >
> > > http://beehive.apache.org/docs/1.0.1/netui/databinding.html
> > >
> > > To pass the options to a select box, you'd use the "optionsDataSource"
> > > tag for the choices and use "dataSource" as the place data is stored
> > > when a JSP POSTs. The netui-samples/ webapp in the distribution has
> > > examples of this.
> > >
> > > >
> > > >
> > > >
> > > > But the datasource does not take runtime expressions. Is there any
way
> > to
> > > > use runtime expressions for netui components like textBox, select,
> > > checkbox
> > > > etc
> > > >
> > >
> > > [eko] On the dataSource attribute, this is (unfortunately) not
> > > possible because of limitations in the JSP 2.0 Expression Language,
> > > though the rest of the attributes should be runtime expressionable.
> > >
> > > >
> > > >
> > > > Other thing we are tryinh to create is reusable datagrid
> > > >
> > > >
> > > >
> > > > We want to create a list of column names in the pageflow scope and
in
> > the
> > > > reusable datagrid
> > > >
> > > >
> > > >
> > > > we want to use container.item.xxxxxxxx - where xxxxx comes from the
> > > column
> > > > list.
> > > >
> > > >
> > > >
> > > > Is there any easy way to do this?
> > > >
> > > >
> > >
> > > [eko] I don't know why this shouldn't work, but you'll need to use the
> > > appropriate JSTL tag to render all of the <netui-data:headerCell>s
> > > from inside of the <netui-data:header> tag. But, I've not tried it --
> > > if you run into trouble with it, let me know.
> > >
> > > >
> > > > --
> > > > No virus found in this outgoing message.
> > > > Checked by AVG Free Edition.
> > > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:
> 4/8/2006
> > > >
> > > >
> > > >
> > >
> > > --
> > > No virus found in this incoming message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:
4/8/2006
> > >
> > >
> > > --
> > > No virus found in this outgoing message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:
4/8/2006
> > >
> > >
> > >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
Re: composite components using tag files
Posted by Eddie O'Neil <ek...@gmail.com>.
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> We can customize the Sort by using <netui:anchor formSubmit="true"> for the
> sort links and if we embed the whole dataGrid in a form. Are you talking
> abot the same thing?
[eko] Interesting idea -- that might work, but I've never tried it.
Let me know. :)
>
> But the pager links are generated from PagerModel. we have to re implement
> the PagerModel that generates the links that use javascript to submit the
> form. Does beehive framework support any utility methods to build url's that
> simulate the <netui:anchor formSubmit="true"> ?
[eko] I'd suggest just writing your own pager UI using JSP 2.0 EL and
the Pager Model. Then, you're in complete control of what it looks
like and how it functions and can write JavaScript to add parameters
to the <netui:form> for POSTing. In this case, three's at least a
test of this (no sample yet, sorry) here:
http://svn.apache.org/repos/asf/beehive/trunk/netui/test/webapps/drt/web/WEB-INF/tags/org/apache/beehive/netui/test/databinding/tagfiles/jumpToPage.tag
This is a pager inside of a JSP 2.0 .tag file that supports
jump-to-page functionality that uses an HTML <form> and renders a
drop-down box for moving between pages in a data set. Maybe that
helps...
>
>
>
>
> -----Original Message-----
> From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> Sent: Tuesday, April 11, 2006 10:26 PM
> To: Beehive Users
> Subject: Re: composite components using tag files
>
> This sounds like a classic problem in the web -- user edits data in
> a text box and clicks on another link that isn't wired up to POST the
> form. :)
>
> If you're using the auto-generated sort links in the data grid's
> <netui-data:headerCell> tags, you should be able to write JavaScript
> in the header cell's "onClick" JavaScript event handler that gathers
> the data from the form, converts the GET to a POST, and submits it to
> the server. But, I've not tried this. :)
>
> JSF would likely support this case because it converts everything
> into POSTs, as I recall. The NetUI data grid does things differently
> so that pages can be bookmarked because the state is captured in URLs.
>
> > I will try the datagrid again with the <netui:form> tags and see how the
> > url's are generated for paging and sorting
>
> Maybe I mistyped -- this won't work by default as a <netui:form>
> wrapping a data grid only allows HTML <input> elements to POST from
> cells in the grid. But, if you write JavaScript to wire parameters to
> the form from the sort / filter / page URLs, you should also be able
> to attach that state to the form and POST. I'm interested in that --
> let me know how it works out.
>
> Thanks!
>
> Eddie
>
>
> On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > For the paging and sorting URL's , if you look at the view source from the
> > browser, they are using GET and not POST
> >
> > That is fine if it is read only data
> >
> > But if we have a editable grid, when the user changes some data in the
> text
> > box and click on the paging or sorting, the user would like to see the
> > changes
> >
> > This is only possible if we post the form and display it again
> >
> > Thank You
> > Srinivas Surapaneni
> >
> > -----Original Message-----
> > From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> > Sent: Tuesday, April 11, 2006 10:11 PM
> > To: Beehive Users
> > Subject: Re: composite components using tag files
> >
> > Comments in line...
> >
> > On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > > If I am using a editable grid, I want to use < netui:textbox
> > > dataSource="container.item.xxxxxx - where xxxxx I want to use from the
> > list
> > > of columns that got passed into the tag as attribute
> >
> > [eko] Apologies -- I think I misunderstood before. When you say "the
> > list of columns", you mean the data in the data set being rendered in
> > the data grid. :) Yes, this should be possible -- just wrap the data
> > grid itself or a specific row in a <netui:form> tag. I looked, and we
> > don't seem to have a sample of this, which is unfortunate. I've added
> > a JIRA issue:
> >
> > http://issues.apache.org/jira/browse/BEEHIVE-1098
> >
> > to track adding one.
> >
> > >
> > > One more question on the datagrid
> > >
> > > All the datagrid urls are plain url's , not form posts
> > > When we want to use the dataGrid for editable grids, we need to post it.
> > > Basically, for all the sorting and paging we have to post the form. Is
> > there
> > > any plan to provide this feature?
> >
> > [eko] Not sure I understand this -- could you describe your use case
> > in a little more detail? Today, the data grid does paging and sorting
> > as HTTP GETs so that the links are bookmarkable and don't require form
> > POSTs. Currently, I don't have any plans to change this behavior.
> > For editable data grids, you should be able to POST a form for a
> > specific row or for the entire data grid, but that's separate from the
> > links for sorting, filtering, and paging, which is state that can be
> > stored on the server and "re-attached" when an edit is finished.
> >
> > Again, I'll try to put together an example of this, but it's going to
> > take me a couple of weeks to complete because of some other
> > committments in the interim.
> >
> > >
> > >
> > > Thank You
> > >
> > >
> > > -----Original Message-----
> > > From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> > > Sent: Tuesday, April 11, 2006 9:36 PM
> > > To: Beehive Users
> > > Subject: Re: composite components using tag files
> > >
> > > Comments in line...
> > >
> > >
> > > On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > > > I am trying to build composite components from netui tags
> > > >
> > >
> > > [eko] It should be possible to build composite components from the
> > > NetUI tags. The only limitation that I'm aware of is that some NetUI
> > > JSP tags can't be split across a JSP and a .tag file because they use
> > > the method "findAncestorWithClass" which requires some JSP tags to be
> > > in a single JSP tag hierarchy.
> > >
> > > >
> > > >
> > > > Ex: There is no dual list component, calendar component in beehive
> > >
> > > [eko] True -- feel free to contribute one! :)
> > >
> > > >
> > > > I am trying to use the new JSP tag file mechanism to create a tag file
> > > which
> > > > contains all the components required for the dual list
> > > >
> > > >
> > > >
> > > > But I need to pass the select options for List 1 , List 2 and 2
> > > datasources
> > > > to the tag as attributes
> > > >
> > > >
> > >
> > > [eko] The NetUI "dataSource" attribute is a little special as it's
> > > used to round-trip data into a page, to the browser, and back to the
> > > server on a POST. Usually, you'd only reference the "actionForm"
> > > implicit object from a "dataSource". For repeating tags like the data
> > > grid, you might reference many other things. The "netui-samples" web
> > > application provides some good examples of this, and documentation on
> > > the nuances of the "dataSource" attribute are described here:
> > >
> > > http://beehive.apache.org/docs/1.0.1/netui/databinding.html
> > >
> > > To pass the options to a select box, you'd use the "optionsDataSource"
> > > tag for the choices and use "dataSource" as the place data is stored
> > > when a JSP POSTs. The netui-samples/ webapp in the distribution has
> > > examples of this.
> > >
> > > >
> > > >
> > > >
> > > > But the datasource does not take runtime expressions. Is there any way
> > to
> > > > use runtime expressions for netui components like textBox, select,
> > > checkbox
> > > > etc
> > > >
> > >
> > > [eko] On the dataSource attribute, this is (unfortunately) not
> > > possible because of limitations in the JSP 2.0 Expression Language,
> > > though the rest of the attributes should be runtime expressionable.
> > >
> > > >
> > > >
> > > > Other thing we are tryinh to create is reusable datagrid
> > > >
> > > >
> > > >
> > > > We want to create a list of column names in the pageflow scope and in
> > the
> > > > reusable datagrid
> > > >
> > > >
> > > >
> > > > we want to use container.item.xxxxxxxx - where xxxxx comes from the
> > > column
> > > > list.
> > > >
> > > >
> > > >
> > > > Is there any easy way to do this?
> > > >
> > > >
> > >
> > > [eko] I don't know why this shouldn't work, but you'll need to use the
> > > appropriate JSTL tag to render all of the <netui-data:headerCell>s
> > > from inside of the <netui-data:header> tag. But, I've not tried it --
> > > if you run into trouble with it, let me know.
> > >
> > > >
> > > > --
> > > > No virus found in this outgoing message.
> > > > Checked by AVG Free Edition.
> > > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:
> 4/8/2006
> > > >
> > > >
> > > >
> > >
> > > --
> > > No virus found in this incoming message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> > >
> > >
> > > --
> > > No virus found in this outgoing message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> > >
> > >
> > >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>
RE: composite components using tag files
Posted by Srinivas Surapaneni <sr...@comcast.net>.
We can customize the Sort by using <netui:anchor formSubmit="true"> for the
sort links and if we embed the whole dataGrid in a form. Are you talking
abot the same thing?
But the pager links are generated from PagerModel. we have to re implement
the PagerModel that generates the links that use javascript to submit the
form. Does beehive framework support any utility methods to build url's that
simulate the <netui:anchor formSubmit="true"> ?
-----Original Message-----
From: Eddie O'Neil [mailto:ekoneil@gmail.com]
Sent: Tuesday, April 11, 2006 10:26 PM
To: Beehive Users
Subject: Re: composite components using tag files
This sounds like a classic problem in the web -- user edits data in
a text box and clicks on another link that isn't wired up to POST the
form. :)
If you're using the auto-generated sort links in the data grid's
<netui-data:headerCell> tags, you should be able to write JavaScript
in the header cell's "onClick" JavaScript event handler that gathers
the data from the form, converts the GET to a POST, and submits it to
the server. But, I've not tried this. :)
JSF would likely support this case because it converts everything
into POSTs, as I recall. The NetUI data grid does things differently
so that pages can be bookmarked because the state is captured in URLs.
> I will try the datagrid again with the <netui:form> tags and see how the
> url's are generated for paging and sorting
Maybe I mistyped -- this won't work by default as a <netui:form>
wrapping a data grid only allows HTML <input> elements to POST from
cells in the grid. But, if you write JavaScript to wire parameters to
the form from the sort / filter / page URLs, you should also be able
to attach that state to the form and POST. I'm interested in that --
let me know how it works out.
Thanks!
Eddie
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> For the paging and sorting URL's , if you look at the view source from the
> browser, they are using GET and not POST
>
> That is fine if it is read only data
>
> But if we have a editable grid, when the user changes some data in the
text
> box and click on the paging or sorting, the user would like to see the
> changes
>
> This is only possible if we post the form and display it again
>
> Thank You
> Srinivas Surapaneni
>
> -----Original Message-----
> From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> Sent: Tuesday, April 11, 2006 10:11 PM
> To: Beehive Users
> Subject: Re: composite components using tag files
>
> Comments in line...
>
> On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > If I am using a editable grid, I want to use < netui:textbox
> > dataSource="container.item.xxxxxx - where xxxxx I want to use from the
> list
> > of columns that got passed into the tag as attribute
>
> [eko] Apologies -- I think I misunderstood before. When you say "the
> list of columns", you mean the data in the data set being rendered in
> the data grid. :) Yes, this should be possible -- just wrap the data
> grid itself or a specific row in a <netui:form> tag. I looked, and we
> don't seem to have a sample of this, which is unfortunate. I've added
> a JIRA issue:
>
> http://issues.apache.org/jira/browse/BEEHIVE-1098
>
> to track adding one.
>
> >
> > One more question on the datagrid
> >
> > All the datagrid urls are plain url's , not form posts
> > When we want to use the dataGrid for editable grids, we need to post it.
> > Basically, for all the sorting and paging we have to post the form. Is
> there
> > any plan to provide this feature?
>
> [eko] Not sure I understand this -- could you describe your use case
> in a little more detail? Today, the data grid does paging and sorting
> as HTTP GETs so that the links are bookmarkable and don't require form
> POSTs. Currently, I don't have any plans to change this behavior.
> For editable data grids, you should be able to POST a form for a
> specific row or for the entire data grid, but that's separate from the
> links for sorting, filtering, and paging, which is state that can be
> stored on the server and "re-attached" when an edit is finished.
>
> Again, I'll try to put together an example of this, but it's going to
> take me a couple of weeks to complete because of some other
> committments in the interim.
>
> >
> >
> > Thank You
> >
> >
> > -----Original Message-----
> > From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> > Sent: Tuesday, April 11, 2006 9:36 PM
> > To: Beehive Users
> > Subject: Re: composite components using tag files
> >
> > Comments in line...
> >
> >
> > On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > > I am trying to build composite components from netui tags
> > >
> >
> > [eko] It should be possible to build composite components from the
> > NetUI tags. The only limitation that I'm aware of is that some NetUI
> > JSP tags can't be split across a JSP and a .tag file because they use
> > the method "findAncestorWithClass" which requires some JSP tags to be
> > in a single JSP tag hierarchy.
> >
> > >
> > >
> > > Ex: There is no dual list component, calendar component in beehive
> >
> > [eko] True -- feel free to contribute one! :)
> >
> > >
> > > I am trying to use the new JSP tag file mechanism to create a tag file
> > which
> > > contains all the components required for the dual list
> > >
> > >
> > >
> > > But I need to pass the select options for List 1 , List 2 and 2
> > datasources
> > > to the tag as attributes
> > >
> > >
> >
> > [eko] The NetUI "dataSource" attribute is a little special as it's
> > used to round-trip data into a page, to the browser, and back to the
> > server on a POST. Usually, you'd only reference the "actionForm"
> > implicit object from a "dataSource". For repeating tags like the data
> > grid, you might reference many other things. The "netui-samples" web
> > application provides some good examples of this, and documentation on
> > the nuances of the "dataSource" attribute are described here:
> >
> > http://beehive.apache.org/docs/1.0.1/netui/databinding.html
> >
> > To pass the options to a select box, you'd use the "optionsDataSource"
> > tag for the choices and use "dataSource" as the place data is stored
> > when a JSP POSTs. The netui-samples/ webapp in the distribution has
> > examples of this.
> >
> > >
> > >
> > >
> > > But the datasource does not take runtime expressions. Is there any way
> to
> > > use runtime expressions for netui components like textBox, select,
> > checkbox
> > > etc
> > >
> >
> > [eko] On the dataSource attribute, this is (unfortunately) not
> > possible because of limitations in the JSP 2.0 Expression Language,
> > though the rest of the attributes should be runtime expressionable.
> >
> > >
> > >
> > > Other thing we are tryinh to create is reusable datagrid
> > >
> > >
> > >
> > > We want to create a list of column names in the pageflow scope and in
> the
> > > reusable datagrid
> > >
> > >
> > >
> > > we want to use container.item.xxxxxxxx - where xxxxx comes from the
> > column
> > > list.
> > >
> > >
> > >
> > > Is there any easy way to do this?
> > >
> > >
> >
> > [eko] I don't know why this shouldn't work, but you'll need to use the
> > appropriate JSTL tag to render all of the <netui-data:headerCell>s
> > from inside of the <netui-data:header> tag. But, I've not tried it --
> > if you run into trouble with it, let me know.
> >
> > >
> > > --
> > > No virus found in this outgoing message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date:
4/8/2006
> > >
> > >
> > >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
Re: composite components using tag files
Posted by Eddie O'Neil <ek...@gmail.com>.
This sounds like a classic problem in the web -- user edits data in
a text box and clicks on another link that isn't wired up to POST the
form. :)
If you're using the auto-generated sort links in the data grid's
<netui-data:headerCell> tags, you should be able to write JavaScript
in the header cell's "onClick" JavaScript event handler that gathers
the data from the form, converts the GET to a POST, and submits it to
the server. But, I've not tried this. :)
JSF would likely support this case because it converts everything
into POSTs, as I recall. The NetUI data grid does things differently
so that pages can be bookmarked because the state is captured in URLs.
> I will try the datagrid again with the <netui:form> tags and see how the
> url's are generated for paging and sorting
Maybe I mistyped -- this won't work by default as a <netui:form>
wrapping a data grid only allows HTML <input> elements to POST from
cells in the grid. But, if you write JavaScript to wire parameters to
the form from the sort / filter / page URLs, you should also be able
to attach that state to the form and POST. I'm interested in that --
let me know how it works out.
Thanks!
Eddie
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> For the paging and sorting URL's , if you look at the view source from the
> browser, they are using GET and not POST
>
> That is fine if it is read only data
>
> But if we have a editable grid, when the user changes some data in the text
> box and click on the paging or sorting, the user would like to see the
> changes
>
> This is only possible if we post the form and display it again
>
> Thank You
> Srinivas Surapaneni
>
> -----Original Message-----
> From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> Sent: Tuesday, April 11, 2006 10:11 PM
> To: Beehive Users
> Subject: Re: composite components using tag files
>
> Comments in line...
>
> On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > If I am using a editable grid, I want to use < netui:textbox
> > dataSource="container.item.xxxxxx - where xxxxx I want to use from the
> list
> > of columns that got passed into the tag as attribute
>
> [eko] Apologies -- I think I misunderstood before. When you say "the
> list of columns", you mean the data in the data set being rendered in
> the data grid. :) Yes, this should be possible -- just wrap the data
> grid itself or a specific row in a <netui:form> tag. I looked, and we
> don't seem to have a sample of this, which is unfortunate. I've added
> a JIRA issue:
>
> http://issues.apache.org/jira/browse/BEEHIVE-1098
>
> to track adding one.
>
> >
> > One more question on the datagrid
> >
> > All the datagrid urls are plain url's , not form posts
> > When we want to use the dataGrid for editable grids, we need to post it.
> > Basically, for all the sorting and paging we have to post the form. Is
> there
> > any plan to provide this feature?
>
> [eko] Not sure I understand this -- could you describe your use case
> in a little more detail? Today, the data grid does paging and sorting
> as HTTP GETs so that the links are bookmarkable and don't require form
> POSTs. Currently, I don't have any plans to change this behavior.
> For editable data grids, you should be able to POST a form for a
> specific row or for the entire data grid, but that's separate from the
> links for sorting, filtering, and paging, which is state that can be
> stored on the server and "re-attached" when an edit is finished.
>
> Again, I'll try to put together an example of this, but it's going to
> take me a couple of weeks to complete because of some other
> committments in the interim.
>
> >
> >
> > Thank You
> >
> >
> > -----Original Message-----
> > From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> > Sent: Tuesday, April 11, 2006 9:36 PM
> > To: Beehive Users
> > Subject: Re: composite components using tag files
> >
> > Comments in line...
> >
> >
> > On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > > I am trying to build composite components from netui tags
> > >
> >
> > [eko] It should be possible to build composite components from the
> > NetUI tags. The only limitation that I'm aware of is that some NetUI
> > JSP tags can't be split across a JSP and a .tag file because they use
> > the method "findAncestorWithClass" which requires some JSP tags to be
> > in a single JSP tag hierarchy.
> >
> > >
> > >
> > > Ex: There is no dual list component, calendar component in beehive
> >
> > [eko] True -- feel free to contribute one! :)
> >
> > >
> > > I am trying to use the new JSP tag file mechanism to create a tag file
> > which
> > > contains all the components required for the dual list
> > >
> > >
> > >
> > > But I need to pass the select options for List 1 , List 2 and 2
> > datasources
> > > to the tag as attributes
> > >
> > >
> >
> > [eko] The NetUI "dataSource" attribute is a little special as it's
> > used to round-trip data into a page, to the browser, and back to the
> > server on a POST. Usually, you'd only reference the "actionForm"
> > implicit object from a "dataSource". For repeating tags like the data
> > grid, you might reference many other things. The "netui-samples" web
> > application provides some good examples of this, and documentation on
> > the nuances of the "dataSource" attribute are described here:
> >
> > http://beehive.apache.org/docs/1.0.1/netui/databinding.html
> >
> > To pass the options to a select box, you'd use the "optionsDataSource"
> > tag for the choices and use "dataSource" as the place data is stored
> > when a JSP POSTs. The netui-samples/ webapp in the distribution has
> > examples of this.
> >
> > >
> > >
> > >
> > > But the datasource does not take runtime expressions. Is there any way
> to
> > > use runtime expressions for netui components like textBox, select,
> > checkbox
> > > etc
> > >
> >
> > [eko] On the dataSource attribute, this is (unfortunately) not
> > possible because of limitations in the JSP 2.0 Expression Language,
> > though the rest of the attributes should be runtime expressionable.
> >
> > >
> > >
> > > Other thing we are tryinh to create is reusable datagrid
> > >
> > >
> > >
> > > We want to create a list of column names in the pageflow scope and in
> the
> > > reusable datagrid
> > >
> > >
> > >
> > > we want to use container.item.xxxxxxxx - where xxxxx comes from the
> > column
> > > list.
> > >
> > >
> > >
> > > Is there any easy way to do this?
> > >
> > >
> >
> > [eko] I don't know why this shouldn't work, but you'll need to use the
> > appropriate JSTL tag to render all of the <netui-data:headerCell>s
> > from inside of the <netui-data:header> tag. But, I've not tried it --
> > if you run into trouble with it, let me know.
> >
> > >
> > > --
> > > No virus found in this outgoing message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> > >
> > >
> > >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>
RE: composite components using tag files
Posted by Srinivas Surapaneni <sr...@comcast.net>.
I added my comments below for GET for paging and sorting
-----Original Message-----
From: Srinivas Surapaneni [mailto:srinivas-s@comcast.net]
Sent: Tuesday, April 11, 2006 10:18 PM
To: 'Beehive Users'
Subject: RE: composite components using tag files
I will try the datagrid again with the <netui:form> tags and see how the
url's are generated for paging and sorting
Thank You
-----Original Message-----
From: Eddie O'Neil [mailto:ekoneil@gmail.com]
Sent: Tuesday, April 11, 2006 10:11 PM
To: Beehive Users
Subject: Re: composite components using tag files
Comments in line...
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> If I am using a editable grid, I want to use < netui:textbox
> dataSource="container.item.xxxxxx - where xxxxx I want to use from the
list
> of columns that got passed into the tag as attribute
[eko] Apologies -- I think I misunderstood before. When you say "the
list of columns", you mean the data in the data set being rendered in
the data grid. :) Yes, this should be possible -- just wrap the data
grid itself or a specific row in a <netui:form> tag. I looked, and we
don't seem to have a sample of this, which is unfortunate. I've added
a JIRA issue:
http://issues.apache.org/jira/browse/BEEHIVE-1098
to track adding one.
>
> One more question on the datagrid
>
> All the datagrid urls are plain url's , not form posts
> When we want to use the dataGrid for editable grids, we need to post it.
> Basically, for all the sorting and paging we have to post the form. Is
there
> any plan to provide this feature?
[eko] Not sure I understand this -- could you describe your use case
in a little more detail? Today, the data grid does paging and sorting
as HTTP GETs so that the links are bookmarkable and don't require form
POSTs. Currently, I don't have any plans to change this behavior.
For editable data grids, you should be able to POST a form for a
specific row or for the entire data grid, but that's separate from the
links for sorting, filtering, and paging, which is state that can be
stored on the server and "re-attached" when an edit is finished.
[Srinivas]
I understand the links are bookmarkable. But when we provide a editable
grid, the user should be able to do anything ( changes to the values,
paging, sorting etc) and should be able to keep all his changes during all
the operations ). If you use GET for paging and sorting, you will lose all
the changes
Myfaces Tomhawk, ADF and lot of third party components use POST for all the
operations of a editable grid
Again, I'll try to put together an example of this, but it's going to
take me a couple of weeks to complete because of some other
committments in the interim.
>
>
> Thank You
>
>
> -----Original Message-----
> From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> Sent: Tuesday, April 11, 2006 9:36 PM
> To: Beehive Users
> Subject: Re: composite components using tag files
>
> Comments in line...
>
>
> On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > I am trying to build composite components from netui tags
> >
>
> [eko] It should be possible to build composite components from the
> NetUI tags. The only limitation that I'm aware of is that some NetUI
> JSP tags can't be split across a JSP and a .tag file because they use
> the method "findAncestorWithClass" which requires some JSP tags to be
> in a single JSP tag hierarchy.
>
> >
> >
> > Ex: There is no dual list component, calendar component in beehive
>
> [eko] True -- feel free to contribute one! :)
>
> >
> > I am trying to use the new JSP tag file mechanism to create a tag file
> which
> > contains all the components required for the dual list
> >
> >
> >
> > But I need to pass the select options for List 1 , List 2 and 2
> datasources
> > to the tag as attributes
> >
> >
>
> [eko] The NetUI "dataSource" attribute is a little special as it's
> used to round-trip data into a page, to the browser, and back to the
> server on a POST. Usually, you'd only reference the "actionForm"
> implicit object from a "dataSource". For repeating tags like the data
> grid, you might reference many other things. The "netui-samples" web
> application provides some good examples of this, and documentation on
> the nuances of the "dataSource" attribute are described here:
>
> http://beehive.apache.org/docs/1.0.1/netui/databinding.html
>
> To pass the options to a select box, you'd use the "optionsDataSource"
> tag for the choices and use "dataSource" as the place data is stored
> when a JSP POSTs. The netui-samples/ webapp in the distribution has
> examples of this.
>
> >
> >
> >
> > But the datasource does not take runtime expressions. Is there any way
to
> > use runtime expressions for netui components like textBox, select,
> checkbox
> > etc
> >
>
> [eko] On the dataSource attribute, this is (unfortunately) not
> possible because of limitations in the JSP 2.0 Expression Language,
> though the rest of the attributes should be runtime expressionable.
>
> >
> >
> > Other thing we are tryinh to create is reusable datagrid
> >
> >
> >
> > We want to create a list of column names in the pageflow scope and in
the
> > reusable datagrid
> >
> >
> >
> > we want to use container.item.xxxxxxxx - where xxxxx comes from the
> column
> > list.
> >
> >
> >
> > Is there any easy way to do this?
> >
> >
>
> [eko] I don't know why this shouldn't work, but you'll need to use the
> appropriate JSTL tag to render all of the <netui-data:headerCell>s
> from inside of the <netui-data:header> tag. But, I've not tried it --
> if you run into trouble with it, let me know.
>
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
RE: composite components using tag files
Posted by Srinivas Surapaneni <sr...@comcast.net>.
I will try the datagrid again with the <netui:form> tags and see how the
url's are generated for paging and sorting
Thank You
-----Original Message-----
From: Eddie O'Neil [mailto:ekoneil@gmail.com]
Sent: Tuesday, April 11, 2006 10:11 PM
To: Beehive Users
Subject: Re: composite components using tag files
Comments in line...
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> If I am using a editable grid, I want to use < netui:textbox
> dataSource="container.item.xxxxxx - where xxxxx I want to use from the
list
> of columns that got passed into the tag as attribute
[eko] Apologies -- I think I misunderstood before. When you say "the
list of columns", you mean the data in the data set being rendered in
the data grid. :) Yes, this should be possible -- just wrap the data
grid itself or a specific row in a <netui:form> tag. I looked, and we
don't seem to have a sample of this, which is unfortunate. I've added
a JIRA issue:
http://issues.apache.org/jira/browse/BEEHIVE-1098
to track adding one.
>
> One more question on the datagrid
>
> All the datagrid urls are plain url's , not form posts
> When we want to use the dataGrid for editable grids, we need to post it.
> Basically, for all the sorting and paging we have to post the form. Is
there
> any plan to provide this feature?
[eko] Not sure I understand this -- could you describe your use case
in a little more detail? Today, the data grid does paging and sorting
as HTTP GETs so that the links are bookmarkable and don't require form
POSTs. Currently, I don't have any plans to change this behavior.
For editable data grids, you should be able to POST a form for a
specific row or for the entire data grid, but that's separate from the
links for sorting, filtering, and paging, which is state that can be
stored on the server and "re-attached" when an edit is finished.
Again, I'll try to put together an example of this, but it's going to
take me a couple of weeks to complete because of some other
committments in the interim.
>
>
> Thank You
>
>
> -----Original Message-----
> From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> Sent: Tuesday, April 11, 2006 9:36 PM
> To: Beehive Users
> Subject: Re: composite components using tag files
>
> Comments in line...
>
>
> On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > I am trying to build composite components from netui tags
> >
>
> [eko] It should be possible to build composite components from the
> NetUI tags. The only limitation that I'm aware of is that some NetUI
> JSP tags can't be split across a JSP and a .tag file because they use
> the method "findAncestorWithClass" which requires some JSP tags to be
> in a single JSP tag hierarchy.
>
> >
> >
> > Ex: There is no dual list component, calendar component in beehive
>
> [eko] True -- feel free to contribute one! :)
>
> >
> > I am trying to use the new JSP tag file mechanism to create a tag file
> which
> > contains all the components required for the dual list
> >
> >
> >
> > But I need to pass the select options for List 1 , List 2 and 2
> datasources
> > to the tag as attributes
> >
> >
>
> [eko] The NetUI "dataSource" attribute is a little special as it's
> used to round-trip data into a page, to the browser, and back to the
> server on a POST. Usually, you'd only reference the "actionForm"
> implicit object from a "dataSource". For repeating tags like the data
> grid, you might reference many other things. The "netui-samples" web
> application provides some good examples of this, and documentation on
> the nuances of the "dataSource" attribute are described here:
>
> http://beehive.apache.org/docs/1.0.1/netui/databinding.html
>
> To pass the options to a select box, you'd use the "optionsDataSource"
> tag for the choices and use "dataSource" as the place data is stored
> when a JSP POSTs. The netui-samples/ webapp in the distribution has
> examples of this.
>
> >
> >
> >
> > But the datasource does not take runtime expressions. Is there any way
to
> > use runtime expressions for netui components like textBox, select,
> checkbox
> > etc
> >
>
> [eko] On the dataSource attribute, this is (unfortunately) not
> possible because of limitations in the JSP 2.0 Expression Language,
> though the rest of the attributes should be runtime expressionable.
>
> >
> >
> > Other thing we are tryinh to create is reusable datagrid
> >
> >
> >
> > We want to create a list of column names in the pageflow scope and in
the
> > reusable datagrid
> >
> >
> >
> > we want to use container.item.xxxxxxxx - where xxxxx comes from the
> column
> > list.
> >
> >
> >
> > Is there any easy way to do this?
> >
> >
>
> [eko] I don't know why this shouldn't work, but you'll need to use the
> appropriate JSTL tag to render all of the <netui-data:headerCell>s
> from inside of the <netui-data:header> tag. But, I've not tried it --
> if you run into trouble with it, let me know.
>
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
RE: composite components using tag files
Posted by Srinivas Surapaneni <sr...@comcast.net>.
For the paging and sorting URL's , if you look at the view source from the
browser, they are using GET and not POST
That is fine if it is read only data
But if we have a editable grid, when the user changes some data in the text
box and click on the paging or sorting, the user would like to see the
changes
This is only possible if we post the form and display it again
Thank You
Srinivas Surapaneni
-----Original Message-----
From: Eddie O'Neil [mailto:ekoneil@gmail.com]
Sent: Tuesday, April 11, 2006 10:11 PM
To: Beehive Users
Subject: Re: composite components using tag files
Comments in line...
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> If I am using a editable grid, I want to use < netui:textbox
> dataSource="container.item.xxxxxx - where xxxxx I want to use from the
list
> of columns that got passed into the tag as attribute
[eko] Apologies -- I think I misunderstood before. When you say "the
list of columns", you mean the data in the data set being rendered in
the data grid. :) Yes, this should be possible -- just wrap the data
grid itself or a specific row in a <netui:form> tag. I looked, and we
don't seem to have a sample of this, which is unfortunate. I've added
a JIRA issue:
http://issues.apache.org/jira/browse/BEEHIVE-1098
to track adding one.
>
> One more question on the datagrid
>
> All the datagrid urls are plain url's , not form posts
> When we want to use the dataGrid for editable grids, we need to post it.
> Basically, for all the sorting and paging we have to post the form. Is
there
> any plan to provide this feature?
[eko] Not sure I understand this -- could you describe your use case
in a little more detail? Today, the data grid does paging and sorting
as HTTP GETs so that the links are bookmarkable and don't require form
POSTs. Currently, I don't have any plans to change this behavior.
For editable data grids, you should be able to POST a form for a
specific row or for the entire data grid, but that's separate from the
links for sorting, filtering, and paging, which is state that can be
stored on the server and "re-attached" when an edit is finished.
Again, I'll try to put together an example of this, but it's going to
take me a couple of weeks to complete because of some other
committments in the interim.
>
>
> Thank You
>
>
> -----Original Message-----
> From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> Sent: Tuesday, April 11, 2006 9:36 PM
> To: Beehive Users
> Subject: Re: composite components using tag files
>
> Comments in line...
>
>
> On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > I am trying to build composite components from netui tags
> >
>
> [eko] It should be possible to build composite components from the
> NetUI tags. The only limitation that I'm aware of is that some NetUI
> JSP tags can't be split across a JSP and a .tag file because they use
> the method "findAncestorWithClass" which requires some JSP tags to be
> in a single JSP tag hierarchy.
>
> >
> >
> > Ex: There is no dual list component, calendar component in beehive
>
> [eko] True -- feel free to contribute one! :)
>
> >
> > I am trying to use the new JSP tag file mechanism to create a tag file
> which
> > contains all the components required for the dual list
> >
> >
> >
> > But I need to pass the select options for List 1 , List 2 and 2
> datasources
> > to the tag as attributes
> >
> >
>
> [eko] The NetUI "dataSource" attribute is a little special as it's
> used to round-trip data into a page, to the browser, and back to the
> server on a POST. Usually, you'd only reference the "actionForm"
> implicit object from a "dataSource". For repeating tags like the data
> grid, you might reference many other things. The "netui-samples" web
> application provides some good examples of this, and documentation on
> the nuances of the "dataSource" attribute are described here:
>
> http://beehive.apache.org/docs/1.0.1/netui/databinding.html
>
> To pass the options to a select box, you'd use the "optionsDataSource"
> tag for the choices and use "dataSource" as the place data is stored
> when a JSP POSTs. The netui-samples/ webapp in the distribution has
> examples of this.
>
> >
> >
> >
> > But the datasource does not take runtime expressions. Is there any way
to
> > use runtime expressions for netui components like textBox, select,
> checkbox
> > etc
> >
>
> [eko] On the dataSource attribute, this is (unfortunately) not
> possible because of limitations in the JSP 2.0 Expression Language,
> though the rest of the attributes should be runtime expressionable.
>
> >
> >
> > Other thing we are tryinh to create is reusable datagrid
> >
> >
> >
> > We want to create a list of column names in the pageflow scope and in
the
> > reusable datagrid
> >
> >
> >
> > we want to use container.item.xxxxxxxx - where xxxxx comes from the
> column
> > list.
> >
> >
> >
> > Is there any easy way to do this?
> >
> >
>
> [eko] I don't know why this shouldn't work, but you'll need to use the
> appropriate JSTL tag to render all of the <netui-data:headerCell>s
> from inside of the <netui-data:header> tag. But, I've not tried it --
> if you run into trouble with it, let me know.
>
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
Re: composite components using tag files
Posted by Eddie O'Neil <ek...@gmail.com>.
Comments in line...
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> If I am using a editable grid, I want to use < netui:textbox
> dataSource="container.item.xxxxxx - where xxxxx I want to use from the list
> of columns that got passed into the tag as attribute
[eko] Apologies -- I think I misunderstood before. When you say "the
list of columns", you mean the data in the data set being rendered in
the data grid. :) Yes, this should be possible -- just wrap the data
grid itself or a specific row in a <netui:form> tag. I looked, and we
don't seem to have a sample of this, which is unfortunate. I've added
a JIRA issue:
http://issues.apache.org/jira/browse/BEEHIVE-1098
to track adding one.
>
> One more question on the datagrid
>
> All the datagrid urls are plain url's , not form posts
> When we want to use the dataGrid for editable grids, we need to post it.
> Basically, for all the sorting and paging we have to post the form. Is there
> any plan to provide this feature?
[eko] Not sure I understand this -- could you describe your use case
in a little more detail? Today, the data grid does paging and sorting
as HTTP GETs so that the links are bookmarkable and don't require form
POSTs. Currently, I don't have any plans to change this behavior.
For editable data grids, you should be able to POST a form for a
specific row or for the entire data grid, but that's separate from the
links for sorting, filtering, and paging, which is state that can be
stored on the server and "re-attached" when an edit is finished.
Again, I'll try to put together an example of this, but it's going to
take me a couple of weeks to complete because of some other
committments in the interim.
>
>
> Thank You
>
>
> -----Original Message-----
> From: Eddie O'Neil [mailto:ekoneil@gmail.com]
> Sent: Tuesday, April 11, 2006 9:36 PM
> To: Beehive Users
> Subject: Re: composite components using tag files
>
> Comments in line...
>
>
> On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> > I am trying to build composite components from netui tags
> >
>
> [eko] It should be possible to build composite components from the
> NetUI tags. The only limitation that I'm aware of is that some NetUI
> JSP tags can't be split across a JSP and a .tag file because they use
> the method "findAncestorWithClass" which requires some JSP tags to be
> in a single JSP tag hierarchy.
>
> >
> >
> > Ex: There is no dual list component, calendar component in beehive
>
> [eko] True -- feel free to contribute one! :)
>
> >
> > I am trying to use the new JSP tag file mechanism to create a tag file
> which
> > contains all the components required for the dual list
> >
> >
> >
> > But I need to pass the select options for List 1 , List 2 and 2
> datasources
> > to the tag as attributes
> >
> >
>
> [eko] The NetUI "dataSource" attribute is a little special as it's
> used to round-trip data into a page, to the browser, and back to the
> server on a POST. Usually, you'd only reference the "actionForm"
> implicit object from a "dataSource". For repeating tags like the data
> grid, you might reference many other things. The "netui-samples" web
> application provides some good examples of this, and documentation on
> the nuances of the "dataSource" attribute are described here:
>
> http://beehive.apache.org/docs/1.0.1/netui/databinding.html
>
> To pass the options to a select box, you'd use the "optionsDataSource"
> tag for the choices and use "dataSource" as the place data is stored
> when a JSP POSTs. The netui-samples/ webapp in the distribution has
> examples of this.
>
> >
> >
> >
> > But the datasource does not take runtime expressions. Is there any way to
> > use runtime expressions for netui components like textBox, select,
> checkbox
> > etc
> >
>
> [eko] On the dataSource attribute, this is (unfortunately) not
> possible because of limitations in the JSP 2.0 Expression Language,
> though the rest of the attributes should be runtime expressionable.
>
> >
> >
> > Other thing we are tryinh to create is reusable datagrid
> >
> >
> >
> > We want to create a list of column names in the pageflow scope and in the
> > reusable datagrid
> >
> >
> >
> > we want to use container.item.xxxxxxxx - where xxxxx comes from the
> column
> > list.
> >
> >
> >
> > Is there any easy way to do this?
> >
> >
>
> [eko] I don't know why this shouldn't work, but you'll need to use the
> appropriate JSTL tag to render all of the <netui-data:headerCell>s
> from inside of the <netui-data:header> tag. But, I've not tried it --
> if you run into trouble with it, let me know.
>
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
> >
> >
> >
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>
RE: composite components using tag files
Posted by Srinivas Surapaneni <sr...@comcast.net>.
Eddie,
Thank you for your reply
Regarding the data grid, header cells should work fine
But I am talking about the real data
Ex :
If I am using a editable grid, I want to use < netui:textbox
dataSource="container.item.xxxxxx - where xxxxx I want to use from the list
of columns that got passed into the tag as attributes
One more question on the datagrid
All the datagrid urls are plain url's , not form posts
When we want to use the dataGrid for editable grids, we need to post it.
Basically, for all the sorting and paging we have to post the form. Is there
any plan to provide this feature?
Thank You
-----Original Message-----
From: Eddie O'Neil [mailto:ekoneil@gmail.com]
Sent: Tuesday, April 11, 2006 9:36 PM
To: Beehive Users
Subject: Re: composite components using tag files
Comments in line...
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> I am trying to build composite components from netui tags
>
[eko] It should be possible to build composite components from the
NetUI tags. The only limitation that I'm aware of is that some NetUI
JSP tags can't be split across a JSP and a .tag file because they use
the method "findAncestorWithClass" which requires some JSP tags to be
in a single JSP tag hierarchy.
>
>
> Ex: There is no dual list component, calendar component in beehive
[eko] True -- feel free to contribute one! :)
>
> I am trying to use the new JSP tag file mechanism to create a tag file
which
> contains all the components required for the dual list
>
>
>
> But I need to pass the select options for List 1 , List 2 and 2
datasources
> to the tag as attributes
>
>
[eko] The NetUI "dataSource" attribute is a little special as it's
used to round-trip data into a page, to the browser, and back to the
server on a POST. Usually, you'd only reference the "actionForm"
implicit object from a "dataSource". For repeating tags like the data
grid, you might reference many other things. The "netui-samples" web
application provides some good examples of this, and documentation on
the nuances of the "dataSource" attribute are described here:
http://beehive.apache.org/docs/1.0.1/netui/databinding.html
To pass the options to a select box, you'd use the "optionsDataSource"
tag for the choices and use "dataSource" as the place data is stored
when a JSP POSTs. The netui-samples/ webapp in the distribution has
examples of this.
>
>
>
> But the datasource does not take runtime expressions. Is there any way to
> use runtime expressions for netui components like textBox, select,
checkbox
> etc
>
[eko] On the dataSource attribute, this is (unfortunately) not
possible because of limitations in the JSP 2.0 Expression Language,
though the rest of the attributes should be runtime expressionable.
>
>
> Other thing we are tryinh to create is reusable datagrid
>
>
>
> We want to create a list of column names in the pageflow scope and in the
> reusable datagrid
>
>
>
> we want to use container.item.xxxxxxxx - where xxxxx comes from the
column
> list.
>
>
>
> Is there any easy way to do this?
>
>
[eko] I don't know why this shouldn't work, but you'll need to use the
appropriate JSTL tag to render all of the <netui-data:headerCell>s
from inside of the <netui-data:header> tag. But, I've not tried it --
if you run into trouble with it, let me know.
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
Re: composite components using tag files
Posted by Eddie O'Neil <ek...@gmail.com>.
Comments in line...
On 4/11/06, Srinivas Surapaneni <sr...@comcast.net> wrote:
> I am trying to build composite components from netui tags
>
[eko] It should be possible to build composite components from the
NetUI tags. The only limitation that I'm aware of is that some NetUI
JSP tags can't be split across a JSP and a .tag file because they use
the method "findAncestorWithClass" which requires some JSP tags to be
in a single JSP tag hierarchy.
>
>
> Ex: There is no dual list component, calendar component in beehive
[eko] True -- feel free to contribute one! :)
>
> I am trying to use the new JSP tag file mechanism to create a tag file which
> contains all the components required for the dual list
>
>
>
> But I need to pass the select options for List 1 , List 2 and 2 datasources
> to the tag as attributes
>
>
[eko] The NetUI "dataSource" attribute is a little special as it's
used to round-trip data into a page, to the browser, and back to the
server on a POST. Usually, you'd only reference the "actionForm"
implicit object from a "dataSource". For repeating tags like the data
grid, you might reference many other things. The "netui-samples" web
application provides some good examples of this, and documentation on
the nuances of the "dataSource" attribute are described here:
http://beehive.apache.org/docs/1.0.1/netui/databinding.html
To pass the options to a select box, you'd use the "optionsDataSource"
tag for the choices and use "dataSource" as the place data is stored
when a JSP POSTs. The netui-samples/ webapp in the distribution has
examples of this.
>
>
>
> But the datasource does not take runtime expressions. Is there any way to
> use runtime expressions for netui components like textBox, select, checkbox
> etc
>
[eko] On the dataSource attribute, this is (unfortunately) not
possible because of limitations in the JSP 2.0 Expression Language,
though the rest of the attributes should be runtime expressionable.
>
>
> Other thing we are tryinh to create is reusable datagrid
>
>
>
> We want to create a list of column names in the pageflow scope and in the
> reusable datagrid
>
>
>
> we want to use container.item.xxxxxxxx - where xxxxx comes from the column
> list.
>
>
>
> Is there any easy way to do this?
>
>
[eko] I don't know why this shouldn't work, but you'll need to use the
appropriate JSTL tag to render all of the <netui-data:headerCell>s
from inside of the <netui-data:header> tag. But, I've not tried it --
if you run into trouble with it, let me know.
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.4.0/305 - Release Date: 4/8/2006
>
>
>