Re: defaultAction returning wrong component in Application request handler

2014-08-12 Thread Larry Mills-Gahl
Thanks for the responses… and the winner is: setDefaultRequestHandler( requestHandlerForKey( directActionRequestHandlerKey() ) ); (Thanks Hugi) Larry Mills-Gahl elem...@gmail.com On Aug 12, 2014, at 4:22 PM, Larry Mills-Gahl wrote: > I was using the Wonder pageWithName(Class) hoping to

Re: defaultAction returning wrong component in Application request handler

2014-08-12 Thread Larry Mills-Gahl
I was using the Wonder pageWithName(Class) hoping to make the issues with another Main on the classpath moot. That’s when I saw that “Main” was still getting passed into the WOApplication.pageWithName and began wondering if the String for the class name was getting set somewhere as a default bef

Re: defaultAction returning wrong component in Application request handler

2014-08-12 Thread Klaus Berkling
On Aug 12, 2014, at 12:56 PM, Theodore Petrosky wrote: > > @Override > public WOActionResults defaultAction() { > return pageWithName(CPEMain.class.getName()); > } > > > what about adding getName() > I think pageWithName in Wonder takes ether class or the cl

Re: defaultAction returning wrong component in Application request handler

2014-08-12 Thread Theodore Petrosky
I take that back. I just tried it on one of my apps @Override public WOActionResults defaultAction() { //return pageWithName(Main.class.getName()); return pageWithName(KickOffBriefInstructions.class); } worked fine to subst

Re: defaultAction returning wrong component in Application request handler

2014-08-12 Thread Theodore Petrosky
@Override public WOActionResults defaultAction() { return pageWithName(CPEMain.class.getName()); } what about adding getName() On Aug 12, 2014, at 3:32 PM, Larry Mills-Gahl wrote: > I am trying to use a different default component in the defaultAction

Re: defaultAction returning wrong component in Application request handler

2014-08-12 Thread Hugi Thordarson
For this to work you’ll have to make the direct action request handler your default request handler. Stashing this in your Application class’ constructor should do the trick. setDefaultRequestHandler( requestHandlerForKey( directActionRequestHandlerKey() ) ); Cheers, - hugi > On 12. ágú. 20

defaultAction returning wrong component in Application request handler

2014-08-12 Thread Larry Mills-Gahl
I am trying to use a different default component in the defaultAction. The defaultAction is pretty straight forward: @Override public WOActionResults defaultAction() { return pageWithName(CPEMain.class); } … but the Application still looks for “Main” when