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 =
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
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:
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
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
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
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:
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
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
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
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
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.
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
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
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):
, 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
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.
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:
: 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
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
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 :
(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
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.
, 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
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
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
, 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
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
- (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
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
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
+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
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
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,
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
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
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
401 - 437 of 437 matches
Mail list logo