[Lift] Re: Forms & validation formatter

2009-04-04 Thread marius d.
On Apr 2, 6:57 pm, Clemens Oertel wrote: > One follow up question, relating to the contexts I mentioned earlier:   > Following my approach mentioned below, let's assume I have a template   > for embedding. This template contains  the HTML code for a tabular   > list of data entities. Depending

[Lift] PhET Website

2009-04-04 Thread samreid
Lift community, My name is Sam Reid, I'm a Java + Scala developer for PhET Interactive Simulations at http://phet.colorado.edu/. We produce free, open source educational science simulations for college and high school- level students. We are considering porting our website to Lift and adding so

[Lift] Who did the hungarian translation?

2009-04-04 Thread Tim Perrett
Hey guys, Who did the hungarian translations of lift core? I want to make an addition that needs adding to lift core properties files but I don't speak hungarian! Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Re: Who did the hungarian translation?

2009-04-04 Thread marius d.
A co-worker of mine. I could have him do the translation on Monday ... just send the English text. Br's, Marius On Apr 4, 3:23 pm, Tim Perrett wrote: > Hey guys, > > Who did the hungarian translations of lift core? I want to make an > addition that needs adding to lift core properties files but

[Lift] newbie question: using ajaxText() to get integer from form

2009-04-04 Thread Tobias Daub
Hi There, From the ToDo tutorial I got this code: private def desc(td: ToDo, reDraw: () => JsCmd) = swappable({td.desc}, {ajaxText(td.desc, v => {td.desc(v).save; reDraw()})} ) What if I've a numeric field, e.g. td.num and I want to view/edit it? I got

[Lift] Re: Lift using JQuery and JCarousel

2009-04-04 Thread wapgui
The problem is how the carousel looks like. It shows all the picture one below the other. I know this effect, then normaly JQuery is missing. But I can try it as snippet or lift:embed. Cheers Torsten On Apr 3, 10:03 pm, "marius d." wrote: > Hmm ... I'd be very surprised if the the presence of t

[Lift] Re: Need for lightweight JPA archetype

2009-04-04 Thread bradford
Hi, I think I would like to use JPA for my project. This archetype would be nice. Just a second ago I ran mvn archtype:generate on lift- archetype-jpa-basic. NetBeans is complaining on 'import javax.persistence._' not being found in jpatest-spa's Author.scala. It also complains on 'import org.

[Lift] Updates to the book and JPA demo site

2009-04-04 Thread Derek Chen-Becker
I've updated the JPA chapter of the book with brief coverage of the Hibernate Validator framework for entity validation. A new PDF is up on the group site. Also, as part of testing the new section, I added hibernate validator functionality to the current JPA demo site on my own branch. Does anyone

[Lift] Re: Who did the hungarian translation?

2009-04-04 Thread Timothy Perrett
Hey Marius Sounds good. I just want to add an "Undefined" item to the Genders object in Mapper, however it needs updating in our core locale strings so just need a HU translation for "Undefined" Cheers, Tim On 04/04/2009 15:16, "marius d." wrote: > > A co-worker of mine. I could have him d

[Lift] Re: Lift using JQuery and JCarousel

2009-04-04 Thread marius d.
might be that blueprint's css ul/li styles are conflicting with list styles that JCarousel is using? Try to not use: ... and see if things get improved. Br's, Marius On Apr 4, 6:18 pm, wapgui wrote: > The problem is how the carousel looks like. It shows all t

[Lift] Re: Advice on Ramping Up

2009-04-04 Thread Charles F. Munat
Thus suggesting our motto: Scala/Lift: Our heads are in the stars, but our feet are firmly planted in the, er, "soil." Chas. David Pollak wrote: > And of course Beginning Scala is BS :-) > > On Fri, Apr 3, 2009 at 8:29 PM, Meredith Gregory > mailto:lgreg.mered...@gmail.com>> wrote: > >

[Lift] Re: The Lift 1.1 list

2009-04-04 Thread Derek Chen-Becker
It does, but in the lift-widgets module. I think that the functionality is sufficiently "enhanced" that it should stay a separate widget as opposed to becoming the default behavior. Derek On Fri, Apr 3, 2009 at 3:17 PM, DavidV wrote: > > Also, it would be great it Lift1.1 included all of the >

[Lift] Re: Compile error in TD.scala whith example in "Starting with Lift" HTML guide

2009-04-04 Thread Derek Chen-Becker
This is something I'm aware of and working on, but feel free to report a bug here: http://liftweb.lighthouseapp.com/projects/26102-lift/tickets Derek On Fri, Apr 3, 2009 at 5:50 PM, Dano! wrote: > > > I thought I replied to this, apologies if it comes up twice. > > I found the problem, the HTM

[Lift] Re: Menu widget

2009-04-04 Thread Derek Chen-Becker
That's probably it. Please let us know if adding the snapshots repo doesn't fix it. Derek On Fri, Apr 3, 2009 at 10:05 PM, Josh Suereth wrote: > > Don't know if anyone responded, but you may need to add the maven > snapshot repository to your pom as well. > > Sent from my iPhone > > On Apr 3, 20

[Lift] Re: Need for lightweight JPA archetype

2009-04-04 Thread Derek Chen-Becker
Hmmm. Does maven complain if you try to compile, or is it just NetBeans? Derek On Sat, Apr 4, 2009 at 9:31 AM, bradford wrote: > > Hi, > > I think I would like to use JPA for my project. This archetype would > be nice. Just a second ago I ran mvn archtype:generate on lift- > archetype-jpa-bas

[Lift] Re: newbie question: using ajaxText() to get integer from form

2009-04-04 Thread David Pollak
On Sat, Apr 4, 2009 at 6:02 AM, Tobias Daub wrote: > > Hi There, > > From the ToDo tutorial I got this code: > > private def desc(td: ToDo, reDraw: () => JsCmd) = > swappable({td.desc}, > {ajaxText(td.desc, > v => {td.desc(v).save; reDraw()})} > ) > > > What

[Lift] Newbie problem

2009-04-04 Thread mgm
What's wrong with this? AP.scala (extract) def list(xhtml: NodeSeq) = { System.err.println("*** list: " + xhtml) Airport.findAll.flatMap(ap => bind("ap", xhtml, "code" -> ap.code, "lat" -> ap.lattitude, "lon" -> ap.longitude)) } airports.htm

[Lift] Re: Need for lightweight JPA archetype

2009-04-04 Thread bradford
Yeah, just NetBeans. It probably makes sense, but everything in NetBeans was fine after I did mvn compile; mvn install. Running the app works too. I did happen to get a NullPointerException when I would add a book with no author. And then again when I would click on Book list. Just an FYI. T

[Lift] Re: Newbie problem

2009-04-04 Thread mgm
I added some more debug prints. The list method appears to be doing what I expected, though the empty list elements are odd. AP.scala (extract) def list(xhtml: NodeSeq) = { System.err.println("*** list: " + xhtml) val r = Airport.findAll.flatMap(ap => { Sy

[Lift] Re: Lift using JQuery and JCarousel

2009-04-04 Thread wapgui
Nope, there is no difference. Maybe I can find it out with the good old try and error method. On Apr 4, 8:30 pm, "marius d." wrote: > might be that blueprint's css ul/li styles are conflicting with list > styles that JCarousel is using? Try to not use: > >                 >                 > >

[Lift] Re: Need for lightweight JPA archetype

2009-04-04 Thread Derek Chen-Becker
If you have a second, could you send the stack trace for the NPE? That's definitely not something that should be happening. Derek On Sat, Apr 4, 2009 at 2:34 PM, bradford wrote: > > Yeah, just NetBeans. It probably makes sense, but everything in > NetBeans was fine after I did mvn compile; mvn

[Lift] Re: Newbie problem

2009-04-04 Thread Derek Chen-Becker
Change your list def to def list(xhtml : NodeSeq) : NodeSeq = { ... If you don't explicitly set the return type to NodeSeq, sometimes things don't get properly applied. Derek On Sat, Apr 4, 2009 at 2:55 PM, mgm wrote: > > I added some more debug prints. The list method appears to be doing > w

[Lift] Re: Newbie problem

2009-04-04 Thread mgm
That did the trick! I apologize for the hubris of a newbie, but I think this is a bug in LiftWeb. It was getting executed, but I guess with out the declaration, the result was not getting implicitly converted from List[Node] to NodeSeq. The framework was finding & executing the method, but becau

[Lift] Unit tests for views & snippets

2009-04-04 Thread erik.karls...@iki.fi
Hi, First thanks for the great framework. It has been long time when I had this fun with web programming :) I have a pretty newbie question about unit testing. Do anybody know good examples about how to write properly unit tests for views and snippets? I have written some tests with Specs for t

[Lift] Good way to implement "cancel" links?

2009-04-04 Thread Clemens Oertel
Hi, What's the best way to get generic "Cancel" links into forms, lift- style? Assuming that a form can be called from different pages in the application, and the cancel link should return to the originating page? Would it work to have a RequestVar for the target of the cancel link, and popu

[Lift] Re: Newbie problem

2009-04-04 Thread David Pollak
On Sat, Apr 4, 2009 at 2:45 PM, mgm wrote: > > That did the trick! > > I apologize for the hubris of a newbie, but I think this is a bug in > LiftWeb. > > It was getting executed, but I guess with out the declaration, the > result was not getting implicitly converted from List[Node] to > NodeSeq.

[Lift] Re: Good way to implement "cancel" links?

2009-04-04 Thread David Pollak
S.referer.map(from => SHtml.link("cancel", () => redirectTo(from))) openOr Text("") On Sat, Apr 4, 2009 at 3:20 PM, Clemens Oertel wrote: > > Hi, > > What's the best way to get generic "Cancel" links into forms, lift- > style? Assuming that a form can be called from different pages in the > appli

[Lift] Re: Need for lightweight JPA archetype

2009-04-04 Thread bradford
I pasted it here: http://pastebin.com/m1da32b3 Thanks, Bradford On Apr 4, 5:25 pm, Derek Chen-Becker wrote: > If you have a second, could you send the stack trace for the NPE? That's > definitely not something that should be happening. > > Derek > > On Sat, Apr 4, 2009 at 2:34 PM, bradford wr

[Lift] Re: Unit tests for views & snippets

2009-04-04 Thread bradford
Hi Erik, I've been looking for answer to this question myself and have not yet had a chance to dig into it. This could be a good starting point: ./ sites/example/src/test/scala/net/liftweb/example/snippet/ WikiSpec.scala On Apr 4, 5:45 pm, "erik.karls...@iki.fi" wrote: > Hi, > > First thanks

[Lift] Re: Lift using JQuery and JCarousel

2009-04-04 Thread Chad Skinner
If you believe this to be a style issue, I would recommend downloading firefox and installing the "Web Developer Tools" plugin. One of the options it presents is edit CSS and you can add or remove stylesheet rules to see which is causing the conflict. -- Chad On Sat, Apr 4, 2009 at 3:43 PM, wapgui

[Lift] Re: Proposed URL Shortening widget

2009-04-04 Thread Chad Skinner
> > We do it in ESME. It's 1 class (the model) and 1 object. > What is ESME? --~--~-~--~~~---~--~~ 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

[Lift] Re: The Lift 1.1 list

2009-04-04 Thread Chad Skinner
> > > Also, it would be great it Lift1.1 included all of the > necessary .js, .css and class files for the new MenuWidget > I have not had the chance to actually work with lift yet and have been doing a lot of reading, but I have not read how lift currently handles script and css resources? Does i

[Lift] Re: Lift using JQuery and JCarousel

2009-04-04 Thread marius d.
I tried it last night but I'm getting a JS error in the clipping function ... I need todig more on this. Try firebug ... Br's, Marius On Apr 5, 5:32 am, Chad Skinner wrote: > If you believe this to be a style issue, I would recommend downloading > firefox and installing the "Web Developer Tools