Hi, beans like JField and JLabel can be placed in the JSForm using the Servoy designer. Can I do this at runtime? How do I dynamically add a JField in a JSForm?
Why would you want to do that when you can add JSField and JSLabel already? - they are much more adapted to Servoy forms than regular Java JField and JLabel!
ptalbot:
Why would you want to do that when you can add JSField and JSLabel already? - they are much more adapted to Servoy forms than regular Java JField and JLabel!
Thanks for the reply. JSField and JSLabel have limitations in their events! I would like to use the listeners of Java on my codes.
Is it possible to dynamically add a JField in a JSForm?
Not with the current API.
Servoy 6 will add the option to add beans on JSForm with the solution model though, so you will probably have to wait for it.
An option in the meantime would be to write a plugin that would unwrap the Java component from JSField and JSLabel and give direct access to it in Servoy.
ptalbot:
Not with the current API.
Servoy 6 will add the option to add beans on JSForm with the solution model though, so you will probably have to wait for it.An option in the meantime would be to write a plugin that would unwrap the Java component from JSField and JSLabel and give direct access to it in Servoy.
Ok, thanks for advice!