From marianopeck at gmail.com Mon Sep 1 12:37:44 2014 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon Sep 1 12:37:51 2014 Subject: [Seaside] Trying to find memory holding with seaside In-Reply-To: References: Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2014-09-01 at 9.36.03 AM.png Type: image/png Size: 249054 bytes Desc: not available Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140901/e34c028e/ScreenShot2014-09-01at9.36.03AM-0001.png From philippe.marschall at gmail.com Mon Sep 1 13:46:23 2014 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Mon Sep 1 13:46:24 2014 Subject: [Seaside] Trying to find memory holding with seaside In-Reply-To: References: Message-ID: On Mon, Sep 1, 2014 at 2:37 PM, Mariano Martinez Peck wrote: > > > On Sun, Aug 31, 2014 at 7:19 AM, Philippe Marschall > wrote: >> >> On Sat, Aug 30, 2014 at 4:50 PM, Mariano Martinez Peck >> wrote: >> > ? >> > >> > Hi Philippe >> > >> > Look attached. >> >> The WAValueHolder, where does it lead? > > > I end up always in a loop :( It looks like a closed graph...but obviously I > have some pointer from another place that I cannot find. > > Look the new attached. You did run a full GC? Closed all the workspaces and everything? Cheers Philippe From marianopeck at gmail.com Mon Sep 1 14:04:46 2014 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Mon Sep 1 14:04:48 2014 Subject: [Seaside] Trying to find memory holding with seaside In-Reply-To: References: Message-ID: On Mon, Sep 1, 2014 at 10:46 AM, Philippe Marschall < philippe.marschall@gmail.com> wrote: > On Mon, Sep 1, 2014 at 2:37 PM, Mariano Martinez Peck > wrote: > > > > > > On Sun, Aug 31, 2014 at 7:19 AM, Philippe Marschall > > wrote: > >> > >> On Sat, Aug 30, 2014 at 4:50 PM, Mariano Martinez Peck > >> wrote: > >> > ? > >> > > >> > Hi Philippe > >> > > >> > Look attached. > >> > >> The WAValueHolder, where does it lead? > > > > > > I end up always in a loop :( It looks like a closed graph...but > obviously I > > have some pointer from another place that I cannot find. > > > > Look the new attached. > > You did run a full GC? Closed all the workspaces and everything? > Yep, everything. I just cannot discover who is holding this large graph. > > Cheers > Philippe > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -- Mariano http://marianopeck.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140901/22856494/attachment.htm From r.wobben at home.nl Mon Sep 1 14:07:54 2014 From: r.wobben at home.nl (Roelof Wobben) Date: Mon Sep 1 14:07:57 2014 Subject: [Seaside] authecation question Message-ID: <54047DBA.40400@home.nl> Hello, I want to try to make a financial app for a toy library. First problem I have is how to do this ? I want to have a admin user which is the only one who can provide a login name and password for users. After that the users can log in. Also I want to hide things from them so only the admin user can do that particular task. Can this be done with Cincom smalltalk ? Roelof From Smalltalk at JGFoster.net Mon Sep 1 15:19:43 2014 From: Smalltalk at JGFoster.net (James Foster) Date: Mon Sep 1 15:19:47 2014 Subject: [Seaside] authecation question In-Reply-To: <54047DBA.40400@home.nl> References: <54047DBA.40400@home.nl> Message-ID: See chapter 12 in http://seaside.gemtalksystems.com/tutorial.html for a somewhat dated example of how to add login capability to a Seaside application in Pharo. James On Sep 1, 2014, at 7:07 AM, Roelof Wobben wrote: > Hello, > > I want to try to make a financial app for a toy library. > > First problem I have is how to do this ? > > I want to have a admin user which is the only one who can provide a login name and password for users. > After that the users can log in. > > Also I want to hide things from them so only the admin user can do that particular task. > > Can this be done with Cincom smalltalk ? > > Roelof > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > From r.wobben at home.nl Mon Sep 1 15:46:36 2014 From: r.wobben at home.nl (Roelof Wobben) Date: Mon Sep 1 15:46:40 2014 Subject: [Seaside] authecation question In-Reply-To: References: <54047DBA.40400@home.nl> Message-ID: <540494DC.8060206@home.nl> Thanks, I found it but I do not give a answer to the question how I can give some user rights to some parts of the app. Roelof James Foster schreef op 1-9-2014 17:19: > See chapter 12 in http://seaside.gemtalksystems.com/tutorial.html for a somewhat dated example of how to add login capability to a Seaside application in Pharo. > > James > > On Sep 1, 2014, at 7:07 AM, Roelof Wobben wrote: > >> Hello, >> >> I want to try to make a financial app for a toy library. >> >> First problem I have is how to do this ? >> >> I want to have a admin user which is the only one who can provide a login name and password for users. >> After that the users can log in. >> >> Also I want to hide things from them so only the admin user can do that particular task. >> >> Can this be done with Cincom smalltalk ? >> >> Roelof >> >> _______________________________________________ >> seaside mailing list >> seaside@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > From sebastian at flowingconcept.com Mon Sep 1 17:56:21 2014 From: sebastian at flowingconcept.com (Sebastian Sastre) Date: Mon Sep 1 17:56:37 2014 Subject: [Seaside] authecation question In-Reply-To: <540494DC.8060206@home.nl> References: <54047DBA.40400@home.nl> <540494DC.8060206@home.nl> Message-ID: Hi Roelof, Just to make sure you?re on the right expectation, Seaside is agnostic to it. It?s up to each app how to implement that feature. Sounds like you need to implement some kind of: http://en.wikipedia.org/wiki/Role-based_access_control I?d suggest to start as simple as you can, so you deliver value fast and iterate later based on solid user feedback sebastian o/ blog: http://sebastianconcept.com LinkedIn: http://www.linkedin.com/in/sebastiansastre github: https://github.com/sebastianconcept On Sep 1, 2014, at 12:46 PM, Roelof Wobben wrote: > Thanks, > > I found it but I do not give a answer to the question how I can give some user rights to some parts of the app. > > Roelof > > > > James Foster schreef op 1-9-2014 17:19: >> See chapter 12 in http://seaside.gemtalksystems.com/tutorial.html for a somewhat dated example of how to add login capability to a Seaside application in Pharo. >> >> James >> >> On Sep 1, 2014, at 7:07 AM, Roelof Wobben wrote: >> >>> Hello, >>> >>> I want to try to make a financial app for a toy library. >>> >>> First problem I have is how to do this ? >>> >>> I want to have a admin user which is the only one who can provide a login name and password for users. >>> After that the users can log in. >>> >>> Also I want to hide things from them so only the admin user can do that particular task. >>> >>> Can this be done with Cincom smalltalk ? >>> >>> Roelof >>> >>> _______________________________________________ >>> seaside mailing list >>> seaside@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> >> _______________________________________________ >> seaside mailing list >> seaside@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140901/5dc3e8a5/attachment-0001.htm From r.wobben at home.nl Mon Sep 1 18:36:12 2014 From: r.wobben at home.nl (Roelof Wobben) Date: Mon Sep 1 18:36:21 2014 Subject: [Seaside] authecation question In-Reply-To: References: <54047DBA.40400@home.nl> <540494DC.8060206@home.nl> Message-ID: <5404BC9C.1030309@home.nl> An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140901/08989809/attachment.htm From emaringolo at gmail.com Mon Sep 1 18:46:06 2014 From: emaringolo at gmail.com (Esteban A. Maringolo) Date: Mon Sep 1 18:46:49 2014 Subject: [Seaside] authecation question In-Reply-To: <5404BC9C.1030309@home.nl> References: <54047DBA.40400@home.nl> <540494DC.8060206@home.nl> <5404BC9C.1030309@home.nl> Message-ID: 2014-09-01 15:36 GMT-03:00 Roelof Wobben : > Sebastian Sastre schreef op 1-9-2014 19:56: > > Hi Roelof, > > Just to make sure you?re on the right expectation, Seaside is agnostic to > it. It?s up to each app how to implement that feature. > > Sounds like you need to implement some kind of: > http://en.wikipedia.org/wiki/Role-based_access_control > Yes, that is what Im looking for. > Do you have tips how to start simple ? In my previous job I mapped a model very similar to the one in the Wikipedia page, and it proved to be useful and sustainable in the long term even in enterprise applications. I'm implementing (re-writing) such model again, with some tweaks. But it's not available for publishing yet. So to start simple you could start by modeling users, roles and permissions. Users has roles, roles has permissions, and you can query whether an user has certain permission at different points of your application. Esteban A. Maringolo From r.wobben at home.nl Mon Sep 1 20:02:32 2014 From: r.wobben at home.nl (Roelof Wobben) Date: Mon Sep 1 20:02:35 2014 Subject: [Seaside] authecation question In-Reply-To: References: <54047DBA.40400@home.nl> <540494DC.8060206@home.nl> <5404BC9C.1030309@home.nl> Message-ID: <5404D0D8.20100@home.nl> Esteban A. Maringolo schreef op 1-9-2014 20:46: > 2014-09-01 15:36 GMT-03:00 Roelof Wobben : >> Sebastian Sastre schreef op 1-9-2014 19:56: >> >> Hi Roelof, >> >> Just to make sure you?re on the right expectation, Seaside is agnostic to >> it. It?s up to each app how to implement that feature. >> >> Sounds like you need to implement some kind of: >> http://en.wikipedia.org/wiki/Role-based_access_control >> Yes, that is what Im looking for. >> Do you have tips how to start simple ? > In my previous job I mapped a model very similar to the one in the > Wikipedia page, and it proved to be useful and sustainable in the long > term even in enterprise applications. > > I'm implementing (re-writing) such model again, with some tweaks. But > it's not available for publishing yet. > > So to start simple you could start by modeling users, roles and permissions. > Users has roles, roles has permissions, and you can query whether an > user has certain permission at different points of your application. > > > Esteban A. Maringolo > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > Thanks, But still I do not see how I can map things like this ? Roelof From sebastian at flowingconcept.com Mon Sep 1 20:18:35 2014 From: sebastian at flowingconcept.com (Sebastian Sastre) Date: Mon Sep 1 20:18:44 2014 Subject: [Seaside] authecation question In-Reply-To: <5404BC9C.1030309@home.nl> References: <54047DBA.40400@home.nl> <540494DC.8060206@home.nl> <5404BC9C.1030309@home.nl> Message-ID: <1BFCFF17-A6B9-43EE-B22A-9DD5049F2AC5@flowingconcept.com> On Sep 1, 2014, at 3:36 PM, Roelof Wobben wrote: > Yes, that is what Im looking for. > Do you have tips how to start simple ? > > Roelof make an instVar in User to hold symbols of the classes that are the main components of your app later at login you make the main component to ask the logged user if it has that component and decide to render it or not that sounds like the minimum makes sense now? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140901/8ed077ed/attachment.htm From Smalltalk at JGFoster.net Mon Sep 1 23:20:53 2014 From: Smalltalk at JGFoster.net (James Foster) Date: Mon Sep 1 23:21:01 2014 Subject: [Seaside] authecation question In-Reply-To: <540494DC.8060206@home.nl> References: <54047DBA.40400@home.nl> <540494DC.8060206@home.nl> Message-ID: <84746725-0C20-4ED5-A8B3-EAF813F57718@JGFoster.net> 8.a. on page 10 describes how to restrict some features to logged-in users and includes the following code: self session user notNil ifTrue: [ ? Modify this code as follows: self session user hasRightsToThisPartOfTheApp ifTrue: [ ? Now you have given some user rights to some parts of the app! James On Sep 1, 2014, at 8:46 AM, Roelof Wobben wrote: > Thanks, > > I found it but I do not give a answer to the question how I can give some user rights to some parts of the app. > > Roelof > > > > James Foster schreef op 1-9-2014 17:19: >> See chapter 12 in http://seaside.gemtalksystems.com/tutorial.html for a somewhat dated example of how to add login capability to a Seaside application in Pharo. >> >> James >> >> On Sep 1, 2014, at 7:07 AM, Roelof Wobben wrote: >> >>> Hello, >>> >>> I want to try to make a financial app for a toy library. >>> >>> First problem I have is how to do this ? >>> >>> I want to have a admin user which is the only one who can provide a login name and password for users. >>> After that the users can log in. >>> >>> Also I want to hide things from them so only the admin user can do that particular task. >>> >>> Can this be done with Cincom smalltalk ? >>> >>> Roelof >>> >>> _______________________________________________ >>> seaside mailing list >>> seaside@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> >> _______________________________________________ >> seaside mailing list >> seaside@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > From stephan at stack.nl Mon Sep 1 23:28:17 2014 From: stephan at stack.nl (Stephan Eggermont) Date: Mon Sep 1 23:28:31 2014 Subject: [Seaside] Re: authecation question Message-ID: <540B82C2-117E-435A-ADC6-46229988A1D1@stack.nl> Or you can start complex. That is a lot less work to get started. :) Take a look at the video introducing QCMagritte we presented at ESUG (and the slides on slideshare, and the image with the demo). https://www.youtube.com/watch?v=mKZUhPNWFyI&list=UUO-vBhaKVZf0al-ISMMPvRw http://www.slideshare.net/esug/getting-started-with-qcmagritte The application we built has user authentication, roles & rights. Feel free to borrow Stephan -------------- next part -------------- Skipped content of type multipart/related From philippe.marschall at gmail.com Tue Sep 2 06:12:05 2014 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Tue Sep 2 06:12:09 2014 Subject: [Seaside] Trying to find memory holding with seaside In-Reply-To: References: Message-ID: On Mon, Sep 1, 2014 at 4:04 PM, Mariano Martinez Peck wrote: >? > Yep, everything. I just cannot discover who is holding this large graph. You'd have to know which objects are gc roots. I don't know how to do this in Pharo. Probably the Pharo mailing list is the right place to ask. Cheers Philippe From astares at gmx.de Tue Sep 2 11:25:24 2014 From: astares at gmx.de (Torsten Bergmann) Date: Tue Sep 2 11:25:27 2014 Subject: [Seaside] authecation question Message-ID: For a user management see: http://smalltalkhub.com/#!/~TorstenBergmann/UserManagement Maybe Lighthouse is a start for your webapp: http://smalltalkhub.com/#!/~TorstenBergmann/Lighthouse A premade, ready to run image with the full demo web app using Twitter Bootstrap, Nucleus, I18N, Usermanagement, ... is at: https://ci.inria.fr/pharo-contribution/job/Lighthouse/PHARO=30,VERSION=development,VM=vm/ Have fun T. From sven at stfx.eu Tue Sep 2 11:39:20 2014 From: sven at stfx.eu (Sven Van Caekenberghe) Date: Tue Sep 2 11:39:32 2014 Subject: [Seaside] authecation question In-Reply-To: References: Message-ID: Hi Torsten, Seems like a nice project, I was having a look at the pre-built image, but it fails to start up (looks like the recent OPAL thing, assignment to args, but I thought that was in 4.0): RBExplicitVariableParser(RBParser)>>parserError: RBExplicitVariableParser(RBParser)>>parsePrimitiveObject RBExplicitVariableParser(RBParser)>>parseUnaryMessage RBExplicitVariableParser(RBParser)>>parseBinaryMessage RBExplicitVariableParser(RBParser)>>parseKeywordMessage RBExplicitVariableParser(RBParser)>>parseCascadeMessage RBExplicitVariableParser(RBParser)>>parseAssignment RBExplicitVariableParser(RBParser)>>parseStatementList:into: RBExplicitVariableParser(RBParser)>>parseStatements:into: RBExplicitVariableParser(RBParser)>>parseStatements: RBExplicitVariableParser(RBParser)>>parseExpression: RBExplicitVariableParser class(RBParser class)>>parseExpression:onError: RBExplicitVariableParser class(RBParser class)>>parseExpression: OpalCompiler>>parseExpression OpalCompiler>>parse [ ast := self parse. self doSemanticAnalysis ] in [ [ ast := self parse. self doSemanticAnalysis ] on: OCSourceCodeChanged do: [ :notification | self source: notification newSourceCode. notification retry ]. cm := ast generate: self compilationContext compiledMethodTrailer ] in OpalCompiler>>compile BlockClosure>>on:do: ... On 02 Sep 2014, at 13:25, Torsten Bergmann wrote: > For a user management see: > http://smalltalkhub.com/#!/~TorstenBergmann/UserManagement > > Maybe Lighthouse is a start for your webapp: > http://smalltalkhub.com/#!/~TorstenBergmann/Lighthouse > > A premade, ready to run image with the full demo web app using Twitter Bootstrap, Nucleus, I18N, Usermanagement, ... > is at: > > https://ci.inria.fr/pharo-contribution/job/Lighthouse/PHARO=30,VERSION=development,VM=vm/ > > Have fun > T. > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside From johan at inceptive.be Tue Sep 9 18:48:52 2014 From: johan at inceptive.be (Johan Brichau) Date: Tue Sep 9 18:48:56 2014 Subject: [Seaside] Seaside 3.1.3 Message-ID: <1A09C506-109F-4E33-8E1E-E326D99E9498@inceptive.be> Hi Seaside users, We have released Seaside 3.1.3 [1]. A big thanks to everyone involved for making this release happen! best regards, The Seaside Team [1] https://code.google.com/p/seaside/wiki/Seaside313Changelog -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140909/f95393ac/attachment.htm From ant11.nova70 at gmx.de Tue Sep 9 22:43:45 2014 From: ant11.nova70 at gmx.de (nova) Date: Tue Sep 9 22:50:08 2014 Subject: [Seaside] url rewrite (http 304) with seaside / pharo 3 Message-ID: Hi, I an new to seaside and playing with it. When a session is started I want to make a url check and if it fits some conditions to do an url rewrite (http 304). I think I found the place where to make this check: initialRequest: But I can't find how to send a url rewrite back (I don't want to use an external http-server for that rewrite). Any help will be appreciated :) P. From johan at inceptive.be Wed Sep 10 06:59:43 2014 From: johan at inceptive.be (Johan Brichau) Date: Wed Sep 10 06:59:51 2014 Subject: [Seaside] url rewrite (http 304) with seaside / pharo 3 In-Reply-To: References: Message-ID: <0132CEAB-3C5A-4F4E-B154-2668D079FCEB@inceptive.be> Hi, You can take a look at the implementation of the #testRedirectTo method in the Core tests. The WAResponse object has methods you will want to use: #redirectTo: , #movedPermanently, etc... When you find senders of these methods, you can see how to make a redirection response. Something along the lines of: self requestContext respond: [:response | response movedPermanently; redirectTo: url] I think this should work in the #initialRequest: method as well, but let me know if it does not. Johan On 10 Sep 2014, at 00:43, nova wrote: > Hi, > > I an new to seaside and playing with it. When a session is started I > want to make a url check and if it fits some conditions to do an url > rewrite (http 304). > > I think I found the place where to make this check: initialRequest: > But I can't find how to send a url rewrite back (I don't want to use an > external http-server for that rewrite). > > Any help will be appreciated :) > > P. > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside From philippe.marschall at gmail.com Wed Sep 10 13:54:16 2014 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Wed Sep 10 13:54:21 2014 Subject: [Seaside] url rewrite (http 304) with seaside / pharo 3 In-Reply-To: References: Message-ID: On Wed, Sep 10, 2014 at 12:43 AM, nova wrote: > Hi, > > I an new to seaside and playing with it. When a session is started I > want to make a url check and if it fits some conditions to do an url > rewrite (http 304). > > I think I found the place where to make this check: initialRequest: > But I can't find how to send a url rewrite back (I don't want to use an > external http-server for that rewrite). > > Any help will be appreciated :) You could also subclass WAApplication and override #handle:registering:at: or use WARestfulComponentFilter and redirect before creating a session. If you explain the problem you're trying to solve in more detail we may be able to help you better. Cheers Philippe From max.bareis at me.com Thu Sep 11 09:29:52 2014 From: max.bareis at me.com (Maximilian Bareis) Date: Thu Sep 11 09:30:45 2014 Subject: [Seaside] Datepicker for Seaside and jquery/bootstrap Message-ID: <78BEDFDB-344E-4AE7-9C0A-43E8FC16CE4A@me.com> Hi, I am using Pharo, Seaside 3.1, TwitterBootstrap (from Torsten Bergmann) and tried out some javascript extensions for creation of a datepicker. The last one I've tried was http://www.eyecon.ro/bootstrap-datepicker but I did not get it work, as the onClick event is not attached to the add-on when calling the datepicker function, and there seems to be no way to force it. Does anyone have a similar setup and is using a datepicker? Which one is to be recommended? Regards Max From pdebruic at gmail.com Thu Sep 11 14:10:17 2014 From: pdebruic at gmail.com (Paul DeBruicker) Date: Thu Sep 11 14:10:26 2014 Subject: [Seaside] Re: Datepicker for Seaside and jquery/bootstrap In-Reply-To: <78BEDFDB-344E-4AE7-9C0A-43E8FC16CE4A@me.com> References: <78BEDFDB-344E-4AE7-9C0A-43E8FC16CE4A@me.com> Message-ID: <1410444617391-4777463.post@n4.nabble.com> I use this one: https://github.com/eternicode/bootstrap-datepicker but only on browsers that don't already have a native date picker for an HTML5 date input. So Firefox & IE. I don't use Torsten's bootstrap because I started this before it was out and haven't felt compelled to change over. I use http://modernizr.com/ to detect whether the browser has a native datepicker and if not load the js one. the jQuery functions are : (function ($) { 'use strict'; $.fn.createDatePicker = function(inputId, hiddenId) { var thisElement=$(this); if(!thisElement.data('datepicker')){ thisElement.datepicker({autoclose:true, component:true}).on('changeDate', function(ev){ var date = moment(ev.date); $('#' + inputId).val(date.format('YYYY-MM-DD')); $('#'+ hiddenId).val(date.format()); }); } thisElement.datepicker('show'); }; $.fn.getDatePickerDateFrom = function( anId ){ var newDate, dateInput; dateInput=$('#' + anId); newDate=moment(dateInput.val()); $(this).val(newDate.format()); dateInput.val(newDate.format('YYYY-MM-DD')); }; $.fn.addDatePicker = function ( anId ) { var dtP = $('#' + anId); if(!Modernizr.inputtypes.date){ dtP.removeClass('input').addClass('input-group').find('.input-group-addon').removeClass('hidden'); // dtP.find('.date').addClass('dtNarrow'); } else { dtP.find('.hidden').off('change'); } }; })(jQuery); Those are in an external file. The seaside is: MyBaseComponent>>renderDatePickerFor: aValue withCallback: aOneArgBlock spanning: aNumber disabled: aBoolean on: html | groupId hiddenId | hiddenId := html nextId. groupId := html nextId. html div class: 'dtPicker'; with: [ html div id: groupId; class: 'input date'; with: [ | inputId spanId | inputId := html nextId. spanId := html nextId. html dateInput5 class:'form-control'; value: aValue; id: inputId; disabled: aBoolean; onChange: ((html jQuery id: hiddenId) getDatePickerDateFrom: inputId) , (html jQuery post serialize: (html jQuery id: hiddenId)). html span id: spanId; class: 'input-group-addon hidden'; attributeAt: 'data-date' put: aValue; attributeAt: 'data-date-format' put: 'yyyy-mm-dd'; script: (aBoolean ifFalse: [ html jQuery this addDatePickerTo: groupId ]); with: [ html anchor url: '#datePicker'; onClick: (aBoolean ifFalse: [ (html jQuery id: spanId) createDatePickerFor: inputId and: hiddenId ]); with: [ html image resourceUrl: '/images/calendar.gif' ] ] ]. html hiddenInput value: aValue; id: hiddenId; callback: aOneArgBlock ] JQueryInstance>>createDatePickerFor: inputId and: hiddenId self call: 'createDatePicker' with: inputId with: hiddenId JQueryInstance>>getDatePickerDateFrom: anId ^ self call: 'getDatePickerDateFrom' with: anId Then I'll use it where I want a date picker like this: self renderDatePickerFor: self endDate withCallback: [ :value | self setEndDate: value ] spanning: 12 disabled: self disabled on: html. Hope this helps Paul Max Bareis wrote > Hi, > > I am using Pharo, Seaside 3.1, TwitterBootstrap (from Torsten Bergmann) > and tried out some javascript extensions for creation of a datepicker. The > last one I've tried was http://www.eyecon.ro/bootstrap-datepicker but I > did not get it work, as the onClick event is not attached to the add-on > when calling the datepicker function, and there seems to be no way to > force it. > Does anyone have a similar setup and is using a datepicker? Which one is > to be recommended? > > Regards > > Max_______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- View this message in context: http://forum.world.st/Datepicker-for-Seaside-and-jquery-bootstrap-tp4777417p4777463.html Sent from the Seaside General mailing list archive at Nabble.com. From pdebruic at gmail.com Thu Sep 11 15:20:00 2014 From: pdebruic at gmail.com (Paul DeBruicker) Date: Thu Sep 11 15:20:11 2014 Subject: [Seaside] Re: Datepicker for Seaside and jquery/bootstrap In-Reply-To: <1410444617391-4777463.post@n4.nabble.com> References: <78BEDFDB-344E-4AE7-9C0A-43E8FC16CE4A@me.com> <1410444617391-4777463.post@n4.nabble.com> Message-ID: <1410448800686-4777470.post@n4.nabble.com> oh & I forgot this one: JQueryInstance>>addDatePickerTo: anId self call: 'addDatePicker' with: anId -- View this message in context: http://forum.world.st/Datepicker-for-Seaside-and-jquery-bootstrap-tp4777417p4777470.html Sent from the Seaside General mailing list archive at Nabble.com. From pdebruic at gmail.com Thu Sep 11 15:33:03 2014 From: pdebruic at gmail.com (Paul DeBruicker) Date: Thu Sep 11 15:33:13 2014 Subject: [Seaside] Re: Datepicker for Seaside and jquery/bootstrap In-Reply-To: <1410448800686-4777470.post@n4.nabble.com> References: <78BEDFDB-344E-4AE7-9C0A-43E8FC16CE4A@me.com> <1410444617391-4777463.post@n4.nabble.com> <1410448800686-4777470.post@n4.nabble.com> Message-ID: <1410449583286-4777474.post@n4.nabble.com> oh and yes it should be an Object rather than a method but here we are..... -- View this message in context: http://forum.world.st/Datepicker-for-Seaside-and-jquery-bootstrap-tp4777417p4777474.html Sent from the Seaside General mailing list archive at Nabble.com. From pdebruic at gmail.com Thu Sep 18 04:34:28 2014 From: pdebruic at gmail.com (Paul DeBruicker) Date: Thu Sep 18 04:34:48 2014 Subject: [Seaside] Re: [ANN] Rickshaw.js charting library for Seaside In-Reply-To: <1407151908802-4771714.post@n4.nabble.com> References: <1407151908802-4771714.post@n4.nabble.com> Message-ID: <1411014868255-4778714.post@n4.nabble.com> Hi Sabine, This works: xAxis optionAt: 'tickFormat' put: ('switch (x) {case 1: return ''Sun'';case 2: return ''Mon'';case 3: return ''Tue'';case 4: return ''Wed'';case 5: return ''Thu'';case 6: return ''Fri'';case 7: return ''Sat'';}' asFunction: #('x')). Hope you've already figured it out. Paul Sabine Kn?fel wrote > Hi Esteban, > > I just tried your wrapper for rickshaw and it is great. I am excited about > it and I will use it for creating a dashboard for my application. Thank > you for implementing this! > > There is one point, I did not succeed with: > Putting labels/strings at the x axis instead of numbers. > e.g. a bar graph with "Monday", "Tuesday" etc. in the x axis instead of > 1,2,3 > > This post describes exactly my problem: > http://stackoverflow.com/questions/13266941/display-custom-labels-on-x-axis-with-rickshaw-js-library/14652472#14652472 > > I extended one of your examples and tried to add the tickformat option. > But this did not work. I have spent some time with other experiments to > solve this but in the end I did not succeed. > > So, I ask you for help ;-) > > This ist my code which does not work, it displays the function code > instead of "Mon", "Tue" etc.. > > renderExampleStackedBarGraph3On: html > | graph theAxis| > html div > class: 'chart'; > id: html nextId. > graph := Rickshaw graph element: html lastId. > graph beBar. > graph > addSeries: > (RickshawSeries > color: 'steelblue' > elements: > {(1 @ 40). > (2@ 49). > (3@ 38). > (4 @ 30). > (5 @ 32)}); > addSeriesNamed: 'With name' > color: 'lightblue' > elements: > {(1 @ 40). > (2@ 49). > (3@ 38). > (4 @ 30). > (5 @ 32)}. > theAxis := graph xAxis. > theAxis optionAt: 'pixelsPerTick' put: '400'. > theAxis optionAt: 'tickFormat' put: 'function(x) {switch (x) {case 1: > return ''Mon'';case 2: return ''Tue'';case 3: return ''Wed'';case 4: > return ''Thu'';case 5: return ''Fri'';case 6: return ''Sat'';case 7: > return ''Sun'';}}'. > html script: graph asJavascript , theAxis asJavascript > ################# > the other example was > e.g. http://code.shutterstock.com/rickshaw/examples/x_axis.html > with: > theTimeAxis optionAt: 'tickFormat' put: 'function(n) {var map = {0: > ''zero'',1: ''first'',2: ''second'',3: ''third''};return map[n];}'. > > but this does not work either. > > regards > Sabine -- View this message in context: http://forum.world.st/ANN-Rickshaw-js-charting-library-for-Seaside-tp4749681p4778714.html Sent from the Seaside General mailing list archive at Nabble.com. From emaringolo at gmail.com Thu Sep 18 20:18:01 2014 From: emaringolo at gmail.com (Esteban A. Maringolo) Date: Thu Sep 18 20:18:45 2014 Subject: [Seaside] Re: [ANN] Rickshaw.js charting library for Seaside In-Reply-To: <1411014868255-4778714.post@n4.nabble.com> References: <1407151908802-4771714.post@n4.nabble.com> <1411014868255-4778714.post@n4.nabble.com> Message-ID: sh*t! I didn't see your last post Sabine. I'm sorry! :( Paul's suggestion should work fine. Regards! Esteban A. Maringolo 2014-09-18 1:34 GMT-03:00 Paul DeBruicker : > Hi Sabine, > > > > This works: > > > xAxis > optionAt: 'tickFormat' > put: > ('switch (x) {case 1: return ''Sun'';case 2: return ''Mon'';case 3: > return ''Tue'';case 4: return ''Wed'';case 5: return ''Thu'';case 6: return > ''Fri'';case 7: return ''Sat'';}' > asFunction: #('x')). > > > > > Hope you've already figured it out. > > > Paul > > > > > > > > Sabine Kn?fel wrote >> Hi Esteban, >> >> I just tried your wrapper for rickshaw and it is great. I am excited about >> it and I will use it for creating a dashboard for my application. Thank >> you for implementing this! >> >> There is one point, I did not succeed with: >> Putting labels/strings at the x axis instead of numbers. >> e.g. a bar graph with "Monday", "Tuesday" etc. in the x axis instead of >> 1,2,3 >> >> This post describes exactly my problem: >> http://stackoverflow.com/questions/13266941/display-custom-labels-on-x-axis-with-rickshaw-js-library/14652472#14652472 >> >> I extended one of your examples and tried to add the tickformat option. >> But this did not work. I have spent some time with other experiments to >> solve this but in the end I did not succeed. >> >> So, I ask you for help ;-) >> >> This ist my code which does not work, it displays the function code >> instead of "Mon", "Tue" etc.. >> >> renderExampleStackedBarGraph3On: html >> | graph theAxis| >> html div >> class: 'chart'; >> id: html nextId. >> graph := Rickshaw graph element: html lastId. >> graph beBar. >> graph >> addSeries: >> (RickshawSeries >> color: 'steelblue' >> elements: >> {(1 @ 40). >> (2@ 49). >> (3@ 38). >> (4 @ 30). >> (5 @ 32)}); >> addSeriesNamed: 'With name' >> color: 'lightblue' >> elements: >> {(1 @ 40). >> (2@ 49). >> (3@ 38). >> (4 @ 30). >> (5 @ 32)}. >> theAxis := graph xAxis. >> theAxis optionAt: 'pixelsPerTick' put: '400'. >> theAxis optionAt: 'tickFormat' put: 'function(x) {switch (x) {case 1: >> return ''Mon'';case 2: return ''Tue'';case 3: return ''Wed'';case 4: >> return ''Thu'';case 5: return ''Fri'';case 6: return ''Sat'';case 7: >> return ''Sun'';}}'. >> html script: graph asJavascript , theAxis asJavascript >> ################# >> the other example was >> e.g. http://code.shutterstock.com/rickshaw/examples/x_axis.html >> with: >> theTimeAxis optionAt: 'tickFormat' put: 'function(n) {var map = {0: >> ''zero'',1: ''first'',2: ''second'',3: ''third''};return map[n];}'. >> >> but this does not work either. >> >> regards >> Sabine > > > > > > -- > View this message in context: http://forum.world.st/ANN-Rickshaw-js-charting-library-for-Seaside-tp4749681p4778714.html > Sent from the Seaside General mailing list archive at Nabble.com. > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside From emaringolo at gmail.com Thu Sep 18 23:23:15 2014 From: emaringolo at gmail.com (Esteban A. Maringolo) Date: Thu Sep 18 23:24:00 2014 Subject: [Seaside] DataTables jQuery plugin for Seaside and DTMagritteReport Message-ID: Hi folks, This mail is just a heads-up to anybody already using DataTables (https://datatables.net/) or that developed a Seaside wrapper for it. I just uploaded my initial working version of DataTables to STHub. If your current wrapper is better than mine we can merge our efforts. This initial version supports the basic features to instantiate a DataTables jQuery object, plus support for AJAX+JSON responses and also Server-side Processing (https://datatables.net/manual/server-side). I still have to write a proper example of how to use it, but if you load the DataTables-Magritte package it will include a DTMagritteReport that you can use to replace the "stock" MAReport. Once I have time I'll try to set up an example to show the different ways it can be used. Meanwhile look at the DTMagritteReport class to see a particular use case. It includes support for server side sorting (multiple columns), filtering, pagination, search. To load it with all the dependencies run: Gofer it smalltalkhubUser: 'emaringolo' project: 'DataTables'; package: 'ConfigurationOfDataTables'; load. (Smalltalk at: #ConfigurationOfDataTables)project development load: 'Magritte'. The STHub is: http://smalltalkhub.com/#!/~emaringolo/DataTables/ Regards! Esteban A. Maringolo From astares at gmx.de Fri Sep 19 08:07:02 2014 From: astares at gmx.de (Torsten Bergmann) Date: Fri Sep 19 08:07:07 2014 Subject: [Seaside] [ANN] Bootstrap V0.12.2 with vertical tabs Message-ID: An updates version of Bootstrap (V0.12.2) for Seaside is available http://www.smalltalkhub.com/#!/~TorstenBergmann/Bootstrap Beside more tests it features vertical tabs which is a simple wrapper for https://github.com/dbtek/bootstrap-vertical-tabs See the online demo for Seaside to see how easy one can use them: http://pharo.pharocloud.com/bootstrap/browser/Vertical%20Tabs Bye T. From sabine.knoefel at gmail.com Sun Sep 21 14:00:17 2014 From: sabine.knoefel at gmail.com (=?UTF-8?Q?Sabine_Kn=C3=B6fel?=) Date: Sun Sep 21 14:00:41 2014 Subject: [Seaside] Re: [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: <1407151908802-4771714.post@n4.nabble.com> <1411014868255-4778714.post@n4.nabble.com> Message-ID: Hi Paul and Esteban, thank you. Yes, I already figured it out and I had another point to find out for my dashboard: How to create a bar graph with labels centered(!) below(!) the bars like this: http://goo.gl/zIQ4TY. I created an example and if you want, you can add it to your examples. code below. Regards Sabine renderExampleBarGraph2On: html | graph xAxis | html div class: 'chart'; id: html nextId. graph := Rickshaw graph element: html lastId. graph beBar. graph addSeriesNamed: 'Demo' color: 'steelblue' elements: {(1 @ 49). (2 @ 38). (3 @ 30). (4 @ 32). (5 @ 22). }. graph optionAt: 'height' put: '250'. graph optionAt: 'width' put: '300'. html div class: 'xaxis'; style: 'margin-left: 25px;'; id: html nextId. xAxis := graph xAxis element: html lastId. xAxis optionAt: 'tickFormat' put: ('switch (x) {case 1: return ''Jan'';case 2: return ''Feb'';case 3: return ''Mar'';case 4: return ''Apr'';case 5: return ''May''}' asFunction: #('x')). xAxis optionAt: 'orientation' put: 'bottom'. xAxis optionAt: 'ticks' put: '5'. html script: graph , xAxis 2014-09-18 22:18 GMT+02:00 Esteban A. Maringolo [via Smalltalk] < ml-node+s1294792n4778835h80@n4.nabble.com>: > sh*t! > I didn't see your last post Sabine. I'm sorry! :( > > Paul's suggestion should work fine. > > > Regards! > > > Esteban A. Maringolo > > > 2014-09-18 1:34 GMT-03:00 Paul DeBruicker <[hidden email] > >: > > > Hi Sabine, > > > > > > > > This works: > > > > > > xAxis > > optionAt: 'tickFormat' > > put: > > ('switch (x) {case 1: return ''Sun'';case 2: > return ''Mon'';case 3: > > return ''Tue'';case 4: return ''Wed'';case 5: return ''Thu'';case 6: > return > > ''Fri'';case 7: return ''Sat'';}' > > asFunction: #('x')). > > > > > > > > > > Hope you've already figured it out. > > > > > > Paul > > > > > > > > > > > > > > > > Sabine Kn?fel wrote > >> Hi Esteban, > >> > >> I just tried your wrapper for rickshaw and it is great. I am excited > about > >> it and I will use it for creating a dashboard for my application. Thank > >> you for implementing this! > >> > >> There is one point, I did not succeed with: > >> Putting labels/strings at the x axis instead of numbers. > >> e.g. a bar graph with "Monday", "Tuesday" etc. in the x axis instead of > >> 1,2,3 > >> > >> This post describes exactly my problem: > >> > http://stackoverflow.com/questions/13266941/display-custom-labels-on-x-axis-with-rickshaw-js-library/14652472#14652472 > >> > >> I extended one of your examples and tried to add the tickformat option. > >> But this did not work. I have spent some time with other experiments to > >> solve this but in the end I did not succeed. > >> > >> So, I ask you for help ;-) > >> > >> This ist my code which does not work, it displays the function code > >> instead of "Mon", "Tue" etc.. > >> > >> renderExampleStackedBarGraph3On: html > >> | graph theAxis| > >> html div > >> class: 'chart'; > >> id: html nextId. > >> graph := Rickshaw graph element: html lastId. > >> graph beBar. > >> graph > >> addSeries: > >> (RickshawSeries > >> color: 'steelblue' > >> elements: > >> {(1 @ 40). > >> (2@ 49). > >> (3@ 38). > >> (4 @ 30). > >> (5 @ 32)}); > >> addSeriesNamed: 'With name' > >> color: 'lightblue' > >> elements: > >> {(1 @ 40). > >> (2@ 49). > >> (3@ 38). > >> (4 @ 30). > >> (5 @ 32)}. > >> theAxis := graph xAxis. > >> theAxis optionAt: 'pixelsPerTick' put: '400'. > >> theAxis optionAt: 'tickFormat' put: 'function(x) {switch (x) > {case 1: > >> return ''Mon'';case 2: return ''Tue'';case 3: return ''Wed'';case 4: > >> return ''Thu'';case 5: return ''Fri'';case 6: return ''Sat'';case 7: > >> return ''Sun'';}}'. > >> html script: graph asJavascript , theAxis asJavascript > >> ################# > >> the other example was > >> e.g. http://code.shutterstock.com/rickshaw/examples/x_axis.html > >> with: > >> theTimeAxis optionAt: 'tickFormat' put: 'function(n) {var map = {0: > >> ''zero'',1: ''first'',2: ''second'',3: ''third''};return map[n];}'. > >> > >> but this does not work either. > >> > >> regards > >> Sabine > > > > > > > > > > > > -- > > View this message in context: > http://forum.world.st/ANN-Rickshaw-js-charting-library-for-Seaside-tp4749681p4778714.html > > Sent from the Seaside General mailing list archive at Nabble.com. > > _______________________________________________ > > seaside mailing list > > [hidden email] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://forum.world.st/ANN-Rickshaw-js-charting-library-for-Seaside-tp4749681p4778835.html > To start a new topic under Seaside General, email > ml-node+s1294792n86180h75@n4.nabble.com > To unsubscribe from Seaside, click here > > . > NAML > > -- View this message in context: http://forum.world.st/ANN-Rickshaw-js-charting-library-for-Seaside-tp4749681p4779310.html Sent from the Seaside General mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140921/a7905fec/attachment.htm From sven at stfx.eu Mon Sep 22 12:33:58 2014 From: sven at stfx.eu (Sven Van Caekenberghe) Date: Mon Sep 22 12:34:03 2014 Subject: [Seaside] Re: [Pharo-users] Safari and weird rendering In-Reply-To: References: Message-ID: On 22 Sep 2014, at 14:10, phil@highoctane.be wrote: > Maybe someone has had this. > > I see that when IE or Safari get a response from Seaside, I do get an application/xhtml+xlml returned. > > But with Firefox and Chrome, this is text/html; charset=utf-8 > > The server is Zinc HTTP Components 1.0 > > Why is there such a difference? > > I've put the preference in the app to force it but Zinc still serves the way described above. > > Ideas? > > Phil I do not understand exactly what you mean or want, in any case, the default Seaside response will be of type text/html; charset=utf-8. I would be quite surprised if there were differences per client (this is not impossible, but I don't think Seaside does that). Zinc has very little to do with this as you can see in ZnZincServerAdaptor>>#responseFrom: where the Seaside response object is converted. Sven From gaston.dalloglio at gmail.com Tue Sep 30 15:14:50 2014 From: gaston.dalloglio at gmail.com (=?UTF-8?Q?Gast=C3=B3n_Dall=27_Oglio?=) Date: Tue Sep 30 15:23:30 2014 Subject: [Seaside] [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: Message-ID: Hello Esteban. Thanks!!! Very interesting library, but it support pie charts? 2014-03-18 22:26 GMT-03:00 Esteban A. Maringolo : > I just uploaded to SmalltalkHub an initial wrapper for the Rickshaw.js > charting library (http://code.shutterstock.com/rickshaw/). > > As usual, you can load it with the following expression: > > Gofer it > smalltalkhubUser: 'emaringolo' project: 'rickshaw'; > package: 'ConfigurationOfRickshaw'; > load. > > (Smalltalk at: #ConfigurationOfRickshaw) project development load: 'All' > > This will load all the packages, including a Seaside component > installed at '/rickshaw' containing various examples. > > It is an initial version and my first package uploaded to > SmalltalkHub, so bugs and and mistakes are expected :) > > Questions are welcome too. > > Regards, > > Esteban A. Maringolo > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140930/0785e3a3/attachment.htm From emaringolo at gmail.com Tue Sep 30 15:26:54 2014 From: emaringolo at gmail.com (Esteban A. Maringolo) Date: Tue Sep 30 15:27:38 2014 Subject: [Seaside] [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: Message-ID: I don't see any pie chart example in http://code.shutterstock.com/rickshaw/examples/, so I guess it doesn't support pie charts. Regards! Esteban A. Maringolo 2014-09-30 12:14 GMT-03:00 Gast?n Dall' Oglio : > Hello Esteban. > > Thanks!!! Very interesting library, but it support pie charts? > > 2014-03-18 22:26 GMT-03:00 Esteban A. Maringolo : >> >> I just uploaded to SmalltalkHub an initial wrapper for the Rickshaw.js >> charting library (http://code.shutterstock.com/rickshaw/). >> >> As usual, you can load it with the following expression: >> >> Gofer it >> smalltalkhubUser: 'emaringolo' project: 'rickshaw'; >> package: 'ConfigurationOfRickshaw'; >> load. >> >> (Smalltalk at: #ConfigurationOfRickshaw) project development load: 'All' >> >> This will load all the packages, including a Seaside component >> installed at '/rickshaw' containing various examples. >> >> It is an initial version and my first package uploaded to >> SmalltalkHub, so bugs and and mistakes are expected :) >> >> Questions are welcome too. >> >> Regards, >> >> Esteban A. Maringolo >> _______________________________________________ >> seaside mailing list >> seaside@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > From gaston.dalloglio at gmail.com Tue Sep 30 15:44:16 2014 From: gaston.dalloglio at gmail.com (=?UTF-8?Q?Gast=C3=B3n_Dall=27_Oglio?=) Date: Tue Sep 30 15:44:42 2014 Subject: [Seaside] [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: Message-ID: Ok sadly, I saw the same in this page. I need develop a webapp for a customer but pie chart is a must for he. Anyway this is a good chart library. Thanks again! Best regard. 2014-09-30 12:26 GMT-03:00 Esteban A. Maringolo : > I don't see any pie chart example in > http://code.shutterstock.com/rickshaw/examples/, so I guess it doesn't > support pie charts. > > Regards! > Esteban A. Maringolo > > > 2014-09-30 12:14 GMT-03:00 Gast?n Dall' Oglio >: > > Hello Esteban. > > > > Thanks!!! Very interesting library, but it support pie charts? > > > > 2014-03-18 22:26 GMT-03:00 Esteban A. Maringolo : > >> > >> I just uploaded to SmalltalkHub an initial wrapper for the Rickshaw.js > >> charting library (http://code.shutterstock.com/rickshaw/). > >> > >> As usual, you can load it with the following expression: > >> > >> Gofer it > >> smalltalkhubUser: 'emaringolo' project: 'rickshaw'; > >> package: 'ConfigurationOfRickshaw'; > >> load. > >> > >> (Smalltalk at: #ConfigurationOfRickshaw) project development load: 'All' > >> > >> This will load all the packages, including a Seaside component > >> installed at '/rickshaw' containing various examples. > >> > >> It is an initial version and my first package uploaded to > >> SmalltalkHub, so bugs and and mistakes are expected :) > >> > >> Questions are welcome too. > >> > >> Regards, > >> > >> Esteban A. Maringolo > >> _______________________________________________ > >> seaside mailing list > >> seaside@lists.squeakfoundation.org > >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > > > _______________________________________________ > > seaside mailing list > > seaside@lists.squeakfoundation.org > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140930/f8c7ece2/attachment.htm From gaston.dalloglio at gmail.com Tue Sep 30 16:05:10 2014 From: gaston.dalloglio at gmail.com (=?UTF-8?Q?Gast=C3=B3n_Dall=27_Oglio?=) Date: Tue Sep 30 16:05:49 2014 Subject: [Seaside] [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: Message-ID: Just a rapid search in google show me that I'm not the only one to wish the pie chart: https://github.com/shutterstock/rickshaw/issues/127 I added my +1 to this long list hehe 2014-09-30 12:44 GMT-03:00 Gast?n Dall' Oglio : > Ok sadly, I saw the same in this page. I need develop a webapp for a > customer but pie chart is a must for he. > Anyway this is a good chart library. Thanks again! > Best regard. > > 2014-09-30 12:26 GMT-03:00 Esteban A. Maringolo : > > I don't see any pie chart example in >> http://code.shutterstock.com/rickshaw/examples/, so I guess it doesn't >> support pie charts. >> >> Regards! >> Esteban A. Maringolo >> >> >> 2014-09-30 12:14 GMT-03:00 Gast?n Dall' Oglio > >: >> > Hello Esteban. >> > >> > Thanks!!! Very interesting library, but it support pie charts? >> > >> > 2014-03-18 22:26 GMT-03:00 Esteban A. Maringolo : >> >> >> >> I just uploaded to SmalltalkHub an initial wrapper for the Rickshaw.js >> >> charting library (http://code.shutterstock.com/rickshaw/). >> >> >> >> As usual, you can load it with the following expression: >> >> >> >> Gofer it >> >> smalltalkhubUser: 'emaringolo' project: 'rickshaw'; >> >> package: 'ConfigurationOfRickshaw'; >> >> load. >> >> >> >> (Smalltalk at: #ConfigurationOfRickshaw) project development load: >> 'All' >> >> >> >> This will load all the packages, including a Seaside component >> >> installed at '/rickshaw' containing various examples. >> >> >> >> It is an initial version and my first package uploaded to >> >> SmalltalkHub, so bugs and and mistakes are expected :) >> >> >> >> Questions are welcome too. >> >> >> >> Regards, >> >> >> >> Esteban A. Maringolo >> >> _______________________________________________ >> >> seaside mailing list >> >> seaside@lists.squeakfoundation.org >> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > >> > >> > >> > _______________________________________________ >> > seaside mailing list >> > seaside@lists.squeakfoundation.org >> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > >> _______________________________________________ >> seaside mailing list >> seaside@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140930/a808da31/attachment.htm From johan at inceptive.be Tue Sep 30 16:19:24 2014 From: johan at inceptive.be (Johan Brichau) Date: Tue Sep 30 16:19:30 2014 Subject: [Seaside] [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: Message-ID: Rickshaw is designed to visualize time series. So, if you want to have charts that are not about time series, it?s better to choose something else. Take a look at http://en.wikipedia.org/wiki/Comparison_of_JavaScript_charting_frameworks On 30 Sep 2014, at 18:05, Gast?n Dall' Oglio wrote: > Just a rapid search in google show me that I'm not the only one to wish the pie chart: > https://github.com/shutterstock/rickshaw/issues/127 > > I added my +1 to this long list hehe > > 2014-09-30 12:44 GMT-03:00 Gast?n Dall' Oglio : > Ok sadly, I saw the same in this page. I need develop a webapp for a customer but pie chart is a must for he. > Anyway this is a good chart library. Thanks again! > Best regard. > > 2014-09-30 12:26 GMT-03:00 Esteban A. Maringolo : > > I don't see any pie chart example in > http://code.shutterstock.com/rickshaw/examples/, so I guess it doesn't > support pie charts. > > Regards! > Esteban A. Maringolo > > > 2014-09-30 12:14 GMT-03:00 Gast?n Dall' Oglio : > > Hello Esteban. > > > > Thanks!!! Very interesting library, but it support pie charts? > > > > 2014-03-18 22:26 GMT-03:00 Esteban A. Maringolo : > >> > >> I just uploaded to SmalltalkHub an initial wrapper for the Rickshaw.js > >> charting library (http://code.shutterstock.com/rickshaw/). > >> > >> As usual, you can load it with the following expression: > >> > >> Gofer it > >> smalltalkhubUser: 'emaringolo' project: 'rickshaw'; > >> package: 'ConfigurationOfRickshaw'; > >> load. > >> > >> (Smalltalk at: #ConfigurationOfRickshaw) project development load: 'All' > >> > >> This will load all the packages, including a Seaside component > >> installed at '/rickshaw' containing various examples. > >> > >> It is an initial version and my first package uploaded to > >> SmalltalkHub, so bugs and and mistakes are expected :) > >> > >> Questions are welcome too. > >> > >> Regards, > >> > >> Esteban A. Maringolo > >> _______________________________________________ > >> seaside mailing list > >> seaside@lists.squeakfoundation.org > >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > > > _______________________________________________ > > seaside mailing list > > seaside@lists.squeakfoundation.org > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140930/77e9363a/attachment-0001.htm From emaringolo at gmail.com Tue Sep 30 17:06:23 2014 From: emaringolo at gmail.com (Esteban A. Maringolo) Date: Tue Sep 30 17:07:06 2014 Subject: [Seaside] [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: Message-ID: What other charting libraries are available for Seaside? Esteban A. Maringolo 2014-09-30 13:19 GMT-03:00 Johan Brichau : > Rickshaw is designed to visualize time series. So, if you want to have > charts that are not about time series, it?s better to choose something else. > > Take a look at > http://en.wikipedia.org/wiki/Comparison_of_JavaScript_charting_frameworks > > > > On 30 Sep 2014, at 18:05, Gast?n Dall' Oglio > wrote: > > Just a rapid search in google show me that I'm not the only one to wish the > pie chart: > https://github.com/shutterstock/rickshaw/issues/127 > > I added my +1 to this long list hehe > > 2014-09-30 12:44 GMT-03:00 Gast?n Dall' Oglio : >> >> Ok sadly, I saw the same in this page. I need develop a webapp for a >> customer but pie chart is a must for he. >> Anyway this is a good chart library. Thanks again! >> Best regard. >> >> 2014-09-30 12:26 GMT-03:00 Esteban A. Maringolo : >> >>> I don't see any pie chart example in >>> http://code.shutterstock.com/rickshaw/examples/, so I guess it doesn't >>> support pie charts. >>> >>> Regards! >>> Esteban A. Maringolo >>> >>> >>> 2014-09-30 12:14 GMT-03:00 Gast?n Dall' Oglio >>> : >>> > Hello Esteban. >>> > >>> > Thanks!!! Very interesting library, but it support pie charts? >>> > >>> > 2014-03-18 22:26 GMT-03:00 Esteban A. Maringolo : >>> >> >>> >> I just uploaded to SmalltalkHub an initial wrapper for the Rickshaw.js >>> >> charting library (http://code.shutterstock.com/rickshaw/). >>> >> >>> >> As usual, you can load it with the following expression: >>> >> >>> >> Gofer it >>> >> smalltalkhubUser: 'emaringolo' project: 'rickshaw'; >>> >> package: 'ConfigurationOfRickshaw'; >>> >> load. >>> >> >>> >> (Smalltalk at: #ConfigurationOfRickshaw) project development load: >>> >> 'All' >>> >> >>> >> This will load all the packages, including a Seaside component >>> >> installed at '/rickshaw' containing various examples. >>> >> >>> >> It is an initial version and my first package uploaded to >>> >> SmalltalkHub, so bugs and and mistakes are expected :) >>> >> >>> >> Questions are welcome too. >>> >> >>> >> Regards, >>> >> >>> >> Esteban A. Maringolo >>> >> _______________________________________________ >>> >> seaside mailing list >>> >> seaside@lists.squeakfoundation.org >>> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> > >>> > >>> > >>> > _______________________________________________ >>> > seaside mailing list >>> > seaside@lists.squeakfoundation.org >>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> > >>> _______________________________________________ >>> seaside mailing list >>> seaside@lists.squeakfoundation.org >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> >> > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > From johan at inceptive.be Tue Sep 30 17:15:30 2014 From: johan at inceptive.be (Johan Brichau) Date: Tue Sep 30 17:15:36 2014 Subject: [Seaside] [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: Message-ID: Not many. Then again, I still implement my Rickshaw charts in plain javascript and have Seaside serve it a json. Having a wrapper can support certain use cases, but imho you can use many charting libraries by just relying on the javascript bindings that come with Seaside. I just want to say: they are all available for use with Seaside. For many use cases, you do not need a wrapper for them on the Seaside side. It does not mean I don?t appreciate that there is wrapper, on the contrary, this is nice and thanks for sharing. cheers Johan On 30 Sep 2014, at 19:06, Esteban A. Maringolo wrote: > What other charting libraries are available for Seaside? > > > Esteban A. Maringolo > > > 2014-09-30 13:19 GMT-03:00 Johan Brichau : >> Rickshaw is designed to visualize time series. So, if you want to have >> charts that are not about time series, it?s better to choose something else. >> >> Take a look at >> http://en.wikipedia.org/wiki/Comparison_of_JavaScript_charting_frameworks >> >> >> >> On 30 Sep 2014, at 18:05, Gast?n Dall' Oglio >> wrote: >> >> Just a rapid search in google show me that I'm not the only one to wish the >> pie chart: >> https://github.com/shutterstock/rickshaw/issues/127 >> >> I added my +1 to this long list hehe >> >> 2014-09-30 12:44 GMT-03:00 Gast?n Dall' Oglio : >>> >>> Ok sadly, I saw the same in this page. I need develop a webapp for a >>> customer but pie chart is a must for he. >>> Anyway this is a good chart library. Thanks again! >>> Best regard. >>> >>> 2014-09-30 12:26 GMT-03:00 Esteban A. Maringolo : >>> >>>> I don't see any pie chart example in >>>> http://code.shutterstock.com/rickshaw/examples/, so I guess it doesn't >>>> support pie charts. >>>> >>>> Regards! >>>> Esteban A. Maringolo >>>> >>>> >>>> 2014-09-30 12:14 GMT-03:00 Gast?n Dall' Oglio >>>> : >>>>> Hello Esteban. >>>>> >>>>> Thanks!!! Very interesting library, but it support pie charts? >>>>> >>>>> 2014-03-18 22:26 GMT-03:00 Esteban A. Maringolo : >>>>>> >>>>>> I just uploaded to SmalltalkHub an initial wrapper for the Rickshaw.js >>>>>> charting library (http://code.shutterstock.com/rickshaw/). >>>>>> >>>>>> As usual, you can load it with the following expression: >>>>>> >>>>>> Gofer it >>>>>> smalltalkhubUser: 'emaringolo' project: 'rickshaw'; >>>>>> package: 'ConfigurationOfRickshaw'; >>>>>> load. >>>>>> >>>>>> (Smalltalk at: #ConfigurationOfRickshaw) project development load: >>>>>> 'All' >>>>>> >>>>>> This will load all the packages, including a Seaside component >>>>>> installed at '/rickshaw' containing various examples. >>>>>> >>>>>> It is an initial version and my first package uploaded to >>>>>> SmalltalkHub, so bugs and and mistakes are expected :) >>>>>> >>>>>> Questions are welcome too. >>>>>> >>>>>> Regards, >>>>>> >>>>>> Esteban A. Maringolo >>>>>> _______________________________________________ >>>>>> seaside mailing list >>>>>> seaside@lists.squeakfoundation.org >>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> seaside mailing list >>>>> seaside@lists.squeakfoundation.org >>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>>> >>>> _______________________________________________ >>>> seaside mailing list >>>> seaside@lists.squeakfoundation.org >>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> >>> >> >> _______________________________________________ >> seaside mailing list >> seaside@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> >> >> >> _______________________________________________ >> seaside mailing list >> seaside@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside From emaringolo at gmail.com Tue Sep 30 17:47:37 2014 From: emaringolo at gmail.com (Esteban A. Maringolo) Date: Tue Sep 30 17:48:20 2014 Subject: [Seaside] [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: Message-ID: 2014-09-30 14:15 GMT-03:00 Johan Brichau : > I just want to say: they are all available for use with Seaside. > For many use cases, you do not need a wrapper for them on the Seaside side. Sure, that's why I do for most of the JS libs I use. I first use the current JS support and if the lib proves useful I move on to build a wrapper. I did that to both Rickshaw and DataTables. I still have a DT use case where I rely on the bare JS because I still have to integrate certain features into the wrapper. > It does not mean I don?t appreciate that there is wrapper, on the contrary, this is nice and thanks for sharing. No need to clarify ;-) Best regards, Esteban A. Maringolo From gaston.dalloglio at gmail.com Tue Sep 30 17:50:04 2014 From: gaston.dalloglio at gmail.com (=?UTF-8?Q?Gast=C3=B3n_Dall=27_Oglio?=) Date: Tue Sep 30 17:50:33 2014 Subject: [Seaside] [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: Message-ID: Johan, thank for your clarification about Rickshaw. I review the list in wikipedia later. 2014-09-30 14:15 GMT-03:00 Johan Brichau : > Not many. > > Then again, I still implement my Rickshaw charts in plain javascript and > have Seaside serve it a json. > Having a wrapper can support certain use cases, but imho you can use many > charting libraries by just relying on the javascript bindings that come > with Seaside. > > I just want to say: they are all available for use with Seaside. For many > use cases, you do not need a wrapper for them on the Seaside side. > > Sure. But IMHO the javascript binding in Seaside are incomplete and often incorrects. They are made just to give support to certain libraries to generate js (jQuery, Scriptaculous, prototype...), see my old post here http://forum.world.st/jQuery-variable-check-for-onBlur-tp4680625p4680648.html > It does not mean I don?t appreciate that there is wrapper, on the > contrary, this is nice and thanks for sharing. > > Exactly. And the wrappers are de starting point to add more complex logic/constructs in Seaside (or better said Smalltalk) side. I always prefer a wrapper over obscure js strings embeded in Smalltalk code. > cheers > Johan Best Gast?n > On 30 Sep 2014, at 19:06, Esteban A. Maringolo > wrote: > > > What other charting libraries are available for Seaside? > > > > > > Esteban A. Maringolo > > > > > > 2014-09-30 13:19 GMT-03:00 Johan Brichau : > >> Rickshaw is designed to visualize time series. So, if you want to have > >> charts that are not about time series, it?s better to choose something > else. > >> > >> Take a look at > >> > http://en.wikipedia.org/wiki/Comparison_of_JavaScript_charting_frameworks > >> > >> > >> > >> On 30 Sep 2014, at 18:05, Gast?n Dall' Oglio < > gaston.dalloglio@gmail.com> > >> wrote: > >> > >> Just a rapid search in google show me that I'm not the only one to wish > the > >> pie chart: > >> https://github.com/shutterstock/rickshaw/issues/127 > >> > >> I added my +1 to this long list hehe > >> > >> 2014-09-30 12:44 GMT-03:00 Gast?n Dall' Oglio < > gaston.dalloglio@gmail.com>: > >>> > >>> Ok sadly, I saw the same in this page. I need develop a webapp for a > >>> customer but pie chart is a must for he. > >>> Anyway this is a good chart library. Thanks again! > >>> Best regard. > >>> > >>> 2014-09-30 12:26 GMT-03:00 Esteban A. Maringolo >: > >>> > >>>> I don't see any pie chart example in > >>>> http://code.shutterstock.com/rickshaw/examples/, so I guess it > doesn't > >>>> support pie charts. > >>>> > >>>> Regards! > >>>> Esteban A. Maringolo > >>>> > >>>> > >>>> 2014-09-30 12:14 GMT-03:00 Gast?n Dall' Oglio > >>>> : > >>>>> Hello Esteban. > >>>>> > >>>>> Thanks!!! Very interesting library, but it support pie charts? > >>>>> > >>>>> 2014-03-18 22:26 GMT-03:00 Esteban A. Maringolo < > emaringolo@gmail.com>: > >>>>>> > >>>>>> I just uploaded to SmalltalkHub an initial wrapper for the > Rickshaw.js > >>>>>> charting library (http://code.shutterstock.com/rickshaw/). > >>>>>> > >>>>>> As usual, you can load it with the following expression: > >>>>>> > >>>>>> Gofer it > >>>>>> smalltalkhubUser: 'emaringolo' project: 'rickshaw'; > >>>>>> package: 'ConfigurationOfRickshaw'; > >>>>>> load. > >>>>>> > >>>>>> (Smalltalk at: #ConfigurationOfRickshaw) project development load: > >>>>>> 'All' > >>>>>> > >>>>>> This will load all the packages, including a Seaside component > >>>>>> installed at '/rickshaw' containing various examples. > >>>>>> > >>>>>> It is an initial version and my first package uploaded to > >>>>>> SmalltalkHub, so bugs and and mistakes are expected :) > >>>>>> > >>>>>> Questions are welcome too. > >>>>>> > >>>>>> Regards, > >>>>>> > >>>>>> Esteban A. Maringolo > >>>>>> _______________________________________________ > >>>>>> seaside mailing list > >>>>>> seaside@lists.squeakfoundation.org > >>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > >>>>> > >>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> seaside mailing list > >>>>> seaside@lists.squeakfoundation.org > >>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > >>>>> > >>>> _______________________________________________ > >>>> seaside mailing list > >>>> seaside@lists.squeakfoundation.org > >>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > >>> > >>> > >> > >> _______________________________________________ > >> seaside mailing list > >> seaside@lists.squeakfoundation.org > >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > >> > >> > >> > >> _______________________________________________ > >> seaside mailing list > >> seaside@lists.squeakfoundation.org > >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > >> > > _______________________________________________ > > seaside mailing list > > seaside@lists.squeakfoundation.org > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140930/a51feb68/attachment-0001.htm From pdebruic at gmail.com Tue Sep 30 22:58:37 2014 From: pdebruic at gmail.com (Paul DeBruicker) Date: Tue Sep 30 22:58:47 2014 Subject: [Seaside] Re: [ANN] Rickshaw.js charting library for Seaside In-Reply-To: References: Message-ID: <1412117917304-4781657.post@n4.nabble.com> http://www.highcharts.com/ is pretty complete and I've replaced my use of dc-js & rickshaw with it: http://smalltalkhub.com/#!/~Mercap/HighchartsSt But its $400+. So that may be a problem. https://code.google.com/p/flotr/ - not sure how complete but it exists: http://smalltalkhub.com/#!/~PharoExtras/Flotr -- View this message in context: http://forum.world.st/ANN-Rickshaw-js-charting-library-for-Seaside-tp4749681p4781657.html Sent from the Seaside General mailing list archive at Nabble.com.