Re: Entry Points -- can you replace them in module.xml?

2010-04-07 Thread Sripathi Krishnan
I don't know if its possible or not ..

..but there are easier ways to do the same thing. Just create a new
interface MyEntryPoint with a single method onMyModuleLoad. Your real entry
point will just delegate to this method.

Then, use deferred binding in the normal (and simple, easy) way to replace
the appropriate implementation of MyEntryPoint. Should work well without any
complications.


--Sri



On 7 April 2010 20:28, Skyfort  wrote:

> Sorry, I should have mentioned -- the supported_browser property
> already exists in the HTML (created by a JSP) so it's already set. The
> problem seems to be that we can't have a conditional entry point that
> changes class based on a property. Does anyone know if that's true?
>
> On Mar 31, 2:17 am, Peter Simun  wrote:
> > you have to set default value for supported_browser property.
> >
> > 
> >
> > -p-
> >
> > On 30. Mar., 21:21 h., Skyfort  wrote:
> >
> > > Hey all, I am trying to do something like this:
> >
> > > 
> >
> > > 
> > > 
> > > 
> > > 
> >
> > > 
> >
> > > but it gives an ugly error. Is this even a possible thing to do?
> >
> > > Here is the error -- thanks!
> >
> > > [ERROR] Unable to load module entry point class
> > > com.test.client.EntryPoint (see associated exception for details)
> > > java.lang.NullPointerException: null
> > > at java.util.TreeMap.getEntry(Unknown Source)
> > > at java.util.TreeMap.containsKey(Unknown Source)
> > > at java.util.TreeSet.contains(Unknown Source)
> > > at
> > >
> com.google.gwt.dev.cfg.BindingProperty.isAllowedValue(BindingProperty.java:
> > > 63)
> > > at
> > >
> com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:
> > > 120)
> > > at
> > >
> com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue(ModuleSpacePropertyOracle.java:
> > > 65)
> > > at
> > >
> com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java:
> > > 48)
> > > at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
> > > at
> com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37)
> > > at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
> > > at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35)
> > > at com.google.gwt.dev.shell.StandardRebindOracle
> > > $Rebinder.tryRebind(StandardRebindOracle.java:103)
> > > at com.google.gwt.dev.shell.StandardRebindOracle
> > > $Rebinder.rebind(StandardRebindOracle.java:62)
> > > at
> > >
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
> > > 172)
> > > at
> > >
> com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
> > > 114)
> > > at
> com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474)
> > > at
> > > com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> > > 365)
> > > at
> com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318)
> > > at
> > >
> com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:
> > > 343)
> > > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access
> > > $300(BrowserWidgetIE6.java:37)
> > > at
> > >
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:
> > > 77)
> > > at
> > >
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:
> > > 161)
> > > at
> > > com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
> > > 294)
> > > at
> > > com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
> > > 194)
> > > at
> > > org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
> > > 117)
> > > at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
> Method)
> > > at
> org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
> > > at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
> > > at
> > >
> com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:
> > > 235)
> > > at
> > > com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:
> > > 558)
> > > at
> com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
> > > at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google

Re: Entry Points -- can you replace them in module.xml?

2010-04-07 Thread Skyfort
Sorry, I should have mentioned -- the supported_browser property
already exists in the HTML (created by a JSP) so it's already set. The
problem seems to be that we can't have a conditional entry point that
changes class based on a property. Does anyone know if that's true?

On Mar 31, 2:17 am, Peter Simun  wrote:
> you have to set default value for supported_browser property.
>
> 
>
> -p-
>
> On 30. Mar., 21:21 h., Skyfort  wrote:
>
> > Hey all, I am trying to do something like this:
>
> > 
>
> > 
> >         
> >         
> > 
>
> > 
>
> > but it gives an ugly error. Is this even a possible thing to do?
>
> > Here is the error -- thanks!
>
> > [ERROR] Unable to load module entry point class
> > com.test.client.EntryPoint (see associated exception for details)
> > java.lang.NullPointerException: null
> >         at java.util.TreeMap.getEntry(Unknown Source)
> >         at java.util.TreeMap.containsKey(Unknown Source)
> >         at java.util.TreeSet.contains(Unknown Source)
> >         at
> > com.google.gwt.dev.cfg.BindingProperty.isAllowedValue(BindingProperty.java:
> > 63)
> >         at
> > com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:
> > 120)
> >         at
> > com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue(ModuleSpacePropertyOracle.java:
> > 65)
> >         at
> > com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java:
> > 48)
> >         at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
> >         at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37)
> >         at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
> >         at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35)
> >         at com.google.gwt.dev.shell.StandardRebindOracle
> > $Rebinder.tryRebind(StandardRebindOracle.java:103)
> >         at com.google.gwt.dev.shell.StandardRebindOracle
> > $Rebinder.rebind(StandardRebindOracle.java:62)
> >         at
> > com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
> > 172)
> >         at
> > com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
> > 114)
> >         at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474)
> >         at
> > com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> > 365)
> >         at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318)
> >         at
> > com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:
> > 343)
> >         at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access
> > $300(BrowserWidgetIE6.java:37)
> >         at
> > com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:
> > 77)
> >         at
> > com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:
> > 161)
> >         at
> > com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
> > 294)
> >         at
> > com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
> > 194)
> >         at
> > org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
> > 117)
> >         at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> >         at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
> >         at 
> > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
> >         at
> > com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:
> > 235)
> >         at
> > com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:
> > 558)
> >         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
> >         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Entry Points -- can you replace them in module.xml?

2010-03-30 Thread Peter Simun
you have to set default value for supported_browser property.



-p-

On 30. Mar., 21:21 h., Skyfort  wrote:
> Hey all, I am trying to do something like this:
>
> 
>
> 
>         
>         
> 
>
> 
>
> but it gives an ugly error. Is this even a possible thing to do?
>
> Here is the error -- thanks!
>
> [ERROR] Unable to load module entry point class
> com.test.client.EntryPoint (see associated exception for details)
> java.lang.NullPointerException: null
>         at java.util.TreeMap.getEntry(Unknown Source)
>         at java.util.TreeMap.containsKey(Unknown Source)
>         at java.util.TreeSet.contains(Unknown Source)
>         at
> com.google.gwt.dev.cfg.BindingProperty.isAllowedValue(BindingProperty.java:
> 63)
>         at
> com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:
> 120)
>         at
> com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue(ModuleSpacePropertyOracle.java:
> 65)
>         at
> com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java:
> 48)
>         at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
>         at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37)
>         at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
>         at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35)
>         at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.tryRebind(StandardRebindOracle.java:103)
>         at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.rebind(StandardRebindOracle.java:62)
>         at
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
> 172)
>         at
> com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
> 114)
>         at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474)
>         at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 365)
>         at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318)
>         at
> com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:
> 343)
>         at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access
> $300(BrowserWidgetIE6.java:37)
>         at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:
> 77)
>         at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:
> 161)
>         at
> com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
> 294)
>         at
> com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
> 194)
>         at
> org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
> 117)
>         at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>         at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
>         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
>         at
> com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:
> 235)
>         at
> com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:
> 558)
>         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
>         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Entry Points -- can you replace them in module.xml?

2010-03-30 Thread Skyfort
Hey all, I am trying to do something like this:











but it gives an ugly error. Is this even a possible thing to do?

Here is the error -- thanks!



[ERROR] Unable to load module entry point class
com.test.client.EntryPoint (see associated exception for details)
java.lang.NullPointerException: null
at java.util.TreeMap.getEntry(Unknown Source)
at java.util.TreeMap.containsKey(Unknown Source)
at java.util.TreeSet.contains(Unknown Source)
at
com.google.gwt.dev.cfg.BindingProperty.isAllowedValue(BindingProperty.java:
63)
at
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:
120)
at
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue(ModuleSpacePropertyOracle.java:
65)
at
com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java:
48)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:103)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:62)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
172)
at
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
114)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
365)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318)
at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:
343)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access
$300(BrowserWidgetIE6.java:37)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:
77)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:
161)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
294)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
194)
at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at
com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:
235)
at
com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:
558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Entry Points -- can you replace them in module.xml?

2010-03-30 Thread Skyfort
Hey all, I am trying to do something like this:











but it gives an ugly error. Is this even a possible thing to do?

Here is the error -- thanks!



[ERROR] Unable to load module entry point class
com.test.client.EntryPoint (see associated exception for details)
java.lang.NullPointerException: null
at java.util.TreeMap.getEntry(Unknown Source)
at java.util.TreeMap.containsKey(Unknown Source)
at java.util.TreeSet.contains(Unknown Source)
at
com.google.gwt.dev.cfg.BindingProperty.isAllowedValue(BindingProperty.java:
63)
at
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:
120)
at
com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue(ModuleSpacePropertyOracle.java:
65)
at
com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java:
48)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36)
at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:103)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:62)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
172)
at
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
114)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
365)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318)
at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:
343)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access
$300(BrowserWidgetIE6.java:37)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:
77)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:
161)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
294)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
194)
at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at
com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:
235)
at
com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:
558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.