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...> - 2005-11-26 00:56:24
|
Marc Palmer wrote: > I hope to make progress on this next week - but I've been saying that > for a long time ;-( Marc: this must be like British sex ... lol. Spring into action ... commit. I am ready to try your successor to Ignition. Lane |
From: Nikolaos P. <nk...@cc...> - 2005-11-25 21:08:07
|
Thank you Marc, I will take a closer look at SWF Regards, Nikolaos Marc Palmer wrote: > Nikolaos Papadakis wrote: > >> Hi Marc, >> >> Can Spring be used in conjuction with webmacro? > > > Spring can be used with anything, and so can WebMacro. > > You do not need to use Spring MVC code to use Spring Web Flow - SWF is > separate from Spring and is part of Spring Modules (a separate project). > > SWF gives you declarative work flow mechanisms, and the SWF servlet > handles transitions between your actions, using data beans to pass in > form data etc. > > You can just return WebMacro rendered content from this. > > I have a beta-grade Spring MVC view implentation that renders using > WebMacro but this is not in CVS yet. I hope to make progress on this > next week - but I've been saying that for a long time ;-( > > Cheers > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > |
From: Marc P. <ma...@an...> - 2005-11-25 20:59:34
|
Nikolaos Papadakis wrote: > Hi Marc, > > Can Spring be used in conjuction with webmacro? Spring can be used with anything, and so can WebMacro. You do not need to use Spring MVC code to use Spring Web Flow - SWF is separate from Spring and is part of Spring Modules (a separate project). SWF gives you declarative work flow mechanisms, and the SWF servlet handles transitions between your actions, using data beans to pass in form data etc. You can just return WebMacro rendered content from this. I have a beta-grade Spring MVC view implentation that renders using WebMacro but this is not in CVS yet. I hope to make progress on this next week - but I've been saying that for a long time ;-( Cheers |
From: Nikolaos P. <nk...@cc...> - 2005-11-25 20:30:00
|
Hi Marc, Can Spring be used in conjuction with webmacro? Thx. Nikolaos Marc Palmer wrote: > Nick Sanderson wrote: > >> Hi Nikolaos >> >> The simple solution is to use a post to submit the data but to redirect >> to the display page. That way the post is not repeated as the page has >> been reached as a result of a GET. >> >> > Yes, although this doesn't prevent double-post from the end-user > choosing "refresh" or pressing POST again after going back to the form > page. For that you need ticketing. > > I would strongly suggest looking at Spring Web Flow which can solve > all these problems for you. > > cheers > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > |
From: Nikolaos P. <nk...@cc...> - 2005-11-25 20:27:19
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Hi Nick, all,<br> <br> First of all thx for your reply. <br> I have managed to find another work around for this problem. The main idea is to keep a counter in the session. This counter is passed to the html page, through the context, and is incremented by one when the user presses the 'submit' button. When the request is received the value of the counter is compared to the value stored in the session. If the two values differ by one, then it is a new request. Else it means that the request came from a 'refresh' without the user pressing the submit button.<br> This solution seems to work but it is a little complicated, so I would still be interested in a simpler, more straightforward solution, as the one you suggested. Unfortunatelly, I am a newbie in webmacro, so could you please indicate in more detail how exactly a redirect is implemented in webmacro? A code snippet would be very appreciated.<br> <br> Thx in advance,<br> <br> Nikolaos<br> <br> <br> <br> Nick Sanderson wrote: <blockquote cite="mid...@ms..." type="cite"> <pre wrap="">Hi Nikolaos The simple solution is to use a post to submit the data but to redirect to the display page. That way the post is not repeated as the page has been reached as a result of a GET. Regards Nick </pre> <blockquote type="cite"> <blockquote type="cite"> <blockquote type="cite"> <pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:ma...@an...">ma...@an...</a> 11/24/05 12:09 PM >>> </pre> </blockquote> </blockquote> </blockquote> <pre wrap=""><!---->Nikolaos Papadakis wrote: </pre> <blockquote type="cite"> <pre wrap="">Hi all, I am using webmacro to develop a (small) web-based application. I am facing a problem in my application. The problem occurs when the user re-submits a request, using one of the following methods: 1. reloading result page using Refresh/Reload browser button, 2. clicking Back and then Forward browser buttons, 3. returning back to HTML FORM after submission and clicking Submit button on the form again. Browsers usually, display a warning message when the same POST request </pre> </blockquote> <pre wrap=""><!----> </pre> <blockquote type="cite"> <pre wrap="">is about to be resent to the server. But the message is too technical and obscure for an average user. Also, some browsers do not ask for confirmation at all. Is it possible to get rid of this kind of inconvenience? Is there any hint you can give me for this phenomenon? Can webmacro handle this? Any source code would be appreciated. </pre> </blockquote> <pre wrap=""><!----> Hi, WebMacro is not a web framework, it is just a view layer (renderer). As such WebMacro does not provide any functionality relating to the double-post problem. Cheers ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! <a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click">http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click</a> _______________________________________________ Webmacro-user mailing list <a class="moz-txt-link-abbreviated" href="mailto:Web...@li...">Web...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/webmacro-user">https://lists.sourceforge.net/lists/listinfo/webmacro-user</a> This mail has been checked at MSXI for all known virus'. You open this at your own risk. Please make sure all replies are virus free. Also, we do not accept or send attachments of the type exe, vbs, scr or bat due to the increased virus risk they contain. These types of attachments will be stripped from the message. MSXI ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! <a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click">http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click</a> _______________________________________________ Webmacro-user mailing list <a class="moz-txt-link-abbreviated" href="mailto:Web...@li...">Web...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/webmacro-user">https://lists.sourceforge.net/lists/listinfo/webmacro-user</a> </pre> </blockquote> </body> </html> |
From: Marc P. <ma...@an...> - 2005-11-25 17:03:44
|
Nick Sanderson wrote: >Hi Nikolaos > >The simple solution is to use a post to submit the data but to redirect >to the display page. That way the post is not repeated as the page has >been reached as a result of a GET. > > Yes, although this doesn't prevent double-post from the end-user choosing "refresh" or pressing POST again after going back to the form page. For that you need ticketing. I would strongly suggest looking at Spring Web Flow which can solve all these problems for you. cheers |
From: Nick S. <nsa...@ms...> - 2005-11-25 11:55:37
|
Hi Nikolaos The simple solution is to use a post to submit the data but to redirect to the display page. That way the post is not repeated as the page has been reached as a result of a GET. Regards Nick >>> ma...@an... 11/24/05 12:09 PM >>> Nikolaos Papadakis wrote: > Hi all, > I am using webmacro to develop a (small) web-based application. > I am facing a problem in my application. The problem occurs when the > user re-submits a request, using one of the following methods: > > 1. reloading result page using Refresh/Reload browser button, > 2. clicking Back and then Forward browser buttons, > 3. returning back to HTML FORM after submission and clicking Submit > button on the form again. > > Browsers usually, display a warning message when the same POST request > is about to be resent to the server. But the message is too technical > and obscure for an average user. Also, some browsers do not ask for > confirmation at all. > Is it possible to get rid of this kind of inconvenience? > Is there any hint you can give me for this phenomenon? > Can webmacro handle this? > Any source code would be appreciated. Hi, WebMacro is not a web framework, it is just a view layer (renderer). As such WebMacro does not provide any functionality relating to the double-post problem. Cheers ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Webmacro-user mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/webmacro-user This mail has been checked at MSXI for all known virus'. You open this at your own risk. Please make sure all replies are virus free. Also, we do not accept or send attachments of the type exe, vbs, scr or bat due to the increased virus risk they contain. These types of attachments will be stripped from the message. MSXI |
From: Marc P. <ma...@an...> - 2005-11-24 21:23:27
|
Nikolaos Papadakis wrote: > Hi all, > I am using webmacro to develop a (small) web-based application. > I am facing a problem in my application. The problem occurs when the > user re-submits a request, using one of the following methods: > > 1. reloading result page using Refresh/Reload browser button, > 2. clicking Back and then Forward browser buttons, > 3. returning back to HTML FORM after submission and clicking Submit > button on the form again. > > Browsers usually, display a warning message when the same POST request > is about to be resent to the server. But the message is too technical > and obscure for an average user. Also, some browsers do not ask for > confirmation at all. > Is it possible to get rid of this kind of inconvenience? > Is there any hint you can give me for this phenomenon? > Can webmacro handle this? > Any source code would be appreciated. Hi, WebMacro is not a web framework, it is just a view layer (renderer). As such WebMacro does not provide any functionality relating to the double-post problem. Cheers |
From: Nikolaos P. <nk...@cc...> - 2005-11-24 20:58:39
|
Hi all, I am using webmacro to develop a (small) web-based application. I am facing a problem in my application. The problem occurs when the user re-submits a request, using one of the following methods: 1. reloading result page using Refresh/Reload browser button, 2. clicking Back and then Forward browser buttons, 3. returning back to HTML FORM after submission and clicking Submit button on the form again. Browsers usually, display a warning message when the same POST request is about to be resent to the server. But the message is too technical and obscure for an average user. Also, some browsers do not ask for confirmation at all. Is it possible to get rid of this kind of inconvenience? Is there any hint you can give me for this phenomenon? Can webmacro handle this? Any source code would be appreciated. Thank you in advance, Nikos Papadakis |
From: Tim P. <ti...@pa...> - 2005-11-24 20:28:42
|
On Tuesday 22 November 2005 22:30, Lane Sharman wrote: > Tim, > > Could you try the WebMacro 2.0 release and also verify that the context > has not been somehow cleared? > Sillier than that, there was a non-committed WebMacro.defaults sitting on the production machine, so it was working at home but not when deployed. I will try the new v2.0 soon, and try to get it on to ibiblio. thanks Tim > Lane > > Tim Pizey wrote: > >Hi, > > > >We have used a little idiom since 1999 or earlier: > > > >#set $Response.ContentType ="text/html" > > > >yesterday, when I redeployed I started getting > > > >org.webmacro.PropertyException: No method to set "Response.ContentType" to > >type class java.lang.String in supplied context (class > >org.webmacro.servlet.WebContext) > > > >I claim to be using webmacro-classic-2.0b1, it is possible that another > >version is being picked up somewhere. > > > >Any clues? > > > >Tim -- Registered linux user #21337, http://counter.li.org. |
From: Lane S. <la...@op...> - 2005-11-23 16:25:10
|
Hi Nikhil, My caching code is in src-optional and can be compiled using the ant task for the optional source. Then, use the jar task to create a new jar. I have attached the properties file I have been using for a few years. http://webmacro.org/VeryFastCache for a decent discussion and what to place in webmacro.properties to start using the open doors cache maanger. Let me know offline if you want some further help. Lane Nikhil G. Daddikar wrote: > What is the optimal caching parameters in WM 2.0? I believe the > opendoors package is no longer part of WM.jar. I would appreciate if > someone can write what I need to put in the WM.properties file. > > Thanks. > Nikhil > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > -- Lane Sharman Providing Private and SPAM-Free Email http://www.opendoors.com 858-755-2868 |
From: Nikhil G. D. <ng...@ce...> - 2005-11-23 11:26:29
|
What is the optimal caching parameters in WM 2.0? I believe the opendoors package is no longer part of WM.jar. I would appreciate if someone can write what I need to put in the WM.properties file. Thanks. Nikhil |
From: Lane S. <la...@op...> - 2005-11-22 22:28:25
|
Tim, Could you try the WebMacro 2.0 release and also verify that the context has not been somehow cleared? Lane Tim Pizey wrote: >Hi, > >We have used a little idiom since 1999 or earlier: > >#set $Response.ContentType ="text/html" > >yesterday, when I redeployed I started getting > >org.webmacro.PropertyException: No method to set "Response.ContentType" to >type class java.lang.String in supplied context (class >org.webmacro.servlet.WebContext) > >I claim to be using webmacro-classic-2.0b1, it is possible that another >version is being picked up somewhere. > >Any clues? > >Tim > > > -- Lane Sharman Providing Private and SPAM-Free Email http://www.opendoors.com 858-755-2868 |
From: Lane S. <la...@op...> - 2005-11-22 22:20:51
|
The #setprops is a really nice addition for populating an object or a collection. I would use this directive as a very flexible way of specifying the type of collection you want to use. nice work, Keats, to the 2.0 release. Lane Keats Kirsch wrote: > I would be a nice enhancement to allow one to configure the map > implementation, but I think it would be a mistake to rely on > non-standard map behavior from the generic map syntax. > > However you can use the new #setprops directive to get what you want. > > see: http://www.webmacro.org/SetpropsDirective > > You could do something like: > > #setprops $map class="java.util.LinkedHashmap" { > k1: v1 > k2: v2 > } > > Hope this helps. > > Keats > > Nikhil G. Daddikar wrote: > >> I like the new #set $map = { k1: v1, k2:v2 } syntax. The only problem >> is that it does not use the "List Ordered" Map i.e. when I want to >> say render a select list from it, it shows things not in the order >> in which the map was defined. Is there a way where I can specify the >> implementation class to use? I use JDK 1.5 and would like to specify >> the LinkedHashMap. >> >> Any help and pointers would be appreciated. >> > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > -- Lane Sharman Providing Private and SPAM-Free Email http://www.opendoors.com 858-755-2868 |
From: Tim P. <ti...@pa...> - 2005-11-21 20:33:46
|
Hi, We have used a little idiom since 1999 or earlier: #set $Response.ContentType ="text/html" yesterday, when I redeployed I started getting org.webmacro.PropertyException: No method to set "Response.ContentType" to type class java.lang.String in supplied context (class org.webmacro.servlet.WebContext) I claim to be using webmacro-classic-2.0b1, it is possible that another version is being picked up somewhere. Any clues? Tim -- Registered linux user #21337, http://counter.li.org. |
From: Keats K. <ke...@xa...> - 2005-11-18 15:24:31
|
I would be a nice enhancement to allow one to configure the map implementation, but I think it would be a mistake to rely on non-standard map behavior from the generic map syntax. However you can use the new #setprops directive to get what you want. see: http://www.webmacro.org/SetpropsDirective You could do something like: #setprops $map class="java.util.LinkedHashmap" { k1: v1 k2: v2 } Hope this helps. Keats Nikhil G. Daddikar wrote: > I like the new #set $map = { k1: v1, k2:v2 } syntax. The only problem > is that it does not use the "List Ordered" Map i.e. when I want to > say render a select list from it, it shows things not in the order in > which the map was defined. Is there a way where I can specify the > implementation class to use? I use JDK 1.5 and would like to specify > the LinkedHashMap. > > Any help and pointers would be appreciated. > |
From: Mike W. - de B. <M.W...@tr...> - 2005-11-18 12:32:24
|
Hello Nikhil, There is a experimental WhileDirective available in the CVS tree. ;-) I personally think that if you specify #set $l = [b, a, c], you want to loop trough the map in the order b, a, c and not a random order! If you want to sort it, then you must use a function or something as you mentioned. Greetings, Mike _____ Van: web...@li... [mailto:web...@li...] Namens Nikhil G. Daddikar Verzonden: vrijdag 18 november 2005 12:54 Aan: web...@li... Onderwerp: Re: [WebMacro-user] The new map syntax Thanks for your detailed response. I think the spirit of webmacro has been to be web-designer friendly. (That is why probably there is no while or break.) I don't think when web designers specify the new map syntax, they are expecting that the backend will sort it according to the keys or that the map is in a random order. It is telling them thet when you specify #set $l = [a, b, c], you may get the list in a random order. I think it is ok for a designer to call a function if he/she wants to sort it by key or value rather than messing up the order. -ngd Marc Palmer wrote: -----Original Message----- From: "Nikhil G. Daddikar" <mailto:ng...@ce...> <ng...@ce...> To: web...@li... Date: Fri, 18 Nov 2005 10:52:24 +0530 Subject: [WebMacro-user] The new map syntax I like the new #set $map = { k1: v1, k2:v2 } syntax. The only problem is that it does not use the "List Ordered" Map i.e. when I want to say render a select list from it, it shows things not in the order in which the map was defined. Is there a way where I can specify the implementation class to use? I use JDK 1.5 and would like to specify the LinkedHashMap. No, I don't believe this is possible. I'd say it's generally better not rely on the order of definition of map elements. If you need ordering you can simply create 2 lists. It's not that pretty but... Alternatively, and usually this makes sense for "human" use, you would populate lists etc based on a sort order rather than listed order - so you can just write a trivial helper to return a sorted list of the keys: public class SortTool { public static final Object sort(Object list) { List l = ListUtil.toList(list); Collections.sort(l); return l; } } ...and use it like this: #set $sortedKeys = $Sorter.sort($myMap.keySet().iterator()) ...of course you can make the usage of this tool a LOT nicer by adding some more intelligence / overidden methods: public class SortTool { public static final Object sort(Object list) { List l = ListUtil.toList(list); Collections.sort(l); return l; } public static final Object sortKeys(Map map) { return sort( map.keySet().iterator()); } } ...and use it like this: #set $sortedKeys = $Sorter.sortKeys($myMap) Cheers ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628 <http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click> &alloc_id=16845&op=click _______________________________________________ Webmacro-user mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/webmacro-user |
From: Nikhil G. D. <ng...@ce...> - 2005-11-18 11:54:45
|
Thanks for your detailed response. I think the spirit of webmacro has been to be web-designer friendly. (That is why probably there is no while or break.) I don't think when web designers specify the new map syntax, they are expecting that the backend will sort it according to the keys or that the map is in a random order. It is telling them thet when you specify #set $l = [a, b, c], you may get the list in a random order. I think it is ok for a designer to call a function if he/she wants to sort it by key or value rather than messing up the order. -ngd Marc Palmer wrote: >-----Original Message----- >From: "Nikhil G. Daddikar" <ng...@ce...> >To: web...@li... >Date: Fri, 18 Nov 2005 10:52:24 +0530 >Subject: [WebMacro-user] The new map syntax > > > >>I like the new #set $map = { k1: v1, k2:v2 } syntax. The only problem >>is >>that it does not use the "List Ordered" Map i.e. when I want to say >>render a select list from it, it shows things not in the order in >>which >>the map was defined. Is there a way where I can specify the >>implementation class to use? I use JDK 1.5 and would like to specify >>the LinkedHashMap. >> >> > >No, I don't believe this is possible. > >I'd say it's generally better not rely on the order of definition of map >elements. > >If you need ordering you can simply create 2 lists. It's not that pretty >but... > >Alternatively, and usually this makes sense for "human" use, you would >populate lists etc based on a sort order rather than listed order - so you >can just write a trivial helper to return a sorted list of the keys: > >public class SortTool >{ > public static final Object sort(Object list) > { > List l = ListUtil.toList(list); > Collections.sort(l); > return l; > } >} > >...and use it like this: > >#set $sortedKeys = $Sorter.sort($myMap.keySet().iterator()) > >...of course you can make the usage of this tool a LOT nicer by adding >some more intelligence / overidden methods: > >public class SortTool >{ > public static final Object sort(Object list) > { > List l = ListUtil.toList(list); > Collections.sort(l); > return l; > } > > public static final Object sortKeys(Map map) > { > return sort( map.keySet().iterator()); > } >} > >...and use it like this: > >#set $sortedKeys = $Sorter.sortKeys($myMap) > > >Cheers > > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. Get Certified Today >Register for a JBoss Training Course. Free Certification Exam >for All Training Attendees Through End of 2005. For more info visit: >http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > |
From: Marc P. <ma...@an...> - 2005-11-18 11:03:08
|
-----Original Message----- From: "Nikhil G. Daddikar" <ng...@ce...> To: web...@li... Date: Fri, 18 Nov 2005 10:52:24 +0530 Subject: [WebMacro-user] The new map syntax > I like the new #set $map = { k1: v1, k2:v2 } syntax. The only problem > is > that it does not use the "List Ordered" Map i.e. when I want to say > render a select list from it, it shows things not in the order in > which > the map was defined. Is there a way where I can specify the > implementation class to use? I use JDK 1.5 and would like to specify > the LinkedHashMap. No, I don't believe this is possible. I'd say it's generally better not rely on the order of definition of map elements. If you need ordering you can simply create 2 lists. It's not that pretty but... Alternatively, and usually this makes sense for "human" use, you would populate lists etc based on a sort order rather than listed order - so you can just write a trivial helper to return a sorted list of the keys: public class SortTool { public static final Object sort(Object list) { List l = ListUtil.toList(list); Collections.sort(l); return l; } } ...and use it like this: #set $sortedKeys = $Sorter.sort($myMap.keySet().iterator()) ...of course you can make the usage of this tool a LOT nicer by adding some more intelligence / overidden methods: public class SortTool { public static final Object sort(Object list) { List l = ListUtil.toList(list); Collections.sort(l); return l; } public static final Object sortKeys(Map map) { return sort( map.keySet().iterator()); } } ...and use it like this: #set $sortedKeys = $Sorter.sortKeys($myMap) Cheers |
From: Nikhil G. D. <ng...@ce...> - 2005-11-18 05:22:36
|
I like the new #set $map = { k1: v1, k2:v2 } syntax. The only problem is that it does not use the "List Ordered" Map i.e. when I want to say render a select list from it, it shows things not in the order in which the map was defined. Is there a way where I can specify the implementation class to use? I use JDK 1.5 and would like to specify the LinkedHashMap. Any help and pointers would be appreciated. |
From: Marc P. <ma...@an...> - 2005-11-10 13:50:59
|
-----Original Message----- From: Raghavan Kandala <rag...@se...> To: Web...@li... Date: Thu, 10 Nov 2005 11:35:55 +0530 Subject: [WebMacro-user] Need help with Map in Webmacro > Hi all, > > I am using Map in my webmacro templates and I see unexpected output > on second and following > > parses of this webmacro template. Here is the relevant WebMacro code This looks exactly like the bug I reported but Eric could not reproduce. Can we get this into a test case? cheers |
From: Raghavan K. <rag...@se...> - 2005-11-10 06:03:03
|
Hi all, I am using Map in my webmacro templates and I see unexpected output on second and following parses of this webmacro template. Here is the relevant WebMacro code --------------------------------------------------------------------------------------- #include as macro "macro.wmm" ... $Layout.parse("comps/globals.wm") $Layout.setTitle("$currentDomainId-Editor tasks") ## this will set the "header" property based on our skin $Layout.parse("comps/headswitch.wm") $Layout.setLayout("layout/layout-normal.wm") $Layout.setOnLoad("document.srchForm.keyword.focus()") $Layout.addScriptFile("../p/js/nodes.js") $Layout.addScriptFile("../p/js/wmpagelets.js") $Layout.setProperty("footer","comps/myspace_tail.wm") ## The Map related code curNodeMap1 : $curNodeMap <br> #set $curNodeMap = {"a":"abc"} curNodeMap2 : $curNodeMap <br> #set $curNodeMap = {} curNodeMap3 empty : $curNodeMap <br> #set $curNodeMap = {"a":"abc"} curNodeMap4 (a: abc) : $curNodeMap <br> #set $no = $curNodeMap.put("b","bcd") curNodeMap5 (2 elements): $curNodeMap <br> <a href="Nodes?request=Post&treeType=cat&urlid=pantoto&req=101"> click me </a> ****************************** ---------------------------------------------------------------------------------------------- The <a> link calls the servlet that calls this webmacro template again. When called for the first time this is the output produced (which is what is expected). ############## OUTPUT ################### curNodeMap1 : curNodeMap2 : {a=abc} curNodeMap3 empty : {} curNodeMap4 (a: abc) : {a=abc} curNodeMap5 (2 elements): {a=abc, b=bcd} click me ****************************** ############## END OF OUTPUT ################### But when I try to call the servlet again (by clicking on the link), then I get a different output which is not expected. ############## OUTPUT ################### curNodeMap1 : curNodeMap2 : {a=abc} curNodeMap3 empty : {} curNodeMap4 (a: abc) : {a=abc, b=bcd} curNodeMap5 (2 elements): {a=abc, b=bcd} click me ****************************** ############## END OF OUTPUT ################### It appears to be bug in the current release of webmacro. Or am I doing something wrong. Hope someone has some insight. Thanks in advance, Raghavan. |
From: Lane S. <la...@op...> - 2005-11-05 21:49:32
|
Greetings, The WebMacro development team is pleased to announce the release of WebMacro 2.0. This evolutionary step in text generation and scripting for the Java community is significant for a very important reason: as you hear the tempting siren call to try other "scripting" languages that are non-compiled, intuitive, etc, you may overlook that for 4-7 years a lot of very smart people have invested hundreds of thousands of hours in bringing superb scripting to the java community. WebMacro is such an example. It is absolutely rock-solid having been in development for 6 years now. WM is the ancestor to Velocity and inspired Freemarker and other java-based scripting languages. Its parser is based on JavaCC. The call to use PHP, RonR does not leverage the intellectual investment one has in core Java, its robust APIs, and supporting protocols. You will not be disappointed to download WebMacro and run its inventory of test scripts out-of-the-box. It makes short work of complex Web apps to name just one of many. It is incredibly user-friendly as that the parser does not mandate enclosing tags: $name. with the trailing period works fine. You do not need to do ${name}. or <$name>. to get the disired effect. You can write your own directives in about 30 lines of code. WM is small. You build different kinds of things quickly. OK. I'm done! Hoping you are still with me :). I have discovered that I have a need for a robust file and directory replication daemon. Both at the radio station and at home, I want to replicate directories among local hosts and drives; secondarily, across the network. This project will not take more than 45 days to complete a solid working service. A lot of basic plumbing is already public-domain. There are some projects at SourceForge but none that look as interesting as writing a 1.5 app from the ground-up using WM 2.0 as a command-and-control system. Write me off-line. This will be fun, fast, extreme and easy to knock off. It will give you some good exposure to working at SourceForge. http://www.webmacro.org for the 2.0 release. thanks for your time, -- Lane Sharman 858-755-2868 |
From: Holger K. <ki...@di...> - 2005-11-04 07:47:57
|
Hi Paul, so I have to rebuild my own "webmacro.jar"? Please, tell me further details about your suggestion. Greetings, holger paul wrote: > or you can... i use this to send template order confirmations... > > WebMacro wm = new WM("/the/location/off/your/props"); > > cheers > paul > > > Lane Sharman wrote: > >> Hi Holger, >> >> webmacro.properties needs to be in the classpath. >> >> Lane >> >> Holger King wrote: >> >>> Hi group, >>> >>> is it possible to change the location of the webmacro-specific >>> configuration file "WebMacros.properties" from WEB-INF/classes to >>> WEB-INF/classes/appconfig. Of course, then it's stored out of the >>> classpath. But how to tell the application to find it there? I >>> always get the following error message: >>> >>> 2005-11-02 12:02:18,964 Klasse: WebMacroServlet * wm * - Unable >>> to load resource >>> org.webmacro.NotFoundException: >>> org.webmacro.resource.BrokerTemplateProviderHelper@970c0e could not >>> locate 128776 >>> at >>> org.webmacro.resource.BrokerTemplateProviderHelper.load(BrokerTemplateProviderHelper.java:148) >>> >>> at >>> org.webmacro.resource.TemplateProvider.load(TemplateProvider.java:175) >>> at >>> org.webmacro.resource.CachingProvider.load(CachingProvider.java:111) >>> at >>> org.webmacro.resource.SMapCacheManager.get(SMapCacheManager.java:244) >>> at >>> org.webmacro.resource.CachingProvider.get(CachingProvider.java:101) >>> at org.webmacro.WM.getTemplate(WM.java:261) >>> at org.webmacro.servlet.WMServlet.getTemplate(WMServlet.java:372) >>> at >>> de.dig.albatros.webmacro.WebMacroServlet.handle(WebMacroServlet.java:101) >>> >>> at org.webmacro.servlet.WMServlet.doRequest(WMServlet.java:255) >>> at org.webmacro.servlet.WMServlet.doGet(WMServlet.java:195) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >>> >>> But I'm sure, you can help me! Thanx in advance! >>> >> > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > -- Herzliche Grüße, Holger King --------------------------------------------------- DIG Digitale Medienberatungs- und Produktions- GmbH Neckarstrasse 1-5, D-78727 Oberndorf, Germany Phone: +49 7423 8750-0 Fax: +49 7423 8750-23 mailto:ki...@di... http://www.dig.de --------------------------------------------------- |
From: Tim P. <ti...@pa...> - 2005-11-03 22:16:42
|
On Wednesday 02 November 2005 18:14, Lane Sharman wrote: > Good Morning, > > After some tribulation with SF, the 2.0 release is complete. Both zip > and tgz files have been posted. > > cvs has been tagged. > > The release is complete! Yay! well done Tim -- Registered linux user #21337, http://counter.li.org. |