toolbar.validate() = NullPointerException

Forum to discuss the Web client version of Servoy.

toolbar.validate() = NullPointerException

Postby stefanoni » Fri Oct 29, 2010 11:27 am

Hello
Exercising arround with ToolBar I get NullPointerException at the code-line oTb.validate().
But only in webclient (Version: 5.2.2 - build 1002)

Code: Select all
function onSolutionOpen() {
var oTb = plugins.window.addToolBar("toolbar1")
var oTb = plugins.window.getToolBar("toolbar1")
oTb.addButton("Hello", func1)
oTb.validate();                                   // the NullPointerException  !!
}

Thank you for any ideas what's wrong.
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: toolbar.validate() = NullPointerException

Postby ptalbot » Sat Oct 30, 2010 3:00 am

The reason is simple: toolbars are not web compatible!
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: toolbar.validate() = NullPointerException

Postby stefanoni » Sat Oct 30, 2010 12:46 pm

Oh my god ... thank you.
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 6 guests