On 24.02.2009, at 11:05, Craig Fairhurst wrote:

David

Apologies for any confusion caused, but I was kind of expecting to hear
where I was going wrong myself.
In order for the Slot's action getDefaultView to be "heard" you do need
you do need isSimple on the action.

No. That is wrong. Agavi will call getDefaultViewName() if
a) no suitable execute() method (i.e. executeRead() etc, or generic execute()) is found, or
b) if the Action runs in "simple" mode.

It is not true that your slot *must* run in simple mode for getDefaultViewName() to be used. getDefaultViewName() is simply called if no execution of the action occurs and if there was no validation failure. Which, as noted above, is the case if no execute*() is there, or if the action is in "simple" mode.

If you can't change the getDefaultView() what can you do??

What do you mean, you can't change it? Override it in a subclass or what do you mean? Why should that not work; it's basic object oriented programming :)

I'm really not sure what exactly it is you're doing, so I'm afraid I cannot give further instructions right now...

- David

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to