[Lift] Re: Dynamic form building powered by XML
Ok been noodling this - what bout something like: object Wizard extends LiftWizard { val someGlobalVar: String = something object ScreenOne = new WizarScreen({ var firstName = TextField(value, FieldType.STRING, { // validation rules go here }) var lastName = TextField(value, FieldType.STRING, { // validation rules go here }) }) object ScreenTwo = new WizarScreen({ var aggreeTerms = Checkbox(onvalue, offvalue, FieldType.BOOL, { // validation rules go here }) }) def save = { // some databsae writing or whatever } } I didnt include the validation stuff as I thought that would be transfered from what ever the record/field stuff ends up looking like when its broken out from Mapper. Thoughts? Tim --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Suggestion for JPA Tutorial
Just a quick suggestion for the JPA tutorial Might it be a good idea to explain how to then take that JPA app to production with JNDI? I know thats another aspect of complexity, but it seems like it would be something that most people would want to know... Cheers Tim --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Caching JPA entities and JPA vs Hibernate
Sorry to drag this thread back up - I only just got back round to it (its my hobby project) WARN - No configuration found. Configuring ehcache from ehcache- failsafe.xml found in the classpath: jar:file:/Users/timperrett/.m2/ repository/net/sf/ehcache/ehcache/1.5.0/ehcache-1.5.0.jar!/ehcache- failsafe.xml WARN - Could not find a specific ehcache configuration for cache named [com.package.persistence.Domain]; using defaults. WARN - Could not find a specific ehcache configuration for cache named [com.package.persistence.Event]; using defaults. WARN - Could not find a specific ehcache configuration for cache named [com.package.persistence.Theme]; using defaults. Having an issue with ehcache.xml being picked up. The docs say that it need to be on the classpath - I've tried having it in META-INF, WEB- INF/classes/META-INF but yet nothing seems to work. It never gets picked up...? Where can i stick it so that its forced to be read? Cheers, Tim --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Suggestion for JPA Tutorial
I may have some time tomorrow to get it working. My initial goal is actually to get JNDI and JTA working in Jetty so that we have a dev environment that matches the production env. Derek On Tue, Sep 30, 2008 at 5:01 PM, Tim Perrett [EMAIL PROTECTED] wrote: Awesome - I personally would be very interested to hear how you got on wtih hibernate proper. Perhaps you can bosh up a quick sample ;-) Cheers Kris Tim On Sep 30, 11:14 pm, Kris Nuttycombe [EMAIL PROTECTED] wrote: Yup, Hibernate JTA on Glassfish, also with EJB remoting. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: mysterious script
Lift's changed up to send stuff via separate files rather than inline on the page. On Fri, Sep 26, 2008 at 2:40 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Daniel Green wrote: Is there an easy way to make this download as a separate .js file instead of inline? Or to suppress it if I'm not using AJAX at all? Having it inline decreases the number of requests the browser must make. True. But that's one hit and then it's cached. Putting it in the HTML not only mixes the two (which I prefer to avoid when possible), but forces the user to re-download that script on every page, even when there's no AJAX on the page. Actually, what I prefer is to have no JS at all in my HTML code (and that includes event handlers). I'd rather link to a script and have the script use the DOM to assign the event handlers to the code. Then if the script isn't downloaded for any reason, the code is nice and clean. And multiple JS scripts (or CSS stylesheets) could be gzipped up dynamically by Lift into a single gz file and served that way -- much faster -- you only have the single latency. Chas. -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---