[Lift] Re: Future of the Lift wiki

2009-06-02 Thread Timothy Perrett
Guys, I know you chaps are quite new on this lift, so just to add a bit of background - we've been here many, many times before with various people pledging to fix and cleanup the wiki (myself included!) After much discussion we decided that what was needed were gardeners - not perhaps to write

[Lift] Re: Future of the Lift wiki

2009-06-02 Thread marius d.
I believe Debbie was asking the community for a few folks willing to garden the wiki. Anyone interested? Br's, Marius On Jun 2, 11:07 am, Timothy Perrett timo...@getintheloop.eu wrote: Guys, I know you chaps are quite new on this lift, so just to add a bit of background - we've been here

[Lift] Basic question about ajax updates? Do I need Comet actors?

2009-06-02 Thread Philipp Meier
Hi, I'm exploring AJAX with lift and have a basic question. If I have several snippets on a page that use a shared session-variable (think of a shopping cart and a control to add a product to the cart). How can the control snipped trigger a AJAX rerender of the cart snippet after the cart was

[Lift] Re: Future of the Lift wiki

2009-06-02 Thread Kevin Wright
Mark me down :) On Tue, Jun 2, 2009 at 9:36 AM, marius d. marius.dan...@gmail.com wrote: I believe Debbie was asking the community for a few folks willing to garden the wiki. Anyone interested? Br's, Marius On Jun 2, 11:07 am, Timothy Perrett timo...@getintheloop.eu wrote: Guys, I

[Lift] Re: Newbie question: Templates cached?

2009-06-02 Thread Jesse Eichar
You are exactly right. It does build a war and deploy it. Thanks David On Jun 2, 5:17 am, David Pollak feeder.of.the.be...@gmail.com wrote: If you're running from SBT, it's likely that SBT builds a WAR file and runs it (I'm just guessing here.)  When you do an mvn jetty:run, you can change

[Lift] Re: Basic question about ajax updates? Do I need Comet actors?

2009-06-02 Thread David Pollak
On Tue, Jun 2, 2009 at 2:20 AM, Philipp Meier phme...@gmail.com wrote: Hi, I'm exploring AJAX with lift and have a basic question. If I have several snippets on a page that use a shared session-variable (think of a shopping cart and a control to add a product to the cart). How can the

[Lift] Re: Ideas for an ordered list in a form

2009-06-02 Thread Derek Chen-Becker
The plugin here requires jQuery UI to work. I can either add jQuery UI to lift-webkit's toserve directory so that it's available for people to use, or I could just bundle it with the widget. I'm leaning toward bundling with webkit so that it's available for other components. Otherwise, I'm not

[Lift] Binding an attribute value

2009-06-02 Thread Lance Walton
Hi. I've seen a few threads about binding attribute values, but none of the solutions seem relevant for my problem. I am a Lift and Scala beginner, so I'm most likely missing something obvious. I have the following template: lift:foo.myFoos foos:list div id=foo_foo:id ... /div

[Lift] Re: Binding an attribute value

2009-06-02 Thread Timothy Perrett
Try: bind(foo, chooseTemplate(foos, list, xhtml), id - divexample/div % id - foo.id.toString, . ) Without a bit more context / code its tough to help exactly - but from this example you'll see how you can create dynamic attributes. Cheers, Tim On Jun 2, 2:59 pm, Lance Walton

[Lift] Re: Future of the Lift wiki

2009-06-02 Thread Bryan.
I too am willing to help. I really like the format of the django documentation: http://docs.djangoproject.com/en/dev/. Any other recommendations out there? Thanks, Bryan On Jun 2, 6:57 am, Kevin Wright kev.lee.wri...@googlemail.com wrote: Mark me down :) On Tue, Jun 2, 2009 at 9:36 AM,

[Lift] Problem with Menu.builder li_path/li_item

2009-06-02 Thread Jeppe Nejsum Madsen
Running 1.1-SNAPSHOT, the following construct lift:Menu.builder li_path:class=pathclass li_item:class=itemclass/ Seems to results in an exception when Lift processes the template. The error seems related to the fact that both li_path li_item tries to set the class. If I change one to e.g.

[Lift] Re: Problem with Menu.builder li_path/li_item

2009-06-02 Thread David Pollak
Please post the exception On Tue, Jun 2, 2009 at 7:47 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Running 1.1-SNAPSHOT, the following construct lift:Menu.builder li_path:class=pathclass li_item:class=itemclass/ Seems to results in an exception when Lift processes the template.

[Lift] Re: Basic question about ajax updates? Do I need Comet actors?

2009-06-02 Thread Philipp Meier
On Jun 2, 3:56 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Jun 2, 2009 at 2:20 AM, Philipp Meier phme...@gmail.com wrote: I'm exploring AJAX with lift and have a basic question. If I have several snippets on a page that use a shared session-variable (think of a shopping

[Lift] Re: Binding an attribute value

2009-06-02 Thread Lance Walton
Hi. I'm still trying to grok your example :-) In the meantime, I'll try to give a bit more context. If I have this template: lift:foo.myFoos foos:list div id=foo_foo:id foo:id/ /div /foos:list /lift:foo.myFoos Then when I munge it all, given foos with ids 12, 57 and 132,

[Lift] Re: Problem with Menu.builder li_path/li_item

2009-06-02 Thread Jeppe Nejsum Madsen
On 2 Jun 2009, David Pollak wrote: Please post the exception The code is just the basic archetype with the above template changes and a new menu item as child of Home to show the path style. No exception on the console, but I get this in the browser: Exception occured while processing /

[Lift] Web Service : XmlResponse, xhtml and PrettyPrint

2009-06-02 Thread Jean-Luc
Lifted, Scalads, I'm currently developing a Web Service which can generate xhtml content. 1. The xml output of the service has the following format : SOAP-ENV:Envelope ... [...] d:formattedMessage xmlns=http://www.w3.org/xhtml; xmlns:d=myUndisclosedURL Here is my xhtml content with *br/br*

[Lift] Re: Web Service : XmlResponse, xhtml and PrettyPrint

2009-06-02 Thread Timothy Perrett
Jean-Luc, are you manually making these soap messages? Any reason your not using JAX-WS or CXF etc? Cheers, Tim On 02/06/2009 17:11, Jean-Luc jlcane...@gmail.com wrote: Lifted, Scalads, I'm currently developing a Web Service which can generate xhtml content. 1. The xml output of the

[Lift] sharing models?

2009-06-02 Thread Joe Wass
Hi everyone, I have three sites that hang off a single database: One central site to edit information and two browse-only sites which aggregate the information. Previously I have been doing this by exposing a simple web service on the central site and having the other two sites consume and

[Lift] Re: Ideas for an ordered list in a form

2009-06-02 Thread Derek Chen-Becker
On second thought, a widget for this is probably overkill. Just adding the proper script and css to the page works fine. Derek On Tue, Jun 2, 2009 at 7:57 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: The plugin here requires jQuery UI to work. I can either add jQuery UI to lift-webkit's

[Lift] Re: Binding an attribute value

2009-06-02 Thread David Pollak
Try: lift:foo.myFoos foos:list div foo:div_id=xxx foo:id/ /div /foos:list /lift:foo.myFoos In your bind: def doFoo(in: NodeSeq): NodeSeq = List(a, b, c).zipWithIndex.flatMap { case (str, idx) = bind(foo, id - str, AttrBindParam(div_id, Text(my_foo_+idx), id)) } bind(foos,

[Lift] Re: Problem with Menu.builder li_path/li_item

2009-06-02 Thread David Pollak
This is an XML parsing error. Something in your XML is non-parsable. It's not Lift, but the underlying XML parsing library. On Tue, Jun 2, 2009 at 8:14 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On 2 Jun 2009, David Pollak wrote: Please post the exception The code is just the

[Lift] Re: Basic question about ajax updates? Do I need Comet actors?

2009-06-02 Thread David Pollak
On Tue, Jun 2, 2009 at 7:51 AM, Philipp Meier phme...@gmail.com wrote: On Jun 2, 3:56 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Jun 2, 2009 at 2:20 AM, Philipp Meier phme...@gmail.com wrote: I'm exploring AJAX with lift and have a basic question. If I have several

[Lift] Re: sharing models?

2009-06-02 Thread David Pollak
I'd create a Maven project with the models in it. You can use the resulting JAR file with other projects. On Tue, Jun 2, 2009 at 9:44 AM, Joe Wass j...@folktunefinder.com wrote: Hi everyone, I have three sites that hang off a single database: One central site to edit information and two

[Lift] Re: Web Service : XmlResponse, xhtml and PrettyPrint

2009-06-02 Thread David Pollak
Please try (this is on 1.1-SNAPSHOT... code I just checked in): import net.liftweb.util._ AltXML.toXML(soapXML, false, true) Thanks, David On Tue, Jun 2, 2009 at 9:11 AM, Jean-Luc jlcane...@gmail.com wrote: Lifted, Scalads, I'm currently developing a Web Service which can generate xhtml

[Lift] Re: sharing models?

2009-06-02 Thread Joe Wass
Thanks. I'll give that a go once I'm au fait with maven. Joe On Jun 2, 6:46 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I'd create a Maven project with the models in it. You can use the resulting JAR file with other projects. On Tue, Jun 2, 2009 at 9:44 AM, Joe Wass

[Lift] Possible issue with SHtml.multiSelect

2009-06-02 Thread Derek Chen-Becker
I was trying out the multiSelect element to try and get the asmselect jQuery plugin working and I came across what I think is a bug. If I have multiple items selected and I submit the form, only the first item in the select has the element function executed. I dug around a bit in the code and I

[Lift] Re: Binding an attribute value

2009-06-02 Thread Lance Walton
Hi David. Yes, that's perfect. Thanks. Lance On Jun 2, 6:10 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Try: lift:foo.myFoos  foos:list    div foo:div_id=xxx      foo:id/    /div  /foos:list /lift:foo.myFoos In your bind: def doFoo(in: NodeSeq): NodeSeq = List(a, b,

[Lift] Re: Problem with Menu.builder li_path/li_item

2009-06-02 Thread Jeppe Nejsum Madsen
On 2 Jun 2009, David Pollak wrote: This is an XML parsing error. Something in your XML is non-parsable. It's not Lift, but the underlying XML parsing library. Yes, it would seem so. It looks like a bug/non-implemented feature that the parser is unable to read two attributes with the same

[Lift] Re: Ideas for an ordered list in a form

2009-06-02 Thread Derek Chen-Becker
Thanks for sending that. It looks like UI could also provide some drag and drop, so the asm select plugin is looking very nice :). Now I just need to get approval on changing multiSelect to use an LFuncHolder and I'm golden :) Derek On Tue, Jun 2, 2009 at 3:02 PM, Marius Danciu

[Lift] Re: Problem with Menu.builder li_path/li_item

2009-06-02 Thread Derek Chen-Becker
I think that this has been discussed on the list before. It's definitely an issue with having the same attribute name with different prefixes. I don't know that using proper namespace declarations will fix it. It seems that this is a bug in the Scala XML parser. Derek On Tue, Jun 2, 2009 at 2:55

[Lift] Re: date management

2009-06-02 Thread g-man
Are there no ideas for my problem? I have many more questions saved up, but would like to clear each out before starting a new one. Thanks again! On May 31, 1:57 pm, g-man gregor...@gmail.com wrote: As I proceed to enhance the ToDo example, I have added a new field to the ToDo.scala model:

[Lift] Is something up with applying By to a MappedBoolean?

2009-06-02 Thread E. Biggs
When I try to apply By to a MappedBoolean like so: Table.findAll(By(Table.booleanField, false)); derby is unhappy and bombs out on some sql with this kind of where clause: WHERE Table.booleanfield = ? Is this a bug or am I doing something wrong? I'm using 1.1-SNAPSHOT