Re: WOOgnl ... cool

From: Mike Schrag (mschra..dimension.com)
Date: Thu May 10 2007 - 08:06:59 EDT

  • Next message: Mike Schrag: "Re: Can not Launch"

    >>> In the latest release the wo tags kept popping up instead of my
    >>> old webobject html template ugly tags, so I was inspired to try
    >>> out wo tags and ognl as per Mike's WoTips. Very cool.... kicking
    >>> myself again for the umpteenth time for not doing this sooner!
    >> Two tips, one question.
    >>
    >> tip 1: use <wo:not condition = "$isEditable"> for the second one
    >> instead of resorting to OGNL. wo:not is implemented as a
    >> TagProcessor in wonder that turns into (WOConditional, negate =
    >> true, condition = whatever).
    >
    > Wouldn't <wo:ERXElse>...</wo:ERXElse> be a better solution in this
    > case?
    Yes -- That's the even better way, and actually the way I personally
    prefer (I love ERXElse). In fact, I'll see your <wo:ERXElse> and
    raise you the built-in shortcut "<wo:else></wo:else>" :)

    ms



    This archive was generated by hypermail 2.0.0 : Thu May 10 2007 - 08:07:39 EDT