Thanks,

I will look at this later (seems that sourceforge is having
connectivity issues now).
Anyway, I will go with manually generated html table using the same
css style like other displayTag tables in my project as I don't need
any special sorting/pagination/formaters functions.

But still I think it would be good if both TableModel and
HtmlTableWriter could be used without direct dependency on servlet
objects. I found that these objects also don't have any tests and
tight coupling may be one of the reasons why writing test is hard. It
would be good to create one more abstraction layer between data
providers (objects in servlet context) and displayTag. This would not
only allow easy testing but also using in different contexts as well.

Regards,
Lukas

On 8/30/06, Burgess, Randy <[EMAIL PROTECTED]> wrote:
> Have you taken a look at this blog entry:
>
> http://raibledesigns.com/page/rd?entry=the_future_of_the_displaytag
>
>
> This has an example with sample code. It uses AjaxAnywhere instead. I
> don't know if this will help or not. I've only glanced at the code for
> using AjaxTags but I have not had time to implement anything with it.
>
> RB
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Lukas Vlcek
> Sent: Wednesday, August 30, 2006 11:48 AM
> To: displaytag-user@lists.sourceforge.net
> Subject: Re: [displaytag-user] Using displayTag with AJAX?
>
> Hi,
>
> I am already using AjaxTags but ajax:dispalyTag does not apply to my
> situation.
> If I understand it correctly then ajax:displayTag can be used only for
> pagination,sorting and download workarounds for data which are already
> in pageContext but can be hardly used when data set is changed
> dynamically (during AJAX action) without reloading the main page.
>
> Imagine the following situation:
> You have a <div> section on your html page which contains html table
> (produced by displayTag) based on database data and below the html
> table is an <input> button which should call servlet via AJAX and
> delete the first row in database table. How can I update view on html
> page without reloading the whole JSP page?
> Meaning I just need to update the content of the <div> section in my
> HTML page but updated the data is not in pageContext. Can I use
> ajaxtags for this?
>
> Regards,
> Lukas
>
> On 8/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > In these last days i'm using ajaxtags (ajaxtags.sourceforge.net) and
> > displaytag is perfect with it ;)
> >
> >
> > Burgess, Randy ha scritto:
> > > See ajaxtags.sourceforge.net.
> > >
> > > RB
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of
> > > Lukas Vlcek
> > > Sent: Wednesday, August 30, 2006 10:43 AM
> > > To: displaytag-user@lists.sourceforge.net
> > > Subject: [displaytag-user] Using displayTag with AJAX?
> > >
> > > Hi,
> > >
> > > Is it possible to return HTML formated TableModel in servlet
> response?
> > >
> > > In simple words: Once my servlet is called via AJAX technology then
> I
> > > want to pull data from database, create TableModel object and
> populate
> > > it with my data and then get HTML formated table and return it in
> > > response from servlet.
> > >
> > > I was looking at TableModel and I see it is dependent on
> > > javax.servlet.jsp.PageContext and the  HtmlTableWriter (probably the
> > > object that is used to produce HTML formated table) is dependent on
> > > javax.servlet.jsp.JspWriter.
> > >
> > > Is it possible to write my own implementations on JspWriter and
> > > PageContext which could be used to "fool" displayTag to produce HTML
> > > formated table into String which I could then returned from my AJAX
> > > servelt? Is there any better way how to solve my situation?
> > >
> > > Sorry if these questions have been asked/answered previously as I
> just
> > > joined the mail-list.
> > >
> > > Thanks,
> > > Lukas
> > >
> > >
> ------------------------------------------------------------------------
> > > -
> > > Using Tomcat but need to do more? Need to support web services,
> > > security?
> > > Get stuff done quickly with pre-integrated technology to make your
> job
> > > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > > Geronimo
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > displaytag-user mailing list
> > > displaytag-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> > >
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> -
> > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > Get stuff done quickly with pre-integrated technology to make your
> job easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > displaytag-user mailing list
> > > displaytag-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> > >
> > >
> >
> >
> >
> ------------------------------------------------------------------------
> -
> > Using Tomcat but need to do more? Need to support web services,
> security?
> > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > displaytag-user mailing list
> > displaytag-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >
>
> ------------------------------------------------------------------------
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to