Servoy Stuff - Home of all Servoy related stuff!


busy JSDoc keyListeners whois VelocityReport
BrowserSuite DateChooserBean DnDFileBean SliderBean SVGBean







Archive



Others




You will find here other types of project downloads.


I call "Other" everything that is not Servoy beans, plugins or tutorials, so any "special" project still aimed to work with/in Servoy.

 

Auto Menus solution

v 0.1

This one is a sample solution/work in progress that I thought would be of interest to some of you.

It is aimed to show the use of the popupmenu plugin, which allows here (with the help of the solutionModel and the web_client_utils plugin) to build a navigation/menu system automatically, driven by a database.

 

The cool thing about it is that it is web compatible (meaning that the same navigation/menus will be available in the Smart AND the Web client).

 

You will find that it is i18n aware (I have included a "messages" table with key/values for the menu in English -default- and French).

 

You will also find that you can use security for each menu by defining which groups are allowed: it fully uses the Servoy built-in security groups.
By default, if no group is set, a menu is available to everyone, otherwise it will be available only to users of the related groups.

 

Of course the security is only used if you check the "mustAuthenticate" checkbox on the solution properties (meaning that a user has been authenticated)!

 

I have included a "manage menus" form, but it is still very rough:
- the i18n values are shown untranslated,
- there is no check for self relation or illogical relations which could cause infinite loops,
- there is no way to add/delete a menu,
- the values are not updated in real time since the creation of the menus is done in the onOpen of the solution.

Still, you can manage groups for each menu (add/delete) related groups and see what is happening, the principle is here and I leave you to code this thing properly.

 

One issue is also that, although the structure allows for more than 2 levels of menu, the popupmenu plugin itself seems to be limited to only 2 in the web client :{

 

Anyway, the best thing is to try it out, download the solution file (rename with the .servoy extension if needed), and import in Servoy...
All the code is located in globals.js - along with a few utilities method that you might like too (like a maximize window function working in Smart AND Web client), so check the scripts, it's all in there!
- That's because I will probably make a Servoy 3.5 version too, if there is anyone interested...

 

Downloads

Note that you will need to setup an empty "tests_servoy" datasource, and to check the i18n messages, set "tests_servoy.messages" as your default i18n source/table.

 

Servoy-Click Client

v 0.1

This one is a pet project of mine posted here for the curious and adventurous mind (see this blog post for an introduction on what this is about).

 

You've heard about the Smart-Client, the Web-Client, The Headless-Client, etc., now I give you the Click-Client!

 

It is a basic (yet!) integration of the nice web java framework "Apache Click".
- For those of you who never heard of it, you can go visit the home of Click, recently hosted in the Apache Incubator.

 

More a proof of concept than a real usable tool as such - still this project should be able to open your mind to different and powerful ways of using Servoy as a development tool.

 

The whole idea behind it is: forget about JSP (it is an outdated technology not worthy of Servoy anyway); when building headless pages, use a full fledged Java Web Framework instead!

 

Downloads

  • - a PDF walkthrough/tutorial on how to install/use the beast in Servoy
     
  • - a complete Eclipse project with full sources and related libs (based on Click 1.5.1) to build it yourself and play with the concept
     
  • - a pre-built war file to drop into your
    /$servoy_install_dir$/application_server/server/webapps/ folder (rename to ".war" if IE decided that it was a zip file when it's not!)
     
  • - a sample Servoy solution to go with it (based on Servoy's canonical "headless_client_demo", but slightly modified) - unzip and import

 

Give it a try!

It's new, it's fresh, it is a different way of seeing Servoy, and it's not even complicated to install and use (see the tutorial).

 

And don't forget to send me your comments, I'd love to have your feedback on this thing!