Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

View not used #172

Open
prestonmcgowan opened this issue Jan 13, 2014 · 1 comment
Open

View not used #172

prestonmcgowan opened this issue Jan 13, 2014 · 1 comment

Comments

@prestonmcgowan
Copy link

Evolving issue, so I will add more as I can.

At least with a routes/request/@resource in my config.xqy, when the req:expand-resources is executed to include all the resource routing rules the view is not taken into account.

when I call /photo.json the photo item is called and I receive back whatever the controller returns, in this case XML instead of json.

I notice in router:route that the $default-layout is blank since neither my config nor the default config specify a json layout.

Since layout is empty, the raw controller output is output. (router.xqy line: 107)

Also, I was not returning a map:map from my controller, which also sets bypass to fn:true(). (router.xqy line: 103)

When I setup a layout for json in my config, the default-layout is no longer empty.

I will modify my controller to return a map and see if the bypass is set to false.

@grtjn
Copy link
Contributor

grtjn commented Jul 7, 2015

@dmcassel or @paxtonhare, could either of you have a look at this? I'm not too familiar with Roxy MVC..

@grtjn grtjn added the mvc label Jul 7, 2015
@grtjn grtjn modified the milestone: July 2017 Jun 1, 2017
@grtjn grtjn removed this from the July 2017 milestone Jun 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants