I have a behavior that generates a url to a page. This behavior is attached
to menu items. I have the behavior code below. After moving to Wicket 1.5.4
this is not working. I get a message in the "WICKET DEBUG" window like this
"500 error had text: ".

I will say that we are using the CryptoMapper and it works if I remove the
CryptoMapper. I have added the CryptoMapper as the last line in my
Application.init method. The line looks like this:

setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this));

Also, I believe the links worked in Wicket 1.5.3, but I was getting error
messages because of  https://issues.apache.org/jira/browse/WICKET-4222
WICKET-4222  so I upgraded to Wicket 1.5.4 and the error messages have gone
away, but now my menu doesn't work.

Here is the code for my behavior:

public class YuiMenuBarItemSelectionBehavior extends
AbstractDefaultAjaxBehavior
{
        private YuiMenuBarItem menuItem;
        
        public YuiMenuBarItemSelectionBehavior(YuiMenuBarItem menuItem)
        {
                this.menuItem = menuItem;
        }
        
        @Override
        protected void onBind()
        {
                super.onBind();
                menuItem.setUrl("javascript: " + 
generateCallbackScript("wicketAjaxGet('"
+ getCallbackUrl() + "'").toString());
        }

        @Override
        protected void respond(AjaxRequestTarget target)
        {
                menuItem.onMenuItemClicked(target);
        }
}

Any help is appreciated.

Thanks,

Josh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/generateCallbackScript-in-Wicket-1-5-4-with-CryptoMapper-tp4348734p4348734.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to