Simon Kitching wrote:
Maybe you could write a custom tag that sets defaults, eg
  <s:setDefault value="default-value"/>

Another option might be to write a custom ValueBinding implementation, that handles strings of form
  #{someexpr :: defaultexpr}

It just needs to look for "::"; if not found then delegate to a normal ValueBinding implementation. If present, split the string then when getValue is invoked, execute the first and if null is returned then execute the second. Doesn't initially seem terribly complicated.

If you do get either of these working, then please create an entry on the Wiki or at least post back to this list describing your answer for future reference..

Cheers,

Simon

Reply via email to