Toggle Menu [-]

One small step… one small blog post

Published by admin on Wednesday, August 26, 2009 - 04:45:26 - Filed under News, Announcements, Development, Plugins/beans

Servoy 4.1.4 was announced on the forum, so I dutifully updated my developer’s version today, and checked for bugs in the plugins and beans I made available yet.

They changed the IStylePropertyChange interface (used in Wicket components) to integrate 2 new methods. These same method that we can see in the public API for Servoy 5.x.x. so the beans were not working anymore in the Web client. But I’m not complaining, because this is one small step towards Servoy 5!

Anyway, I adapted the code of the DateChooserBean and the ServoySliderBean accordingly (as well as the simple TestBean project made for the bean tutorial - part 5).

If you are using these beans, please update to the new version that you will find on the Servoy Stuff main site on the DateChooserBean page and the ServoySliderBean page respectively.

Stay tuned for some bigger news soon ;-)

ServoySlider bean packaged for you!

Published by admin on Wednesday, August 19, 2009 - 02:16:37 - Filed under News, Announcements, Development, Plugins/beans

As promised, I have added the result of our effort in the bean tutorial as nice download packages for use.

It will also allow me to enhance/debug the bean if needed without having to rewrite the tutorial again (I wouldn’t dream about it). And some people don’t really care about how it is done in Java, they just want to use the stuff!

So, here it is in the downloads section of the main Servoy Stuff web site on its own page like a big guy, our little ServoySliderBean, ready to use and abuse in all you best solutions!

Enjoy!

Tutorial 2 - part 8: the final chapter!

Published by admin on Tuesday, August 18, 2009 - 06:54:41 - Filed under General, News, Announcements, Development, Plugins/beans

Yes, that’s it! This part will be the final chapter of the bean serie!

It is little and easy (only 9 pages for you), and you will learn how to add event handling to the Slider in the Smart and the Web client. You can get it in the tutorial section of the main Servoy Stuff web site.

I will probably package the project and put it in the dowloads section as well, for those who are not too interested by the story but only by the end result, and a fun Slider it is!

I’m glad it’s finished actually, with 232 pages total (plugin + bean tutorial), I was getting exhausted by all that typing in Word (there’s not even code completion in that thing! and no phrase refactoring! What kind of tool is that?). And now, I will have more time for the Tano beta testing and some other projects I have in mind ;-)

Exactly! I DO have some more projects (hopefully exciting) and you might hear about them sooner or later… So for those of you who thought that I was going to quit Open Sourcing Stuff and was going to go back to a normal suburban life, think again! - I don’t even really live in the suburb anyway! :)

SVG Bean

Published by admin on Monday, August 17, 2009 - 00:55:18 - Filed under News, Announcements, Development, Plugins/beans

I created this one upon request, and asked for permission to release as Open Source.

It is based on the rich Apache Batik API and allows to display any SVG document inside a Servoy Form.

Displaying a SVG document was the easy part. The less easy part was to add interaction.
First in the form of associating callback Servoy method to click event on a node.

I had to dive a bit in the Batik API to do it right. Batik keep its own updating thread and it is important that any interaction done on the SVG DOM is made from inside this thread (just like any updating interaction with Swing components must be done in the Swing update Thread). Once you get the hang of that, it is not too difficult…

Then I was asked to add the ability to move points and nodes of the SVG.
Now you can actually do that using inline ECMAScript (ECMAScript it the standardized version of JavaScript). So my first approach was to code everything in inline ECMAScript (to be added programmatically if needed) but I soon discovered that Batik using Rhino 1.6R5 for ECMAScript and Servoy using Rhino 1.6R7 internally for methods didn’t work well together.
[Read More…]

2000 Visits already!

Published by admin on Sunday, August 16, 2009 - 22:22:53 - Filed under General, News, Announcements

I am pleased to see that less than 3 months only after the launch, the Servoy Stuff web site and blog reached today its 2000th visit:
stats2000.gif

You are coming from all over the globe apparently, although I can see that I am especially big in the US, Canada, Spain, the UK and… Holland :))
statMap.gif

So thanks to all of you for visiting!
And keep coming, you will see more exciting stuff no later than… now!

How to access globals and related dataproviders

Published by admin on Tuesday, August 11, 2009 - 05:47:44 - Filed under General, News

I had some nice info from Johan Compagner on the Tano forum, it helped me fix the DateChooserBean’s way of dealing with the globals, - that Gary Dotzlaw also noticed -, because the onDataChange event was not firing correctly when using globals.

I was thinking along that line:

To access a dataProvider’s value by its name, I needed to check if it was contained in the Foundset, so giving that I had access to the record (given by Servoy in the setSelectedRecord() method of the IServoyAwareBean interface), I could then get the IFoundSet using getParentFoundset() of the IRecord interface. Fine for record’s dataprovider (the one from the form’s foundset).

Then I could see in the 5.x public API that the IFoundset was extending the IGlobalValueEntry interface where I could use getDataProviderValue() and setDataProviderValue(), as well as containsDataProvider to test it beforehand. I thought that this mean that I needed to get the foundset to get a global. It seemed logical, knowing that the IRecord interface only have getValue() and setValue() and seems to have no knowledge of the IGlobalValueEntry interface.

Still, nowhere could I see the getter/setter for the related dataProvider values. There is a getRelatedFoundSet(String relationName) in the IRecord interface, but you still need to provide him with the relationName (and possibly recursively gain access to the end FoundSet, but that was going to be tiresome, plus involving some parsing of the dataProvider String…

When in fact, according to Johan, the answer is much simpler even: to access a global, you can retrieve it’s value directly from the IRecord.getValue() and set it through the IRecord.setValue(), and to access a related record’s value, you can do the same. The trick is to use the whole String (including “globals.” or “relationName.secondRelationName.”) in front of the name of the field. The parsing is done by Servoy in the IRecord object instance itself!!!
[Read More…]

Enjoying a little (productive) break!

Published by admin on Friday, August 7, 2009 - 07:01:03 - Filed under General, News, Servoy

Back from holiday, after finishing part 7 of the bean tutorial, I enjoyed a little break: you would think that it’s all about lying in the sun with a beer and a good book, would you?

Instead, I spent a few evenings creating a new and exciting bean (that goes a lot quicker when you don’t have to explain each little step in details in tutorials :) This is still confidential, but hopefully I will soon release this new bean as open source, wait for it!
I also start to playing with… Tano.

This release is really impressive, even for a beta!
There are a few quirks here and there, but that’s expected; not all the features are that necessary but some of them are really must-have, and when I spend the day at work with Servoy 4.1.3, I dream of doing things differently and I already build my new solution with Tano in perspective…
In short, all in all, the engineering team did a grand job!

There are new stuff for everyone, but from the point of view of building plugins and beans the new API sure do look bigger :)
[Read More…]

Tutorial 2 - Part 7: put a Slider in your browser!

Published by admin on Monday, August 3, 2009 - 15:33:00 - Filed under General, News, Announcements, Development, Plugins/beans, Java

Back from holidays with this new part for you: this time our Slider bean will work in a browser just like a real Slider should, with the help of some JavaScript magic :)

It takes some tweaking with JavaScript and some more Java coding of Wicket Behavior to do that, but if you’ve gone this far, the end result will be rewarding enough!

So get ready and download the stuff from the tutorials section of the Servoy Stuff main site and enjoy this new and exciting tutorial.

In the next (and hopefully final) part we will have a look at events handling with call-back to Servoy’s JavaScript methods.

Enjoy!