Re: Debugging Maven Project in Eclipse ( Tutorial )

2011-04-26 Thread Metronome & Basic

That was the solution for me
Remote Fava Applivation and gwt:debug

I used this link as an help for configuration

thanks to all that have tried to help
( others solution could have been successfull , this one seemed "easier" to 
me )


Patrick


- Original Message - 
From: "Hilco Wijbenga" 

To: 
Sent: Friday, April 22, 2011 9:50 PM
Subject: Re: Debugging Maven Project in Eclipse ( Tutorial )



On 22 April 2011 00:33, Metronome & Basic
 wrote:

Any suggestion for debugging in Eclipse


Use mvn gwt:debug (instead of mvn gwt:run) and attach your debugger in
Eclipse (use Remote Java Application).

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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1209 / Base de données virale: 1500/3590 - Date: 22/04/2011



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



Dealing with Eclipse-based IDE - Maven User - Codehaus.URL
Description: Binary data


Re: Debugging Maven Project in Eclipse ( Tutorial )

2011-04-22 Thread Metronome & Basic

Using Eclipse
Google Eclipse plugin automatically handle launching the Hosted mode browser 
with a simple right click on your module gwt.xml file "run as > web 
application".


I wish it could be that simple

I have 3 Pcs ( 2 with Xp 1 debian lenny ) with eclipse and maven plugin

only on on 3 only 1 of  then  has  "run as > web application". on maven 
projects


( they all have this option on Eclipse Projects )

nightmare

Patrick

- Original Message - 
From: "cri" 

To: "Google Web Toolkit" 
Sent: Friday, April 22, 2011 3:41 PM
Subject: Re: Debugging Maven Project in Eclipse ( Tutorial )


You may find http://mojo.codehaus.org/gwt-maven-plugin/ helpful.

On Apr 22, 2:33 am, "Metronome & Basic"
 wrote:

Any suggestion for debugging in Eclipse

If you create an Eclipse Project , the debugging facilities are there and 
ready to use.


If you import a maven project , you cannot run as Webapp nor Debug

Or you have to setup a debug configuration ( for every project ? )

or is there something you can add in your pom ?

any help welcome

Patrick


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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1209 / Base de données virale: 1500/3590 - Date: 22/04/2011


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



Debugging Maven Project in Eclipse ( Tutorial )

2011-04-22 Thread Metronome & Basic
Any suggestion for debugging in Eclipse

If you create an Eclipse Project , the debugging facilities are there and ready 
to use.

If you import a maven project , you cannot run as Webapp nor Debug

Or you have to setup a debug configuration ( for every project ? )

or is there something you can add in your pom ?

any help welcome

Patrick

-- 
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: CellTable Dynatable SimplePager last Button

2011-04-14 Thread Metronome & Basic
I think that AsyncDataProvider must be the answer to have a working (>|) 
last button in simple pager


but I didn't find any example with RequestFactory

Patrick

- Original Message - 
From: "Metronome & Basic" 

To: 
Sent: Wednesday, April 13, 2011 5:56 PM
Subject: Re: CellTable Dynatable SimplePager last Button


I succedede in showing the button , but it has no action , but it has no
action

I think that it is because the last index is not known !

I can't figure out a way to pass it

Patrick


- Original Message - 
From: "Ahmed Mohammed" 

To: "Google Web Toolkit" 
Sent: Wednesday, April 13, 2011 5:46 PM
Subject: Re: CellTable Dynatable SimplePager last Button


Create instance of simplepager resources and pass to the SimplePager
Constructor. Try below lines.
SimplePager.Resources pagerResources =
GWT.create(SimplePager.Resources.class);
SimplePager pager= new CustomSimplePager(TextLocation.CENTER,
pagerResources, false, 0, true);

P.S : From GWT Showcase example CwCellTable, if you want to take a
look at it.

gwt-2.2.0\samples\Showcase\src\com\google\gwt\sample\showcase\client
\content\cell\CwCellTable.java

Hope this helps.
-Ahmed
On Apr 12, 12:47 pm, "Metronome & Basic"
 wrote:

It was already constructed that way !
but (>>) is disabled and (>| ) is hidden

may be you somehow have to tell the pager what is the last page ?

thanks

Patrick







- Original Message -
From: John LaBanca
To: google-web-toolkit@googlegroups.com
Sent: Tuesday, April 12, 2011 5:45 PM
Subject: Re: CellTable Dynatable SimplePager last Button

The >> is a fast forward button that defaults to 1000 rows. Use the 
overloaded SimplePager constructor to specify that you want to use a last 
page button instead of a fast forward button.


Thanks,
John LaBanca
jlaba...@google.com

On Tue, Apr 12, 2011 at 11:41 AM, Metronome & Basic 
 wrote:


I've a CellTable using the example code in DynaTable

but as in DynaTable the last (>>) Button of th Pager is disabled

in my case , as I know the row count , is there anyway to enable the 
button


thanks

Patrick

--
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 
athttp://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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group 
athttp://groups.google.com/group/google-web-toolkit?hl=en.


---
 ---

---
 ---

Aucun virus trouvé dans ce message.
Analyse effectuée par AVG -www.avg.fr
Version: 10.0.1209 / Base de données virale: 1500/3568 - Date: 12/04/2011


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




-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1209 / Base de données virale: 1500/3571 - Date: 13/04/2011


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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1209 / Base de données virale: 1500/3571 - Date: 13/04/2011


--
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: CellTable Dynatable SimplePager last Button

2011-04-13 Thread Metronome & Basic
I succedede in showing the button , but it has no action , but it has no 
action


I think that it is because the last index is not known !

I can't figure out a way to pass it

Patrick


- Original Message - 
From: "Ahmed Mohammed" 

To: "Google Web Toolkit" 
Sent: Wednesday, April 13, 2011 5:46 PM
Subject: Re: CellTable Dynatable SimplePager last Button


Create instance of simplepager resources and pass to the SimplePager
Constructor. Try below lines.
SimplePager.Resources pagerResources =
GWT.create(SimplePager.Resources.class);
SimplePager pager= new CustomSimplePager(TextLocation.CENTER,
pagerResources, false, 0, true);

P.S : From GWT Showcase example CwCellTable, if you want to take a
look at it.

gwt-2.2.0\samples\Showcase\src\com\google\gwt\sample\showcase\client
\content\cell\CwCellTable.java

Hope this helps.
-Ahmed
On Apr 12, 12:47 pm, "Metronome & Basic"
 wrote:

It was already constructed that way !
but (>>) is disabled and (>| ) is hidden

may be you somehow have to tell the pager what is the last page ?

thanks

Patrick







- Original Message -
From: John LaBanca
To: google-web-toolkit@googlegroups.com
Sent: Tuesday, April 12, 2011 5:45 PM
Subject: Re: CellTable Dynatable SimplePager last Button

The >> is a fast forward button that defaults to 1000 rows. Use the 
overloaded SimplePager constructor to specify that you want to use a last 
page button instead of a fast forward button.


Thanks,
John LaBanca
jlaba...@google.com

On Tue, Apr 12, 2011 at 11:41 AM, Metronome & Basic 
 wrote:


I've a CellTable using the example code in DynaTable

but as in DynaTable the last (>>) Button of th Pager is disabled

in my case , as I know the row count , is there anyway to enable the 
button


thanks

Patrick

--
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 
athttp://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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group 
athttp://groups.google.com/group/google-web-toolkit?hl=en.


--- 
 ---


--- 
 ---


Aucun virus trouvé dans ce message.
Analyse effectuée par AVG -www.avg.fr
Version: 10.0.1209 / Base de données virale: 1500/3568 - Date: 12/04/2011


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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1209 / Base de données virale: 1500/3571 - Date: 13/04/2011


--
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 a ValueListBox with RequestFactory & Editor?

2011-04-13 Thread Metronome & Basic
You Need a proper KeyProvider for ValueListBox EntityProxyKeyProvider
  - Original Message - 
  From: Christien Lomax 
  To: google-web-toolkit@googlegroups.com 
  Sent: Tuesday, April 12, 2011 6:59 PM
  Subject: How to use a ValueListBox with RequestFactory & Editor?


  I can't seem to find a single example of how to integrate a ListBox or 
ValueListBox with an Editor.

  I've put an VLB in my editor, and it sets the value, but if I add any values 
to the VLB, it just tacks them onto the end (So I'll have two of the same items 
in the list, one added by the editor, and the other added by me when I add the 
VLB's acceptableValues.)

  A UI has a list of "MyProxy" (which is a Thing), when a user clicks on a 
"thing", the editor is shown (via the workflow).  The 
  item is retrieved and shown in the editor.  The editor needs to load the list 
of MySubProxy (SubThings) and set the selected item as provided by the MyProxy 
(Thing) object.

  Instead, the edit correctly sets all teh values, but appends the acceptable 
values (List) to the list which already contains the value set by 
the MyProxy object.

  Does anyone have an example of this working that they can share, or can you 
point out what I'm doing wrong (code below)?

  eg: (obviously, I've changes the names of the things to protect my 
organization's model.. and added "..." where code exists but is not needed for 
the example)

  MyEditor.ui.xml
  


  

  MyEditor.java
  public class MyEditor extends Composite implements Editor
  {
interface Binder extends UiBinder
{
}

@UiField
public TextBox name;
@UiField(provided=true)
public ValueListBox listBox = new 
ValueListBox(new ProxyRenderer(null)
{
  @Override
  public String render(IMySubProxy object)
  {
return object == null ? null : object.getName();
  }
});
  
public MyEditor ()
{
  initWidget(GWT. create(Binder.class).createAndBindUi(this));
  MyApp.getRequestFactory().myRequest().listThings(0, 10).fire(new 
Receiver>()
  {
@Override
public void onSuccess(List response)
{
  listBox.setAcceptableValues(response);
}
  });
}
  }

  IMyProxy.java
  @ProxyFor(value = Thing.class, locator = MyThingGwtAdapter.class)
  public interface IMyProxy extends EntityProxy
  {
abstract Long getKey();
abstract String getName();
abstract IMySubProxy getSubThing();
  }

  IMySubProxy.java
  @ProxyFor(value = SubThing.class, locator = MySubThingGwtAdapter.class)
  public interface IMySubProxy extends EntityProxy
  {
abstract Long getKey();
abstract String getName();
  }

  MyWorkflow.java
  public class MyWorkflow
  {
interface Binder extends UiBinder
{
  Binder BINDER = GWT.create(Binder.class);
}

interface Driver extends RequestFactoryEditorDriver
{
}

public static void register(ECMEventBus eventBus, final MyRequestFactory 
requestFactory)
{
  eventBus.addHandler(MyEditEvent.TYPE, new MyEditEvent.Handler()
  {
public void startEdit(IMyProxy proxy, RequestContext requestContext)
{
  new MyWorkflow(requestFactory, proxy).edit(requestContext);
}
  });
}

@UiField
DialogBox dialog;

@UiField(provided = true)
MyEditor editor;

private Driver driver;
private IMyProxy proxy;
private final MyRequestFactory requestFactory;

private MyWorkflow(MyRequestFactory requestFactory, IMyProxy proxy)
{
  this.requestFactory = requestFactory;
  this.proxy = proxy;
  editor = new MyEditor();
  Binder.BINDER.createAndBindUi(this);
}

@UiHandler("cancel")
void onCancel(ClickEvent event)
{
  dialog.hide();
}

@UiHandler("save")
void onSave(ClickEvent event)
{
  RequestContext context = driver.flush();
  if (driver.hasErrors())
  {
dialog.setText("Errors detected locally");
return;
  }
  context.fire(new Receiver()
  {
...
  });
}

private void edit(RequestContext requestContext)
{
  driver = GWT.create(Driver.class);
  driver.initialize(requestFactory, editor);
  if (requestContext == null)
  {
fetchAndEdit();
return;
  }
  driver.edit(proxy, requestContext);
}

private void fetchAndEdit()
{
  Request fetchRequest = requestFactory.find(proxy.stableId());
  fetchRequest.with(driver.getPaths());
  fetchRequest.to(new Receiver()
  {
@Override
public void onSuccess(IMyProxy proxy)
{
  MyWorkflow.this.proxy = proxy;
  IThingRequest context = requestFactory.thingRequest();
  edit(context);
  context.saveThing(proxy);
}
  }).fire();
}
  }

  MyWorkflow.ui..xml
  
  
  a caption
  
  
  
  Cancel

Re: Editor doesn't display chained Entity (solved )

2011-04-13 Thread Metronome & Basic
No thanks 

the bug was that didn't construct my ValueListBox with a KeyProvider

by having a look at the code ; as suggested by Thomas Broyer to try to create a 
ValueSuggestBox 

I saw that the default KeyProvoder is SimpleKeyProvider and that cannot 
provide a key for an EntityProxy
it creates instead a new key anytime the ValueSuggestBox.setValue is 
invoked by the Editor
   
EntityProxyKeyProvider was the solution

thanks for reading

Patrick

  - Original Message - 
  From: Christien Lomax 
  To: google-web-toolkit@googlegroups.com 
  Sent: Tuesday, April 12, 2011 7:13 PM
  Subject: Re: Editor doesn't display chained Entity


  did you call request.with(paths)?  Where paths is a list of strings 
containing the names of sub objects to parse???  calling driver.getPaths() will 
return all the possible child paths i think??

  eg:
  Request fetchRequest = requestFactory.find(proxy.stableId());
  fetchRequest.with(driver.getPaths());
  fetchRequest.to(new Receiver() {
...
  });



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


--

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1209 / Base de données virale: 1500/3568 - Date: 12/04/2011

-- 
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: CellTable Dynatable SimplePager last Button

2011-04-12 Thread Metronome & Basic
It was already constructed that way !
but (>>) is disabled and (>| ) is hidden 

may be you somehow have to tell the pager what is the last page ?

thanks

Patrick
  - Original Message - 
  From: John LaBanca 
  To: google-web-toolkit@googlegroups.com 
  Sent: Tuesday, April 12, 2011 5:45 PM
  Subject: Re: CellTable Dynatable SimplePager last Button


  The >> is a fast forward button that defaults to 1000 rows.  Use the 
overloaded SimplePager constructor to specify that you want to use a last page 
button instead of a fast forward button.

  Thanks,
  John LaBanca
  jlaba...@google.com



  On Tue, Apr 12, 2011 at 11:41 AM, Metronome & Basic 
 wrote:

I've a CellTable using the example code in DynaTable

but as in DynaTable the last (>>) Button of th Pager is disabled

in my case , as I know the row count , is there anyway to enable the button

thanks

Patrick


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




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


--

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1209 / Base de données virale: 1500/3568 - Date: 12/04/2011

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



CellTable Dynatable SimplePager last Button

2011-04-12 Thread Metronome & Basic
I've a CellTable using the example code in DynaTable

but as in DynaTable the last (>>) Button of th Pager is disabled

in my case , as I know the row count , is there anyway to enable the button

thanks

Patrick

-- 
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: SuggestBox in Editor

2011-04-12 Thread Metronome & Basic
In fact in is an Entity but the SuggestBox should display a String from 
(unique) so I'll have a try

from what I've seen so far the widget must provide an asEditor method

as well as getValue an setValue 

and internally must be able to return an entity from the string "suggestion"

anything else ?

Patrick 
  - Original Message - 
  From: Thomas Broyer 
  To: google-web-toolkit@googlegroups.com 
  Sent: Tuesday, April 12, 2011 10:55 AM
  Subject: Re: SuggestBox in Editor


  It's hard to use a SuggestBox for anything else than a String value (believe 
me, we're struggling with it for weeks, regularly stumbling on a new edge case 
–well, we're asking our server for suggestions, and we need to dispatch 
ValueChangeEvents, so maybe it's a special use case–).


  If you can synchronously convert the String value into the type of value you 
need (and you don't need "accurate" value change events), then it should be 
quite easy: wrap the SuggestBox in a Composite, similarly to how ValueListBox 
wraps a ListBox.

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


--

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1209 / Base de données virale: 1500/3567 - Date: 11/04/2011

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



SuggestBox in Editor

2011-04-12 Thread Metronome & Basic
I'd like to have a ValueSuggestBox to be used like ValueLisBox inside an Editor

Could it be done ?

How ?

Thanks

Patrick

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



Editor doesn't display chained Entity

2011-04-12 Thread Metronome & Basic
Hello

I have a working Editor ( Loading and saving Entity )

the problem is that a chained Entity 
( handled by ValueListBox )
is not showed on loading 
though it can be selected and saved , it is blanc on loading 

I must miss something as usual !

thanks

Patrick

-- 
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 Entity name

2011-04-05 Thread Metronome & Basic
I'm sorry but it's a bug of mine ,
though I cannot see what was wrong , 

I rebuilt the entity with the full name and it works !

Thanks

Patrick
  - Original Message - 
  From: Marcin Misiewicz 
  To: google-web-toolkit@googlegroups.com 
  Sent: Friday, April 01, 2011 12:31 PM
  Subject: Re: RequestFactory Entity name


  I guess, you should use debugger and see whats going on under the hood. In 
the spare time I will try to reproduce the error. 

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


--

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1209 / Base de données virale: 1500/3543 - Date: 31/03/2011

  --=_Part_1_27350683.1301653903107-- 

-- 
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 Entity name

2011-04-01 Thread Metronome & Basic
I'm Just wondering if it could be a RequestFactory bug a limitation or ( more 
probably ) some Bug in my code

Any Idea ?

Thanks

Patrick


  - Original Message - 
  From: Metronome & Basic 
  To: google-web-toolkit@googlegroups.com 
  Sent: Thursday, March 31, 2011 6:21 PM
  Subject: RequestFactory Entity name


  Hello

  I have an Entity named "CRegIndexBodyTable"

  and the findCRegIndexBodyTable method fails

  I have made a test Entity that is copy of the previous one but named "CRegIBT"

  and findCRegIBT is successfull 

  Is there a max lenghth for the entity name handled by RequestFactory

  Thanks

  Patrick

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1209 / Base de données virale: 1500/3542 - Date: 31/03/2011


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

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



RequestFactory Entity name

2011-03-31 Thread Metronome & Basic
Hello

I have an Entity named "CRegIndexBodyTable"

and the findCRegIndexBodyTable method fails

I have made a test Entity that is copy of the previous one but named "CRegIBT"

and findCRegIBT is successfull 

Is there a max lenghth for the entity name handled by RequestFactory

Thanks

Patrick

-- 
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 & Entities relationship

2011-03-31 Thread Metronome & Basic
It is also necessary to use the with() method to retrieve any properties with 
types extending ValueProxy. The with() method takes multiple String arguments, 
so you can specify multiple property names at once. To specify nested 
properties, use dot notation. Putting it all together, you might have

Request findReq = find(personId).with("phone","address.city","address.zip")does 
it means that you have to persist or merge using with tooThanksPatrick- 
Original Message ----- 
  From: Metronome & Basic 
  To: google-web-toolkit@googlegroups.com 
  Sent: Thursday, March 31, 2011 10:00 AM
  Subject: Re: RequestFactory & Entities relationship


  In fact I'm trying to convert a Datastore accessed via RPC and DTOs to 
RequestFactory.
  So far the entities have been populated by the old system
  I'm just trying to read data for the now

  I'm sorry I'v just missed this paragraph !


  Thanks anyway

  Patrick

- Original Message - 
From: Y2i 
To: google-web-toolkit@googlegroups.com 
Sent: Thursday, March 31, 2011 8:54 AM
Subject: Re: RequestFactory & Entities relationship


You don't have to use with() if you don't want to populate relations of the 
object graph 

http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships



to refer to more than one relation, use with("rel1", "rel2", "etc")

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






Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1209 / Base de données virale: 1500/3541 - Date: 30/03/2011


--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1209 / Base de données virale: 1500/3541 - Date: 30/03/2011


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

-- 
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 & Entities relationship

2011-03-31 Thread Metronome & Basic
In fact I'm trying to convert a Datastore accessed via RPC and DTOs to 
RequestFactory.
So far the entities have been populated by the old system
I'm just trying to read data for the now

I'm sorry I'v just missed this paragraph !


Thanks anyway

Patrick

  - Original Message - 
  From: Y2i 
  To: google-web-toolkit@googlegroups.com 
  Sent: Thursday, March 31, 2011 8:54 AM
  Subject: Re: RequestFactory & Entities relationship


  You don't have to use with() if you don't want to populate relations of the 
object graph 
  
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships



  to refer to more than one relation, use with("rel1", "rel2", "etc")

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


--

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1209 / Base de données virale: 1500/3541 - Date: 30/03/2011

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



RequestFactory with parameter

2011-03-29 Thread Metronome & Basic


When chaining Entities I have to call findXXX(record) . with("") 

Is it required or is there a way to declare the Entity so that  is always 
included in EntityProxy

Thanks 
Patrick

-- 
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: Editor compatible widget

2011-03-25 Thread Metronome & Basic
Thanks I'll have a try

but what if I wanted to design a widget of my own ( let's say for another 
purpose )

Patrick


  - Original Message - 
  From: Jens 
  To: google-web-toolkit@googlegroups.com 
  Cc: Metronome & Basic 
  Sent: Friday, March 25, 2011 2:29 PM
  Subject: Re: Editor compatible widget


  Use ValueListBox instead of ListBox. 


  ValueListBox has methods setValue(T value) and T getValue() and it can be 
used as editor. So you probably won't need your custom ListBox anymore.


--


  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1204 / Base de données virale: 1498/3527 - Date: 24/03/2011

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



Editor compatible widget

2011-03-25 Thread Metronome & Basic
As my question got no reply last week ( weekend maybe ) I dare to post it 
once more ?!


---


The question may be trivial but..

What makes a Widget compatible with Editors

I tried to make a Wiget  that is a modified ( expended ) LisBox
with  setText and getText method , thinking they could be used by the Editor
to set and the String

but it dosn't work

what 's missing ?

Patrick

===
The "code"
===
public class Lb extends ListBox {


   List tks = Arrays.asList("X","Z","N","M","D");


   public Lb () {

   for (String s : tks) {

   addItem(s);

   }

   }


   public void setText (String tk) {

   for (Integer x = 0 ; x < tks.size(); x++) {

   if (tks.get(x).equals(tk)) {

   setSelectedIndex(x);

   break;

   }

   }

   }

   public String getText() {

   return getItemText(getSelectedIndex());

   }

}



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



Editor compatible widgets

2011-03-19 Thread Metronome &amp; Basic

The question may be trivial but..

What makes a Widget compatible with Editors

I tried to make a Wiget  that is a modified ( expended ) LisBox
with  setText and getText method , thinking they could be used by the Editor 
to set and the String


but it dosn't work

what 's missing ?

Patrick

===
The "code"
===
public class Lb extends ListBox {


   List tks = Arrays.asList("X","Z","N","M","D");


   public Lb () {

   for (String s : tks) {

   addItem(s);

   }

   }


   public void setText (String tk) {

   for (Integer x = 0 ; x < tks.size(); x++) {

   if (tks.get(x).equals(tk)) {

   setSelectedIndex(x);

   break;

   }

   }

   }

   public String getText() {

   return getItemText(getSelectedIndex());

   }

}


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



RequestFactory mapping

2011-01-15 Thread Metronome &amp; Basic
According to Thomas Broyer

---
The first thing to do is to declare a servlet mapping for the 
RequestFactoryServlet at path /gwtRequest (this is the default, it can be 
changed). That's all you have to do on the server side.
-

but every code example I've seen is mapping differently

so what the hell  has to be done with that ?

Patrick


dynatablerf sample id going (I don't know if the filter is related to the 
Request Factory )
===

requestFactoryServlet

com.google.gwt.requestfactory.server.RequestFactoryServlet

  symbolMapsDirectory
  
  WEB-INF/classes/symbolMaps/

  

  
requestFactoryServlet
/gwtRequest
  

  
TransactionContext

com.google.gwt.sample.dynatablerf.server.SchoolCalendarService
  

  
TransactionContext
/gwtRequest
  
==
expense GOES
==

requestFactoryServlet

com.google.gwt.requestfactory.server.RequestFactoryServlet
  

  
requestFactoryServlet
/gwtRequest
  

  

  This filter demonstrates making GAE authentication
  services visible to a RequestFactory client.

GaeAuthFilter

com.google.gwt.sample.gaerequest.server.GaeAuthFilter
  
  
GaeAuthFilter
/gwtRequest/*
  
===
HelloMVP with activities-places-testing
===

requestFactoryServlet

com.google.gwt.requestfactory.server.RequestFactoryServlet
 
 userInfoClass 
 com.hellomvp.server.UserSessionInfo 
   
 

requestFactoryServlet
/helloMVP/gwtRequest

===
My own mapping : generating HTTP 503 error

appRf
metro.test.arch232.client.AppRF
  

  
appRf
/gwtRequest
  

 



-
Aucun virus trouve dans ce message.
Analyse effectuee par AVG - www.avg.fr
Version: 10.0.1191 / Base de donnees virale: 1435/3380 - Date: 14/01/2011

-- 
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 No fire

2011-01-13 Thread Metronome &amp; Basic
I tried to catch the fire exception any

but there is none

Should I get error messages if the servlet is not loaded ?

Here is the mapping of the servlet 

Any Idea ?

I'm just rtying to do a "trivial" sketch
1 ) load the servlet and communicate with it ( I intend to use hibernate to 
call a static findAllPerson as a second step )


appRf
metro.test.arch232.client.AppRF
  

  
appRf
/gwtRequest
  




  - Original Message - 
  From: Thomas Broyer 
  To: google-web-toolkit@googlegroups.com 
  Sent: Thursday, January 13, 2011 12:06 PM
  Subject: Re: RequestFactory No fire



  On Thursday, January 13, 2011 11:32:42 AM UTC+1, coelho wrote:


public class Person {
public static getStr() { return "whatever" }
}

and 

@service(Person.class)
public interface PersonRequest extends RequestContext {
Request getStr();
}

I expect

factory.personRequest().getStr().fire(new Receiver() { 

to return my string


  Yes, it should work! (because getStr() is a static method of Person, and 
whether or not there exists a PersonProxy) 

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


--

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1191 / Base de données virale: 1435/3376 - Date: 12/01/2011

  --=_Part_327_576096.1294916780091-- 

-- 
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 No fire

2011-01-13 Thread Metronome &amp; Basic
In fact I expected RequestFactory to behave somehow like GWT-RPC

My view ( probably wrong )

Your RequestFactory expose Interfaces to entities ( in my cas a single entity 
Person )

The Entity Person is a description of some data ( fields of SQL table for short 
)
The Person class is also used for the server side methods ( findAllPersons 
etc.. ) my getStr()

The PersonProxy interface is a representaion of Person for the client side
The PersonRequest interface is used to acces Entities 

then if I have 

public class Person {
public static getStr() { return "whatever" }
}

and 

@service(Person.class)
public interface PersonRequest extends RequestContext {
Request getStr();
}

I expect

factory.personRequest().getStr().fire(new Receiver() { 

to return my string

But I must be wrong !

Thanks to reply such naives questions

Patrick








  - Original Message - 
  From: Thomas Broyer 
  To: google-web-toolkit@googlegroups.com 
  Sent: Wednesday, January 12, 2011 10:35 PM
  Subject: Re: RequestFactory No fire




  On Wednesday, January 12, 2011 5:13:35 PM UTC+1, coelho wrote:
I've built a simple sketch to test Request Factory

( as I didn't find any tutorial or example simple enough grab the all thing 
)

I've just implemented a getStr() method that retuens a String in an entity 
Person

When I "fire" the method I don't get any reply nor error 

Here's the code
( no error in eclipse , compiled with manen )

I get the Fire alert when the button is clicked , nothing else ?

Patrick


AppRF  factory = null;
  
  public void onModuleLoad() {
  
  factory = GWT.create(AppRF .class);
  
  if (factory == null) {
  Window.alert("No factory");
  }
  
  factory.initialize(new SimpleEventBus());
  
  PersonProxy person = factory.personRequest().create(PersonProxy.class);



  A RequestContext (as returned by your personRequest() method) is a kind of 
"builder" for a request. Here, you're creating one such context, creating a 
PersonProxy within it, and throwing the RequestContext away, which makes the 
PersonProxy unusable (you can mutate it, but nothing else, including adding it 
to another proxy or sending it to the server, because it is attached to a 
context that you no longer have a reference to).

 
  //factory.personRequest().persist().using(person).fire();
  
final Button sendButton = new Button( "Send" );
final Button fireButton = new Button( "Fire" );

RootPanel.get("sendButtonContainer").add(sendButton);
RootPanel.get("sendButtonContainer").add(fireButton);


fireButton.addClickHandler (new ClickHandler() {
public void onClick( ClickEvent sender) {
//lh.setText("Handle = " + sqlBox.getHandle());

Window.alert("Fire");

factory.personRequest().getStr().fire(new Receiver() {



  I don't know what you expect from this code, but this is just asking for a 
String to the server, without any reference to a PersonProxy (or similar 
server-side entity).


  I don't realy like plugging my own writings in (I highly prefer when others 
do it for me ;-) ), but maybe my recent post on RequestFactory will help you 
understand the big picture(and you'll later re-read the GWT "official doc" with 
a fresh eye): http://tbroyer.posterous.com/gwt-211-requestfactory




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


--

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1191 / Base de données virale: 1435/3374 - Date: 11/01/2011

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



RequestFactory No fire

2011-01-12 Thread Metronome &amp; Basic
I've built a simple sketch to test Request Factory

( as I didn't find any tutorial or example simple enough grab the all thing )

I've just implemented a getStr() method that retuens a String in an entity 
Person

When I "fire" the method I don't get any reply nor error 

Here's the code
( no error in eclipse , compiled with manen )

I get the Fire alert when the button is clicked , nothing else ?

Patrick


AppRF  factory = null;
  
  public void onModuleLoad() {
  
  factory = GWT.create(AppRF .class);
  
  if (factory == null) {
  Window.alert("No factory");
  }
  
  factory.initialize(new SimpleEventBus());
  
  PersonProxy person = factory.personRequest().create(PersonProxy.class);
  
  //factory.personRequest().persist().using(person).fire();
  
final Button sendButton = new Button( "Send" );
final Button fireButton = new Button( "Fire" );

RootPanel.get("sendButtonContainer").add(sendButton);
RootPanel.get("sendButtonContainer").add(fireButton);


fireButton.addClickHandler (new ClickHandler() {
public void onClick( ClickEvent sender) {
//lh.setText("Handle = " + sqlBox.getHandle());

Window.alert("Fire");

factory.personRequest().getStr().fire(new Receiver() {
   
   public void onSuccess(String response) {
   // implementation
   Window.alert("Reponse : "+ response);
   }
   public void onFailure(Throwable caught) {
// Show the RPC error message to the user
Window.alert("Factory  Call Fails");
  }
   
   public void onViolation(Set errors) {
   String mes = errors.toString();
   Window.alert("Violation : \n\n" + mes);
   //dialog.setText("Errors detected on the server");
   //editorDriver.setViolations(errors);
   }
   
});
}
});


-- 
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: gwt-maven-plugin 2.1.0-1 compilation error

2010-12-22 Thread Metronome / Basic



You can create a simple project with the mvn achetype:generate
# 232 with maven 3




- Original Message - 
From: "Frank Bølviken" 

To: "Google Web Toolkit" 
Sent: Wednesday, December 22, 2010 5:33 PM
Subject: gwt-maven-plugin 2.1.0-1 compilation error



Hi,

I dont know if there is anyting I have missed. But I'm trying to
create a simple GWT project with the new gwt-maven-plugin.
I run the following command:
mvn archetype:generate
-DarchetypeRepository=repo1.maven.org
-DarchetypeGroupId=org.codehaus.mojo
-DarchetypeArtifactId=gwt-maven-plugin
-DarchetypeVersion=2.1.0-1

I input the following text:
Define value for property 'groupId': : com.test.hello
Define value for property 'artifactId': : gwt
Define value for property 'version': 1.0-SNAPSHOT:
Define value for property 'package': com.test.hello:
Define value for property 'module': : gwt

The project is created successfully. But when I try to gwt:compile it,
the following error arrives:
[INFO] Compiling module com.test.hello.gwt
[INFO]Validating newly compiled units
[INFO]   [ERROR] Errors in 'file:/C://gwt/src/main/java/com/
test/hello/client/gwt.java'
[INFO]  [ERROR] Line 35: GreetingServiceAsync cannot be
resolved to a type
[INFO]  [ERROR] Line 35: No source code is available for type
GreetingServiceAsync; did you forget to inherit a
required module?
[INFO]  [ERROR] Line 35: The method create(Class) from the
type GWT refers to the missing type GreetingServic
eAsync
[INFO]  [ERROR] Line 37: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 37: No source code is available for type
Messages; did you forget to inherit a required mod
ule?
[INFO]  [ERROR] Line 37: The method create(Class) from the
type GWT refers to the missing type Messages
[INFO]  [ERROR] Line 37: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 43: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 45: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 123: GreetingServiceAsync cannot be
resolved to a type
[INFO]Finding entry point classes
[INFO]   [ERROR] Unable to find type 'com.test.hello.client.gwt'
[INFO]  [ERROR] Hint: Previous compiler errors may have made
this type unavailable
[INFO]  [ERROR] Hint: Check the inheritance chain from your
module; it may not be inheriting a required module o
r a module may not be adding its source path entries properly
[INFO]

[ERROR] BUILD ERROR
[INFO]


What am I missing here?

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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1170 / Base de données virale: 426/3331 - Date: 22/12/2010



--
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: Modular rpc blues

2010-12-22 Thread Metronome / Basic
In fact I simply want to be able to use a jar containing GWT-RPC code in any 
webapp

As I had no succes with my code 

I tried to rely on "maven-googlewebtoolkit2-sample"
that is a HelloWorld RPC example with code in different modules.

here is the parent pom 

I did'nt change the code , I just modified the poms 

  - Original Message - 
  From: Andreas Horst 
  To: google-web-toolkit@googlegroups.com 
  Sent: Wednesday, December 22, 2010 1:52 PM
  Subject: Re: Modular rpc blues


  I just took a look at your configuration files.


  Actually I can't tell much from just them especially since I don't have the 
parent POM. Anyway I'm a bit confused about what you are trying to do.


  Are you only trying to compile the sample project or are you trying to reuse 
something of it? What exactly do you mean with "project war rpc and server" or 
"war server"? A project that packages to a .war file (like GWT applications) or 
a .war file you are trying to include via module inheritance? I'm sorry but 
it's really not clear to me.


  2010/12/22 Metronome / Basic 

Hello
Thanks for trying to help me !

One of my tries is : compile the "maven-googlewebtoolkit2-sample"
using gwt-maven-plugin
it was a three modules project war rpc and server
I reduced it to war server , by merging rpc and server

I join the pom and web.xml of the war


mvn package report

ERROR] Failed to execute goal 
org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:mergewebxml (default) on project 
maven-googlewebtoolkit2-sample-war: Unable to merge web.xml: 
NullPointerException -> [Help 1]





 
  - Original Message - 
  From: Andreas Horst 
  To: google-web-toolkit@googlegroups.com 
  Sent: Wednesday, December 22, 2010 12:26 AM
  Subject: Re: Modular rpc blues


  Another question just coming to my mind: 


  Where in the inherited module are you declaring the RPC servlet?


  If you declare it in the inherited module's web.xml then make sure the 
Maven GWT plugin parameter "webXml" properly points to it (Not sure how one 
would do this - never did it myself - especially since  inherited modules 
usually come as a .jar. If so does yours include the web.xml?).


  If you declare it in the inherited module's module descriptor (a..k.a. 
*.gwt.xml) all should be fine. Hence I assume you do not declare it there? Look 
here for details about the module descriptor, note the  tag.


  My 2cents: Use the second option.


  Why? Because obviously your inherited module realizes functionality that 
is to be reused. It is hence some sort of library and not (only?) an 
application or even a .war packed web application. All our inherited modules 
are _library_ modules, they don't get deployed on an _application_ server on 
their own. Now if one of those features functionality through RPC (we have some 
of those) we thankfully use the above mentioned  tag in the module 
descriptor and let the Maven GWT plugin do its job. IMHO on the one hand a 
web.xml does not belong into a common not "runnable" module and on the other 
one a (.war packed) application is not best suitable for inheriting 
functionality.


  Regards


  2010/12/21 Andreas Horst 




2010/12/21 Thomas Broyer  




  On Tuesday, December 21, 2010 9:51:38 AM UTC+1, coelho wrote: 
Hello

What seems to me great in GWT is that it's easy to build
client code and server code that can communicate through 
GWT-RPC.

What 's great too is that you can write modules
and your webapp can use those modules.

Then why is it so complicated ( is it possible ? ) to have a module 
with GWT-RPC code
( implementation and interfaces )
that could be used in a webapp


  And by "so complicated" you mean adding half a dozen lines to your 
web.xml file, right?



Actually the goal gwt:mergewebxml is really ALL you need (believe me, 
we use it just like that for exactly what you are trying to). Please clarify 
what you mean with "web.xml refers to external module". I assume either your 
web.xml gets or already is troubled or your POM is not configured properly.

I tried many things in eclipse
I tried many things with maven
( gwt-maven-plugin : goal mergewebxml ) fails when web.xml 
refers to external module

still no success !


  Have a look at the cargo maven plugin (I haven't tried it though)


I wondered if there is such a project already done

Is there somewhere a jar , ready made , with GWT-RPC included that 
I could use as a reference ?

or is hopeless ?


  I believe that's what web-

Re: Modular rpc blues

2010-12-22 Thread Metronome / Basic
Hello
Thanks for trying to help me !

One of my tries is : compile the "maven-googlewebtoolkit2-sample"
using gwt-maven-plugin
it was a three modules project war rpc and server
I reduced it to war server , by merging rpc and server

I join the pom and web.xml of the war


mvn package report

ERROR] Failed to execute goal 
org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:mergewebxml (default) on project 
maven-googlewebtoolkit2-sample-war: Unable to merge web.xml: 
NullPointerException -> [Help 1]






  - Original Message - 
  From: Andreas Horst 
  To: google-web-toolkit@googlegroups.com 
  Sent: Wednesday, December 22, 2010 12:26 AM
  Subject: Re: Modular rpc blues


  Another question just coming to my mind:


  Where in the inherited module are you declaring the RPC servlet?


  If you declare it in the inherited module's web.xml then make sure the Maven 
GWT plugin parameter "webXml" properly points to it (Not sure how one would do 
this - never did it myself - especially since  inherited modules usually come 
as a .jar. If so does yours include the web.xml?).


  If you declare it in the inherited module's module descriptor (a.k.a. 
*.gwt.xml) all should be fine. Hence I assume you do not declare it there? Look 
here for details about the module descriptor, note the  tag.


  My 2cents: Use the second option.


  Why? Because obviously your inherited module realizes functionality that is 
to be reused. It is hence some sort of library and not (only?) an application 
or even a .war packed web application. All our inherited modules are _library_ 
modules, they don't get deployed on an _application_ server on their own. Now 
if one of those features functionality through RPC (we have some of those) we 
thankfully use the above mentioned  tag in the module descriptor and 
let the Maven GWT plugin do its job. IMHO on the one hand a web.xml does not 
belong into a common not "runnable" module and on the other one a (.war packed) 
application is not best suitable for inheriting functionality.


  Regards


  2010/12/21 Andreas Horst 




2010/12/21 Thomas Broyer 




  On Tuesday, December 21, 2010 9:51:38 AM UTC+1, coelho wrote:
Hello

What seems to me great in GWT is that it's easy to build
client code and server code that can communicate through GWT-RPC.

What 's great too is that you can write modules
and your webapp can use those modules.

Then why is it so complicated ( is it possible ? ) to have a module 
with GWT-RPC code
( implementation and interfaces )
that could be used in a webapp


  And by "so complicated" you mean adding half a dozen lines to your 
web.xml file, right?



Actually the goal gwt:mergewebxml is really ALL you need (believe me, we 
use it just like that for exactly what you are trying to). Please clarify what 
you mean with "web.xml refers to external module". I assume either your web.xml 
gets or already is troubled or your POM is not configured properly.

I tried many things in eclipse
I tried many things with maven
( gwt-maven-plugin : goal mergewebxml ) fails when web.xml refers 
to external module

still no success !


  Have a look at the cargo maven plugin (I haven't tried it though)


I wondered if there is such a project already done

Is there somewhere a jar , ready made , with GWT-RPC included that I 
could use as a reference ?

or is hopeless ?


  I believe that's what web-fragments in Servlets 3.0 are meant to solve:
  
http://java.sun.com/developer/technicalArticles/JavaEE/JavaEE6Overview_Part2.html#webfrags



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



  -- 
  Andreas Horst
  Schwicheldtstraße 23, 38704 Liebenburg
  Tel. +49 (0)170 4162251, mailto:horst.andrea...@googlemail.com


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


--

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1170 / Base de données virale: 426/3328 - Date: 20/12/2010

-- 
You received this message because you 

Modular rpc blues

2010-12-21 Thread Metronome / Basic
Hello

What seems to me great in GWT is that it's easy to build
client code and server code that can communicate through GWT-RPC.

What 's great too is that you can write modules
and your webapp can use those modules.

Then why is it so complicated ( is it possible ? ) to have a module with 
GWT-RPC code
( implementation and interfaces )
that could be used in a webapp

I tried many things in eclipse
I tried many things with maven
( gwt-maven-plugin : goal mergewebxml ) fails when web.xml refers to 
external module

still no success !

I wondered if there is such a project already done

Is there somewhere a jar , ready made , with GWT-RPC included that I could use 
as a reference ?

or is hopeless ?

thanks for reading , and thanks to people that have already tried to help me ( 
from previous posts )

Patrick

-- 
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: RPC in separate module

2010-12-08 Thread Metronome / Basic

Thanks for your help , I think that it must be something like that
so I tried

userServlet

metro.app.tmupack.server.MyModServiceImpl






userServlet

/metro.app.tmupack/modervice



where metro.app.tmupack is from the main module but , ie does't work

I guess that the url of the module have to be addes somehow ?

Any Idea

Thanks

Patrick


- Original Message - 
From: "Brian Reilly" 

To: 
Sent: Tuesday, December 07, 2010 8:15 PM
Subject: Re: RPC in separate module


You do have to declare the servlet in the web.xml of the main module.
As such, you have to treat it like it's in the main module. I suspect
the "metro.module.rpcpack" part of the url-pattern is the problem. The
URL pattern is determined by the main module name, not the inherited
module name or the package containing the RPC code.

-Brian

On Tue, Dec 7, 2010 at 12:17 PM, Metronome / Basic
 wrote:

It certainly is but I cannot find it

I tried


userServlet

metro.module.rpcpack.server.MyModServiceImpl






userServlet

/metro.module.rpcpack/modervice



in the web.xml of the main module
metro.module.rpcpack is the package name of the module with the rpc

should the declaration of the servlet be in the main module ?
what is the path

I cannot sort it out

Thanks

Patrick

- Original Message - From: "Didier Durand" 


To: "Google Web Toolkit" 
Sent: Tuesday, December 07, 2010 1:08 PM
Subject: Re: RPC in separate module


Hi,

Everything you need is detailed here:
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html

On Dec 7, 11:06 am, coelho  wrote:


Hello

I'm trying to bild a small application using RPC to acces SQL data
( jdbc )

It works no problem so far

I'd like this application to use modules , so that the code could be
reused in others

so I'd like to put the SQL parts in a separate module

and the question is :

How do You declare a servlet that is not in the main module
( application)

or am I missing something ? ( probably)

Thanks for reading

Patrick


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




-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1170 / Base de données virale: 426/3301 - Date: 06/12/2010


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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1170 / Base de données virale: 426/3303 - Date: 07/12/2010


--
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: RPC in separate module

2010-12-07 Thread Metronome / Basic

It certainly is but I cannot find it

I tried


userServlet

metro.module.rpcpack.server.MyModServiceImpl






userServlet

/metro.module.rpcpack/modervice



in the web.xml of the main module
metro.module.rpcpack  is the package name of the module with the rpc

should the declaration of the servlet be in the main module ?
what is the path

I cannot sort it out

Thanks

Patrick

- Original Message - 
From: "Didier Durand" 

To: "Google Web Toolkit" 
Sent: Tuesday, December 07, 2010 1:08 PM
Subject: Re: RPC in separate module


Hi,

Everything you need is detailed here:
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html

On Dec 7, 11:06 am, coelho  wrote:

Hello

I'm trying to bild a small application using RPC to acces SQL data
( jdbc )

It works no problem so far

I'd like this application to use modules , so that the code could be
reused in others

so I'd like to put the SQL parts in a separate module

and the question is :

How do You declare a servlet that is not in the main module
( application)

or am I missing something ? ( probably)

Thanks for reading

Patrick


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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1170 / Base de données virale: 426/3301 - Date: 06/12/2010


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