[Lift] Re: Flot Widget

2009-01-06 Thread TylerWeir

Awesome, I just looked at the Flot+Comet stuff, some cool stuff could
be done with that.

Nice stuff Dave and Francois!

On Jan 6, 8:15 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
 Folks,

 I've just updated the Flot widget (which is pretty cool) to be more
 Lift-like.

 I've changed Option to Box to be consistent with Lift's use of Box unless
 there's a compelling reason to use Option.

 I've changed the code so it uses Lift's JavaScript helpers rather than doing
 manual string generation.

 I've also fixed the Flot example code so that it works.

 Thanks,

 David

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Collaborative Task Managementhttp://much4.us
 Follow me:http://twitter.com/dpp
 Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Flot widget

2009-01-05 Thread Francois Bertrand

 Also, I'd like to do some code cleanup (e.g., changing Option to Box) in the
 flot widget.  Is that okay?

Yes, it is OK.

Any other suggestions are welcome


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Flot widget

2009-01-03 Thread Francois Bertrand

Hi Marius:

I guess I can do it, but I need to understand exactly what you mean by
lift-widget test application.

Currently the flot widget sources consist in:

- the main source at  
http://github.com/dpp/liftweb/tree/master/lift-widgets/src/main/scala/net/liftweb/widgets/flot
- a webapp demo at   http://github.com/dpp/liftweb/tree/master/sites/flotDemo

By lift-widget test application do you mean the webapp at
http://github.com/dpp/liftweb/tree/master/lift-widgets/src/test/webapp
?

If this is the case, I can merge the flotDemo webapp with it.

Francois

On Jan 3, 11:16 am, Marius marius.dan...@gmail.com wrote:
 Can anyone please add the flot widget to lift-widget test application
 so we can have it among the other existent widget?

 Br's,
 Marius
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Flot widget commited to lift repository

2008-11-02 Thread Marius



On Nov 1, 11:09 pm, Francois Bertrand [EMAIL PROTECTED] wrote:
 Hi Marius

  1. I was wondering why the use of Option and not Can ?

 Because I didn't need the Failure part of Can.

I'm not saying Option is bad Can is good ... not by far. But Can is
more liftish even if you do not use Failure. It has some handy
artifacts that option does not. Neverthelesse there is and implicit
conversion from Option to Can and vice-versa. No biggie ... just
wondering.


  2. Any particular reason for using StringBuilder in
  FlotOverview.render and not JsExp composition (same for Flot
  object)? ... it just seamed easier? .. renderHide and renderShow
  functions... I think Lift has abstractions for those as well.

 I didn't knew about JsExp composition when I began this widget.  I
 agree I should use it.

  3. I'd recommend using English names for functions etc.

 Yes, sorry about that.  The flotDemo webapp is a simplified version of
 a real application where I have to put spanish comments and funcion's
 names.

  4. SensorActor .. any reason for not using CometActor ?

 The CometActor in the flotDemo webapp is the
 net.liftweb.flot_demo.web.model.FlotCometExample class.

 The SensorActor.scala file contains;
 - a Scala Actor (AcumMuestrasActor) that acumulates sampling values
 and notify each FlotCometExample that listens to it,
 - a java thread (Sensor) that simulates a sensor sending every 2
 seconds a sample with 3 measurements:

 I don't see the value to use CometActor for the AcumMuestrasActor
 class and the Sensor object, but maybe there is something I don't
 understand.

Sorry man ..FlotCometExample escaped me :D ... still is this just an
example or something that people can use in many cases? .. if it is
probably a better name without example part would be more fitful.


 Thanks for your comments.
 Francois

 On Nov 1, 5:01 pm, Marius [EMAIL PROTECTED] wrote:

  Nice.

  1. I was wondering why the use of Option and not Can ?
  2. Any particular reason for using StringBuilder in
  FlotOverview.render and not JsExp composition (same for Flot
  object)? ... it just seamed easier? .. renderHide and renderShow
  functions... I think Lift has abstractions for those as well.
  3. I'd recommend using English names for functions etc.
  4. SensorActor .. any reason for not using CometActor ?

  Br's,
  Marius

  On Nov 1, 9:12 pm, Francois Bertrand [EMAIL PROTECTED] wrote:

   Hi:

   The flot widget is a wrapper around the jQuery Flot widget 
   (http://code.google.com/p/flot/).  It generates the necessary javascript 
   code
   and can be used from a comet actor to refresh the graph in real time.

   The commited source are:

   - the flot widget itself in the lift-widgets module (Scala source 
   athttp://github.com/dpp/liftweb/tree/master/lift-widgets/src/main/scala...
   )

   - a new demo webapp below sites 
   (http://github.com/dpp/liftweb/tree/master/sites/flotDemo).

   I appreciate any suggestion, recommendation you may have.

   Saludos,
   Francois
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---