[Lift] Re: Whitespace removal from XML

2009-11-09 Thread Bryan Germann
Also see trimProper in http://lampsvn.epfl.ch/trac/scala/browser/scala/tags/R_2_7_7_final/src/library/scala/xml/Utility.scala?view=markup --Bryan On Mon, Nov 9, 2009 at 5:47 PM, harryh har...@gmail.com wrote: Answering my own question, I wrote this.  I think it should do what I want: def

[Lift] Scala Lift Off East

2009-11-01 Thread Bryan
an existing PHP app. Another user held a session on how his company used lift to create its website in under 90 days. -- I hope I got that right. --Bryan Sent from my iPhone --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

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

2009-10-13 Thread Bryan
it trivial, I had not mocked a framework, and you, Mr. Pollock, had not raged. From my readings, Mr. Pollak has yet to show any rage. --Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post

[Lift] Binding - keepAttrs?

2009-09-17 Thread Bryan
) ) f:pickupDate f:id=pdate f:maxlength=10 f:size=10 / Renders as input value= type=text name=F812119230404JZF / But should be input value= type=text name=F812119230404JZF id=pdate maxlength=10 size=10 / Thanks, Bryan --~--~-~--~~~---~--~~ You received

[Lift] Re: customizing my SiteMap

2009-06-28 Thread Bryan
me know if you have any questions. Regards, Bryan Germann On Sun, Jun 28, 2009 at 2:47 PM, David Personsdhwpers...@gmail.com wrote: Hello guys, For a project, we use a pre-defined html / css template. This template displays the menu as follows: div id=menu        ul                li

[Lift] Re: customizing my SiteMap

2009-06-28 Thread Bryan
limenu:bind name=contact a:id=contact //li /lift:MyMenu.select /ul /div On Jun 28, 8:08 pm, Bryan germ...@gmail.com wrote: Hi David, I created a custom snippet, MyMenu, to do this:http://paste.pocoo.org/show/EVKLV81FdRuz257apvS7/.  See its select method.  I just happened to rewrite the code

[Lift] Is Hudson Stuck? 6/24

2009-06-24 Thread Bryan
Is this the correct URL to check on the status of the Hudson build? If so, is it stuck? --Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb

[Lift] Re: Is Hudson Stuck? 6/24

2009-06-24 Thread Bryan
I'm using http://hudson.scala-tools.org/job/Lift/. On Jun 24, 9:08 pm, Bryan germ...@gmail.com wrote: Is this the correct URL to check on the status of the Hudson build? If so, is it stuck? --Bryan --~--~-~--~~~---~--~~ You received this message because you

[Lift] Re: JPA and auto generation of id

2009-06-24 Thread Bryan
Try upgrading your hibernate version from 3.3.1.ga to 3.3.2.GA. Derek, can you look into upgrading the archetype to this release as well? I recall 3.3.1.ga having some packaging issues. --Bryan On Wed, Jun 24, 2009 at 6:29 PM, David Personsdhwpers...@gmail.com wrote: Thanks for all

[Lift] Re: Lift Jquery autocomplete *** API CHANGE CANDIDATE ***

2009-06-15 Thread Bryan.
Hi Marius, I just updated to the tip and got a build failure: [WARNING] /home/bryan/public-repos/git/liftweb/sites/example/src/main/ scala/net/liftweb/example/snippet/Ajax.scala:65: error: value autocomplete is not a member of object net.liftweb.http.jquery.JqSHtml [WARNING] auto

[Lift] Re: How to remove leading text in Msgs.error

2009-06-05 Thread Bryan.
+1 on removing the default text. --Bryan On Jun 5, 6:46 am, marius d. marius.dan...@gmail.com wrote: The reason for that is that if the node text is empty (and yes we explicitly trim it) we render the default text. To be honest I'm not a fan of this approach either. I think it should be ok

[Lift] Re: Future of the Lift wiki

2009-06-02 Thread Bryan.
I too am willing to help. I really like the format of the django documentation: http://docs.djangoproject.com/en/dev/. Any other recommendations out there? Thanks, Bryan On Jun 2, 6:57 am, Kevin Wright kev.lee.wri...@googlemail.com wrote: Mark me down :) On Tue, Jun 2, 2009 at 9:36 AM

[Lift] Showing a Box or Redirecting?

2009-05-30 Thread Bryan
): NodeSeq = ... } Thanks, Bryan --~--~-~--~~~---~--~~ 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, send email to liftweb+unsubscr

[Lift] Re: Where is scalajpa.jar?

2009-05-30 Thread Bryan.
http://scala-tools.org/repo-snapshots/org/scala-tools/scalajpa/ --Bryan On May 30, 8:37 pm, c...@munat.com wrote: Missing: -- 1) org.scala-libs:scalajpa:jar:1.1-SNAPSHOT   Try downloading the file manually from the project website.   Then, install it using the command:       mvn

[Lift] Re: Showing a Box or Redirecting?

2009-05-30 Thread Bryan.
I guess I should just have def showFoo(xhtml: NodeSeq) and use bind to render A, B, C, D, and E. --Bryan On May 30, 9:12 pm, Bryan germ...@gmail.com wrote: If Foo has 5 methods that I need to show in a Snippet (scattered throughout the template), what's a good way to S.error(inactive

[Lift] Re: Giving an Actor access to S

2009-05-26 Thread Bryan.
in a SessionVar, but I am currently not able to. These results are short lived and should expire at the end of a user's session. Thanks, Bryan On May 26, 1:42 am, marius d. marius.dan...@gmail.com wrote: Well and S object is initiated but in an asynchronous operation you wont really have request

[Lift] Re: Giving an Actor access to S

2009-05-26 Thread Bryan.
Thanks. --Bryan On May 26, 11:33 am, David Pollak feeder.of.the.be...@gmail.com wrote: As long as you have access to the LiftSession, you can initialize S and use it correctly: case MyMessage = S.initIfUninitted(theSession) { ... code to execute in the actor scope } Thanks, David

[Lift] Giving an Actor access to S

2009-05-25 Thread Bryan
How can I give an Actor access to S? I need this for adding results to a SessionVar of a HashMap. If I call show() directly, then I see localhost logged. If I call show() from within an actor, then it logs nowhere_123.com: listener ! 'show. val listener: Actor = actor { loop { react {

[Lift] Re: Strange Comet Behavior

2009-05-12 Thread Bryan.
Wow, this is great stuff! setupComet was a very thoughtful addition. Thanks, David. Regards, Bryan On May 12, 6:13 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Bryan, I've reworked your example... and based on my re-work, I added a method to LiftSession that allows you to send

[Lift] Strange Comet Behavior

2009-05-11 Thread Bryan
browser cache, cookies, and even trying on a remote windows browser with no luck. If I add Thread.sleep(1000) to the comet actor's localSetup, then everything appears to work OK. Please see the sample code and let me know if I'm doing something wrong. Thanks, Bryan

[Lift] Re: Strange Comet Behavior

2009-05-11 Thread Bryan.
I posted this message through the Google Groups interface and was forced to upload to http://groups.google.com/group/liftweb/files?hl=en. Sorry about the confusion. --Bryan On May 11, 4:01 pm, David Pollak feeder.of.the.be...@gmail.com wrote: You didn't include the code... :-( On Mon, May

[Lift] Re: Strange Comet Behavior

2009-05-11 Thread Bryan.
. Is there a way to currently check if the page is ready for the partialUpdate? If so, then I can just add some guard to the cases in my partial function passed to lowPriority. Thanks, Bryan On May 11, 6:31 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, May 11, 2009 at 3:08 PM, Bryan

[Lift] Re: Tail merge?

2009-05-10 Thread Bryan.
A nice use for this tail merge would be for the Google Analytics tracking code, especially the ecommerce tracking code. Here's something to keep an eye on as well: http://blog.digg.com/?p=621 -- still very new and in development. --Bryan On May 10, 9:57 am, David Pollak feeder.of.the.be

[Lift] Re: How to handle refresh with S.redirectTo with state?

2009-05-05 Thread Bryan.
, Bryan On May 4, 2:24 am, marius d. marius.dan...@gmail.com wrote: Not at all. They are safe. On May 3, 9:49 pm, Bryan. germ...@gmail.com wrote: Would that mean that the state of the RequestVar could accidentally be shared with multiple requests? On May 3, 1:51 pm, marius d. marius.dan

[Lift] button binder

2009-05-04 Thread Bryan
class=mybutton... a few images will go here ... /button) and in my snippet bind(f, xhtml, ... submit - MyButton.red(Search, processSearch)) Thanks, Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group

[Lift] Re: Sample applications are somewhat slow - is Lift slow ?

2009-05-03 Thread Bryan.
Hi Daniel, You can pass the following to mvn: -Drun.mode=production. --Bryan On May 3, 9:18 am, Daniel Guryca dun...@gmail.com wrote: Hi David, Thank you for your reply. How and where can I set production vs development mode in lift ? Thank you again. Daniel On Sun, May 3, 2009 at 3

[Lift] Re: Lift documentation -- Attention newcomers (and everyone else)!

2009-05-03 Thread Bryan.
I'd like to help with the wiki as well. Let me know if there is anything in particular that you would like me to do. --Bryan On May 3, 9:46 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 3, 2009 at 6:33 AM, Axel Rose axel.roesl...@googlemail.comwrote: Hello Charles

[Lift] Re: How to handle refresh with S.redirectTo with state?

2009-05-03 Thread Bryan.
= locationQuery.open_!.pickupLocation Text(selectedCity.name + , + selectedCity.region) } else { Text() } } // ... } Thanks, Bryan On May 3, 11:46 am, marius d. marius.dan...@gmail.com wrote: Oh.. 1 2 are unrelated ... just slightly different approaches. On May 3, 6:45 pm

[Lift] Re: How to handle refresh with S.redirectTo with state?

2009-05-03 Thread Bryan.
of Cars scope? just object locationQuery extends RequestVar[Box[LocationQuery]](Empty) class Cars {   ... } .. personally I would avoid using open_! unless I'm really sure that the Box is not Empty. Br's, Marius On May 3, 7:08 pm, Bryan. germ...@gmail.com wrote: I believe I am

[Lift] Re: scalar queries in Lift/JPA

2009-04-24 Thread Bryan.
I've never tried this on a scalar query, but a constructor expression example should be something like this: select new com.chas.values.AnswerCount(t.answer, count(distinct answer)) from ... class AnswerCount(answer: String, count: Long) { private def nullToOption[T](v: T) = v match { case

[Lift] Re: Need for lightweight JPA archetype

2009-04-13 Thread Bryan.
Great! I can't wait to check these out. Thanks, Bryan On Apr 13, 6:32 pm, Timothy Perrett timo...@getintheloop.eu wrote: Awesome work Derek! On 13/04/2009 23:24, Derek Chen-Becker dchenbec...@gmail.com wrote: OK, I just checked in two more archetypes for JPA: lift-archetype-jpa

[Lift] JPA Run Modes

2009-04-13 Thread Bryan
Is it possible to use mvn -Drun.mode with JPA in lift? For example, mvn -Drun.mode=production would use persistence-prod.xml. This will allow me to keep my test data separate from my development data. Thanks, Bryan --~--~-~--~~~---~--~~ You received

[Lift] Conversation Context

2009-01-22 Thread Bryan
and automatically handles memory cleanup when a conversation is no longer in use. This would allow users to work in multiple tabs. Keeping the back button working during this process would be a *huge* plus. Thanks, Bryan --~--~-~--~~~---~--~~ You received

[Lift] Re: Conversation Context

2009-01-22 Thread Bryan
linked to. I just wanted to see what is possible to do with lift right now. Regards, Bryan On Jan 22, 1:40 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Bryan, There's no much in Lift to support what you're looking to do. For 1.1, there will be something like SmartMode Wizard

[Lift] Re: Image Submit Buttons fail to Submit (in IE)

2008-09-26 Thread Bryan
. This is just something to consider. We handle the full version switch through some additional paths we have setup, but I've seen cookie- based implementations of this as well. --Bryan On Sep 26, 7:40 am, Marius [EMAIL PROTECTED] wrote: Very true Viktor. Some mobile terminals like some of Nokia S40

[Lift] Comet and Flot

2008-09-20 Thread Bryan
! p.s. I am loving lift so far. Great work. The CometActor tutorial was very useful as well. Thanks, Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb