Mike,

First. Thanks for such a quick response; especially for some a dumb*ss question. (I could have at least looked at the good - sheeze!).

Anyway, that obviously worked so I'm forging ahead. I'd like my next step to be something to support something like this.

        http://localhost/WebObjects/myApp.woa/rest/Site/custom_site_view.xml
or
http://localhost/WebObjects/myApp.woa/rest/Site/custom_site_view/ 100.xml

Essentially, rather than having only one handler (extending IERXRestEntityDelegate, I'm presuming) per entity, I'd like to further refine the dispatch with a "view" name. Implementation-wise, I'm thinking of an array of keypaths and/or a dictionary mapping keys to keypaths would be used to select (and potentially) remap a subset of attributes.

So my question is: Where and how might I most easily and elegantly implement such an idea? Would it make the most sense to use a custom Writer, perhaps passing it some additional parameters if needed?

many thanks again for you help,
Jason

On Nov 14, 2007, at 10:31 AM, Mike Schrag wrote:


        /**
* Creates an unsafe request handler for you to try out in development mode. THIS SHOULD NOT BE DEPLOYED (and in
         * fact it will throw an exception if development mode is false).
         *
* @param readOnly if true, the unsafe read-only delegate will be used * @param displayToMany if true, to-many relationships will display by default
         * @return an unsafe request handler
         */
public static final ERXRestRequestHandler createUnsafeRequestHandler(boolean readOnly, boolean displayToMany) {

docs may be slightly out of date ...

On Nov 14, 2007, at 10:09 AM, Jason Jobe wrote:

Hello,

I'm looking for a easy way to deliver XML (to a flash frontend) and ERRest looks like it should foot the bill nicely.

So I tried the minimal experiment of adding

registerRequestHandler (ERXRestRequestHandler.createUnsafeRequestHandler(), "rest");

to the Application constructor but I'm getting the following error.

"The method createUnsafeRequestHandler(boolean, boolean) in the type ERXRestRequestHandler is not applicable for the arguments ()"

Any pointers would be most appreciated.

thanks,
Jason

_______________________________________________
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/mschrag% 40mdimension.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
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/jason02007% 40jasonjobe.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
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