Ha that's it - I was hoping they would magically work like java enum's :)
thanks
Ol
On Thu, Sep 18, 2008 at 2:33 PM, David Pollak [EMAIL PROTECTED] wrote:
It's because you have to create each of the Enumeration's String
representations manually:
scala object Gender extends Enumeration {
def add (xhtml : NodeSeq) : NodeSeq = {
def doAdd () = {
Model.em.merge(user)
redirectTo(index)
}
val currentId = user.id
var g: Can[Gender] = Empty
bind( user, xhtml,
id - SHtml.hidden({user.id = currentId}),
nameLast - SHtml.text(user.nameLast,
Guys,
I have this DTD in my layout:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
xmlns:lift=http://liftweb.net/;
And lift is replacing it with:
?xml version=1.0 encoding=UTF-8?
Ok I found a post going back some time explaining about the doc
types
However Im not sure how to implement it in boot? It appears that the
syntax steve details here:
Ah thanks David - sorry about the additional post... we must have
posted at the same time! Freeky!
I'll document this on the wiki
Cheers
Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to
Sorry. There was a bug in my code and the type inferencer didn't do its job:
var g: Can[*Gender.Value*] = Empty
selectObj*[Gender.Value]*(Gender.elements.toList.map(v = (v,
v.toString)),
g,
v = g = Full(v))
One other this you can do in Gender is:
val
What are the headers that are being sent to your browser?
On Thu, Sep 18, 2008 at 6:25 AM, Tim Perrett [EMAIL PROTECTED] wrote:
Interestingly, now the DTD is coming through properly the background
of my body is all screwy (but in the static html it works fine). When
the page is being served
timperrett$ curl -I http://127.0.0.1:8080
HTTP/1.1 200 OK
Expires: 0
Set-Cookie: JSESSIONID=1gid6kn3mc11r;Path=/
Content-Length: 3515
Content-Encoding: UTF-8
Content-Type: text/html
Server: Jetty(6.1.12rc1)
In this particular instance I've managed a work-around with CSS, but
it would be good to
I've also posted this information onto the wiki
http://liftweb.net/index.php/Setting_Template_Doctype
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to
Tim Perrett wrote:
timperrett$ curl -I http://127.0.0.1:8080
HTTP/1.1 200 OK
Expires: 0
Set-Cookie: JSESSIONID=1gid6kn3mc11r;Path=/
Content-Length: 3515
Content-Encoding: UTF-8
Content-Type: text/html
Server: Jetty(6.1.12rc1)
In this particular instance I've managed a work-around with
Are you running 0.9 or 0.10-SNAPSHOT (not that that should make a
difference).
Im running the bleeding edge.
Also, the Content-Type is text/html and it should be something else that
indicates xhtml.
Shouldnt XHTML have Content-type: application/xhtml+xml ?
What browser are you having a
Ok cool i'll give that a shot
Just whilst were talking about layouts
If I have two insertion points in my default.html
lift:bind name=header /
lift:bind name=content /
It appears to be not possible to insert into both elements from a
page? I've tried a whole bunch of ways in the html page
On Thu, Sep 18, 2008 at 7:14 AM, Tim Perrett [EMAIL PROTECTED] wrote:
Ok cool i'll give that a shot
Just whilst were talking about layouts
If I have two insertion points in my default.html
lift:bind name=header /
lift:bind name=content /
I think it's:
lift:surround with=default
13 matches
Mail list logo