Thanks,
This is really really helpful
Cheers,
Ferdinand
On Nov 11, 3:23 am, Strom wrote:
> I made a wiki article for this purpose (based on the thread I started
> that Ross
> linked):http://wiki.github.com/dpp/liftweb/how-to-make-radio-lists-and-drop-d...
>
> Hope that helps.
>
> On Nov 10,
Surely you mean Sydney :)
2009/11/11 Randinn
>
> Its sounds like your presentation went well, congrats. now we need to
> talk you into a Melbourne trip. :)
>
> On Nov 11, 5:15 am, David Pollak
> wrote:
> > On Tue, Nov 10, 2009 at 9:52 AM, Peter Robinett >wrote:
> >
> >
> >
> >
> >
> > > Hi Dav
Yeah, the LiftSession initial pinger didn't get started. This is the second
serious defect in M7 (the other being #164).
We're mulling doing an M7A that resolves these issues.
On Fri, Nov 6, 2009 at 1:45 PM, harryh wrote:
>
> OK, I think I know what is going on here.
>
> In production I'm stil
On Tue, Nov 10, 2009 at 4:19 PM, glenn wrote:
>
> David,
>
> (This is a copy of an earlier reply to your Migration Guide post. I
> didn't get any response there, so I'm listing it on this
> thread since it seems somewhat related to the current discussion)
>
> I attempted to follow your blog piece
David,
(This is a copy of an earlier reply to your Migration Guide post. I
didn't get any response there, so I'm listing it on this
thread since it seems somewhat related to the current discussion)
I attempted to follow your blog piece and rewrite the code in
Integrating Flex, BlazeDS, and Scala
I found that I can send the Mapper.toForm xml directly in an
XmlResponse, rather than try to output JSON.
However, that brought up another problem - bug, maybe - in that when I
send
Full(XmlResponse(item.toForm(Full("Save"), { _.save })))
I get the following error:
undefined entity
[Break on t
Can you code up a full working example of what you want to do and post it on
GitHub?
On Sat, Nov 7, 2009 at 10:15 AM, oshyshko wrote:
>
> Removing BlazeDS servlet from LiftFilter coverage is a bad idea:
> If it is done so, lift-mapper creates separate transactions for all
> operations.
>
>
> htt
Some answers inline:
On Nov 10, 2009, at 6:05 PM, Strom wrote:
> Questions
> 1. I see "unapply" it in the Req object's methods list in the API, but
> I have NO idea what it's doing. Lift book has 1 sentence about it, but
> I'm still lost.
unapply is part of scala proper, not lift particularly. It
On Tue, Nov 10, 2009 at 3:16 PM, Askia wrote:
>
>
>
> Will there be always be a lost even if there was not an actual change or
> maybe the change does actually have a logical impact on future pages?
>
If the "prev" button is pressed, the state of the world will return to what
it was before the s
Will there be always be a lost even if there was not an actual change or
maybe the change does actually have a logical impact on future pages?
bearfeeder wrote:
>
> On Tue, Nov 10, 2009 at 9:52 AM, Peter Robinett
> wrote:
>
>>
>> Hi David,
>>
>> Thanks for presenting your latest work on Wi
My goals are to be able to fetch and display user uploaded images from
the DB in a way that won't bog down a high-traffic production server.
Something like what eBay or Amazon does in their search result pages.
I found an old thread on dynamic image generation that might be
relevant to what I'm d
I'm using XMLApiHelper to dispatch a JsonResponse to the client. My
problem is I don't see how to consume the JSON object in my template,
which calls a snippet
myform(xhtml:NodeSeq):NodeSeq = toForm(Empty,"")
that outputs an empty Mapper form on the client.
The JSON object is just the Mapper
Which brings us back to my original point ... how can we preserve
acceptance tests ?
Do we need to have a stack-trace hash on the form ids or can we have a
non-unique-id-through-the-webapp but unique to the form in order to
achieve this.
My newbie knowledge of Lift suggests we can, but I don't hav
So it sounds like lift-wizard is designed for the nontrivial case. :)
That said, I use bindSwitch in a scenario where page 2 depends on page 1
(showing a varying number of combo boxes with varying contents, to become
MappedOneToMany children, to oversimplify), and it's not very complicated.
My i
David Pollak writes:
> On Tue, Nov 10, 2009 at 1:12 PM, Peter Robinett
> wrote:
>
>>
>> Thanks, Naftoli, it sounds like the solution you describe is what I
>> thought Wizard would (or could) be.
>>
>
> Wizard is a conceptual descendant of SmartMode Wizard (see
> http://tunaforcats.com/wizard.wm
This is on M7:
scala> import
scala.xml.Elem
import scala.xml.Elem
scala> import
net.liftweb.json.JsonAST._
import net.liftweb.json.JsonAST._
scala> import
net.liftweb.json._
import net.liftweb.json._
scala> def go(e: Elem) = Printer.pretty(render(Xml.toJson
(e)))
go: (scala.xml.Elem)String
sc
On Tue, Nov 10, 2009 at 1:12 PM, Peter Robinett wrote:
>
> Thanks, Naftoli, it sounds like the solution you describe is what I
> thought Wizard would (or could) be.
>
Wizard is a conceptual descendant of SmartMode Wizard (see
http://tunaforcats.com/wizard.wmv) In SmartMode we tried to do what yo
Hello.
When I wrote ManyToMany a couple of months ago, I designed it to internally
hold a collection of join table records, and to act as a collection of
elements of the child table.
For example, given Volunteer and VolunteerGroup where volunteers can be in
multiple groups, Volunteer.volunteerGroup
Thanks, Naftoli, it sounds like the solution you describe is what I
thought Wizard would (or could) be.
Peter
On Nov 10, 11:33 am, Naftoli Gugenheim wrote:
> Sounds like Wizard is very complex!
> Peter, if all you want is to split a form among several screens with one
> continuous state, see B
Sorry I should have read the rest of the thread rather than replying
via email - just trying to help but should have kept quiet!
Cheers, Tim
On Nov 10, 8:33 pm, Jeppe Nejsum Madsen wrote:
> Timothy Perrett writes:
> > If Lift is running in test mode the element names should be static, right?
>
Timothy Perrett writes:
> If Lift is running in test mode the element names should be static, right?
Only for the same version of Lift. As David wrote in a (this?) thread,
when in test mode, the id is basically a hash of the stack trace. So
when lift is updated, the ids (most likely) change and
Always willing to help new converts ;-)
-Ross
On Nov 10, 2009, at 3:05 PM, Marius wrote:
>
> Many many thanks !
>
> On Nov 10, 9:47 pm, Ross Mellgren wrote:
>> M-x customize-group RET font-lock-faces RET
>>
>> This affects all programming languages, BTW. I don't know offhand
>> of a
>> way t
Many many thanks !
On Nov 10, 9:47 pm, Ross Mellgren wrote:
> M-x customize-group RET font-lock-faces RET
>
> This affects all programming languages, BTW. I don't know offhand of a
> way to modify only Scala-mode without using mode hooks.
>
> -Ross
>
> On Nov 10, 2009, at 2:42 PM, Marius wrote
Its sounds like your presentation went well, congrats. now we need to
talk you into a Melbourne trip. :)
On Nov 11, 5:15 am, David Pollak
wrote:
> On Tue, Nov 10, 2009 at 9:52 AM, Peter Robinett
> wrote:
>
>
>
>
>
> > Hi David,
>
> > Thanks for presenting your latest work on Wizard last night a
If Lift is running in test mode the element names should be static, right?
Cheers, Tim
On 10 Nov 2009, at 19:36, ben wrote:
>
> Hi,
>
> Bear in mind that I'm a newbie Lifter, so I won't have the knowledge
> of why certain choices were made or the knock on effects of changing
> how things work
M-x customize-group RET font-lock-faces RET
This affects all programming languages, BTW. I don't know offhand of a
way to modify only Scala-mode without using mode hooks.
-Ross
On Nov 10, 2009, at 2:42 PM, Marius wrote:
>
> Ok one more question ... (sorry for abusing lift list but a lot of
>
Hey Dave,
> I haven't refactored all the various ways of describing fields yet. I have
> to do a grand unification of these.
Yeah - this would be super; I think as we move forward this is going
to be really important.
> There is no use of mapper except for defining DB transactions.
Oh I see -
Ok one more question ... (sorry for abusing lift list but a lot of
people here know emacs)
Is there a way to change the color theme for scala syntax
highlighting ?
Br's,
Marius
On Nov 8, 5:25 pm, Marius wrote:
> Thanks a lot ! ... I just ran into C-SPC :)
>
> Br's,
> Marius
>
> On Nov 8, 5:11
Hi,
Bear in mind that I'm a newbie Lifter, so I won't have the knowledge
of why certain choices were made or the knock on effects of changing
how things work in Lift ...
>From my perspective (ie automatically testing a form on a page via
Cucumber), I'm not sure the unique id (as in unique id acr
Sounds like Wizard is very complex!
Peter, if all you want is to split a form among several screens with one
continuous state, see BindPlus.bindSwitch. All you need to do is put the
separate screens in sibling elements in the template, and tell bindSwitch which
xml to output and it will leave o
On Wed, Nov 4, 2009 at 12:30 PM, Vesa wrote:
>
> Anybody aware of any examples using testkit?
>
See:
http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/test/scala/org/apache/esme/JettySetup.scala?revision=834618&view=markup
http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/
I've just committed simple API test code up to the ESME project. The key
pieces are at:
http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/test/scala/org/apache/esme/api/ApiTest.scala?revision=834618&view=markup
http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/test/scala/org
On Tue, Nov 10, 2009 at 11:23 AM, Strom wrote:
>
> I made a wiki article for this purpose (based on the thread I started
> that Ross linked):
>
> http://wiki.github.com/dpp/liftweb/how-to-make-radio-lists-and-drop-downs-from-enumerations
>
> Hope that helps.
>
Thanks for the Wiki page!
>
> On
I made a wiki article for this purpose (based on the thread I started
that Ross linked):
http://wiki.github.com/dpp/liftweb/how-to-make-radio-lists-and-drop-downs-from-enumerations
Hope that helps.
On Nov 10, 8:24 am, Ross Mellgren wrote:
> Does this thread help?
>
> http://groups.google.com/gr
On Tue, Nov 10, 2009 at 9:52 AM, Peter Robinett wrote:
>
> Hi David,
>
> Thanks for presenting your latest work on Wizard last night at the Bay
> Area Scala Enthusiasts meetup. I enjoyed hearing about Wizard and have
> a few comments that I wanted to share with you and the rest of the
> Lift commu
On Tue, Nov 10, 2009 at 10:02 AM, Timothy Perrett
wrote:
>
> OK, so i just checked out:
>
> http://github.com/dpp/liftweb/tree/dpp_issue_159_wizard
>
> Looks pretty interesting. I know its a work in progress, but I have
> the following thoughts right now (please dont crucify me for early
> feedbac
OK, so i just checked out:
http://github.com/dpp/liftweb/tree/dpp_issue_159_wizard
Looks pretty interesting. I know its a work in progress, but I have
the following thoughts right now (please dont crucify me for early
feedback!):
- Im confused why the Field traits from Record are not being use
Hi David,
Thanks for presenting your latest work on Wizard last night at the Bay
Area Scala Enthusiasts meetup. I enjoyed hearing about Wizard and have
a few comments that I wanted to share with you and the rest of the
Lift community. I know Wizard is very new and I'm only going by what I
learned
My first unit test worked fine, but my second one dies:
ERROR - Failed to Boot
java.lang.IllegalStateException: Cannot modify after boot.
at net.liftweb.http.RulesSeq$class.safe_$qmark(LiftRules.scala:885)
at net.liftweb.http.RulesSeq$class.prepend(LiftRules.scala:892)
at
Does this thread help?
http://groups.google.com/group/liftweb/browse_thread/thread/d95e00b430203fc6/9e7460ebb9489d36
-Ross
On Nov 10, 2009, at 10:40 AM, Ferdinand Chan wrote:
>
> Hi,
>
> If I have an Enumeration, say
>
> object PromotionType extends Enumeration{
> val PriceDiscount = Value("P
Hi,
If I have an Enumeration, say
object PromotionType extends Enumeration{
val PriceDiscount = Value("Price discount")
val ComboDiscount = Value("Combo discount")
val Freemium = Value("Freemium")
}
How can I create a HTML select element in a snippet based on this?
I tried something like
Since MappedOneToMany does not extend MappedField, in order for the entity to
manage its MappedOneToMany's it must extend ManyToMany. This allows saves and
deletes to be propogated, for example. When you add and remove elements from
the MappedManyToMany, those changes don't happen in the databa
So that should be
class D20Character extends ... with ManyToMany {
-
Jim Barrows wrote:
On Tue, Nov 10, 2009 at 7:39 AM, Naftoli Gugenheim wrote:
> Can I see the whole Mapper definition?
> Also, it needs more parameters.
>
Yes, I know. but if the classloade
Sorry. Just reread my past post and it is indeed unclear. I will post
running code tonight. I very much appreciate your help.
On Tue, Nov 10, 2009 at 1:27 AM, David Pollak wrote:
>
>
> On Mon, Nov 9, 2009 at 10:10 PM, Jack Widman wrote:
>
>> The only difference between your working code and mine
Can I see the whole Mapper definition?
Also, it needs more parameters.
-
Jim Barrows wrote:
On Mon, Nov 9, 2009 at 10:12 PM, Naftoli Gugenheim wrote:
> MappedManyToMany is defined in the ManyToMay trait, which your mapper
> should extend.
>
I found it in t
On Mon, Nov 9, 2009 at 11:38 PM, Marius wrote:
>
> http://www.scala-lang.org/docu/files/api/scala/xml/PrettyPrinter.html
>
> But this can be done today using: val responseTransformers = RulesSeq
> [LiftResponse => LiftResponse]
>
> LiftRules.responseTransformers.append {
> case response => //
Cool, I am trying that out. It seems to work well, but jetty takes abouts 2s
to fire up, any tips on reducing that?
--
From: Jonathan Ferguson
Sent: Monday, November 09, 2009 10:50 PM
To: liftweb@googlegroups.com
Subject: [Lift] Re: Unit testing a RESTful webservice wi
My mistake, thx for the clarification and work around.
--
From: David Pollak
Sent: Tuesday, November 10, 2009 1:33 AM
To: liftweb@googlegroups.com
Subject: [Lift] Re: 503 for url:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
It's not an issue of Lift's outp
> to create war file:
>
> mvn package
Yes, that's what I did. And then I dropped the war into the
appropriate directory
and created the configuration file in the contexts dir. When I then
try to go to the
page I get:
Well, that's weird. I'm doing the same as before and now it suddenly
w
Maybe this thread can help:
http://groups.google.com.my/group/liftweb/browse_thread/thread/5e7f7e6eec0a3388/47e1fc06d6aa56ce
in short:
to run as plugin:
mvn tomcat:run
to create war file:
mvn package
On Tue, Nov 10, 2009 at 5:08 PM, jhonig wrote:
>
> Maybe someone can point out if I'm miss
Maybe someone can point out if I'm missing something. I am trying to
get a
lift-war to run in a jetty instance on another machine. I assumed
that the war
would include everything needed to make my test application run, but
apparently
it doesn't include all the dependencies that are found when I
My sample project at http://219.94.110.243 was for sandbox. And in my
sandbox project, I had defined new Locale using:
new Locale("en_US") instead of new Locale("en", "US") =)
Yes Tim, at this point both Neil and I are anxious with your upcoming post
on the matter.
Thank you.
p/s: appreciate yo
Thanks Tim, we're looking forward to your detail reply!
:)
Cheers,
Neil
On Nov 10, 4:40 pm, Timothy Perrett wrote:
> Don't call Locale.setDefault - that is a global configuration for the
> JVM
>
> I would urge you to re-read my article -in it you'll see how I take a
> note of the request
For Oracle database tables, one typically creates a Sequence to
provide primary key values. For example:
create table WIDGET (
id Number(8,0) not null,
name varchar2(50) not null,
...
constraint WIDGET_PK primary key (id),
...
)
create sequence WIDGET_ID_SEQ
When creating re
Don't call Locale.setDefault - that is a global configuration for the
JVM
I would urge you to re-read my article -in it you'll see how I take a
note of the requested locale, and then hold that in a cookie for later
reference or use on a future visit. Study the locale calculator
carefully
Maybe the Locale.setDefault(iLocale) method's scope is the whole
website not for the single user ?
Cheers,
Neil
On Nov 10, 4:16 pm, "Neil.Lv" wrote:
> yk,
>
> But if only one person change the language ( to ms_MY).
>
> Then the other users of the website will also see the page as ms_M
yk,
But if only one person change the language ( to ms_MY).
Then the other users of the website will also see the page as ms_MY
language not the default language en_US.
I test in my computer it will affect the other browsers.
So...
Cheers,
Neil
On Nov 10, 3:16 pm, YING-KWANG TU wr
57 matches
Mail list logo