Results 1 to 2 of 2

Thread: on exception transition

  1. #1
    Join Date
    Jul 2008
    Posts
    5

    Default on exception transition

    Hi
    I have a question: I have a <transition on-exception> element

    how do I get to the exception properties?
    I wanna do something like this:

    <transition on-exception="ValidationFailedException" to="importFiles">
    <set name="flashScope.messageCode" value="validationFailedException.getMessageText()" />
    </transition>

  2. #2
    Join Date
    Jul 2008
    Posts
    5

    Default

    Maybe some further explaining is in order. I now have something like this:

    Code:
    <transition on-exception="path.to.class.ValidationFailedException" to="importFiles">
    	<set name="flashScope.messageCode" value="'fileimport.error.validation_failed'" />
    </transition>
    so now the message that is set is hardcoded. But I'd like to have it customized in the exception somehow, like:

    Code:
    <transition on-exception="path.to.class.ValidationFailedException" to="importFiles">
    	<set name="flashScope.messageCode" value="ValidationFailedException.getMessageText()" />
    </transition>
    Last edited by KameS; Aug 1st, 2008 at 07:41 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •