[Lift] Re: execute code when browser is closed

2009-10-06 Thread Naftoli Gugenheim
type=JoopComet name={term} auth:joop/auth:joop /lift:comet /lift:surround } And the term is indeed different each time. But I am still getting the same results from two different browsers with different terms. On Tue, Oct 6, 2009 at 12:18 AM, Naftoli Gugenheim naftoli

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Naftoli Gugenheim
I want to raise another related point. Currently all mapped fields have to be passed this. Is there a way to not require it? Can Mapper or Record use an implicit object etc. to fill in this? Or could there be an inner derived class that knows its parent, like I recently did for ModelView? In

[Lift] Re: Bind with a map collection

2009-10-06 Thread Naftoli Gugenheim
Or toSeq instead of toList. And if it still doesn't work surround it with NodeSeq.fromSeq(toSeq) - David Pollakfeeder.of.the.be...@gmail.com wrote: try tacking a .toList on after the flatMap() expression. On Tue, Oct 6, 2009 at 3:19 PM, rstradling

[Lift] Re: Binding a snippet in a comet actor?

2009-10-06 Thread Naftoli Gugenheim
What about an Ajax form? On Tue, Oct 6, 2009 at 9:52 AM, Somindra Bhattacharya somind...@gmail.com wrote: Hi Everyone, I have a comet actor that binds XHTML. The XHTML corresponds to a snippet: XHTML for comet actor -  lift:comet type=RCActor    Act:act /  /lift:comet When the

[Lift] Re: Need two classes to inherit from one model, database design and view issues

2009-10-06 Thread Naftoli Gugenheim
Here's some code I used when two tables share some fields and their Mappers can share a base trait. I have Fields which have difference Types, some of which reference lookup tables. trait BaseLookupTable[T:LongKeyedMapper[T]] {this: T = object field extends LongMappedMapper(this: T, Field)

[Lift] Re: How can I pass the result of Xml.toJson to JsonResponse

2009-10-06 Thread Naftoli Gugenheim
Which modules will be dependent on lift-json? On Tue, Oct 6, 2009 at 11:17 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Please open a ticket for this.  We need to get the rest of Lift playing well with Joni's excellent JSON library. On Tue, Oct 6, 2009 at 7:43 AM, glenn

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread Naftoli Gugenheim
that is available freely. Regards and good luck on your project Stefan 2009/10/5 koveen liep...@xs4all.nl hi Naftoli, thanks for your interest. On Oct 5, 10:50 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Being a non-programmer, and additionally not having a Java

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-06 Thread Naftoli Gugenheim
What you can do if I'm not mistaken, although not as good, is define in a base trait, def myField: MappedXXX ... and give different concrete object implementations. This way you have a common type that guarantees the field. On Tue, Oct 6, 2009 at 4:54 PM, David Pollak

[Lift] Re: Overriding date/time formatting

2009-10-06 Thread Naftoli Gugenheim
Also more flexibility should be coming soon if I'm not mistaken. I think there's a ticket and Derek is planning on working on it. On Tue, Oct 6, 2009 at 4:59 PM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Dirk Louwers dirk.louw...@stormlantern.nl writes: Hi, After having toyed around with

[Lift] Re: Git wiki formatting

2009-10-06 Thread Naftoli Gugenheim
Anyone? Please? On Mon, Oct 5, 2009 at 5:13 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: Can someone please fix the formatting on http://wiki.github.com/dpp/liftweb/example-paginating-mapper-based-snippets-with-sortable-headers ? Thanks

[Lift] Re: Git wiki formatting

2009-10-06 Thread Naftoli Gugenheim
:03 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: Anyone? Please? On Mon, Oct 5, 2009 at 5:13 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: Can someone please fix the formatting on http://wiki.github.com/dpp/liftweb/example-paginating-mapper-based-snippets-with-sortable-headers

[Lift] Re: LongKeyedMapper object where I can set the id

2009-10-08 Thread Naftoli Gugenheim
David, can we _please_ change the indicates saved logic as I proposed? - harryhhar...@gmail.com wrote: LongKeyedMapper object where I can set the id. I want a database object where I set the primary key myself (rather than having it be sequentially by the

[Lift] Re: MappedLong null values

2009-10-11 Thread Naftoli Gugenheim
It would be nice if there could be a generalized way of specifying optionality for fields.(The first though question is whether the default behavior is consistent -- do all field types equate NULL with their default?) I pasted the names of all the field types (by listing all Mapped*.class files in

[Lift] Re: Why fields are declared as 'object' with Mapper/Record?

2009-10-12 Thread Naftoli Gugenheim
So Model represents the database connection? 2009/10/12 Oleg G. ojo...@gmail.com On 13 окт, 00:08, naf g naftoli...@gmail.com wrote: Why do you have two classes, Model and Record? What are they and why are they interdependent? I thought about Model being a place for metainformation (like

[Lift] Re: MappedLong null values

2009-10-12 Thread Naftoli Gugenheim
it on a branch. On Sun, Oct 11, 2009 at 8:22 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: It would be nice if there could be a generalized way of specifying optionality for fields.(The first though question is whether the default behavior is consistent -- do all field types equate NULL

[Lift] Re: Debug cookies

2009-10-12 Thread Naftoli Gugenheim
use something like Wireshark or tcpdump to watch the headers go by if you're using a browser that doesn't have debugging extensions. -Ross On Oct 12, 2009, at 3:15 PM, Naftoli Gugenheim wrote: I'm writing an app in Lift that uses cookies to remember the user as logged in. When I run it from

[Lift] URL in PlainMailBodyType to BlackBerry

2009-10-12 Thread Naftoli Gugenheim
Hi. I'm sending an email using PlainMailBodyType that contains a URL. Normally when a BlackBerry receives a plain text email it automatically hyperlinks URLS and potential phone numbers. For some reason this email is not being hyperlinked on the BlackBerry. Is it possible that it's somehow not

[Lift] Re: Debug cookies

2009-10-12 Thread Naftoli Gugenheim
cookie with the new settings. Try: val cookie = net.liftweb.http.provider.HTTPCookie(cookieName, user.uniqueId.is ).setMaxAge(2 weeks) S.addCookie(cookie) (I took the liberty of rewriting your manual date arithmetic to TimeSpan syntax) -Ross On Oct 12, 2009, at 4:06 PM, Naftoli Gugenheim

[Lift] Re: net.liftweb.http.LiftFilter is not a javax.servlet.Filter

2009-10-12 Thread Naftoli Gugenheim
Wouldn't know, but have you tried looking up the source code that throws the exception? Is Jetty trying to do anything unusual? On Mon, Oct 12, 2009 at 8:14 PM, Timothy Perrett timo...@getintheloop.eu wrote: Hey guys, I've been having a crazy problem all day (and now into the extremely late

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-10-12 Thread Naftoli Gugenheim
the message and look at the message source.  Is it really plain text?  What do the headers say it is? On Mon, Oct 12, 2009 at 1:11 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: Hi. I'm sending an email using PlainMailBodyType that contains a URL. Normally when a BlackBerry receives a plain text

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-10-12 Thread Naftoli Gugenheim
True, I may have to do that at some point, although I'm not super confident I'll find such specs. What do you say to Ross's comment? Why is it multipart? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Oct 12, 2009 at 6:17 PM, Naftoli Gugenheim

[Lift] Re: Don't shoot the non-XML messenger ...

2009-10-13 Thread Naftoli Gugenheim
Can you please stop making it sound like you expect to speak rudely about Lift and get polite responses? Or are you completely unaware of how you sound? - Aulegrshipl...@gmail.com wrote: Bryan Been there, tried that. Oh - the mime type is text/vnd.curl

[Lift] Re: Lift 1.1 must use Scala 2.8.x ?

2009-10-14 Thread Naftoli Gugenheim
No On Wed, Oct 14, 2009 at 9:18 PM, Neil.Lv anim...@gmail.com wrote: Hi all,  If i want to use the lift1.1 whether the scala version must greater than 2.8 ?  My lift version is 2.7.4 now, so i must change to 2.8.x ?  Thanks very much ! Cheers,  Neil

[Lift] MappedString holding null

2009-10-14 Thread Naftoli Gugenheim
1. Why does MappedString have members such as nonNull(in: String) which don't depend on the MappedString's state? Shouldn't they be in a singleton somewhere? 2. It would be nice if there was a method like 'is' that would return null as . Actually for my particular use case where I'm testing

[Lift] Re: MappedString holding null

2009-10-14 Thread Naftoli Gugenheim
if s.length == 0 = true         case _ = false     } } -Ross On Oct 14, 2009, at 11:08 PM, David Pollak wrote: On Wed, Oct 14, 2009 at 7:45 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: 1. Why does MappedString have members such as nonNull(in: String) which don't depend

[Lift] Re: MappedString holding null

2009-10-14 Thread Naftoli Gugenheim
On Wed, Oct 14, 2009 at 11:08 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Oct 14, 2009 at 7:45 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: 1. Why does MappedString have members such as nonNull(in: String) which don't depend on the MappedString's state? Shouldn't

[Lift] Re: Creating calculated fields in mapper

2009-10-15 Thread Naftoli Gugenheim
Have you made any progress? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: Naftoli Gugenheim naftoli...@gmail.com writes: What are you trying to do? Store a computed value in a database column? No Or have a fake MappedInt in your model whose value

[Lift] Re: How much Scala knowledge is needed to start coding a simple blog with Lift?

2009-10-15 Thread Naftoli Gugenheim
Can you outline the feature set it should have? And what is your time frame? - ngocdaothanhngocdaoth...@gmail.com wrote: Hi, I have experience with Rails and Java. I'm new to Scala and Lift. I want to ask how much Scala knowledge is needed to start coding a

[Lift] Re: Sending a XML message to a Lift server

2009-10-15 Thread Naftoli Gugenheim
Both errors are because you broke up the line before the parenthesis. - GAmy_li...@me.com wrote: Hello Jon, your code is giving me two errors in the last two lines. (fragment of Main.scala):52: error: ambiguous reference to overloaded definition, both

[Lift] Re: Another Newbie Question (Last one for a while, Promise!)

2009-10-15 Thread Naftoli Gugenheim
I had a similar requirement, so I factored out ItemsListEditor. Subclass it and override its items with an ItemsList subclass. You can also override title, onInsert/Remove/Submit, sortFn, and fieldFilter. Actually you have to override items and title because they're abstract. Then use the

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-10-15 Thread Naftoli Gugenheim
. - Ross Mellgrendri...@gmail.com wrote: Do you have evidence that it ever will auto-highlight URLs in plain text emails? E.g. some email from your client? -Ross On Oct 15, 2009, at 3:18 PM, Naftoli Gugenheim wrote: It isn't not handling the message, it's

[Lift] Re: Attributes question

2009-10-15 Thread Naftoli Gugenheim
:16 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What's the advantage of -? That it looks more like an arrow?Personally I'm fine either way, but I think the important question is what most people find conveys the intent. I wish I would get more responses to the question! :) One the one

[Lift] Re: run jetty

2009-10-15 Thread Naftoli Gugenheim
The backslash works on Linux, not Windows, as a line continuator. - Wilson MacGyverwmacgy...@gmail.com wrote: simple answer, do it as one line like this mvn archetype:generate -U -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-16 Thread Naftoli Gugenheim
What's exactly the problem if it's pre 1.0? That it may have bugs? - Derek Chen-Beckerdchenbec...@gmail.com wrote: Right. Fortunately most of the work setting up Joda Time will make switching to Scala Time pretty simple. Derek On Fri, Oct 16, 2009 at 4:46

[Lift] Re: Newbee question Datamapper

2009-10-16 Thread Naftoli Gugenheim
I think there is support somewhere in the MappedField hierarchy for a MappedField that represents to database columns. Take a look at MappedPassword. - harryhhar...@gmail.com wrote: Make MyMappedTimeSpan a trait: trait MyMappedTimeSpan[T :Mapper[T]](val

[Lift] Re: Newbee question Datamapper

2009-10-17 Thread Naftoli Gugenheim
]{ override def getSingleton = Bericht object mittag extends MyMappedTimeSpan[Bericht] ... If someone found a simple solution, please tell me so :) hyperion On 16 Okt., 22:01, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Oct 16, 2009 at 9:42 AM, Naftoli Gugenheim naftoli

[Lift] Re: Friendly url parameter for PaginateSnippet?

2009-10-18 Thread Naftoli Gugenheim
Two points. 1. Could you explain in more detail the advantage of a friendly URL? 2. Keep in mind that it's safer for MVC frameworks to implement such a scheme, because you only use pagination on a page which is designed with pagination in mind. In Lift, with View First, pagination

[Lift] Re: How to set uniqueFieldId

2009-10-18 Thread Naftoli Gugenheim
Try fld.uniqueFieldId openOr n/a On Sun, Oct 18, 2009 at 11:19 PM, sunanda sunanda.pa...@gmail.com wrote: Hi, How to set the uniqueFieldId for a mapper. Following is the sample code how I set the uniqueFieldId. object colpos extends MappedInt(this){ override def validations =

[Lift] Re: Scala and Eclipse

2009-10-18 Thread Naftoli Gugenheim
I use Lift in Eclipse with m2eclipse. I create the projects from within Eclipse. On Sun, Oct 18, 2009 at 12:01 AM, johncch john...@gmail.com wrote: We have a large multi-module project that includes scala in a few key artifacts and things are going somewhat smoothly. However, I think most

[Lift] Re: reverse-Schemifier: generating BaseMapper instances from schema/SQL/JPA

2009-10-19 Thread Naftoli Gugenheim
Actuall I think someone mentioned a while ago that he had a limited tool to generate source code for Mappers from SQL. Maybe such source code could be compiled using a technique like the REPL uses. - Derek Chen-Beckerdchenbec...@gmail.com wrote: As far as I

[Lift] Re: maintaining logged in user longer outside of SessionVar

2009-10-19 Thread Naftoli Gugenheim
Is it more dangerous to store the user's uniqueId in a cookie than to store another uniqueId that's associated with the user's uniqueId? - Jeppe Nejsum Madsenje...@ingolfs.dk wrote: harryh har...@gmail.com writes: I want users to stay logged into my site

[Lift] Re: maintaining logged in user longer outside of SessionVar

2009-10-19 Thread Naftoli Gugenheim
MetaMegaProtoUser has hooks -- onLogIn, onLogOut, and autologinFunc -- that you can use. autologinFunc is called when loggedIn_? is called and no user is logged in, to give you a chance to log one in. So you can create a cookie in onLogIn, delete it in onLogOut, and read it in autologinFunc.

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-19 Thread Naftoli Gugenheim
Since there are anyway minor breaking changes in 1.1, maybe it's worth it to take TimeHelpers out of Helpers. This way, it will simply require an extra import, of either TimeHelpers or JodaHelpers, which can be chosen by the individual developer. Whenever someone is ready to migrate, they will

[Lift] Re: maintaining logged in user longer outside of SessionVar

2009-10-19 Thread Naftoli Gugenheim
It shouldn't be such a problem. All that's needed is to rename it, and add a def with the misspelling that points to it, deprecated. Something like @deprecated def experation = expiration I guess you could file a ticket and someone will eventually get to it.

[Lift] Re: net.liftweb.widgets.autocomplete in version 1.1-M6

2009-10-20 Thread Naftoli Gugenheim
Does it help to change map to flatMap? On Tue, Oct 20, 2009 at 7:15 AM, Tweek d.sztwio...@gmail.com wrote: Hi, Previously i was working on version 1.1-M3 of lift framework and i used autocomplete widget by override _toForm method in my Test.scala file. It was something like that: object

[Lift] Re: reCaptcha integration

2009-10-20 Thread Naftoli Gugenheim
S.param(recaptcha_challenge_field) match { case Full(value) = // work with the value of 'value' case _ = // deal with the fact that there's no result. } On Tue, Oct 20, 2009 at 12:49 PM, CodeSlave9000 ccebelen...@gmail.comwrote: replying to myself a bit here - starting to figure some of

[Lift] Menu entry to perform action then redirect

2009-10-20 Thread Naftoli Gugenheim
Could someone give an example of a Sitemap menu entry that performs an action and then redirects?Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] S.uri not including query params

2009-10-20 Thread Naftoli Gugenheim
Is S.uri supposed to return the part of the URL after '?'? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group,

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-20 Thread Naftoli Gugenheim
I agree with this. My understanding is that the goal is that Lift should use Joda for its time functions rather than java.util. If the Joda methods have different and longer names, then it's existing side by side with the java.util implementation, not replacing it. To many people, it is

[Lift] Re: S.uri not including query params

2009-10-20 Thread Naftoli Gugenheim
. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Tue, Oct 20, 2009 at 2:48 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Is S.uri supposed to return the part of the URL after '?'? No -- Lift, the simply functional web framework http://liftweb.net

[Lift] Re: Calling a method from other snippet

2009-10-21 Thread Naftoli Gugenheim
That needs to be new SecondSnippet().render or (new SecondSnippet).render - Ross Mellgrendri...@gmail.com wrote: Just call it: class FirstSnippet { def render(ns: NodeSeq): NodeSeq = { bind(foobar, ns, otherSnippet - new

[Lift] Re: Calling a method from other snippet

2009-10-21 Thread Naftoli Gugenheim
How about building an email client into your REPL? ;) - Ross Mellgrendri...@gmail.com wrote: So true. I need a REPL built in to my email client ;-) -Ross On Oct 21, 2009, at 9:50 PM, Naftoli Gugenheim wrote: That needs to be new SecondSnippet().render

[Lift] Re: A Critique On Lift

2009-10-22 Thread Naftoli Gugenheim
How hard can automatic save be? But how would immutable DAOs work? There was a thread, I think on scala-user, a long time ago discussing it, that pretty much concluded it would be very problematic. David weighed in and said after a long time he concluded that databases represent state.

[Lift] Re: A Critique On Lift

2009-10-22 Thread Naftoli Gugenheim
The last use of _, as in empty_?, is not a special scala meaning. As on Java, underscores can be part of an identifier. Scala takes advantage of this to combine letters and symbols in one name. These names, like empty_?, are a Lift convention, as well as ..._! for use-with-care methods. The

[Lift] Re: html not being evalutated

2009-10-22 Thread Naftoli Gugenheim
I think another solution is an Unparsed node. When the XML is converted to a string it will be outputed verbatim. - jackjack.wid...@gmail.com wrote: Let's say source.body is ahref=google.comSearch/a. If I put source.body in a span like this -

[Lift] Re: Testing for SQL Server drivers

2009-10-23 Thread Naftoli Gugenheim
Don't you have a Windows machine that you can install SQL Server Express on? On Wed, Oct 21, 2009 at 6:02 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Hi, I've made some changes to Mapper to better support SQL Server, particularly with Unicode text. Does anyone out there use SQL

[Lift] Re: Announcing the Lift Announce group/mailing list **IMPORTANT**

2009-10-23 Thread Naftoli Gugenheim
Will non-committers be able to reply on a thread? On Fri, Oct 23, 2009 at 9:07 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, After yesterday's issues surrounding the breaking changes in Lift, I've decided to create a low volume group called Lift Announce. You can see the

[Lift] Re: Testing for SQL Server drivers

2009-10-23 Thread Naftoli Gugenheim
100%. Just curious. :) On Fri, Oct 23, 2009 at 4:05 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Oct 23, 2009 at 12:10 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Don't you have a Windows machine that you can install SQL Server Express on? Even if Derek does

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread Naftoli Gugenheim
How about we integrate the wiki, blog, forum, and issue tracker into the CMS? ;) Seriously, maybe it would be a good idea to create a repo and list, and start serious discussion on all aspects of its design. Maybe it could become a big community project, with lots of feedback to Lift.

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-24 Thread Naftoli Gugenheim
Well if users would, for at least one release, explicitly say which time library they want to use, this kind of bug would not occur. It's not 'jt' per se; rather, as Derek said, it's having names that indicate the implementation detail rather than simply what it does. It makes code less

[Lift] Re: NetBeans is barfing on the new pom.xml structure

2009-10-24 Thread Naftoli Gugenheim
Just want to mention that m2eclipse also had a problem. Thanks for addressing it. - Indrajit Raychaudhuriindraj...@gmail.com wrote: Plugin and extension versions are optional in Maven pom. Not providing the version has a small advantage - it defaults to

[Lift] Re: Testing for SQL Server drivers

2009-10-24 Thread Naftoli Gugenheim
...@gmail.com wrote: I'm pretty much 100% linux at home. I can test any other database (Oracle, MySQL, PostgreSQL, etc), but SQL Server is the exception :) On Fri, Oct 23, 2009 at 2:14 PM, Naftoli Gugenheim naftoli...@gmail.com naftoli...@gmail.com wrote: 100%. Just curious. :) On Fri, Oct 23

[Lift] Lift Actor names

2009-10-24 Thread Naftoli Gugenheim
I was looking at Actor.scala, which contains SimpleActor, SimplestActor, TypedActor, GenericActor, and ForwardableActor. Some people will say, once you know what something does, who cares what it's called? But names can really make a difference in learning curve, memorization, and code

[Lift] Re: Proposal : Lift ticketing system

2009-10-25 Thread Naftoli Gugenheim
, Naftoli Gugenheim naftoli...@gmail.com wrote: How about we integrate the wiki, blog, forum, and issue tracker into the CMS? ;) Seriously, maybe it would be a good idea to create a repo and list, and start serious discussion on all aspects of its design. Maybe it could become a big community

[Lift] Register new StatefulSnippet

2009-10-25 Thread Naftoli Gugenheim
This may be more of a feature request than a question. I generally use StatefulSnippets rather than RequestVars. I have several places in my Lift webapp where one should be redirected to a screen managed by a StatefulSnippet. Until recently I thought it would suffice to use S.mapSnippet to map

[Lift] Re: How to use the many-to-many relationship in the lift Model ?

2009-10-25 Thread Naftoli Gugenheim
What is your intention regarding the students.teacher object? - YING-KWANG TUying.kwang...@gmail.com wrote: Neil, In a nutshell... assuming teacher is the main entity and student is another entity. You will need to: In your teachers class: 1. extend

[Lift] Re: How to use the many-to-many relationship in the lift Model ?

2009-10-26 Thread Naftoli Gugenheim
that the Role. Why is the Role not the teacher_student ? Cheers, Neil On Oct 26, 1:09 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: What is your intention regarding the students.teacher object? - YING-KWANG TUying.kwang...@gmail.com wrote: Neil

[Lift] Re: Generate Visual Diagram from existing Sources

2009-10-26 Thread Naftoli Gugenheim
Don't know. It would be neat if someone would write a compiler plugin to generate ispace diagrams (an eclipse plugin). Probably not very hard. - Hanneshannes.flo...@gmx.li wrote: Hi Lifters, Is there a way to automatically generate a Diagram (e.g. UML)

[Lift] Re: I am not able to save a many-to-many relationship from an API

2009-10-26 Thread Naftoli Gugenheim
It would be feasible to refactor ManyToMany to remove this restriction. OneToMany does not require either side to be saved first. Can you describe a use case where it would be desirable? - Jim Barrowsjim.barr...@gmail.com wrote: On Mon, Oct 26, 2009 at 11:43

[Lift] Re: generating TABLE columns

2009-10-26 Thread Naftoli Gugenheim
Sorry I can't give you code, but the key here is the the BindParam can take a function from a NodeSeq to a NodeSeq. Say each column represents a field. eachfield - bindIndividualFields where bindIndividalField is a function that takes and returns a NodeSeq. Its input will be the contents of

[Lift] Re: Friendly url parameter for PaginateSnippet?

2009-10-26 Thread Naftoli Gugenheim
I was just thinking about your question. If you want Paginator to generate links with query parameters indeed it's not straightforward. But if you want to optionally allow users to specify the page in the URL, add code like the following in a (possibly anonymous) subclass of Paginator (example

[Lift] Re: I am not able to save a many-to-many relationship from an API

2009-10-26 Thread Naftoli Gugenheim
What do you mean by that? Every primary key is unique. - Jim Barrowsjim.barr...@gmail.com wrote: On Mon, Oct 26, 2009 at 12:05 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: It would be feasible to refactor ManyToMany to remove this restriction

[Lift] Re: I am not able to save a many-to-many relationship from an API

2009-10-26 Thread Naftoli Gugenheim
, Naftoli Gugenheim naftoli...@gmail.comwrote: What do you mean by that? Every primary key is unique. The pivot table is typically only 2 columns, which are the PK's for each side of the MTM. ---- --- |Table1|-|Pivot||Table2

[Lift] Re: Lift 1.1 Milestone 7

2009-10-26 Thread Naftoli Gugenheim
Could someone fix #121 (loginRedirect using S.uri; not getting part after '?') - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Oct 26, 2009 at 4:24 PM, Viktor Klang viktor.kl...@gmail.comwrote: Folks, may I suggest cutting a Lift 1.1 Milestone

[Lift] Re: Two entity class map onto one DB table?

2009-10-27 Thread Naftoli Gugenheim
Why do you want this? What's wrong with one Mapper or two tables? - Ferdinand Chanunique...@gmail.com wrote: Hi, I'm a newbie to Lift and still learning Lift by coding a pet project. One question I have is about the Mapper. For example, if I have two

[Lift] Re: Lift 1.1 Milestone 7

2009-10-27 Thread Naftoli Gugenheim
I won't be at a connection too soon. Could you paste the diff into the body of an email? Thanks! - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Oct 26, 2009 at 7:59 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Could someone fix #121

[Lift] Re: Proposal : Lift ticketing system

2009-10-27 Thread Naftoli Gugenheim
24, 2009 at 9:17 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: How about we integrate the wiki, blog, forum, and issue tracker into the CMS? ;) Seriously, maybe it would be a good idea to create a repo and list, and start serious discussion on all aspects of its design. Maybe it could

[Lift] Re: Lift 1.1 Milestone 7

2009-10-27 Thread Naftoli Gugenheim
, Naftoli Gugenheim naftoli...@gmail.comwrote: I won't be at a connection too soon. Could you paste the diff into the body of an email? diff --git a/lift-base/lift-webkit/src/main/scala/net/liftweb/http/S.scala b/lift-base/lift-webkit/src/main/scala/net/liftweb/http/S.scala --- a/lift-base/lift

[Lift] Re: The value is missing when i use the DatePicker to post data to the Server ?

2009-10-27 Thread Naftoli Gugenheim
I think you want S.param, not S.attr. Is the form being submitted via GET? What do you see in the URL string? Look first at the HTML source to see the name attribute generated by Lift--it's different each time. - Neil.Lvanim...@gmail.com wrote: I print

[Lift] Re: Proposal : Lift ticketing system

2009-10-28 Thread Naftoli Gugenheim
and bug tracking, and I think I can do that with a small set of initial features. Derek On Sat, Oct 24, 2009 at 9:17 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: How about we integrate the wiki, blog, forum, and issue tracker into the CMS? ;) Seriously, maybe it would be a good idea

[Lift] Re: Register new StatefulSnippet

2009-10-28 Thread Naftoli Gugenheim
Thanks. I greatly appreciate it. - David Pollakfeeder.of.the.be...@gmail.com wrote: I opened a ticket for this. I'll expose functionality so you can register stateful snippets as part of the request process. On Sun, Oct 25, 2009 at 1:09 PM, Naftoli

[Lift] Re: Proposal : Lift ticketing system

2009-10-28 Thread Naftoli Gugenheim
, but at this point I would like to keep things relatively simple so that this doesn't grow into something that I can't finish. Derek On Wed, Oct 28, 2009 at 2:39 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What is the goal of this system? Is it to be a nice, useful ticketing system that will serve

[Lift] Re: Binding enumerations with radio buttons or select list

2009-10-28 Thread Naftoli Gugenheim
Why not put it on the wiki? :) - Stromstrommo...@gmail.com wrote: Thanks again Ross! I also found out that I could use the ChoiceHolder.toForm method for a little less customization (saves a ton of code though). The following rundown is for newbies like me

[Lift] Re: Binding enumerations with radio buttons or select list

2009-10-28 Thread Naftoli Gugenheim
wants to post this information on there somewhere, go for it! Strom On Oct 28, 5:39 pm, Ross Mellgren dri...@gmail.com wrote: +1  --  nice detailed writeup -Ross On Oct 28, 2009, at 8:38 PM, Naftoli Gugenheim wrote: Why not put it on the wiki

[Lift] Re: How to disable a textfield

2009-10-29 Thread Naftoli Gugenheim
It's a general purpose arrow to preserve attributes from the template. - YING-KWANG TUying.kwang...@gmail.com wrote: by adding % between - and will: 1. disable the text field as per Sunanda's sample cod 2. or merely preserving element attributes?

[Lift] Re: Proposal : Lift ticketing system

2009-10-29 Thread Naftoli Gugenheim
it sounds interesting but I think I want to start with the basic fields as I have them defined and I can look at it more in phase 2. Derek On Wed, Oct 28, 2009 at 3:20 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I hear that. Personally I think it would be more maintainable, not less

[Lift] Re: Loc questions

2009-10-29 Thread Naftoli Gugenheim
Should it start with create? I'm not too familiar with Loc, but is it building something or calculating/returning something? - Kris Nuttycombekris.nuttyco...@gmail.com wrote: Okay. I might add a createPath method that returns List[String] or

[Lift] Re: Problem mapping a request for a REST Api

2009-10-29 Thread Naftoli Gugenheim
List(api, package, packageName : _* ) - andythedestroyerandythedestro...@gmail.com wrote: Hello, I am creating a rest api for an app and am having trouble extracting a var from the matched request. Object MyApi extends XMLHelperApi { def dispatch :

[Lift] Re: Overriding binding of numbers?

2009-10-29 Thread Naftoli Gugenheim
Is there already a BindParam implicit for String - Double? Because if not maybe you can create one. On Thu, Oct 29, 2009 at 10:12 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, Currently, whenever I need to bind numbers (Int, Double Decimal) I have to call a formatting method to get

[Lift] Re: Problem mapping a request for a REST Api

2009-10-29 Thread Naftoli Gugenheim
. [WARNING] case Req(List(api , package , packageName : _*), , GetRequest) = -Andy On Oct 29, 2:32 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: List(api, package, packageName : _* ) - andythedestroyerandythedestro...@gmail.com wrote: Hello, I am

[Lift] Re: Error with the SHtml.select method ?

2009-10-30 Thread Naftoli Gugenheim
What is book.type_id? And are you sure there's no '=' before '{'? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Fri, Oct 30, 2009 at 10:28 AM, Neil.Lv anim...@gmail.com wrote: Thanks David, it works now, it return the param that passed into the

[Lift] Re: Register new StatefulSnippet

2009-10-30 Thread Naftoli Gugenheim
registerThisSnippet extend its lifetime. Thanks. - David Pollakfeeder.of.the.be...@gmail.com wrote: I opened a ticket for this. I'll expose functionality so you can register stateful snippets as part of the request process. On Sun, Oct 25, 2009 at 1:09 PM, Naftoli Gugenheim

[Lift] Re: Register new StatefulSnippet

2009-10-30 Thread Naftoli Gugenheim
Do you need a complete project? On Fri, Oct 30, 2009 at 2:09 PM, David Pollak feeder.of.the.be...@gmail.com wrote: File a ticket with a code sample. On Fri, Oct 30, 2009 at 11:03 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Hi. I tried the new functionality. Step 1 works: In my

[Lift] Re: cucumber + webrat with Lift (switch off auto generation of name/id attrs)

2009-10-30 Thread Naftoli Gugenheim
Can't you go by input id instead of input name? You can use the _id_ arrow to set the bind name as the id Template: pre:label / Snippet: bind(pre, xhtml, label _id_SHtml.text( ... ) ) Should produce input id=label ... / On Fri, Oct 30, 2009 at 3:00 PM, ben b...@primrose.org.uk wrote: Hi,

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-10-30 Thread Naftoli Gugenheim
to support single part MIME messages, but I really have trouble believing that a BlackBerry can't handle it. Derek On Mon, Oct 12, 2009 at 9:38 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: True, I may have to do that at some point, although I'm not super confident I'll find

[Lift] Re: Register new StatefulSnippet

2009-10-30 Thread Naftoli Gugenheim
I added the following comment: Adding println(names) in the submit function (even after calling S.setSnippetForClass) prints Set(). On the other hand if the snippet was instantiated by Lift then it prints as expected (in my case Set(Clients). On Fri, Oct 30, 2009 at 3:16 PM, Naftoli Gugenheim

[Lift] Re: SHtml.ajaxForm postSubmit addition?

2009-10-30 Thread Naftoli Gugenheim
Especially with 2.8 named arguments around the corner... On Fri, Oct 30, 2009 at 3:47 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Another hopefully quick question. There are two ajaxForm signatures that are identical except for the argument order: def ajaxForm(onSubmit: JsCmd, body:

[Lift] Re: URL in PlainMailBodyType to BlackBerry

2009-10-31 Thread Naftoli Gugenheim
, around line 156. There should be a check or match to see if info is a List(PlainMailBodyType), and if so, skip the Multipart mapping that follows and do a message.setText on the contents of the PlainMailBodyType instead. Derek On Fri, Oct 30, 2009 at 1:29 PM, Naftoli Gugenheim naftoli

[Lift] Error mvn install on lift-actor

2009-10-31 Thread Naftoli Gugenheim
What could be wrong? C:\dev\gitrepo\liftweb\lift-base\lift-actormvn -e install + Error stacktraces are turned on. [INFO] Scanning for projects... WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Lift Actor [INFO]

[Lift] Re: Error mvn install on lift-actor

2009-11-01 Thread Naftoli Gugenheim
for lift-actors in your local repo. Pull it up in a text editor that will show you all characters and switch encodings. - Josh On Sat, Oct 31, 2009 at 10:54 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What could be wrong? C:\dev\gitrepo\liftweb\lift-base\lift-actormvn -e install

<    1   2   3   4   5   6   7   8   >