2010-02-27:
[8:43] <_hannes_> alloa. hannes, may I ask you a quick question regarding macro failmode?[8:45] <_daniel__> just because I want to ask a question does not mean that I have to name myself like the one I am going to ask a question... sorry... unterbewusstsein ;-)[8:46] <_daniel__> now that I am back with my own nickname...: what is the difference in FAIL_DEFAULT and FAIL_VERBOSE?[8:47] <_daniel__> FAIL_DEFAULT is the default failmode of macros, it is however only used in one location leaving te feeling of having the exact same behaviour as FAIL_VERBOSE.[8:48] <_daniel__> it is used in Skin.verboseFailMode() and will yield true if there is no macro handler or the handler is a typed object.[8:48] <_daniel__> does this mean the only difference is that FAIL_DEFAULT won't be verbose for handlers like req, res, session, param?[8:52] <_daniel__> I am about to implement a failmode="default" which should return the default="" value of macros, not just in case the macro returns null, but also in other fail like unresolvable handler.[8:52] <_daniel__> in the end it should allow me to do something like:[8:53] <_daniel__> <% this.author.name failmode="default" default=<% this.parent.author.name %> %>[9:00] <_daniel__> hm. I just found a JS only way doing what I want.[9:00] <_daniel__> http://helma.pastebin.com/V4e35MaZ[9:02] <_daniel__> slightly modifying my getMacroHandler() to return a special "resolve till the bitter end and return null then to trigger returning the default value" instead of returning null right away to indicate "path unresolvable" seems to do the rick as well.[9:10] <_daniel__> still want to compare though which approach is performing better, the JS trick or having something directly in Skin.java doing that.[9:12] <_daniel__> so a yes no answer on the original question would still be appreciated (does this mean the only difference is that FAIL_DEFAULT won't be verbose for handlers like req, res, session, param?) :-)[17:46] <_daniel_> is the intended behaviour of <% .extends "skinName" %> documented somewhere?
In the channel now:
Logs by date: