You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
(68) |
Dec
(77) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(75) |
Feb
(84) |
Mar
(89) |
Apr
(96) |
May
(52) |
Jun
(73) |
Jul
(99) |
Aug
(46) |
Sep
(40) |
Oct
(46) |
Nov
(45) |
Dec
(25) |
2004 |
Jan
(13) |
Feb
(74) |
Mar
(40) |
Apr
(18) |
May
(31) |
Jun
(1) |
Jul
(16) |
Aug
(1) |
Sep
(21) |
Oct
(19) |
Nov
(10) |
Dec
(16) |
2005 |
Jan
(4) |
Feb
(12) |
Mar
(46) |
Apr
(33) |
May
(64) |
Jun
(1) |
Jul
(60) |
Aug
(31) |
Sep
(26) |
Oct
(24) |
Nov
(37) |
Dec
(10) |
2006 |
Jan
(3) |
Feb
(31) |
Mar
(122) |
Apr
(22) |
May
(4) |
Jun
|
Jul
|
Aug
(2) |
Sep
(4) |
Oct
(8) |
Nov
(3) |
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(8) |
From: Lane S. <la...@op...> - 2004-03-07 00:07:26
|
Tim, I would really like to put to bed this weekend the update of Melati to WM 2.0. The following NULL Pointer Stack Trace needs to be resolved: [java] Caused by: java.lang.NullPointerException [java] at org.melati.Melati.getMelatiLocale(Melati.java:422) [java] at org.melati.Melati.getHTMLMarkupLanguage(Melati.java:531) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces The offending line, 422, is: String acceptLanguage = getRequest().getHeader("Accept-Language"); I bet dollars to English Muffins you have seen this error before. It is generated when invoking the URL <a href=StandAlone>StandAlone</a> from http://localhost:8080/melati/org.melati.test.WebmacroMelatiServletTest/?test=HelloWorld I will check in now the code so you can look at the same page I am looking at. Just run ant go and then run the above URL to see where I am at. kindest, -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |
From: Lane S. <la...@op...> - 2004-03-06 17:59:19
|
Hi Tim, Melati is pretty much running on WebMacro 2.0. Would you mind seeing if the following error makes any sense to you and suggest why this might be occurring. I took about 2 hours to do the upgrade. It is a beautiful morning in San Diego, North County. Gunna go surfing for a while. Hope you respond by the time I come back so I can wrap this up. Melati looks very cool. Love the ant script :). http://localhost:8080/melati/org.melati.test.WebmacroMelatiServletTest/StandAlone Melati Error Reported from ConfigServlet An error has occured in the application that runs this website, please contact nobody <mailto:%0D%0An...@no...> , with the information given below. org.webmacro.PropertyException: Attempt to invoke method public org.melati.template.HTMLMarkupLanguage org.melati.Melati.getHTMLMarkupLanguage() on object org.melati.Melati raised an exception: java.lang.NullPointerException java.lang.NullPointerException at org/melati/test/StandAlone.wm:1.2 at org.webmacro.engine.PropertyOperator.invoke(PropertyOperatorCache.java:1037) at org.webmacro.engine.UnaryMethodAccessor.get(PropertyOperatorCache.java:1429) at org.webmacro.engine.PropertyOperator.getProperty(PropertyOperatorCache.java:748) at org.webmacro.engine.PropertyOperatorCache.getProperty(PropertyOperatorCache.java:163) at org.webmacro.Context.internalGet(Context.java:383) Tim Pizey wrote: >On Friday 05 March 2004 3:13 pm, Lane Sharman wrote: > > >>>On Mar 4, 2004, at 1:54 PM, Lane Sharman wrote: >>> >>> >>>>I have my hands full with Melati right now. >>>> >>>> > >Hope you are doing OK > >cheers >timp > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |
From: Tim P. <ti...@pa...> - 2004-03-05 19:07:03
|
On Friday 05 March 2004 3:13 pm, Lane Sharman wrote: > > On Mar 4, 2004, at 1:54 PM, Lane Sharman wrote: > >> I have my hands full with Melati right now. Hope you are doing OK cheers timp |
From: Lane S. <la...@op...> - 2004-03-05 15:23:28
|
Yes. He does. He could wrap it up per the spec below. -Lane Eric Ridge wrote: > I seem to remember Marc saying he had an RSS reader built into that > framework he's working on. What's it called? Ignition, right? > > eric > > On Mar 4, 2004, at 1:54 PM, Lane Sharman wrote: > >> Hi, >> >> I would like someone to donate some code to WebMacro: an RSS Reader. >> With the following requirements. >> >> a) It is a plug-in component, not part of some largish WM framework. >> >> b) It is a packaged in o.w.util.RSSReader.java >> >> c) It has a template, o.w.util.RSSReader.wm which is easily >> understood by the novice and can be customized for a specific >> implementation other than the author's original impl. In other words, >> the component is target neutral. Not necessarily dependent upon >> execution inside a servlet container. >> >> d) It has a robust test case which goes out and renders to disk as >> part of the test: Sample123.html from source 123, ..., 789. So, we >> can trust that this RSS reader has been tested against a couple of >> sources. >> >> I have my hands full with Melati right now. >> >> Please, I need someone to tackle this new addition to WM. >> >> >> -- >> Lane Sharman >> For Protection from SPAM and Virus, >> Extend to the Network Your Perimeter of Defense: >> http://www.opendoors.com >> 858-755-2868 >> >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Webmacro-user mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |
From: Eric R. <eb...@tc...> - 2004-03-04 19:13:50
|
I seem to remember Marc saying he had an RSS reader built into that framework he's working on. What's it called? Ignition, right? eric On Mar 4, 2004, at 1:54 PM, Lane Sharman wrote: > Hi, > > I would like someone to donate some code to WebMacro: an RSS Reader. > With the following requirements. > > a) It is a plug-in component, not part of some largish WM framework. > > b) It is a packaged in o.w.util.RSSReader.java > > c) It has a template, o.w.util.RSSReader.wm which is easily understood > by the novice and can be customized for a specific implementation > other than the author's original impl. In other words, the component > is target neutral. Not necessarily dependent upon execution inside a > servlet container. > > d) It has a robust test case which goes out and renders to disk as > part of the test: Sample123.html from source 123, ..., 789. So, we can > trust that this RSS reader has been tested against a couple of > sources. > > I have my hands full with Melati right now. > > Please, I need someone to tackle this new addition to WM. > > > -- > Lane Sharman > For Protection from SPAM and Virus, > Extend to the Network Your Perimeter of Defense: > http://www.opendoors.com > 858-755-2868 > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user |
From: Lane S. <la...@op...> - 2004-03-04 19:03:59
|
Hi, I would like someone to donate some code to WebMacro: an RSS Reader. With the following requirements. a) It is a plug-in component, not part of some largish WM framework. b) It is a packaged in o.w.util.RSSReader.java c) It has a template, o.w.util.RSSReader.wm which is easily understood by the novice and can be customized for a specific implementation other than the author's original impl. In other words, the component is target neutral. Not necessarily dependent upon execution inside a servlet container. d) It has a robust test case which goes out and renders to disk as part of the test: Sample123.html from source 123, ..., 789. So, we can trust that this RSS reader has been tested against a couple of sources. I have my hands full with Melati right now. Please, I need someone to tackle this new addition to WM. -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |
From: Lane S. <la...@op...> - 2004-03-04 18:24:55
|
Jim et al: Version 2.0 has a new servlet which is an order of magnitude simpler than WMServlet. a) It does not have "magic" in a base class. b) It will parse and render *.html, *.htm, *.{anyWebMacro} as in http://host/index.html c) It has a default implementation so you can use it as is. d) You can override its "process" method. e) It shows how to use an encapsulation of the WebMacro interface using the class, WMEval. This encapsulation lends to the brevity of this servlet. In a future release, I am going to add two interfaces which will be optional: PreWebRequest and PostWebResponse. o.w.servlet.TemplateServlet.java for the goods. Just looking at this servlet will show you how to render a page using WebMacro as a big HELPER. -Lane Keats wrote: >One small correction on my previous post. You'll probably want to store and >retrieve the Hibernate Session using the context rather than an instance >variable (very bad idea -- not thread-safe). E.g., > >public void destroyContext (WebContext wc) >{ > Session hsess = (Session)wc.get("hsess"); > if (hsess != null) hsess.close(); >} > >Keats > >----- Original Message ----- >From: "Keats" <ke...@xa...> >To: <web...@li...> >Sent: Thursday, March 04, 2004 12:08 PM >Subject: Re: [WebMacro-user] Lazy loading when using Webmacro with Hibernate > > > > >>WMServlet has a method called destroyContext() that was created for >> >> >exactly > > >>this kind of thing. Just override the method and do any cleanup that you >>need to happen after the request is handled, like: >> >>public void destroyContext (WebContext wc) >>{ >>hibernateSession.close(); >>} >> >>This will get called by the doRequest() method after the handle() method >>finishes. >> >>Hope this helps. >> >>Keats >>----- Original Message ----- >>From: "c k" <woo...@ho...> >>To: <web...@li...> >>Sent: Wednesday, March 03, 2004 7:29 PM >>Subject: [WebMacro-user] Lazy loading when using Webmacro with Hibernate >> >> >> >> >>>I create servlets which extend WMServlet. In the handle() method, I put >>>POJOs fetched from Hibenate session into Webmacro context and just >>> >>> >return > > >>>to let Webmacro render the page. But it reports "lazy loading problem, >>>session closed". So how can I close the Hibernate session after the >>> >>> >whole > > >>>page has been rendered, override certain method in WMServlet or some >>> >>> >other > > >>>way around? I just don't know where to put Hibernate's session.close() >>> >>> >to > > >>>prevent lazy loading problems. >>> >>>Any help is appreciated. >>> >>>Jim Lee >>> >>> >>> > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |
From: Keats <ke...@xa...> - 2004-03-04 17:43:08
|
One small correction on my previous post. You'll probably want to store and retrieve the Hibernate Session using the context rather than an instance variable (very bad idea -- not thread-safe). E.g., public void destroyContext (WebContext wc) { Session hsess = (Session)wc.get("hsess"); if (hsess != null) hsess.close(); } Keats ----- Original Message ----- From: "Keats" <ke...@xa...> To: <web...@li...> Sent: Thursday, March 04, 2004 12:08 PM Subject: Re: [WebMacro-user] Lazy loading when using Webmacro with Hibernate > WMServlet has a method called destroyContext() that was created for exactly > this kind of thing. Just override the method and do any cleanup that you > need to happen after the request is handled, like: > > public void destroyContext (WebContext wc) > { > hibernateSession.close(); > } > > This will get called by the doRequest() method after the handle() method > finishes. > > Hope this helps. > > Keats > ----- Original Message ----- > From: "c k" <woo...@ho...> > To: <web...@li...> > Sent: Wednesday, March 03, 2004 7:29 PM > Subject: [WebMacro-user] Lazy loading when using Webmacro with Hibernate > > > > I create servlets which extend WMServlet. In the handle() method, I put > > POJOs fetched from Hibenate session into Webmacro context and just return > > to let Webmacro render the page. But it reports "lazy loading problem, > > session closed". So how can I close the Hibernate session after the whole > > page has been rendered, override certain method in WMServlet or some other > > way around? I just don't know where to put Hibernate's session.close() to > > prevent lazy loading problems. > > > > Any help is appreciated. > > > > Jim Lee > > > |
From: Keats <ke...@xa...> - 2004-03-04 17:22:44
|
WMServlet has a method called destroyContext() that was created for exactly this kind of thing. Just override the method and do any cleanup that you need to happen after the request is handled, like: public void destroyContext (WebContext wc) { hibernateSession.close(); } This will get called by the doRequest() method after the handle() method finishes. Hope this helps. Keats ----- Original Message ----- From: "c k" <woo...@ho...> To: <web...@li...> Sent: Wednesday, March 03, 2004 7:29 PM Subject: [WebMacro-user] Lazy loading when using Webmacro with Hibernate > I create servlets which extend WMServlet. In the handle() method, I put > POJOs fetched from Hibenate session into Webmacro context and just return > to let Webmacro render the page. But it reports "lazy loading problem, > session closed". So how can I close the Hibernate session after the whole > page has been rendered, override certain method in WMServlet or some other > way around? I just don't know where to put Hibernate's session.close() to > prevent lazy loading problems. > > Any help is appreciated. > > Jim Lee > > _________________________________________________________________ > 免费下载 MSN Explorer: http://explorer.msn.com/lccn/ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > |
From: c k <woo...@ho...> - 2004-03-04 00:43:23
|
I create servlets which extend WMServlet. In the handle() method, I put POJOs fetched from Hibenate session into Webmacro context and just return to let Webmacro render the page. But it reports "lazy loading problem, session closed". So how can I close the Hibernate session after the whole page has been rendered, override certain method in WMServlet or some other way around? I just don't know where to put Hibernate's session.close() to prevent lazy loading problems. Any help is appreciated. Jim Lee _________________________________________________________________ 免费下载 MSN Explorer: http://explorer.msn.com/lccn/ |
From: Tim P. <ti...@pa...> - 2004-03-03 17:58:16
|
On Wednesday 03 March 2004 4:58 pm, Lane Sharman wrote: > Hi Tim, > > I am going to carve out a couple of hours this weekend to see if I can > get Melati up and running. > > I use eclipse as well under 2000 and linux.=20 Cool, for me it shows quite a few unused imports in WebMacro.=20 > I think I will take a pass > on Maven for the time being. I will have my hands full with Melati. What I meant was that I might be able to repay you and the webmacro commu= nity=20 by creating a webmacro maven site.=20 > Use if possible la...@op... as my credential for committing.=20 As I understand cvs you need to have a username on the machine hosting th= e=20 repository.=20 > You > can trust me;=20 I know, I have known you for 6 years now !!! (feeling like I have been at this a long time) > go ahead and assign to me a password and email it to me > personally or via IM. (lanesharman). Will do, but it will be la...@pa... I am afraid.=20 > I would really appreciate a zip of all the docs showing what you have > done; what triggers the error; what files to look at; etc, etc. I want > to exploit your understanding of the code and the problem. I guess the best place to see what I did is=20 http://melati.org/cgi-bin/cvsweb.cgi/melati/src/org/melati/template/webma= cro/WebmacroTemplate.java The order I did things in: Use webmacro-classic and concurrent.jar Use Brian's code to fix compile problems,=20 Realise Brian was using old code Get lost in versions Get everything working and committed. Test Realise that there was aproblem with=20 org.melati.template.MarkupLanguage.input() such that it was rendering to = the=20 output stream before the actual template.=20 this problem can be seen at=20 http;//localhost:8080/melati/org.melati.admin.Admin/melati/Main immediate= ly > Currently, my shallow understanding is that you have a Decorator > interface, MelatiWriter, and it no longer has an underlying FastWriter > to work with.=20 Think that is right.=20 > I need to come up with some class to implement > MelatiWriter and that supports the methods exposed by this interface. > > Keats: would you please give me your email address for the weekend in > case I run out of ideas? > > -Lane Hope this makes sense and that there is some benefit to you to helping Me= lati=20 out.=20 yours Tim Pizey > > Tim Pizey wrote: > >On Tuesday 02 March 2004 11:43 pm, Lane Sharman wrote: > >>Hi Tim, > >> > >>Would you like me to take a stab at helping to get Melati running und= er > >>WM 2.0 this weekend? > > > >Yes please, > >you now have a 'clean' starting point, the CVS tree should not change > >for a while, as noone is working on anything, that I am aware. > > > >Should I make you a committer now? > >Create la...@pa... ? > > > >I get the feeling that the problem is now rather well understood by > >you/Keats/Brian and I hope to understand what you do, but I have > >not got my head around the solution, and have spent too much time > >on this now. > > > >I use Eclipse and Maven > >would you like me to create a Maven site for webmacro? > > > >yours > >tim > > > > > > > > > >------------------------------------------------------- > >SF.Net is sponsored by: Speed Start Your Linux Apps Now. > >Build and deploy apps & Web services for Linux with > >a free DVD software kit from IBM. Click Now! > >http://ads.osdn.com/?ad_id56&alloc_id438&op=3Dclick > >_______________________________________________ > >Webmacro-user mailing list > >Web...@li... > >https://lists.sourceforge.net/lists/listinfo/webmacro-user |
From: Lane S. <la...@op...> - 2004-03-03 17:07:13
|
Hi Tim, I am going to carve out a couple of hours this weekend to see if I can get Melati up and running. I use eclipse as well under 2000 and linux. I think I will take a pass on Maven for the time being. I will have my hands full with Melati. Use if possible la...@op... as my credential for committing. You can trust me; go ahead and assign to me a password and email it to me personally or via IM. (lanesharman). I would really appreciate a zip of all the docs showing what you have done; what triggers the error; what files to look at; etc, etc. I want to exploit your understanding of the code and the problem. Currently, my shallow understanding is that you have a Decorator interface, MelatiWriter, and it no longer has an underlying FastWriter to work with. I need to come up with some class to implement MelatiWriter and that supports the methods exposed by this interface. Keats: would you please give me your email address for the weekend in case I run out of ideas? -Lane Tim Pizey wrote: >On Tuesday 02 March 2004 11:43 pm, Lane Sharman wrote: > > >>Hi Tim, >> >>Would you like me to take a stab at helping to get Melati running under >>WM 2.0 this weekend? >> >> > >Yes please, >you now have a 'clean' starting point, the CVS tree should not change >for a while, as noone is working on anything, that I am aware. > >Should I make you a committer now? >Create la...@pa... ? > >I get the feeling that the problem is now rather well understood by >you/Keats/Brian and I hope to understand what you do, but I have >not got my head around the solution, and have spent too much time >on this now. > >I use Eclipse and Maven >would you like me to create a Maven site for webmacro? > >yours >tim > > > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id56&alloc_id438&op=click >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |
From: Tim P. <ti...@pa...> - 2004-03-03 00:24:43
|
On Tuesday 02 March 2004 11:43 pm, Lane Sharman wrote: > Hi Tim, > > Would you like me to take a stab at helping to get Melati running under > WM 2.0 this weekend? Yes please,=20 you now have a 'clean' starting point, the CVS tree should not change=20 for a while, as noone is working on anything, that I am aware.=20 Should I make you a committer now? Create la...@pa... ? I get the feeling that the problem is now rather well understood by=20 you/Keats/Brian and I hope to understand what you do, but I have=20 not got my head around the solution, and have spent too much time=20 on this now.=20 I use Eclipse and Maven=20 would you like me to create a Maven site for webmacro? yours tim |
From: Lane S. <la...@op...> - 2004-03-03 00:13:47
|
Hi Tim, Would you like me to take a stab at helping to get Melati running under WM 2.0 this weekend? -Lane Tim Pizey wrote: >Version 0.7.2 of Melati has been released. > >This includes >o - better handling of character encodings, > to support chinese and other characters >o - Support for finer grained authorisation >o - bug fixes to rollback and tree rendering >o - An experimental JSP handling servlet > >Melati is currently stuck on version 1.1 of WebMacro. > >yours >Tim Pizey > > > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id56&alloc_id438&op=click >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > |
From: Tim P. <ti...@pa...> - 2004-03-03 00:06:23
|
Version 0.7.2 of Melati has been released.=20 This includes=20 o - better handling of character encodings,=20 to support chinese and other characters o - Support for finer grained authorisation =20 o - bug fixes to rollback and tree rendering o - An experimental JSP handling servlet Melati is currently stuck on version 1.1 of WebMacro. yours Tim Pizey |
From: Lane S. <la...@op...> - 2004-03-02 18:02:44
|
Tim, Keats has pointed out a way to construct a writer. Is this helpful? -Lane Keats wrote: >You can still buffer. In fact, AFAIK the entire page is always buffered. >The FastWriter is still there in the background. What you lose is the >ability to manipulate the buffer. Normally you don't need this, which is >why we've hidden the FastWriter. If you need this capability you can still >do your own buffering. > >Anyway I think I understand your problem now. You need a Writer >implementation to make your code work, but if you use the Writer from the >response you get an InvalidStateException -- presumeably because somewhere >else you have already retrieved the OutputStream. You should be able to >finesse the problem by constructing a Writer on the OutputStream: > > Writer out = new OutputStreamWriter(request.getOutputStream(), >request.getEncoding()); > >You may even want to create a subclass of MetaliWriter, eg, >MetaliOutputStreamWriter, that does this for you in the constructor. > >Keats > >----- Original Message ----- >From: "Tim Pizey" <ti...@pa...> >To: <web...@li...> >Sent: Tuesday, March 02, 2004 7:07 AM >Subject: Re: [WebMacro-user] ANNOUNCE: WebMacro 2.0b1 has been released > > >On Tuesday 02 March 2004 10:30 am, Tim Pizey wrote: > > >>The Melati Template interface: >> >>public interface Template { >> void write(MelatiWriter out, TemplateContext templateContext, >> TemplateEngine engine) throws TemplateEngineException; >>} >> >>This works for Velocity, old WebMacro and JTemplater and probably others. >> >> > >As I (don't) understand it by removing the Writer layer you have removed the >ability to buffer, which is vital if you are to use sub-templates >(templets). > >TimP > > > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |
From: Brian G. <br...@qu...> - 2004-03-02 17:51:50
|
> As I (don't) understand it by removing the Writer layer you have removed the > ability to buffer, which is vital if you are to use sub-templates (templets). Wrong. You can use your own buffering output stream to buffer, or a string as a buffer. |
From: Brian G. <br...@qu...> - 2004-03-02 17:50:38
|
> > Simple! > > Twice as big as necessary. No, it means that it can serve different kinds of consumers. It doesn't force servlets to do things in terms of strings (or writers, like Melati does) if they don't want to, and it doesn't force other apps to use output streams. It makes it easier for both kinds of consumers. > public interface Template { > void write(MelatiWriter out, TemplateContext templateContext, > TemplateEngine engine) throws TemplateEngineException; > } What we are doing now is CLOSER to this, not farther. You're just resisting the change because its work, not because its better or worse. > You have made it such that the programmer now needs to know and care > what she is rendering to. Wrong. You only have to use ONE of them. Pick which is more convenient and just use it! |
From: Tim P. <ti...@pa...> - 2004-03-02 17:04:48
|
Keats and all,=20 On Tuesday 02 March 2004 2:47 pm, Keats wrote: > You can still buffer. In fact, AFAIK the entire page is always buffere= d. > The FastWriter is still there in the background. What you lose is the > ability to manipulate the buffer. Normally you don't need this, which = is > why we've hidden the FastWriter. If you need this capability you can s= till > do your own buffering. > > Anyway I think I understand your problem now. You need a Writer > implementation to make your code work, but if you use the Writer from t= he > response you get an InvalidStateException -- presumeably because somewh= ere > else you have already retrieved the OutputStream. You should be able t= o > finesse the problem by constructing a Writer on the OutputStream: > > Writer out =3D new OutputStreamWriter(request.getOutputStream(), > request.getEncoding()); > > You may even want to create a subclass of MetaliWriter, eg, > MetaliOutputStreamWriter, that does this for you in the constructor. > > Keats I think you are probably right, but after talking with others and=20 realising I am out of my depth, I have backed out the changes.=20 I am rolling out a 0.7.2 version still using the WebMacro 1.1 engine.=20 You or anyone else who cares is welcome to join the Melati list=20 and become a Melati committer. Melati really is a great framework and could do with some mindshare.=20 You guys have been tolerant and kind but for me this has been no fun.=20 yours Tim Pizey |
From: Keats <ke...@xa...> - 2004-03-02 15:00:45
|
You can still buffer. In fact, AFAIK the entire page is always buffered. The FastWriter is still there in the background. What you lose is the ability to manipulate the buffer. Normally you don't need this, which is why we've hidden the FastWriter. If you need this capability you can still do your own buffering. Anyway I think I understand your problem now. You need a Writer implementation to make your code work, but if you use the Writer from the response you get an InvalidStateException -- presumeably because somewhere else you have already retrieved the OutputStream. You should be able to finesse the problem by constructing a Writer on the OutputStream: Writer out = new OutputStreamWriter(request.getOutputStream(), request.getEncoding()); You may even want to create a subclass of MetaliWriter, eg, MetaliOutputStreamWriter, that does this for you in the constructor. Keats ----- Original Message ----- From: "Tim Pizey" <ti...@pa...> To: <web...@li...> Sent: Tuesday, March 02, 2004 7:07 AM Subject: Re: [WebMacro-user] ANNOUNCE: WebMacro 2.0b1 has been released On Tuesday 02 March 2004 10:30 am, Tim Pizey wrote: > > The Melati Template interface: > > public interface Template { > void write(MelatiWriter out, TemplateContext templateContext, > TemplateEngine engine) throws TemplateEngineException; > } > > This works for Velocity, old WebMacro and JTemplater and probably others. As I (don't) understand it by removing the Writer layer you have removed the ability to buffer, which is vital if you are to use sub-templates (templets). TimP |
From: Tim P. <ti...@pa...> - 2004-03-02 12:22:38
|
On Tuesday 02 March 2004 10:30 am, Tim Pizey wrote: > > The Melati Template interface: > > public interface Template { > void write(MelatiWriter out, TemplateContext templateContext, > TemplateEngine engine) throws TemplateEngineExcepti= on; > } > > This works for Velocity, old WebMacro and JTemplater and probably other= s. As I (don't) understand it by removing the Writer layer you have removed = the=20 ability to buffer, which is vital if you are to use sub-templates (temple= ts). TimP |
From: Tim P. <ti...@pa...> - 2004-03-02 10:45:43
|
On Monday 01 March 2004 11:12 pm, Brian Goetz wrote: > >I am sure I am getting this wrong but: > > > >The FastWriter API only had one output object to deal with: a Writer, > >so could be used to render to the output stream or to strings. > > The FastWriter actually had several (poorly documented!) ways of doing > things. You could attach a FastWriter to an OUTPUT STREAM, in which ca= se > it would act like a writer but do its own bytes-to-chars thing using th= e > encoding cache, OR, you could not bind it to a stream, and instead call > .toString() to get the result as a String. Yes, but you had the possibility of having a very simple API,=20 which Melati had.=20 > >You have now chosen to treat Strings differently to the Response, as > >StringWriters do not have a getOutputStream method. > > You now have the same two choices directly from Template: > - write the results to an OUTPUT STREAM (template.write(outputStream,= c)) > - write the results to a STRING (template.evaluateAsString(c)) > > Simple! Twice as big as necessary. The Melati Template interface: public interface Template { void write(MelatiWriter out, TemplateContext templateContext,=20 TemplateEngine engine) throws TemplateEngineException= ; } This works for Velocity, old WebMacro and JTemplater and probably others. You have made it such that the programmer now needs to know and care=20 what she is rendering to. I have to go and find out if Velocity agrees with you=20 (they use a Writer too) and whether there is a=20 way of treating Strings differently in Velocity (there doesn't appear to be). So I still cannot see how your approach is an improvemenmt or a=20 simplification.=20 You have introduced two lower lever objects to replace the one higher lev= el=20 object and no longer share an API with Velocity.=20 No doubt I am mistaken, appologies etc yours tim pizey |
From: Lane S. <la...@op...> - 2004-03-02 00:07:15
|
Thanks, brian. That was crystal clear. -Lane <snip> > > You now have the same two choices directly from Template: > - write the results to an OUTPUT STREAM (template.write(outputStream, > c)) > - write the results to a STRING (template.evaluateAsString(c)) > > Simple! -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |
From: Lane S. <la...@op...> - 2004-03-02 00:03:18
|
Keats wrote: >Please be specific, so we can decide if your critiques have merit. > >Actually one of the objectives of the new release was to provide a minimal >configuration for folks who don't want "a raft of stuff". Most of the >changes have been to streamline and simplify the code. > in fact, to this end, the sanding of the API resulted in the ability to create a classic distro and a minimal distro without context tools and some other cruft. The suppression of FW was a good move but now we need to help Tim work thru this. So, all hands on deck! -Lane > >Good luck. > >Keats > > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |
From: Lane S. <la...@op...> - 2004-03-01 23:56:56
|
Keats wrote: >I'd be willing to change the default behaviour of $Form to return empty >strings instead of nulls, as this seems more useful. Any objections? > No. I think throwing an exception is a harsh error in the current context. Do it! -Lane > >I would also add a method to check if a parameter exist, e.g., >$Form.Exists.formVar. > >btw, what problems are you having with FastWriter? You should be able to >just ignore it altogether with 2.0. > >Keats >----- Original Message ----- >From: "Tim Pizey" <ti...@pa...> >To: <web...@li...> >Sent: Friday, February 27, 2004 10:09 AM >Subject: Re: [WebMacro-user] Problems upgrading Melati to WebMacro 2.0b1 > > >On Friday 27 February 2004 2:50 pm, Keats wrote: > > >>Hey Tim, >> >>I'm not aware of any change to the $Form tool, but perhaps some other >>change impacted this. >> >> > >Something has definitely changed since 1.1, >$Form.unusedVariable produced "", now throws exception. > > > >>Anyway the recommended approach AFAIK is: >> >>#if ($Form.unusedVariable){ -- do something -- } >> >>This is a bit tedious. I have added a method to the Form class called >>getNoNull(), so you can just say: >> >> $Form.NoNull.someField >> >>which will return the value of "someField" or an empty string. I can >>commit this if noone objects. >> >> > >What about changing the behavior of $Form >(not the general behaviour of null handling) ? > > > >>Keats >> >> > > >thanks >TimP >I am having a horrible time with the FastWriter code. > > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |