As always ... thank you very much !
Perhaps it would worth to have this kind of info on liftweb site.
Maybe it exists but somehow I didn't find it and I had to ask ..
I also tried http://localhost:8080/lift/test_view/render but same
thing home page was rendered ...
/ \
/lift/ committer (www.liftweb.net)
SGS member (Scala Group Sweden)
SEJUG member (Swedish Java User Group)
\_____________________________________/
I introduced it when I moved to the InsecureLiftView code.
I'll fix it today.
Yeah... with the recent S.setHeader(name, value), you can alter the
response headers based on whatever to give you a lot of dynamic
rendering capabilities.
The fix is checked in.
> Br's,
> Marius
> >
>
/davidB
SiteMap rules are applied before the view is retrieved, thus unless you
define the URL of the view in your sitemap, the view will not be displayed.
SiteMap is intended to be access control for all the pages that
"normally rendered" (gotta find a better name... basically the pages
that are rendered by the normal flow of page rendering rather than by a
pattern match in the dispatch table) must match the rules defined in
SiteMap.
Thanks,
David
Ok ... got it. Somehow I though that view are kind of decoupled by the
SiteMap rules.
Another question. Suppose I'm using a view to return plain XML not
html or xhtml. Is there a way to specify XMLResponse instead on
XhtmlResponse ? I wouldn't like the returned XML from my view to NOT
contain
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
(I know hat in this case should probably use a dispatch but I'm just
curious)
Br's,
Marius
--
lift, the secure, simple, powerful web framework http://liftweb.net