Re: handy things

From: Gavin Eadie (gavi..mich.edu)
Date: Sun Mar 04 2007 - 01:11:19 EST

  • Next message: Mike Schrag: "Re: handy things"

    At 7:29 AM -0500 3/3/07, Mike Schrag wrote:
    >Kieran also mentioned a shortcut for the <webobject> tag ... If
    >you're using wonder, you can also turn on the inline binding parser
    >in Wonder with:
    >
    >ognl.helperFunctions=true
    >ognl.inlineBindings=true
    >
    >(well that turns on inline bindings AND helpers, but both are cool)
    >which gives you <wo name = "Whatever"></wo> which saves hundreds of
    >virtual trees as well as things like <wo:if condition =
    >"$whatever">...</wo>.

    ... I think you MUST turn both on for inline bindings, and
    "ognl.active" too, (in WOOgnl.java):

         if (("ognl.active")) {
           if (("ognl.helperFunctions")) {
             WOParser.setWOHTMLTemplateParserClassName("...");
             if (("ognl.inlineBindings")) {
               ....setAllowInlineBindings(true);
             }
           }
           else {
             WOParser.setWOHTMLTemplateParserClassName("...");
           }
         }



    This archive was generated by hypermail 2.0.0 : Sun Mar 04 2007 - 01:11:32 EST