[Lift] Re: Forms validation formatter

2009-04-04 Thread marius d.
On Apr 2, 6:57 pm, Clemens Oertel clemens.oer...@gmail.com 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

[Lift] Re: Forms validation formatter

2009-04-03 Thread David Pollak
On Tue, Mar 31, 2009 at 7:06 AM, Clemens Oertel clemens.oer...@gmail.comwrote: Hello, Sorry for the delay in my response, but I only get to play with lift on the weekends, and I wanted to look into your suggestions in more detail. I ported the toForm code from Record to Mapper (and by port,

[Lift] Re: Forms validation formatter

2009-04-03 Thread Lee Mighdoll
Most web sites I've worked on, there's a default way to display a form and that default is encapsulated in the model itself. This encapsulation does not bar you from building your own form renders, but it does give you nice default behavior. I found it odd at first too, to find web

[Lift] Re: Forms validation formatter

2009-04-02 Thread Clemens Oertel
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 on where the template is embedded, some of the

[Lift] Re: Forms validation formatter

2009-03-31 Thread Clemens Oertel
Hello, Sorry for the delay in my response, but I only get to play with lift on the weekends, and I wanted to look into your suggestions in more detail. I ported the toForm code from Record to Mapper (and by port, I mean mostly cut'n'paste). While doing so, I noticed 2 things: - Why not

[Lift] Re: Forms validation formatter

2009-03-31 Thread marius d.
On Mar 31, 5:06 pm, Clemens Oertel clemens.oer...@gmail.com wrote: Hello, Sorry for the delay in my response, but I only get to play with lift   on the weekends, and I wanted to look into your suggestions in more   detail. I ported the toForm code from Record to Mapper (and by port, I

[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] Re: Forms validation formatter

2009-03-31 Thread marius d.
On Mar 31, 9:09 pm, Clemens Oertel clemens.oer...@gmail.com wrote: 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

[Lift] Re: Forms validation formatter

2009-03-19 Thread marius d.
On Mar 18, 11:24 pm, Clemens clemens.oer...@gmail.com wrote: Thank you for your patience, Marius. Well you can use different RecordMeta implementations if you need to different representation of a record without sequential template change. So no state dependency. , b I'm really not

[Lift] Re: Forms validation formatter

2009-03-19 Thread marius d.
On Mar 19, 7:08 pm, marius d. marius.dan...@gmail.com wrote: On Mar 18, 11:24 pm, Clemens clemens.oer...@gmail.com wrote: Thank you for your patience, Marius. Well you can use different RecordMeta implementations if you need to different representation of a record without sequential

[Lift] Re: Forms validation formatter

2009-03-18 Thread Clemens Oertel
I admit to only having worked with mapper. I will look closer into record, (quick glance: it comes with next-to-the-field messages, nice). Marius, are you referring to the toForm functions? I'm probably just not seeing how to use them in a flexible manner. With respect to validation, I was

[Lift] Re: Forms validation formatter

2009-03-18 Thread marius d.
On Mar 18, 1:30 pm, Clemens Oertel clemens.oer...@gmail.com wrote: I admit to only having worked with mapper. I will look closer into   record, (quick glance: it comes with next-to-the-field messages, nice). Marius, are you referring to the toForm functions? I'm probably just   not seeing

[Lift] Re: Forms validation formatter

2009-03-18 Thread Clemens
Yes I am referring to toForm but note that you can provide your own template. Please see formTemplate. I did, thanks for the pointer. formTemplate applies to the record as a whole, right? If I want to render a record differently, I could set different templates one after the other - even

[Lift] Re: Forms validation formatter

2009-03-18 Thread marius d.
On Mar 18, 8:54 pm, Clemens clemens.oer...@gmail.com wrote: Yes I am referring to toForm but note that you can provide your own template. Please see formTemplate. I did, thanks for the pointer. formTemplate applies to the record as a whole, right? If I want to render a record

[Lift] Re: Forms validation formatter

2009-03-18 Thread Clemens
Thank you for your patience, Marius. Well you can use different RecordMeta implementations if you need to different representation of a record without sequential template change. So no state dependency. I'm really not trying to be difficult, but having multiple RecordMeta instances, for