From sebastian at flowingconcept.com Sat Jan 3 21:30:49 2015 From: sebastian at flowingconcept.com (Sebastian Sastre) Date: Wed Jan 7 16:14:19 2015 Subject: [Seaside] Apparent loop in import expansion? Message-ID: <1312728F-2B94-4DE5-9458-FC7A73E5C74E@flowingconcept.com> Is this familiar to anyone? -------------- next part -------------- Skipped content of type multipart/related From sebastian at flowingconcept.com Sun Jan 4 23:47:11 2015 From: sebastian at flowingconcept.com (Sebastian Sastre) Date: Wed Jan 7 16:42:15 2015 Subject: [Seaside] Development tip: increment the debugger stack size Message-ID: If you?re using Pharo you might found this tip nice: 1. Search for implementors of defaultStackSize 2. increment it to 40 or some more (saves you one click to ask for the full stack that usually is large in seaside apps) 3. in the system settings make go do Debugging and set it to open the debugger on exceptions (saves you one click per exception) those 2 clicks multiplied by a lot of coding and trying should save you a lot in the long run enjoy From sergio.rrd at gmail.com Tue Jan 6 18:29:40 2015 From: sergio.rrd at gmail.com (sergio_101) Date: Wed Jan 7 19:06:09 2015 Subject: [Seaside] Using Walkback Errors in Seaside Message-ID: I have noticed that walkback errors are no longer the default when registering a new application. Is this something that has changed for a specific reason (ie, stability or speed) or can i just turn it back on and not worry about it? thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150106/2518bce5/attachment.htm From dale.henrichs at gemtalksystems.com Wed Jan 7 19:34:50 2015 From: dale.henrichs at gemtalksystems.com (Dale Henrichs) Date: Wed Jan 7 19:34:59 2015 Subject: [Seaside] Apparent loop in import expansion? In-Reply-To: <1312728F-2B94-4DE5-9458-FC7A73E5C74E@flowingconcept.com> References: <1312728F-2B94-4DE5-9458-FC7A73E5C74E@flowingconcept.com> Message-ID: <54AD8A5A.8080609@gemtalksystems.com> Sebastian, This is a Metacello error, so there is a problem in a configuration somewhere ... I believe that the error is coming from the method MetacelloVersionConstructor>>collectAllVersionsFromVersionImportPragmasInto:using:satisfiedPragmas: and in order to debug the problem, I think I will need to see a printout of the contents of the pragmaDict argument to that method. Dale On 01/03/2015 01:30 PM, Sebastian Sastre wrote: > Is this familiar to anyone? > > > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -------------- next part -------------- Skipped content of type multipart/related From sebastian at flowingconcept.com Wed Jan 7 21:34:30 2015 From: sebastian at flowingconcept.com (Sebastian Sastre) Date: Wed Jan 7 21:34:41 2015 Subject: [Seaside] Apparent loop in import expansion? In-Reply-To: <54AD8A5A.8080609@gemtalksystems.com> References: <1312728F-2B94-4DE5-9458-FC7A73E5C74E@flowingconcept.com> <54AD8A5A.8080609@gemtalksystems.com> Message-ID: yes already solved it was a git protocol instead of https in cloning a repo thanks > On Jan 7, 2015, at 5:34 PM, Dale Henrichs wrote: > > Sebastian, > > This is a Metacello error, so there is a problem in a configuration somewhere ... I believe that the error is coming from the method MetacelloVersionConstructor>>collectAllVersionsFromVersionImportPragmasInto:using:satisfiedPragmas: and in order to debug the problem, I think I will need to see a printout of the contents of the pragmaDict argument to that method. > > Dale > > On 01/03/2015 01:30 PM, Sebastian Sastre wrote: >> Is this familiar to anyone? >> >> >> >> >> _______________________________________________ >> 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/20150107/344ca701/attachment.htm From sm at planage.com Thu Jan 8 04:55:59 2015 From: sm at planage.com (Sanjay-M) Date: Thu Jan 8 04:57:51 2015 Subject: [Seaside] Grid like entry with autosave Message-ID: <1420692959779-4798280.post@n4.nabble.com> Hi, I want to make a grid like entry widget on a collection with auto save (say like excel / google sheets behaves). pls advice on how to go about the UI. I looked as the examples - Forms where to add / delete a separate sub screen comes on - that is not what I am looking for. Simply put it has a date, a symbol / text and an amount i should be able to edit inline, keep adding at end, or delete a link / button at end of each line thanks Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Grid-like-entry-with-autosave-tp4798280.html Sent from the Seaside General mailing list archive at Nabble.com. From stormbyte at gmail.com Thu Jan 8 10:04:50 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Thu Jan 8 10:20:51 2015 Subject: [Seaside] Seaside 3.1 and Pharo issues Message-ID: Currently, there are issues with latest stable seaside and pharo, which have been talked before but seems not getting much attention, and some of them are important, so I want to do a little summary here. First of all, I have to say that I am new on smalltalk, pharo and seaside, and started by reading Pharo by example, Deep into Pharo and Seaside tutorial by Hasso Plattner Institut. One of the issues (minor) is an error in startup script for linux which comes with the Seaside one click experience tarball (3.1) which I made a patch to correct: --- Seaside3.1-OneClick.app/Pharo2.0-portable.sh.original 2014-01-30 12:28:38.000000000 +0100 +++ Seaside3.1-OneClick.app/Pharo2.0-portable.sh 2015-01-08 10:47:31.306292421 +0100 @@ -24,7 +24,7 @@ # execute exec "$LINUX/pharo" \ - -plugins "$LINUX" \ - -encoding utf8 \ + --plugins "$LINUX" \ + --encoding utf8 \ -vm-display-X11 \ "$image" Other issue, that is specially important because it confuses new users (like me) is that there are things which only works with pharo3 and not with pharo2, and other, that do work with pharo2 but not in pharo3, which is confusing, because the one click experience tarball comes with pharo2, so I try to enumerate them here: ** Halos, and code editing: - Pharo2: OK, working normally - Pharo3: DANGEROUS, partially not working, and when it works it makes you lose code, I explain: x There are times in which you simply get the error: MessageNotUnderstood: receiver of "generateWithSource" is nil and you can't edit code x When you don't get the above error, then you can edit code but when trying to save, I detected 2 possible bad behaviors: - Save appears to work, but when you actually browse the code you changed via browser in pharo, you see your whole method's code is replaced by self methodHasNoSourceCode, in this case you lost your original code - Save not working, and debugger is raised, telling you: Unknown variable (the method name you just edited), for example, in my case I edited via browser the initialize method, and I got Unknown variable initialize. ** Seaside Control Panel: - Pharo3: OK, no errors - Pharo2: Not working: x Menu entry is missing x If you invoke it manually or you just use the one that is raised when you open firstly the one click experience image: * Right click not showing anything (in pharo3 right click displays add adapter and that kind of options) * Selecting an adapter and clicking "Browse" give you: Not understood message WAServerAdapterToolbar>>owner * Start/Stop options also shows above message not understood error Summary: Again, I am not an expert, and some of these issues are not important enough, because seaside continues to work, but in my honest opinion, that incongruity of functionality between versions 2 and 3, do not make much sense, and make user to chose between comodity (seaside control panel) and functionality (halos). Any opinions to this? Thanks for taking your time to read :) David. From stormbyte at gmail.com Thu Jan 8 10:28:59 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Thu Jan 8 10:34:23 2015 Subject: [Seaside] Re: Seaside 3.1 and Pharo issues References: Message-ID: David Carlos Manuelda wrote: > Currently, there are issues with latest stable seaside and pharo, which > have been talked before but seems not getting much attention, and some of > them are important, so I want to do a little summary here. > > First of all, I have to say that I am new on smalltalk, pharo and seaside, > and started by reading Pharo by example, Deep into Pharo and Seaside > tutorial by Hasso Plattner Institut. > > One of the issues (minor) is an error in startup script for linux which > comes with the Seaside one click experience tarball (3.1) which I made a > patch to correct: > > --- Seaside3.1-OneClick.app/Pharo2.0-portable.sh.original 2014-01-30 > 12:28:38.000000000 +0100 > +++ Seaside3.1-OneClick.app/Pharo2.0-portable.sh 2015-01-08 > 10:47:31.306292421 +0100 > @@ -24,7 +24,7 @@ > > # execute > exec "$LINUX/pharo" \ > - -plugins "$LINUX" \ > - -encoding utf8 \ > + --plugins "$LINUX" \ > + --encoding utf8 \ > -vm-display-X11 \ > "$image" > > > Other issue, that is specially important because it confuses new users > (like me) is that there are things which only works with pharo3 and not > with pharo2, and other, that do work with pharo2 but not in pharo3, which > is confusing, because the one click experience tarball comes with pharo2, > so I try to enumerate them here: > > ** Halos, and code editing: > - Pharo2: OK, working normally > - Pharo3: DANGEROUS, partially not working, and when it works it makes > you lose code, I explain: > x There are times in which you simply get the error: > MessageNotUnderstood: receiver of "generateWithSource" is nil and you > can't edit code > x When you don't get the above error, then you can edit code but > when > trying to save, I detected 2 possible bad behaviors: > - Save appears to work, but when you actually browse the code > you changed via browser in pharo, you see your whole method's code is > replaced by self methodHasNoSourceCode, in this case you lost your > original code > - Save not working, and debugger is raised, telling you: > Unknown variable (the method name you just edited), for example, in my > case I edited via browser the initialize method, and I got Unknown > variable initialize. > > ** Seaside Control Panel: > - Pharo3: OK, no errors > - Pharo2: Not working: > x Menu entry is missing > x If you invoke it manually or you just use the one that is raised > when you open firstly the one click experience image: > * Right click not showing anything (in pharo3 right click > displays add adapter and that kind of options) > * Selecting an adapter and clicking "Browse" give you: Not > understood message WAServerAdapterToolbar>>owner > * Start/Stop options also shows above message not understood > error > > > > Summary: Again, I am not an expert, and some of these issues are not > important enough, because seaside continues to work, but in my honest > opinion, that incongruity of functionality between versions 2 and 3, do > not make much sense, and make user to chose between comodity (seaside > control panel) and functionality (halos). > > > Any opinions to this? Thanks for taking your time to read :) > > David. Also, debugger do not trigger, neither in pharo2 nor pharo3, for example putting this on rootcomponent>>#renderContentOn: html html text 'test'. 1/0. Makes an error to raise in browser, but do not trigger debugger inside Pharo, which makes debugging really hard, as the browser error do not give enough information alone to locate the error. From sebastian at flowingconcept.com Thu Jan 8 10:39:18 2015 From: sebastian at flowingconcept.com (Sebastian Sastre) Date: Thu Jan 8 10:39:23 2015 Subject: [Seaside] Re: Seaside 3.1 and Pharo issues In-Reply-To: References: Message-ID: I suggest you post the Pharo issues in the pharo list best! from mobile > On 08/01/2015, at 08:28, David Carlos Manuelda wrote: > > David Carlos Manuelda wrote: > >> Currently, there are issues with latest stable seaside and pharo, which >> have been talked before but seems not getting much attention, and some of >> them are important, so I want to do a little summary here. >> >> First of all, I have to say that I am new on smalltalk, pharo and seaside, >> and started by reading Pharo by example, Deep into Pharo and Seaside >> tutorial by Hasso Plattner Institut. >> >> One of the issues (minor) is an error in startup script for linux which >> comes with the Seaside one click experience tarball (3.1) which I made a >> patch to correct: >> >> --- Seaside3.1-OneClick.app/Pharo2.0-portable.sh.original 2014-01-30 >> 12:28:38.000000000 +0100 >> +++ Seaside3.1-OneClick.app/Pharo2.0-portable.sh 2015-01-08 >> 10:47:31.306292421 +0100 >> @@ -24,7 +24,7 @@ >> >> # execute >> exec "$LINUX/pharo" \ >> - -plugins "$LINUX" \ >> - -encoding utf8 \ >> + --plugins "$LINUX" \ >> + --encoding utf8 \ >> -vm-display-X11 \ >> "$image" >> >> >> Other issue, that is specially important because it confuses new users >> (like me) is that there are things which only works with pharo3 and not >> with pharo2, and other, that do work with pharo2 but not in pharo3, which >> is confusing, because the one click experience tarball comes with pharo2, >> so I try to enumerate them here: >> >> ** Halos, and code editing: >> - Pharo2: OK, working normally >> - Pharo3: DANGEROUS, partially not working, and when it works it makes >> you lose code, I explain: >> x There are times in which you simply get the error: >> MessageNotUnderstood: receiver of "generateWithSource" is nil and you >> can't edit code >> x When you don't get the above error, then you can edit code but >> when >> trying to save, I detected 2 possible bad behaviors: >> - Save appears to work, but when you actually browse the code >> you changed via browser in pharo, you see your whole method's code is >> replaced by self methodHasNoSourceCode, in this case you lost your >> original code >> - Save not working, and debugger is raised, telling you: >> Unknown variable (the method name you just edited), for example, in my >> case I edited via browser the initialize method, and I got Unknown >> variable initialize. >> >> ** Seaside Control Panel: >> - Pharo3: OK, no errors >> - Pharo2: Not working: >> x Menu entry is missing >> x If you invoke it manually or you just use the one that is raised >> when you open firstly the one click experience image: >> * Right click not showing anything (in pharo3 right click >> displays add adapter and that kind of options) >> * Selecting an adapter and clicking "Browse" give you: Not >> understood message WAServerAdapterToolbar>>owner >> * Start/Stop options also shows above message not understood >> error >> >> >> >> Summary: Again, I am not an expert, and some of these issues are not >> important enough, because seaside continues to work, but in my honest >> opinion, that incongruity of functionality between versions 2 and 3, do >> not make much sense, and make user to chose between comodity (seaside >> control panel) and functionality (halos). >> >> >> Any opinions to this? Thanks for taking your time to read :) >> >> David. > > Also, debugger do not trigger, neither in pharo2 nor pharo3, for example > putting this on rootcomponent>>#renderContentOn: html > html text 'test'. > 1/0. > > Makes an error to raise in browser, but do not trigger debugger inside > Pharo, which makes debugging really hard, as the browser error do not give > enough information alone to locate the error. > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside From maxleske at gmail.com Thu Jan 8 11:25:37 2015 From: maxleske at gmail.com (Max Leske) Date: Thu Jan 8 11:25:41 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: References: Message-ID: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> Hi David Thanks for those observations. Quick question: which VMs did you use (for 2 and 3 respectively)? Did you use the one-click app? Cheers, Max > On 08 Jan 2015, at 11:56, David Carlos Manuelda wrote: > > Currently, there are issues with latest stable seaside and pharo, which > have > been talked before but seems not getting much attention, and some of them > are important, so I want to do a little summary here. > > First of all, I have to say that I am new on smalltalk, pharo and seaside, > and started by reading Pharo by example, Deep into Pharo and Seaside > tutorial by Hasso Plattner Institut. > > Other issue, that is specially important because it confuses new users > (like > me) is that there are things which only works with pharo3 and not with > pharo2, and other, that do work with pharo2 but not in pharo3, which is > confusing, because the one click experience tarball comes with pharo2, so I > try to enumerate them here: > > ** Halos, and code editing: > - Pharo2: OK, working normally > - Pharo3: DANGEROUS, partially not working, and when it works it makes > you lose code, I explain: > x There are times in which you simply get the error: > MessageNotUnderstood: receiver of "generateWithSource" is nil and you can't > edit code > x When you don't get the above error, then you can edit code but > when > trying to save, I detected 2 possible bad behaviors: > - Save appears to work, but when you actually browse the code > you changed via browser in pharo, you see your whole method's code is > replaced by self methodHasNoSourceCode, in this case you lost your original > code > - Save not working, and debugger is raised, telling you: > Unknown variable (the method name you just edited), for example, in my case > I edited via browser the initialize method, and I got Unknown variable > initialize. > > ** Seaside Control Panel: > - Pharo3: OK, no errors > - Pharo2: Not working: > x Menu entry is missing > x If you invoke it manually or you just use the one that is raised > when you open firstly the one click experience image: > * Right click not showing anything (in pharo3 right click > displays add adapter and that kind of options) > * Selecting an adapter and clicking "Browse" give you: Not > understood message WAServerAdapterToolbar>>owner > * Start/Stop options also shows above message not understood > error > > > > Summary: Again, I am not an expert, and some of these issues are not > important enough, because seaside continues to work, but in my honest > opinion, that incongruity of functionality between versions 2 and 3, do not > make much sense, and make user to chose between comodity (seaside control > panel) and functionality (halos). > > > Any opinions to this? Thanks for taking your time to read :) > > David. > > > From stormbyte at gmail.com Thu Jan 8 11:53:12 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Thu Jan 8 11:58:53 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 References: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> Message-ID: Max Leske wrote: > Hi David > > Thanks for those observations. > > Quick question: which VMs did you use (for 2 and 3 respectively)? Did you > use the one-click app? > > Cheers, > Max > For pharo2 I used seaside one click experience app downloaded directly and with no more modifications to the stock image. For pharo3, I downloaded pharo3 and installed seaside 3.1 via Gofer. So this, in theory, is reproducible with stock images without any further modification to image. I want to point out that also, debugger is not raised in any of the two versions, only little error message in browser when something happens inside seaside, for example, a message not understood. That is really important, because it can be very hard to find with only the error title. >> On 08 Jan 2015, at 11:56, David Carlos Manuelda >> wrote: >> >> Currently, there are issues with latest stable seaside and pharo, which >> have >> been talked before but seems not getting much attention, and some of them >> are important, so I want to do a little summary here. >> >> First of all, I have to say that I am new on smalltalk, pharo and >> seaside, and started by reading Pharo by example, Deep into Pharo and >> Seaside tutorial by Hasso Plattner Institut. >> >> Other issue, that is specially important because it confuses new users >> (like >> me) is that there are things which only works with pharo3 and not with >> pharo2, and other, that do work with pharo2 but not in pharo3, which is >> confusing, because the one click experience tarball comes with pharo2, so >> I try to enumerate them here: >> >> ** Halos, and code editing: >> - Pharo2: OK, working normally >> - Pharo3: DANGEROUS, partially not working, and when it works it makes >> you lose code, I explain: >> x There are times in which you simply get the error: >> MessageNotUnderstood: receiver of "generateWithSource" is nil and you >> can't edit code >> x When you don't get the above error, then you can edit code but >> when >> trying to save, I detected 2 possible bad behaviors: >> - Save appears to work, but when you actually browse the code >> you changed via browser in pharo, you see your whole method's code is >> replaced by self methodHasNoSourceCode, in this case you lost your >> original code >> - Save not working, and debugger is raised, telling you: >> Unknown variable (the method name you just edited), for example, in my >> case I edited via browser the initialize method, and I got Unknown >> variable initialize. >> >> ** Seaside Control Panel: >> - Pharo3: OK, no errors >> - Pharo2: Not working: >> x Menu entry is missing >> x If you invoke it manually or you just use the one that is raised >> when you open firstly the one click experience image: >> * Right click not showing anything (in pharo3 right click >> displays add adapter and that kind of options) >> * Selecting an adapter and clicking "Browse" give you: Not >> understood message WAServerAdapterToolbar>>owner >> * Start/Stop options also shows above message not understood >> error >> >> >> >> Summary: Again, I am not an expert, and some of these issues are not >> important enough, because seaside continues to work, but in my honest >> opinion, that incongruity of functionality between versions 2 and 3, do >> not make much sense, and make user to chose between comodity (seaside >> control panel) and functionality (halos). >> >> >> Any opinions to this? Thanks for taking your time to read :) >> >> David. >> >> >> From johan at inceptive.be Thu Jan 8 12:31:03 2015 From: johan at inceptive.be (Johan Brichau) Date: Thu Jan 8 12:31:08 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: References: Message-ID: Hi David, Thanks for reaching out. You are right that encountering these issues is not a good user experience and we will try to improve on that. Let me quickly respond to your remarks already. The fact that the one-click download is still Pharo2 is something that went by unnoticed. I got reminded about that just last week and will try to update the download asap. However, installing Seaside in your own Pharo image is a much more preferred solution because maintaining the one-click download with latest bugfixes takes time as well, which is precious amongst Seaside maintainers. The Seaside control panel is broken in Pharo 2 and, unless someone provides fixes for it, will not be fixed. The reason is that it does not make much sense trying to maintain that for older Pharo versions. The differences between Pharo2 and 3 are large in the area and newcomers should use Pharo 3. The source code that cannot be saved is a know issue in Pharo 3 [1]. But please mind that this is not the way to edit your code. The WABrowser is just an example. The idea is that I update the website but the I did not manage it before the end of 2014. I hope to get at it soon though? Cheers, Johan [1] https://code.google.com/p/seaside/issues/detail?id=811 > On 08 Jan 2015, at 11:56, David Carlos Manuelda > wrote: > > Currently, there are issues with latest stable seaside and pharo, which > have > been talked before but seems not getting much attention, and some of them > are important, so I want to do a little summary here. > > First of all, I have to say that I am new on smalltalk, pharo and seaside, > and started by reading Pharo by example, Deep into Pharo and Seaside > tutorial by Hasso Plattner Institut. > > Other issue, that is specially important because it confuses new users > (like > me) is that there are things which only works with pharo3 and not with > pharo2, and other, that do work with pharo2 but not in pharo3, which is > confusing, because the one click experience tarball comes with pharo2, so I > try to enumerate them here: > > ** Halos, and code editing: > - Pharo2: OK, working normally > - Pharo3: DANGEROUS, partially not working, and when it works it makes > you lose code, I explain: > x There are times in which you simply get the error: > MessageNotUnderstood: receiver of "generateWithSource" is nil and you can't > edit code > x When you don't get the above error, then you can edit code but > when > trying to save, I detected 2 possible bad behaviors: > - Save appears to work, but when you actually browse the code > you changed via browser in pharo, you see your whole method's code is > replaced by self methodHasNoSourceCode, in this case you lost your original > code > - Save not working, and debugger is raised, telling you: > Unknown variable (the method name you just edited), for example, in my case > I edited via browser the initialize method, and I got Unknown variable > initialize. > > ** Seaside Control Panel: > - Pharo3: OK, no errors > - Pharo2: Not working: > x Menu entry is missing > x If you invoke it manually or you just use the one that is raised > when you open firstly the one click experience image: > * Right click not showing anything (in pharo3 right click > displays add adapter and that kind of options) > * Selecting an adapter and clicking "Browse" give you: Not > understood message WAServerAdapterToolbar>>owner > * Start/Stop options also shows above message not understood > error > > > > Summary: Again, I am not an expert, and some of these issues are not > important enough, because seaside continues to work, but in my honest > opinion, that incongruity of functionality between versions 2 and 3, do not > make much sense, and make user to chose between comodity (seaside control > panel) and functionality (halos). > > > Any opinions to this? Thanks for taking your time to read :) > > David. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150108/a80992cd/attachment.htm From stephan at stack.nl Thu Jan 8 12:35:58 2015 From: stephan at stack.nl (Stephan Eggermont) Date: Thu Jan 8 12:36:02 2015 Subject: [Seaside] Re: Seaside 3.1 and Pharo issues Message-ID: <24E63452-BDA7-470D-89B6-C89D1D9B52F1@stack.nl> David wrote: >Also, debugger do not trigger, neither in pharo2 nor pharo3, for example >putting this on rootcomponent>>#renderContentOn: html >html text 'test'. >1/0. I cannot reproduce that. Are you sure your application exception handler (in the filters) is set to do debugging? That is, WADebugErrorHandler instead of WAErrorHandler >** Halos, and code editing: > - Pharo2: OK, working normally > - Pharo3: DANGEROUS, partially not working, and when it works it makes >you lose code, I explain: That is an issue indeed. It is a feature that you try to use as a new seaside user, and then never again. The quality of tools in image is so much better than that online, that I don't know any experienced seasider using it, on any platform. That has allowed this issue to go undiscovered so long. It has been reported on december 11. https://code.google.com/p/seaside/issues/detail?id=837 http://forum.world.st/Pharo-3-Seaside-3-1-development-time-error-td4795419.html December is a bad month to get non-critical issues fixed. I've spend my time getting moose ready for the 5 release. The seaside control panel is never going to work in Pharo2. Both the old one and the new one don't work there. If you need to run Seaside in Pharo2, all functionality of the panel is scripted easily, so there are sufficient workarounds. Stephan From stormbyte at gmail.com Thu Jan 8 12:55:41 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Thu Jan 8 12:58:26 2015 Subject: [Seaside] Re: Seaside 3.1 and Pharo issues References: <24E63452-BDA7-470D-89B6-C89D1D9B52F1@stack.nl> Message-ID: Stephan Eggermont wrote: > David wrote: >>Also, debugger do not trigger, neither in pharo2 nor pharo3, for example >>putting this on rootcomponent>>#renderContentOn: html >>html text 'test'. >>1/0. > > I cannot reproduce that. Are you sure your application exception handler > (in the filters) is set to do debugging? That is, WADebugErrorHandler > instead of WAErrorHandler > Ok, done that by deeply looking at the config. I was using defaults, which I thought that since it was already set on developer mode by default it should be set that also. Now it works, thanks for pointing me in the right direction. >>** Halos, and code editing: >> - Pharo2: OK, working normally >> - Pharo3: DANGEROUS, partially not working, and when it works it makes >>you lose code, I explain: > > That is an issue indeed. It is a feature that you try to use as a new > seaside user, and then never again. The quality of tools in image is so > much better than that online, that I don't know any experienced seasider > using it, on any platform. That has allowed this issue to go undiscovered > so long. > For editing code, yes, it is way better to not use halos, but modifying renderContentOn on the fly via halos, for example, saves little time :) > It has been reported on december 11. > https://code.google.com/p/seaside/issues/detail?id=837 > http://forum.world.st/Pharo-3-Seaside-3-1-development-time-error-td4795419.html > December is a bad month to get non-critical issues fixed. I've spend my > time getting moose ready for the 5 release. > > The seaside control panel is never going to work in Pharo2. > Both the old one and the new one don't work there. > If you need to run Seaside in Pharo2, all functionality of the panel is > scripted easily, so there are sufficient workarounds. > > Stephan About that, have been already issued, just wanted to point a messy user experience, specially if you are new to this like me. Using pharo3 is not a problem. From lasmiste at gmail.com Thu Jan 8 14:08:22 2015 From: lasmiste at gmail.com (Dave) Date: Thu Jan 8 14:10:17 2015 Subject: [Seaside] 404 on squeakfoundation.org Message-ID: <1420726102303-4798342.post@n4.nabble.com> Hi there, http://squeakfoundation.org gives 404 and so archives of this list. TIA Dave -- View this message in context: http://forum.world.st/404-on-squeakfoundation-org-tp4798342.html Sent from the Seaside General mailing list archive at Nabble.com. From Das.Linux at gmx.de Thu Jan 8 14:20:34 2015 From: Das.Linux at gmx.de (Tobias Pape) Date: Thu Jan 8 14:20:37 2015 Subject: [Seaside] 404 on squeakfoundation.org In-Reply-To: <1420726102303-4798342.post@n4.nabble.com> References: <1420726102303-4798342.post@n4.nabble.com> Message-ID: <83B7E431-77DC-48E0-A708-73509758B9BA@gmx.de> Hi Dave, On 08.01.2015, at 15:08, Dave wrote: > Hi there, > http://squeakfoundation.org gives 404 and so archives of this list. We experienced a server outage on one of the servers[1] and not all services are already back. Sorry for any inconveniences, we're working on it. Best -Tobias From Das.Linux at gmx.de Thu Jan 8 15:07:17 2015 From: Das.Linux at gmx.de (Tobias Pape) Date: Thu Jan 8 15:07:19 2015 Subject: [Seaside] 404 on squeakfoundation.org In-Reply-To: <83B7E431-77DC-48E0-A708-73509758B9BA@gmx.de> References: <1420726102303-4798342.post@n4.nabble.com> <83B7E431-77DC-48E0-A708-73509758B9BA@gmx.de> Message-ID: On 08.01.2015, at 15:20, Tobias Pape wrote: > Hi Dave, > > On 08.01.2015, at 15:08, Dave wrote: > >> Hi there, >> http://squeakfoundation.org gives 404 and so archives of this list. > > We experienced a server outage on one of the servers[1] > and not all services are already back. Sorry for any > inconveniences, we're working on it. The list archive is up again. Best -Tobias From lasmiste at gmail.com Thu Jan 8 16:45:21 2015 From: lasmiste at gmail.com (Dave) Date: Thu Jan 8 16:47:17 2015 Subject: [Seaside] Re: 404 on squeakfoundation.org In-Reply-To: References: <1420726102303-4798342.post@n4.nabble.com> <83B7E431-77DC-48E0-A708-73509758B9BA@gmx.de> Message-ID: <1420735521279-4798403.post@n4.nabble.com> Thanks Tobias Dave Tobias Pape wrote > On 08.01.2015, at 15:20, Tobias Pape < > Das.Linux@ > > wrote: > >> Hi Dave, >> >> On 08.01.2015, at 15:08, Dave < > lasmiste@ > > wrote: >> >>> Hi there, >>> http://squeakfoundation.org gives 404 and so archives of this list. >> >> We experienced a server outage on one of the servers[1] >> and not all services are already back. Sorry for any >> inconveniences, we're working on it. > > The list archive is up again. > > Best > -Tobias > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- View this message in context: http://forum.world.st/404-on-squeakfoundation-org-tp4798342p4798403.html Sent from the Seaside General mailing list archive at Nabble.com. From sm at planage.com Thu Jan 8 17:06:21 2015 From: sm at planage.com (Sanjay Minni) Date: Thu Jan 8 17:08:16 2015 Subject: [Seaside] Re: Grid like entry with autosave In-Reply-To: <1420692959779-4798280.post@n4.nabble.com> References: <1420692959779-4798280.post@n4.nabble.com> Message-ID: <1420736781408-4798406.post@n4.nabble.com> I have some basic questions while trying to code for a UI below html table: [ self transactions dataLines do: [ :tr | html tableRow: [ html tableData: html tableData: html tableData: [ html textInput value: [:value | tr amount: value]; with: tr amount. ]. html tableData: [ html anchor callback: [ self removeTransaction: tr ]; with: 'delete'. ]. ]. ]. ]. Questions given the display will be as per below : 1. which is the best brush to use for date in this case 2. which brush to use for amount - this is financial amount usually 2 or 3 decimals, right justified and the digits are comma ',' separated and should I use a float in the model (Using Pharo 4) 3. what is the usual method to get empty lines below - else I will have to code for an 'add' button 4. most important - ... so far ... this is not part of a form - what brushes / tags should I use if the parent will be a form (there will be other parts in the screen above, below and aside the part below thanks Sanjay Sanjay Minni wrote > Hi, > > I want to make a grid like entry widget on a collection with auto save > (say like excel / google sheets behaves). pls advice on how to go about > the UI. I looked as the examples - Forms where to add / delete a separate > sub screen comes on - that is not what I am looking for. > > Simply put it has a date, a symbol / text and an amount > i should be able to edit inline, keep adding at end, or delete a link / > button at end of each line > > thanks > Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798406.html Sent from the Seaside General mailing list archive at Nabble.com. From sm at planage.com Thu Jan 8 17:23:42 2015 From: sm at planage.com (Sanjay Minni) Date: Thu Jan 8 17:25:38 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: References: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> Message-ID: <1420737822877-4798413.post@n4.nabble.com> Hi Johan, The issue is that I am simply unable to get Seaside 3.1 debugger to work completely with Pharo 3 & 4 - For Pharo 4 it even shows an error while loading and Halos debugger just does not work. There is a post about not working with Opal compiler I would like to know if there are Pharo 3 / 4 + Seaside 3.1 or later users and why this is not really a concern with them. I have embarked on a small commercial project as a Pilot / PoC which is to lead to a much larger commercial project and practically the only "tool" I am using as a debugger is "self halt". I want to know what I am missing regards Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Re-Pharo-dev-Pharo-2-3-problems-with-seaside3-1-tp4798315p4798413.html Sent from the Seaside General mailing list archive at Nabble.com. From craig at hivemind.net Thu Jan 8 20:59:41 2015 From: craig at hivemind.net (Craig Johnson) Date: Thu Jan 8 20:59:49 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: <1420737822877-4798413.post@n4.nabble.com> References: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> <1420737822877-4798413.post@n4.nabble.com> Message-ID: <00be01d02b86$08cb5620$1a620260$@net> Sanjay, I'm using Seaside 3.1 in Pharo 4 image 40423. When I put an error in my code and execute it, I get the Seaside walkback in the browser with a Debug link. If I click that link, the debugger launches in the Pharo window. Is that not what you see? Craig -----Original Message----- From: seaside-bounces@lists.squeakfoundation.org [mailto:seaside-bounces@lists.squeakfoundation.org] On Behalf Of Sanjay Minni Sent: 08 January 2015 07:24 PM To: seaside@lists.squeakfoundation.org Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 Hi Johan, The issue is that I am simply unable to get Seaside 3.1 debugger to work completely with Pharo 3 & 4 - For Pharo 4 it even shows an error while loading and Halos debugger just does not work. There is a post about not working with Opal compiler I would like to know if there are Pharo 3 / 4 + Seaside 3.1 or later users and why this is not really a concern with them. I have embarked on a small commercial project as a Pilot / PoC which is to lead to a much larger commercial project and practically the only "tool" I am using as a debugger is "self halt". I want to know what I am missing regards Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Re-Pharo-dev-Pharo-2-3-problems-with-seaside3-1-tp4798 315p4798413.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 stephan at stack.nl Thu Jan 8 21:08:28 2015 From: stephan at stack.nl (Stephan Eggermont) Date: Thu Jan 8 21:08:33 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 Message-ID: Sanjay wrote: >The issue is that I am simply unable to get Seaside 3.1 debugger to work completely with Pharo 3 & 4 - For Pharo 4 it even shows an error while loading and Halos debugger just does not work. There is a post >about not working with Opal compiler Yes, basically because we're calling the wrong method on the compiler or don't give it the right parameters. >I would like to know if there are Pharo 3 / 4 + Seaside 3.1 or later users and why this is not really a concern with them. Yes, we use Pharo3/4 + Seaside 3.1/2 all the time. It is no concern for us because: - we always download a new version from ci that works for us, mostly https://ci.inria.fr/pharo-contribution/job/QCMagritte/ I've found it takes me now about 5 minutes to add a new job there building a configuration for a new project (creating the configuration takes a lot more time). - QCMagritte default applications are registered with the WADebugErrorHandler for development. QCApplication class>>registerForDevelopmentAt: anApplicationName | application | WAAdmin enableDevelopmentTools. application := self registerAt: anApplicationName. application filter configuration at: #exceptionHandler put: WADebugErrorHandler. (self overridesDefaults includes: WAAdmin defaultDispatcher defaultName) ifTrue: [ WAAdmin defaultDispatcher defaultName: anApplicationName ]. ^application QCApplication class>>registerAt: anApplicationName ^(WAAdmin register: self asApplicationAt: anApplicationName) preferenceAt: #sessionClass put: self sessionClass; addLibrary: JQDeploymentLibrary; addLibrary: JQUiDeploymentLibrary; yourself - we nearly never use the halos. The css and page structure is mostly so complex, that it is easier to use the browser developer tools. >I have embarked on a small commercial project as a Pilot / PoC which is to lead to a much larger commercial project and practically the only "tool" I am using as a debugger is "self halt". I want to know what I am >missing A lot. Spending half my time in the debugger is not unusual. And that is not about fixing issues, it is about designing code. Stephan From philippe.marschall at gmail.com Fri Jan 9 06:32:45 2015 From: philippe.marschall at gmail.com (Philippe Marschall) Date: Fri Jan 9 06:32:47 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: References: Message-ID: On Thu, Jan 8, 2015 at 1:31 PM, Johan Brichau wrote: > Hi David, > > Thanks for reaching out. You are right that encountering these issues is not > a good user experience and we will try to improve on that. > Let me quickly respond to your remarks already. > > The fact that the one-click download is still Pharo2 is something that went > by unnoticed. I got reminded about that just last week and will try to > update the download asap. > However, installing Seaside in your own Pharo image is a much more preferred > solution because maintaining the one-click download with latest bugfixes > takes time as well, which is precious amongst Seaside maintainers. > > The Seaside control panel is broken in Pharo 2 and, unless someone provides > fixes for it, will not be fixed. The reason is that it does not make much > sense trying to maintain that for older Pharo versions. The differences > between Pharo2 and 3 are large in the area and newcomers should use Pharo 3. > > The source code that cannot be saved is a know issue in Pharo 3 [1]. > But please mind that this is not the way to edit your code. The WABrowser is > just an example. Is that the case even with WANautilusBrowser? I thought that would fix the issues. Cheers Philippe From johan at inceptive.be Fri Jan 9 06:48:35 2015 From: johan at inceptive.be (Johan Brichau) Date: Fri Jan 9 06:48:39 2015 Subject: [Seaside] [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: <1420737822877-4798413.post@n4.nabble.com> References: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> <1420737822877-4798413.post@n4.nabble.com> Message-ID: Hi Sanjay, > The issue is that I am simply unable to get Seaside 3.1 debugger to work > completely with Pharo 3 & 4 - For Pharo 4 it even shows an error while > loading and Halos debugger just does not work. There is a post about not > working with Opal compiler > > I would like to know if there are Pharo 3 / 4 + Seaside 3.1 or later users > and why this is not really a concern with them. I am working with Pharo 3 without issues. What exactly is the issue you have there? If you are working with Pharo 4, then surely there will be issues since it?s an alpha version and we are not (yet) actively building Seaside on it. > I have embarked on a small commercial project as a Pilot / PoC which is to > lead to a much larger commercial project and practically the only "tool" I > am using as a debugger is "self halt". I want to know what I am missing I think the complexity of webapps have long surpassed the halos and in-browser inspectors of Seaside. They are still there but I never ever used them for real. They might have been cool at one point in time, but they are absolutely useless when your webapp grows beyond the hello-world and counter example complexity. So, the Smalltalk debugger (server-side) and built-in browser tools (client-side) are what we are using every day. cheers, Johan From olivier.auverlot at gmail.com Fri Jan 9 09:20:37 2015 From: olivier.auverlot at gmail.com (olivier auverlot) Date: Fri Jan 9 09:20:41 2015 Subject: [Seaside] using captcha with Seaside Message-ID: Hi, I need to use a captcha in my application. Someone have created a captcha component for Seaside ? What is the best solution ? Best regards Olivier ;-) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150109/36c28b19/attachment.htm From sven at stfx.eu Fri Jan 9 09:38:55 2015 From: sven at stfx.eu (Sven Van Caekenberghe) Date: Fri Jan 9 09:39:02 2015 Subject: [Seaside] using captcha with Seaside In-Reply-To: References: Message-ID: <7AF1738E-8137-4848-9409-41D62DA2E8B8@stfx.eu> A very silly one can be found in section 10 of the following article: https://medium.com/concerning-pharo/reddit-st-in-10-cool-pharo-classes-1b5327ca0740 Sven > On 09 Jan 2015, at 10:20, olivier auverlot wrote: > > Hi, > > I need to use a captcha in my application. > > Someone have created a captcha component for Seaside ? What is the best solution ? > > Best regards > Olivier ;-) > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside From sm at planage.com Fri Jan 9 14:30:45 2015 From: sm at planage.com (Sanjay Minni) Date: Fri Jan 9 14:32:47 2015 Subject: [Seaside] Re: Grid like entry with autosave In-Reply-To: <1420736781408-4798406.post@n4.nabble.com> References: <1420692959779-4798280.post@n4.nabble.com> <1420736781408-4798406.post@n4.nabble.com> Message-ID: <1420813845444-4798577.post@n4.nabble.com> Hi ... please help me here ... Sanjay Minni wrote > I have some basic questions while trying to code for a UI below > > html table: [ > self transactions dataLines do: [ :tr | > html tableRow: [ > html tableData: > > html tableData: > > html tableData: [ > html textInput value: [:value | tr amount: value]; with: tr amount. > ]. > html tableData: [ > html anchor callback: [ self removeTransaction: tr ]; with: 'delete'. > ]. > ]. > ]. > ]. > > Questions given the display will be as per below : > 1. which is the best brush to use for date in this case > 2. which brush to use for amount - this is financial amount usually 2 or 3 > decimals, right justified and the digits are comma ',' separated and > should I use a float in the model (Using Pharo 4) > 3. what is the usual method to get empty lines below - else I will have to > code for an 'add' button > 4. most important - ... so far ... this is not part of a form - what > brushes / tags should I use if the parent will be a form (there will be > other parts in the screen above, below and aside the part below > > thanks > Sanjay > > Sanjay Minni wrote >> Hi, >> >> I want to make a grid like entry widget on a collection with auto save >> (say like excel / google sheets behaves). pls advice on how to go about >> the UI. I looked as the examples - Forms where to add / delete a separate >> sub screen comes on - that is not what I am looking for. >> >> Simply put it has a date, a symbol / text and an amount >> i should be able to edit inline, keep adding at end, or delete a link / >> button at end of each line >> >> thanks >> Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798577.html Sent from the Seaside General mailing list archive at Nabble.com. From stephan at stack.nl Fri Jan 9 14:50:09 2015 From: stephan at stack.nl (Stephan Eggermont) Date: Fri Jan 9 14:50:13 2015 Subject: [Seaside] Re: Grid like entry with autosave Message-ID: <7C26A162-0874-4E47-87F5-DE0160B75DF8@stack.nl> You'll need some javascript for that, handling arrow down, right, tab, enter to do the right thing at the end of the table (insert a row, put the focus at the right field). Stephan From johan at inceptive.be Fri Jan 9 15:06:28 2015 From: johan at inceptive.be (Johan Brichau) Date: Fri Jan 9 15:06:33 2015 Subject: [Seaside] Grid like entry with autosave In-Reply-To: <1420736781408-4798406.post@n4.nabble.com> References: <1420692959779-4798280.post@n4.nabble.com> <1420736781408-4798406.post@n4.nabble.com> Message-ID: <5F113894-813A-4520-8D89-80111DFFBEB6@inceptive.be> Hi Sanjay, Mind that a Seaside brush only determines the html element that gets rendered. If you want to render a date, there is no html element that is ?best? to use (and hence no brush that is best to use). Most of the time, a date will be rendered as text, but possibly you want to render some more markup to allow styling via css (i.e. adding css classes). If you want to render the date in an input field, mind that html5 does define a ?date? type, but the state of the implementation in current browsers is limited [1]. A word of advice: if you manipulate financial data, do not use Floats but Fractions (or ScaledDecimal). Even if the customer says it should not be that precise, do not use Floats. If you want to get going, try to render all textInputs in the table. Next, use jQuery and add the serialization of the text input field on change: html textInput onChange: (html jQuery this serializeThis); callback: [:val | ? ]; with: value Set anchors for adding lines, removing lines, etc.. This will give you a functional page. Now, once the table becomes large or you want snappier client-side behaviour, you will need to step into more javascript and ajax for adding lines, removing lines. Eventually, you will need to use event delegation rather than add a change script to every text input (because the page will become too large). Just go in steps. Iterate and learn new things. Hope this helps Johan [1] http://caniuse.com/#search=date > On 08 Jan 2015, at 18:06, Sanjay Minni wrote: > > I have some basic questions while trying to code for a UI below > > html table: [ > self transactions dataLines do: [ :tr | > html tableRow: [ > html tableData: > html tableData: > html tableData: [ > html textInput value: [:value | tr amount: value]; with: tr amount. ]. > html tableData: [ > html anchor callback: [ self removeTransaction: tr ]; with: 'delete'. > ]. > ]. > ]. > ]. > > Questions given the display will be as per below : > 1. which is the best brush to use for date in this case > 2. which brush to use for amount - this is financial amount usually 2 or 3 > decimals, right justified and the digits are comma ',' separated and should > I use a float in the model (Using Pharo 4) > 3. what is the usual method to get empty lines below - else I will have to > code for an 'add' button > 4. most important - ... so far ... this is not part of a form - what brushes > / tags should I use if the parent will be a form (there will be other parts > in the screen above, below and aside the part below > > thanks > Sanjay > > > > > > > Sanjay Minni wrote >> Hi, >> >> I want to make a grid like entry widget on a collection with auto save >> (say like excel / google sheets behaves). pls advice on how to go about >> the UI. I looked as the examples - Forms where to add / delete a separate >> sub screen comes on - that is not what I am looking for. >> >> Simply put it has a date, a symbol / text and an amount >> i should be able to edit inline, keep adding at end, or delete a link / >> button at end of each line > >> >> thanks >> Sanjay > > > > > > ----- > --- > Regards, Sanjay > -- > View this message in context: http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798406.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150109/1c324cfb/attachment-0001.htm From pdebruic at gmail.com Fri Jan 9 20:26:08 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Fri Jan 9 20:28:12 2015 Subject: [Seaside] Re: using captcha with Seaside In-Reply-To: References: Message-ID: <1420835168566-4798669.post@n4.nabble.com> See : https://montykamath.wordpress.com/2008/12/11/seaside-smalltalk-captcha/ Olivier Auverlot wrote > Hi, > > I need to use a captcha in my application. > > Someone have created a captcha component for Seaside ? What is the best > solution ? > > Best regards > Olivier ;-) > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- View this message in context: http://forum.world.st/using-captcha-with-Seaside-tp4798515p4798669.html Sent from the Seaside General mailing list archive at Nabble.com. From olivier.auverlot at gmail.com Sat Jan 10 09:19:56 2015 From: olivier.auverlot at gmail.com (olivier auverlot) Date: Sat Jan 10 09:19:58 2015 Subject: [Seaside] Re: using captcha with Seaside In-Reply-To: <1420835168566-4798669.post@n4.nabble.com> References: <1420835168566-4798669.post@n4.nabble.com> Message-ID: thanks for your help. I will try the two proposals Olivier ;-) 2015-01-09 21:26 GMT+01:00 Paul DeBruicker : > See : > https://montykamath.wordpress.com/2008/12/11/seaside-smalltalk-captcha/ > > > Olivier Auverlot wrote > > Hi, > > > > I need to use a captcha in my application. > > > > Someone have created a captcha component for Seaside ? What is the best > > solution ? > > > > Best regards > > Olivier ;-) > > > > _______________________________________________ > > seaside mailing list > > > seaside@.squeakfoundation > > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > -- > View this message in context: > http://forum.world.st/using-captcha-with-Seaside-tp4798515p4798669.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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150110/258ad04a/attachment.htm From sm at planage.com Sat Jan 10 10:48:07 2015 From: sm at planage.com (Sanjay Minni) Date: Sat Jan 10 10:50:16 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: References: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> <1420737822877-4798413.post@n4.nabble.com> Message-ID: <1420886887723-4798749.post@n4.nabble.com> Thanks Johan & Stephan I downloaded from https://ci.inria.fr/pharo-contribution/job/QCMagritte/ and as of now I am not concerned about Halos Class Browser & inspector (... thats OK) The image above did not not seem to have Prototype and Scriptalacous so I loaded it thru Monticello from smalltalkhub.com/mc/Seaside/Seaside31/Main - in the sequence below - Q: should it have been there ... and did I miss something or did I do what was expected ? (Javascript-Core, Prototype-Core, Scriptalacous-Core & Components and Javascript-Tests-Core, Scriptalacous-Tests-Core and Scriptalacous-Tests-Components) In myApplication Config I added a Filters->WAExceptionFilter and configured is to WADebugErrorHandler @Stephan I saw the piece of code in your mail below but did not understand what was to be done - pls guide QCMagritte default applications are registered with the WADebugErrorHandler for development. QCApplication class>>registerForDevelopmentAt: anApplicationName ... QCApplication class>>registerAt: anApplicationName ... thanks Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Re-Pharo-dev-Pharo-2-3-problems-with-seaside3-1-tp4798315p4798749.html Sent from the Seaside General mailing list archive at Nabble.com. From sm at planage.com Sat Jan 10 11:49:39 2015 From: sm at planage.com (Sanjay Minni) Date: Sat Jan 10 11:51:48 2015 Subject: [Seaside] Re: Grid like entry with autosave In-Reply-To: <5F113894-813A-4520-8D89-80111DFFBEB6@inceptive.be> References: <1420692959779-4798280.post@n4.nabble.com> <1420736781408-4798406.post@n4.nabble.com> <5F113894-813A-4520-8D89-80111DFFBEB6@inceptive.be> Message-ID: <1420890579106-4798756.post@n4.nabble.com> Thanks Johan, let me digest this ... My focus was input fields - Date input if possible templated as 'dd/mm/yyyy' (a picker only to popup when the field is in focus) - an amount input field as 999,999,999.00 right justified (in India we also have 99,99,999.00) and in some countries / currencies / inventory quantities etc 3 digits after the decimal is required and should stop at that i.e. no inputs on overflow regards Sanjay Johan Brichau-2 wrote > Hi Sanjay, > > Mind that a Seaside brush only determines the html element that gets > rendered. If you want to render a date, there is no html element that is > ?best? to use (and hence no brush that is best to use). > Most of the time, a date will be rendered as text, but possibly you want > to render some more markup to allow styling via css (i.e. adding css > classes). If you want to render the date in an input field, mind that > html5 does define a ?date? type, but the state of the implementation in > current browsers is limited [1]. > > A word of advice: if you manipulate financial data, do not use Floats but > Fractions (or ScaledDecimal). Even if the customer says it should not be > that precise, do not use Floats. > > If you want to get going, try to render all textInputs in the table. > Next, use jQuery and add the serialization of the text input field on > change: > > html textInput > onChange: (html jQuery this serializeThis); > callback: [:val | ? ]; > with: value > > Set anchors for adding lines, removing lines, etc.. > This will give you a functional page. > > Now, once the table becomes large or you want snappier client-side > behaviour, you will need to step into more javascript and ajax for adding > lines, removing lines. > Eventually, you will need to use event delegation rather than add a change > script to every text input (because the page will become too large). > > Just go in steps. Iterate and learn new things. > > Hope this helps > Johan > > [1] http://caniuse.com/#search=date > > >> On 08 Jan 2015, at 18:06, Sanjay Minni < > sm@ > > wrote: >> >> I have some basic questions while trying to code for a UI below >> >> html table: [ >> self transactions dataLines do: [ :tr | >> html tableRow: [ >> html tableData: > >> html tableData: > >> html tableData: [ >> html textInput value: [:value | tr amount: value]; with: tr amount. >> ]. >> html tableData: [ >> html anchor callback: [ self removeTransaction: tr ]; with: >> 'delete'. >> ]. >> ]. >> ]. >> ]. >> >> Questions given the display will be as per below : >> 1. which is the best brush to use for date in this case >> 2. which brush to use for amount - this is financial amount usually 2 or >> 3 >> decimals, right justified and the digits are comma ',' separated and >> should >> I use a float in the model (Using Pharo 4) >> 3. what is the usual method to get empty lines below - else I will have >> to >> code for an 'add' button >> 4. most important - ... so far ... this is not part of a form - what >> brushes >> / tags should I use if the parent will be a form (there will be other >> parts >> in the screen above, below and aside the part below >> >> thanks >> Sanjay >> >> >> >> >> >> >> Sanjay Minni wrote >>> Hi, >>> >>> I want to make a grid like entry widget on a collection with auto save >>> (say like excel / google sheets behaves). pls advice on how to go about >>> the UI. I looked as the examples - Forms where to add / delete a >>> separate >>> sub screen comes on - that is not what I am looking for. >>> >>> Simply put it has a date, a symbol / text and an amount >>> i should be able to edit inline, keep adding at end, or delete a link / >>> button at end of each line >> <http://forum.world.st/file/n4798280/GridScreenMockup.jpg> >>> >>> thanks >>> Sanjay >> >> >> >> >> >> ----- >> --- >> Regards, Sanjay >> -- >> View this message in context: >> http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798406.html >> <http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798406.html> >> Sent from the Seaside General mailing list archive at Nabble.com >> <http://nabble.com/>. >> _______________________________________________ >> seaside mailing list >> > seaside@.squeakfoundation > <mailto: > seaside@.squeakfoundation > > >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside> > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798756.html Sent from the Seaside General mailing list archive at Nabble.com. From astares at gmx.de Sat Jan 10 20:21:08 2015 From: astares at gmx.de (Torsten Bergmann) Date: Sat Jan 10 20:21:12 2015 Subject: [Seaside] [OT] Things people built with Smalltalk on Twitter: #thingsPeopleBuiltWithSmalltalk Message-ID: If you know something built in Smalltalk then twitter it: https://twitter.com/hashtag/thingsPeopleBuiltWithSmalltalk?src=hash Lets make 2015 the "Anybody knows about Smalltalk" year ;) From sm at planage.com Sun Jan 11 07:46:40 2015 From: sm at planage.com (Sanjay Minni) Date: Sun Jan 11 07:48:54 2015 Subject: [Seaside] Re: Grid like entry with autosave In-Reply-To: <1420890579106-4798756.post@n4.nabble.com> References: <1420692959779-4798280.post@n4.nabble.com> <1420736781408-4798406.post@n4.nabble.com> <5F113894-813A-4520-8D89-80111DFFBEB6@inceptive.be> <1420890579106-4798756.post@n4.nabble.com> Message-ID: <1420962400401-4798844.post@n4.nabble.com> Hi as of now I am putting a quick solution using simple forms I have put an anchor with callback to del each line and an anchor at and to add a line (and a new row is displayed and the anchor goes below that) however the del and and add anchor do not save any changes that have been done Ques: - how can I implicitly save the form in the delete and add links before proceeding to the action regards Sanjay Sanjay Minni wrote > Thanks Johan, > > let me digest this ... My focus was input fields > > - Date input if possible templated as 'dd/mm/yyyy' (a picker only to popup > when the field is in focus) > - an amount input field as 999,999,999.00 right justified > (in India we also have 99,99,999.00) and in some countries / currencies / > inventory quantities etc 3 digits after the decimal is required and should > stop at that i.e. no inputs on overflow > > regards > Sanjay > Johan Brichau-2 wrote >> Hi Sanjay, >> >> Mind that a Seaside brush only determines the html element that gets >> rendered. If you want to render a date, there is no html element that is >> ?best? to use (and hence no brush that is best to use). >> Most of the time, a date will be rendered as text, but possibly you want >> to render some more markup to allow styling via css (i.e. adding css >> classes). If you want to render the date in an input field, mind that >> html5 does define a ?date? type, but the state of the implementation in >> current browsers is limited [1]. >> >> A word of advice: if you manipulate financial data, do not use Floats but >> Fractions (or ScaledDecimal). Even if the customer says it should not be >> that precise, do not use Floats. >> >> If you want to get going, try to render all textInputs in the table. >> Next, use jQuery and add the serialization of the text input field on >> change: >> >> html textInput >> onChange: (html jQuery this serializeThis); >> callback: [:val | ? ]; >> with: value >> >> Set anchors for adding lines, removing lines, etc.. >> This will give you a functional page. >> >> Now, once the table becomes large or you want snappier client-side >> behaviour, you will need to step into more javascript and ajax for adding >> lines, removing lines. >> Eventually, you will need to use event delegation rather than add a >> change script to every text input (because the page will become too >> large). >> >> Just go in steps. Iterate and learn new things. >> >> Hope this helps >> Johan >> >> [1] http://caniuse.com/#search=date >> >> >>> On 08 Jan 2015, at 18:06, Sanjay Minni < >> sm@ >> > wrote: >>> >>> I have some basic questions while trying to code for a UI below >>> >>> html table: [ >>> self transactions dataLines do: [ :tr | >>> html tableRow: [ >>> html tableData: >> >>> html tableData: >> >>> html tableData: [ >>> html textInput value: [:value | tr amount: value]; with: tr amount. >>> ]. >>> html tableData: [ >>> html anchor callback: [ self removeTransaction: tr ]; with: >>> 'delete'. >>> ]. >>> ]. >>> ]. >>> ]. >>> >>> Questions given the display will be as per below : >>> 1. which is the best brush to use for date in this case >>> 2. which brush to use for amount - this is financial amount usually 2 or >>> 3 >>> decimals, right justified and the digits are comma ',' separated and >>> should >>> I use a float in the model (Using Pharo 4) >>> 3. what is the usual method to get empty lines below - else I will have >>> to >>> code for an 'add' button >>> 4. most important - ... so far ... this is not part of a form - what >>> brushes >>> / tags should I use if the parent will be a form (there will be other >>> parts >>> in the screen above, below and aside the part below >>> >>> thanks >>> Sanjay >>> >>> >>> >>> >>> >>> >>> Sanjay Minni wrote >>>> Hi, >>>> >>>> I want to make a grid like entry widget on a collection with auto save >>>> (say like excel / google sheets behaves). pls advice on how to go about >>>> the UI. I looked as the examples - Forms where to add / delete a >>>> separate >>>> sub screen comes on - that is not what I am looking for. >>>> >>>> Simply put it has a date, a symbol / text and an amount >>>> i should be able to edit inline, keep adding at end, or delete a link / >>>> button at end of each line >>> <http://forum.world.st/file/n4798280/GridScreenMockup.jpg> >>>> >>>> thanks >>>> Sanjay >>> >>> >>> >>> >>> >>> ----- >>> --- >>> Regards, Sanjay >>> -- >>> View this message in context: >>> http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798406.html >>> <http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798406.html> >>> Sent from the Seaside General mailing list archive at Nabble.com >>> <http://nabble.com/>. >>> _______________________________________________ >>> seaside mailing list >>> >> seaside@.squeakfoundation >> <mailto: >> seaside@.squeakfoundation >> > >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside> >> >> _______________________________________________ >> seaside mailing list >> seaside@.squeakfoundation >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798844.html Sent from the Seaside General mailing list archive at Nabble.com. From julien.leclercq at gmx.fr Mon Jan 12 16:20:57 2015 From: julien.leclercq at gmx.fr (julien leclercq) Date: Mon Jan 12 16:20:59 2015 Subject: [Seaside] Tr: We want to help, what can we do ? References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150112/5f908d78/attachment-0001.htm From pdebruic at gmail.com Mon Jan 12 18:47:37 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Mon Jan 12 18:50:02 2015 Subject: [Seaside] Re: Tr: We want to help, what can we do ? In-Reply-To: References: Message-ID: <1421088457213-4799115.post@n4.nabble.com> The bug tracker is here: https://code.google.com/p/seaside/issues/list In it there are bugs marked BiteSize to indicate that they are potentially easier to fix than others. Maybe look through the list of those https://code.google.com/p/seaside/issues/list?q=label:BiteSize (or the full list) and see if there are any that look interesting to work on then ask back on the list any questions you may have about the bug(s) you want to attempt to fix. -- View this message in context: http://forum.world.st/Tr-We-want-to-help-what-can-we-do-tp4799054p4799115.html Sent from the Seaside General mailing list archive at Nabble.com. From pdebruic at gmail.com Mon Jan 12 19:37:44 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Mon Jan 12 19:40:09 2015 Subject: [Seaside] Re: Tr: We want to help, what can we do ? In-Reply-To: References: Message-ID: <1421091464931-4799129.post@n4.nabble.com> If that doesn't sound like fun you could write up any aha! moments or frustrating moments you experience while learning Seaside and share them in a blog or on the list. What are things that are interesting to the two of you? julien leclercq wrote > Hi everybody we're two it students and we would like to contribute to > Seaside for a school project. > We're a bit newbies in Smalltalk but we're motivated and learning > fast. > > Would any of you have an idea on what can we do to help the community ? > >   > > Julien and JF > > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- View this message in context: http://forum.world.st/Tr-We-want-to-help-what-can-we-do-tp4799054p4799129.html Sent from the Seaside General mailing list archive at Nabble.com. From lorenzo at edor.it Tue Jan 13 08:21:37 2015 From: lorenzo at edor.it (Lorenzo Schiavina) Date: Tue Jan 13 08:21:40 2015 Subject: R: [Seaside] Tr: We want to help, what can we do ? In-Reply-To: References: Message-ID: <005701d02f09$f3677840$da3668c0$@edor.it> Hi Julien, I am an Operating Reasearch professional and I use ST since 1982. I have developed in VSE (Visual Smalltalk Enterprise), a 95% compatible Smalltalk-Pharo environment, the simplex algorithm for solving linear programming problems (with shadow prices and full stuff for a professional usage of the algorithm). The program is now working at 99% but it must be revisited and create use cases; the most complex part will be the GUI, that is not compatible Pharo-VSE. If you are interested, I will be glad to give you the full stuff for a porting to Pharo. Lorenzo Da: seaside-bounces@lists.squeakfoundation.org [mailto:seaside-bounces@lists.squeakfoundation.org] Per conto di julien leclercq Inviato: luned? 12 gennaio 2015 17:21 A: seaside@lists.squeakfoundation.org Oggetto: [Seaside] Tr: We want to help, what can we do ? Hi everybody we're two it students and we would like to contribute to Seaside for a school project. We're a bit newbies in Smalltalk but we're motivated and learning fast. Would any of you have an idea on what can we do to help the community ? Julien and JF -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150113/8aad6595/attachment.htm From oswallcr at yahoo.com Wed Jan 14 02:05:28 2015 From: oswallcr at yahoo.com (Oswall Verny Arguedas C.) Date: Wed Jan 14 02:08:17 2015 Subject: [Seaside] fullcalendar on seaside 3.1 not work Message-ID: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> Regards, I use Seaside 3.1,?Pharo 3.0, ?on Ubuntu 14.04.I need to use fullcalendar on?JQWidgetBox?but does not work. When I try to access it with url: ? ??http://localhost:9090/jquery-widgets/fullcalendar Error message is: MessageNotUnderstood: ?receiver of "encodeCollection:on:" is nil Thanks for the support Oswall? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150114/2f53d12f/attachment.htm From pdebruic at gmail.com Wed Jan 14 16:17:38 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Wed Jan 14 16:20:16 2015 Subject: [Seaside] Re: fullcalendar on seaside 3.1 not work In-Reply-To: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> References: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> Message-ID: <1421252258548-4799525.post@n4.nabble.com> Hi Oswall, I'll take a look and see if I can fix it. It is a > 2 yr old version of the FullCalendar, so the docs etc might be outdated. IF I get the current version working in Seaside 3.1 on Pharo 3 will you work to update it to the latest JS version? Paul oswall wrote > Regards, > > I use Seaside 3.1,?Pharo 3.0, ?on Ubuntu 14.04.I need to use fullcalendar > on?JQWidgetBox?but does not work. > When I try to access it with url: ? > ??http://localhost:9090/jquery-widgets/fullcalendar > > Error message is: > MessageNotUnderstood: ?receiver of "encodeCollection:on:" is nil > Thanks for the support > Oswall? > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- View this message in context: http://forum.world.st/fullcalendar-on-seaside-3-1-not-work-tp4799420p4799525.html Sent from the Seaside General mailing list archive at Nabble.com. From pdebruic at gmail.com Wed Jan 14 16:18:10 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Wed Jan 14 16:20:49 2015 Subject: [Seaside] Re: fullcalendar on seaside 3.1 not work In-Reply-To: <1421252258548-4799525.post@n4.nabble.com> References: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> <1421252258548-4799525.post@n4.nabble.com> Message-ID: <1421252290896-4799526.post@n4.nabble.com> That should have said 'fix it today'. Paul DeBruicker wrote > Hi Oswall, > > I'll take a look and see if I can fix it. It is a > 2 yr old version of > the FullCalendar, so the docs etc might be outdated. IF I get the current > version working in Seaside 3.1 on Pharo 3 will you work to update it to > the latest JS version? > > > > Paul > oswall wrote >> Regards, >> >> I use Seaside 3.1,?Pharo 3.0, ?on Ubuntu 14.04.I need to use fullcalendar >> on?JQWidgetBox?but does not work. >> When I try to access it with url: ? >> ??http://localhost:9090/jquery-widgets/fullcalendar >> >> Error message is: >> MessageNotUnderstood: ?receiver of "encodeCollection:on:" is nil >> Thanks for the support >> Oswall? >> _______________________________________________ >> seaside mailing list >> seaside@.squeakfoundation >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- View this message in context: http://forum.world.st/fullcalendar-on-seaside-3-1-not-work-tp4799420p4799526.html Sent from the Seaside General mailing list archive at Nabble.com. From emaringolo at gmail.com Wed Jan 14 17:15:01 2015 From: emaringolo at gmail.com (Esteban A. Maringolo) Date: Wed Jan 14 17:15:04 2015 Subject: [Seaside] Re: fullcalendar on seaside 3.1 not work In-Reply-To: <1421252290896-4799526.post@n4.nabble.com> References: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> <1421252258548-4799525.post@n4.nabble.com> <1421252290896-4799526.post@n4.nabble.com> Message-ID: I'm using full calendar as a central part of an application using a basic wrapper. Let me see if I can version it and polish it a little. El ene 14, 2015 1:20 PM, "Paul DeBruicker" escribi?: > That should have said 'fix it today'. > > > > Paul DeBruicker wrote > > Hi Oswall, > > > > I'll take a look and see if I can fix it. It is a > 2 yr old version of > > the FullCalendar, so the docs etc might be outdated. IF I get the > current > > version working in Seaside 3.1 on Pharo 3 will you work to update it to > > the latest JS version? > > > > > > > > Paul > > oswall wrote > >> Regards, > >> > >> I use Seaside 3.1, Pharo 3.0, on Ubuntu 14.04.I need to use > fullcalendar > >> on JQWidgetBox but does not work. > >> When I try to access it with url: > >> http://localhost:9090/jquery-widgets/fullcalendar > >> > >> Error message is: > >> MessageNotUnderstood: receiver of "encodeCollection:on:" is nil > >> Thanks for the support > >> Oswall > >> _______________________________________________ > >> seaside mailing list > > >> seaside@.squeakfoundation > > >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > -- > View this message in context: > http://forum.world.st/fullcalendar-on-seaside-3-1-not-work-tp4799420p4799526.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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150114/42c46466/attachment-0001.htm From pdebruic at gmail.com Wed Jan 14 18:40:55 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Wed Jan 14 18:43:33 2015 Subject: [Seaside] Re: fullcalendar on seaside 3.1 not work In-Reply-To: References: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> <1421252258548-4799525.post@n4.nabble.com> <1421252290896-4799526.post@n4.nabble.com> Message-ID: <1421260855273-4799550.post@n4.nabble.com> That sounds good. Just now I fixed the version in JQWidgetBox to work in Seaside 3.1, but and up to date version may be better for people. Esteban A. Maringolo wrote > I'm using full calendar as a central part of an application using a basic > wrapper. > > Let me see if I can version it and polish it a little. > El ene 14, 2015 1:20 PM, "Paul DeBruicker" < > pdebruic@ > > escribi?: > >> That should have said 'fix it today'. >> >> >> >> Paul DeBruicker wrote >> > Hi Oswall, >> > >> > I'll take a look and see if I can fix it. It is a > 2 yr old version >> of >> > the FullCalendar, so the docs etc might be outdated. IF I get the >> current >> > version working in Seaside 3.1 on Pharo 3 will you work to update it to >> > the latest JS version? >> > >> > >> > >> > Paul >> > oswall wrote >> >> Regards, >> >> >> >> I use Seaside 3.1, Pharo 3.0, on Ubuntu 14.04.I need to use >> fullcalendar >> >> on JQWidgetBox but does not work. >> >> When I try to access it with url: >> >> http://localhost:9090/jquery-widgets/fullcalendar >> >> >> >> Error message is: >> >> MessageNotUnderstood: receiver of "encodeCollection:on:" is nil >> >> Thanks for the support >> >> Oswall >> >> _______________________________________________ >> >> seaside mailing list >> >> >> seaside@.squeakfoundation >> >> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> >> >> >> >> >> -- >> View this message in context: >> http://forum.world.st/fullcalendar-on-seaside-3-1-not-work-tp4799420p4799526.html >> Sent from the Seaside General mailing list archive at Nabble.com. >> _______________________________________________ >> seaside mailing list >> > seaside@.squeakfoundation >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- View this message in context: http://forum.world.st/fullcalendar-on-seaside-3-1-not-work-tp4799420p4799550.html Sent from the Seaside General mailing list archive at Nabble.com. From oswallcr at yahoo.com Wed Jan 14 19:18:19 2015 From: oswallcr at yahoo.com (oswall) Date: Wed Jan 14 19:20:58 2015 Subject: [Seaside] Re: fullcalendar on seaside 3.1 not work In-Reply-To: <1421252258548-4799525.post@n4.nabble.com> References: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> <1421252258548-4799525.post@n4.nabble.com> Message-ID: <1421263099287-4799557.post@n4.nabble.com> Hi Paul, I work in java and groovy. I'm evaluating seaside with smalltalk for a new project. I installed in pharo packages like bootstrap, SVG and works fine. But the calendar is required. With regard to your question, yes work after having experience in seaside smalltalk. -- View this message in context: http://forum.world.st/fullcalendar-on-seaside-3-1-not-work-tp4799420p4799557.html Sent from the Seaside General mailing list archive at Nabble.com. From pdebruic at gmail.com Wed Jan 14 22:51:31 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Wed Jan 14 22:54:10 2015 Subject: [Seaside] Re: fullcalendar on seaside 3.1 not work In-Reply-To: <1421263099287-4799557.post@n4.nabble.com> References: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> <1421252258548-4799525.post@n4.nabble.com> <1421263099287-4799557.post@n4.nabble.com> Message-ID: <1421275891169-4799613.post@n4.nabble.com> Does the fixed version I uploaded meet your needs for now? oswall wrote > Hi Paul, > > I work in java and groovy. I'm evaluating seaside with smalltalk for a > new project. > I installed in pharo packages like bootstrap, SVG and works fine. But the > calendar is required. > With regard to your question, yes work after having experience in seaside > smalltalk. -- View this message in context: http://forum.world.st/fullcalendar-on-seaside-3-1-not-work-tp4799420p4799613.html Sent from the Seaside General mailing list archive at Nabble.com. From emaringolo at gmail.com Wed Jan 14 23:26:44 2015 From: emaringolo at gmail.com (Esteban A. Maringolo) Date: Wed Jan 14 23:27:27 2015 Subject: [Seaside] Re: fullcalendar on seaside 3.1 not work In-Reply-To: <1421275891169-4799613.post@n4.nabble.com> References: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> <1421252258548-4799525.post@n4.nabble.com> <1421263099287-4799557.post@n4.nabble.com> <1421275891169-4799613.post@n4.nabble.com> Message-ID: I won't be able to do anything regarding this until next week. But I can help you with anything you need. I'm using drag and drop features, resizing and everything through Seaside based AJAX callbacks. Esteban A. Maringolo 2015-01-14 19:51 GMT-03:00 Paul DeBruicker : > Does the fixed version I uploaded meet your needs for now? > > > oswall wrote >> Hi Paul, >> >> I work in java and groovy. I'm evaluating seaside with smalltalk for a >> new project. >> I installed in pharo packages like bootstrap, SVG and works fine. But the >> calendar is required. >> With regard to your question, yes work after having experience in seaside >> smalltalk. > > > > > > -- > View this message in context: http://forum.world.st/fullcalendar-on-seaside-3-1-not-work-tp4799420p4799613.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 Josef.Springer at joops.com Thu Jan 15 09:26:29 2015 From: Josef.Springer at joops.com (Josef Springer) Date: Thu Jan 15 09:26:25 2015 Subject: [Seaside] Tr: We want to help, what can we do ? In-Reply-To: References: Message-ID: <54B787C5.7070603@joops.com> An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150115/fb0ee61c/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: Postal.jpg Type: image/jpeg Size: 770 bytes Desc: not available Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150115/fb0ee61c/Postal-0001.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: Phone.jpg Type: image/jpeg Size: 802 bytes Desc: not available Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150115/fb0ee61c/Phone-0001.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: Web.jpg Type: image/jpeg Size: 807 bytes Desc: not available Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150115/fb0ee61c/Web-0001.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: Image120.jpg Type: image/jpeg Size: 7776 bytes Desc: not available Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150115/fb0ee61c/Image120-0001.jpg From sm at planage.com Fri Jan 16 13:38:22 2015 From: sm at planage.com (Sanjay Minni) Date: Fri Jan 16 13:41:14 2015 Subject: [Seaside] need advice on application Message-ID: <1421415502953-4799886.post@n4.nabble.com> Hi I need some advice of a very small application that I am putting up on Pharo 3/4+Seaside 3.1 www.uxfin.com Its kludgy and grossly unfinished as of now This is to calculate the IRR (Internal Rate of Return or Interest) In this application the user may enter receipts and Payouts and the system will backcalculate the Interest Rate that fits Typically used for home loans, mortgages, returns from investment etc with odd date and amount schedules which may be tedious thru excel / spreadsheets, Here is the advice I am looking for. 1. Most important after I add longish schedule (its can be done thru the bottom panel) I get an error -> Bad Request ZnTooManyDictionaryEntries. What does it mean and how to break out of it. 2. How can I trigger a submit in the upper form. - sometime when I move to the lower form changes made in the upper form are not saved. 3. What is the suggested brush for Numerical Inputs / Amount fields - I am using textInput. how do I get formatted numerical input fields to restrict digits, and limit size before and after decimal regards Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/need-advice-on-application-tp4799886.html Sent from the Seaside General mailing list archive at Nabble.com. From sven at stfx.eu Fri Jan 16 13:49:41 2015 From: sven at stfx.eu (Sven Van Caekenberghe) Date: Fri Jan 16 13:49:48 2015 Subject: [Seaside] need advice on application In-Reply-To: <1421415502953-4799886.post@n4.nabble.com> References: <1421415502953-4799886.post@n4.nabble.com> Message-ID: <146A736C-D8A8-463E-975C-EF5BFA7314D3@stfx.eu> > On 16 Jan 2015, at 14:38, Sanjay Minni wrote: > > Here is the advice I am looking for. > 1. Most important after I add longish schedule (its can be done thru the > bottom panel) I get an error -> Bad Request ZnTooManyDictionaryEntries. What > does it mean and how to break out of it. This probably means you have more than 256 inputs in a form. ZnMultiValueDictionary>>#defaultLimit "Return the maximum number dictionary entries to accept. Used by ZnMultiValueDictionary and thus for reading headers, url query and application form url encoded entity fields. This helps to protect us from malicious content." ^ 256 You could overwrite this method to raise the limit. Return nil to make it unlimited. Sven From sm at planage.com Fri Jan 16 13:55:30 2015 From: sm at planage.com (Sanjay Minni) Date: Fri Jan 16 13:58:22 2015 Subject: [Seaside] Re: need advice on application In-Reply-To: <146A736C-D8A8-463E-975C-EF5BFA7314D3@stfx.eu> References: <1421415502953-4799886.post@n4.nabble.com> <146A736C-D8A8-463E-975C-EF5BFA7314D3@stfx.eu> Message-ID: <1421416530789-4799894.post@n4.nabble.com> thanks, any side-effects / recommendations / best practices in making ZnMultiValueDictionary>>#defaultLimit unlimited ? and can you pls help with the setting to remove the development toolbar at the bottom - I am unable to locate it in the manual regards Sanjay Sven Van Caekenberghe-2 wrote >> On 16 Jan 2015, at 14:38, Sanjay Minni < > sm@ > > wrote: >> >> Here is the advice I am looking for. >> 1. Most important after I add longish schedule (its can be done thru the >> bottom panel) I get an error -> Bad Request ZnTooManyDictionaryEntries. >> What >> does it mean and how to break out of it. > > This probably means you have more than 256 inputs in a form. > > ZnMultiValueDictionary>>#defaultLimit > "Return the maximum number dictionary entries to accept. > Used by ZnMultiValueDictionary and thus for reading headers, > url query and application form url encoded entity fields. > This helps to protect us from malicious content." > > ^ 256 > > You could overwrite this method to raise the limit. Return nil to make it > unlimited. > > Sven > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/need-advice-on-application-tp4799886p4799894.html Sent from the Seaside General mailing list archive at Nabble.com. From sven at stfx.eu Fri Jan 16 14:02:54 2015 From: sven at stfx.eu (Sven Van Caekenberghe) Date: Fri Jan 16 14:02:59 2015 Subject: [Seaside] Re: need advice on application In-Reply-To: <1421416530789-4799894.post@n4.nabble.com> References: <1421415502953-4799886.post@n4.nabble.com> <146A736C-D8A8-463E-975C-EF5BFA7314D3@stfx.eu> <1421416530789-4799894.post@n4.nabble.com> Message-ID: <327EFB0E-1576-4929-B420-9AA4F80F466A@stfx.eu> > On 16 Jan 2015, at 14:55, Sanjay Minni wrote: > > thanks, > > any side-effects / recommendations / best practices in making > ZnMultiValueDictionary>>#defaultLimit > unlimited ? It is/was an attack vector to crash a web server. I would just make it large enough for your purposes. > and can you pls help with the setting to remove the development toolbar at > the bottom - I am unable to locate it in the manual WAAdmin class>>#disableDevelopmentTools ? > regards > Sanjay > > > > Sven Van Caekenberghe-2 wrote >>> On 16 Jan 2015, at 14:38, Sanjay Minni < > >> sm@ > >> > wrote: >>> >>> Here is the advice I am looking for. >>> 1. Most important after I add longish schedule (its can be done thru the >>> bottom panel) I get an error -> Bad Request ZnTooManyDictionaryEntries. >>> What >>> does it mean and how to break out of it. >> >> This probably means you have more than 256 inputs in a form. >> >> ZnMultiValueDictionary>>#defaultLimit >> "Return the maximum number dictionary entries to accept. >> Used by ZnMultiValueDictionary and thus for reading headers, >> url query and application form url encoded entity fields. >> This helps to protect us from malicious content." >> >> ^ 256 >> >> You could overwrite this method to raise the limit. Return nil to make it >> unlimited. >> >> Sven >> >> _______________________________________________ >> seaside mailing list > >> seaside@.squeakfoundation > >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > ----- > --- > Regards, Sanjay > -- > View this message in context: http://forum.world.st/need-advice-on-application-tp4799886p4799894.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 sm at planage.com Fri Jan 16 14:10:15 2015 From: sm at planage.com (Sanjay Minni) Date: Fri Jan 16 14:13:06 2015 Subject: [Seaside] Re: need advice on application In-Reply-To: <327EFB0E-1576-4929-B420-9AA4F80F466A@stfx.eu> References: <1421415502953-4799886.post@n4.nabble.com> <146A736C-D8A8-463E-975C-EF5BFA7314D3@stfx.eu> <1421416530789-4799894.post@n4.nabble.com> <327EFB0E-1576-4929-B420-9AA4F80F466A@stfx.eu> Message-ID: <1421417415064-4799899.post@n4.nabble.com> Does not happen executed WAAdmin disableDevelopmentTools. also WAAdmin applicationDefaults removeParent: WADevelopmentConfiguration instance. but the seaside development toolbar is still there ... this should be simple right ? regards Sanjay > and can you pls help with the setting to remove the development toolbar at > the bottom - I am unable to locate it in the manual WAAdmin class>>#disableDevelopmentTools ? ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/need-advice-on-application-tp4799886p4799899.html Sent from the Seaside General mailing list archive at Nabble.com. From sven at stfx.eu Fri Jan 16 14:14:53 2015 From: sven at stfx.eu (Sven Van Caekenberghe) Date: Fri Jan 16 14:14:59 2015 Subject: [Seaside] Re: need advice on application In-Reply-To: <1421417415064-4799899.post@n4.nabble.com> References: <1421415502953-4799886.post@n4.nabble.com> <146A736C-D8A8-463E-975C-EF5BFA7314D3@stfx.eu> <1421416530789-4799894.post@n4.nabble.com> <327EFB0E-1576-4929-B420-9AA4F80F466A@stfx.eu> <1421417415064-4799899.post@n4.nabble.com> Message-ID: <160BD301-7AE2-4313-B986-6EC5FD5D7C0A@stfx.eu> Did you start a new session ? > On 16 Jan 2015, at 15:10, Sanjay Minni wrote: > > Does not happen > > executed > WAAdmin disableDevelopmentTools. > also > WAAdmin applicationDefaults removeParent: WADevelopmentConfiguration > instance. > but the seaside development toolbar is still there ... this should be simple > right ? > > regards > Sanjay > >> and can you pls help with the setting to remove the development toolbar at >> the bottom - I am unable to locate it in the manual > > WAAdmin class>>#disableDevelopmentTools ? > > > > > ----- > --- > Regards, Sanjay > -- > View this message in context: http://forum.world.st/need-advice-on-application-tp4799886p4799899.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 sm at planage.com Fri Jan 16 14:15:51 2015 From: sm at planage.com (Sanjay Minni) Date: Fri Jan 16 14:18:42 2015 Subject: [Seaside] Re: need advice on application In-Reply-To: <160BD301-7AE2-4313-B986-6EC5FD5D7C0A@stfx.eu> References: <1421415502953-4799886.post@n4.nabble.com> <146A736C-D8A8-463E-975C-EF5BFA7314D3@stfx.eu> <1421416530789-4799894.post@n4.nabble.com> <327EFB0E-1576-4929-B420-9AA4F80F466A@stfx.eu> <1421417415064-4799899.post@n4.nabble.com> <160BD301-7AE2-4313-B986-6EC5FD5D7C0A@stfx.eu> Message-ID: <1421417751285-4799902.post@n4.nabble.com> yes Sven Van Caekenberghe-2 wrote > Did you start a new session ? > >> On 16 Jan 2015, at 15:10, Sanjay Minni < > sm@ > > wrote: >> >> Does not happen >> >> executed >> WAAdmin disableDevelopmentTools. >> also >> WAAdmin applicationDefaults removeParent: WADevelopmentConfiguration >> instance. >> but the seaside development toolbar is still there ... this should be >> simple >> right ? >> >> regards >> Sanjay >> >>> and can you pls help with the setting to remove the development toolbar >>> at >>> the bottom - I am unable to locate it in the manual >> >> WAAdmin class>>#disableDevelopmentTools ? >> >> >> >> >> ----- >> --- >> Regards, Sanjay >> -- >> View this message in context: >> http://forum.world.st/need-advice-on-application-tp4799886p4799899.html >> Sent from the Seaside General mailing list archive at Nabble.com. >> _______________________________________________ >> seaside mailing list >> > seaside@.squeakfoundation >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/need-advice-on-application-tp4799886p4799902.html Sent from the Seaside General mailing list archive at Nabble.com. From sven at stfx.eu Fri Jan 16 14:27:12 2015 From: sven at stfx.eu (Sven Van Caekenberghe) Date: Fri Jan 16 14:27:17 2015 Subject: [Seaside] Re: need advice on application In-Reply-To: <1421417751285-4799902.post@n4.nabble.com> References: <1421415502953-4799886.post@n4.nabble.com> <146A736C-D8A8-463E-975C-EF5BFA7314D3@stfx.eu> <1421416530789-4799894.post@n4.nabble.com> <327EFB0E-1576-4929-B420-9AA4F80F466A@stfx.eu> <1421417415064-4799899.post@n4.nabble.com> <160BD301-7AE2-4313-B986-6EC5FD5D7C0A@stfx.eu> <1421417751285-4799902.post@n4.nabble.com> Message-ID: <72B09F48-3613-4ACE-A256-B803423B9CC5@stfx.eu> Try to restart completely, using #clearAll and #disableDevelopmentTools and then re-registering your app(s) [ and maybe the config app too ]. One of my deploy scripts goes like this WAAdmin clearAll. WAEnvironment configureApplicationDefaults; configureApplicationExceptionHandlingDefaults; registerDefaultRequestHandlers. WAAdmin applicationDefaults removeParent: WADevelopmentConfiguration instance. WAAdmin register: WANothing asApplicationAt: 'nothing'. WAAdmin defaultDispatcher defaultName: 'nothing' (WAAdmin register: WAPi asApplicationAt: 'pi' user: user password: password) addLibrary: WAToolFiles; addLibrary: WANavigationFiles / -> empty page /pi -> an admin page I often get in trouble in dev images too, but I always seem to find a way out ;-) > On 16 Jan 2015, at 15:15, Sanjay Minni wrote: > > yes > > > Sven Van Caekenberghe-2 wrote >> Did you start a new session ? >> >>> On 16 Jan 2015, at 15:10, Sanjay Minni < > >> sm@ > >> > wrote: >>> >>> Does not happen >>> >>> executed >>> WAAdmin disableDevelopmentTools. >>> also >>> WAAdmin applicationDefaults removeParent: WADevelopmentConfiguration >>> instance. >>> but the seaside development toolbar is still there ... this should be >>> simple >>> right ? >>> >>> regards >>> Sanjay >>> >>>> and can you pls help with the setting to remove the development toolbar >>>> at >>>> the bottom - I am unable to locate it in the manual >>> >>> WAAdmin class>>#disableDevelopmentTools ? >>> >>> >>> >>> >>> ----- >>> --- >>> Regards, Sanjay >>> -- >>> View this message in context: >>> http://forum.world.st/need-advice-on-application-tp4799886p4799899.html >>> Sent from the Seaside General mailing list archive at Nabble.com. >>> _______________________________________________ >>> seaside mailing list >>> > >> seaside@.squeakfoundation > >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> >> _______________________________________________ >> seaside mailing list > >> seaside@.squeakfoundation > >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > ----- > --- > Regards, Sanjay > -- > View this message in context: http://forum.world.st/need-advice-on-application-tp4799886p4799902.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 sergio.rrd at gmail.com Fri Jan 16 15:23:22 2015 From: sergio.rrd at gmail.com (sergio_101) Date: Fri Jan 16 15:23:26 2015 Subject: [Seaside] passing json between seaside and javascript Message-ID: i accidentally sent this to the pharo group, rather than this group.. so i hope they forgive me over there. anyway: i am currently working on an app that uses a javascript library to render the state of an object inside seaside. i am trying to figure out the best way to transfer the state of object to javascript. the state of the machine changes via form inputs and ajax. i already have the code to convert the state of my object to json, so i am thinking i can do this one of two ways.. via ajax, inject the json code into a variable in a function that is fired off by ajax. i just am not sure how to inject this json string into the page where it would look like the contents of a variable. any ideas? or, i could make a component that just spits out the current state as a json string. this way, when the value of a form element changes, that value is sent over ajax to seaside, and seaside can answer back with the new state as a json string. i am just not sure how to implement this, either. any ideas? let me know if there is a better approach to this, also. thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150116/f7647178/attachment-0001.htm From marianopeck at gmail.com Fri Jan 16 15:54:09 2015 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Fri Jan 16 15:54:11 2015 Subject: [Seaside] JQSortable with LI that I do not render myself Message-ID: Hi guys, I have a html select list that then I convert to a UL / LI kind of list using Bootstrap select: https://github.com/silviomoreto/bootstrap-select I want to make it sortable (which I could) but I cannot correctly hook onto the stop of the drop so that I can update my model/backend side. I am trying to do something like: html script: ((html jQuery id: '#myULList') sortable onStop: (html jQuery ajax callback: [ :values | values asOrderedCollection inspect ] passengers: (html jQuery this find: 'li'))) Basically...I need to get 'values' with my real objects. The problem is that since I am not rendering the LI items myself (but bootstrap select does), I cannot specify the passenger..I mean...I cannot do something like "html listItem passenger: each" or whatever... Any ideas how can I make it work? Thanks in advance, -- Mariano http://marianopeck.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150116/12ff5a6a/attachment.htm From pdebruic at gmail.com Fri Jan 16 19:28:47 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Fri Jan 16 19:31:40 2015 Subject: [Seaside] Re: passing json between seaside and javascript In-Reply-To: References: Message-ID: <1421436527535-4800031.post@n4.nabble.com> JQAjax used to have callback:json: but it got lost in the Seaside 3.1 reshuffle. I think it does what you want. JQAjax>>callback: aBlock json: anObject "Register aBlock as a secondary callback. anObject is a reference to a Javascript object on the client-side. anObject will be serialized to a JSON string, sent back to the server, deserialized from JSON to nested Smalltalk objects, and result passed into aBlock. Note: The serialization of Javascript objects to JSON requires a modern web browser with native JSON support or the JSJsonDeploymentLibrary to be loaded. Objects that recursively refer to themselves and objects that contain or objects that contain methods might not be serializable and cause the web browser to loop inifinitely or throw an exception." self callback: [ :value | aBlock value: (JSJsonParser parse: value) ] value: (JSJson new stringify: anObject) sergio_101 wrote > i accidentally sent this to the pharo group, rather than this group.. so i > hope they forgive me over there. anyway: > > i am currently working on an app that uses a javascript library to render > the state of an object inside seaside. i am trying to figure out the best > way to transfer the state of object to javascript. > > the state of the machine changes via form inputs and ajax. > > i already have the code to convert the state of my object to json, so i am > thinking i can do this one of two ways.. > > via ajax, inject the json code into a variable in a function that is fired > off by ajax. i just am not sure how to inject this json string into the > page where it would look like the contents of a variable. any ideas? > > or, i could make a component that just spits out the current state as a > json string. this way, when the value of a form element changes, that > value > is sent over ajax to seaside, and seaside can answer back with the new > state as a json string. i am just not sure how to implement this, either. > any ideas? > > let me know if there is a better approach to this, also. > > thanks! > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- View this message in context: http://forum.world.st/passing-json-between-seaside-and-javascript-tp4799930p4800031.html Sent from the Seaside General mailing list archive at Nabble.com. From sergio.rrd at gmail.com Fri Jan 16 19:35:14 2015 From: sergio.rrd at gmail.com (sergio_101) Date: Fri Jan 16 19:35:17 2015 Subject: [Seaside] Re: passing json between seaside and javascript References: <1421436527535-4800031.post@n4.nabble.com> Message-ID: dang! is there any way to get that back into the framework? On Fri Jan 16 2015 at 2:31:41 PM Paul DeBruicker wrote: > JQAjax used to have callback:json: but it got lost in the Seaside 3.1 > reshuffle. I think it does what you want. > > > JQAjax>>callback: aBlock json: anObject > "Register aBlock as a secondary callback. anObject is a reference > to a > Javascript object on the client-side. anObject will be serialized to a JSON > string, sent back to the server, deserialized from JSON to nested Smalltalk > objects, and result passed into aBlock. > > Note: The serialization of Javascript objects to JSON requires a > modern web > browser with native JSON support or the JSJsonDeploymentLibrary to be > loaded. Objects that recursively refer to themselves and objects that > contain or objects that contain methods might not be serializable and cause > the web browser to loop inifinitely or throw an exception." > > self > callback: [ :value | aBlock value: (JSJsonParser parse: > value) ] > value: (JSJson new stringify: anObject) > > > > > > sergio_101 wrote > > i accidentally sent this to the pharo group, rather than this group.. so > i > > hope they forgive me over there. anyway: > > > > i am currently working on an app that uses a javascript library to render > > the state of an object inside seaside. i am trying to figure out the best > > way to transfer the state of object to javascript. > > > > the state of the machine changes via form inputs and ajax. > > > > i already have the code to convert the state of my object to json, so i > am > > thinking i can do this one of two ways.. > > > > via ajax, inject the json code into a variable in a function that is > fired > > off by ajax. i just am not sure how to inject this json string into the > > page where it would look like the contents of a variable. any ideas? > > > > or, i could make a component that just spits out the current state as a > > json string. this way, when the value of a form element changes, that > > value > > is sent over ajax to seaside, and seaside can answer back with the new > > state as a json string. i am just not sure how to implement this, either. > > any ideas? > > > > let me know if there is a better approach to this, also. > > > > thanks! > > > > _______________________________________________ > > seaside mailing list > > > seaside@.squeakfoundation > > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > -- > View this message in context: http://forum.world.st/passing- > json-between-seaside-and-javascript-tp4799930p4800031.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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150116/13fb83b6/attachment.htm From pdebruic at gmail.com Fri Jan 16 20:50:50 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Fri Jan 16 20:53:43 2015 Subject: [Seaside] Re: passing json between seaside and javascript In-Reply-To: References: <1421436527535-4800031.post@n4.nabble.com> Message-ID: <1421441450204-4800074.post@n4.nabble.com> Umm you could paste it in your image for now. The code I sent should work fine. It was just an oversight likely from how the packages were reorganized. sergio_101 wrote > dang! is there any way to get that back into the framework? > > On Fri Jan 16 2015 at 2:31:41 PM Paul DeBruicker < > pdebruic@ > > wrote: > >> JQAjax used to have callback:json: but it got lost in the Seaside 3.1 >> reshuffle. I think it does what you want. >> >> >> JQAjax>>callback: aBlock json: anObject >> "Register aBlock as a secondary callback. anObject is a reference >> to a >> Javascript object on the client-side. anObject will be serialized to a >> JSON >> string, sent back to the server, deserialized from JSON to nested >> Smalltalk >> objects, and result passed into aBlock. >> >> Note: The serialization of Javascript objects to JSON requires a >> modern web >> browser with native JSON support or the JSJsonDeploymentLibrary to be >> loaded. Objects that recursively refer to themselves and objects that >> contain or objects that contain methods might not be serializable and >> cause >> the web browser to loop inifinitely or throw an exception." >> >> self >> callback: [ :value | aBlock value: (JSJsonParser parse: >> value) ] >> value: (JSJson new stringify: anObject) >> >> >> >> >> >> sergio_101 wrote >> > i accidentally sent this to the pharo group, rather than this group.. >> so >> i >> > hope they forgive me over there. anyway: >> > >> > i am currently working on an app that uses a javascript library to >> render >> > the state of an object inside seaside. i am trying to figure out the >> best >> > way to transfer the state of object to javascript. >> > >> > the state of the machine changes via form inputs and ajax. >> > >> > i already have the code to convert the state of my object to json, so i >> am >> > thinking i can do this one of two ways.. >> > >> > via ajax, inject the json code into a variable in a function that is >> fired >> > off by ajax. i just am not sure how to inject this json string into the >> > page where it would look like the contents of a variable. any ideas? >> > >> > or, i could make a component that just spits out the current state as a >> > json string. this way, when the value of a form element changes, that >> > value >> > is sent over ajax to seaside, and seaside can answer back with the new >> > state as a json string. i am just not sure how to implement this, >> either. >> > any ideas? >> > >> > let me know if there is a better approach to this, also. >> > >> > thanks! >> > >> > _______________________________________________ >> > seaside mailing list >> >> > seaside@.squeakfoundation >> >> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> >> >> >> >> >> -- >> View this message in context: http://forum.world.st/passing- >> json-between-seaside-and-javascript-tp4799930p4800031.html >> Sent from the Seaside General mailing list archive at Nabble.com. >> _______________________________________________ >> seaside mailing list >> > seaside@.squeakfoundation >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- View this message in context: http://forum.world.st/passing-json-between-seaside-and-javascript-tp4799930p4800074.html Sent from the Seaside General mailing list archive at Nabble.com. From johan at inceptive.be Sat Jan 17 08:26:08 2015 From: johan at inceptive.be (Johan Brichau) Date: Sat Jan 17 08:26:08 2015 Subject: [Seaside] Re: passing json between seaside and javascript In-Reply-To: <1421441450204-4800074.post@n4.nabble.com> References: <1421436527535-4800031.post@n4.nabble.com> <1421441450204-4800074.post@n4.nabble.com> Message-ID: The JQAjax>>callback:json: method is in the Seaside3.1 codebase... it?s in the JQuery-JSON package. Check what packages you have loaded? the basic load for Seaside 3.1 does not load jQuery nor json? Something we will probably change in the near future, but for now this is the case. Johan > On 16 Jan 2015, at 21:50, Paul DeBruicker wrote: > > Umm you could paste it in your image for now. The code I sent should work > fine. > > It was just an oversight likely from how the packages were reorganized. > > > > > > sergio_101 wrote >> dang! is there any way to get that back into the framework? >> >> On Fri Jan 16 2015 at 2:31:41 PM Paul DeBruicker < > >> pdebruic@ > >> > wrote: >> >>> JQAjax used to have callback:json: but it got lost in the Seaside 3.1 >>> reshuffle. I think it does what you want. >>> >>> >>> JQAjax>>callback: aBlock json: anObject >>> "Register aBlock as a secondary callback. anObject is a reference >>> to a >>> Javascript object on the client-side. anObject will be serialized to a >>> JSON >>> string, sent back to the server, deserialized from JSON to nested >>> Smalltalk >>> objects, and result passed into aBlock. >>> >>> Note: The serialization of Javascript objects to JSON requires a >>> modern web >>> browser with native JSON support or the JSJsonDeploymentLibrary to be >>> loaded. Objects that recursively refer to themselves and objects that >>> contain or objects that contain methods might not be serializable and >>> cause >>> the web browser to loop inifinitely or throw an exception." >>> >>> self >>> callback: [ :value | aBlock value: (JSJsonParser parse: >>> value) ] >>> value: (JSJson new stringify: anObject) >>> >>> >>> >>> >>> >>> sergio_101 wrote >>>> i accidentally sent this to the pharo group, rather than this group.. >>> so >>> i >>>> hope they forgive me over there. anyway: >>>> >>>> i am currently working on an app that uses a javascript library to >>> render >>>> the state of an object inside seaside. i am trying to figure out the >>> best >>>> way to transfer the state of object to javascript. >>>> >>>> the state of the machine changes via form inputs and ajax. >>>> >>>> i already have the code to convert the state of my object to json, so i >>> am >>>> thinking i can do this one of two ways.. >>>> >>>> via ajax, inject the json code into a variable in a function that is >>> fired >>>> off by ajax. i just am not sure how to inject this json string into the >>>> page where it would look like the contents of a variable. any ideas? >>>> >>>> or, i could make a component that just spits out the current state as a >>>> json string. this way, when the value of a form element changes, that >>>> value >>>> is sent over ajax to seaside, and seaside can answer back with the new >>>> state as a json string. i am just not sure how to implement this, >>> either. >>>> any ideas? >>>> >>>> let me know if there is a better approach to this, also. >>>> >>>> thanks! >>>> >>>> _______________________________________________ >>>> seaside mailing list >>> >>>> seaside@.squeakfoundation >>> >>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> >>> >>> >>> >>> >>> -- >>> View this message in context: http://forum.world.st/passing- >>> json-between-seaside-and-javascript-tp4799930p4800031.html >>> Sent from the Seaside General mailing list archive at Nabble.com. >>> _______________________________________________ >>> seaside mailing list >>> > >> seaside@.squeakfoundation > >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>> >> >> _______________________________________________ >> seaside mailing list > >> seaside@.squeakfoundation > >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > -- > View this message in context: http://forum.world.st/passing-json-between-seaside-and-javascript-tp4799930p4800074.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 johan at inceptive.be Sat Jan 17 09:26:48 2015 From: johan at inceptive.be (Johan Brichau) Date: Sat Jan 17 09:26:49 2015 Subject: [Seaside] JQSortable with LI that I do not render myself In-Reply-To: References: Message-ID: <70750DD5-A688-40B4-B5AE-900A5C247B60@inceptive.be> Hi Mariano, My first question is why are you using the bootstrap select to render a list of items? If it?s not a select that you want but a sortable list, why not generate it immediately? The bootstrap plugin is generating the html based on the html you generated in Seaside. In this client-side conversion step, the ids and scripts generated from Seaside are not (or cannot be) copied. You need options in the plugin to pass callbacks. I took a quick look but I don?t see any. If there are such options (there exist other such plugins), it still is a lot of fiddling on the client-side to hook up the right js callbacks to server-side callbacks, especially if you have more than one select to handle. But there?s probably a good reason you are trying to do this. If that?s the case, I would try to use event delegation and put event handlers on the parent element of the select. The plugin is probably generating the li right next to existing select but with the same parent. If that is the case, you can put jQuery event handlers on that parent element (which you generate from Seaside. Something like: html div script: (html jQuery this) on: ?click? do: (html jQuery ajax callback:[ ? ]) with: [ self renderSelectOn: html ] It probably will require some more complex handling with respect to getting the correct events sorted out? I did not try these things, so I hope this helps cheers, Johan > On 16 Jan 2015, at 16:54, Mariano Martinez Peck wrote: > > Hi guys, > > I have a html select list that then I convert to a UL / LI kind of list using Bootstrap select: https://github.com/silviomoreto/bootstrap-select > > I want to make it sortable (which I could) but I cannot correctly hook onto the stop of the drop so that I can update my model/backend side. > > I am trying to do something like: > > html script: ((html jQuery id: '#myULList') > sortable > onStop: (html jQuery ajax > callback: [ :values | values asOrderedCollection inspect ] > passengers: (html jQuery this find: 'li'))) > > Basically...I need to get 'values' with my real objects. The problem is that since I am not rendering the LI items myself (but bootstrap select does), I cannot specify the passenger..I mean...I cannot do something like "html listItem passenger: each" or whatever... > > Any ideas how can I make it work? > > Thanks in advance, > > -- > Mariano > http://marianopeck.wordpress.com > _______________________________________________ > 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/20150117/661ee8e7/attachment.htm From johan at inceptive.be Sat Jan 17 09:39:05 2015 From: johan at inceptive.be (Johan Brichau) Date: Sat Jan 17 09:39:06 2015 Subject: [Seaside] Grid like entry with autosave In-Reply-To: <1420962400401-4798844.post@n4.nabble.com> References: <1420692959779-4798280.post@n4.nabble.com> <1420736781408-4798406.post@n4.nabble.com> <5F113894-813A-4520-8D89-80111DFFBEB6@inceptive.be> <1420890579106-4798756.post@n4.nabble.com> <1420962400401-4798844.post@n4.nabble.com> Message-ID: Sanjay, I don?t fully understand what you mean with ?save any changes? or ?save the form?. Perhaps it?s best if you also post your code of the anchors and their callbacks. Johan > On 11 Jan 2015, at 08:46, Sanjay Minni wrote: > > Hi > > as of now I am putting a quick solution using simple forms > I have put an anchor with callback to del each line and an anchor at and to > add a line (and a new row is displayed and the anchor goes below that) > > however the del and and add anchor do not save any changes that have been > done > > Ques: - how can I implicitly save the form in the delete and add links > before proceeding to the action > > regards > Sanjay > > > Sanjay Minni wrote >> Thanks Johan, >> >> let me digest this ... My focus was input fields >> >> - Date input if possible templated as 'dd/mm/yyyy' (a picker only to popup >> when the field is in focus) >> - an amount input field as 999,999,999.00 right justified >> (in India we also have 99,99,999.00) and in some countries / currencies / >> inventory quantities etc 3 digits after the decimal is required and should >> stop at that i.e. no inputs on overflow >> >> regards >> Sanjay >> Johan Brichau-2 wrote >>> Hi Sanjay, >>> >>> Mind that a Seaside brush only determines the html element that gets >>> rendered. If you want to render a date, there is no html element that is >>> ?best? to use (and hence no brush that is best to use). >>> Most of the time, a date will be rendered as text, but possibly you want >>> to render some more markup to allow styling via css (i.e. adding css >>> classes). If you want to render the date in an input field, mind that >>> html5 does define a ?date? type, but the state of the implementation in >>> current browsers is limited [1]. >>> >>> A word of advice: if you manipulate financial data, do not use Floats but >>> Fractions (or ScaledDecimal). Even if the customer says it should not be >>> that precise, do not use Floats. >>> >>> If you want to get going, try to render all textInputs in the table. >>> Next, use jQuery and add the serialization of the text input field on >>> change: >>> >>> html textInput >>> onChange: (html jQuery this serializeThis); >>> callback: [:val | ? ]; >>> with: value >>> >>> Set anchors for adding lines, removing lines, etc.. >>> This will give you a functional page. >>> >>> Now, once the table becomes large or you want snappier client-side >>> behaviour, you will need to step into more javascript and ajax for adding >>> lines, removing lines. >>> Eventually, you will need to use event delegation rather than add a >>> change script to every text input (because the page will become too >>> large). >>> >>> Just go in steps. Iterate and learn new things. >>> >>> Hope this helps >>> Johan >>> >>> [1] http://caniuse.com/#search=date >>> >>> >>>> On 08 Jan 2015, at 18:06, Sanjay Minni < > >>> sm@ > >>> > wrote: >>>> >>>> I have some basic questions while trying to code for a UI below >>>> >>>> html table: [ >>>> self transactions dataLines do: [ :tr | >>>> html tableRow: [ >>>> html tableData: >>> >>>> html tableData: >>> >>>> html tableData: [ >>>> html textInput value: [:value | tr amount: value]; with: tr amount. >>>> ]. >>>> html tableData: [ >>>> html anchor callback: [ self removeTransaction: tr ]; with: >>>> 'delete'. >>>> ]. >>>> ]. >>>> ]. >>>> ]. >>>> >>>> Questions given the display will be as per below : >>>> 1. which is the best brush to use for date in this case >>>> 2. which brush to use for amount - this is financial amount usually 2 or >>>> 3 >>>> decimals, right justified and the digits are comma ',' separated and >>>> should >>>> I use a float in the model (Using Pharo 4) >>>> 3. what is the usual method to get empty lines below - else I will have >>>> to >>>> code for an 'add' button >>>> 4. most important - ... so far ... this is not part of a form - what >>>> brushes >>>> / tags should I use if the parent will be a form (there will be other >>>> parts >>>> in the screen above, below and aside the part below >>>> >>>> thanks >>>> Sanjay >>>> >>>> >>>> >>>> >>>> >>>> >>>> Sanjay Minni wrote >>>>> Hi, >>>>> >>>>> I want to make a grid like entry widget on a collection with auto save >>>>> (say like excel / google sheets behaves). pls advice on how to go about >>>>> the UI. I looked as the examples - Forms where to add / delete a >>>>> separate >>>>> sub screen comes on - that is not what I am looking for. >>>>> >>>>> Simply put it has a date, a symbol / text and an amount >>>>> i should be able to edit inline, keep adding at end, or delete a link / >>>>> button at end of each line >>>> <http://forum.world.st/file/n4798280/GridScreenMockup.jpg> >>>>> >>>>> thanks >>>>> Sanjay >>>> >>>> >>>> >>>> >>>> >>>> ----- >>>> --- >>>> Regards, Sanjay >>>> -- >>>> View this message in context: >>>> http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798406.html >>>> <http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798406.html> >>>> Sent from the Seaside General mailing list archive at Nabble.com >>>> <http://nabble.com/>. >>>> _______________________________________________ >>>> seaside mailing list >>>> > >>> seaside@.squeakfoundation > >>> <mailto: > >>> seaside@.squeakfoundation > >>> > >>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>> <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside> >>> >>> _______________________________________________ >>> seaside mailing list > >>> seaside@.squeakfoundation > >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > ----- > --- > Regards, Sanjay > -- > View this message in context: http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798844.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150117/7927fa0b/attachment-0001.htm From sm at planage.com Sat Jan 17 09:46:17 2015 From: sm at planage.com (Sanjay Minni) Date: Sat Jan 17 09:49:15 2015 Subject: [Seaside] Re: Grid like entry with autosave In-Reply-To: References: <1420692959779-4798280.post@n4.nabble.com> <1420736781408-4798406.post@n4.nabble.com> <5F113894-813A-4520-8D89-80111DFFBEB6@inceptive.be> <1420890579106-4798756.post@n4.nabble.com> <1420962400401-4798844.post@n4.nabble.com> Message-ID: <1421487977878-4800143.post@n4.nabble.com> Johan I got a bit further since then ... ok here you can see my immediate problem www.uxfin.com If I have made some changes in the upper part ... and move the mouse to the lower form ... then is some situations the changes in the upper part are not saved so is there any way I can force the changes to be accepted in the other form from my code (I know when to trigger). and also another separate and immediate issue - what is the usual method of disabling the Seaside Toolbar in deployment regards Sanjay Johan Brichau-2 wrote > Sanjay, > > I don?t fully understand what you mean with ?save any changes? or ?save > the form?. > Perhaps it?s best if you also post your code of the anchors and their > callbacks. > > Johan > >> On 11 Jan 2015, at 08:46, Sanjay Minni < > sm@ > > wrote: >> >> Hi >> >> as of now I am putting a quick solution using simple forms >> I have put an anchor with callback to del each line and an anchor at and >> to >> add a line (and a new row is displayed and the anchor goes below that) >> >> however the del and and add anchor do not save any changes that have been >> done >> >> Ques: - how can I implicitly save the form in the delete and add links >> before proceeding to the action >> >> regards >> Sanjay >> >> >> Sanjay Minni wrote >>> Thanks Johan, >>> >>> let me digest this ... My focus was input fields >>> >>> - Date input if possible templated as 'dd/mm/yyyy' (a picker only to >>> popup >>> when the field is in focus) >>> - an amount input field as 999,999,999.00 right justified >>> (in India we also have 99,99,999.00) and in some countries / currencies >>> / >>> inventory quantities etc 3 digits after the decimal is required and >>> should >>> stop at that i.e. no inputs on overflow >>> >>> regards >>> Sanjay >>> Johan Brichau-2 wrote >>>> Hi Sanjay, >>>> >>>> Mind that a Seaside brush only determines the html element that gets >>>> rendered. If you want to render a date, there is no html element that >>>> is >>>> ?best? to use (and hence no brush that is best to use). >>>> Most of the time, a date will be rendered as text, but possibly you >>>> want >>>> to render some more markup to allow styling via css (i.e. adding css >>>> classes). If you want to render the date in an input field, mind that >>>> html5 does define a ?date? type, but the state of the implementation in >>>> current browsers is limited [1]. >>>> >>>> A word of advice: if you manipulate financial data, do not use Floats >>>> but >>>> Fractions (or ScaledDecimal). Even if the customer says it should not >>>> be >>>> that precise, do not use Floats. >>>> >>>> If you want to get going, try to render all textInputs in the table. >>>> Next, use jQuery and add the serialization of the text input field on >>>> change: >>>> >>>> html textInput >>>> onChange: (html jQuery this serializeThis); >>>> callback: [:val | ? ]; >>>> with: value >>>> >>>> Set anchors for adding lines, removing lines, etc.. >>>> This will give you a functional page. >>>> >>>> Now, once the table becomes large or you want snappier client-side >>>> behaviour, you will need to step into more javascript and ajax for >>>> adding >>>> lines, removing lines. >>>> Eventually, you will need to use event delegation rather than add a >>>> change script to every text input (because the page will become too >>>> large). >>>> >>>> Just go in steps. Iterate and learn new things. >>>> >>>> Hope this helps >>>> Johan >>>> >>>> [1] http://caniuse.com/#search=date >>>> >>>> >>>>> On 08 Jan 2015, at 18:06, Sanjay Minni < >> >>>> sm@ >> >>>> > wrote: >>>>> >>>>> I have some basic questions while trying to code for a UI below >>>>> >>>>> html table: [ >>>>> self transactions dataLines do: [ :tr | >>>>> html tableRow: [ >>>>> html tableData: >>>> > >>>>> html tableData: >>>> > >>>>> html tableData: [ >>>>> html textInput value: [:value | tr amount: value]; with: tr >>>>> amount. >>>>> ]. >>>>> html tableData: [ >>>>> html anchor callback: [ self removeTransaction: tr ]; with: >>>>> 'delete'. >>>>> ]. >>>>> ]. >>>>> ]. >>>>> ]. >>>>> >>>>> Questions given the display will be as per below : >>>>> 1. which is the best brush to use for date in this case >>>>> 2. which brush to use for amount - this is financial amount usually 2 >>>>> or >>>>> 3 >>>>> decimals, right justified and the digits are comma ',' separated and >>>>> should >>>>> I use a float in the model (Using Pharo 4) >>>>> 3. what is the usual method to get empty lines below - else I will >>>>> have >>>>> to >>>>> code for an 'add' button >>>>> 4. most important - ... so far ... this is not part of a form - what >>>>> brushes >>>>> / tags should I use if the parent will be a form (there will be other >>>>> parts >>>>> in the screen above, below and aside the part below >>>>> >>>>> thanks >>>>> Sanjay >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Sanjay Minni wrote >>>>>> Hi, >>>>>> >>>>>> I want to make a grid like entry widget on a collection with auto >>>>>> save >>>>>> (say like excel / google sheets behaves). pls advice on how to go >>>>>> about >>>>>> the UI. I looked as the examples - Forms where to add / delete a >>>>>> separate >>>>>> sub screen comes on - that is not what I am looking for. >>>>>> >>>>>> Simply put it has a date, a symbol / text and an amount >>>>>> i should be able to edit inline, keep adding at end, or delete a link >>>>>> / >>>>>> button at end of each line >>>>> <http://forum.world.st/file/n4798280/GridScreenMockup.jpg> >>>>>> >>>>>> thanks >>>>>> Sanjay >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ----- >>>>> --- >>>>> Regards, Sanjay >>>>> -- >>>>> View this message in context: >>>>> http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798406.html >>>>> <http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798406.html> >>>>> Sent from the Seaside General mailing list archive at Nabble.com >>>>> <http://nabble.com/>. >>>>> _______________________________________________ >>>>> seaside mailing list >>>>> >> >>>> seaside@.squeakfoundation >> >>>> <mailto: >> >>>> seaside@.squeakfoundation >> >>>> > >>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >>>>> <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside> >>>> >>>> _______________________________________________ >>>> seaside mailing list >> >>>> seaside@.squeakfoundation >> >>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> >> >> >> >> >> ----- >> --- >> Regards, Sanjay >> -- >> View this message in context: >> http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798844.html >> <http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4798844.html> >> Sent from the Seaside General mailing list archive at Nabble.com >> <http://nabble.com/>. >> _______________________________________________ >> seaside mailing list >> > seaside@.squeakfoundation > <mailto: > seaside@.squeakfoundation > > >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside >> <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside> > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Grid-like-entry-with-autosave-tp4798280p4800143.html Sent from the Seaside General mailing list archive at Nabble.com. From stormbyte at gmail.com Sat Jan 17 15:34:21 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Sat Jan 17 15:34:31 2015 Subject: [Seaside] Magritte3 and persistence? Message-ID: I've read in soem tutorial (don't remember which right now) that magritte have support for data persistency. If I did not understood it bad, it would mean that it can autogenerate SQL queries from descriptions so they don't need to be coded manually into the database class methods, but just could not find any info and/or examples regarding it. Can someone point me in the right direction, or tall me if I understood it bad? From oswallcr at yahoo.com Sat Jan 17 15:48:23 2015 From: oswallcr at yahoo.com (oswall) Date: Sat Jan 17 15:51:22 2015 Subject: [Seaside] Re: fullcalendar on seaside 3.1 not work In-Reply-To: References: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> <1421252258548-4799525.post@n4.nabble.com> <1421263099287-4799557.post@n4.nabble.com> <1421275891169-4799613.post@n4.nabble.com> Message-ID: <1421509703641-4800168.post@n4.nabble.com> Hi Esteban, FullCalendar works. Paul changed the module and runs. I'm learning module for modifying the classes of events for the project. Thanks -- View this message in context: http://forum.world.st/fullcalendar-on-seaside-3-1-not-work-tp4799420p4800168.html Sent from the Seaside General mailing list archive at Nabble.com. From emaringolo at gmail.com Sat Jan 17 15:53:43 2015 From: emaringolo at gmail.com (Esteban A. Maringolo) Date: Sat Jan 17 15:54:26 2015 Subject: [Seaside] Magritte3 and persistence? In-Reply-To: References: Message-ID: There was a, now outdated, Magritte-GLORP integration, to generate GLORP descriptors based on Magritte metadata. But as I say it is outdated, and it probably won't work with the latest Magritte version (3.x) that uses descriptors on the instance side. Regards! Esteban A. Maringolo 2015-01-17 12:34 GMT-03:00 David Carlos Manuelda : > I've read in soem tutorial (don't remember which right now) that magritte > have support for data persistency. > > If I did not understood it bad, it would mean that it can autogenerate SQL > queries from descriptions so they don't need to be coded manually into the > database class methods, but just could not find any info and/or examples > regarding it. > > Can someone point me in the right direction, or tall me if I understood it > bad? > > _______________________________________________ > seaside mailing list > seaside@lists.squeakfoundation.org > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside From oswallcr at yahoo.com Sat Jan 17 15:52:48 2015 From: oswallcr at yahoo.com (oswall) Date: Sat Jan 17 15:55:47 2015 Subject: [Seaside] Re: fullcalendar on seaside 3.1 not work In-Reply-To: <1421275891169-4799613.post@n4.nabble.com> References: <321161275.782116.1421201128390.JavaMail.yahoo@jws10658.mail.bf1.yahoo.com> <1421252258548-4799525.post@n4.nabble.com> <1421263099287-4799557.post@n4.nabble.com> <1421275891169-4799613.post@n4.nabble.com> Message-ID: <1421509968864-4800170.post@n4.nabble.com> Hi Paul, It runs fine. Today learning for know I am studying the module to meet with seaside. Sure I will use it. -- View this message in context: http://forum.world.st/fullcalendar-on-seaside-3-1-not-work-tp4799420p4800170.html Sent from the Seaside General mailing list archive at Nabble.com. From p3anoman at gmail.com Sun Jan 18 19:16:01 2015 From: p3anoman at gmail.com (John McKeon) Date: Sun Jan 18 19:16:04 2015 Subject: [Seaside] Magritte3 and persistence? In-Reply-To: References: Message-ID: Magritte-Roe in the Magritte1Addons repository might be what you want. It requires ROE and PostgresV2 packages from squeaksource as well as PostgreSQL db installed. I believe it works with Magritte2 but have never tried it with 3. > If I did not understood it bad, it would mean that it can autogenerate SQL > queries from descriptions so they don't need to be coded manually into the > database class methods, but just could not find any info and/or examples > regarding it. > > Can someone point me in the right direction, or tall me if I understood it > bad? > > _______________________________________________ > 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/20150118/ce7015f6/attachment.htm From marianopeck at gmail.com Thu Jan 22 15:13:59 2015 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu Jan 22 15:14:01 2015 Subject: [Seaside] JQSortable with LI that I do not render myself In-Reply-To: <70750DD5-A688-40B4-B5AE-900A5C247B60@inceptive.be> References: <70750DD5-A688-40B4-B5AE-900A5C247B60@inceptive.be> Message-ID: On Sat, Jan 17, 2015 at 6:26 AM, Johan Brichau wrote: > Hi Mariano, > > My first question is why are you using the bootstrap select to render a > list of items? If it?s not a select that you want but a sortable list, why > not generate it immediately? > Hi Johan, Good question. Originally I was using plain HMTL selects. Then it become a requirement to also have a kind of multi-selection list but not that one that looks like a area and that uses a lot of height space. The ideal was a kind of dropdown list with multiselect support. And finally, if that would be sortable, that would be even cooler because we also needed that. We were already using http://silviomoreto.github.io/bootstrap-select/ because it makes lists nicer. And then I found out that such a lib also supports multiselection and filtering. I just needed to add sorting. Then...all my previous code that I had using lists... could be very easily updated to use this. > > The bootstrap plugin is generating the html based on the html you > generated in Seaside. > In this client-side conversion step, the ids and scripts generated from > Seaside are not (or cannot be) copied. > > You need options in the plugin to pass callbacks. I took a quick look but > I don?t see any. > If there are such options (there exist other such plugins), it still is a > lot of fiddling on the client-side to hook up the right js callbacks to > server-side callbacks, especially if you have more than one select to > handle. > Indeed, I searched for callbacks too in the lib.... > > But there?s probably a good reason you are trying to do this. If that?s > the case, I would try to use event delegation and put event handlers on the > parent element of the select. > The plugin is probably generating the li right next to existing select but > with the same parent. If that is the case, you can put jQuery event > handlers on that parent element (which you generate from Seaside. > Something like: > > html div > script: (html jQuery this) on: ?click? do: (html jQuery ajax callback:[ ? > ]) > with: [ self renderSelectOn: html ] > > It probably will require some more complex handling with respect to > getting the correct events sorted out? > I did not try these things, so I hope this helps > That's something I didn't think about. Thanks for sharing. That being said...I did find a "workaround" (or hack?) that did work...I will share it in case someone finds it useful. 1) First I render the html select and I apply the bootstrap lib (from here http://silviomoreto.github.io/bootstrap-select/), setting the mutliselection option and the filter capability. 2) Then, this hack: "this is a hack because Bootstrap-select does not set an ID to the LI elements and I need those in order to associate passengers to my target objects for the events. " html script: ' *($(''#', select id, ''').parent().find(''.inner li'')).each(function(i, item) {* * $(this).attr(''id'', ''', select id, '_'' + ($(item).attr(''data-original-index'')) );* * });* * '.* Basically....I manually assign an ID to each generated LI. 3) Then....another hack: "This is another hack because I DO NOT render myself each LI element but instead it is automaticallty done by Bootstrap-select from our html select. So....I must explicitly register a passenger for each LI" *self availableListInOrder doWithIndex: [ :each :index | * * html callbacks registerPassenger: each named: (select id, '_', (index-1) asString) ].* Basically...I register my objects as passengers at the IDs I have just assigned above. Then...for the sorting feature, I do something like this: html script: (((html jQuery id: select id) parent find: '.inner') * sortable* * onBeforeStop: (html jQuery ajax* * callback: [ :values | * * self availableListInOrder: values.* * self reSortListSelectedWith: values.* * ]* * passengers: (((html jQuery id: select id) parent find: '.inner') find: 'li')* ); Here the magic is to use #callback:passengers: And the same must be used for the onChange: of the select list: select *onChange: * * (html jQuery ajax* * serializeForm;* * script: [ :s | * * self listChangeCallback ifNotNilDo: [ :aBlock | aBlock value: s ].* * self reRenderEditorScriptUsing: s.* * ];* * callback: [ :values | self setSelectedItemsBlock value: values ]* * passengers: ((((html jQuery id: select id) parent find: '.inner') find: 'li') filter: '.selected') * ); So...it's kind of a black magic I think...but I encapsulated everything in a MultiSelectionComponent where I can hook everything so it works nicely. Too much hacky? > cheers, > Johan > > On 16 Jan 2015, at 16:54, Mariano Martinez Peck > wrote: > > Hi guys, > > I have a html select list that then I convert to a UL / LI kind of list > using Bootstrap select: https://github.com/silviomoreto/bootstrap-select > > I want to make it sortable (which I could) but I cannot correctly hook > onto the stop of the drop so that I can update my model/backend side. > > I am trying to do something like: > > html script: ((html jQuery id: '#myULList') > sortable > onStop: (html jQuery ajax > callback: [ :values | values asOrderedCollection > inspect ] > passengers: (html jQuery this find: 'li'))) > > Basically...I need to get 'values' with my real objects. The problem is > that since I am not rendering the LI items myself (but bootstrap select > does), I cannot specify the passenger..I mean...I cannot do something like > "html listItem passenger: each" or whatever... > > Any ideas how can I make it work? > > Thanks in advance, > > -- > Mariano > http://marianopeck.wordpress.com > _______________________________________________ > 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 > > -- Mariano http://marianopeck.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150122/7a2ec319/attachment-0001.htm From stormbyte at gmail.com Thu Jan 22 17:54:44 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Thu Jan 22 17:54:53 2015 Subject: [Seaside] Seaside and gettext not exporting domain strings Message-ID: I am following guide from https://code.google.com/p/seaside/wiki/Gettext, and also, downloaded Seaside-Gettext-Examples-pmm.4.mcz from monticello source http://www.squeaksource.com/Seaside30Addons. It seems a good source of learning gettext integration into seaside. To test the example, I just doit: WAGettextExample register, and enter to localhost:8080/gettext. It displays good, but when I try to export the domain strings, via evaluating WAGettextExample export, I only get pharo strings, and not the gettext domain strings present there. As it is an autoconfigurable example, and little enough, can someone point me in the right direction about what is happening? From stormbyte at gmail.com Thu Jan 22 18:01:17 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Thu Jan 22 18:01:26 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings References: Message-ID: David Carlos Manuelda wrote: > I am following guide from https://code.google.com/p/seaside/wiki/Gettext, > and also, downloaded Seaside-Gettext-Examples-pmm.4.mcz from monticello > source http://www.squeaksource.com/Seaside30Addons. > > It seems a good source of learning gettext integration into seaside. > > To test the example, I just doit: WAGettextExample register, and enter to > localhost:8080/gettext. > > It displays good, but when I try to export the domain strings, via > evaluating WAGettextExample export, I only get pharo strings, and not the > gettext domain strings present there. > > As it is an autoconfigurable example, and little enough, can someone point > me in the right direction about what is happening? By modifying a little the example, I noticed that if I send the "translated" message to strings they get added to the .pot file and indeed it generates the template. But shouldn't it be the translate: function for that so I don't need to put translated everywhere? From stephan at stack.nl Sat Jan 24 00:12:02 2015 From: stephan at stack.nl (Stephan Eggermont) Date: Sat Jan 24 00:12:07 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings Message-ID: <34CC888E-C5C8-4800-BCA1-696823B52939@stack.nl> You might want to borrow some code from QCMagritte. There we describe our model with Magritte, and use an extra visitor to hide the translated for label, hint and error messages. It also provides a UI. https://www.youtube.com/watch?v=cTut44Xs3_U Stephan From pierce at netmemetic.com Sat Jan 24 05:42:53 2015 From: pierce at netmemetic.com (Pierce Ng) Date: Sat Jan 24 05:43:04 2015 Subject: [Seaside] Magritte3 and persistence? In-Reply-To: References: Message-ID: <20150124054253.GD13782@localhost.localdomain> On Sun, Jan 18, 2015 at 02:16:01PM -0500, John McKeon wrote: > Magritte-Roe in the Magritte1Addons > repository might be what > you want. It requires ROE and PostgresV2 > packages from squeaksource as well > as PostgreSQL db installed. ROE does not support creating new tables in the underlying database, based on my making ROE work with NBSQLite3. Yes, one could use SQL to do the things ROE doesn't, but then one now has to deal with two ways of talking to the SQL database. Pierce From stormbyte at gmail.com Sat Jan 24 13:50:50 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Sat Jan 24 13:51:01 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings References: <34CC888E-C5C8-4800-BCA1-696823B52939@stack.nl> Message-ID: Stephan Eggermont wrote: > You might want to borrow some code from QCMagritte. > There we describe our model with Magritte, and use > an extra visitor to hide the translated for label, hint > and error messages. It also provides a UI. > > https://www.youtube.com/watch?v=cTut44Xs3_U > > Stephan Hi Stephan, thank you for your answer. Yes, I've been reading also about QCMagritte, and played with the demo. Just that it seems to work only with csv import/export, can it work also with regular po/pot/mo files from gettext? From stormbyte at gmail.com Sat Jan 24 14:30:54 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Sat Jan 24 14:31:03 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings References: <34CC888E-C5C8-4800-BCA1-696823B52939@stack.nl> Message-ID: David Carlos Manuelda wrote: > Stephan Eggermont wrote: > >> You might want to borrow some code from QCMagritte. >> There we describe our model with Magritte, and use >> an extra visitor to hide the translated for label, hint >> and error messages. It also provides a UI. >> >> https://www.youtube.com/watch?v=cTut44Xs3_U >> >> Stephan > Hi Stephan, thank you for your answer. > > Yes, I've been reading also about QCMagritte, and played with the demo. > > Just that it seems to work only with csv import/export, can it work also > with regular po/pot/mo files from gettext? OK, I found the solution and I want to share with you all, in case someone have also this problem. I ended exploring ConfigurationOfSeaside3 class, because I've read it has support in 3.1+, and indeed it has. I evaluated: ( ConfigurationOfSeaside3 project version: #stable ) load: 'Seaside-Gettext- Core'. ( ConfigurationOfSeaside3 project version: #stable ) load: 'Seaside-Gettext- Examples'. And noticed that the problem went away. So this converted to an update request for the wiki maintainers located at https://code.google.com/p/seaside/wiki/Gettext to update the information, because following those steps mentioned there will lead to a non working install of Seaside-Gettext-Core (maybe outdated packages in that repo). From stormbyte at gmail.com Sat Jan 24 18:40:45 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Sat Jan 24 18:40:59 2015 Subject: [Seaside] XHTML canvas support in SeaSide (3.1)? Message-ID: Hi all, I've been reading a lot about seaside, and I have to say I am impressed about how it change the concept of web programming over other languages/frameworks. I specially like the component idea, and the fabric pattern which renderContentOn: aCanvas allows. I found info about changing default canvas, by overriding rendererClass method in the root component. Now the question is, I've been browsing the code, and I only found an WAHTMLCanvas to output HTML code, but how about outputting XML code? I only found an abstract class to be overriden, but doesn't seaside offer this canvas as well? Is it in another package, or simply is missing and I have to create it? I would thank all info regarding this context, as I am already lost and searched and red a lot without progressing. Thanks :) From stephan at stack.nl Sat Jan 24 20:30:52 2015 From: stephan at stack.nl (Stephan Eggermont) Date: Sat Jan 24 20:30:56 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings Message-ID: <9D653863-5DF5-4446-8418-A1201C6A679D@stack.nl> David wrote: >Just that it seems to work only with csv import/export, can it work also >with regular po/pot/mo files from gettext? I haven't neede them yet. Looks like a simple enough format. What are the advantages of it? Are there better tools than a spreadsheet for this? With the translations in-system, I can add a translation mode to a webpage/component. Stephan From stormbyte at gmail.com Sun Jan 25 10:47:40 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Sun Jan 25 10:47:56 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings References: <9D653863-5DF5-4446-8418-A1201C6A679D@stack.nl> Message-ID: Stephan Eggermont wrote: > David wrote: >>Just that it seems to work only with csv import/export, can it work also >>with regular po/pot/mo files from gettext? > > I haven't neede them yet. Looks like a simple enough format. > What are the advantages of it? Are there better tools than a spreadsheet > for this? With the translations in-system, I can add a translation mode > to a webpage/component. > > Stephan Hi Stephan, Well, in my opinion, gettext has some advantages over simple csv dictionary translations, there are tools to translate also, like Poedit, while the issue is not about if there are or not better tools. What makes gettext more powerful is that it supports different plural forms (for example), since there are languages that don't have only a singular and a plural form, and I guess it has more. If you find time, you could look at it http://en.wikipedia.org/wiki/Gettext. From stormbyte at gmail.com Sun Jan 25 11:07:53 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Sun Jan 25 11:08:13 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings References: <9D653863-5DF5-4446-8418-A1201C6A679D@stack.nl> Message-ID: David Carlos Manuelda wrote: > Stephan Eggermont wrote: > >> David wrote: >>>Just that it seems to work only with csv import/export, can it work also >>>with regular po/pot/mo files from gettext? >> >> I haven't neede them yet. Looks like a simple enough format. >> What are the advantages of it? Are there better tools than a spreadsheet >> for this? With the translations in-system, I can add a translation mode >> to a webpage/component. >> >> Stephan > > Hi Stephan, > > Well, in my opinion, gettext has some advantages over simple csv > dictionary translations, there are tools to translate also, like Poedit, > while the issue is not about if there are or not better tools. > > What makes gettext more powerful is that it supports different plural > forms (for example), since there are languages that don't have only a > singular and a plural form, and I guess it has more. > > If you find time, you could look at it > http://en.wikipedia.org/wiki/Gettext. Also, I forgot to say that it supports also the translation process, like fuzzy translations, which can be reviewed later, more info at https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html In my opinion, I advise its usage. From stephan at stack.nl Sun Jan 25 14:13:59 2015 From: stephan at stack.nl (Stephan Eggermont) Date: Sun Jan 25 14:14:04 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings Message-ID: <86D528A2-7202-4CAD-9763-B0AFBC8890DE@stack.nl> David wrote: >Well, in my opinion, gettext has some advantages over simple csv dictionary >translations, there are tools to translate also, like Poedit, while the >issue is not about if there are or not better tools. I was less than impressed by POEdit. For the use case we had (not so large application, only a few languages), Excel was definitely superior. For large translations, I'd want application integration, as the texts also have to fit on the screen. With the right abstractions, I should be able to generate translation components in the web application. Both in the sense as showing a translated part of a page, as in showing where a text is used. That is something that seems difficult to do with gettext. To me, the only advantage POEdit Pro seems to have is the reuse of existing translations. Stephan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150125/1a825df4/attachment-0001.htm From sm at planage.com Sun Jan 25 15:37:48 2015 From: sm at planage.com (Sanjay Minni) Date: Sun Jan 25 15:41:44 2015 Subject: [Seaside] unable to display image from local directory Message-ID: <1422200268636-4801549.post@n4.nabble.com> Hi I am unable to display an image from a local directory using html image url: 'myimage.gif' (where myimage.gif is stored in the same directory as the pharo image), but it works fine if I point to the image with complete URL on the new say html image url: 'http://www.mysite.com/myimage.gif' so how can I pick up from the local directory regards Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/unable-to-display-image-from-local-directory-tp4801549.html Sent from the Seaside General mailing list archive at Nabble.com. From jtuchel at objektfabrik.de Sun Jan 25 15:48:25 2015 From: jtuchel at objektfabrik.de (jtuchel@objektfabrik.de) Date: Sun Jan 25 15:48:29 2015 Subject: [Seaside] unable to display image from local directory In-Reply-To: <1422200268636-4801549.post@n4.nabble.com> References: <1422200268636-4801549.post@n4.nabble.com> Message-ID: <54C51049.1010700@objektfabrik.de> Sanjay, Pharo doesn't serve files from the local file system by default. There are specialised subclasses of WAFileLibrary (or at least you could build one) to do that. What you do is send an img tag down to the browser that contains a src="myimage.gif" attribute. The browser then has to fetch this image from the web server, in your case the Pharo image and Seaside... There are several options: 1) as I mentioned before, add a FileLibrary to your application that can serve local files (you'd have to send urlOf: to the FileLibrary class to send the correct src attribute) 2) use an url of a web server that server files, like html image url: 'Mydropbox.com/myimage.gif' 3) Import your image into a WAFileLibrary subclass so that it has a method that holds a ByteArray of the contents of this image. Then you can server the image from within Pharo HTH, Joachim Am 25.01.15 um 16:37 schrieb Sanjay Minni: > Hi > > I am unable to display an image from a local directory using > > html image url: 'myimage.gif' > (where myimage.gif is stored in the same directory as the pharo image), > > but it works fine if I point to the image with complete URL on the new say > html image url: 'http://www.mysite.com/myimage.gif' > > so how can I pick up from the local directory > > regards > Sanjay > > > > > ----- > --- > Regards, Sanjay > -- > View this message in context: http://forum.world.st/unable-to-display-image-from-local-directory-tp4801549.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 > -- ----------------------------------------------------------------------- Objektfabrik Joachim Tuchel mailto:jtuchel@objektfabrik.de Fliederweg 1 http://www.objektfabrik.de D-71640 Ludwigsburg http://joachimtuchel.wordpress.com Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1 From stormbyte at gmail.com Sun Jan 25 17:42:53 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Sun Jan 25 17:43:09 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings References: <86D528A2-7202-4CAD-9763-B0AFBC8890DE@stack.nl> Message-ID: Stephan Eggermont wrote: > David wrote: >>Well, in my opinion, gettext has some advantages over simple csv >>dictionary translations, there are tools to translate also, like Poedit, >>while the issue is not about if there are or not better tools. > > I was less than impressed by POEdit. For the use case we had > (not so large application, only a few languages), Excel was > definitely superior. For large translations, I'd want application > integration, as the texts also have to fit on the screen. > With the right abstractions, I should be able to generate > translation components in the web application. Both in the > sense as showing a translated part of a page, as in showing > where a text is used. That is something that seems > difficult to do with gettext. To me, the only advantage > POEdit Pro seems to have is the reuse of existing translations. > > Stephan OH, with gettext you can see where the text is placed, because it is autogenerated in comments inside the po(t) file. Like for example: #: Seaside-Gettext-Examples,WAGettextExample>>renderContentOn: msgid "fontsize" msgstr "" --> This is the translation key From johan at inceptive.be Sun Jan 25 19:38:21 2015 From: johan at inceptive.be (Johan Brichau) Date: Sun Jan 25 19:38:30 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings In-Reply-To: References: <86D528A2-7202-4CAD-9763-B0AFBC8890DE@stack.nl> Message-ID: <6114A795-8BBC-430D-92F1-0DBD4E2A1CB5@inceptive.be> Hi, We?re using gettext with +3000 strings to translate in 3 languages (for now). I try to keep it up to date but there is some refactoring required at this point?. it works well though. > On 25 Jan 2015, at 18:42, David Carlos Manuelda wrote: > > Stephan Eggermont wrote: > >> David wrote: >>> Well, in my opinion, gettext has some advantages over simple csv >>> dictionary translations, there are tools to translate also, like Poedit, >>> while the issue is not about if there are or not better tools. >> >> I was less than impressed by POEdit. Did you try a recent version? It has improved over the past few years. >> For the use case we had >> (not so large application, only a few languages), Excel was >> definitely superior. For large translations, I'd want application >> integration, as the texts also have to fit on the screen. Not sure how that rimes with Excel :) But yes, live editing of the text displayed in its context is nice, though it?s difficult to impossible to do for all text (e.g tooltips, error messages, etc?). >> With the right abstractions, I should be able to generate >> translation components in the web application. Both in the >> sense as showing a translated part of a page, as in showing >> where a text is used. That is something that seems >> difficult to do with gettext. I don?t see how that conflicts with gettext (as a format). >> To me, the only advantage >> POEdit Pro seems to have is the reuse of existing translations. In our experience, that?s the bad part. The advantage of POEdit is that we supply a file of changed strings to our translator and he sees the changed, added and removed strings. > OH, with gettext you can see where the text is placed, because it is > autogenerated in comments inside the po(t) file. Like for example: > > #: Seaside-Gettext-Examples,WAGettextExample>>renderContentOn: > msgid "fontsize" > msgstr "" --> This is the translation key This is not specific for gettext, but the format supports it. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150125/a3fbda09/attachment.htm From sm at planage.com Mon Jan 26 04:34:42 2015 From: sm at planage.com (Sanjay Minni) Date: Mon Jan 26 04:38:42 2015 Subject: [Seaside] Re: unable to display image from local directory In-Reply-To: <54C51049.1010700@objektfabrik.de> References: <1422200268636-4801549.post@n4.nabble.com> <54C51049.1010700@objektfabrik.de> Message-ID: <1422246882791-4801628.post@n4.nabble.com> thanks Joachim since its lightweight and very static I have got thru with method 3 above (WAFileLibrary subclass>>method) regards Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/unable-to-display-image-from-local-directory-tp4801549p4801628.html Sent from the Seaside General mailing list archive at Nabble.com. From johan at inceptive.be Mon Jan 26 08:19:08 2015 From: johan at inceptive.be (Johan Brichau) Date: Mon Jan 26 08:19:12 2015 Subject: [Seaside] unable to display image from local directory In-Reply-To: <1422246882791-4801628.post@n4.nabble.com> References: <1422200268636-4801549.post@n4.nabble.com> <54C51049.1010700@objektfabrik.de> <1422246882791-4801628.post@n4.nabble.com> Message-ID: <40EC764C-FF14-41F9-BC82-4746DC6FDC7C@inceptive.be> You can also load Seaside-FileSystem and serve files directly from the disk. (ConfigurationOfSeaside3 project version: #stable) load: #(?Filesystem?) Use the configuration interface to create a ?File directory? handler to serve the files from disk directly. Note: only advised to do this in development since this pulls files through the image. For production, use an external front-end webserver like apache or nginx. Johan > On 26 Jan 2015, at 05:34, Sanjay Minni wrote: > > thanks Joachim > > since its lightweight and very static I have got thru with method 3 above > (WAFileLibrary subclass>>method) > > regards > Sanjay > > > > > ----- > --- > Regards, Sanjay > -- > View this message in context: http://forum.world.st/unable-to-display-image-from-local-directory-tp4801549p4801628.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 sm at planage.com Tue Jan 27 09:42:50 2015 From: sm at planage.com (Sanjay Minni) Date: Tue Jan 27 09:46:57 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: <1420886887723-4798749.post@n4.nabble.com> References: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> <1420737822877-4798413.post@n4.nabble.com> <1420886887723-4798749.post@n4.nabble.com> Message-ID: <1422351770070-4801891.post@n4.nabble.com> Using pharo4+seaside from https://ci.inria.fr/pharo-contribution/job/QCMagritte/ with Javascript, prototype and Scriptaculous loaded and image updated World->System->Software updated. I am unable to get the lightbox feature to work ... even in the examples at .../javascript/scriptaculous-components ( everything else in ../javascript/scriptaculous-components) seems to be working pls help in troubleshooting regards Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Re-Pharo-dev-Pharo-2-3-problems-with-seaside3-1-tp4798315p4801891.html Sent from the Seaside General mailing list archive at Nabble.com. From stormbyte at gmail.com Tue Jan 27 21:07:21 2015 From: stormbyte at gmail.com (David Carlos Manuelda) Date: Tue Jan 27 21:07:33 2015 Subject: [Seaside] Re: Seaside and gettext not exporting domain strings References: Message-ID: David Carlos Manuelda wrote: > I am following guide from https://code.google.com/p/seaside/wiki/Gettext, > and also, downloaded Seaside-Gettext-Examples-pmm.4.mcz from monticello > source http://www.squeaksource.com/Seaside30Addons. > > It seems a good source of learning gettext integration into seaside. > > To test the example, I just doit: WAGettextExample register, and enter to > localhost:8080/gettext. > > It displays good, but when I try to export the domain strings, via > evaluating WAGettextExample export, I only get pharo strings, and not the > gettext domain strings present there. > > As it is an autoconfigurable example, and little enough, can someone point > me in the right direction about what is happening? I am answering my own post to the list, because I spent some hours into looking at why it is failing to work with translations despite it should. I want to share with you all, in case someone finds this seaside gettext example useful in order to help others running into the same problem. WAGettextExample has a class side method called register, which registers itself as a seaside application and tries to configure gettext. The original method is as follows: WAGettextExample class>>register | application | application := WAAdmin register: self asApplicationAt: 'gettext'. application preferenceAt: #sessionClass put: WAGettextExampleSession. application configuration addParent: WAGetTextConfiguration instance. application configuration at: #gettextDomain put: 'gettext'. TextDomainManager registerCategoryPrefix: 'Seaside-Gettext-Examples' domain: 'gettext'. That will lead to incomplete application registration, because it do not register gettext domain into seaside-gettext. The corrected method I found it to work is as follows: WAGettextExample class>>register | application | application := WAAdmin register: self asApplicationAt: 'gettext'. application preferenceAt: #sessionClass put: WAGettextExampleSession. application configuration addParent: WAGetTextConfiguration instance. application configuration at: #gettextDomain put: 'gettext'. "TextDomainManager registerCategoryPrefix: 'Seaside-Gettext-Examples' domain: 'gettext'." "The commented line above is a mistake in WAGettext example" I hope it could be updated to prevent new users like me to get confused by seing things not working, and to help others :) David. From jtuchel at objektfabrik.de Wed Jan 28 20:04:39 2015 From: jtuchel at objektfabrik.de (jtuchel@objektfabrik.de) Date: Wed Jan 28 20:04:42 2015 Subject: [Seaside] Bootstrap Examples Bug Message-ID: <54C940D7.1020503@objektfabrik.de> Hi Torsten, I just had a look at your Twitter Boostrap Code in Pharo 3.0. Very nice! I started porting it to VAST and it is almost perfectly running there, with the expception of a few missing methods in VAST like beginsWith: and such. These are easily handled with Grease Extensions. Another problem is that Bootstrap needs JQuery 1.9.1 (e.g. for DropDowns) and the versions of Seaside shipped with VAST only come with 1.7.x, which can also be handled easily by importing newer versions of JQuery into JQDevelopmentLibrary and JQDeploymentLibrary. I also found a bug in the Bootstrap example application. A very easy one. The list of examples includes TBSBootstrapTableExample, which is not an example, it is just an abstract superclass. Therefor it doesn't implement renderExampleOn:. This leads to an error in the examples app. The solution is to not include TBSBootstrapTableExample in the list of examples. TBSExampleBrowser>>#allExamples adds all subclasses of TBSBootstrapExample to the list: ^TBSBootstrapExample allSubclasses sort: [:a :b | a name <= b name ] An easy fix would be to remove: TBSBootstrapTableExample from that list. A more generic fix would be to reject all classes that don't implement renderExanpleOn: . Still not a nice solution, but maybe the best from an effort <-> outcome perspective. So I suggest changing TBSExampleBrowser>>#allExamples to: ^(TBSBootstrapExample allSubclasses select: [:ea| ea respondsTo: #renderExampleOn: ]) sort: [:a :b | a name <= b name ] I can't commit code to STHub or SS3 (nor do I know how to do it), so I thought I'll just send this to the list. Joachim -- ----------------------------------------------------------------------- Objektfabrik Joachim Tuchel mailto:jtuchel@objektfabrik.de Fliederweg 1 http://www.objektfabrik.de D-71640 Ludwigsburg http://joachimtuchel.wordpress.com Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1 From astares at gmx.de Wed Jan 28 23:36:20 2015 From: astares at gmx.de (Torsten Bergmann) Date: Wed Jan 28 23:36:22 2015 Subject: [Seaside] Bootstrap Examples Bug Message-ID: is fixed now From pdebruic at gmail.com Thu Jan 29 04:51:56 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Thu Jan 29 04:56:17 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: <1422351770070-4801891.post@n4.nabble.com> References: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> <1420737822877-4798413.post@n4.nabble.com> <1420886887723-4798749.post@n4.nabble.com> <1422351770070-4801891.post@n4.nabble.com> Message-ID: <1422507116801-4802380.post@n4.nabble.com> Mixing jQuery and Scriptaculous in the same application can be bad news. If in the majority of your application you're using jQuery you'd have an easier time just sticking to jQuery. Is there a jQuery lightbox you can use? Maybe in the JQueryWidgetBoxProject on Smalltalkhub http://www.smalltalkhub.com/#!/~Seaside/JQueryWidgetBox Failing that - In the image or browser's developer tools are there any errors in the console when you try to use the lightbox? Sanjay Minni wrote > Using pharo4+seaside from > https://ci.inria.fr/pharo-contribution/job/QCMagritte/ with Javascript, > prototype and Scriptaculous loaded and image updated > World->System->Software updated. > > I am unable to get the lightbox feature to work ... even in the examples > at .../javascript/scriptaculous-components > > ( everything else in ../javascript/scriptaculous-components) seems to be > working > pls help in troubleshooting > > regards > Sanjay -- View this message in context: http://forum.world.st/Re-Pharo-dev-Pharo-2-3-problems-with-seaside3-1-tp4798315p4802380.html Sent from the Seaside General mailing list archive at Nabble.com. From sm at planage.com Thu Jan 29 07:16:31 2015 From: sm at planage.com (Sanjay Minni) Date: Thu Jan 29 07:20:52 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: <1422507116801-4802380.post@n4.nabble.com> References: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> <1420737822877-4798413.post@n4.nabble.com> <1420886887723-4798749.post@n4.nabble.com> <1422351770070-4801891.post@n4.nabble.com> <1422507116801-4802380.post@n4.nabble.com> Message-ID: <1422515791249-4802401.post@n4.nabble.com> Thanks Paul actually I was only trying out the scripaculous demo (so no mix really) But JQueryUI (I just visited the site) seems to have all I need, so if thats stable and easy I can move and stick to that ... would that be OK ... for me stability / robustness is critical regards Sanjay Paul DeBruicker wrote > Mixing jQuery and Scriptaculous in the same application can be bad news. > If in the majority of your application you're using jQuery you'd have an > easier time just sticking to jQuery. Is there a jQuery lightbox you can > use? Maybe in the JQueryWidgetBoxProject on Smalltalkhub > > http://www.smalltalkhub.com/#!/~Seaside/JQueryWidgetBox > > > Failing that - In the image or browser's developer tools are there any > errors in the console when you try to use the lightbox? > > Sanjay Minni wrote >> Using pharo4+seaside from >> https://ci.inria.fr/pharo-contribution/job/QCMagritte/ with Javascript, >> prototype and Scriptaculous loaded and image updated >> World->System->Software updated. >> >> I am unable to get the lightbox feature to work ... even in the examples >> at .../javascript/scriptaculous-components >> >> ( everything else in ../javascript/scriptaculous-components) seems to be >> working >> pls help in troubleshooting >> >> regards >> Sanjay ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Re-Pharo-dev-Pharo-2-3-problems-with-seaside3-1-tp4798315p4802401.html Sent from the Seaside General mailing list archive at Nabble.com. From johan at inceptive.be Thu Jan 29 09:04:20 2015 From: johan at inceptive.be (Johan Brichau) Date: Thu Jan 29 09:04:27 2015 Subject: [Seaside] [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: <1422515791249-4802401.post@n4.nabble.com> References: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> <1420737822877-4798413.post@n4.nabble.com> <1420886887723-4798749.post@n4.nabble.com> <1422351770070-4801891.post@n4.nabble.com> <1422507116801-4802380.post@n4.nabble.com> <1422515791249-4802401.post@n4.nabble.com> Message-ID: <0A24B556-75B8-473B-9D51-962B02A9963F@inceptive.be> Janjay, Scriptaculous is end-of-life since a long time. jQuery (and jQuery-UI) are the preferred libraries in Seaside. cheers, Johan > On 29 Jan 2015, at 08:16, Sanjay Minni wrote: > > Thanks Paul > > actually I was only trying out the scripaculous demo (so no mix really) > > But JQueryUI (I just visited the site) seems to have all I need, so if thats > stable and easy I can move and stick to that ... would that be OK ... for me > stability / robustness is critical > > regards > Sanjay > > > > > Paul DeBruicker wrote >> Mixing jQuery and Scriptaculous in the same application can be bad news. >> If in the majority of your application you're using jQuery you'd have an >> easier time just sticking to jQuery. Is there a jQuery lightbox you can >> use? Maybe in the JQueryWidgetBoxProject on Smalltalkhub >> >> http://www.smalltalkhub.com/#!/~Seaside/JQueryWidgetBox >> >> >> Failing that - In the image or browser's developer tools are there any >> errors in the console when you try to use the lightbox? >> >> Sanjay Minni wrote >>> Using pharo4+seaside from >>> https://ci.inria.fr/pharo-contribution/job/QCMagritte/ with Javascript, >>> prototype and Scriptaculous loaded and image updated >>> World->System->Software updated. >>> >>> I am unable to get the lightbox feature to work ... even in the examples >>> at .../javascript/scriptaculous-components >>> >>> ( everything else in ../javascript/scriptaculous-components) seems to be >>> working >>> pls help in troubleshooting >>> >>> regards >>> Sanjay > > > > > > ----- > --- > Regards, Sanjay > -- > View this message in context: http://forum.world.st/Re-Pharo-dev-Pharo-2-3-problems-with-seaside3-1-tp4798315p4802401.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150129/a79c1ab6/attachment-0001.htm From sm at planage.com Thu Jan 29 09:09:22 2015 From: sm at planage.com (Sanjay Minni) Date: Thu Jan 29 09:13:44 2015 Subject: [Seaside] Re: [Pharo-dev] Pharo{2,3} problems with seaside3.1 In-Reply-To: <0A24B556-75B8-473B-9D51-962B02A9963F@inceptive.be> References: <2654AB6B-B637-4272-A857-43A1355A7057@gmail.com> <1420737822877-4798413.post@n4.nabble.com> <1420886887723-4798749.post@n4.nabble.com> <1422351770070-4801891.post@n4.nabble.com> <1422507116801-4802380.post@n4.nabble.com> <1422515791249-4802401.post@n4.nabble.com> <0A24B556-75B8-473B-9D51-962B02A9963F@inceptive.be> Message-ID: <1422522562948-4802431.post@n4.nabble.com> Thanks Johan, that really helps ... I was grappling with scriptaculous ... regards Sanjay Johan Brichau-2 wrote > Janjay, > > Scriptaculous is end-of-life since a long time. > jQuery (and jQuery-UI) are the preferred libraries in Seaside. > > cheers, > Johan > > [ ... ] ----- --- Regards, Sanjay -- View this message in context: http://forum.world.st/Re-Pharo-dev-Pharo-2-3-problems-with-seaside3-1-tp4798315p4802431.html Sent from the Seaside General mailing list archive at Nabble.com. From marianopeck at gmail.com Thu Jan 29 17:19:43 2015 From: marianopeck at gmail.com (Mariano Martinez Peck) Date: Thu Jan 29 17:19:46 2015 Subject: [Seaside] Ajax requests not redirecting to Login page after session timeout Message-ID: Hi guys, If I have a session timeout, and then I click on a anchor that is associated to a ajax call, it does nothing (which is expected) but it does not forward me to the Login page either, as it happens with a timeout and a normal request. Any idea how can solve this? I saw in another email this: html document addLoadScript: (html jQuery document onAjaxError: (self ajaxErrorHandler asFunction: #('event' 'jqxhr' 'settings' 'exception'))) But not sure if it is of help. Thanks in advance, -- Mariano http://marianopeck.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150129/325edc90/attachment.htm From pdebruic at gmail.com Thu Jan 29 18:27:38 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Thu Jan 29 18:32:03 2015 Subject: [Seaside] Re: Ajax requests not redirecting to Login page after session timeout In-Reply-To: References: Message-ID: <1422556058456-4802521.post@n4.nabble.com> Hi Mariano, Thats something I wrote. The #ajaxErrorHandler method goes like this: ajaxErrorHandler ^ ' if (jqxhr.status == 403) { alert("For security reasons we sign people out during periods of inactivity. Please sign in again."); window.location.href = settings.url.split("?")[0].replace("help",""); } else { alert("This program just broke. You can either try again, sign out and sign in and try again, or contact us about error: " + exception); }' the window.location.href line just cleans up the page url by removing the expired session info. Seaside then starts a new session and the url is sent through the #initialRequest: mechanism. In #initialRequest: for my application I detect which page they were on, show them the login page, then once they've authenticated show them the page they were on. Hope this helps Paul. Mariano Martinez Peck wrote > Hi guys, > > If I have a session timeout, and then I click on a anchor that is > associated to a ajax call, it does nothing (which is expected) but it does > not forward me to the Login page either, as it happens with a timeout and > a > normal request. > > Any idea how can solve this? > > I saw in another email this: > > html document > addLoadScript: > (html jQuery document > onAjaxError: (self ajaxErrorHandler > asFunction: #('event' 'jqxhr' > 'settings' 'exception'))) > > But not sure if it is of help. > > Thanks in advance, > > > > -- > Mariano > http://marianopeck.wordpress.com > > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- View this message in context: http://forum.world.st/Ajax-requests-not-redirecting-to-Login-page-after-session-timeout-tp4802509p4802521.html Sent from the Seaside General mailing list archive at Nabble.com. From hilaire at drgeo.eu Sat Jan 31 19:58:29 2015 From: hilaire at drgeo.eu (Hilaire) Date: Sat Jan 31 20:15:07 2015 Subject: [Seaside] Magritte Description for a collection Message-ID: Hi, Let's say I have a model with a single attribute as a collection of strings. I want a Magritte description and a Seaside component to fill this collection and edit it when not empty: - the user should be able to add new string in the collection with '+' link and an appropriate text field - if the collection contains 3 items, the component should come with 3 text fields Any tips how to achieve that? Thanks PS: Of course the end goal is to replace the string of the collection by any other model Magritte described. Hilaire -- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu