You should have access to the methods in DatePickerComponent through
MonthSelector, at least it appears so in Eclipse and in my test case.

Also, howa re you setting the internal datePicker field?
DatePickerComponent#setDatePicker() is package protected, so I don't see how
you can be calling it.  It looks like you would need to override all of the
methods in DatePickerComponent for it to work.  I agree that we need to make
DatePickerComponent public, or at least make setDatePicker() protected.

If you send me the code for SDTMonthSelector, I'll take a closer look.

Thanks,
John LaBanca
[email protected]


On Thu, Mar 5, 2009 at 8:01 AM, nicolas de loof <[email protected]>wrote:

> Hi,
> I try to customize the GWT 1.6 DatePicker and I've created a
> "STDMonthSelector" that extends MonthSelector
>
> I the get this error running the hosted browser. It seems some
> securityController checks me trying to access methods
> in DatePickerComponent, but according to Java type hierarchy this is
> expected to be valid. Is there some curious limitation with this ? In such
> case, why isn't DatePickerComponent public ?
>
> Cheers,
> Nicolas
>
> My stacktrace :
>
> [FATAL] Uncaught Exception:
>
> java.lang.IllegalAccessError:
>
> tried to access class
> com.google.gwt.user.datepicker.client.DatePickerComponent from class
> com.myapp.ui.baseComponent.SDTMonthSelector
>
> at com.myapp.ui.baseComponent.SDTMonthSelector.access$3(*
> SDTMonthSelector.java:1*)
>
> at com.sfr.myapp.ui.baseComponent.SDTMonthSelector$3.onChange(*
> SDTMonthSelector.java:195*)
>
> at com.google.gwt.event.dom.client.ChangeEvent.dispatch(*
> ChangeEvent.java:54*)
>
> at com.google.gwt.event.dom.client.ChangeEvent.dispatch(*
> ChangeEvent.java:1*)
>
> at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(*
> HandlerManager.java:65*)
>
> at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(*
> HandlerManager.java:53*)
>
> at com.google.gwt.event.shared.HandlerManager.fireEvent(*
> HandlerManager.java:178*)
>
> at com.google.gwt.user.client.ui.Widget.fireEvent(*Widget.java:51*)
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to