You instantiated the wrong (non-existing) class!
var selist = new Packages.demo.MyJavaSelection();

but your class is named: MySelectionList.java

Greetings, Franzi

> -----Ursprüngliche Nachricht-----
> Von: Dev at weitling [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 25. Juli 2007 10:39
> An: [email protected]
> Betreff: Re: Access to bizData in <fd:on-action><fd:javascript>
> 
> Hi Tobia,
> 
> your solution works like a charm but I became jaunty and tried the
> following:
> 
> --- flowscript ---
> var selist = new Packages.demo.MyJavaSelection();
> 
> form.getChild('mySelectionList').setSelectionList(selist);
> 
> --- MySelectionList.java ---
>     protected boolean build () throws Exception {
>         super.addItem("!!","Hey, you!");
>         super.addItem("??","Who me?");
>         return true;
>     }
> 
> And this results in always in a NullPointerException.
> 
> Do you have any idea? Well, I can surround this, but using
> AbstractJavaSelectionList shouldn't have so many obstacles :-)
> 
> Bye,
> Florian
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to