FAQ
A compilation of little known (but useful) facts about Servoy.
Just click on the question to get the answer:
- What is Servoy build of? What is Servoy Java stack?
In version 4.1.x, there is:
Servoy Server Stack:
- Apache Tomcat 6.0 application server, with a custom bootstrap
- Apache commons : codec, collections, dbcp, fileupload, httpclient, logging, pool
- mail.jar et activation.jar : javax.mail
- Rhino 1.6
- Dom4J 1.6.1
- Oracle HELP 4.2.6
- Hibernate 3.2.3.ga (ORM)
- Jabsorb 1.3 (remote invocation of java methods from javascript)
- Jmx (management)
- Jni (native invocation)
- Joda-time (time lib)
- Jta 1.0.1 (transaction management)
- Jug (java Uuid generator)
- Log4J
- MRJAdapter (early mac JVM adapter)
- Sebster.com 2.0.5 (tunnel lib)
- Oracle Bali 4.2.21
- Oracle Ice Browser 5.2.3.3
- org.slf4j 1.3.1/1.4.2
- Wicket 1.3.x
Servoy Developer:
- Eclipse 3.3 (europa)
- DLTK Core
- DLTK JavaScript
- JDT
- GEF
Servoy client:
- Jcifs (ntlm)
- http client 4
- org.slf4j
- Which built-in Servoy plugins are web compatible?
I have tested them all in Servoy 4.1.x!
And the winners (web compatible) are:
- amortization
- file*
- http
- images
- jasperPluginRMI
- mail
- popupmenu
- rawSQL
- scheduler
- serialize
- udp
- XmlReader
The losers are:
- agent
- dialogs
- excelxport
- kioskmode
- menubar
- pdf_output
- spellcheck
- textxport
* Most of the methods of the file plugin are web compatible (they don't have a UI), but calls to showDirectorySelectDialog, showFileOpenDialog and showFileDialog will simply be ignored.
- Which built-in Servoy plugins jar contains Java sources?
- agent.jar
- mortization.jar
- default_validators.jar
- dialog.jar
- http.jar
- mail.jar
- pdf_output.jar
- popupmenu.jar
- rawSQL.jar
- scheduler.jar
- serialize.jar
- xmlreader.jar
And of course you can obtain the sources of the servoy_jasperreports plugin with subversion from the
google code project
- How do you open different resources from different solutions in Servoy developer Eclipse?
If you use the Navigator view (Window -> Show View -> Other... then General -> Navigator - you can drag it in the same pane as the Servoy "Solution Explorer"), you can open as many resources as you want, even if the solutions/modules are not related/open in the solution explorer.
Just remember that .obj = a Servoy "object" (a form or a field on a form, a relation, etc.) and .js are the scripts. You can open them!
At first it can seem a bit confusing but you will quickly learn to navigate inside your solutions this way, knowing that each solution will appear as a project folder.
In the project folder , you will likely find "solution_settings.obj" (the solution identifier), "globals.js" (your globals functions and vars), "rootmetatdata.obj" (your solution preferences).
You will also find a few folders with self explanatory names : "forms", "medias", "relations", "valuelists" (there is alos ".stp" which containes Developer cache files.
In the "forms" folder, you will find a "xxxx.obj" file and a corresponding folder for each forms, the .obj here is your form, open it and it will open just like it would if you choose "Open in form designer".
In the corresponding folder, you will find a xxxx_method.js for your method forms and plenty of ".obj" files for each of the object on your form, some of them with the names you gave, some of them with a generic name "sv_" + the Uuid of he object + ".obj", they all are property files (they look like some kind of JSON serialized form to me).
So that's how you will be able to open as many objects, forms, scripts as you like, related or not!
You can also use "Working set" in the Navigator view: they are a powerful way of organizing your projects in the Navigator (or Java Package) view, when you have lots of solutions and want to avoid the clutter they help grouping projects together.
- How to get rid of a background previously set on a form?
Something really annoyed me the other day was when I discovered that there was no straightforward way to get rid of a background previously set on a form.
I was doing some experiments with some beans "transparent" flag, and wanted to check the result so I set a color to my form, but when I finished and wanted to get back to the default (none), I discovered that it was not possible...
I HAD to choose a color.
SOLUTION ONE
I used the "edit forms obj trick":
In the "Navigator" Eclipse pane, open the solution folder, then the "forms" folder, then the folder with the name of the forms you want to edit...
Once in there, you will have to double-click on the "sv_.....obj" files until the "body" element is selected.
Now right-click, and choose "Open with... Text editor", you will see that the (usually) first line is: background:"#thecolor"
Now, all you have to do is delete this entire line, save the file, and you're back with the "DEFAULT" background.
Note that in general, you can manually edit everything in these files and the result will be reflected immediately in the forms editor.
Just take care not to change of delete the "uuid:xxxxx" line, otherwise you element will be lost!
SOLUTION TWO
A little while later, I also found out that the Eclipse properties pane has a "Restore Default Value" button on the top right corner:
SOLUTION THREE
Right click the properties 'Background' and select 'Restore Default Property'
- Thanks to Ian Cordingley for pointing it to me!
- Why signed plugins/beans?
Java 6 update 19/20 introduced a new constraint for third party beans/plugins: every jar used must now be signed to be loaded inside the signed Servoy environment (no more mixed code!).
To know more about it, check Servoy WIKI.
I have made available a signed* version of all the plugins/beans that you will find on their related page.
* The certificate have been provided thanks to the generous offer of Certum CA, a trusted Certificate Authority approved by SUN in the JVM.
- What are the L&F properties available and their default values?
If you want to explore Java Look & Feels, I have made a little utility that will output all the default values for the Look & Feel installed on your System.
You can download it here (rename to uidefault.jar if necessary).
To use, simply double-click on it or type "java -jar uidefaults.jar" on the command line.
It will create a folder "L&F" containing one html file for each Look & Feel present on your system, with a html table containing all the properties of this Look & Feel and their default values.
- Where is the signtester tool?