Re: Re : Re: [gwt-contrib] HasRequestContext and 2.3.0rc1

2011-04-28 Thread Patrick Julien
Thanks Thomas, I'm starting to think you know all 6000~ tickets in the
issue tracker from memory.  However, I was only pointing it out here,
this is a nice feature to have since this was a 2.2 code base where I
was propagating the RequestContext myself

On Thu, Apr 28, 2011 at 2:44 PM, Thomas Broyer  wrote:
> I believe you're experiencing this
> issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=6016
> You're probably running into it because you implement both IsEditor and
> Editor (through HasRequestContext), so the "link" between the parent editor
> and an instance of AchievementDefinitionTable now generates two
> EditorContext-s, or actually should do so, but both are being tentatively
> generated using the same class name, so the other actually reuses the first
> class, whic obviously doesn't use the apropriate types.
> As a workaround, IIRC, you can try replacing IsEditor with a subeditor with
> @Path("")
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors

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


Re : Re: [gwt-contrib] HasRequestContext and 2.3.0rc1

2011-04-28 Thread Thomas Broyer
I believe you're experiencing this 
issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=6016
You're probably running into it because you implement both IsEditor and 
Editor (through HasRequestContext), so the "link" between the parent editor 
and an instance of AchievementDefinitionTable now generates two 
EditorContext-s, or actually should do so, but both are being tentatively 
generated using the same class name, so the other actually reuses the first 
class, whic obviously doesn't use the apropriate types.
As a workaround, IIRC, you can try replacing IsEditor with a subeditor with 
@Path("")

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

Re: [gwt-contrib] HasRequestContext and 2.3.0rc1

2011-04-28 Thread Patrick Julien
The log is this:

Compiling module net.odgn.plasma.Plasma
   Scanning for additional dependencies:
file:/C:/Users/pjulien/Documents/odgn/bin/plasma/src/net/odgn/plasma/client/presenter/admin/game/ui/EditGameView.java
  Adding '17' new generated units
 Validating newly compiled units
[ERROR] Errors in
'generated://3AE2F7E937C7B6ED6978FDAF26D34D18/net/odgn/plasma/client/presenter/admin/game/ui/EditGameView_RequestFactoryEditorDelegate.java'
   [ERROR] Line 62: The constructor
EditGameView_possibleAchievements_Context(GameDefinitionHandle,
AchievementDefinitionTable, String) is undefined
   See snapshot:
C:\Users\pjulien\AppData\Local\Temp\net.odgn.plasma.client.presenter.admin.game.ui.EditGameView_RequestFactoryEditorDelegate4638522755171937904.java
   [ERROR] Errors in
'generated://3AE2F7E937C7B6ED6978FDAF26D34D18/net/odgn/plasma/client/presenter/admin/game/ui/EditGameView_RequestFactoryEditorDelegate.java'
  [ERROR] Line 62:  The constructor
EditGameView_possibleAchievements_Context(GameDefinitionHandle,
AchievementDefinitionTable, String) is undefined
   [ERROR] Cannot proceed due to previous errors

I am trying with this:

public final class AchievementDefinitionTable extends Composite
implements IsEditor>,
HasRequestContext {

or this:

public final class AchievementDefinitionTable extends Composite
implements IsEditor>,
HasRequestContext> {

Removing HasRequestContext fixes the error


On Thu, Apr 28, 2011 at 12:44 PM, BobV  wrote:
> On Wed, Apr 27, 2011 at 10:56 PM, Patrick Julien  wrote:
>> How does this actually work?
>
> class MyEditor implements HasRequestConext {
>  // HasRequestContext extends the Editor interface
> }
>
>> If I implement HasRequestContext anywhere, the containing request
>> factory editor driver that is generated no longer compiles, saying
>> that there is a missing constructor
>
> Can you attach the log output?  What is the type declaration for the
> offending Editor class?
>
> --
> Bob Vawter
> Google Web Toolkit Team
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors

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


Re: [gwt-contrib] HasRequestContext and 2.3.0rc1

2011-04-28 Thread BobV
On Wed, Apr 27, 2011 at 10:56 PM, Patrick Julien  wrote:
> How does this actually work?

class MyEditor implements HasRequestConext {
  // HasRequestContext extends the Editor interface
}

> If I implement HasRequestContext anywhere, the containing request
> factory editor driver that is generated no longer compiles, saying
> that there is a missing constructor

Can you attach the log output?  What is the type declaration for the
offending Editor class?

-- 
Bob Vawter
Google Web Toolkit Team

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


[gwt-contrib] HasRequestContext and 2.3.0rc1

2011-04-27 Thread Patrick Julien
How does this actually work?

If I implement HasRequestContext anywhere, the containing request
factory editor driver that is generated no longer compiles, saying
that there is a missing constructor

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