Re: EventBus in 2.4

2011-08-04 Thread will0
I've filed an issue. 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6653

Should be an easy fix - just changing the import in Activity would do it I 
imagine.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/sbOLnnCLtAUJ.
To post to this group, send email to google-web-toolkit@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: Getting absolute paths an Editor from a Violation picked up from RequestContext onViolation

2011-07-08 Thread will0
I guess because I was using SimpleBeanEditorDriver which doesn't have that 
method (until 2.4 is released I now see). Thanks for pointing it out.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5C6SsxZygYUJ.
To post to this group, send email to google-web-toolkit@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.



Getting absolute paths an Editor from a Violation picked up from RequestContext onViolation

2011-07-08 Thread will0

I'm using round-trip validation for my entities - i.e. I pick up any 
violations from RequestContext.onViolation then populate errors in the UI 
via an EditorVisitor.
This mostly works well except I can't figure out how to get absolute paths 
of sub-editors from a violation.

In my EditorVisitor I've had to implement a hack to get the last section of 
the path:

  public  void endVisit(EditorContext ctx) {
String path = ctx.getAbsolutePath();

//here's the hack
if (path.contains(".")) {
  path = path.split("\\.")[1];
}

for (Violation violation : errors) {
  if (path.equals(violation.getPath())) {
ctx.getEditorDelegate().recordError(violation.getMessage(), null, null);
  }
}  
  }

Clearly this will cause issues when sub-editors and editors have the same 
property names. Does anyone know if there's a way to work out the absolute 
path of an editor from a violation?

Thanks,

Will

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/qVcMjKfSy78J.
To post to this group, send email to google-web-toolkit@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: "secure" widgets

2011-07-08 Thread will0
In protecting the data as David rightly suggests, you can protect the UI by 
returning SC_UNAUTHORIZED if an unauthenticated user attempts to access any 
remote service. I've overridden the RequestFactory onResponseReceived 
function which redirects to a login page if the response is SC_UNAUTHORIZED.

See my answer on StackOverflow:
http://stackoverflow.com/questions/6508238/gwt-authentication-for-some-part-of-application-using-gwt-login-page/6511218#6511218

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dyG-MeKIFnQJ.
To post to this group, send email to google-web-toolkit@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: Is it required to update Eclipse to update GWT ??

2011-06-13 Thread will0
Nope, you can use Eclipse 3.5 
http://code.google.com/eclipse/docs/install-eclipse-3.5.html

Or 3.4
http://code.google.com/eclipse/docs/install-eclipse-3.4.html

Or the nice people at google even support 3.3
http://code.google.com/eclipse/docs/install-eclipse-3.3.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/7_9bdb3AAGIJ.
To post to this group, send email to google-web-toolkit@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.



Cancelling RequestContext.create()

2011-05-26 Thread will0
Dear all,

Considering the following common data structure:
ParentProxy {
   ...
   List 
}

In our app, the user may change and add a number of ChildProxies as well as 
ParentProxy properties, then save everything.

When I'm creating a new ChildProxy, I call ParentRequestContext.create() to 
obtain this, which registers this with the RequestContext. This is then 
passed to an editor, flushed and added to the editor hierarchy.
The whole hierarchy is then flushed and persisted.

This works well, except I cannot handle the case when a new ChildProxy is 
requested but this is then cancelled - the RequestContext will send a 
ChildProxy with null values.

So -- is there a way to cancel a pending create?
Otherwise the only workaround I can think of is to utilize a separate 
RequestContext to create a "detached" ChildProxy and edit then flush this.
Then all being well, the to-be-persisted ChildProxy would be obtained 
from ParentRequestContext,create and I'd use AutoBeanUtils to copy the 
detached state to the new proxy.

Thanks,

Will

-- 
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-toolkit@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: FieldUpdater within CellTable still cannot update EntityProxy

2011-04-13 Thread will0

On Apr 13, 2:01 pm, Thomas Broyer  wrote:
> This is "by design". The editor framework is built around a "flow
> synchronization" 
> pattern,
> where you only modify the edited object when you flush() the editor (each
> internal HasDataEditor.IndexedEditor is given an editable proxy).
> This means you'd have to push changes into a queue and apply all of them on
> flush(); similar to how the CellSampler sample 
> works:http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler
> This can hardly be entirely automated... (but there sure is room for
> improvement!)


Ok thanks Thomas.  I must admit I can't see the point of disallowing
direct editing like this.
Couldn't this be done via
myHasDataEditor.getEditors().get(index).setValue(someProxy)?

-- 
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-toolkit@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.



FieldUpdater within CellTable still cannot update EntityProxy

2011-04-13 Thread will0
Hello

Myself and others have been struggling with updating values in CellTable 
that is part of an editor hierarchy via a HasDataEditor. Essentially the 
AutoBean provided to the FieldUpdater is frozen.  The Autobeans held by 
Editors obtained from ListEditor.getEditors() are also frozen.

I'm finding this in 2.3 M1 beta but it was apparently present in 2.1 and 
2.2.

It would be great to get resolution on issue 5981 so myself and probably 
others know how to proceed.

Link to issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5981

Link to discussion that brought the issue up:
https://groups.google.com/d/topic/google-web-toolkit/j2U5C1UsCL4/discussion

Thanks,

Will Temperley

-- 
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-toolkit@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: TextInputCell and escaping of apostrophes

2011-04-12 Thread will0
Good news - thanks Thomas!

-- 
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-toolkit@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.



TextInputCell and escaping of apostrophes

2011-04-12 Thread will0
Hi - anyone know is there a way to avoid TextInputCells within CellTables 
from escaping their input when being rendered?  I'm having issues with 
author names having apostrophes in their names escaped.

2.3 M1 Beta 

Thanks

Will

-- 
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-toolkit@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: RequestFactory : Persisting List of Child EntityProxies : setting Child Properties to null.

2011-04-05 Thread will0

If you're using the method of obtaining the EntityManager that Google
suggest in:
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

i.e.
  public static final EntityManager entityManager() {
return EMF.get().createEntityManager();
  }

This won't work. RequestFactory will be obtaining the Child and Parent
objects from different EntityManagers (yep total pain I know).
This means your Child proxies will have had their properties set in
different instances in a different EntityManager which you won't be
able to see.

I got round this by writing a ServiceLayerDecorator that obtains
EntityManagers via Guice persist, but there are probably simpler
methods.

Personally I think the RF documentation is very misleading - it states
"Changes to related entities can be persisted in a single request."
Yes, if you completely change the default behaviour of RF + JPA with
significant difficulty.

See:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5389
http://code.google.com/p/google-web-toolkit/issues/detail?id=5724
http://code.google.com/p/google-web-toolkit/issues/detail?id=5776

Have fun,

Will


On Apr 4, 5:35 pm, Thomas Broyer  wrote:
> Most likely the properties for the children will be set *after* the children
> have been given to their parent; something like:
>
>    1. create parent
>    2. create child A
>    3. create child B
>    4. set parent properties (including "empty" children objects A and B)
>    5. set child A properties
>    6. set child B properties
>
> What matters is what your service method receives as argument. But yes, it
> means your setChildren() in the parent object cannot make a copy of the
> children objects (it can make a shallow copy of the list though) or rely on
> any of their properties.

-- 
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-toolkit@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: Why does CellTable hold on to AsyncDataProvider instances ?

2011-02-11 Thread will0
Great, thanks, that's what I was looking for.

Just this wasn't immediately obvious to me, perhaps because it wasn't 
mentioned in the docs:
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#data-provider

Best,

Will

-- 
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-toolkit@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.



Why does CellTable hold on to AsyncDataProvider instances ?

2011-02-11 Thread will0

Hi All 
I've got a fairly standard gwt 2.1.1 setup, a CellTable which is controlled 
by an Activity. Each time the Activity is instantiated on a place change, 
this creates a new AsyncDataProvider.

It appears the CellTable keeps a reference to _all_ the AsyncDataProviders 
it has ever come across. The effect is that when a CellTable has seen 
multiple Activities, it fires onRangeChange on each of these 
AsyncDataProviders, even though I no longer have a reference to these.

Is this supposed to happen?  I can understand wanting multiple displays for 
a DataProvider, but I can't see a reason for the inverse.

Best regards

Will Temperley

-- 
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-toolkit@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: How to use ListEditor> for a list?

2011-01-26 Thread will0
Hi Bálint,

Glad that works.
With the persist() magic, I don't know what libraries you're using
server side, but when you're editing collections with RequestFactory,
you've got to be really careful you're always dealing with the same
Session / EntityManager / SomeDataAccessMethod.
e.g.:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5389

Cheers

Will



On Jan 25, 8:00 pm, Bálint Kriván  wrote:
> Thanks Will!
>
> This is exactly what I needed! It's better with CellTable instead of
> , because I can use the DatePickerCell, it looks pretty good!
> The data is shown, it can be edited, but the persist() magic doesn't work,
> hopefully it will!
> Thanks again, your advice was a great help!
>
>
>
>
>
>
>
>
>
> On Tue, Jan 25, 2011 at 7:48 PM, will0  wrote:
> > Hi Bálint,
>
> > I don't know how to to this with a select box (I'm sure it's
> > possible), but the editor framework is designed to work with the
> > CellList I believe.
>
> > Say you had a list defined on the entity you want to edit, e.g.:
> >   List listOfProxies
>
> > If you put a HasDataEditor in your editor hierarchy, e.g.:
> >    HasDataEditor listOfProxies = HasDataEditor.of(CellList cellList),
>
> > The cellList will then automatically get populated with the list.
> > (Caveat- have done this with CellTable, but not CellList, but should
> > work fine).
>
> > Then you can use the ListEditor methods (on the HasDataEditor) to
> > manipulate the list.
>
> > Best,
>
> > Will Temperley
>
> > On Jan 25, 5:00 pm, Bálint Kriván  wrote:
> > > Nobody can throw light on this? I really would like to use the Editor
> > stuff
> > > for the List<> objects aswell.
>
> > > 2011/1/19 Bálint Kriván 
>
> > > > Hi!
>
> > > > I would like to have a  html select box, showing the
> > > > values in the list. How can I accomplish this? It would be great if I
> > remove
> > > > one option from the select, it would get removed from the editor
> > aswell, as
> > > > it should work (adding as well). I've googled, but I couldn't find any
> > real
> > > > world examples for this. Can anybody show a snippet?
>
> > > > --
> > > > Üdv,
> > > > Kriván Bálint
>
> > > --
> > > Üdv,
> > > Kriván Bálint
>
> > --
> > 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-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Üdv,
> Kriván Bálint

-- 
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-toolkit@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: How to use ListEditor> for a list?

2011-01-25 Thread will0
Hi Bálint,

I don't know how to to this with a select box (I'm sure it's
possible), but the editor framework is designed to work with the
CellList I believe.

Say you had a list defined on the entity you want to edit, e.g.:
   List listOfProxies

If you put a HasDataEditor in your editor hierarchy, e.g.:
HasDataEditor listOfProxies = HasDataEditor.of(CellList cellList),

The cellList will then automatically get populated with the list.
(Caveat- have done this with CellTable, but not CellList, but should
work fine).

Then you can use the ListEditor methods (on the HasDataEditor) to
manipulate the list.

Best,

Will Temperley



On Jan 25, 5:00 pm, Bálint Kriván  wrote:
> Nobody can throw light on this? I really would like to use the Editor stuff
> for the List<> objects aswell.
>
> 2011/1/19 Bálint Kriván 
>
> > Hi!
>
> > I would like to have a  html select box, showing the
> > values in the list. How can I accomplish this? It would be great if I remove
> > one option from the select, it would get removed from the editor aswell, as
> > it should work (adding as well). I've googled, but I couldn't find any real
> > world examples for this. Can anybody show a snippet?
>
> > --
> > Üdv,
> > Kriván Bálint
>
> --
> Üdv,
> Kriván Bálint

-- 
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-toolkit@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.



Clarification on RequestFactory and one-to-many relationships

2010-11-22 Thread will0
Please could someone confirm whether or not updates to one-to-many
relationships are supported by RequestFactory?

For example, I have a class named Survey which relates to a list of
SurveyReplicates (see code below).  My app edits both the Survey and
the SurveyReplicates then sends the whole lot to the server:

@Entity
public class Survey {
.

@OneToMany(mappedBy="survey", fetch=FetchType.EAGER,
cascade=CascadeType.ALL)
public List getSurveyReplicates() {
return surveyReplicates;
}

private Site site;
@ManyToOne(cascade=CascadeType.MERGE, fetch=FetchType.EAGER)
public Site getSite() {
return site;
}
}

The behaviour I have observed is when persist is called on the parent
object Survey, no updates to the SurveyReplicates arrive in the domain
object (checked several times through examining the object graph when
debugging). The JSON sent to the server _does_ however contain the
updates to the SurveyReplicates. Updates to the Survey  do arrive, as
do updates to the related Site object.

It would seem to be odd behaviour if these updates were not meant to
reach the domain object, given the editor framework supports editing
object graphs like this and these updates are sent to the server.

I'm using GWT trunk (19th November), but saw the same behaviour in
2.1.0.

Thanks

Will Temperley

-- 
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: problem while saving entity with collection while using RequestFactory :"sideEffects":{"DELETE"

2010-11-19 Thread will0
Hi

I'm having the same problem. I have a class named Survey which
contains a list of SurveyReplicates (see code below).  My app edits
both the Survey and the SurveyReplicates then sends the whole lot to
the server.

@Entity
public class Survey {
.

@OneToMany(mappedBy="survey", fetch=FetchType.EAGER)
public List getSurveyReplicates() {
return surveyReplicates;
}
}

Much like the OP, when persist is called on the parent object Survey,
none of the survey replicates are persisted.  A little debugging shows
that none of the updates arrive in the SurveyReplicates in the
persist() method on Survey, however the JSON sent to the server
contains the updates to the SurveyReplicates.  Updates to the Survey
do arrive.

I wonder if anyone could tell me if persisting object graphs with one-
to-many relationships is supported?
I'm using GWT tip-of-trunk, but saw the same behaviour in 2.1.0.

Thanks

Will Temperley


On Nov 11, 2:49 pm, agi  wrote:
> Hello,
>
> I've started to useRequestFactoryin my project, but I have following
> problem.
>
> I have  Classes
>
> class Professor
> {
> @ManyToMany(...)
>  List subjects;
> ///setters getters etc
>
> }
>
> I  have created all needed architecture (Proxys, Requests etc)
>
> In my application I do :
> 1) I am fetching List of all Subjects  from the database.
>  final SubjectRequest request =requestFactory.subjectRequest();
>   request.findAll().fire( new Receiver>() ...
>
> It works just fine.
>
> 2) Then I am creating new instance of Professor
>
>       request =requestFactory.professorRequest();
>       professor = request.create( ProfessornProxy.class );
>      professor.setSubjects(new ArrayList());
>
>      // subject is taken from the list which was downloaded before
>     professor.getSubjects().add(subject);
>
> 3) then i want to save it into database
>
> request.save().using( professor ).fire( new Receiver() ...
>
> 4) Unfortunately the list of subjects isn't propagated to the server
> side.. When I look on Professor class in the debug on the server side
> I see only empty array. So the  Professor is saved into database but
> without any dependencies to Subjects
>
> Besides on FireBug console in POST Responce I see message
>
> {"result":null,"sideEffects":{"DELETE":[{"!
> id":"org.test.subjectpr...@185"}]},"related":{}}
>
> Can somebody tell me what I am doing wrong? and how to save Professor
> class properly with all lists?
> I have also tried to use with("subjects") but it didn't help..
>
> greetings,
> agata

-- 
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: Driver Best Practices with CheckBox and RadioButtons

2010-11-09 Thread will0


On Nov 2, 4:00 am, jefe  wrote:
> All,
>
> After reviewing the GWT 2.1 Editor/Driverfeatures I've found uses
> fields like TextBox or DoubleBox but nothing pertaining to concepts
> such as CheckBox or RadioButton. Are there any specific best practices
> for providing binding between a bean and a group of radio buttons or a
> checkbox?
>
> Any insight would be appreciated.
>
> Thanks,
> Jeff


Hi Jeff

I can't be authoritative on best practice, however I've got a few
widgets that wrap GWT widgets (TextBox and ListBox) which edit simple
values such as Strings and Integers.
I just make them implement LeafValueEditor and they work in the
same way as a GWT widget does with the editor framework.

For example :
"""
public class CharField extends FormRow implements
LeafValueEditor {
..
@Override
public String getValue() {
return tb.getValue();
}

@Override
public void setValue(String value) {
setValue(value, false);
}
}
"""

Cheers

Will

-- 
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: UiBinder fails after upgrading to gwt 2.1.0

2010-11-04 Thread will0
Same issue as pgraham on Ubuntu 10.04, eclipse 3.6.
This doesn't happen for eclipse 3.5 on the same machine. It also works
on Windows 7 ultimate 64bit, eclipse 3.6.


On Nov 4, 3:36 am, Richard Berger  wrote:
> OK, this won't help much, but... I was having the same problem just
> going through some basic tutorial using UiBinder andGWT2.1.  So, I
> redid everything, writing down each step - and, of course, the problem
> vanished.
>
> So, there exists the possibility that2.1and UiBinder do actually
> work together.
>
> I can only offer the truly lame suggestion of restarting Eclipse to
> clean up any old invocations of the dev server.
>
> Good luck,
> RB
>
> On Nov 3, 8:34 am, pgraham  wrote:
>
>
>
>
>
>
>
> > Update:
>
> > I have commented out all code in the two files listed above so that
> > they are as follows:
>
> > MainMenu.ui.xml:
>
> >  >     xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
> > 
>
> > MainMenu.java:
>
> > public class MainMenu extends Composite {
>
> >     interface Binder extends UiBinder {}
>
> >     private static Binder uiBinder =GWT.create(Binder.class);
>
> >     public MainMenu() {
> >         initWidget(uiBinder.createAndBindUi(this));
> >     }
>
> > }
>
> > When I do this I get the same error so it is not related to the
> > content.
>
> > At this point I am thinking that there is a version conflict with
> >xerces.  Does anyone know if Dev Mode relies onxercesto parse
> > *.ui.xml files and if so which version?
>
> > NOTE:  I am using thegwt-maven-plugin to compile the app and it works
> > fine if I compile it and deploy it in Tomcat
>
> > Thanks,
> > Philip
>
> > On Nov 2, 1:54 pm, pgraham  wrote:
>
> > > MainMenu.ui.xml:
>
> > >  > >     xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
> > >      > > type="org.sitebrand.ui.gwt.resources.UiResources.MainMenuCss" />
> > >      > > type="org.sitebrand.ui.gwt.resources.MainMenuLbls" />
> > >      > > type="org.sitebrand.gwt.constants.DebugConstants" />
>
> > >     
> > >          > > debugId="{debugIds.menuitem_campaigns}" text="{lbls.campaigns}">
> > >             
> > >                  > >                     text="{lbls.createCampaign}" />
> > >                  > >                     text="{lbls.viewCampaigns}" />
> > >                  > >                     text="{lbls.campaignPriority}" />
> > >                  > >                     text="{lbls.reports}" />
> > >             
> > >         
>
> > >          > > debugId="{debugIds.menuitem_content}" text="{lbls.content}">
> > >             
> > >                  > >                     ui:field="createContent"
> > >                     text="{lbls.createContent}" />
> > >                  > >                     ui:field="viewContent"
> > >                     text="{lbls.viewContent}" />
> > >                  > >                     ui:field="integrate"
> > >                     text="{lbls.integrate}" />
> > >             
> > >         
>
> > >          > > debugId="{debugIds.menuitem_segments}" text="{lbls.segments}">
> > >             
> > >                  > >                     ui:field="createSegment"
> > >                     text="{lbls.createSegment}" />
> > >                  > >                     ui:field="viewSegments"
> > >                     text="{lbls.viewSegments}" />
> > >             
> > >         
>
> > >          > > debugId="{debugIds.menuitem_layout}" text="{lbls.layout}">
> > >             
> > >                  > >                     ui:field="addTemplate"
> > >                     text="{lbls.addTemplate}" />
> > >                  > >                     ui:field="viewTemplates"
> > >                     text="{lbls.viewTemplates}" />
> > >             
> > >         
>
> > >          > > debugId="{debugIds.menuitem_account_mgmt}" text="{lbls.account}">
> > >             
> > >                  > >                     ui:field="myAccount"
> > >                     text="{lbls.myAccount}" />
> > >                  > >                     ui:field="organizations"
> > >                     text="{lbls.organizations}" />
> > >                  > >                     ui:field="sites"
> > >                     text="{lbls.sites}" />
> > >                  > >                     ui:field="users"
> > >                     text="{lbls.users}" />
> > >                  > >                     ui:field="globalSettings"
> > >                     text="{lbls.globalSettings}" />
> > >             
> > >         
>
> > >          > > text="{lbls.help}">
> > >             
> > >                  > >                     ui:field="manual"
> > >                     text="{lbls.manual}" />
> > >                  > >                     ui:field="support"
> > >                     text="{lbls.support}" />
> > >             
> > >         
> > >     
>
> > > 
>
> > > MainMenu.java:
>
> > > public class MainMenu extends Composite {
>
> > >     /*
> > >      *
> > > =

Re: GWT 2.0.3 + Maven2 + Eclipse

2010-03-24 Thread will0
I can confirm the instructions from Keith work. Thanks so much. I must
have spent eight hours trying to figure this out.

Will Temperley

On Mar 23, 3:37 pm, Keith Platfoot  wrote:
> Hi Bert,
>
> I converted the GWT starter app into a Maven project (see attachment), which
> might serve as a good starting point for you.  It uses GWT 2.0.3,
> gwt-maven-plugin 1.2, and Google Plugin for Eclipse 1.3.1.  I've also
> included an Eclipse project and launch configuration.  To import the
> project:
>
>    - Ensure you have Eclipse for Java EE installed
>    - Create a server adapter for the project (right-click in Servers via and
>    select New).  I used Tomcat, which runs on port 8080 (this needs to be
>    reflected in the Web Application launch configuration)
>    - Create an M2_REPO classpath variable pointing to your Maven repository
>    (Preferences > Java > Build Path).
>    - Because the project references the GWT jars from the Maven repo instead
>    of a standard GWT SDK installation, you'll probably get a spurious error on
>    the project which you can suppress via Preferences > Google >
>    Errors/Warnings > Project structure and SDKs > Missing SDK.
>
> Keith
>
> On Wed, Mar 17, 2010 at 11:06 AM, Bert  wrote:
> > I'm also very interested in setting up a Project like this.
> > Any sample code from anyone?
>
> > On Mar 17, 1:44 am, zggame  wrote:
> > > I think the latest gwt-maven-plugin is gwt 1.6.4.  Not 2.0.3
>
> > > On Mar 15, 3:30 pm, Sergio  wrote:
>
> > > > Hello everybody, I'm beginning with GWT development and I have a
> > > > problem.
>
> > > >  I've already configured Eclipse 3.5 with gwt plugin and m2eclipse
> > > > plugin. I create a new maven project with gwt-maven-plugin archetype,
> > > > but I'm not able to communicate client side with server side. I've
> > > > read the same problem is happened other people but no solution.
>
> > > > I'm trying to debug the sample application with gwt:debug goal and
> > > > then "Run remote java application" in "Debug configuration". I don't
> > > > know if I am doing anything wrong. Any idea?
>
> > > > Thank you and sorry for my English.
>
> > --
> > 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.
>
>
>
>  MavenAppRpc.zip
> 21KViewDownload

-- 
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.