I didn't write this wiki page, and hadn't ever seen it before, so obviously I've not tried the proposed technique. I'll just throw in a couple of comments on what might be going wrong for you below.
On 4/6/06, Hermod Opstvedt <[EMAIL PROTECTED]> wrote: > > Hi > > I read a Wiki page on MyFaces : > http://wiki.apache.org/myfaces/Custom_Navigation_Handler, > > When I attempted to try this receipe, I ran into a couple of issues: > > In the Wiki entry it states that I should be able to declare a navigation > rule as follows: > > <navigation-rule> > <from-view-id>/view.jsp</from-view-id> > <navigation-case> > <from-outcome>edit</from-outcome> > <to-view-id>/view.jsp?objectId=#{view.objectId}</to-view-id> > <redirect /> > </navigation-case> > </navigation-rule> > > However when I tried this with a Shale variant I got errors. First I tried > the following: > > <navigation-rule> > <from-view-id>open$arrangement</from-view-id> > <navigation-case> > <from-outcome>marathonside</from-outcome> > > > <to-view-id>/open/marathonside.xml?arrid=#{open$arrangement.arrid}</to-view- > id> > <redirect /> > </navigation-case> > </navigation-rule> > > This gave me: java.lang.RuntimeException: Unable to find file > /open/open/marathonside.xml. A couple of issues: * It looks like your from view identifier is a managed bean name rather than a view id. It should be something like /foo.jsp or whatever is appropriate to the view technology you are using. * Neither the standard JSF navigation handler nor the custom one Shale uses for dialogs knows how to evaluate expressions in the to-view-id element. Are you using some custom NavigationHandler implementation that purports to do so? Craig So next I changed to-view-id to: > /marathonside.xml?arrid=#{open$arrangement.arrid} > > Which gave me: java.lang.RuntimeException: Unable to find file > /marathonside.xml. > > Also, will it resolve the open$arrangement.arrid into a value? > > Hermod > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >