{(str.split("\n").map(x => {x}))}
{x} is an expression that returns a String. Assuming that x is a well-
formed XML node you could try something like:
{(str.split("\n").map(x => {XML.loadString(x)}))}
Br's,
Marius
On Sep 1, 7:24 am, KP wrote:
> Hi all.
>
> I have some text I read in
Hi all.
I have some text I read in from an uploaded file using
scala.io.Source. I then have something like
{(str.split("\n").map(x => {x}))}
with str some portion of text from the input file containing HTML
formatting tags like or .
Now, characters like < are being escaped to their proper
Hello!
I modified those two lines of code this morning :
"local" -> SHtml.selectObj(teamOptions, Empty, (team:Team) =>
{localTeam = team; println("localTeam: " + team)}),
"visitor" -> SHtml.selectObj(teamOptions, Empty, (team:Team) =>
{visitorTeam = team; println("visitorTeam: " + team)}),
I ob
How do I compile the lift snapshot from the git repository?
Is there a maven config or wiki entry?
On Aug 31, 7:18 pm, David Pollak
wrote:
> There are known issues with Lift 1.0 and GAE.
>
> My understanding is that Lift 1.1-SNAPSHOT will work/may work on GAE.
>
> On Sat, Aug 29, 2009 at 12:29
On Mon, Aug 31, 2009 at 3:06 PM, Michel Klijn wrote:
>
> On Aug 31, 5:39 pm, David Pollak
> wrote:
> > On Mon, Aug 31, 2009 at 2:32 PM, Michel Klijn >wrote:
> ...
> > > Since i had
> > > JBOSS 4.2.3AG already on my system i tried this, but without succes...
> >
> > What's the failure? Does the
Maybe one way to address nullability of foreign key associations as well as
other field types is as follows. Don't know if it's possible or backward
compatible, but here's the concept.
Make fields, including FKs, by default non-nullable--setting to Empty/null is
an error, and maybe provide a ge
I wrote code in MappedOneToMany that calls primeObj on each child's foreign
key. Do you think that makes sense?
P.S. Not sure when I'll be able to push it to github.
-
harryh wrote:
> I see what you're saying (I think). So should it always use a PreCache
>
> I see what you're saying (I think). So should it always use a PreCache
> QueryParam?
That's not exactly what I am saying. Let's say you have some code like
so:
author.books.flatMap(book => {
bind("book", xhtml, "title" -> book.title, "author" ->
book.author.name);
})
If you have 10 books
I see what you're saying (I think). So should it always use a PreCache
QueryParam?
-
harryh wrote:
Consider the basic book/author relationship described here:
http://wiki.github.com/dpp/liftweb/how-to-work-with-one-to-many-relationships
When dealing with
> I see what you're saying (I think). So should it always use a PreCache
> QueryParam?
Let's say you have some code like so:
author.books.flatMap(book => {
bind("foo", xhtml, "title" -> book.title, "author" -> book.author.name);
})
If you have 10 books for a given author this will generate 1
Consider the basic book/author relationship described here:
http://wiki.github.com/dpp/liftweb/how-to-work-with-one-to-many-relationships
When dealing with the collection of Books for a single author I would
like to be able to refer to the author field on each book without
causing unnecessary da
On Aug 31, 5:39 pm, David Pollak
wrote:
> On Mon, Aug 31, 2009 at 2:32 PM, Michel Klijn wrote:
...
> > Since i had
> > JBOSS 4.2.3AG already on my system i tried this, but without succes...
>
> What's the failure? Does the Lift examples/example app run okay on JBoss?
> What happens in Firebug?
On Mon, Aug 31, 2009 at 2:53 PM, Naftoli Gugenheim wrote:
>
> I think the problem is that since visitorTeam hasn't been saved, its id is
> -1 or 0, so assigning it is meaningless.
> Either save it first, or mix in LongMappedForeignMapper in addition to
> LongMappedForeignKey on the team field. The
I think the problem is that since visitorTeam hasn't been saved, its id is -1
or 0, so assigning it is meaningless.
Either save it first, or mix in LongMappedForeignMapper in addition to
LongMappedForeignKey on the team field. The next time I commit G-d willing
you'll be able to write extends L
On Mon, Aug 31, 2009 at 2:32 PM, Michel Klijn wrote:
>
> Hello,
>
> I have created a simple test application to play around with comet.
> it's a "live CRUD table" the comet updates its clients with every
> change to the records( There is no database, just a List[Game] in the
> Game object). I have
Hello,
I have created a simple test application to play around with comet.
it's a "live CRUD table" the comet updates its clients with every
change to the records( There is no database, just a List[Game] in the
Game object). I have three questions about this:
1.I know that Comets won't work with
On Mon, Aug 31, 2009 at 10:11 AM, Chris Lewis wrote:
>
> Thanks David,
>
> I hacked together some auth/restriction code built on JPA, based on the
> ProtoUser source (pretty simple). I've said before that I didn't really
> like Mapper (haven't played with Record), but my real concern, as seen
> in
On Mon, Aug 31, 2009 at 2:16 PM, xabi wrote:
>
> Hello!
>
> I've got a problem using SHtml.select and SHtml.selectObj. In my
> little application.
>
> def create(xhtml:NodeSeq):NodeSeq = {
>val teams = Team.findAll
>var localTeam:Team = Team.create
>var visitorTeam:Team =
Hello!
I've got a problem using SHtml.select and SHtml.selectObj. In my
little application.
def create(xhtml:NodeSeq):NodeSeq = {
val teams = Team.findAll
var localTeam:Team = Team.create
var visitorTeam:Team = Team.create
var teamOptions = teams.map(team => (team
This is somewhat related to this:
http://github.com/dpp/liftweb/issues#issue/47
But my gut is that index fields should generally not be null, so please open
a ticket on it.
Derek
On Fri, Aug 28, 2009 at 8:34 PM, Justin Reardon wrote:
>
> Hi,
>
> I've been attempting to use MappedStringIndex in
On Sat, Aug 29, 2009 at 7:12 PM, Jim Myers wrote:
>
> I figured out I could pass in false to Schemifier to bypass this.
>
Or you could remove the Schemifier line from your code all together. If
you've got a schema that you're managing by hand, there's no need to use
Schemifier.
>
> >
>
--
Chris,
I agree with Marius' comments. By using Scala's functions and partial
functions, I have not found any need for Dependency Injection or many of the
other Java limitation workaround patterns.
Snippets are not associated in any way with persistence. Snippets can work
any way you want and ar
Not too late. Thanks!
Chas.
Jean-Luc wrote:
> Soory, a bit late ... Another option is CAS.
> http://www.jasig.org/cas, http://www.ja-sig.org/wiki/display/CASUM/Home
>
> Jean-Luc
>
>
> 2009/8/27 Charles F. Munat mailto:c...@munat.com>>
>
>
> This is good to know about. Thanks!
>
> M
According to Hibernate's Dialect class for SQLServer (3.3.2-GA) , "query
result offset is not supported", but you can use "TOP" to limit the number
of records.
>From SQL Server 2005, there is another option :
http://blogs.msdn.com/sqlserver/archive/2006/10/25/limit-in-sql-server.aspx
Jean-Luc
20
Soory, a bit late ... Another option is CAS.
http://www.jasig.org/cas, http://www.ja-sig.org/wiki/display/CASUM/Home
Jean-Luc
2009/8/27 Charles F. Munat
>
> This is good to know about. Thanks!
>
> Marc Boschma wrote:
> > Maybe https://opensso.dev.java.net/ might be of interest? Might also
> >
Could you clarify what you mean by "without having to store it on the
server"? Do you mean without having the "batch" field defined in your
mapper, or without having to construct the link?
Derek
On Thu, Aug 27, 2009 at 1:32 PM, DavidV wrote:
>
> For the laboratory website I am building I need t
On Sat, Aug 29, 2009 at 11:14 AM, Josh Suereth wrote:
> I believe the core of ExtJS is now MIT licenesed (the widgets being GPL
> with Commercial licenses available). You could potentially build the Ajax
> calls on top of this (as long as you stay away from ui components). Then
> users who ha
There are known issues with Lift 1.0 and GAE.
My understanding is that Lift 1.1-SNAPSHOT will work/may work on GAE.
On Sat, Aug 29, 2009 at 12:29 PM, Andreas
wrote:
>
> This is my current setup:
> 1) Eclipse 3.5 with plugins: Scala, GAE
> 2) create a new GAE project without GWT
> 3) add Scala Na
Thanks David,
I hacked together some auth/restriction code built on JPA, based on the
ProtoUser source (pretty simple). I've said before that I didn't really
like Mapper (haven't played with Record), but my real concern, as seen
in other threads, is a that snippets are explicitly coupled with
Done. Thanks for the suggestion.
On Fri, Aug 28, 2009 at 4:15 PM, jon wrote:
>
> Hi,
>
> I think the _showAllTemplate should wrap the header and footer rows in
> and blocks respectively so that the table plays nice
> with the TableSorter widget.
>
> - Jon
> >
>
--
Lift, the simply function
On Mon, Aug 31, 2009 at 9:24 AM, Derek Chen-Becker wrote:
> Seems like this would be a pretty useful function to have expose as a
> snippet tag attribute (like how we have eager_eval). Maybe an "async_load"
> attr and a corresponding LiftRule NodeSeq var that controls what gets
> displayed while w
Seems like this would be a pretty useful function to have expose as a
snippet tag attribute (like how we have eager_eval). Maybe an "async_load"
attr and a corresponding LiftRule NodeSeq var that controls what gets
displayed while waiting?
Derek
On Thu, Aug 27, 2009 at 3:54 PM, Charles F. Munat
I'm not sure about "the right way" to do this in Lift, but an external
menu link serves it up (with webapp as the base directory).
Menu(Loc("FileDownload", ExtLink("content/StartingWithLift.pdf") ,
"FileDownload")) ::
On Aug 29, 9:11 pm, Jim Myers wrote:
> I'm trying to put a link in a menu to
Hi all,
I'm working around OneToMany relationships between objects,
I wont to add them to my web interface just with CRUDify so I'm working on a
couple of special fields.
I have already done them but it seems that I need to do some save every time
one reference is added or deleted and this cause
thanks
-
mawei...@gmail.com
13585201588
http://maweis.com
On Mon, Aug 31, 2009 at 3:13 PM, Heiko
Seeberger wrote:
>
> A Swiss job portal is about to.
>
> Cheers
> Heiko
>
> On Monday, August 31, 2009, Margaret wrote:
>>
>> who are using lift
Thanks
its help me lot..
it made my lift easy.
Thanks
On Aug 28, 5:11 pm, David Pollak
wrote:
> Using threads in Lift is the same as using threads in any JVM-based
> application. Scala has a particular friendly mechanism for dealing with
> threads called Actors (others have noted t
Ah, I looked for tableeditor in the scaladocs but was unable to find
it.
On Aug 22, 6:05 am, Naftoli Gugenheim wrote:
> I should have thought of that problem.
> I could make TableEditor more flexible when I have time, but the truth is
> that I don't know if it's worth it. The whole thing is les
A Swiss job portal is about to.
Cheers
Heiko
On Monday, August 31, 2009, Margaret wrote:
>
> who are using lift web now?
> -
> mawei...@gmail.com
> 13585201588
> http://maweis.com
>
> >
>
--
My blog: heikoseeberger.name
Follow me: twitter.c
38 matches
Mail list logo