[Lift] Re: More than one lift:surround in HTML file
Thanks everyone. I can get things to work now using lift:with- param ... However, I found a post[1] by DPP that says that lift:with-param ... is deprecated. Is this true? Regards, Paul. [1] http://article.gmane.org/gmane.comp.web.lift/820 On Aug 5, 10:55 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius is right, use with-param... That's the correct solution here. Cheers, Tim On 05/08/2009 22:19, pabraham paulabraham...@googlemail.com wrote: I've added lift:children to my index.html file and now get: XML Parsing Error: junk after document element Location:http://192.168.96.150:8080/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: More than one lift:surround in HTML file
Firefox 3.5.2 Funnily enough, I can't right click to view source, but Ctrl+U works. The first lines are: ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/ xhtmlhead I don't see anything funny there. Paul. On Aug 5, 10:23 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Which browser gives that error? What do you see in View Source? - pabrahampaulabraham...@googlemail.com wrote: I've added lift:children to my index.html file and now get: XML Parsing Error: junk after document element Location:http://192.168.96.150:8080/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: More than one lift:surround in HTML file
On Aug 6, 3:46 pm, pabraham paulabraham...@googlemail.com wrote: Thanks everyone. I can get things to work now using lift:with- param ... However, I found a post[1] by DPP that says that lift:with-param ... is deprecated. Is this true? We tried to deprecate it a little while ago but AFAIK it's not deprecated anymore. Regards, Paul. [1]http://article.gmane.org/gmane.comp.web.lift/820 On Aug 5, 10:55 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius is right, use with-param... That's the correct solution here. Cheers, Tim On 05/08/2009 22:19, pabraham paulabraham...@googlemail.com wrote: I've added lift:children to my index.html file and now get: XML Parsing Error: junk after document element Location:http://192.168.96.150:8080/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: More than one lift:surround in HTML file
On Thu, Aug 6, 2009 at 5:48 AM, marius d. marius.dan...@gmail.com wrote: On Aug 6, 3:46 pm, pabraham paulabraham...@googlemail.com wrote: Thanks everyone. I can get things to work now using lift:with- param ... However, I found a post[1] by DPP that says that lift:with-param ... is deprecated. Is this true? We tried to deprecate it a little while ago but AFAIK it's not deprecated anymore. I dislike it and don't see a reason for it. Others do. I lose. ;-) Regards, Paul. [1]http://article.gmane.org/gmane.comp.web.lift/820 On Aug 5, 10:55 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius is right, use with-param... That's the correct solution here. Cheers, Tim On 05/08/2009 22:19, pabraham paulabraham...@googlemail.com wrote: I've added lift:children to my index.html file and now get: XML Parsing Error: junk after document element Location:http://192.168.96.150:8080/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. -- 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 -~--~~~~--~~--~--~---
[Lift] Re: More than one lift:surround in HTML file
Haha yeah... With-param has had somewhat of a chequered past! Its here to stay for the time being though so don't worry about using it. Cheers, Tim On 06/08/2009 13:48, marius d. marius.dan...@gmail.com wrote: On Aug 6, 3:46 pm, pabraham paulabraham...@googlemail.com wrote: Thanks everyone. I can get things to work now using lift:with- param ... However, I found a post[1] by DPP that says that lift:with-param ... is deprecated. Is this true? We tried to deprecate it a little while ago but AFAIK it's not deprecated anymore. Regards, Paul. [1]http://article.gmane.org/gmane.comp.web.lift/820 On Aug 5, 10:55 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius is right, use with-param... That's the correct solution here. Cheers, Tim On 05/08/2009 22:19, pabraham paulabraham...@googlemail.com wrote: I've added lift:children to my index.html file and now get: XML Parsing Error: junk after document element Location:http://192.168.96.150:8080/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: More than one lift:surround in HTML file
No. Each template must be xml well formed so you can not have more then one root element, Please see lift:with-param to handle multiple binds. Br;s, Marius On Aug 6, 12:04 am, pabraham paulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: More than one lift:surround in HTML file
XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: More than one lift:surround in HTML file
I've added lift:children to my index.html file and now get: XML Parsing Error: junk after document element Location: http://192.168.96.150:8080/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: More than one lift:surround in HTML file
Which browser gives that error? What do you see in View Source? - pabrahampaulabraham...@googlemail.com wrote: I've added lift:children to my index.html file and now get: XML Parsing Error: junk after document element Location: http://192.168.96.150:8080/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: More than one lift:surround in HTML file
Marius is right, use with-param... That's the correct solution here. Cheers, Tim On 05/08/2009 22:19, pabraham paulabraham...@googlemail.com wrote: I've added lift:children to my index.html file and now get: XML Parsing Error: junk after document element Location: http://192.168.96.150:8080/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---