On Tue, 07 Dec 2004 12:02:52 +0100, Alexander Czernay
<[EMAIL PROTECTED]> wrote:
> I have a strange problem with LookupDispatchAction:
> I built a form displaying several entries from a db as a list. There are
> several buttons for editing/removing the entries an also two buttons for
> paging though the list. The problem is, that only one of those buttons
> works, while the other throws a MissingResourceAction. That sounds like
> a typo, but the strange thing is, that it tries to lookup the button's
> value rather than it's name (eg. having a ressource mapping like
> mybutton.forward=go it would try to lookup "go"). All this works
> perfectly well with my back-button on the same page, using the same action.
>
> Any ideas?
>
> Alexander
>
<snip>
> /**
> * Key method for mapping methods to buttons
> */
> protected Map getKeyMethodMap() {
> Map map = new HashMap();
> map.put("authors-form.button.create", "create");
> map.put("authors-form.button.edit", "edit");
> map.put("authors-form.button.remove", "remove");
> map.put("authors-form.button.forwar",
> "forward");
Is the above line in your code correct ... "authors-form.button.forwar" ?
> map.put("authors-form.button.back", "back");
> return map;
> }
>
>
</snip>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]