[Opensource] Transition problem
Michael Rimov
rimovm at centercomp.com
Fri Dec 13 15:08:30 PST 2002
At 01:43 PM 12/13/2002 -0600, you wrote:
>Hi. I've come across a behavior I don't understand, or don't understand
>how to fix easily. I'm adding a Transition as a nested item in an Output
>object. The Transition has a controller different than the controller
>creating the output, which I set with the constructor, new Transition(
>"edit", mycontrollerstring). The url property I'm getting in the jsp,
>using the following snip:
>
><bean:define id="url" name="oneRow" property="/id/edit.url"
>type="java.lang.String"/>
> <html:link page="<%= url %>"><bean:write name="oneRow"
> property="/id" /></html:link>
>
>
>it uses the action for the current request object. I've tracked it down
>to the Transition.getURL call from ContollerUtils, which in turn calls
>Transition.getTheURL(false). I am understanding that a true passed in
>would resolve the controller reference, but I can't do that without
>recompiling. Am I missing a setting somewhere, or completely missing the
>point?
Gene, call Transition.setControllerObject() to define the controller you're
pointing to. In fact, there is a 4 part constructor that defines: Label,
Controller, State, and Name in one line. Works pretty slick.
HTH!
-Mike
More information about the Opensource
mailing list