[Lift] booleans in fieldOrder cause infinite list?

2008-10-03 Thread Charles F. Munat
When I add a boolean to the fieldOrder list, maven runs out of heap space on compile. As far as I can tell, the fieldOrder list becomes infinite. Here is an example: object Thing extends Thing with KeyedMetaMapper[Long, Thing] { override def dbTableName = things override def fieldOrder =

[Lift] Re: Change and New Features

2008-10-01 Thread Charles F. Munat
Wow. That's a lot of work. Nice job. Chas. David Pollak wrote: Folks, I've moved the JavaScript for Comet and Ajax to separately loaded JS files rather than putting them on the page. LiftRules.autoIncludeComet allows you to determine if the Comet stuff will be automatically included

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-26 Thread Charles F. Munat
Browser detection is a really bad idea, and I would recommend avoiding it at all costs. A much better solution is object detection. Here's one pretty good description about why this is so: http://developer.apple.com/internet/webcontent/objectdetection.html Here's another:

[Lift] mysterious script

2008-09-26 Thread Charles F. Munat
In my HTML output there is a script that begins: // ![CDATA[ var lift_ajaxQueue = []; var lift_ajaxInProcess = null; var lift_ajaxShowing = false; var lift_ajaxRetryCount = 3 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

[Lift] Re: mysterious script

2008-09-26 Thread Charles F. Munat
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

[Lift] Re: lift:surround and multiple templates

2008-09-26 Thread Charles F. Munat
Done. http://liftweb.net/index.php/LiftTags#surround Chas. Mateusz Fiołka wrote: I also lost half a day with this error. Is this rule at least documented anywhere? Regards, Mateusz On Thu, Sep 25, 2008 at 9:38 PM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote

[Lift] Re: mysterious script

2008-09-26 Thread Charles F. Munat
David Pollak wrote: BTW, the script element on this script needs a type=text/javascript attribute or it fails validation. What validator? The W3C validator for XHTML: http://validator.w3.org/ BTW, if you use Firefox you can add the Web Developer Plugin:

[Lift] Re: lift:surround and multiple templates

2008-09-25 Thread Charles F. Munat
rather than admin.html and change your 'with=admin' to 'with=admin2' and it'll work. Thanks, David Charles F. Munat wrote: I changed the calling template to (exactly): lift:surround with=admin at=content/ I changed admin.html to (exactly): html/ I did mvn clean and mvn jetty:run -U

[Lift] Re: Making Record a reality [was: Validations, Server side controls etc]

2008-09-24 Thread Charles F. Munat
Charles F. Munat wrote: Running Ajax calls between fields for validation is pretty ugly, javascript validation would be better That's what I said. Sorry, Oliver. On re-reading, that sounds a little snippy, but I didn't mean it that way. I just meant that we agree -- after mentioning

[Lift] Re: ExtLink not working

2008-09-24 Thread Charles F. Munat
Pollak wrote: And how did you convert the Loc to an URL? Marius wrote: Looks to me like a bug. I mean it appears to render the random string generated instead of what createLink returns. Br's, Marius On Sep 24, 12:15 pm, Charles F. Munat [EMAIL PROTECTED] wrote: When I create

[Lift] Re: Making Record a reality [was: Validations, Server side controls etc]

2008-09-23 Thread Charles F. Munat
http://liftweb.net/index.php/RequirementsForForms David Pollak wrote: Charles F. Munat wrote: Oliver Lambert wrote: Do/should validations stop at the first error message on the field, at least by default? I much prefer that they do not. It really irritates me when I'm using

[Lift] not binding

2008-09-23 Thread Charles F. Munat
I'm still not clear on what causes this type of error: XML Parsing Error: prefix not bound to a namespace Location: http://localhost:8081/ Line Number 37, Column 10: limenu:bind //li ^ Can anyone explain? Thanks, Chas.

[Lift] Re: Making Record a reality [was: Validations, Server side controls etc]

2008-09-23 Thread Charles F. Munat
Oliver wrote: I like them to be validated as well, and to short circuit the remainder of the field validation. Feel free to set your validation up that way. Personally, I'd like my validation code to be smart enough to note when two non-redundant validation problems occur and to mention

[Lift] Re: not binding

2008-09-23 Thread Charles F. Munat
processed. So, what's the page source (the stuff that's getting delivered to the browser)? Charles F. Munat wrote: I'm still not clear on what causes this type of error: XML Parsing Error: prefix not bound to a namespace Location: http://localhost:8081/ Line Number 37, Column 10

[Lift] Lift Wiki search issues

2008-09-21 Thread Charles F. Munat
There are some things that are impossible to find on the wiki because the words are too common and are apparently on the stop-words list. Example: the following page discusses many-to-many relationships (and includes those words on the page):

[Lift] Re: Lift Wiki search issues

2008-09-21 Thread Charles F. Munat
, 2008 at 9:33 AM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Good point. I'm a little dismayed that I didn't think of this considering that I use it on many other sites. Doh. Google does do a much better job. I wonder how easy it would be to switch

[Lift] Current Loc

2008-09-21 Thread Charles F. Munat
I seem to remember asking this before, but I can't seem to find the answer anywhere and a review of the source code hasn't helped. Is there a quick way in a snippet to determine which Loc in the SiteMap has been requested? One thing I need this for is to tell when I'm on the home page.

[Lift] JPA and enumerations

2008-09-19 Thread Charles F. Munat
I'm still trying to get a Gender enumeration to work with JPA. The problem now seems to be on the JPA end (I'm using the JPADemo code that Derek provided). I get the following error: javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for:

[Lift] Re: JPA and enumerations

2008-09-19 Thread Charles F. Munat
: Gender = Gender(genderInt) def gender_=(what: Gender.Value) = Charles F. Munat wrote: I'm still trying to get a Gender enumeration to work with JPA. The problem now seems to be on the JPA end (I'm using the JPADemo code that Derek provided). I get the following error

[Lift] Re: bind and enumerations

2008-09-18 Thread Charles F. Munat
Pollak wrote: Please post the part of the code where you define the g var. On Wed, Sep 17, 2008 at 9:45 PM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: And it gives me: error: missing parameter type gender - SHtml.selectObj

[Lift] JPA demo overwrites attributes

2008-09-17 Thread Charles F. Munat
I'm trying to figure out the JPA demo by extending it to permit login. To this end, I added three attributes to the User model: validationCode, passwordHash, and passwordSalt: class User { @Id @GeneratedValue{val strategy = GenerationType.AUTO} var id : Long = _ var nameLast :

[Lift] Re: JPA demo overwrites attributes

2008-09-17 Thread Charles F. Munat
(Save changes, doEdit)) Derek On Wed, Sep 17, 2008 at 2:41 PM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm trying to figure out the JPA demo by extending it to permit login. To this end, I added three attributes to the User model: validationCode

[Lift] bind and enumerations

2008-09-17 Thread Charles F. Munat
I'm using an enumeration for Gender: @serializable object Gender extends Enumeration { type Gender = Value val Male, Female = Value } import Gender._ How do I use this in bind? And is there an easy way to create a drop down list with blank, Male, and Female options? Thanks! Chas.

[Lift] Re: bind and enumerations

2008-09-17 Thread Charles F. Munat
, v.toString)), g, v = g = Full(v)) On Wed, Sep 17, 2008 at 7:33 PM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm using an enumeration for Gender: @serializable object Gender extends Enumeration { type Gender

[Lift] Re: JPA Table annotation

2008-09-16 Thread Charles F. Munat
Sep 2008, at 23:43, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: When I use the @Table annotation to set the table name for JPA, thus: @Entity @Table(name=ROLES) class Role It belches out that Table does not have

[Lift] Re: Desiderata. Was: Re: [Lift] Re: RBAC in Lift

2008-09-12 Thread Charles F. Munat
portion available for your handlers. Derek On Thu, Sep 11, 2008 at 4:09 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Marius wrote: Also, I like the user-created pages to be accessible by URL (i.e. without a query string) with a readable URL, so: mysite.com/some_page Not: mysite.com

[Lift] Re: RBAC in Lift

2008-09-11 Thread Charles F. Munat
, JAAS is possibility. However, I'm trying to decide whether to use Acegi (without Spring) or look at something like JSecurity. Any thoughts as to which would be a better fit with Lift? Oliver On 08/09/2008, at 9:24 AM, Charles F. Munat wrote: I'm building a website for a group that wants

[Lift] Re: Desiderata. Was: Re: [Lift] Re: RBAC in Lift

2008-09-11 Thread Charles F. Munat
Marius wrote: Also, I like the user-created pages to be accessible by URL (i.e. without a query string) with a readable URL, so: mysite.com/some_page Not: mysite.com/p123456, mysite.com?page=some_page, or mysite.com?page=123456 What is the difference between mysite.com/some_page and

[Lift] Re: Site map question

2008-09-11 Thread Charles F. Munat
- (if (loc.name != name) li id={name}{link}/li else li id={name}span class=this_page{loc.text.text()}/span/li )) yield item match { case e: Elem = e % S.prefixedAttrsToMetaData(a) case x = x } } Charles F. Munat wrote: Yeah, I've been tracking that down. I rewrote

[Lift] Snippet question

2008-09-11 Thread Charles F. Munat
I copied the Misc snippet over from the example, changed the package and import statements to fit my app, and created a users/index page. lift:surround with=default at=content a href='/simple/add'Add a User/a table width=90% lift:Misc.users / /table /lift:surround The app builds

[Lift] RBAC in Lift

2008-09-07 Thread Charles F. Munat
I'm building a website for a group that wants to have different levels of access to the site. Essentially, there will be five roles, from Admin down to Guest, with each role having access to different parts of the site. Some pages will only be accessible to users with a specific role. For

[Lift] Re: SiteMaps and multiple menus

2008-09-07 Thread Charles F. Munat
+features http://groups.google.com/group/liftweb/browse_thread/thread/dbdf6a17b9704c99/30f5168e87161f74?hl=enlnk=gstq=new+sitemap%2Fmenu+features On Sat, Sep 6, 2008 at 10:54 PM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: So how would one create a site map

[Lift] Re: JPA w/Scala

2008-09-07 Thread Charles F. Munat
Oh, hell yeah. Please! And down the road, when the mapper becomes agnostic, would there be an archetype that used JPA as the back end for the Lift mapper? Chas. Tim Perrett wrote: Ah cool - this is quite nice actually; good work Oliver! @Derek, what are your thoughts? It certainly

[Lift] SiteMaps and multiple menus

2008-09-06 Thread Charles F. Munat
So how would one create a site map and then break it into two or more pieces and show those pieces on different parts of the page? I want one menu across the top of the page for certain pages (home, about, contact, login, etc.), then a general navigation bar down the left side of the page,

[Lift] Re: JPA w/Scala - never mind

2008-09-02 Thread Charles F. Munat
I figured it out, I think. Should be author.name, without the parentheses. Charles F. Munat wrote: Has anyone followed the JPA tutorial using pure Scala instead of Java? I've got it very close to running, but I am getting the following error: [WARNING] /private/var/www/wsbg/webapp/src

[Lift] Re: Documentation

2008-09-01 Thread Charles F. Munat
they get quick answers or not. I recommend that you post your questions to this list. It might be worthwhile to identify your questions with some prefix in the subject like DocQ: ..., but I think it better that you don't fragment the list. Jim On Sun, Aug 31, 2008 at 9:09 PM, Charles F. Munat

[Lift] Re: Documentation

2008-08-31 Thread Charles F. Munat
OK, I have an idea and I think I've narrowed it down to something I can fit into my schedule. I'll work on it and hopefully will have something in the next week or so. Chas. Charles F. Munat wrote: Actually, after reviewing my schedule and reconsidering the amount of time required, I'm

<    1   2   3   4   5