dev@jsftemplating.java.net

[Issue 2] Add handler-level condition support

From: <kenpaulsen_at_dev.java.net>
Date: 18 Oct 2006 00:53:53 -0000

Add handler-level condition support:
https://jsftemplating.dev.java.net/issues/show_bug.cgi?id=2



User kenpaulsen changed the following:

                What |Old value |New value
================================================================================
                  Status|STARTED |RESOLVED
--------------------------------------------------------------------------------
              Resolution| |FIXED
--------------------------------------------------------------------------------




------- Additional comments from kenpaulsen_at_dev.java.net Wed Oct 18 00:53:53 +0000 2006 -------
Done.

You may now do something like:

<!command
  if (#{true}|false) {
    doSomething1(...);
    doSomething2(...);
  }
  alwaysDoThis(...);
/>

I think this will do everything you can think of (including nesting, complex boolean equestions, etc.).

FYI, you may also add a "condition" property to any handler and it will be conditionally evaluated as well:

  println("This won't print" condition="false");

Ken