Here's a new one I haven't seen before. Are my versions out of whack?
Should I be moving up to Scala 2.7.3? What's wrong here?
Any ideas?
Chas.
HTTP ERROR: 500
net.liftweb.util.AltXML$.toXML(Lscala/xml/Node;Lscala/xml/NamespaceBinding;Lscala/StringBuilder;ZZ)V
RequestURI=/
Caused by:
java.l
Summer solstice? SUMMER solstice? You hemisphere bigot! There you go
again, insulting half the planet...
(Back to the lawyers again... :-)
Chas.
Marc Boschma wrote:
> Funny thing is the first thought that came to mind here was a Cricket
> Box :) (and not the KFC variety)
>
> To close the se
As for my age, I was born in 86' :-D
>
> Cheers, Tim
>
>
> On 23 Dec 2008, at 20:41, Charles F. Munat wrote:
>
> > You must be too young to remember Netscape 4. And IE on the Mac?
>
>
>
>
>
> >
--~--~-~--~~
You must be too young to remember Netscape 4. And IE on the Mac?
Tim Perrett wrote:
> Wow, thats pretty impressive! To not even work in the worst-bit-of-
> software-enginering-know-to-man (aka IE 6) is a serious feat in
> itself! Kudos! lol
>
> On 23 Dec 2008, at 15:39, Derek Chen-Becker wrot
Yay!
David Pollak wrote:
> Derek,
>
> This commit should take care of it:
> http://github.com/dpp/liftweb/commit/2650e10981990eeb08d04d686be27d77da2a5434
>
> Also, it takes care of Charles' "I had index at the end of my URLs" problem.
>
> Thanks,
>
> David
>
> On Tue, Dec 9, 2008 at 2:04 PM,
I have six sites, four of them that will be public, that are coming
online over the next few days/weeks. I'll add them four public ones to
your list as they go live.
Chas.
Daniel Cer wrote:
>>> Does anyone here have any public Lift powered webapps? If so, would
>>> you mind sharing the URL and
I, too, like ?, but I agree that others may not. Could mean too many
things. But what about ??? instead? Or just two (??)? Or why not steal
Haskell's thunder and use Maybe?
Chas.
Marius wrote:
> Personally I kind of like ? name ... although I feel many people will
> not. Going further having F
Generally, I agree, but not at the expense of understandability. And
about the only time I have to type it is as a result type when it can't
be inferred. The rest of the time I'm using Full() or Empty, which are
nice and short. Even Box, which I think is much better, requires
explaining. Optio
I agree. I think Box is more cross-cultural and has no confusing
meanings (e.g. can = possible). But Tyler makes a good point. Really, it
should be called something like OptionWithFailure. And we should stop
trying to abbreviate everything (*maybe* OptionWFailure). After all, how
often do you
Yes, but which is it: half empty or half full? You'd think at this stage
of development we could at least answer that old question.
Chas.
Derek Chen-Becker wrote:
> What about renaming it Glass? Then we could add:
>
> case class HalfFull[T](data : T) extends Glass[T]
> type HalfEmpty[T] = Half
I copied and pasted the error message code into my own error message
utility and then changed the blank output to Text(""). I also wanted to
rewrite other parts of it.
It seems there is always a trade-off between convenience and
configuration. My coding style is very different from David's (at
I'm not even sure there is a problem.
I have a complicated multi-page survey and on one page there is a table
with multiple rows where each row is a separate object. You can add new
blank rows and delete rows. To make it all more complicated, each field
updates the database using AJAX onChange
ers, meta-tags, etc.) that will indicate that the browser should
> not cache the page. I'll insure that all those things are sent.
>
> Thanks,
>
> David
>
> On Wed, Dec 10, 2008 at 11:23 AM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
&
> Tim
>
> Sent from my iPhone
>
> On 10 Dec 2008, at 02:00, "Charles F. Munat" <[EMAIL PROTECTED]> wrote:
>
>> I want to (attempt to) prevent the browser from caching certain
>> pages as
>> there is a problem if the user backs up to them. I
I want to (attempt to) prevent the browser from caching certain pages as
there is a problem if the user backs up to them. I can do this with HTTP
headers, of course.
Question: Is this functionality built-in to Lift? I could find nothing
on the wiki. If not, how does one set the HTTP headers on
Derek Chen-Becker wrote:
> Hmmm. It doesn't seem like this should be causing issues. Probably the
> most common mistake made with merge is that merge returns an entirely
> new object, so you discard the original.
Ah! That's good to know. I think that after I used Model.merge(row) I
expected ro
I'm not really very clear on how all this works, but I've had a terrible
time with merging objects.
I built a multi-page survey with forty-some questions on it. One of the
questions asks users to fill out a table in which each row is an object
-- call it a Row. I don't know in advance whether
Chen-Becker wrote:
> The most recent thing would be what's in the example JPA Demo site. I
> have making an archetype on my todo list but it will probably be a while
> before I get that done, sorry :(
>
> Derek
>
> On Sun, Dec 7, 2008 at 11:49 PM, Charles F. Munat <[
Is there a Maven archetype for generating a Lift/JPA project? I want to
start a new one. I could copy an old one across and delete everything I
don't need, but I suspect that there've been many improvements to the
code since I last created a Lift/JPA site.
Thanks.
Chas.
--~--~-~--~--
nd it would be consistent with my Linux box.
Chas.
David Pollak wrote:
> There was a defect in the plugin. Cauyuon posted a fix to this list
> last week.
>
> On Mon, Dec 1, 2008 at 3:07 PM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
You can use Lyx to create a pdf of Tyler & Derek's book and then print
that. It's a big install. I'm using it on Mac and it works very well.
http://www.lyx.org/
Once you install it I think you can just double-click on the master.lyx
file and then choose File > Export > ... (I use pdflatex).
I
> >{text})(_ % _)
>
> All the various form element creation methods take an attrs vararg.
>
> Also, note the use of foldLeft
>
> Thanks,
>
> David
>
>
> On Tue, Nov 18, 2008 at 1:25 AM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[
n give it a try.
>
> Thanks,
>
> David
>
> On Mon, Dec 1, 2008 at 2:18 PM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> Hmm. Crap. Damn that IE.
>
> Well, I have something working in Firefox on Mac
reakpoints in the Scala code
> and inspect variables. I have not tried it myself.
>
> Thanks,
>
> David
>
>
> On Wed, Oct 15, 2008 at 8:22 AM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
>
the NetBeans debugger up to
> a running Jetty instance and do breakpoints in the Scala code and
> inspect variables. I have not tried it myself.
>
> Thanks,
>
> David
>
> On Wed, Oct 15, 2008 at 8:22 AM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL P
s that your button is inside a form. It
> turns out that there's a race condition where sometimes the
> XmlHttpRequest will get fired first and sometimes the form will be
> submitted first.
>
> Lemme see if I can do something fancy with returning false from the
> button ajax reque
I have a table in which each row represents an object in the database,
with each cell in the row an input bound to an attribute of the object.
I want to be able to add rows (with new, blank objects) and delete rows
(deleting both the row on the page and the associated object in the
database).
actually pretty close in your demo code. Here's what it could
> look like:
>
> val user: User =
> Model.createNamedQuery[User](
> "findUserByUsername",
> "username" -> "hal"
> ).findOne or (new User)
>
> Derek
>
there a simpler way than all that
> HQL?
>
> Cheers
>
> Tim
>
> On Dec 1, 10:28 am, "Charles F. Munat" <[EMAIL PROTECTED]> wrote:
>> Are you including a link to the parent node or are you just using the
>> left and right values to figure out which n
estors, but you have to remember to update it on moves.
The level field is very useful if you want to go, say, two levels deep
on children, or to parent and grandparent, but not great-grandparent.)
Chas.
Tim Perrett wrote:
>
>
> On Dec 1, 9:21 am, "Charles F. Munat" <[EMAI
That will probably work. I was thinking it would be nice to build in a
method findOrNew that would do it for me... but it looks like that might
involve some sort of implicit manifest thingy, so I don't know.
Chas.
Viktor Klang wrote:
>
>
> On Mon, Dec 1, 2008 at 7:12 AM, Ch
> On Mon, Dec 1, 2008 at 5:42 AM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> Doing nested sets in your Lift snippet is pretty easy with JPA. I'm
> doing it on one of my Lift sites. One thing to remember, however, is to
Is there a simple way in JPA/Lift to query to retrieve a single object
from the database, assign it to a val if found, or create a new object
of that type and assign it instead of there is no such object in the
database?
Sort of a...
val user: User =
Model.createNamedQuery(
"findUserB
Doing nested sets in your Lift snippet is pretty easy with JPA. I'm
doing it on one of my Lift sites. One thing to remember, however, is to
use a transaction. You don't want to do half the update to the tree and
then have another use start an update before you've finished yours (or
have half o
So that's what Noop is for...
David Pollak wrote:
> Shtml.ajaxCheckbox(thing.isChecked, b => {thing.setChecked(b); JsCmds.Noop})
>
> On Nov 25, 2008 4:12 AM, "Charles F. Munat" <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
I want to update an attribute on a model object in the database via AJAX
when a checkbox is clicked on a page. I presume that ajaxCheckbox is for
this purpose.
Can anyone quickly give me an example of how it works?
If I have an attribute called isActive, how would I create an
ajaxCheckbox tha
eady to be edited, etc.
>
>
>
>
> On Wed, Nov 19, 2008 at 1:43 PM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> Hey David,
>
> Any chance you could post something for those of us unfamiliar with
>
Hey David,
Any chance you could post something for those of us unfamiliar with
NetBeans on how to import current Lift projects into NB 6.5 and what
makes it rock the universe? I'd love to switch over from TextMate if it
will work, but I'm not sure how to go about it.
Chas.
--~--~-~--
Done.
Jorge Ortiz wrote:
> Anytime the compiler throws an exception it's a bug and should be filed.
>
> On Tue, Nov 18, 2008 at 3:23 PM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> One would think so, and maybe it i
Ortiz wrote:
> That's a bug in the Scala compiler.
>
> Try to comment out code and reduce the bug to it's minimal form to file
> a bug report: http://lampsvn.epfl.ch/trac/scala/
>
> --j
>
> On Tue, Nov 18, 2008 at 2:44 PM, Charles F. Munat <[EMAIL PROTECTED]
I changed the Scala version to 2.7.2, blew away .m2, did an mvn clean,
and I now get the error below when I try to compile. I note that none of
the files concerned are in my app, so I presume this is a Lift thing...
Any ideas? I'll keep messing with it.
[INFO] [compiler:compile]
[INFO] Nothing
ays you have to release the source code of your application, if
> you use the open source license for BDB.
>
>
> On Tue, Nov 18, 2008 at 9:27 AM, Alex Boisvert <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> On Mon, Nov 17, 2008 at 9:04
any of the Berkeley DB products to back my web service without
paying for it. Am I missing something?
Chas.
Alex Boisvert wrote:
> On Mon, Nov 17, 2008 at 9:04 PM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> Everything yo
are, I'll push the code to my github repo
>
> Cheers, Tim
>
> Sent from my iPhone
>
> On 18 Nov 2008, at 06:42, "Charles F. Munat" <[EMAIL PROTECTED]> wrote:
>
>> Yeah, I'm thinking Digest is the way I probably want to go. Sorry to
>&g
t this:
(I added default rows and cols attributes because they are required for
valid XHTML.)
For what it's worth, this works much better for me.
Chas.
Charles F. Munat wrote:
> Ha. Great minds stink alike. I just discovered this little setback
> (after adding "id" attributes
It's on github, I think:
git clone git://github.com/tjweir/liftbook.git
Chas.
Marius wrote:
> Tyler is there a way for me to sneaky see what you guys done so
> far? :)
>
> Br's,
> Marius
>
> On Nov 18, 2:50 am, TylerWeir <[EMAIL PROTECTED]> wrote:
>> Derek and I expect the first draft of ours
gt; <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> wrote:
>
>
>
> On Mon, Nov 17, 2008 at 3:41 PM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> Added:
>
>
> http://lif
)
>
> It's unfortunatly pretty complex, so is taking longer than I'd hoped.
> I'm impletmenting Basic and Digest auth; the latter being the most
> secure.
>
> Cheers, Tim
>
> Sent from my iPhone
>
> On 18 Nov 2008, at 02:21, "Charles F. Muna
t license it's under? The Oracle website just says Open Source.
>
> On Mon, Nov 17, 2008 at 8:21 PM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> One thing I'm working on is a two-part application that involves a Lift
&
One thing I'm working on is a two-part application that involves a Lift
interface app and a REST CRUD back end. I plan to do the back end in
Lift as well.
One reason for the separation is that it allows me to build other front
ends for the web service (a desktop app, something on the iPhone, a
<[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Try:
>
> SHtml.text(user.name <http://user.name>, user.name
> <http://user.name> = _) %
> ("size", "24") %
> ("maxlength", "48&quo
t;[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Try:
>
> SHtml.text(user.name <http://user.name>, user.name
> <http://user.name> = _) %
> ("size", "24") %
> ("maxlength", "48"
;, "48") %
> ("id", "user_name") %
> ("title", "Enter your name")
>
> That should work.
>
> --j
>
> On Mon, Nov 17, 2008 at 12:21 PM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
This is very exciting. Great job. Thanks!
Chas.
Jorge Ortiz wrote:
> I've just upgraded Lift's trunk to work with the newest release of Scala
> (2.7.2), Specs (1.4.0), and Scalacheck (1.5). These changes are
> available in the source code immediately, and should be reflected in the
> binaries
I spend a lot of time writing % new UnprefixedAttribute(...) to add
attributes to SHtml form elements (input, textarea, select, etc.).
It would be nice if the relevant SHtml methods would permit optional
extra parameters in the form of tuples where contents are name-value
pairs that get transl
on XHTML and returned to HTML when Lift convinced
me that my despair was premature. I've since been moving my sites back
to XHTML and even trying to serve it with the proper mime type. So
thanks for that!
I'll post other issues as they come up.
Chas.
David Pollak wrote:
>
>
>
Is there an interest in Lift using valid XHTML, or do the Lift crew only
care if it's well-formed? I ask because the current version of Lift
creates XHTML that is invalid on every page unless you adjust the
default settings, and even then there seems to be a lot of
framework-generated HTML tha
That's kind of what I figured. Thanks for the code. I'll look through it.
Chas.
David Pollak wrote:
> I think you're going to have to do this one manually. Attached, please
> find some less than efficient code.
>
> On Thu, Nov 13, 2008 at 10:30 AM, Charles
Thanks, but that's what I was trying, and it outputs a String, not the
nodes.
Chas.
Matt Harrington wrote:
> On Thu, Nov 13, 2008 at 10:14 AM, Charles F. Munat <[EMAIL PROTECTED]> wrote:
>> If I have a list thus:
>>
>> List(A,B,C)
>>
>>
>>
cala> import scala.xml.NodeSeq
> import scala.xml.NodeSeq
> scala> val n: NodeSeq = List(A, B, C)
> n: scala.xml.NodeSeq = ABC
>
> --j
>
> On Thu, Nov 13, 2008 at 10:14 AM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
If I have an entity thus:
@Entity
class Category {
var name : String = ""
}
and another:
@Entity
class Example {
var name : String = ""
var exampleType : String = ""
@ManyToOne
var parent : Category = new Category()
}
And this data:
Category
A
B
C
Example
black
If I have a list thus:
List(A,B,C)
How can a get a NodeSeq thus from this:
ABC
I'm sure this is drop-dead simple, but it's still not obvious to me...
Thanks,
Chas.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
I'll test this as soon as I get a chance.
Chas.
Tim Perrett wrote:
> Chas,
>
> What happens if you access one under 127.0.0.1 and the other under
> localhost? Do you still see this?
>
> Cheers, Tim
>
> Sent from my iPhone
>
> On 1 Nov 2008, at 23:16, &
I don't know if anyone else has observed this behavior, but...
When I run my Lift app (mvn jetty:run) on port , and simultaneously
run the Lift sample app (mvn jetty:run) on port 8080, the SessionVars in
my app get hosed. I have a CurrentUserId session variable, and it just
disappears, cau
t;[EMAIL PROTECTED]> wrote:
>>>>>> Yeah - I usually would add dependecies o a project unless really
>>>>>> nesicary, but as it was only 150k all in I thought what the hell
>>>>>> Seems to be working quite nicely so far :-)
>>>>&
;>>
>>>>> Yeah - I usually would add dependecies o a project unless really
>>>>> nesicary, but as it was only 150k all in I thought what the hell
>>>>> Seems to be working quite nicely so far :-)
>>>>> Cheers, Tim
>>&g
pository for Snapshots
> http://scala-tools.org/repo-snapshots
>
>
>
> and set the version of lift-... to 0.10-SNAPSHOT
>
> quicker than update and build lift every day ;)
>
> /davidB
>
> On Tue, Oct 28, 2008 at 7:25 PM, Charles F. Munat <[EMAIL PRO
t; mvn clean package install
>
> If you then want to update from time to time, just do:
>
> git pull
>
> Cheers
>
> Tim
>
>
>
> On 28/10/2008 18:25, "Charles F. Munat" <[EMAIL PROTECTED]> wrote:
>
>> Is there a way to get Maven to dow
Is there a way to get Maven to download the lift-webkit jar (0.10
snapshot)? If not, does one just download lift from github, run mvn
package (compile? install?) and then install the resulting jar?
I'm not sure I'm doing this right.
Thanks,
Chas.
--~--~-~--~~~---~
resql jdbc jar and the
markdownj jar into the maven repository, I'd be interested.)
Thanks,
Chas.
David Pollak wrote:
> This is a bug in Scala 2.7.1 Please do a mvn clean install and it'll go
> away.
>
> On Mon, Oct 27, 2008 at 6:53 PM, Charles F. Munat <[EMAIL PROTECTE
Anyone know what this means:
[WARNING] Exception in thread "main" java.lang.RuntimeException:
malformed Scala signature of Mailer at 5411; reference value mail of
package javax refers to nonexisting symbol.
[WARNING] at
scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.errorBadSignatur
"0"/>. Try change your docBase to the
> folder of your webapp. You can alsouse context.xml but depends on your
> tomcat version where this should be. On tomcat 6.x context.xml should
> be in META-INF folder (if I remember correctly)
>
>
>
> Br's,
> Mariu
David Pollak wrote:
> Is having the context path a bad thing in the URL presented to the
> user? http://foo.com/foo/xxx ?
It might not be in all cases, but in my case it's a show-stopper. I'm
going to have to figure out a way around this really quickly -- I've got
to go live with this today.
uot; in tomcat?
>
> On Oct 27, 8:45 am, "Charles F. Munat" <[EMAIL PROTECTED]> wrote:
>> I've deployed a beta version of my app to Tomcat, so it's available at
>> localhost:8080/xxx/
>>
>> Then I proxied Apache over to localhost:8080/xxx/
>
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
It's passing everything through OK, just prepending /xxx to every link
-- stylesheets, images, anchors, etc.
Chas.
David Bernard wrote:
> How do you configure you're apache proxy ?
>
> On Mon,
I've deployed a beta version of my app to Tomcat, so it's available at
localhost:8080/xxx/
Then I proxied Apache over to localhost:8080/xxx/
And it works.
But all the links in my app have /xxx/ prepended to them, so they try to
go to /xxx/xxx/the_link instead of just /xxx/the_link. Lift (or t
Very nice. I'm going to check this Jasypt out when I get a chance. You
just drop in the jar and then you can use it?
Chas.
Tim Perrett wrote:
> FYI - for completeness, this is what I did in my model class:
>
> http://blog.timperrett.com/2008/10/27/adding-jasypt-encryption-to-your-scala-jpa-ent
Here's everything I use, which includes the ability to reset the
password. I'm sure most of this could be done better, but it's working
fine for me right now.
In User.scala in the perisistence layer:
/**
This class represents a user with login privileges on the website.
*/
@Entity
@Table{va
nerate JS code to add
> fields to a Record from client side as well. Such thing may have side
> effects when the Records is mapped to a RDBMS table .. such as adding
> a new field to a record, that record may not correspond to the table
> structure ...
>
> Br's,
> Mari
ot; <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> > > > After migrating from Hibernate 3.0 to 3.3.1 the past 2 weeks
> I have
> > > gained
> > > > some hatred towards Hibernate.
> >
> > > > I had
I have a Recipe form that allows for multiple Ingredients. (What's more,
each Ingredient has multiple fields.)
I'd like the blank Recipe form to list, say, three blank Ingredient
subforms. But I'd like the user to be able to delete unneeded subforms
(via a - button next to each subform), or ad
I stole this from the wiki, but it works for me:
val profile_rewriter: LiftRules.RewritePf = {
case RewriteRequest(path @ ParsePath("members" :: "profile" :: page ::
_, _, _,_), _, _) =>
RewriteResponse(
ParsePath("profiles" :: "index" :: Nil, "", true, false),
Map("m
> > If you manage to get the created_on and updated_at stuff
> working I'd
> > > > > > be interested in how you did it as I think its something
> we should be
> > > > > > using.
> >
> > > > > >
This makes things a little easier for me:
alias g1="cd ..; mvn clean compile; cd *app"
alias g2="cd ../*per; mvn install; cd ../*app"
alias g3="mvn jetty:run"
alias g3u="mvn jetty:run -U"
(My persistence layer is xxx-per, and my app is xxx-app.)
I run the above from the xxx/xxx-app directory.
uot;, "links"), "name" ->
> Text(link.name <http://link.name>)
> })
>
> bind("category", chooseTemplate("categories", "entries"),
>"name" -> Text(category.name <http://category.name>),
>
I have a group of links that are assigned to categories.
I want to pull the links and categories down and output them like this:
Category A
Link 1
Link 2
Category B
Link 3
...
Is there a way to do this with bind, or should I just build the XHTML in
the snippet?
Thanks!
Chas.
--~--
Nice work, Dave and Tim.
Here's a question that just popped into my head: How do you test this
code without moving money around? How will I know my installation will
work? Is there a way to fake it?
Chas.
Tim Perrett wrote:
> Just for completness sakes, if your reading this and thinking your
Minor correction. findOne in the code below should be getSingleResult().
Forgot I'd changed it...
Charles F. Munat wrote:
> This depends on HTTP_REFERER being set. It usually is, but there's no
> guarantee. Another way I've found is to set a SessionVar in the
> addDis
Tue, Oct 21, 2008 at 6:00 AM, Viktor Klang <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> But both are updatable false and insertable false?
>
> I might be daft, but that doesn't look good to me...
>
> Cheers
> Viktor
>
>
This depends on HTTP_REFERER being set. It usually is, but there's no
guarantee. Another way I've found is to set a SessionVar in the
addDispatchBefore (or wherever you're redirecting to the login page).
Here's what I'm doing (suggestions for improvement most welcome):
(Member is the user mode
What's your definition of a CMS? Does it include things like workflow?
Approvals? Content reusability?
I'm working on several sites right now that are sort of mini-CMS sites.
Users can add pages, change the content, etc. I have built some larger
sites along these lines previously, but not in L
n't look good to me...
>
> Cheers
> Viktor
>
> On Tue, Oct 21, 2008 at 5:06 AM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> In my Lift app based on the JPA demo I tried this, which should work
> bea
In my Lift app based on the JPA demo I tried this, which should work
beautifully according to everything I've been able to get my hands on:
@Temporal(TemporalType.TIMESTAMP)
@Column{val name="CREATED_AT", val updatable = false,
val insertable = false}
@org.hibernate.annotations.Generated(org.
this is to save the object but have different
> "statuses" (DRAFT,LIVE) etc.
>
> There are surely other ways of doing it aswell, this is just from the
> top of my head.
>
>
> Cheers,
> Viktor
>
> On Sat, Oct 18, 2008 at 1:08 AM, Charles F. Munat <[EM
some great
> information in there.
>
> Cheers
>
> Tim
>
> On Oct 18, 12:08 am, "Charles F. Munat" <[EMAIL PROTECTED]> wrote:
>> Derek,
>>
>> Have you figured out how to keep the object in the continuation instead
>> of just the id?
>&g
f "transient" objects. For
> instance, you'd add the following field and method to your entities to
> get the timestamp:
>
> @Temporal{val value = TemporalType.TIMESTAMP}
> var recordTime : java.util.Date = _
>
> @PrePersist
> def updateTimestamp = rec
Derek,
Have you figured out how to keep the object in the continuation instead
of just the id?
Also, I'm working on a form. I'd like it to have four "states":
1. Initial form is blank
a. Click Save to save the data
b. Click Preview to preview the data
2. Preview shows what it will loo
ing])() = true
>
> and then you pass isInRole() and this should return a
> function that takes zero arguments. If compiler complains you can
> pass
>
> if (isInRole() _) // explicit partially applied
>
> Br's,
> Marius
>
> On Oct 17, 5:21 am, "Charles F.
gt;
> Yes.
>
>
>
> On Sep 22, 12:18 pm, "David Pollak" <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>
> wrote:
> > On Sun, Sep 21, 2008 at 5:21 PM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
d.map(true) openOr false
>
> Derek
>
> On Thu, Oct 16, 2008 at 5:15 PM, Charles F. Munat <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> I've got a JPA Lift site and have set up a login in which the User's id
> is stored in
401 - 500 of 637 matches
Mail list logo