[Lift] Forms validation formatter

2009-03-17 Thread Clemens Oertel
Hello everybody, Still trying to learn how to use lift efficiently and effectively, I got a little bit confused about the toForm function in the model/ mappers. Admittedly, my web framework background may be limited, but this looked to me as if some view code snuck into the model space

[Lift] Re: Forms validation formatter

2009-03-18 Thread Clemens Oertel
a look on Record and formvalidation support. Br's, Marius On Mar 17, 11:07 pm, Clemens Oertel clemens.oer...@gmail.com wrote: Hello everybody, Still trying to learn how to use lift efficiently and effectively, I got a little bit confused about the toForm function in the model/ mappers

[Lift] Re: Forms validation formatter

2009-03-31 Thread Clemens Oertel
debate now .. we had plenty of those :) Agreed. Best, Clemens Clemens Oertel clem...@oertel.ca Clemens Oertel clem...@oertel.ca --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Re: Forms validation formatter

2009-03-31 Thread Clemens Oertel
Marius: On 31-Mar-09, at 12:31 PM, marius d. wrote: On Mar 31, 5:06 pm, Clemens Oertel clemens.oer...@gmail.com wrote: - Why not provide the same template mechanism used for forms for HTML output? This way I can reuse the same template for both - given that my records have at least

[Lift] MappedDateTime - Do we have a Date? Or is it a timestamp?

2009-03-31 Thread Clemens Oertel
While trying to figure out why my MappedDateTime fields get stored in the DB with all the time info set to 0, I noticed the following: MappedDateTime (v. 1.0) claims to be a TimeStamp: def targetSQLType = Types.TIMESTAMP. However, it uses java.sql.Date for its JDBC- friendly converted

[Lift] Re: Forms validation formatter

2009-04-02 Thread Clemens Oertel
each field in the model, and refer to it in the view. I really wouldn't mind not having to mention it anywhere inbetween. This is actually a nice thing to do. Sorry that I misunderstood your intentions :) Thank you for all your help, Clemens Clemens Oertel clem...@oertel.ca Clemens

[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

[Lift] Re: Rails - Lift

2009-04-09 Thread Clemens Oertel
I don't think it's necessary to make a final decision about your IDE at any time. AFAIK, all major IDEs work quite well with Maven's pom files, so it's very easy to switch IDEs at any time. I for instance used NetBeans until last month, when JetBrains updated their Scala plugin - then I

[Lift] Re: (created|updated|deleted)_(by|at) trait

2009-04-10 Thread Clemens Oertel
Hi Franz, Here's what I did, roughly: trait TimeStamped[OwnerType : ExtMapper[OwnerType]] { this: ExtMapper[OwnerType] = private val thisTyped = this.asInstanceOf[MapperType] object createdOn extends ExtMappedDateTime(thisTyped) with LifecycleCallbacks { override def

[Lift] Re: Is Lift the right tool for us?

2009-04-21 Thread Clemens Oertel
If your project is more than a simple app (as I'm certain it is), I would go with JPA. Record is not ready yet, and Mapper is pretty limited. For example, AFAIK Mapper doesn't do many-to-many associations. I've had a lot of success with JPA/Hibernate, and it's getting pretty solid in Lift

[Lift] Record-aware secondary menu?

2009-05-09 Thread Clemens Oertel
Hi, In addition to the usual primary menu (Home, List entries, Add entry, Log in/out, ...), I would like to introduce a secondary, record-aware menu to my site. The entries in this menu would contain, for example, Edit current record, Delete current record, Show current record, ... There