Can you show a reproducible example of the issue that nailed you?
Lift does not modify the XHTML on the page unless you explicitly tell it
to... so Lift will not remove the class attribute on a ul tag.
I suspect what's happening is that Lift's default of serving
application/xhtml+xml is causing a conflict with your jQuery plugin which is
not rendering correct XHTML.
On Tue, Jul 21, 2009 at 2:04 PM, Alan M alan.morten...@gmail.com wrote:
I'm using lift for web services and I need to serve a javascript
driven front end from the same web server (don't feel like messing
with proxies right now) and I figured someone on here would want to
know what I ran into with serving static content.
Basically I was trying to use jQuery and in particular a tree library
called jsTree (it looks really feature rich and flexible). Anyway, it
turns out either the lift javascript or some conflict derived in part
there from was munging things sufficiently so that everything seemed
normal in the xhtml.. but a few of the classes where deleted. This
caused the entire jsTree to fail to render properly, making it non-
functional.
I'm not entirely sure why it did what it did, but until I stripped out
Lift and ran it just as an empty servlet I couldn't see what was going
on. For some reason the lift served version stripped the class off of
a ul (in my case it was only one, but I had a very simple tree).. the
class for the ul was ltr and it's gone in the lift version. This ul
is generated by javascript using jQuery, so I'm not sure what's going
on there.
Anyway, I've decided since all my dynamic content is coming from other
webapps, I might as well just serve my static content from a bare
servlet, therefore cutting down on any variables. (I've already
wrestled with this for too long). But if anyone is interested in
following up, maybe with the jsTree guys, have at it. They have a
very friendly Google group as well :)
Alan
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---