[Lift] Re: JQuery corners

2009-02-07 Thread Xavi Ramirez
Hello, The problem seems to be in jquery.corners.js: $('.rounded').corners() calls changeInput(e) which converts input buttons into a-tags. During this conversion, the name attribute on the original input button is lost. I'm not too familiar with the internals of lift, but I'm guessing this is

[Lift] Starting with Lift on the wiki

2009-03-15 Thread Xavi Ramirez
Hello, Would you guys be amenable to adding Starting with Lift (http://static.liftweb.net/StartingWithLift.pdf) to the lift wiki? It's an excellent tutorial and I think it'd benefit from things like easy copy-and-pasteing, hyperlinks to relevant material, and syntax highlighting. It'll also

[Lift] Re: MappedTextarea problem

2009-03-15 Thread Xavi Ramirez
For the sake of better understanding the internals of lift where is screen.css? On Wed, Mar 11, 2009 at 6:32 PM, Joachim A. wallaby.po...@googlemail.com wrote: David, I suggest to leave blueprint as it is and to create your own stylesheet. Create a directory in the webapps dir and put a new

[Lift] Re: Starting with Lift on the wiki

2009-03-16 Thread Xavi Ramirez
In both PDF and HTML. Derek On Sun, Mar 15, 2009 at 1:51 PM, Xavi Ramirez xavi@gmail.com wrote: Hello, Would you guys be amenable to adding Starting with Lift (http://static.liftweb.net/StartingWithLift.pdf) to the lift wiki? It's an excellent tutorial and I think it'd benefit from

[Lift] Re: The Lift 1.1 list

2009-04-02 Thread Xavi Ramirez
+10 for documentation effort. Speaking from the noob perspective, the documentation is the biggest barrier to entry for Lift. Currently there are 3 places to get lift documentation: -Get Started Tutorial -Lift Book -Lift Wiki The first two sources are excellent, but the last one is bit

[Lift] Help with PocketChange project

2009-04-12 Thread Xavi Ramirez
Hello, I've started reading through Exploring Lift and I'm having trouble with running the PocketChange demo. I've ran the following commands: git clone git://github.com/tjweir/pocketchangeapp.git cd to PocketChange directory mvn install mvn jetty:run -U When the jetty server starts, the

[Lift] Error with tictac example

2009-05-17 Thread Xavi Ramirez
Hello, There seems to be an error in the tictac on the following line: registerCleanupFunc(() = is.foreach(who = LobbyServer ! RemoveLurker(who))) I've changed the code to this: override protected def onShutdown(session: CleanUpParam) { is.foreach(who = LobbyServer ! RemoveLurker(who)) } I'm

[Lift] Re: JavaScript interface to Comet

2009-05-30 Thread Xavi Ramirez
. However could you please provide an overview of what you're trying to achieve? P.S. By default Lift's Ajax/Comet support works against JavaScript content type responses and not JSON. However you can use JSON as well. Br's, Marius On May 30, 3:12 pm, Xavi Ramirez xavi@gmail.com wrote

[Lift] Re: lift views

2009-05-30 Thread Xavi Ramirez
The value is that Yoryos version is a valid HTML page and can be easily viewed without having lift/jetty running. This could be handy for designs, for example. I'm personally not 100% sold (I hate boilerplate), but it's an interesting idea. -Xavi On Sat, May 30, 2009 at 7:44 PM, Timothy

[Lift] Future of the Lift wiki

2009-06-01 Thread Xavi Ramirez
Hello, I'm a bit confused about the future of the lift wiki. What's the end goal? In an ideal world is it supposed to be the main repository of lift knowledge, or just another documentation source? I personally feel that having one repository of knowledge is much more noob friendly.

[Lift] Re: JavaScript interface to Comet

2009-06-01 Thread Xavi Ramirez
Ahh thanks. I forget to wrap my script with ![CDATA[]]. Also, thanks for the working example. =] Adding the session variable did fix the echoing issue I was seeing, for the most part. As for my second problem, I still saw performance issues even when using a chrome/firefox combination. I've

[Lift] Re: Future of the Lift wiki

2009-06-03 Thread Xavi Ramirez
working on it, albeit slowly. If you have any specific recommendations, please post them. Thanks! Chas. Xavi Ramirez wrote: Hello, I'm a bit confused about the future of the lift wiki.  What's the end goal?  In an ideal world is it supposed to be the main repository of lift knowledge

[Lift] Re: is there a name for this pattern?

2009-06-19 Thread Xavi Ramirez
This is also a common technique in C# too. Unfortunately, I'm not sure of the pattern's name either. I usually just google for non-generic inheritance from generic class On Fri, Jun 19, 2009 at 10:31 AM, Jeremy Dayjeremy@gmail.com wrote: Eric, I believe that something like that, in C++

[Lift] Re: Google Analytics

2009-07-07 Thread Xavi Ramirez
Thanks! I ran into this exact problem. Is there any way to get rid of it? Is there a lift:production tag? Thanks, Xavi On Tue, Mar 17, 2009 at 5:22 PM, Charles F. Munatc...@munat.com wrote: OK, I have to stop posting this crap when it's 5:30 AM, I've been working for 18 hours straight,

[Lift] Re: Wiki Articles

2009-07-14 Thread Xavi Ramirez
Thanks Alex! That exactly what we need. Over the next couple of days, I'm going to start organizing the existing wiki articles around this outline. In the mean time, is there a chance someone could help me get any of the following done? - Replace the wiki logo with the lift logo - Add syntax

[Lift] Re: Google Analytics

2009-07-14 Thread Xavi Ramirez
Sorry, I didn't replay earlier, but it turns out that the operation is not supported code: 9 error is related to the fact that the default Google Analytics snippet uses document.write(). It turns out that XHTML does not support document.write(), which causes Firefox to chock. Ultimately, I

[Lift] Re: Weekly Article Request

2009-07-22 Thread Xavi Ramirez
... the commit team need someone externally to kick us into writing documentation... you are doing good work, keep it up. On Jul 22, 4:22 am, Xavi Ramirez xavi@gmail.com wrote: Hello, My name is Xavi and I've volunteered as the wiki garden.  Every week I'll post a couple of articles topics that we

[Lift] Re: Comet DispatchPF - RestfulCometActor?

2009-07-29 Thread Xavi Ramirez
Hello, I don't quite understand what a more REST orientated approach. Do you mean purely client-side comet actor interface? I personally would love to write javascript like this: lift.comet.MyActor.listeners.add(myListener); lift.comet.MyActor.send(myJSObj); I've been emulating this type of

[Lift] Re: Weekly Article Request

2009-07-30 Thread Xavi Ramirez
: Mine articles are done. On Wed, Jul 22, 2009 at 8:37 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Jul 22, 2009 at 3:22 AM, Xavi Ramirez xavi@gmail.com wrote: Hello, My name is Xavi and I've volunteered as the wiki garden.  Every week I'll post a couple of articles

[Lift] Re: Getting started not starting.

2009-08-02 Thread Xavi Ramirez
In your pom.xml file, make sure you have the following two XML nodes under dependencies and plugins: Under dependencies: dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty/artifactId version[6.1.6,)/version scopetest/scope /dependency Under plugins: plugin

[Lift] Re: Question about Lift/Scala Lift Discussion Board

2009-08-29 Thread Xavi Ramirez
I applaud Artem's initiative! The mailing list has undoubtedly been an extremely helpful resource. That said, a mailing lists in general have several short comings: - Hard to search through - Many duplicate questions - No stickies - No syntax highlighting and few formatting options - Little to

[Lift] Redirecting wiki.liftweb.net to github starting Oct1

2009-08-30 Thread Xavi Ramirez
Hello, In an effort to consolidate the lift wiki information, we are planning to permanently redirecting wiki.liftweb.net to http://wiki.github.com/dpp/liftweb. However before the switch is made, we are going grab various bits of content off wiki.liftweb and move it over to github. If you have

[Lift] Syntax Highlighting On Wiki

2009-09-01 Thread Xavi Ramirez
Hello, I've recently discovered how to add syntax highlighting to the wiki (http://wiki.github.com/dpp/liftweb). First, you simply added this to the top of the article: link href='http://scala-tools.org/scaladocs/liftweb/1.0/_highlighter/SyntaxHighlighter.css' rel='stylesheet' type='text/css'/

[Lift] wiki.liftweb.net to github wiki migration

2009-09-05 Thread Xavi Ramirez
Hello, In an effort to help move from wiki.liftweb.net to the github wiki (http://wiki.github.com/dpp/liftweb), I've combed through the wiki.liftweb.net site and found a handful of articles that might be worth migrating to the github wiki: http://wiki.liftweb.net/index.php/FAQ

[Lift] Re: how to schedule a job?

2009-09-05 Thread Xavi Ramirez
I'd use ActorPing also. Here's a quick example of the code I'd write: import net.liftweb._ import http._ import util._ import Helpers._ import scala.actors._ import scala.actors.Actor._ case class UpdateUsers() object UserManager extends Actor { this.start

[Lift] Feature Request: Add S.findComet(theType: String, name: String): Option[CometActor]

2009-09-05 Thread Xavi Ramirez
Hello, Would it be possible to add the following findComet override to LiftSession? def findComet(theType: String, name: String): Option[CometActor] = synchronized { asyncComponents get (theType, name) } // I'm not sure if this is the correct implementation, but you get the idea I'd like to

[Lift] Re: Feature Request: Add S.findComet(theType: String, name: String): Option[CometActor]

2009-09-06 Thread Xavi Ramirez
your proposal except it should return a Box not an Option. Br's, Marius On Sep 6, 6:17 am, Xavi Ramirez xavi@gmail.com wrote: Hello, Would it be possible to add the following findComet override to LiftSession? def findComet(theType: String, name: String): Option[CometActor

[Lift] Re: rewrite problem

2009-09-08 Thread Xavi Ramirez
That's because the url post/show is being intercepted by the same rewrite rule that matches post/id urls. To get around this, try adding an if statement to your rewrite rule: LiftRules.rewrite.append { case RewriteRequest(ParsePath(List(post, id), _, _, _), _, _) if (id != show) =

[Lift] Retrieving the URL anchor

2009-09-08 Thread Xavi Ramirez
Hello, I'm having trouble finding the URL anchor (e.g. www.foo.com/test.html#this-is-the-url-anchor) while performing a URL rewrite. i looked through the HTTPRequest object, but I can't seem to find it any where. Any idea where it might be? Thanks, Xavi

[Lift] Re: Milestone 5 now available!

2009-09-09 Thread Xavi Ramirez
Please excuse my ignorance, but how do you upgrade to the latest milestone? I assume it involves updating my POM.xml file, but that's all I know. Thanks, Xavi On Wed, Sep 9, 2009 at 11:15 AM, Timothy Perretttimo...@getintheloop.eu wrote: Yes it does, it provides a fixed point in time so that

[Lift] Re: Legacy database and column name with spaces

2009-09-09 Thread Xavi Ramirez
I believe it's something like this: select * from [table with spaces] where [column spaces] = 18 On Wed, Sep 9, 2009 at 12:46 PM, David Pollakfeeder.of.the.be...@gmail.com wrote: On Wed, Sep 9, 2009 at 9:21 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: I don't think that Mapper will

[Lift] Re: Milestone 5 now available!

2009-09-10 Thread Xavi Ramirez
Cheers, Tim On 9 Sep 2009, at 16:22, Xavi Ramirez wrote: Please excuse my ignorance, but how do you upgrade to the latest milestone? I assume it involves updating my POM.xml file, but that's all I know. Thanks, Xavi On Wed, Sep 9, 2009 at 11:15 AM, Timothy Perretttimo

[Lift] Re: how / where to set the runmode of a lift application?

2009-09-12 Thread Xavi Ramirez
One way is it to use the run.mode parameter and start your webapp using this command: mvn jetty:run -Drun.mode=production I believe you can also modify web.xml in some way, but I'm not really sure. -Xavi On Sat, Sep 12, 2009 at 5:00 PM, george geo...@mattandgeorge.com wrote: can anyone tell

[Lift] Re: Lift deal breakers

2009-09-13 Thread Xavi Ramirez
If I understand everything correctly, the proposal is to dynamically create a js file for each page request to add event handlers? If this is true, then I'm against the proposal for the following two reasons: 1. Every page will load slower Since the js file is dynamically create on each

[Lift] Re: Lift deal breakers

2009-09-13 Thread Xavi Ramirez
, Marius On Sep 13, 7:03 pm, Xavi Ramirez xavi@gmail.com wrote: If I understand everything correctly, the proposal is to dynamically create a js file for each page request to add event handlers? If this is true, then I'm against the proposal for the following two reasons: 1. Every page

[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-16 Thread Xavi Ramirez
I vaguely remember reading a thread that claimed Lift would auto-increase the 2 connection limit for sessions using more modern browsers. Is this feature in M5? Random Idea: Would it be possible to get around the 2 connection limit by sending each comet request to a unique sub-domain? For

[Lift] Re: Turning off garbage collection

2009-09-21 Thread Xavi Ramirez
No use case. Just curious... On Mon, Sep 21, 2009 at 10:04 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Sep 21, 2009 at 6:34 AM, Xavi Ramirez xavi@gmail.com wrote: Doesn't that disable garbage collection for the whole site? Is it possible to turn off on specific

[Lift] Canceling a ActorPing.scheduleAtFixedRate task

2009-09-23 Thread Xavi Ramirez
Hello, Is there any way to cancel a task created with a ActorPing.scheduleAtFixedRate? From looking at the source (http://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/util/ActorPing.scala.html) it seem that scheduleAtFixedRate creates an actor which accepts an UnSchedule message.

[Lift] Re: Canceling a ActorPing.scheduleAtFixedRate task

2009-09-23 Thread Xavi Ramirez
, 2009 at 3:54 PM, Timothy Perrett timo...@getintheloop.eu wrote: Xavi, Can you show some code? There might be a way of doing it depending what you have... Cheers, Tim Sent from my iPhone On 23 Sep 2009, at 20:50, Xavi Ramirez xavi@gmail.com wrote: Hello, Is there any way

[Lift] Re: Canceling a ActorPing.scheduleAtFixedRate task

2009-09-23 Thread Xavi Ramirez
into this problem. Thanks, Xavi On Wed, Sep 23, 2009 at 4:13 PM, Xavi Ramirez xavi@gmail.com wrote: There isn't much to show... but maybe an example clarify things. class SomeCometActor extends CometActor {  override def localSetup() {    ActorPing.scheduleAtFixedRate(this, TaskMessage, 15

Re: [Lift] Re: Ajax and custom HTTP headers

2009-11-20 Thread Xavi Ramirez
+1 On Fri, Nov 13, 2009 at 6:33 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Nov 13, 2009 at 1:37 PM, Marius marius.dan...@gmail.com wrote: Hi, Do you think it would worth having a better support for setting HTTP headers for Ajax requests ? I mean some REST API's may use