Sorry I didn't get back to you on that. I'm working on an improved version
of the tutorial to include a complete example but it's dependent on
0.10-SNAPSHOT right now. As soon as 0.10 goes GA I'll revise the tutorial
page.
Derek
On Tue, Sep 2, 2008 at 8:35 PM, Charles F. Munat [EMAIL PROTECTED]
Yeah, you have to provide the DTD for the XML for the persistence API to
pick it up correctly. As for a JNDI lookup, you could write a utility lookup
method:
import javax.naming.InitialContext
def lookupEM() = (new InitialContext()).lookup(my JNDI name
here).asInstanceOf[EntityManager]
and then
Is it going to be out anytime soon? I'm holding off on updating the JPA
tutorial until 0.10 isn't in SNAPSHOT since I don't want to have things
break with last-minute commits.
Thanks,
Derek
--~--~-~--~~~---~--~~
You received this message because you are
at 9:20 AM, Kris Nuttycombe
[EMAIL PROTECTED]wrote:
On Wed, Sep 3, 2008 at 4:12 PM, Derek Chen-Becker [EMAIL PROTECTED]
wrote:
Technically, no. I use the Model object to also hold some implicit defs
for
converting java.util collections into their Scala counterparts to make
some
Actually, just / fails to process the index.html file. It just returns the
raw XML. I didn't know about that recommendation, but it seems in this case
that something else is going on.
Derek
On Sat, Sep 6, 2008 at 7:59 AM, David Pollak [EMAIL PROTECTED] wrote:
Are you making a request on
On Sat, Sep 6, 2008 at 8:14 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
Actually, just / fails to process the index.html file. It just returns
the raw XML. I didn't know about that recommendation, but it seems in this
case that something else is going on.
Derek
On Sat, Sep 6, 2008 at 7:59
Thanks, I'll add that in. You can also craft a link so that entire
subdirectory trees are permitted based on matching the head of the list.
Derek
On Sat, Sep 6, 2008 at 6:57 PM, Tim Perrett [EMAIL PROTECTED] wrote:
Oh yes of course!
Ergo, the sitemap should be:
val entries =
Looks like I missed a lot in the two days I was gone :). I'm going to look
at Oliver's code and merge it. As for Tim's problem with the insertions, the
AUTO ID generation should usually just work. I don't have a SQL Server
instance to try it out on, but after I merge the code I'll test it again
changed the module naming per Oliver's suggestion. I'll test
against the other DBs this afternoon, but so far I've had no issues with
HSQLDB.
Derek
On Tue, Sep 9, 2008 at 8:35 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
Looks like I missed a lot in the two days I was gone :). I'm going
I'm pretty sure that the RequestVar should be around for the life of the
Lift session, which means that you should still have a valid lift session in
*any* snippet that would get called. Viktor's correct that this is a common
error that people run into with JPA, but it's usually because they're
Thanks for pointing that out. I usually use JTA-enabled datasources so I
don't muck around with UserTransaction directly that much.
Derek
On Wed, Sep 10, 2008 at 2:23 PM, Martin Ellis [EMAIL PROTECTED] wrote:
On Wed, Sep 10, 2008 at 4:27 PM, Kris Nuttycombe
[EMAIL PROTECTED] wrote:
The
))
and foo.bar has the potential to return null, what is the best
practice for safely handling this without cluttering the code too much
(since Text will throw an exception if passed a null in the
constructor)?
Thanks,
Kris
On Wed, Sep 10, 2008 at 2:28 PM, Derek Chen-Becker
[EMAIL PROTECTED
You can get the human-readable pages via the LiftRules.addDispatch...
methods. They take a partial function which uses a RequestMatcher to
determine which handler to use for a particular request. In the process, you
can use Scala's List wildcarding to extract parts of the URL that was passed
in.
Great presentation! It's really exciting to be a part of this community :)
Derek
On Fri, Sep 12, 2008 at 1:26 AM, Viktor Klang [EMAIL PROTECTED]wrote:
Excellent stuff David!
Gonna show it to some people today :)
Cheers!
Viktor
On Thu, Sep 11, 2008 at 11:16 PM, David Pollak [EMAIL
[EMAIL PROTECTED] wrote:
Indeed - just reading this thread back and not quite understanding why
its *not* possible to friendly urls in lift its very easy as derek
points out.
Check out:
http://liftweb.net/index.php/UrlRewriting
Tim
On Sep 12, 2:17 pm, Derek Chen-Becker [EMAIL PROTECTED
You're probably on the right track, although I want to clarify: are the
entity and its collections something that won't change often? Do you need
transactional views on it (i.e. changes made by one session are immediately
visible in others)? From your question about caching at Boot it sounds like
Do you mean a JAR that you can just run, a la java -jar mywebapp.jar ?
On Mon, Sep 15, 2008 at 5:25 PM, David Pollak [EMAIL PROTECTED] wrote:
Folks,
Has anyone built a Lift app that's deployable as a JAR file with Jetty
as the container?
Thanks,
David
Technically you can drop the constructor parens as well so it looks like
@Table{val name=roles}
Derek
On Mon, Sep 15, 2008 at 5:08 PM, Tim Perrett [EMAIL PROTECTED] wrote:
Chas,
Change you annotation to this:
@Table(){val name=roles}
Scrap the xml attribute, then it will work no
Cool. For now I'd say just load it once, although you might want to make
your own object to manage it. You could easily make it a lazy var for now
and turn it into a synchronized def later if you need flush behavior.
Derek
On Tue, Sep 16, 2008 at 6:59 AM, Tim Perrett [EMAIL PROTECTED] wrote:
What I do in my code is add a member object to the session to indicate
whether it's logged in:
object currentUserObjVar extends SessionVar[Can[Member]](Empty)
def currentUserObj = currentUserObjVar.is
def currentUsername = currentUserObj map {_.userId} openOr Not logged in
def
I stand corrected :)
On Wed, Sep 17, 2008 at 4:07 PM, Jorge Ortiz [EMAIL PROTECTED] wrote:
Kris,
There were no changes to the 'bind' function. What changed was the way
in which BindParams (which bind takes as arguments) are generated.
The deprecated code for generating BindParams (using
See attached. Some minor tweaks. The biggest change was the refactoring and
addition of some of the value-add methods on ScalaEntityManager.
Derek
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post
If you want to tell them to enter a value, I'm sure that you could write (if
it doesn't already exist) a notEmpty validation that would say the right
thing and do something like:
val validations = notEmpty(You must provide an email address) _ ::
valRegex(...
Derek
On Tue, Sep 23, 2008 at 9:41
Tim, you rock :)
On Tue, Sep 23, 2008 at 10:29 AM, Tim Perrett [EMAIL PROTECTED] wrote:
Hey guys,
Ok, i've abstracted it all out into a class which you call a little
like this:
var paypal: PayPal = new PayPal(sandbox)
paypal.transactionToken = S.param(tx).openOr()
Hi,
I was looking over the JsonHandler stuff and it looks pretty
interesting. I thought I'd try it out for a member add page on my latest
project, but I can't figure out how to pass state through the snippet.
Basically, I have a Team object that I want to add coaches (Member
objects) to. I was
jQuery has the jquery.browser and other user agent methods (under the
utilities section of the docs: http://docs.jquery.com/Utilities). If that's
not enough, there's this under the MIT license:
http://davecardwell.co.uk/javascript/jquery/plugins/jquery-browserdetect/
Derek
On Thu, Sep 25, 2008
Duh. I should stop posting before 7am.
On Thu, Sep 25, 2008 at 9:27 AM, David Pollak [EMAIL PROTECTED]
wrote:
On Thu, Sep 25, 2008 at 6:05 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
jQuery has the jquery.browser and other user agent methods (under the
utilities section of the docs
I hope it was pleasant :)
On Fri, Sep 26, 2008 at 4:12 AM, Oliver Lambert [EMAIL PROTECTED] wrote:
Forget that - brain had gone for a holiday.
On 26/09/2008, at 12:04 PM, Oliver wrote:
Hi
Say I want to have a onMouseOver call a javascript function - How?
// this doesnt work - I want to
Not the most popular option out there but I generally detect IE6 from the
agent string and redirect to the Get Firefox page ;)
On Fri, Sep 26, 2008 at 3:51 AM, Marius [EMAIL PROTECTED] wrote:
Charles ... this is not only about JS level. One may simply click a
link or submit a simple form
Back in this commit:
http://github.com/dpp/liftweb/commit/645d9649a5956f0b67edbe8ded4d1b0136164980
If the intention is for LiftRules.determineContentType to be the sole
arbiter of the Content-Type header, we should probably remove and/or
deprecate LiftRules.useXhtmlMimeType. Otherwise, the
:48 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
Argh! Stupid gmail hotkeys... Here's what I wanted to say:
class Student {
// ... everything else up here ...
@ManyToMany{ val targetEntity = classOf[Course] }
var courses : java.util.Set[Course] = new java.util.HashSet[Course]
}
class
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
Dude, when are you not working? :) Seriously, though, very cool.
Derek
On Tue, Sep 30, 2008 at 5:50 PM, David Pollak [EMAIL PROTECTED]
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
) = if (re.getCause() == null) {
(re,No cause)
} else {
(re.getCause(), re.getCause().getMessage())
}
this.error(EM Commit error: {}, message)
this.error(Full trace, re)
handler(cause)
}
}
}
On Tue, Sep 30, 2008 at 5:25 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote
, Sep 22, 2008 at 8:29 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
Looks good. In keeping with the theme of a Library catalog I'm going to
rework Gender as Genre and add things like Mystery, Horror, Comedy,
Childrens' , etc. I think I can just put the Money on as a purchase price.
Thanks
, 2008 at 11:07 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
OK, I've run into problems again now that I'm trying to actually use the
enumerations. In my book class I have the variable defined as:
@Type{val `type` = com.foo.jpaweb.model.GenreType}
var genre = Genre.unknown
Enumv.Value(name
I added in Oliver's UserType support for enums and some utility methods on
the Model object (wrapEM). I didn't have time this week to work on getting
JNDI and JTA to work in Jetty, but hopefully next week will be slightly less
crazy.
Derek
--~--~-~--~~~---~--~~
There's no *requirement* to use all of the -D stuff. If you just do
mvn -U archetype:generate
you actually get a nice list of archetypes, two of which are:
31: internal - lift-archetype-blank (A blank/empty liftweb project)
32: internal - lift-archetype-basic (The basic (liftweb) project)
If
features?
Cheers
Tim
On Oct 5, 11:33 pm, Derek Chen-Becker [EMAIL PROTECTED] wrote:
There's no *requirement* to use all of the -D stuff. If you just do
mvn -U archetype:generate
you actually get a nice list of archetypes, two of which are:
31: internal - lift-archetype-blank
Klang [EMAIL PROTECTED]wrote:
Welcome aboard, ol' chap!
On Mon, Oct 6, 2008 at 8:44 PM, Jorge Ortiz [EMAIL PROTECTED] wrote:
Awesome!
On Mon, Oct 6, 2008 at 10:12 AM, David Pollak
[EMAIL PROTECTED] wrote:
Folks,
Derek Chen-Becker has just joined the Lift committers. One might ask
What
)
this is part of the version 2.8-SNAPSHOT, that should be released next
week.
/davidB
On Mon, Oct 6, 2008 at 7:06 PM, Derek Chen-Becker [EMAIL PROTECTED]
wrote:
I agree on the Maven mojo programming. Anything to simplify custom build
scripts would be great, so SBT sounds like
. (But this is a hell week for me,
so I don't know how far I'll get.)
Chas.
Derek Chen-Becker wrote:
This is really, really strange, since what's in Git works fine for me
here. Can you do me a favor and wipe your maven repository, re-pull from
github, do a mvn clean and then see if it works? I just did
I'm very close to getting this working. I can look up the EM via JNDI as
well as the UserTransaction, but I'm getting a weird error with Atomikos:
Message: java.lang.RuntimeException: Transaction Service Not Running?
com.atomikos.icatch.jta.J2eeUserTransaction.checkSetup(Unknown Source)
It means that the dispatch function on whatever Stateful Snippet is being
called isn't matching what you're asking it to provide. For instance, if
your snippet tag looks like
lift:MySnippet.add
Then the dispatchPf in the MySnippet stateful snippet has to have a dispatch
function like:
val
this weekend. Just let me know what
branch to pull from.
Kris
On Fri, Oct 10, 2008 at 3:14 PM, Derek Chen-Becker
[EMAIL PROTECTED] wrote:
Well, I have it all working under Jetty using Atomikos as the underlying
JTA
provider. I'd like to test it out under JBoss and/or Glassfish before
OK, if I do git checkout do I need to backup my changed files somewhere
else? I've already made a lot of changes and I don't want to lose them.
Thanks for the advice!
Derek
On Fri, Oct 10, 2008 at 3:43 PM, Martin Ellis [EMAIL PROTECTED] wrote:
On Fri, Oct 10, 2008 at 10:37 PM, Derek Chen
and searched but
couldn't find anything concrete for TopLink.
Please let me know if you run into any difficulties and hopefully we'll get
this sorted out.
Derek
On Fri, Oct 10, 2008 at 4:04 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
OK, done: http://github.com/dpp/liftweb/tree/wip-dcb-jpa-jta
), Add a New Category, Hidden))
),
ANY suggestions for how to do any of this better greatly appreciated.
Do
I need to add the val dispatch... part? If so, why is this different
from the JPADemo?
Thanks!
Chas.
Derek Chen-Becker wrote:
It means
is not
populated because category is a new Category, not the one from the
database (I checked).
Any ideas?
Chas.
Derek Chen-Becker wrote:
OK, one thing I see in your code is that your editor snippet is emitting
the form tag. You really shouldn't do it that way. The snippet tag
should look
You can just do Model.find(classOf[User], userId) and the type on the method
will be inferred. Any time you see a Class[A] parameter, it wants the result
of a classOf[...].
Derek
On Tue, Oct 14, 2008 at 5:52 PM, Charles F. Munat [EMAIL PROTECTED] wrote:
A question from the JPADemo...
How
Charles, to put this in the context of the JPA stuff I'm working on, here's
the pattern I would use for, say, viewing an Author when I have a
corresponding RequestVar:
object passedAuthor extends RequestVar[Can[Author]](Empty)
def view (xhtml : NodeSeq) : NodeSeq = passedAuthor.map({ author =
be the backbone of a native Scala reflection API (yay!)
--j
On Tue, Oct 14, 2008 at 6:13 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
You can just do Model.find(classOf[User], userId) and the type on the
method will be inferred. Any time you see a Class[A] parameter, it wants the
result of a classOf
] ^
Also, it needs the () after the ?. This works:
def isAuthenticated_?() = CurrentUserId.is.map((Long) = true) openOr false
Thanks!
Chas.
Derek Chen-Becker wrote:
Everything there looks kosher at first glance to me. SessionVars should
stay in the session no matter
Well, I've already checked in the code for keeping the object in the
continuation instead of the ID on the wip-dc-jpa-jta branch of liftweb. I
thought we had discussed this in a previous email. To get the object instead
of the Id you just grab a val on the object and re-inject it with a hidden
Google maps doesn't work with XHTML, so you have to tweak the Content-Type
header using LiftRules.*determineContentType* from your Boot class*. *It
takes a partial function so that you can make it specific to a single page:
LiftRules.determineContentType = {
case (Full(RequestState(view :: map
I could have sworn this had been covered recently on the list but I can't
seem to find it. I'd like to have a rewrite function that checks to see if
someone is logged in and in the proper role before allowing them to get to
the page. I had wanted to do this using LiftRules.addRewriteBefore
because the URL
rewriting takes place before the sessionless dispatch is consulted. This
happens before the session is retrieved/created and the regular flow
happens.
Access control on an HTML page level should be done in SiteMap.
On Tue, Oct 21, 2008 at 1:00 PM, Derek Chen-Becker [EMAIL
?
Thanks,
Derek
On Tue, Oct 21, 2008 at 2:21 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
OK, that makes sense. Sometimes when you have a hammer everything looks
like a nail :)
On Tue, Oct 21, 2008 at 2:05 PM, David Pollak
[EMAIL PROTECTED] wrote:
SessionVars are not available during
Technically it lives in your session. The closure (not 100% sure that's the
correct term):
() = {cnt = cnt + 1; SetHtml(cnt_id, Text( cnt.toString))}
Creates a function object (of type
http://www.scala-lang.org/docu/files/api/scala/Function0.html) that is
installed in your session via the a()
On Wed, Oct 22, 2008 at 4:41 PM, David Pollak [EMAIL PROTECTED]
wrote:
Awesome! Couldn't have explained it better myself.
I've learned from the master ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift
You should be able to do that with a combination of bind and chooseTemplate.
For instance, your template could look like:
...
lift:MySnippet.categories
h1Categories/h1
categories:entries
category:name/
category:links
link:name/
/category:links
/categories:entries
add the triggers for
me is beyond me. It's easier just to set them in the application, I
think.
Thanks for the help. Live and learn, I guess.
Chas.
Derek Chen-Becker wrote:
Yeah, I think you want insertable to be true on the first one (just
omit
the insertable val
Of course, that won't prevent whoever uses that class from manually changing
them...
On Fri, Oct 24, 2008 at 9:40 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
It's a JPA annotation for lifecycle methods. There's a really nice chart
explaining when they get called here:
http
On Fri, Oct 24, 2008 at 9:27 AM, Tim Perrett [EMAIL PROTECTED] wrote:
Hey Derek,
Whats @PrePersist - cant say im that familiar with it?
Cheers
Tim
On Oct 24, 4:10 pm, Derek Chen-Becker [EMAIL PROTECTED] wrote:
Personally I use the @PrePersist lifecycle method interceptor when I want
Very cool. I'm stretched a bit thin to help much, but please let me know if
you run into any issues or have any questions on JPA.
Derek
On Fri, Oct 24, 2008 at 10:14 AM, TylerWeir [EMAIL PROTECTED] wrote:
Started watching it. I'll be teefing all the JPA/Hibernate tips I can
from it. :)
Well, this is definitely something that needs more work. I've been trying to
put together an archetype for a JPA-based Lift app but I haven't had time to
do that yet. One of the main reasons that the persistence entities are split
out from the main webapp is that that's how JPA would prefer you
It would be nice if there was some way for Maven to do this stuff
automatically, but I don't know enough about it...
Derek
On Fri, Oct 24, 2008 at 11:47 AM, Charles F. Munat [EMAIL PROTECTED] wrote:
This makes things a little easier for me:
alias g1=cd ..; mvn clean compile; cd *app
alias
is the best approach. You can add arbitrary
client fields and as long as there's a server-side JSON handler for the
given field, you're golden.
On Mon, Oct 27, 2008 at 2:48 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
I was also wondering if you could use a JSON form and the associated
SecurityHelpers is what I was referring to before when I said I copied what
was in Mapper. It uses the helpers for random strings, hash, crypto, etc.
Derek
On Mon, Oct 27, 2008 at 10:25 PM, efleming969 [EMAIL PROTECTED] wrote:
There is also SecurityHelpers which has some of this included.
No worries. I don't think I made it clear enough in my original comment.
Thanks for clarifying :)
Derek
On Tue, Oct 28, 2008 at 1:02 PM, Erick Fleming [EMAIL PROTECTED]wrote:
@Derek, Sorry after reading through the posts I forgot you metioned it.
Out of curiosity, how does Netbeans handle Maven projects, particularly ones
with nested modules? The most recent Eclipse plugin still has some warts,
but it generally seems to work OK if I set up the .classpath file properly
to point at all of the source folders.
Thanks,
Derek
On Sat, Nov 15,
That's funny, I just checked out the wip-record2-dpp branch this morning to
start looking at it :) So far, I really like what I see. I would agree with
Tim on calling it Persistable... vs DB... but otherwise it's looking very
good. If I have some time this week I might start looking at how to meld
...
-Josh
On Sat, Nov 15, 2008 at 7:20 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
Out of curiosity, how does Netbeans handle Maven projects, particularly
ones with nested modules? The most recent Eclipse plugin still has some
warts, but it generally seems to work OK if I set up
That's great!
On Mon, Nov 17, 2008 at 12:00 PM, David Pollak
[EMAIL PROTECTED] wrote:
On Mon, Nov 17, 2008 at 10:58 AM, Jorge Ortiz [EMAIL PROTECTED]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
Off the top of my head, VisualVM (https://visualvm.dev.java.net/) may help
you narrow it down a little. The profiler portion should be able to dump
lots of memory info so you can see what is being allocated and by which
objects. The Netbeans profiler is supposed to be pretty good, too, but I
I'm getting a type mismatch, so I assume that's what you mean by
dispatching code. It almost looks like you're mixing up object and class
apply semantics, since your call looks like
case r @ Req(badger :: Nil, , _) = new SimpleHttpBasicAuth(r){
PlainTextResponse(DFGDF)
}
The
I may be missing something here, but when I browse to the root of my webapp
context:
http://foo.com/context/
I get served up the index.html template *unprocessed*. If I use the full URL
instead:
http://foo.com/context/index
I get the processed template. The only thing I did was add a SiteMap
that stuff, and b) using
objects rather than class / case class.
I'll noodle this a bit more, but if you have any input that would be
awesome.
Cheers, Tim
On Nov 22, 5:58 am, Derek Chen-Becker [EMAIL PROTECTED] wrote:
On second thought the PasswordLookup should really be an authentication
I like partial functions :) The really nice thing is that you can use
matching. Looks good!
Derek
On Sat, Nov 22, 2008 at 7:47 AM, Tim Perrett [EMAIL PROTECTED] wrote:
Ok, i've refactored a whole bunch of stuff.
I used a partial function :-) All a user need to now is something
like:
I'm writing up the chapter on Record right now (nothing like a moving
target!) and I just wanted to confirm that the MetaRecord.asHtml is really
intended to default to NodeSeq.Empty. Since there's a default template for
form generation it seemed a little strange that there isn't a default for
Cheers,
V
-- Forwarded message --
From: Derek Chen-Becker [EMAIL PROTECTED]
Date: Tue, Nov 25, 2008 at 3:54 PM
Subject: [Lift committers] Re: Adding JPA scaffolding to lift?
To: [EMAIL PROTECTED]
I thought about it a bit last night. JPA infers entity members from
either
There are also at least two Lift books in the works. You can see the book
that Tyler and I are working on here:
http://github.com/tjweir/liftbook/tree/master
If you want to view the actual book you'll need LyX:
http://www.lyx.org/
Derek
On Tue, Nov 25, 2008 at 3:10 PM, Kris Nuttycombe
[EMAIL
I just noticed your commit today with this stuff. Looks great! I like the
hook in LiftRules :)
Derek
On Sat, Nov 22, 2008 at 3:50 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
I like partial functions :) The really nice thing is that you can use
matching. Looks good!
Derek
On Sat, Nov 22
providers.
What doyou think Derek?
Sorry, that email turned out to get mangled.
Basically, there are a couple of good solutions available. :)
On Tue, Nov 25, 2008 at 10:12 PM, Derek Chen-Becker
[EMAIL PROTECTED] wrote:
That's a very interesting idea. It's been a long time since I've
, Derek Chen-Becker [EMAIL PROTECTED]
wrote:
On Tue, Nov 25, 2008 at 1:40 PM, Kris Nuttycombe
[EMAIL PROTECTED] wrote:
Remember that additionally in JPA, a bare unannotated field on an object
will be inferred as persistent unless annotated @Transient (or, in java,
unless it is declared
I'm in the process of playing with the Record code so I have some examples
for the book. I've run into two small issues:
1. I'm writing a custom Field type (DecimalField) and it seems like the
valueCouldNotBeSet var should be set if I can't parse the decimal string
that a user hands me
modify my code to call
Field.couldNotSetValue and test in the morning. Thanks!
Derek
On Wed, Nov 26, 2008 at 10:35 AM, David Pollak
[EMAIL PROTECTED] wrote:
On Wed, Nov 26, 2008 at 7:34 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
I'm in the process of playing with the Record code so I have
be
good in Lift, where exactly should they go?
Thanks,
Derek
On Thu, Nov 27, 2008 at 7:31 AM, David Pollak [EMAIL PROTECTED]
wrote:
Compile time utilities would be great.
On Nov 27, 2008 6:28 AM, Derek Chen-Becker [EMAIL PROTECTED]
wrote:
This reminds me, I had written a little tool to scan
Yes, I was just reading about writing Maven plugins yesterday for the I18N
tool and it looks like they depend heavily on javadoc-style annontations.
Right now that means the plugin I'm hacking on has a Scala implementation
with essentially a Java shim. I would much prefer to just have a single
Looking at findVisibleTemplate in LiftSession (line 512) certainly makes it
appear that the template table defined by addTemplateBefore/After is
consulted before it checks the filesystem.
Derek
On Fri, Nov 28, 2008 at 10:26 AM, Tim Perrett [EMAIL PROTECTED] wrote:
Hey guys,
I want to user
No big deal. In the example code I did a by-name in the delegate method so
at least it's transparent to the end-user.
Derek
On Sat, Nov 29, 2008 at 11:06 AM, Jorge Ortiz [EMAIL PROTECTED] wrote:
Just wanted to chime in real quick...
type Getter = () = MyType // Can this be by-name in any
If you're heavily skewed towards reads and not writes (as it seems in the
case of a CMS), you might want to look at Celko nested sets:
http://www.intelligententerprise.com/001020/celko.jhtml
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
A little more work on updates than an
to scala to lose
boilerplate, this is not a viable solution.
Unfortunately the JPA spec is kind of weak when it comes to adaptation,
so
my suggestion to make it work with Hibernate first still stands.
What do you guys think?
Cheers,
Viktor
On Sat, Nov 29, 2008 at 10:23 PM, Derek Chen
?
Any advice you guys have is most welcome
Cheers
Tim
On Nov 30, 2:27 pm, Derek Chen-Becker [EMAIL PROTECTED] wrote:
If you're heavily skewed towards reads and not writes (as it seems in the
case of a CMS), you might want to look at Celko nested sets:
http://www.intelligententerprise.com
, 2008 at 7:49 AM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
Yes, I was just reading about writing Maven plugins yesterday for the I18N
tool and it looks like they depend heavily on javadoc-style annontations.
Right now that means the plugin I'm hacking on has a Scala implementation
http://github.com/tjweir/liftbook/tree/master
See earlier posts for details.
Derek
On Sun, Nov 30, 2008 at 7:33 PM, Oscar Picasso [EMAIL PROTECTED]wrote:
Which book are you talking about?
I didn't know that they were already chapters of a lift book we could
read.
On Wed, Nov 26, 2008 at
Because it's type erasure I don't think I can do a generic new inside the
methods, but the findOne method does return a Can. That means that you were
actually pretty close in your demo code. Here's what it could look like:
val user: User =
Model.createNamedQuery[User](
findUserByUsername,
manually, just run mvn lift:i18ngen.
Derek
On Sun, Nov 30, 2008 at 4:46 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote:
OK, I have a maven-lift plugin done with an i18ngen target that you can
use to parse all of your Scala and xhtml sources for i18n keys (lift:loc,
etc). The question now is, where
Hi,
I'm writing the chapter on Mapper/Record right now and I was wondering
why there have been small name changes between the two frameworks. Things
like
1. MappedField.validations vs. Field.validators
2. MappedField.asHtml vs. Field.asXHtml (and Field.toXHtml, which seems
redundant)
I've done it in Eclipse and I'm assuming it would be similarly easy in
NetBeans. There's a good article on setting up Maven remote debugging with
Jetty here:
http://www.mojavelinux.com/blog/archives/2007/03/remote_debugging_with_jetty/
Derek
On Mon, Dec 1, 2008 at 2:43 PM, David Pollak
[EMAIL
1 - 100 of 887 matches
Mail list logo