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: Dan M. <psi...@ya...> - 2005-09-22 15:46:55
|
The usage of the StringMacro to use the #set directive works great. I was wondering if there is anything exposed to evaluate the expression without modifying the context. This works great, but I would like to leave the context as is, not adding new temp variables to the context. Context ctx = new Context(); ctx.put("val1", 1); ctx.put("val2", 155); Macro macro = null; macro = new StringMacro("#set $val = $val1 + $val2"); macro.evaluate( ctx); Integer val = (Integer)ctx.get("val"); I am looking forward to the 2.0 release. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Lane S. <la...@op...> - 2005-09-22 15:28:13
|
Friends, I will be working on WM during the next few days to finalize the 2.0 release. One thing that all of you could do is to comb thru the wiki pages and purge really old or obsolete pages. Update existing pages or create new ones which highlight uses or applications or examples. There should be no new code committed to the head. We should expect Release 2 to hit the street in the first week of October. Thanks for your patience. -- Lane Sharman Providing Private and SPAM-Free Email http://www.opendoors.com 858-755-2868 |
From: Danni M. <psi...@ya...> - 2005-09-20 16:48:30
|
Thanks that was exactly what I was looking for, I didnt realize I could pass directives when instantiating a StringMacro, and then retrieve the value from the context. Thanks --- Keats Kirsch <ke...@xa...> wrote: > I'm not clear on what your problem is. It looks > like you have the right > idea. You can evaluate a template to a stream or a > String. If you want > to set other data types using WM, you can pull them > out of the context > after evaluating the template. > > Something like: > > Context ctx = new Context(); > ctx.put("val1", 1); > ctx.put("val2", 155); > Macro macro = null; > macro = new StringMacro("#set $val = > $val1 + $val2"); > macro.evaluate( ctx); > Integer val = (Integer)ctx.get("val"); > > Hope this helps. > > Keats > > Danni Miller wrote: > > >I would like to use the expression handling of > >WebMacro outside of typical WebMacro. I have been > able > >to use a StringMacro which evalutates out properly, > >but I would also like to evalute a full expression > >such as $val + $val1 When I evaluate such an > >expression I get String substitutions. Is there any > >way to do this with WebMacro 2.0. I am not sure > what I > >should use to have this functionality, or if those > >classes are public. I have a sample below of what I > am > >trying to accomplish. > > > >By the way I have to say I love the ideas and > >implementation of WebMacro. Thanks > > > >import org.webmacro.engine.StringMacro; > >import org.webmacro.engine.MacroAdapter; > >import org.webmacro.engine.StringMacroAdapter; > >import org.webmacro.Context; > >import org.webmacro.Macro; > > > > > >public class Test { > > > > public static void main(String[] args) { > > try { > > > > > > > > Context ctx = new Context(); > > ctx.put("name", "David"); > > ctx.put("val1", 1); > > ctx.put("val2", 155); > > > > Macro macro = null; > > > > macro = new StringMacro("$name"); > > System.out.println( macro.evaluate( > ctx)); > > > > macro = new > >StringMacro("$name.substring(0,2).length()"); > > System.out.println( macro.evaluate( > ctx)); > > > > macro = new > >StringMacro("$name.substring(0,2).length()+5"); > > System.out.println( macro.evaluate( > ctx)); > > > > macro = new StringMacro("$val1 + > $val2"); > > System.out.println( macro.evaluate( > ctx)); > > > > macro = new StringMacroAdapter("$val1 + > >156"); > > System.out.println( macro.evaluate( > ctx)); > > > > macro = MacroAdapter.createMacro("$val1 > + > >$val2"); > > System.out.println( macro.evaluate( > ctx)); > > > > > > > > > > > > } catch(Throwable t){ > > t.printStackTrace(); > > } > > > > > > } > >} > > > > > > > > > > > ------------------------------------------------------- > 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 > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
From: Keats K. <ke...@xa...> - 2005-09-20 16:39:05
|
I'm not clear on what your problem is. It looks like you have the right idea. You can evaluate a template to a stream or a String. If you want to set other data types using WM, you can pull them out of the context after evaluating the template. Something like: Context ctx = new Context(); ctx.put("val1", 1); ctx.put("val2", 155); Macro macro = null; macro = new StringMacro("#set $val = $val1 + $val2"); macro.evaluate( ctx); Integer val = (Integer)ctx.get("val"); Hope this helps. Keats Danni Miller wrote: >I would like to use the expression handling of >WebMacro outside of typical WebMacro. I have been able >to use a StringMacro which evalutates out properly, >but I would also like to evalute a full expression >such as $val + $val1 When I evaluate such an >expression I get String substitutions. Is there any >way to do this with WebMacro 2.0. I am not sure what I >should use to have this functionality, or if those >classes are public. I have a sample below of what I am >trying to accomplish. > >By the way I have to say I love the ideas and >implementation of WebMacro. Thanks > >import org.webmacro.engine.StringMacro; >import org.webmacro.engine.MacroAdapter; >import org.webmacro.engine.StringMacroAdapter; >import org.webmacro.Context; >import org.webmacro.Macro; > > >public class Test { > > public static void main(String[] args) { > try { > > > > Context ctx = new Context(); > ctx.put("name", "David"); > ctx.put("val1", 1); > ctx.put("val2", 155); > > Macro macro = null; > > macro = new StringMacro("$name"); > System.out.println( macro.evaluate( ctx)); > > macro = new >StringMacro("$name.substring(0,2).length()"); > System.out.println( macro.evaluate( ctx)); > > macro = new >StringMacro("$name.substring(0,2).length()+5"); > System.out.println( macro.evaluate( ctx)); > > macro = new StringMacro("$val1 + $val2"); > System.out.println( macro.evaluate( ctx)); > > macro = new StringMacroAdapter("$val1 + >156"); > System.out.println( macro.evaluate( ctx)); > > macro = MacroAdapter.createMacro("$val1 + >$val2"); > System.out.println( macro.evaluate( ctx)); > > > > > > } catch(Throwable t){ > t.printStackTrace(); > } > > > } >} > > > |
From: Danni M. <psi...@ya...> - 2005-09-20 15:56:13
|
I would like to use the expression handling of WebMacro outside of typical WebMacro. I have been able to use a StringMacro which evalutates out properly, but I would also like to evalute a full expression such as $val + $val1 When I evaluate such an expression I get String substitutions. Is there any way to do this with WebMacro 2.0. I am not sure what I should use to have this functionality, or if those classes are public. I have a sample below of what I am trying to accomplish. By the way I have to say I love the ideas and implementation of WebMacro. Thanks import org.webmacro.engine.StringMacro; import org.webmacro.engine.MacroAdapter; import org.webmacro.engine.StringMacroAdapter; import org.webmacro.Context; import org.webmacro.Macro; public class Test { public static void main(String[] args) { try { Context ctx = new Context(); ctx.put("name", "David"); ctx.put("val1", 1); ctx.put("val2", 155); Macro macro = null; macro = new StringMacro("$name"); System.out.println( macro.evaluate( ctx)); macro = new StringMacro("$name.substring(0,2).length()"); System.out.println( macro.evaluate( ctx)); macro = new StringMacro("$name.substring(0,2).length()+5"); System.out.println( macro.evaluate( ctx)); macro = new StringMacro("$val1 + $val2"); System.out.println( macro.evaluate( ctx)); macro = new StringMacroAdapter("$val1 + 156"); System.out.println( macro.evaluate( ctx)); macro = MacroAdapter.createMacro("$val1 + $val2"); System.out.println( macro.evaluate( ctx)); } catch(Throwable t){ t.printStackTrace(); } } } __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Lane S. <la...@op...> - 2005-09-12 04:25:45
|
keats, weird. now it is working. I have a lot of other new code in my template. Maybe i was looking at the wrong line but I think not. Really weird. -lane Keats Kirsch wrote: > Lane, > > Can you give more details on this? I just cut and pasted from your > message into a template and it worked fine for me. What kind of error > are you seeing? What is your environment? > Remember that the session scope will only work if you are using a > WebContext (i.e., WM was instantiated with a Servlet argument). If > you are running in a non-Servlet environment, try changing the scope > to application or global. > > Keats > > Lane Sharman wrote: > >> Friends: >> >> I am completing a test suite against release 2 features. I am using >> documented features from the web site. For example, I started with >> Keats #bean directive and documentation example: >> >> #bean $counts = "java.util.HashMap" scope=session onNew >> #set $counts.Hits = 0 >> #end >> #set $counts.Hits = $counts.Hits + 1 >> >> >> This does not execute. Why? Because the WM evaluator does not cast >> the expression >> >> $counts.Hits + 1 >> >> >> into an Object (Integer). The expression >> >> ($counts.Hits + 1) >> >> >> is cast. So, my approach is three-fold: >> >> 1) publish issues as I discover them for discussion (as above) >> 2) get the documentation to line up with the reality of the version >> 3) provide a synthetic test with performance data for release 2 >> features. >> >> I have digested Endre's diatribe on naming the release and i have >> decided that he is right and it does need to be named WebMacro 2.0. >> So, this will be the release ID. >> >> yours, >> >> > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > 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: Lane S. <la...@op...> - 2005-09-12 03:43:14
|
Friends: I am completing a test suite against release 2 features. I am using documented features from the web site. For example, I started with Keats #bean directive and documentation example: #bean $counts = "java.util.HashMap" scope=session onNew #set $counts.Hits = 0 #end #set $counts.Hits = $counts.Hits + 1 This does not execute. Why? Because the WM evaluator does not cast the expression $counts.Hits + 1 into an Object (Integer). The expression ($counts.Hits + 1) is cast. So, my approach is three-fold: 1) publish issues as I discover them for discussion (as above) 2) get the documentation to line up with the reality of the version 3) provide a synthetic test with performance data for release 2 features. I have digested Endre's diatribe on naming the release and i have decided that he is right and it does need to be named WebMacro 2.0. So, this will be the release ID. Also, I think WebMacro could be one of the best foundations for an Ajax library. If there is anyone on this list who is doing work with Ajax, then let's get your work into a module or into the contrib section. yours, -- Lane Sharman 858-755-2868 |
From: Keats K. <ke...@xa...> - 2005-09-11 03:05:21
|
Lane, Can you give more details on this? I just cut and pasted from your message into a template and it worked fine for me. What kind of error are you seeing? What is your environment? Remember that the session scope will only work if you are using a WebContext (i.e., WM was instantiated with a Servlet argument). If you are running in a non-Servlet environment, try changing the scope to application or global. Keats Lane Sharman wrote: > Friends: > > I am completing a test suite against release 2 features. I am using > documented features from the web site. For example, I started with > Keats #bean directive and documentation example: > > #bean $counts = "java.util.HashMap" scope=session onNew > #set $counts.Hits = 0 > #end > #set $counts.Hits = $counts.Hits + 1 > > > This does not execute. Why? Because the WM evaluator does not cast the > expression > > $counts.Hits + 1 > > > into an Object (Integer). The expression > > ($counts.Hits + 1) > > > is cast. So, my approach is three-fold: > > 1) publish issues as I discover them for discussion (as above) > 2) get the documentation to line up with the reality of the version > 3) provide a synthetic test with performance data for release 2 features. > > I have digested Endre's diatribe on naming the release and i have > decided that he is right and it does need to be named WebMacro 2.0. > So, this will be the release ID. > > yours, > > |
From: Lane S. <la...@op...> - 2005-09-11 02:02:59
|
Friends: I am completing a test suite against release 2 features. I am using documented features from the web site. For example, I started with Keats #bean directive and documentation example: #bean $counts = "java.util.HashMap" scope=session onNew #set $counts.Hits = 0 #end #set $counts.Hits = $counts.Hits + 1 This does not execute. Why? Because the WM evaluator does not cast the expression $counts.Hits + 1 into an Object (Integer). The expression ($counts.Hits + 1) is cast. So, my approach is three-fold: 1) publish issues as I discover them for discussion (as above) 2) get the documentation to line up with the reality of the version 3) provide a synthetic test with performance data for release 2 features. I have digested Endre's diatribe on naming the release and i have decided that he is right and it does need to be named WebMacro 2.0. So, this will be the release ID. yours, -- Lane Sharman 858-755-2868 |
From: Nikhil G. D. <ng...@ce...> - 2005-08-30 11:43:34
|
Webmacro doesn't recognize functions that take varargs as arguments. I think it must not be difficult to add this support considering the fact that it is treated like an array. However, I have no experience with this. Just the fact that it is becoming a problem because a lot of functions use varargs. |
From: <Web...@St...> - 2005-08-16 10:23:13
|
On Mon, 8 Aug 2005, Lane Sharman wrote: | There have been so many incremental changes since 2.0 that i think we need to | distinguish the final release. I find this -really- disturbing. What are the stuff that have been "incrementally added" since the 2.0 "rc1"?? There _has never been a 2.0 release_, and now the new release will be named 2.1??? This is really really silly - how will this be explained on a timeline and "history of WebMacro" pages, and what is the consistent explaination to the users? What-ever- the additions since the rc1, the new MAJOR versjon 2.0 should NOT be skipped. Going from one minor version, to a new minor version that have a higher -major- version is just NOT GOOD. Can someone with their repos set up properly (I can't seem to update my anon copy anymore?!) do a diff between the rc1 and HEAD, please? Then we'll see whether this talk about "major changes" holds water. Regards, Endre. |
From: Keats K. <ke...@xa...> - 2005-08-10 17:08:43
|
Marc, I found that the new "string as templet" feature of #eval gives a nice workaround for this. Try: #setblock $render Value is: \$value #end #templet $outerTemplet #set $value = "Hello!" #eval $renderString using { "value" : $value } #end #eval $outerTemplet using { "renderString" : $render } --Keats Keats Kirsch wrote: > [Resending ... didn't seem to go through yesterday.] > > Hey Marc. I'm on vacation (with a very poor dial-up connection from the > Delaware shore), but I did manage to look at this a bit. > > It's not actually a bug, although it's certainly a head-scratcher. The > issue is that the arguments to #eval are evaluated before the macro > (templet) whose context they are being added too. Since your argument > to $outerTemplet "renderTemplet" is a templet, and a templet is a Macro, > WM attempts to evaluate it -- in the current context -- before passing > it to the $outerTemplet. Since there is no variable $value defined in > the current context, you get an error. > > The messed up error message is another issue. It's a bit better if you > use the CrankyEEH, but still a bit screwy. I'll put this on my list to > look at one of these days. > > I'm not sure what the best solution is. My first thought is to use > #setblock to define your templet argument as a plain string, and then > convert it to a templet within the outerTemplet or something. I may > play around with this and see if it works. > > Good luck. > > Keats > > Marc Palmer wrote: > >> Hi, >> >> I've hit upon what I believe is an obscure bug in #eval/#templet in >> 2.0 RC1. >> >> I'm finding it with my JSP taglib but I don't believe it is specific to >> the taglib, it smells more like a problem with #templet/eval. Of >> course a >> unit test will prove this so that will naturally be my next course of >> action. However I can't commit to WM from my workplace. >> >> ...evaluating this template: >> >> <html> >> <body> >> >> #templet $render >> >> Value is: $value >> >> #end >> >> #templet $outerTemplet >> #set $value = "Hello!" >> #eval $rendertemplet using { >> "value" : $value >> } >> >> #end >> >> #eval $outerTemplet using { >> "rendertemplet" : $render >> } >> >> </body> >> </html> >> >> >> ...the intention/expectation is that this will simply output: >> >> >> <html> >> <body> >> >> Value is: Hello! >> >> </body> >> </html> >> >> >> ...but, rather weirdly, you get this: >> >> >> <html> >> <body> >> >> Value is: <!-- Attempted to write an undefined variable: Hello! at >> render:4.11 --> >> >> </body> >> </html> >> >> Notice that it says undefined variable "Hello!" - but that is the >> value of >> the variable! It's like it's trying to recursively evaluate it. >> >> Keats - any thoughts? >> >> I will try to dig into the source and write a unit test for this, but I >> wanted to flag it in case I'm being stupid. >> >> Also, there seems to be an error handling bug. If your innermost templet >> references a non-existent variable, you get something like: >> >> Value is: <!-- Attempted to write an undefined variable: <!-- >> Attempted to >> write an undefined variable: $iknowthisdoesntexistvalue at unknown:2.58 >> --> at render:4.11 --> >> >> >> ...notice that this has two error messages and unbalanced "-->" so >> you get >> some nasty output in the page and interestingly two sources - unknown >> and >> render. Also note that it gets the error variable name right in this >> case, >> but in the first problem I talked about it uses the -value- of the >> variable as the "unknown" variable name. >> >> Very confusing! >> >> Cheers >> >> > |
From: Eric B. R. <eb...@tc...> - 2005-08-10 03:46:03
|
On Aug 4, 2005, at 6:28 AM, Marc Palmer wrote: > > YES PLEASE! /agree. I've spent some time coming up with a hybrid HTML/WebMacro colorization scheme, but nothing nearly as complete as a plugin. Post a link! eric > > IntelliJ IDEA rocks (we should be applying for the free open source > licenses for the core WM developers..... <g>). I have in the past > setup > basic syntax highlighting which is better than nothing, but we > should do > as much as possible to make WM easier to use. > > We need to seriously consider how to present "WebMacro Extras" to the > world - i.e. not core download components but a clear, well-maintained > list of extra tools... just like those Velocity people ;-( > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & > QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > |
From: Lane S. <la...@op...> - 2005-08-10 02:29:40
|
Keats, What do you think of this? I looked at the logic and I think Marc is right. I use #templet and #eval a lot and it seems that the contexts are not getting pushed correctly? Is there a bug in the stack? -Lane Marc Palmer wrote: >Hi, > >I've hit upon what I believe is an obscure bug in #eval/#templet in 2.0 RC1. > >I'm finding it with my JSP taglib but I don't believe it is specific to >the taglib, it smells more like a problem with #templet/eval. Of course a >unit test will prove this so that will naturally be my next course of >action. However I can't commit to WM from my workplace. > >...evaluating this template: > ><html> ><body> > >#templet $render > >Value is: $value > >#end > >#templet $outerTemplet > > #set $value = "Hello!" > #eval $rendertemplet using { > "value" : $value > } > >#end > >#eval $outerTemplet using { > "rendertemplet" : $render >} > ></body> ></html> > > >...the intention/expectation is that this will simply output: > > ><html> ><body> > >Value is: Hello! > ></body> ></html> > > >...but, rather weirdly, you get this: > > ><html> ><body> > >Value is: <!-- Attempted to write an undefined variable: Hello! at >render:4.11 --> > ></body> ></html> > >Notice that it says undefined variable "Hello!" - but that is the value of >the variable! It's like it's trying to recursively evaluate it. > >Keats - any thoughts? > >I will try to dig into the source and write a unit test for this, but I >wanted to flag it in case I'm being stupid. > >Also, there seems to be an error handling bug. If your innermost templet >references a non-existent variable, you get something like: > >Value is: <!-- Attempted to write an undefined variable: <!-- Attempted to >write an undefined variable: $iknowthisdoesntexistvalue at unknown:2.58 >--> at render:4.11 --> > > >...notice that this has two error messages and unbalanced "-->" so you get >some nasty output in the page and interestingly two sources - unknown and >render. Also note that it gets the error variable name right in this case, >but in the first problem I talked about it uses the -value- of the >variable as the "unknown" variable name. > >Very confusing! > >Cheers > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >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: Lane S. <la...@op...> - 2005-08-10 02:29:37
|
Hi Paul, Great. Please work with Dominik on this! Lane paul wrote: > i would like to help with this... i use eclipse everyday and have to > suffer through it using the veloeclipse plugin... i have a cvs server > we can start the project up in... i haven't built a plug-in yet and > would be interested on how people do it... > > cheers > paul > > > Lane Sharman wrote: > >> great! I would go for it. It would be great news for the upcoming >> release. Just do it!!! >> >> -Lane >> >> Dominik wrote: >> >>> Hy, >>> yes I would, but the source is not available, so it might be difficult. >>> Perhaps ill contact the author, because it’s a sourceforge-project >>> ans so >>> has to be opensource. >>> == >>> Greetings >>> Dominik mailto:do...@db... >>> >>> -----Ursprüngliche Nachricht----- >>> Von: web...@li... >>> [mailto:web...@li...] Im Auftrag von Lane >>> Sharman >>> Gesendet: Donnerstag, 28. Juli 2005 18:04 >>> An: web...@li... >>> Betreff: Re: [WebMacro-user] Eclipse Plugin >>> >>> Hi Dominik: >>> >>> Would you consider modifying the velocity plug-in for WM? >>> >>> -lane >>> >>> Dominik wrote: >>> >>> >>> >>>> Hy, >>>> is there a Eclipse Plugin for editing wm files? Im using a pulgin wich >>>> parses velocity code, I get a code highlighting at least but as the >>>> code of >>>> wm and velocity isn't compatible it produces some errors. >>>> == >>>> Greetings >>>> Dominik mailto:do...@db... >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >>>> >>>> from IBM. Find simple to follow Roadmaps, straightforward articles, >>> >>> >>> >>>> informative Webcasts and more! Get everything you need to get up to >>>> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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 >> > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > 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: Lane S. <la...@op...> - 2005-08-10 02:17:23
|
Marc Palmer wrote: >It's a nice idea, but I have precious little time at the moment. I think a >concrete WAR file that you can point at a directory of templates and have >it serve the pages is a -must- have for WM though. > > for the documentation improvements: the examples/ folder now contains a build.xml that contains a deployment task to a web container for the examples + a web.xml. no war file. I could of course create this too. > > > >>Also, I see a limitation with XML property specification ala Spring. >>First, I do not like XML as a bean property spec. I would much rather >>use #bean to instantiate and set props . Second, it does not allow for >>the beans properties to persist in state and then evolve. Fine for the >>default settings of a bean. >> >> > >I think you've got the wrong end of the stick here. > >The Spring bean config stuff is geared at application component >initialization (i.e. business logic objects, EJBs - yuck!, etc) > >Its XML grammar is trivial, and you are not restricted to their XML - you >can write any bean factory implementation that uses any file format you like. > > that's cool. I like this. >i.e. you could write a WebMacroBeanFactory for spring that parses WM >templates to initialize the bean context. > >However Spring's XML config is very good because it can be validated using >any standard XML validation tool (and as part of the build process) and >99% of the world knows a lot more about XML than WebMacro. > > sad :(. but because the world uses a lot of crap like ASP and JSP does not mean that I am going too. >Whatever, WebMacro configuration needs to be "bean scriptable". I am not >suggesting any replacement of the existing properties config scheme for WM >- but it -must- be possible for users to configurable WebMacro at runtime, >and from any POJO configuration tool such as Spring, Pico etc. > > Agreed! >Right now the WM config/context system is not really "POJO". > > I do not think it is far from that, really. -Lane >Cheers > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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: Lane S. <la...@op...> - 2005-08-10 02:00:22
|
Hi Dominik: do you think you could push your personal knowledge to learn how to develop the plug-in for eclipse. It will look great on your resume ;). Lane Dominik wrote: >Hy, >I finaly got the source-code, but I got the same lac of knowledge than you: >I never wrote any eclipse plugins. My java-skills are quite good, but not my >eclipse. >I'll pack the sourcecode of the velocity plugin together and upload it to a >webserver (or is it possible to upload a file at webmacro.net ?). > >Greetings >Dominik > > > >-----Original Message----- >From: web...@li... >[mailto:web...@li...] On Behalf Of paul >Sent: Thursday, August 04, 2005 2:05 AM >To: web...@li... >Subject: Re: AW: [WebMacro-user] Eclipse Plugin > >i would like to help with this... i use eclipse everyday and have to >suffer through it using the veloeclipse plugin... i have a cvs server we >can start the project up in... i haven't built a plug-in yet and would >be interested on how people do it... > >cheers >paul > > >Lane Sharman wrote: > > >>great! I would go for it. It would be great news for the upcoming >>release. Just do it!!! >> >>-Lane >> >>Dominik wrote: >> >> >> >>>Hy, >>>yes I would, but the source is not available, so it might be difficult. >>>Perhaps ill contact the author, because it's a sourceforge-project ans so >>>has to be opensource. >>>== >>>Greetings >>>Dominik >>>mailto:do...@db... >>> >>>-----Ursprüngliche Nachricht----- >>>Von: web...@li... >>>[mailto:web...@li...] Im Auftrag von Lane >>>Sharman >>>Gesendet: Donnerstag, 28. Juli 2005 18:04 >>>An: web...@li... >>>Betreff: Re: [WebMacro-user] Eclipse Plugin >>> >>>Hi Dominik: >>> >>>Would you consider modifying the velocity plug-in for WM? >>> >>>-lane >>> >>>Dominik wrote: >>> >>> >>> >>> >>> >>>>Hy, >>>>is there a Eclipse Plugin for editing wm files? Im using a pulgin wich >>>>parses velocity code, I get a code highlighting at least but as the code >>>> >>>> >of > > >>>>wm and velocity isn't compatible it produces some errors. >>>>== >>>>Greetings >>>>Dominik >>>>mailto:do...@db... >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >>>> >>>> >>>> >>>> >>>>from IBM. Find simple to follow Roadmaps, straightforward articles, >>> >>> >>> >>> >>>>informative Webcasts and more! Get everything you need to get up to >>>>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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 >> >> >> > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >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: Eric B. R. <eb...@tc...> - 2005-08-10 01:50:04
|
Sorry guys. Was on vacation last week. Seems we've got a combination of a failing power supply and a battery backup that doesn't. I'll try to get the situation resolved this weekend when I have some time. However, she's back online now. Paul, I appreciate the offer for a mirror, but I don't think it's necessary. I just need to give the current box a little love and attention. eric On Aug 3, 2005, at 9:45 AM, Marc Palmer wrote: > Hmmm thought I sent this already but hasn't shown on list. > > webmacro.org appears down again - Eric? > > I have not been able to reach it since yesterday. > > :( > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > |
From: Lane S. <la...@op...> - 2005-08-10 01:48:35
|
Hi Marc, First, I like Spring for all of its architecture neutral advances. I am going to start using it regularly. I just do not like XML as a configuration language but since I use ant all the time, I can live with it. I know, for example, I could write a basic container using the #bean and #properties directives as IOC enablers in a few hours as a proof of concept. I do not want WM to be Spring-dependent. So, let's be sure about that. Spring-friendly, absolultely. And, I will work with you on this. I do not see the big character-flaw in the Broker or in the way WebMacro pulls its basic properties. Invoking an instance of WebMacro from a Spring Container should be very straight-forward as is and, if needs be, there could be Decorator to assist in the initialization of WebMacro. But, I will always keep an open mind. Lane Marc Palmer wrote: >>Whatever, WebMacro configuration needs to be "bean scriptable". I am >>not >>suggesting any replacement of the existing properties config scheme for >>WM >>- but it -must- be possible for users to configurable WebMacro at >>runtime, >>and from any POJO configuration tool such as Spring, Pico etc. >> >> > >Let me qualify this a bit more - in my "dream" of WM 3 we'd have POJOs >that let us configure a WebMacro instance - both initially at startup >using somethign like Spring, but also at runtime for non-persistent >changes to the config such as temporarily adding a new directive. A Spring >bean config XML might look like this: > > ><beans> > <bean id="myBusinessLogic" class="com.somecorp.LogicClass"> > <property name="datastore" ref="myJDBCstorage"/> > </bean> > > <bean id="myJDBCstorage" class="com.somecorp.JDBCStorageClass"> > <property name="datasource" value="java:comp/env/jdbc/TestDB"/> > </bean> > > <bean id="someDirective" class="com.somecorp.SomeDirectiveClass"> > <property name="datastore" ref="myJDBCstorage"/> > </bean> > > <bean id="webmacro1" class="org.webmacro.WebMacroConfiguration"> > <property name="baseConfiguration" value="file:wm.properties"/> > <property name="contextTools"> > <map> > <entry key="logic" value-ref="myBusinessLogic"> > </map> > </property> > <property name="directives"> > <map> > <entry key="specialdirective" value-ref="someDirective"> > </map> > </property> > </bean> > > <bean id="webmacro2" class="org.webmacro.WebMacroConfiguration"> > <property name="baseConfiguration" value="file:wm2.properties"/> > <property name="contextTools"> > <map> > <entry key="logic" value-ref="myBusinessLogic"> > </map> > </property> > </bean> > > <bean id="uiController1" class="com.somecorp.MyUIController"> > <property name="webmacro" ref="webmacro1"/> > </bean> > > <bean id="uiController2" class="com.somecorp.MyOtherUIController"> > <property name="webmacro" ref="webmacro2"/> > </bean> ></beans> > >Now for anyone not familiar with Spring, the above will create a bunch of >Java objects (using the "class=" attribute value) calling their default >constructors and then will automatically set the properties on those >objects including resolving references to other beans within the context, >independent of order in the XML file. > >Anyway, the above shows how simple it would then be to configure WebMacro >for a single application that has: > >* Multiple WM instances, initialized from different config >* WM instances initialized with context tools that are configured with >references to other configuration-domain objects -without- the use of ugly >singletons in your application, or arguably worse JNDI (yes I used a JNDI >datasource just to save space...). Remember, those beans referenced by the >WM config could be anything, and exist anywhere. Your WM setup / >application no longer needs to know. >* Wiring of WM instances to other components such as your controllers/actions. > >This is -great-! > >It would also be possible to allow configuration of Context "templates" so >that whenever WM needs a new context it takes it from a bean factory >configured in the Spring XML - thus externalizing this config from WM and >most importantly integrating it with Spring applications. > >Like the XML or not Lane, -lots- of people out there are using Spring and >havnig WM non-configurable from it is very ugly indeed, forcing you or >end-users to understand and use multiple configuration schemes/tools. > >It makes WM much less attractive. I haven't checked but I'm pretty sure >that Velocity config is Spring friendly. > >$0.02 :) > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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: Lane S. <la...@op...> - 2005-08-10 01:47:15
|
There have been so many incremental changes since 2.0 that i think we need to distinguish the upcoming release. -Lane Endre Stølsvik wrote: >On Fri, 29 Jul 2005, Lane Sharman wrote: > >| WM Faithful, >| >| I am undertaking Release 2 work. > >Nice! > >| I would like the release to be 2.1. > >Why? Where did 2.0 go?? > >Endre. > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >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: Keats K. <ke...@xa...> - 2005-08-10 01:22:54
|
Hey Marc. I on vacation (with a very poor dial-up connection from the Delaware shore), but I did manage to look at this a bit. It's not actually a bug, although it certainly a head-scratcher. The issue is that the arguments to #eval are evaluated before the macro (templet) whose context they are being added too. Since your argument to $outerTemplet "renderTemplet" is a templet, and a templet is a Macro, WM attempts to evaluate it -- in the current context -- before passing it to the $outerTemplet. Since there is no variable $value defined in the current context, you get an error. The messed up error message is another issue. It's a bit better if you use the CrankyEEH, but still a bit screwy. I'll put this on my list to look at one of these days. I'm not sure what the best solution is. My first thought is to use #setblock to define your templet argument as a plain string, and then convert it to a templet within the outerTemplet or something. I may play around with this and see if it works. Good luck. Keats Marc Palmer wrote: >Hi, > >I've hit upon what I believe is an obscure bug in #eval/#templet in 2.0 RC1. > >I'm finding it with my JSP taglib but I don't believe it is specific to >the taglib, it smells more like a problem with #templet/eval. Of course a >unit test will prove this so that will naturally be my next course of >action. However I can't commit to WM from my workplace. > >...evaluating this template: > ><html> ><body> > >#templet $render > >Value is: $value > >#end > >#templet $outerTemplet > > #set $value = "Hello!" > #eval $rendertemplet using { > "value" : $value > } > >#end > >#eval $outerTemplet using { > "rendertemplet" : $render >} > ></body> ></html> > > >...the intention/expectation is that this will simply output: > > ><html> ><body> > >Value is: Hello! > ></body> ></html> > > >...but, rather weirdly, you get this: > > ><html> ><body> > >Value is: <!-- Attempted to write an undefined variable: Hello! at >render:4.11 --> > ></body> ></html> > >Notice that it says undefined variable "Hello!" - but that is the value of >the variable! It's like it's trying to recursively evaluate it. > >Keats - any thoughts? > >I will try to dig into the source and write a unit test for this, but I >wanted to flag it in case I'm being stupid. > >Also, there seems to be an error handling bug. If your innermost templet >references a non-existent variable, you get something like: > >Value is: <!-- Attempted to write an undefined variable: <!-- Attempted to >write an undefined variable: $iknowthisdoesntexistvalue at unknown:2.58 >--> at render:4.11 --> > > >...notice that this has two error messages and unbalanced "-->" so you get >some nasty output in the page and interestingly two sources - unknown and >render. Also note that it gets the error variable name right in this case, >but in the first problem I talked about it uses the -value- of the >variable as the "unknown" variable name. > >Very confusing! > >Cheers > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > |
From: Lane S. <la...@op...> - 2005-08-10 01:14:35
|
There have been so many incremental changes since 2.0 that i think we need to distinguish the final release. -Lane Endre Stølsvik wrote: >On Fri, 29 Jul 2005, Lane Sharman wrote: > >| WM Faithful, >| >| I am undertaking Release 2 work. > >Nice! > >| I would like the release to be 2.1. > >Why? Where did 2.0 go?? > >Endre. > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >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: Lane S. <la...@op...> - 2005-08-10 00:10:01
|
Hi Marc, Why don't you put together a small doc work plan and we can get some of the community members to knock them off. Lane Marc Palmer wrote: >Guys, > >I just looked at the "tutorial" that comes with the WM distros. I've never >noticed this before - and it's quite nice. > >However: > >1. it is woefully out of date, especially in terms of the available >directives, map syntax etc > >2. in my opinion in starts off too far from WM script - start with "Hello >world" and then tell them why :) > >3. It has no styling > >4. It has no TOC. > >I don't have time now, but for when I do - does anybody have any reason >why I shouldn't do some work on those docs to improve them? > >Ditto the Wiki - it's in a bit of a mess and using WM as an "end user" on >site I am noticing lots of holes in the docs / structure of them. > >Cheers > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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: Keats K. <ke...@xa...> - 2005-08-09 23:01:34
|
[Resending ... didn't seem to go through yesterday.] Hey Marc. I'm on vacation (with a very poor dial-up connection from the Delaware shore), but I did manage to look at this a bit. It's not actually a bug, although it's certainly a head-scratcher. The issue is that the arguments to #eval are evaluated before the macro (templet) whose context they are being added too. Since your argument to $outerTemplet "renderTemplet" is a templet, and a templet is a Macro, WM attempts to evaluate it -- in the current context -- before passing it to the $outerTemplet. Since there is no variable $value defined in the current context, you get an error. The messed up error message is another issue. It's a bit better if you use the CrankyEEH, but still a bit screwy. I'll put this on my list to look at one of these days. I'm not sure what the best solution is. My first thought is to use #setblock to define your templet argument as a plain string, and then convert it to a templet within the outerTemplet or something. I may play around with this and see if it works. Good luck. Keats Marc Palmer wrote: >Hi, > >I've hit upon what I believe is an obscure bug in #eval/#templet in 2.0 RC1. > >I'm finding it with my JSP taglib but I don't believe it is specific to >the taglib, it smells more like a problem with #templet/eval. Of course a >unit test will prove this so that will naturally be my next course of >action. However I can't commit to WM from my workplace. > >...evaluating this template: > ><html> ><body> > >#templet $render > >Value is: $value > >#end > >#templet $outerTemplet > > #set $value = "Hello!" > #eval $rendertemplet using { > "value" : $value > } > >#end > >#eval $outerTemplet using { > "rendertemplet" : $render >} > ></body> ></html> > > >...the intention/expectation is that this will simply output: > > ><html> ><body> > >Value is: Hello! > ></body> ></html> > > >...but, rather weirdly, you get this: > > ><html> ><body> > >Value is: <!-- Attempted to write an undefined variable: Hello! at >render:4.11 --> > ></body> ></html> > >Notice that it says undefined variable "Hello!" - but that is the value of >the variable! It's like it's trying to recursively evaluate it. > >Keats - any thoughts? > >I will try to dig into the source and write a unit test for this, but I >wanted to flag it in case I'm being stupid. > >Also, there seems to be an error handling bug. If your innermost templet >references a non-existent variable, you get something like: > >Value is: <!-- Attempted to write an undefined variable: <!-- Attempted to >write an undefined variable: $iknowthisdoesntexistvalue at unknown:2.58 >--> at render:4.11 --> > > >...notice that this has two error messages and unbalanced "-->" so you get >some nasty output in the page and interestingly two sources - unknown and >render. Also note that it gets the error variable name right in this case, >but in the first problem I talked about it uses the -value- of the >variable as the "unknown" variable name. > >Very confusing! > >Cheers > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > |
From: paul <web...@pa...> - 2005-08-09 22:13:53
|
any updates on this? I can't get to the API. Any chance of me serving as a mirror? cheers paul Marc Palmer wrote: > Hmmm thought I sent this already but hasn't shown on list. > > webmacro.org appears down again - Eric? > > I have not been able to reach it since yesterday. > > :( > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user |