On Jan 23, 2009, at 3:08 PM, Amedeo Mantica wrote:

Hello, i see that in action in components thet returns the same page aome users do:

public void doSomeThing() {
        //your stuff
}

Properly, this is for Ajax actions. It works for component actions though some KVC magic which invents a null if it needs a result form a void method.


others do:

public WOActionResults doSomeThing() {

        //your stuff
        
        return null;
}

This is more proper but...


both seem to works equally....

is there some difference that i don't know?


They are both inferior to return context().page(). That is what the should do.

Chuck


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to