Re: Deferred Binding, Gin in library/widget ?

2011-02-28 Thread Uemit
But in case I use a app-wide URL I still have to inject the URL into my 
DataSource class right? 
I could use Field Injection but isn't constructor injection the recommended 
way to do it ?

I think it boils down to the question: What is the best practice if you want 
to develop a standalone library which doesn't care if the user uses DI or 
any other method to pass resources and dependencies into my library classes?

Sorry that I repeat the question but do I have to annotate the constructor 
with @Inject if I want to allow for constructor based DI or is there any 
other way (to avoid dependency to the guice/gin  in my library)?

Thanks in advance

cheers
Uemit



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



gwt-cron

2011-02-28 Thread Ronny Bubke
I want to share my gwt cron implementation with the gwt world.
Therefore I started a google code project gwt-cron. You can define a
start time, timezone, daylight saving times and of course a cron
string. The factory returns an iterator which generates timestamps.

http://code.google.com/p/gwt-cron/

Have a lot of fun
Ronny

-- 
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: gwt-cron

2011-02-28 Thread nino ekambi
Nice Job man,
Always a pleasure to see how creative people in the GWT Community are.
Cheers,

Alain

2011/2/28 Ronny Bubke ronny.bu...@gmail.com

 I want to share my gwt cron implementation with the gwt world.
 Therefore I started a google code project gwt-cron. You can define a
 start time, timezone, daylight saving times and of course a cron
 string. The factory returns an iterator which generates timestamps.

 http://code.google.com/p/gwt-cron/

 Have a lot of fun
 Ronny

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



resource not found question

2011-02-28 Thread Leung
Hi,

I need to access an image file. I use the relative url to construct the image, 
new Image(url). What is the problem when I try to access these resources 
directly? Should I build a servlet to receive this kind of request?

I got the following error message,
The development shell servlet received a request for 
'profile/photo/upload-11693379436235337692.bin' in module 
'com.frontpage.Portal.gwt.xml' 
   [WARN] Resource not found: profile/photo/upload-11693379436235337692.bin; 
(could a file be missing from the public path or a servlet tag misconfigured 
in module com.frontpage.Portal.gwt.xml ?)

Thanks




  

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



DateBox : Null value not identified

2011-02-28 Thread ALB-PSP-DV1
I have to do mandatory check for a date fieldWhen the user doesn't any
date in the datebox input

Code:
final DateBox dateBox = new DateBox();
dateBox.setValue(new Date());
dateBox.setFormat(new
DateBox.DefaultFormat(DateTimeFormat.getFormat(ddMMMyy)));

//capture the change event of date picker
dateBox.addValueChangeHandler(new ValueChangeHandlerDate() {
@Override
public void onValueChange(final ValueChangeEventDate event) {
if (event.getValue() == null) {
Window.alert(Date cannot be null);
validationFailed = true;
}   }
});

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



SimplePopup reposition when screen resize

2011-02-28 Thread jimmy6
I notice that simplepopup position will not reposition after screen
size change. How to make it display in the center/coner of window even
screen resize? It happen to suggestionbox, the popup menu will fix at
absolute position.

-- 
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: CGI problem

2011-02-28 Thread cvh

Whilst my fix worked for my app running on GWT development mode, I had
to make a change so it would run properly on a separate Jetty server
running on port 8080. The change I had to make was as follows:

change : Frame bugFrame = new Frame(/bugzilla/)

to : Frame bugFrame = new Frame(/bugzilla/index.cgi)

I made no change to web.xml

-- 
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: what gwt libraries should be included in production build

2011-02-28 Thread Thomas Broyer

On Sunday, February 27, 2011 7:54:13 PM UTC+1, zixzigma wrote:

 do I need gwt-servlet and gwt-user library, in my pom.xml ?


It depends what you do with your pom.xml, i.e. how you use the dependencies.
 

 I was uploading my gwt app on app engine, I got the error
 saying gwt-user jar is too big, and I need to split it.
 I decided to comment out gwt-user, and I didn't get any error or warning,
 which made me wonder what dependencies I need to include in my build ?


See http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html
 

 and is there a library that need to be present in development mode, that 
 should be excluded in final build ?


DevMode and Compiler classes are in gwt-dev.jar, and all the code you use to 
build your app is in gwt-user.jar. Almost everything in gwt-user.jar is 
aimed at being compiled to JavaScript, the rest is present in gwt-servlet 
(making gwt-servlet a subset of gwt-user; well, there might be a few classes 
from gwt-dev too that are also copied to gwt-servlet, but that's an 
implementation detail).
In brief, you need gwt-dev and gwt-user to build your client-side code, and 
you need gwt-servlet (and only gwt-servlet) on the server-side (and only if 
you use GWT-RPC and/or RequestFactory).

This means that if your mix client-side and server-side code in your Maven 
module, you need to have gwt-user as scopeprovided/scope (it's indeed 
provided by the gwt-maven-plugin) and gwt-servlet as scoperuntime/scope 
(gwt-dev is provided by the gwt-maven-plugin, so you don't need an explicit 
dependency, unless you have to write a generator or linker, but then beware 
of conflicts with some libraries; you'd better split your app into a 
client-side only and server-side modules)

-- 
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: PlaceTokenizer with no (trailing) token

2011-02-28 Thread Thomas Broyer


On Saturday, February 26, 2011 10:12:53 AM UTC+1, George Moschovitis wrote:

 Is there a way to implement a place with no token?


No.
You can have a tokenizer with no prefix though, and map a place type to a 
token (and back) there.
 

 ie, have a tokenizer like this:

 @Prefix(prefix)
 public class MyTokenizer ... {
   ...
   @Override
   public String getToken(P place) {
 return null; 
   }
 }

 this one generates tokens like this:

 #prefix:null

 is there a way to get rid of ':null' ?


See http://code.google.com/p/google-web-toolkit/issues/detail?id=5899#c1
http://code.google.com/p/google-web-toolkit/issues/detail?id=5899#c1 

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



SelectionCell on a Celltable with values

2011-02-28 Thread Ani
Hello,

I'm new on this, and i'm having some problems...I'd like to create a
celltable with selectioncells. I'll get the data shown on the
selectioncell from a RPC call, but i don´t know how to do this, as I'm
not able to give the selectioncells values after the creation of the
table.
Could you PLEASE give some help I've trying this for days with no
results. :(
Thank you in advance...

My code:


class SearchUI extends SimplePanel {
private Grid pT = new Grid(5,1);  //Main table
private Grid botones = new Grid(1,4);  //Buttons table
private Grid check = new Grid(1,2);  //Buttons table
private ListBox domains = new ListBox();  //Domains
private Button del = new Button(); //Buttons
private Button add = new Button();
private String domain = ;  //Selected domain
private final static String use = Use Inference;
private CellTableRow table = new CellTableRow();;
private SingleSelectionModelRow selectionModel = null;
private ListDataProviderRow dataProvider = null;


private ColumnRow,String firstColumn = null;
ListString subjects = new ArrayListString();

public SearchUI(){

createView();

}

private void createListeners(){

del.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event){
  //TODO
  Row selected = selectionModel.getSelectedObject();
  if (selected != null) {
  dataProvider.getList().remove(selected);
  }else{
  MessageBox.alert(ERROR:, You need to 
choose a row to
delete!, null);
  }
}

});

add.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event){
if(.equals(domain))
MessageBox.alert(ERROR:, You need to 
choose a domain first!,
null);
else{
add.setEnabled(false);
getFields(domain);
}
}
});

}

private void createView(){

subjects.add(subject1);
subjects.add(subject2);
subjects.add(subject3);

final SelectionCell subjectsCell = new SelectionCell(subjects);

firstColumn = new ColumnSearchUI.Row,String(subjectsCell) {
@Override
public String getValue(Row object) {
return object.firstColumn;
}
};
table.addColumn(firstColumn, Subject);

ListString prods = new ArrayListString();
prods.add(prod1);
prods.add(prod2);
prods.add(prod3);

final SelectionCell prodsCell = new SelectionCell(prods);

ColumnRow, String secondColumn = new
ColumnSearchUI.Row,String(prodsCell) {

@Override
public String getValue(Row object) {
return object.secondColumn;
}
};
table.addColumn(secondColumn, Prod);

ListString objs = new ArrayListString();
objs.add(obj1);
objs.add(obj2);
objs.add(obj3);

final SelectionCell objsCell = new SelectionCell(objs);

ColumnRow,String thirdColumn = new
ColumnSearchUI.Row,String(objsCell) {

@Override
public String getValue(Row object) {
return object.thirdColumn;
}
};
table.addColumn(thirdColumn, Object);

selectionModel = new SingleSelectionModelSearchUI.Row();
table.setSelectionModel(selectionModel);

...

//Listeners
createListeners();

pT.setSize(100%, 100%);

add(pT);
}


private void getFields(OntologyNode result){
if(table.getRowCount()==0){
table.setRowCount(getList().size());
dataProvider = new 
ListDataProviderSearchUI.Row(getList());
dataProvider.addDataDisplay(table);
}else if(table.getRowCount()0){
table.setRowCount(table.getRowCount()+1);
dataProvider.getList().add(new Row(first, entry, 
foo));
}
add.setEnabled(true);

}

private class Row {

private String firstColumn;
private String secondColumn;
private String thirdColumn;


public Row(String firstColumn, String secondColumn, String
thirdColumn) {
   

memory leak in sample project

2011-02-28 Thread Dave
Hi all.

I've created the GreetingService sample gwt 2.0.3 application using
Eclipse 3.5.1. I run the app in Development Mode so I can run it in
the Drip-0.3.exe memory leak detector. When I open and close the
sample pop up repeatedly I can see the Current Memory Usage in Drip go
up. Does this indicate a memory leak or DOM reclamation issue ?

Thanks,

David

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



CellTree

2011-02-28 Thread Thomas Lefort
I am having a really really hard time trying to handle a CellTree that
can be changed by the user, eg adding and removing nodes. No matter
what way I try to get the tree to refresh I always bump into a missing
API.
Why is it for instance that I cannot seem to get a handle on the
children of a TreeNode (I am trying to save a tree state and then
restore it)??? Why is it not possible to use the Class
CellTreeViewNode which seems to provide a number of useful features,
etc...?
Given that these features are rather standard, at least for desktop
apps, eg JFace for instance, I am wondering if I am missing something
here. I would very much appreciate is somebody can help me out of
this.
Thanks

-- 
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: GWT 2.2 on linux: Designer not wokring

2011-02-28 Thread Richard van der Wath
I see the discussion refers to 64 bit systems. I have the issue on a 32 bit
system and libwebkit seems to be fine:
/usr/lib ls -l libweb*
lrwxrwxrwx 1 root root   23 2011-02-28 21:12 libwebkit-1.0.so -
libwebkit-1.0.so.2.17.8
lrwxrwxrwx 1 root root   23 2011-01-12 21:58 libwebkit-1.0.so.2 -
libwebkit-1.0.so.2.17.8
-rwxr-xr-x 1 root root 16578456 2011-01-11 16:24 libwebkit-1.0.so.2.17.8

Also, I'm not running the os-version of eclipse, but downloaded and
installed from the eclipse website.

I'll have a go with the GWT beta release.

Cheers
Richard


On 25 February 2011 21:47, Eric Clayberg clayb...@google.com wrote:

 See the discussion and suggestions here...

 http://code.google.com/p/google-web-toolkit/issues/detail?id=6029

 --
 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: is it possible to use an SLF4J adapter in GWT to wrap java.util.logging ?

2011-02-28 Thread Richard Allen
I never knew of i_log until now. I suggest you write some documentation and 
provide a website if you want to attract users.

Anyway, we aren't using JME, and SF4J/Logback with a simple GWT emulation is 
working fine for us.

-Richard

-- 
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: DateBox : Null value not identified

2011-02-28 Thread ALB-PSP-DV1
Sorry I submitted the incomplete query by mistake. Here's my
question:

I have to do mandatory check for a date field when the user doesn't
enter any date in the datebox input, however I'm always getting the
last set value for the date field instead of null when user doesn't
enter any data.

Kindly help.


My code:
final DateBox dateBox = new DateBox();
dateBox.setValue(new Date());
dateBox.setFormat(new
DateBox.DefaultFormat(DateTimeFormat.getFormat(ddMMMyy)));


//capture the change event of date picker
dateBox.addValueChangeHandler(new ValueChangeHandlerDate() {
@Override
public void onValueChange(final ValueChangeEventDate event)
{
if (event.getValue() == null) {
 Window.alert(Date cannot be null);
 }
}
}

Window.alert(Date :  +dateBox.getValue() );




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



SelectionCell

2011-02-28 Thread Ani
Hello,

Can the SelectionCell have different data on different rows?Could
anybody give some example on that, please???
Thank you very much in advance...

-- 
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: SimplePager, CellTable, Progress Bar Gone

2011-02-28 Thread cmarsh...@avenue100.com
I finally got some time to try the AsyncDataProvider and I am finding
that getting the loading indicator to appear is not straightforward. I
have my application (too complicated to post) working but only by
invoking updateRowCount on the AysncDataProvider within a timer 50
milliseconds after something happens that I would normally expect the
loading indicator to appear.  I found this approach by accident when I
had a bug in my code it seems a bit strange.

To try to figure out what really should be done I copied the example
in the javadoc for the AsyncDataProvider and it does NOT produce a
loading indicator.  How would this example need to be changed to show
a loading indicator?

thanks,
Chris

-- 
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: Pb returning custom type on RPC call with Gilead

2011-02-28 Thread sebastien
Hi,

Tks for reply.

I had 2 versions of beanlib.jar in the buildpath... i kept the last
version (the same as gilead) and it works !


tks.

On 24 fév, 17:01, David Chandler drfibona...@google.com wrote:
 It looks like Gilead requires a compatible version of the beanlib jar in
 WEB-INF/lib.

 HTH,
 /dmc







 On Thu, Feb 24, 2011 at 7:09 AM, sebastien seba.mo...@gmail.com wrote:
  my config is GWT 2.1 and Gilead 1.3.2.1839, hibernate3.jar

  my project is named oppv.

  my LoginService.java -- (package com.oppv.client.remote)

  public interface LoginService extends RemoteService{

         public String getNameUser(String value);

         public Iuser getUser(String value);

  }

  my LoginServiceAsynch.java -- (package com.oppv.client.remote)

  public interface LoginServiceAsync{

         public void getNameUser(String value, AsyncCallbackString
  callback);

         public void getUser(String value, AsyncCallbackIuser callback);
  }

  my oppv.java -- (package com.oppc.client)

         LoginService.getNameUser(login.getValue(), getNameCallBack);

         and callback :

         private AsyncCallbackString getNameCallBack = new
  AsyncCallbackString()  {

                 public void onFailure(Throwable caught) {
                         GWT.log(caught.getMessage(), caught);
                    }
                 public void onSuccess(String UserName) {
                         if (!UserName.isEmpty()) {
                                 System.out.println(My Result getName is  :
   + UserName);
                         }
                         else {
                                 System.out.println(No UserName found.);
                         }
                 }
         };

         LoginService.getUser(login.getValue(), getUserCallBack);

         and callback :

         private AsyncCallbackIuser getUserCallBack = new
  AsyncCallbackIuser()  {

                 public void onFailure(Throwable caught) {
                         GWT.log(caught.getMessage(), caught);
                    }
                 public void onSuccess(Iuser user) {
                         if (user != null) {
                                 System.out.println(My result getUser is : 
  + user.getName());
                         }
                         else {
                                 System.out.println(No UserName found.);
                         }
                 }
         };

  my LoginServiceImpl.java -- (package com.oppv.server)

         /**
           * Constructor
           */

         public LoginServiceImpl() {
             HibernateUtil gileadHibernateUtil = new HibernateUtil();

  gileadHibernateUtil.setSessionFactory(HibernateContext.getSessionFactory()) 
  ;

             PersistentBeanManager persistentBeanManager = new
  PersistentBeanManager();
             persistentBeanManager.setPersistenceUtil(gileadHibernateUtil);
             persistentBeanManager.setProxyStore(new StatelessProxyStore());
             setBeanManager(persistentBeanManager);
         }

         @Override
         public Iuser getNameUser(String value) {
                 Session session = null;
                 Transaction transaction = null;
                 try {
                         session =
  HibernateContext.getSessionFactory().openSession();
                         transaction = session.beginTransaction();
                     Iuser iuser = (Iuser)
  session.createCriteria(Iuser.class).add(Restrictions.eq(email,
  value))

                                                      .uniqueResult();
                     return iuser.getName();
                 }
                 catch (RuntimeException e) {
                         transaction.rollback();
                         throw e;
                 }
                 finally {
                         session.close();
                 }
         }

         @Override
         public Iuser getUser(String value) {
                 Session session = null;
                 Transaction transaction = null;
                 try {
                         session =
  HibernateContext.getSessionFactory().openSession();
                         transaction = session.beginTransaction();
                     Iuser iuser = (Iuser)
  session.createCriteria(Iuser.class).add(Restrictions.eq(email,
  value))

                                                      .uniqueResult();
                     return iuser;
                 }
                 catch (RuntimeException e) {
                         transaction.rollback();
                         throw e;
                 }
                 finally {
                         session.close();
                 }
         }

  My HibernateContext.java --

  package com.oppv.server;

  import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;
  import org.hibernate.SessionFactory;
  import org.hibernate.cfg.Configuration;

  /**
   * Hibernate context utility class
   * @author 

Re: Upadate Data of CellList

2011-02-28 Thread Greg Dougherty
Well, I haven't looked at the Showcase example, but I'd bet good money
that those null pointers are the result of your actions, not anything
in GWT.

Are you disposing of the data you got from the server after your call
to updateRow?  Remember, YOU are providing the data to the renderer.
That means you have to keep a copy of the data around for the renderer
whenever it wants it.

Greg

On Feb 25, 9:59 am, Andreas koebe...@gmail.com wrote:
  If you're only adding to the end of the list, then keep track of how
  many items you've already added, and call updateRowData (prevNumAdded
  - 1, newData);

 Unfortunately this works only on initial filling. The second time I
 call this I've got nullPointers in my cell.render method for the first
 items added. This is another thing I dont understand: why is the
 render method call for my whole list and not only for the one that
 I've added in the updateRowData method and why the first 10 are null.

 Also I dont understand which method forces the list to re render?

  If you're changing things / adding things in the middle, you can do
  all sorts of complicated things to figure out where the changes are,
  and only give your CellList the changes, but you're probably better
  off simply replacing everything and letting CellList worry about it.

 Draw the whole list is not that good cause you have a short delay
 where the list disappears. And there must be  a way to get it work, as
 shown in the showcase example.

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



Grid component not displayed correctly in Eclipse GWT Designer plugin

2011-02-28 Thread Wilson Hew
Hi,

I am a new user to GWT and GXT. I have installed below plugins into
Eclipse EE Helios 3.6 32-bit

- Google Plugin for Eclipse 3.6 (http://dl.google.com/eclipse/plugin/
3.6)
- Google App Engine Java SDK 1.4.2 (http://dl.google.com/eclipse/
plugin/3.6)
- Google Web Toolkit SDK 2.2.0 (http://dl.google.com/eclipse/plugin/
3.6)
- Windows Builder Engine 0.9.0 (http://dl.google.com/eclipse/inst/
d2gwt/latest/3.6)
- GWT Designer 2.2.0 into Eclipse 3.6 (http://dl.google.com/eclipse/
inst/d2gwt/latest/3.6)

Beside these, I have installed JDK1.6.0_24 32-bit. All of these are
run in Windows 7 64-bit Professional.

I am able to create a new Web Application Project successfully and
able to add the EXT GWT (GXT 2.2.1) through eclipse from menu Google
Web Toolkit - Configure for using EXT GWT (GXT) into GWT Designer
palette. All the GXT components are shown nicely.

The root panel, layout, and content panel are created on the screen.
However, I am not able to create a Grid components (eg Grid, Editor
Grid, EditorTree Grid). In fact, the grid component created on the
panel is a small rectangle. I won't able to resize it no matter do it
in code or properties.

All the same plugins and installations are applied into another
machine which using Windows XP Professional, it cannot be created and
running successfully. When the source files transferred to Windows 7,
it is not even can compile!

In addition, another machine which is also Windows XP Professional and
installed all the plugins is same to my Windows 7. It won't able to
create the Grid component.

Anyone knows how to solve this problem. Urgent.

Thanks.

Regards,
Wilson Hew

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



GWT Spring Hibernate MySql Maven

2011-02-28 Thread Bahador
Hi all,
I am new to GWT, Spring, Hibernate, MySql, and Maven. I googled a lot
for finding such a good tutorial, however, I still have an issue for
integrating GWT and Spring servlet. I made a Web Application Project
on Eclipse then I added a Maven capability, and then I added the
Spring with Hibernate and MySql capability, the code is compiling with
Maven properly. But it does not run correctly, since I do not know how
to do the servlet mapping correctly. I would appreciate it for any
help to integrate GWT and Spring. I can send the whole project if
require.

Please help me.
Thanks
Bahador

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



Is it possible to add widgets as MenuItems?

2011-02-28 Thread JD
Knowing MenuItem extends UIObject (which can not receive events) keeps
my hopes low, but I would like to know if one can add widgets as menu
items, something like new MenuItem(new Slider()) for example.

Thanks,
JD

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



GWT module not loading

2011-02-28 Thread Krishna
Hi All,

I am new to GWT and using the GWT eclipse plugin to run my GWT module.
I am getting the following error while running the module using Run
As Webapplication (on an external server) option in eclipse.

I am using Eclipse 3.4 with GWT2.2.0.

Loading inherited module 'com.google.gwt.user.User'
 Loading inherited module 'com.google.gwt.i18n.I18N'
[ERROR] Element 'property-provider' beginning on line 75
contains unexpected attribute 'generator'
[ERROR] Failure while parsing XML
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
at
com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedAttribute(DefaultSchema.java:
72)
at
com.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java:
80)
at
com.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java:
80)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:228)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
501)


Could somebody explain whats wrong with it?

Thank you,
Krishna.

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



Taborder component not shown in Palette

2011-02-28 Thread Wilson Hew
Hi,

   Anyone can tell me why the Taborder component is not shown in the
Palette under the System Tools tab?

   Thanks.

Regards,
Wilson Hew

-- 
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: Does GWT has any support for data binding?

2011-02-28 Thread saida dhanavath
Hi,

I found something interesting called  GWT Editor Framework for data binding.
http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html

http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.htmlI think
it looks good. Can you share your thoughts on the same for using in an
Enterprise Application.

Thanks!
Saida.

On Mon, Feb 28, 2011 at 1:39 PM, Sai dhana@gmail.com wrote:


 Hi All,

 I have a requirement to build GWT based User Interface and looking for
 a very good data binding feature, meaning binding a java object model
 to a UI form.
 like Struts Form bean/JSF backing bean feature. I went through GWT
 docs but didn't find anything on data binding, If you guys have used
 any third-party solution for the same please guide me how to go about
 it?

 Thanks in advance!
 Saida.




-- 
Regards,
-Sai.

-- 
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: Java Mail Provider

2011-02-28 Thread bramos
looks like they've blocked SMTP and SMTPS connections from appengine:

JavaMail Features Not Supported
An app cannot use the JavaMail interface to connect to other mail
services for sending or receiving email messages. SMTP configuration
added to the Transport or Session is ignored.

http://code.google.com/appengine/docs/java/mail/usingjavamail.html

On Feb 12, 6:35 pm, unair001 unair...@gmail.com wrote:
 Help please.anyone?

 On Feb 11, 10:57 am, unair001 unair...@gmail.com wrote:







  In the 
  examplehttp://code.google.com/appengine/docs/java/mail/usingjavamail.html,
  it does not set the Transport. If transport is not set, the
  application sets an error. I cannot set the Transport to smtps because
  that provider is taken out of the javaMail provider file inside of the
  Appengine. That file only consists of a provider gm and I do not
  know how to make the gm provider to work.

  On Feb 10, 10:35 pm, A. Stevko andy.ste...@gmail.com wrote: Hello UN,
   Appengine supports the javax.mail 
   api.http://code.google.com/appengine/docs/java/mail/usingjavamail.htmlhtt...

   GWT does 
   not.http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html

   On Thu, Feb 10, 2011 at 2:46 PM, unair001 unair...@gmail.com wrote:
The GWT appengine SDK 1.4.0 comes packaged with the java mail jars.
The Java mail provider Jar has only one entry for protocol gm. It
does not have anything for smtps. When I use that protocol for my SMTP
server, I get an error stating that the provide is not known.

How do I get the SMTPS option to work inside of GWT. Outside, if I
configure the app without any GWT references it works fine.

1. I want to run the app inside of a GWT app engine.
2. This is for sending an email out.

Please help if you know how to fix this issue?

Thanks,
UN

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

   --
   -- A. Stevko
   ===
   If everything seems under control, you're just not going fast enough. M.
   Andretti

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



[WARN] 404 - GET /.nocache.js (127.0.0.1) 1397 bytes

2011-02-28 Thread Celinio
Hi,
I am new to GWT 2.2

I am using Helios with the GWT plugin.
I created a simple Hello World example.

The content of the module file HelloGwt.gwt.xml is :

?xml version=1.0 encoding=UTF-8?
!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 2.2.0//EN 
http://google-web-toolkit.googlecode.com/svn/tags/2.2.0/distro-source/core/src/gwt-module.dtd

module
inherits name=com.google.gwt.user.User /
source path=client /
entry-point class=oge.gwt.chap24.hello.client.HelloGwt /
/module

The content of the HelloGwt (EntryPoint) class is :

package oge.gwt.chap24.hello.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;

public class HelloGwt implements EntryPoint {

@Override
public void onModuleLoad() {
// TODO Auto-generated method stub
RootPanel.get().add(new Label(cool));

}

}

And finally Hello.html :

!doctype html
html
  head
meta http-equiv=content-type content=text/html; charset=UTF-8
titleHello33/title
script type=text/javascript language=javascript
src=.nocache.js/script
  /head

  body
iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
style=position:absolute;width:0;height:0;border:0/iframe

  /body
/html

The problem is that nothing shows up in the browser. It is supposed to
display cool. It displays the title though : Hello33.

I get this message in the Eclipse console :
[WARN] 404 - GET /.nocache.js (127.0.0.1) 1397 bytes
   Request headers
  Host: 127.0.0.1:
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13
  Accept: */*
  Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 115
  Connection: keep-alive
  Referer: http://127.0.0.1:/Hello.html?gwt.codesvr=127.0.0.1:9997
  Cache-Control: max-age=0
   Response headers
  Content-Type: text/html; charset=iso-8859-1
  Content-Length: 1397

Any idea ? It's like it cannot find that .nocache.js file.
Thanks for helping.

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



Does GWT has any support for data binding?

2011-02-28 Thread Sai

Hi All,

I have a requirement to build GWT based User Interface and looking for
a very good data binding feature, meaning binding a java object model
to a UI form.
like Struts Form bean/JSF backing bean feature. I went through GWT
docs but didn't find anything on data binding, If you guys have used
any third-party solution for the same please guide me how to go about
it?

Thanks in advance!
Saida.

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



Method Reference Delegate or so

2011-02-28 Thread andi
Hi all,

I'm looking for a solution how to transport a method reference. Usecase is
to wrap some async method calls and only have one success handler after all
are doen.

E.g. I want something like this (which would easily possible in JS):

Requestor req = new Requestor();
req.add(Foo.method, param, param);
req.add(Bar.method, param);
req.do(new SimpleMethodCallbackJSONValue() {
@Override
public void onSuccess() {
// ...
}
});

Someone has a solution how to accomplish this?

Thanks in advance,
Andi

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



GWT with JPA

2011-02-28 Thread FritzTheCat
Hi people,

i try to use gwt 2.2 with JPA. For this I use the @Entity annotation
in my shared folder and i get the error message:
The import javax.persistence cannot be resolved, Entity cannot be
resolved to a type. For me it is clear that something is missing in
the .gwt.xml file and I found the rpc enhanced feature but I don't
know how to include those classes. I used the following define-
configuration-property name=rpc.enhancedClasses is-multi-
valued=true/ in my .gwt.xml file but I also have to define my
@Entity annotated classes. So how must the be defined in the .gwt.xml
file? Any help is appreciated,

thank you and nice greetings

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



problem with 2 IFRAMES and F5

2011-02-28 Thread Maxim
Hello for all!

I create GWT Aplication. On the first page I has 1 IFRAME
(com.google.gwt.user.client.ui.Frame) and a few buttons in front of
him. when I click on one button - IFRAME replaced by another class. in
this class, I open another IFRAME and then press F5 to reload page.
after this the first IFRAME contains site from second IFRAME.  How can
I prevent this caching content?

Thanks in advance

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



Issue with RichTextArea in Firefox (spell checker)

2011-02-28 Thread andrei
Hello,

I'm using a com.google.gwt.user.client.ui.RichTextArea where I've
attached a key handler. When pressing space (on non IE-browsers) I'm
adding nbsp; (as html) instead of letting the default behavior.

richTextArea.getFormatter().insertHTML(nbsp;);

I need this because sometimes other characters are added by default.
Anyway the reason is not important.

The problem is that after executing this line in Firefox, the
paragraph that I was editing looses the spell checker. This means that
if any word was already highlighted as wrong by FF, it is shown as
correct now (no underline, nothing). The only word in the paragraph
analyzed by the spell checker is the last word (the one just before
pressing space). All other paragraphs are OK, they continue to show
all misspelled words.
This area is opened in a org.gwt.mosaic.ui.client.WindowPanel panel,
and if I resize it, the area is redrawn and the spell checker works on
all text (until I edit it, and add html again).

Any ideas?
Thank you.

-- 
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: GWT module not loading

2011-02-28 Thread SVR
Check your module gwt.xml file, or copy it here

On Sat, Feb 26, 2011 at 3:52 PM, Krishna krishna.alap...@gmail.com wrote:

 Hi All,

 I am new to GWT and using the GWT eclipse plugin to run my GWT module.
 I am getting the following error while running the module using Run
 As Webapplication (on an external server) option in eclipse.

 I am using Eclipse 3.4 with GWT2.2.0.

 Loading inherited module 'com.google.gwt.user.User'
 Loading inherited module 'com.google.gwt.i18n.I18N'
[ERROR] Element 'property-provider' beginning on line 75
 contains unexpected attribute 'generator'
[ERROR] Failure while parsing XML
 com.google.gwt.core.ext.UnableToCompleteException: (see previous log
 entries)
at

 com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedAttribute(DefaultSchema.java:
 72)
at
 com.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java:
 80)
at
 com.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java:
 80)
at com.google.gwt.dev.util.xml.ReflectiveParser
 $Impl.startElement(ReflectiveParser.java:228)
at

 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
 501)


 Could somebody explain whats wrong with it?

 Thank you,
 Krishna.

 --
 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: GWT Spring Hibernate MySql Maven

2011-02-28 Thread Juan Pablo Gardella
I use gwt-dispatch. Look at:

http://pgt.de/2009/09/16/use-spring-with-gwt-dispatch/
http://pgt.de/2009/12/09/sample-gwt-dispath-project/

For how integrate.

Juan

2011/2/27 Bahador biglar...@gmail.com

 Hi all,
 I am new to GWT, Spring, Hibernate, MySql, and Maven. I googled a lot
 for finding such a good tutorial, however, I still have an issue for
 integrating GWT and Spring servlet. I made a Web Application Project
 on Eclipse then I added a Maven capability, and then I added the
 Spring with Hibernate and MySql capability, the code is compiling with
 Maven properly. But it does not run correctly, since I do not know how
 to do the servlet mapping correctly. I would appreciate it for any
 help to integrate GWT and Spring. I can send the whole project if
 require.

 Please help me.
 Thanks
 Bahador

 --
 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: GWT with JPA

2011-02-28 Thread Juan Pablo Gardella
I think you need the jpa sources in your classpath.

Juan

2011/2/28 FritzTheCat wg27_2...@hotmail.com

 Hi people,

 i try to use gwt 2.2 with JPA. For this I use the @Entity annotation
 in my shared folder and i get the error message:
 The import javax.persistence cannot be resolved, Entity cannot be
 resolved to a type. For me it is clear that something is missing in
 the .gwt.xml file and I found the rpc enhanced feature but I don't
 know how to include those classes. I used the following define-
 configuration-property name=rpc.enhancedClasses is-multi-
 valued=true/ in my .gwt.xml file but I also have to define my
 @Entity annotated classes. So how must the be defined in the .gwt.xml
 file? Any help is appreciated,

 thank you and nice greetings

 --
 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: Upadate Data of CellList

2011-02-28 Thread Andreas
I hold the list internally and add the incoming data to it. So it
works when I call updateRow(0, wholeList). But I dont won't the
browser force to render the whole list. Lets say initially the list
has 50 items, I dont want to render 500 items after 9 loads, but only
to render 50 for every load.

This is the doc for m.google.gwt.view.client.HasData.setRowData:

Set a values associated with the rows in the visible range.

This method does not replace all rows in the display; it replaces the
row values starting at the specified start index through the length of
the the specified values.

If I understand this right, it should to what I want, only update the
values for specific rows, but it also delete all others.

On Feb 28, 3:30 pm, Jeff Schwartz jefftschwa...@gmail.com wrote:
 How are you maintaining the reference to the list of data objects you want
 to render?

 On Mon, Feb 28, 2011 at 9:26 AM, Greg Dougherty
 dougherty.greg...@mayo.eduwrote:









  Well, I haven't looked at the Showcase example, but I'd bet good money
  that those null pointers are the result of your actions, not anything
  in GWT.

  Are you disposing of the data you got from the server after your call
  to updateRow?  Remember, YOU are providing the data to the renderer.
  That means you have to keep a copy of the data around for the renderer
  whenever it wants it.

  Greg

  On Feb 25, 9:59 am, Andreas koebe...@gmail.com wrote:
If you're only adding to the end of the list, then keep track of how
many items you've already added, and call updateRowData (prevNumAdded
- 1, newData);

   Unfortunately this works only on initial filling. The second time I
   call this I've got nullPointers in my cell.render method for the first
   items added. This is another thing I dont understand: why is the
   render method call for my whole list and not only for the one that
   I've added in the updateRowData method and why the first 10 are null.

   Also I dont understand which method forces the list to re render?

If you're changing things / adding things in the middle, you can do
all sorts of complicated things to figure out where the changes are,
and only give your CellList the changes, but you're probably better
off simply replacing everything and letting CellList worry about it.

   Draw the whole list is not that good cause you have a short delay
   where the list disappears. And there must be  a way to get it work, as
   shown in the showcase example.

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

 --
 *Jeff 
 Schwartz*http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschwartz
 follow me on twitter: @jefftschwartz

-- 
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: Own GWT library without web.xml

2011-02-28 Thread klemensr
I unchecked the This project has a war directory already - The
strange thing is that the type of the error message The web.xml file
does not exist is Google Web App Problem. So the suggestion to
uncheck this field was a great idea but unfortunately I did that
already. I also checked the eclipse.pref files and of course restarted
eclipse.

@Jaff Schwartz: What do you mean with importing the library into my
web.xml file?

thanks so far, hopefully sb can help me out anyway...

On 25 Feb., 16:55, Jack mlsubscri...@gmail.com wrote:
 Go to project properties - Google - Web Application and uncheck This
 project has a war directory.

-- 
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: GWT with JPA

2011-02-28 Thread FritzTheCat
Thanks Juan for your quick reply, I think I did not explain my problem
enough detailled so I try it again: My project compiles right so I
don't think it is a class-path problem in the common way: Refering to
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes
I have to assure the following:
 # The class is annotated with a JPA javax.persistence.Entity
annotation. - I did this in my Entity object

for example:
@Entity
public class Member implements Serializable{

private static final long serialVersionUID = -8354006649751924339L;

public Long id;
}

# The fully-qualified class name is listed as one of the values of the
rpc.enhancedClasses configuration property in a .gwt.xml module file
that is part of the application. - I think this is my problem. I
don't know how to put the class into my .gwt.xml file and I cannot
find any description how to do this, I only found some comments, that
the annotation can not be read by the client gwt code (which is clear
to me), but how can I put them into the gwt.xml file?

Thanks for your help

On 28 Feb., 16:18, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 I think you need the jpa sources in your classpath.

 Juan

 2011/2/28 FritzTheCat wg27_2...@hotmail.com

  Hi people,

  i try to use gwt 2.2 with JPA. For this I use the @Entity annotation
  in my shared folder and i get the error message:
  The import javax.persistence cannot be resolved, Entity cannot be
  resolved to a type. For me it is clear that something is missing in
  the .gwt.xml file and I found the rpc enhanced feature but I don't
  know how to include those classes. I used the following define-
  configuration-property name=rpc.enhancedClasses is-multi-
  valued=true/ in my .gwt.xml file but I also have to define my
  @Entity annotated classes. So how must the be defined in the .gwt.xml
  file? Any help is appreciated,

  thank you and nice greetings

  --
  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: Method Reference Delegate or so

2011-02-28 Thread Jeff Schwartz
Here's one solution: For each onSuccess method call back set some flag value
to indicate it has completed.

Issue all thre rp calls.

Set a timer that runs a check of all three values set by their respective
onSuccess methods. If they all indicate that their respective rp calls have
completed do the processing needed at this point which relies on all 3 rp
calls to have completed. Otherwise, restart the timer. Keep the lapse time
quick so as not to block the ui.

Jeff


On Sat, Feb 26, 2011 at 3:43 PM, andi andi.ba...@googlemail.com wrote:

 Hi all,

 I'm looking for a solution how to transport a method reference. Usecase is
 to wrap some async method calls and only have one success handler after all
 are doen.

 E.g. I want something like this (which would easily possible in JS):

 Requestor req = new Requestor();
 req.add(Foo.method, param, param);
 req.add(Bar.method, param);
 req.do(new SimpleMethodCallbackJSONValue() {
 @Override
 public void onSuccess() {
 // ...
 }
 });

 Someone has a solution how to accomplish this?

 Thanks in advance,
 Andi

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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

-- 
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: GWT with JPA

2011-02-28 Thread Juan Pablo Gardella
I don't do anything in my .gwt.xml for compiling my project. Are you compile
with gwt-maven-plugin?

Here is my pom.xml and my .gwt-xml.

Juan

.gwt.xml:
module rename-to='...'
!-- Inherit the core Web Toolkit stuff. --
inherits name='com.google.gwt.user.User' /

!-- Inherit the default GWT style sheet. You can change --
!-- the theme of your GWT application by uncommenting --
!-- any one of the following lines. --
inherits name='com.google.gwt.user.theme.standard.Standard' /
!-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
!-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

!-- Other module inherits --
inherits name=com.google.gwt.activity.Activity /
inherits name=com.google.gwt.place.Place /
 !-- Specify the app entry point class. --
entry-point class='...' /

!-- Specify the paths for translatable code --
source path='client' /
source path='shared' /



/module

pom.xml:
?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;

!-- POM file generated with GWT webAppCreator --
modelVersion4.0.0/modelVersion
groupId/groupId
artifactId/artifactId
packagingwar/packaging
version/version


properties
!-- Convenience property to set the GWT version --
gwtVersion2.1.1/gwtVersion
hibernate.version3.6.1.Final/hibernate.version
!-- GWT needs at least java 1.5 --
maven.compiler.source1.6/maven.compiler.source
maven.compiler.target1.6/maven.compiler.target
webappDirectory${project.build.directory}/${project.build.finalName}/webappDirectory
project.build.sourceEncodingUTF-8/project.build.sourceEncoding
/properties

dependencies
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-servlet/artifactId
version${gwtVersion}/version
scoperuntime/scope
/dependency
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-user/artifactId
version${gwtVersion}/version
scopeprovided/scope
/dependency
!-- Persistencia --
dependency
groupIdorg.hibernate.javax.persistence/groupId
artifactIdhibernate-jpa-2.0-api/artifactId
version1.0.0.Final/version
/dependency
dependency
groupIdorg.hibernate/groupId
artifactIdhibernate-core/artifactId
version${hibernate.version}/version
exclusions
exclusion
groupIdcglib/groupId
artifactIdcglib/artifactId
/exclusion
exclusion
groupIdnet.sf.ehcache/groupId
artifactIdehcache/artifactId
/exclusion
exclusion
groupIdasm/groupId
artifactIdasm/artifactId
/exclusion
exclusion
groupIdasm/groupId
artifactIdasm-attrs/artifactId
/exclusion
exclusion
groupIdjavax.transaction/groupId
artifactIdjta/artifactId
/exclusion
/exclusions
/dependency
dependency
groupIdorg.hibernate/groupId
artifactIdhibernate-entitymanager/artifactId
version${hibernate.version}/version
exclusions
exclusion
groupIdcglib/groupId
artifactIdcglib/artifactId
/exclusion
exclusion
groupIddom4j/groupId
artifactIddom4j/artifactId
/exclusion
/exclusions
/dependency

dependency
groupIdjavax.transaction/groupId
artifactIdjta/artifactId
version1.1/version
/dependency

!-- Test --
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.8.2/version
scopetest/scope
/dependency

 /dependencies

build


!-- Generate compiled stuff in the folder used for developing mode --
outputDirectory${webappDirectory}/WEB-INF/classes/outputDirectory

plugins


plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.3.2/version
configuration
source1.6/source
target1.6/target
/configuration
/plugin




!-- GWT Maven Plugin --
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
version2.1.0-1/version
executions
execution
goals
goalcompile/goal
goaltest/goal
goali18n/goal
!-- goalgenerateAsync/goal --
/goals
/execution
/executions
!-- Plugin configuration. There are many available options, see
gwt-maven-plugin
documentation at codehaus.org --
configuration
runTargetembalajemadera.html/runTarget
hostedWebapp${webappDirectory}/hostedWebapp
i18nMessagesBundle${project.groupId}.client.Messages/i18nMessagesBundle
!-- Genera las interfaces Async --
!-- servicePatterncom/foo/client/services/*.java/servicePattern --
/configuration
/plugin

!-- Copy static web files before executing gwt:run --
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.1.1/version
executions
execution
phasecompile/phase
goals
goalexploded/goal
/goals
/execution
/executions
configuration
webappDirectory${webappDirectory}/webappDirectory
/configuration
/plugin

!-- IDE --
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.7/version  !-- Note 2.8 does not work with AspectJ aspect path
--
configuration
downloadSourcestrue/downloadSources
downloadJavadocsfalse/downloadJavadocs
wtpversion2.0/wtpversion
additionalBuildcommands
buildCommand
nameorg.eclipse.jdt.core.javabuilder/name
arguments
/arguments
/buildCommand
buildCommand

Re: Own GWT library without web.xml

2011-02-28 Thread Thomas Broyer
I've just put a dummy web.xml file.

I believe you could just disable the Google WebApp Project Validator (in 
Project → Properties → Builders), but given that it's managed by m2eclipse 
I'm not sure how to do it (even with the m2eclipse lifecycle extension 
points). It wasn't worth investigating further IMO.

-- 
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: GWT with JPA

2011-02-28 Thread FritzTheCat
Hm, I don't use maven in my project, I saw the xml-file you posted in
some sample applications, but I don't have to use maven to solve my
@Entity annotation problem? How would you include the
javax.persistence in the class-path (you mean to include this in
the .gwt.xml file?), because at the server I already have it included,
otherwise I could not compile

Thanks for your help

On 28 Feb., 16:41, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 I don't do anything in my .gwt.xml for compiling my project. Are you compile
 with gwt-maven-plugin?

 Here is my pom.xml and my .gwt-xml.

 Juan

 .gwt.xml:
 module rename-to='...'
 !-- Inherit the core Web Toolkit stuff. --
 inherits name='com.google.gwt.user.User' /

 !-- Inherit the default GWT style sheet. You can change --
 !-- the theme of your GWT application by uncommenting --
 !-- any one of the following lines. --
 inherits name='com.google.gwt.user.theme.standard.Standard' /
 !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
 !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

 !-- Other module inherits --
 inherits name=com.google.gwt.activity.Activity /
 inherits name=com.google.gwt.place.Place /
  !-- Specify the app entry point class. --
 entry-point class='...' /

 !-- Specify the paths for translatable code --
 source path='client' /
 source path='shared' /

 /module

 pom.xml:
 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd;

 !-- POM file generated with GWT webAppCreator --
 modelVersion4.0.0/modelVersion
 groupId/groupId
 artifactId/artifactId
 packagingwar/packaging
 version/version

 properties
 !-- Convenience property to set the GWT version --
 gwtVersion2.1.1/gwtVersion
 hibernate.version3.6.1.Final/hibernate.version
 !-- GWT needs at least java 1.5 --
 maven.compiler.source1.6/maven.compiler.source
 maven.compiler.target1.6/maven.compiler.target
 webappDirectory${project.build.directory}/${project.build.finalName}/webappDirectory
 project.build.sourceEncodingUTF-8/project.build.sourceEncoding
 /properties

 dependencies
 dependency
 groupIdcom.google.gwt/groupId
 artifactIdgwt-servlet/artifactId
 version${gwtVersion}/version
 scoperuntime/scope
 /dependency
 dependency
 groupIdcom.google.gwt/groupId
 artifactIdgwt-user/artifactId
 version${gwtVersion}/version
 scopeprovided/scope
 /dependency
 !-- Persistencia --
 dependency
 groupIdorg.hibernate.javax.persistence/groupId
 artifactIdhibernate-jpa-2.0-api/artifactId
 version1.0.0.Final/version
 /dependency
 dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-core/artifactId
 version${hibernate.version}/version
 exclusions
 exclusion
 groupIdcglib/groupId
 artifactIdcglib/artifactId
 /exclusion
 exclusion
 groupIdnet.sf.ehcache/groupId
 artifactIdehcache/artifactId
 /exclusion
 exclusion
 groupIdasm/groupId
 artifactIdasm/artifactId
 /exclusion
 exclusion
 groupIdasm/groupId
 artifactIdasm-attrs/artifactId
 /exclusion
 exclusion
 groupIdjavax.transaction/groupId
 artifactIdjta/artifactId
 /exclusion
 /exclusions
 /dependency
 dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-entitymanager/artifactId
 version${hibernate.version}/version
 exclusions
 exclusion
 groupIdcglib/groupId
 artifactIdcglib/artifactId
 /exclusion
 exclusion
 groupIddom4j/groupId
 artifactIddom4j/artifactId
 /exclusion
 /exclusions
 /dependency

 dependency
 groupIdjavax.transaction/groupId
 artifactIdjta/artifactId
 version1.1/version
 /dependency

 !-- Test --
 dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version4.8.2/version
 scopetest/scope
 /dependency

  /dependencies

 build

 !-- Generate compiled stuff in the folder used for developing mode --
 outputDirectory${webappDirectory}/WEB-INF/classes/outputDirectory

 plugins

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 version2.3.2/version
 configuration
 source1.6/source
 target1.6/target
 /configuration
 /plugin

 !-- GWT Maven Plugin --
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdgwt-maven-plugin/artifactId
 version2.1.0-1/version
 executions
 execution
 goals
 goalcompile/goal
 goaltest/goal
 goali18n/goal
 !-- goalgenerateAsync/goal --
 /goals
 /execution
 /executions
 !-- Plugin configuration. There are many available options, see
 gwt-maven-plugin
 documentation at codehaus.org --
 configuration
 runTargetembalajemadera.html/runTarget
 hostedWebapp${webappDirectory}/hostedWebapp
 i18nMessagesBundle${project.groupId}.client.Messages/i18nMessagesBundle
 !-- Genera las interfaces Async --
 !-- servicePatterncom/foo/client/services/*.java/servicePattern --
 /configuration
 /plugin

 !-- Copy static web files before executing gwt:run --
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 version2.1.1/version
 executions
 

Re: Own GWT library without web.xml

2011-02-28 Thread klemensr
I figured out the problem by myself: I went to properties -- Google --
 Web Toolkit and CHECKED the Use Google Web Toolkit option!
That doesn't really make sense for me because when I have a Google Web
Project than eclipse would require a web.xml file even more. But maybe
eclipse recogniced after activating the gwt checkbox that I have
already unchecked the Web Application - This
project has a war directory property...

But anaway - SOLVED!

thanks guys!

On 28 Feb., 16:31, klemensr klem...@reinthaler.info wrote:
 I unchecked the This project has a war directory already - The
 strange thing is that the type of the error message The web.xml file
 does not exist is Google Web App Problem. So the suggestion to
 uncheck this field was a great idea but unfortunately I did that
 already. I also checked the eclipse.pref files and of course restarted
 eclipse.

 @Jaff Schwartz: What do you mean with importing the library into my
 web.xml file?

 thanks so far, hopefully sb can help me out anyway...

 On 25 Feb., 16:55, Jack mlsubscri...@gmail.com wrote:







  Go to project properties - Google - Web Application and uncheck This
  project has a war directory.

-- 
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: GWT with JPA

2011-02-28 Thread Juan Pablo Gardella
 but I don't have to use maven to solve my
@Entity annotation problem?

No.

How would you include the
javax.persistence in the class-path?

If you are using Eclipse see:
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/preferences/java/buildpath/ref-preferences-classpath-variables.htm

You must add source and you can download here:
http://repository.jboss.org/maven2/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final-sources.jar

 (you mean to include this in
the .gwt.xml file?)

No.

Juan
2011/2/28 FritzTheCat wg27_2...@hotmail.com

 Hm, I don't use maven in my project, I saw the xml-file you posted in
 some sample applications, but I don't have to use maven to solve my
 @Entity annotation problem? How would you include the
 javax.persistence in the class-path (you mean to include this in
 the .gwt.xml file?), because at the server I already have it included,
 otherwise I could not compile

 Thanks for your help

 On 28 Feb., 16:41, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  I don't do anything in my .gwt.xml for compiling my project. Are you
 compile
  with gwt-maven-plugin?
 
  Here is my pom.xml and my .gwt-xml.
 
  Juan
 
  .gwt.xml:
  module rename-to='...'
  !-- Inherit the core Web Toolkit stuff. --
  inherits name='com.google.gwt.user.User' /
 
  !-- Inherit the default GWT style sheet. You can change --
  !-- the theme of your GWT application by uncommenting --
  !-- any one of the following lines. --
  inherits name='com.google.gwt.user.theme.standard.Standard' /
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --
 
  !-- Other module inherits --
  inherits name=com.google.gwt.activity.Activity /
  inherits name=com.google.gwt.place.Place /
   !-- Specify the app entry point class. --
  entry-point class='...' /
 
  !-- Specify the paths for translatable code --
  source path='client' /
  source path='shared' /
 
  /module
 
  pom.xml:
  ?xml version=1.0 encoding=UTF-8?
  project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=
 http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd
 
 
  !-- POM file generated with GWT webAppCreator --
  modelVersion4.0.0/modelVersion
  groupId/groupId
  artifactId/artifactId
  packagingwar/packaging
  version/version
 
  properties
  !-- Convenience property to set the GWT version --
  gwtVersion2.1.1/gwtVersion
  hibernate.version3.6.1.Final/hibernate.version
  !-- GWT needs at least java 1.5 --
  maven.compiler.source1.6/maven.compiler.source
  maven.compiler.target1.6/maven.compiler.target
 
 webappDirectory${project.build.directory}/${project.build.finalName}/webappDirectory
  project.build.sourceEncodingUTF-8/project.build.sourceEncoding
  /properties
 
  dependencies
  dependency
  groupIdcom.google.gwt/groupId
  artifactIdgwt-servlet/artifactId
  version${gwtVersion}/version
  scoperuntime/scope
  /dependency
  dependency
  groupIdcom.google.gwt/groupId
  artifactIdgwt-user/artifactId
  version${gwtVersion}/version
  scopeprovided/scope
  /dependency
  !-- Persistencia --
  dependency
  groupIdorg.hibernate.javax.persistence/groupId
  artifactIdhibernate-jpa-2.0-api/artifactId
  version1.0.0.Final/version
  /dependency
  dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate-core/artifactId
  version${hibernate.version}/version
  exclusions
  exclusion
  groupIdcglib/groupId
  artifactIdcglib/artifactId
  /exclusion
  exclusion
  groupIdnet.sf.ehcache/groupId
  artifactIdehcache/artifactId
  /exclusion
  exclusion
  groupIdasm/groupId
  artifactIdasm/artifactId
  /exclusion
  exclusion
  groupIdasm/groupId
  artifactIdasm-attrs/artifactId
  /exclusion
  exclusion
  groupIdjavax.transaction/groupId
  artifactIdjta/artifactId
  /exclusion
  /exclusions
  /dependency
  dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate-entitymanager/artifactId
  version${hibernate.version}/version
  exclusions
  exclusion
  groupIdcglib/groupId
  artifactIdcglib/artifactId
  /exclusion
  exclusion
  groupIddom4j/groupId
  artifactIddom4j/artifactId
  /exclusion
  /exclusions
  /dependency
 
  dependency
  groupIdjavax.transaction/groupId
  artifactIdjta/artifactId
  version1.1/version
  /dependency
 
  !-- Test --
  dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version4.8.2/version
  scopetest/scope
  /dependency
 
   /dependencies
 
  build
 
  !-- Generate compiled stuff in the folder used for developing mode --
  outputDirectory${webappDirectory}/WEB-INF/classes/outputDirectory
 
  plugins
 
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler-plugin/artifactId
  version2.3.2/version
  configuration
  source1.6/source
  target1.6/target
  /configuration
  /plugin
 
  !-- GWT Maven Plugin --
  plugin
  groupIdorg.codehaus.mojo/groupId
  

Re: Problems with Firefox 4B12 in dev mode.

2011-02-28 Thread Chris Conroy
Alan,

Thanks for the bug report. This appears to be a Windows specific problem for
beta 12.

On Sun, Feb 27, 2011 at 8:35 AM, Alan Chaney a...@mechnicality.com wrote:



 Hmm, Firefox decided to upgrade my Win 7/64 from B11 to B12 this morning.
 I'm using GWT 2.1.1

 I suspect dev mode is broken in FFB12 (although it was fine in B10 and B11)

 When I try and run with FF in dev (hosted) mode I'm getting

 Exception in thread Code server for mollychat from Mozilla/5.0 (Windows NT
 6.1; WOW64; rv:2.0b12) Gecko/20100101 Firefox/4.0b12 on
 http://127.0.0.1:/MollyChat.html?gwt.codesvr=127.0.0.1:9997 @
 7^GWSIdAe-|p~%Y/ com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError:
 Remote connection lost
at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:521)
at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:619)
 Caused by: java.net.SocketException: Connection reset by peer: socket write
 error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
 java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.DataOutputStream.flush(DataOutputStream.java:106)
at
 com.google.gwt.dev.shell.BrowserChannel$ReturnMessage.send(BrowserChannel.java:1310)
at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:518)
... 2 more

 but it still works fine in Chrome 11.0.672.2. It also works fine with FFB12
 in production mode.

 Sigh... I suppose this is yet another 'upstream' issue with Mozilla
 changing their plug-in API?

 If someone else can confirm this I'll report a bug.

 Regards

 Alan




-- 
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: GWT with JPA

2011-02-28 Thread FritzTheCat
I am using Eclipse and I have the javax.persistence in my class-path,
otherwise I could not compile? I use the @Entity for the shared object
used by client and server, the only possibility I found now is to
create a DAO object for the client, but then I have redundancy. I
think it is possible to do this without DAO but I am not sure how,
otherwise I have to do it with it

many thanks for your help

On 28 Feb., 17:10, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
  but I don't have to use maven to solve my
 @Entity annotation problem?

 No.

 How would you include the
 javax.persistence in the class-path?

 If you are using Eclipse 
 see:http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.u...

 You must add source and you can download 
 here:http://repository.jboss.org/maven2/org/hibernate/javax/persistence/hi...

  (you mean to include this in
 the .gwt.xml file?)

 No.

 Juan
 2011/2/28 FritzTheCat wg27_2...@hotmail.com

  Hm, I don't use maven in my project, I saw the xml-file you posted in
  some sample applications, but I don't have to use maven to solve my
  @Entity annotation problem? How would you include the
  javax.persistence in the class-path (you mean to include this in
  the .gwt.xml file?), because at the server I already have it included,
  otherwise I could not compile

  Thanks for your help

  On 28 Feb., 16:41, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
   I don't do anything in my .gwt.xml for compiling my project. Are you
  compile
   with gwt-maven-plugin?

   Here is my pom.xml and my .gwt-xml.

   Juan

   .gwt.xml:
   module rename-to='...'
   !-- Inherit the core Web Toolkit stuff. --
   inherits name='com.google.gwt.user.User' /

   !-- Inherit the default GWT style sheet. You can change --
   !-- the theme of your GWT application by uncommenting --
   !-- any one of the following lines. --
   inherits name='com.google.gwt.user.theme.standard.Standard' /
   !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
   !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

   !-- Other module inherits --
   inherits name=com.google.gwt.activity.Activity /
   inherits name=com.google.gwt.place.Place /
    !-- Specify the app entry point class. --
   entry-point class='...' /

   !-- Specify the paths for translatable code --
   source path='client' /
   source path='shared' /

   /module

   pom.xml:
   ?xml version=1.0 encoding=UTF-8?
   project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=
 http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0...
  

   !-- POM file generated with GWT webAppCreator --
   modelVersion4.0.0/modelVersion
   groupId/groupId
   artifactId/artifactId
   packagingwar/packaging
   version/version

   properties
   !-- Convenience property to set the GWT version --
   gwtVersion2.1.1/gwtVersion
   hibernate.version3.6.1.Final/hibernate.version
   !-- GWT needs at least java 1.5 --
   maven.compiler.source1.6/maven.compiler.source
   maven.compiler.target1.6/maven.compiler.target

  webappDirectory${project.build.directory}/${project.build.finalName}/webappDirectory
   project.build.sourceEncodingUTF-8/project.build.sourceEncoding
   /properties

   dependencies
   dependency
   groupIdcom.google.gwt/groupId
   artifactIdgwt-servlet/artifactId
   version${gwtVersion}/version
   scoperuntime/scope
   /dependency
   dependency
   groupIdcom.google.gwt/groupId
   artifactIdgwt-user/artifactId
   version${gwtVersion}/version
   scopeprovided/scope
   /dependency
   !-- Persistencia --
   dependency
   groupIdorg.hibernate.javax.persistence/groupId
   artifactIdhibernate-jpa-2.0-api/artifactId
   version1.0.0.Final/version
   /dependency
   dependency
   groupIdorg.hibernate/groupId
   artifactIdhibernate-core/artifactId
   version${hibernate.version}/version
   exclusions
   exclusion
   groupIdcglib/groupId
   artifactIdcglib/artifactId
   /exclusion
   exclusion
   groupIdnet.sf.ehcache/groupId
   artifactIdehcache/artifactId
   /exclusion
   exclusion
   groupIdasm/groupId
   artifactIdasm/artifactId
   /exclusion
   exclusion
   groupIdasm/groupId
   artifactIdasm-attrs/artifactId
   /exclusion
   exclusion
   groupIdjavax.transaction/groupId
   artifactIdjta/artifactId
   /exclusion
   /exclusions
   /dependency
   dependency
   groupIdorg.hibernate/groupId
   artifactIdhibernate-entitymanager/artifactId
   version${hibernate.version}/version
   exclusions
   exclusion
   groupIdcglib/groupId
   artifactIdcglib/artifactId
   /exclusion
   exclusion
   groupIddom4j/groupId
   artifactIddom4j/artifactId
   /exclusion
   /exclusions
   /dependency

   dependency
   groupIdjavax.transaction/groupId
   artifactIdjta/artifactId
   version1.1/version
   /dependency

   !-- Test --
   dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version4.8.2/version
   scopetest/scope
   /dependency

    

Re: Problems with Firefox 4B12 in dev mode.

2011-02-28 Thread Alan Chaney

Hi Chris

Do you want me to file a bug report?  I haven't had a chance to test it on more than one platform 
(win7/x86_64)/GWT2.1.1 but its likely that I could test it with Vista X86_64/GWT.2.2 this afternoon PST.


Alan



On 2/28/2011 8:28 AM, Chris Conroy wrote:

Alan,

Thanks for the bug report. This appears to be a Windows specific problem for 
beta 12.

On Sun, Feb 27, 2011 at 8:35 AM, Alan Chaney a...@mechnicality.com 
mailto:a...@mechnicality.com wrote:




Hmm, Firefox decided to upgrade my Win 7/64 from B11 to B12 this morning. 
I'm using GWT 2.1.1

I suspect dev mode is broken in FFB12 (although it was fine in B10 and B11)

When I try and run with FF in dev (hosted) mode I'm getting

Exception in thread Code server for mollychat from Mozilla/5.0 (Windows NT 
6.1; WOW64;
rv:2.0b12) Gecko/20100101 Firefox/4.0b12 on
http://127.0.0.1:/MollyChat.html?gwt.codesvr=127.0.0.1:9997 @ 
7^GWSIdAe-|p~%Y/
com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection 
lost
   at

com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:521)
   at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.SocketException: Connection reset by peer: socket write 
error
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
   at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
   at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
   at java.io.DataOutputStream.flush(DataOutputStream.java:106)
   at 
com.google.gwt.dev.shell.BrowserChannel$ReturnMessage.send(BrowserChannel.java:1310)
   at

com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:518)
   ... 2 more

but it still works fine in Chrome 11.0.672.2. It also works fine with FFB12 
in production mode.

Sigh... I suppose this is yet another 'upstream' issue with Mozilla 
changing their plug-in API?

If someone else can confirm this I'll report a bug.

Regards

Alan






--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.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-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: Problems with Firefox 4B12 in dev mode.

2011-02-28 Thread Chris Conroy
i went ahead and filed it 
here: http://code.google.com/p/google-web-toolkit/issues/detail?id=6084

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



CssResource and image sprites

2011-02-28 Thread Deepak Singh
Hi All,

I am facing a problem when i go for optimization using @sprite and
cssResource.
The details as follows,

style.css

body {
margin:0px;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
color:#33;
}

a {
color:#33;
text-decoration:none;
}

#header {
padding:5px 10px;
}

.clr {
clear:both;
}

#header-left {
float:left;
}

#header-right {
float:right;
padding-top:7px;
font-size:13px;
}

.left {
width:16%;
float:left;
}


.center {
width:42%;
float:left;
}

.right {
width:42%;
float:left;
}


.pop-up {
width:250px;
float:right;
}



@sprite .heading-left {
/* background:url(images/heading-left.jpg) left top no-repeat; */
gwt-image:'headingLeft';
height:32px;
padding-left:12px;
}

@sprite .heading-right {
/*background:url(images/heading-right.jpg) right top no-repeat;*/
gwt-image:'headingRight';
height:32px;
padding-right:12px;
}

@sprite .heading-middel {
/*background:url(images/heading-mid.jpg) top repeat-x;*/
gwt-image:'headingMid';
height:26px;
line-height:26px;
padding-top:6px;
padding-left:5px;
color:#FF;
}

.heading-middel-text {
float:left;
}

.heading-middel-icon {
float:right;
padding-top:11px;
padding-right:5px;
}

@sprite .middel-shadow-left {
/*background:url(images/mid-left.jpg) left repeat-y;*/
gwt-image:'midLeft';
padding-left:8px;
}

@sprite .middel-shadow-right {
/*background:url(images/mid-right.jpg) right repeat-y;*/
gwt-image:'midRight';
padding-right:8px;
min-height:500px;
}

@sprite .middel-shadow-right1 {
/*background:url(images/mid-right.jpg) right repeat-y;*/
gwt-image:'midRight';
padding-right:8px;
min-height:460px;
}


@sprite .middel-shadow-right2 {
/*background:url(images/mid-right.jpg) right repeat-y;*/
gwt-image:'midRight';
padding-right:8px;
}

@sprite .middel-shadow-right3 {
/*background:url(images/mid-right.jpg) right repeat-y;*/
gwt-image:'midRight';
padding-right:8px;
min-height:460px;
}

.box .middel-shadow-right {
min-height:inherit;
}


.middel-shadow-right3 ul,
.middel-shadow-right2 ul,
.middel-shadow-right ul {
margin:0px;
padding:10px;
}


@sprite .middel-shadow-right3 li,
@sprite .middel-shadow-right2 li,
@sprite .middel-shadow-right li {
gwt-image:'arrow';
margin:0px;
padding:0px 0 0 15px;
/*background:url(images/arrow.jpg) left no-repeat;*/
list-style:none;
}

@sprite .bottom-left {
/*background:url(images/bot-left.jpg) left top no-repeat;*/
gwt-image:'botLeft';
padding-left:12px;
height:12px;
}

@sprite .bottom-right {
/*background:url(images/bot-right.jpg) right top no-repeat;*/
gwt-image:'botRight';
padding-right:12px;
height:12px;
}

@sprite .bottom-middel {
/*background:url(images/bot-mid.jpg) top repeat-x;*/
gwt-image:'botMid';
height:12px;
}


@sprite .bottom-blue-left {
/*background:url(images/bot-b-left.jpg) left bottom no-repeat;*/
gwt-image:'botBLeft';
padding-left:12px;
}

@sprite .bottom-blue-right {
/*background:url(images/bot-b-right.jpg) right bottom no-repeat;*/
gwt-image:'botBRight';
padding-right:12px;
}

@sprite .bottom-blue-middel {
/*background:url(images/bot-b-mid.jpg) bottom repeat-x;*/
gwt-image:'botBMid';
padding:5px 4px 13px;
text-align:right;
}

.light-blue {
background:#c9e2fc;
padding:4px 10px;
}

.light-blue .inputdiv {
float:left;
width:25.3%;
margin-right:2px;
}

.light-blue .inputdiv1 {
float:left;
width:20%;
margin-right:2px;
}

.light-blue .inputdiv2 {
float:left;
width:12%;
margin-right:2px;
}

.light-blue .inputdiv3 {
float:left;
width:15%;
margin-right:2px;
padding-top:12px;
}

.light-blue select {
border:1px solid #5896db;
width:50px;
}

.light-blue input.inputbox {
width:93%;
border:1px solid #5896db;
padding:1px 2px;
}

form {
margin:0px;
padding:0px;
}

#footer {
background:url(images/footer.jpg) top repeat-x;
line-height:32px;
text-align:center;
color:#fff;
}

#footer a {
color:#FF;
text-decoration:none;
}

#footer1 {
text-align:center;
line-height:32px;
}

.font-label {
font-size: small;
font-style: normal;
font-weight: bold;
font-family: verdana, arial, helvetica, sans-serif;
float: inherit;
width: auto;
color: #4B4A4A;   /* previous color for black #4B4A4A */
padding-bottom: 3px;
padding-right: 15px;
padding-top: 3x;
text-align: center;
text-shadow: 1px 1px 0 #FF;
}


class MyResources extends ClientBundle {
  @Source(bundle/style.css)
CssResource style();

   @Source(bundle/shivDesign/heading-left.jpg)
ImageResource headingLeft();
 @Source(bundle/shivDesign/heading-right.jpg)
ImageResource headingRight();

@Source(bundle/shivDesign/heading-mid.jpg)
ImageResource headingMid();

@Source(bundle/shivDesign/mid-left.jpg)
ImageResource midLeft();

@Source(bundle/shivDesign/mid-right.jpg)
ImageResource midRight();

@Source(bundle/shivDesign/arrow.jpg)
ImageResource arrow();

@Source(bundle/shivDesign/bot-left.jpg)
ImageResource botLeft();

@Source(bundle/shivDesign/bot-right.jpg)
ImageResource botRight();

@Source(bundle/shivDesign/bot-mid.jpg)
ImageResource botMid();

@Source(bundle/shivDesign/bot-b-left.jpg)
ImageResource botBLeft();

@Source(bundle/shivDesign/bot-b-right.jpg)

Re: GWT with JPA

2011-02-28 Thread Juan Pablo Gardella
I am using Eclipse and I have the javax.persistence in my class-path,
otherwise I could not compile?

Yes.

I use the @Entity for the shared object
used by client and server, the only possibility I found now is to
create a DAO object for the client, but then I have redundancy. I
think it is possible to do this without DAO but I am not sure how,
otherwise I have to do it with it

Add this file to your classpath: *http://tinyurl.com/4nrxk37 (JPA API
SOURCES).  Then recompile the project and tell me.*
*
*
*Juan*
*
*
*
*
*
*


2011/2/28 FritzTheCat wg27_2...@hotmail.com

 I am using Eclipse and I have the javax.persistence in my class-path,
 otherwise I could not compile? I use the @Entity for the shared object
 used by client and server, the only possibility I found now is to
 create a DAO object for the client, but then I have redundancy. I
 think it is possible to do this without DAO but I am not sure how,
 otherwise I have to do it with it

 many thanks for your help

 On 28 Feb., 17:10, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
   but I don't have to use maven to solve my
  @Entity annotation problem?
 
  No.
 
  How would you include the
  javax.persistence in the class-path?
 
  If you are using Eclipse see:
 http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.u...
 
  You must add source and you can download here:
 http://repository.jboss.org/maven2/org/hibernate/javax/persistence/hi...
 
   (you mean to include this in
  the .gwt.xml file?)
 
  No.
 
  Juan
  2011/2/28 FritzTheCat wg27_2...@hotmail.com
 
   Hm, I don't use maven in my project, I saw the xml-file you posted in
   some sample applications, but I don't have to use maven to solve my
   @Entity annotation problem? How would you include the
   javax.persistence in the class-path (you mean to include this in
   the .gwt.xml file?), because at the server I already have it included,
   otherwise I could not compile
 
   Thanks for your help
 
   On 28 Feb., 16:41, Juan Pablo Gardella gardellajuanpa...@gmail.com
   wrote:
I don't do anything in my .gwt.xml for compiling my project. Are you
   compile
with gwt-maven-plugin?
 
Here is my pom.xml and my .gwt-xml.
 
Juan
 
.gwt.xml:
module rename-to='...'
!-- Inherit the core Web Toolkit stuff. --
inherits name='com.google.gwt.user.User' /
 
!-- Inherit the default GWT style sheet. You can change --
!-- the theme of your GWT application by uncommenting --
!-- any one of the following lines. --
inherits name='com.google.gwt.user.theme.standard.Standard' /
!-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
!-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --
 
!-- Other module inherits --
inherits name=com.google.gwt.activity.Activity /
inherits name=com.google.gwt.place.Place /
 !-- Specify the app entry point class. --
entry-point class='...' /
 
!-- Specify the paths for translatable code --
source path='client' /
source path='shared' /
 
/module
 
pom.xml:
?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
  http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=
  http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.
 ..
   
 
!-- POM file generated with GWT webAppCreator --
modelVersion4.0.0/modelVersion
groupId/groupId
artifactId/artifactId
packagingwar/packaging
version/version
 
properties
!-- Convenience property to set the GWT version --
gwtVersion2.1.1/gwtVersion
hibernate.version3.6.1.Final/hibernate.version
!-- GWT needs at least java 1.5 --
maven.compiler.source1.6/maven.compiler.source
maven.compiler.target1.6/maven.compiler.target
 
  
 webappDirectory${project.build.directory}/${project.build.finalName}/webappDirectory
project.build.sourceEncodingUTF-8/project.build.sourceEncoding
/properties
 
dependencies
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-servlet/artifactId
version${gwtVersion}/version
scoperuntime/scope
/dependency
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-user/artifactId
version${gwtVersion}/version
scopeprovided/scope
/dependency
!-- Persistencia --
dependency
groupIdorg.hibernate.javax.persistence/groupId
artifactIdhibernate-jpa-2.0-api/artifactId
version1.0.0.Final/version
/dependency
dependency
groupIdorg.hibernate/groupId
artifactIdhibernate-core/artifactId
version${hibernate.version}/version
exclusions
exclusion
groupIdcglib/groupId
artifactIdcglib/artifactId
/exclusion
exclusion
groupIdnet.sf.ehcache/groupId
artifactIdehcache/artifactId
/exclusion
exclusion
groupIdasm/groupId
artifactIdasm/artifactId
/exclusion
exclusion
groupIdasm/groupId
artifactIdasm-attrs/artifactId
/exclusion
exclusion

Re: GWT with JPA

2011-02-28 Thread Kayode Odeyemi
You need to place your entity in server/domain folder and your DTO in
shared. After that add the client and shared folder to your
module.gwt.xml file.

On 2/28/11, FritzTheCat wg27_2...@hotmail.com wrote:
 Hi people,

 i try to use gwt 2.2 with JPA. For this I use the @Entity annotation
 in my shared folder and i get the error message:
 The import javax.persistence cannot be resolved, Entity cannot be
 resolved to a type. For me it is clear that something is missing in
 the .gwt.xml file and I found the rpc enhanced feature but I don't
 know how to include those classes. I used the following define-
 configuration-property name=rpc.enhancedClasses is-multi-
 valued=true/ in my .gwt.xml file but I also have to define my
 @Entity annotated classes. So how must the be defined in the .gwt.xml
 file? Any help is appreciated,

 thank you and nice greetings

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




-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer  Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com http://www.sinati.com
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

-- 
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: GWT with JPA

2011-02-28 Thread FritzTheCat
Thank you very much Juan, now it works without errors and the entity
is persisted!!

Is this another JPA source than the standard from Java? But it does
not matter, it works well,

many thanks

On 28 Feb., 18:34, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 I am using Eclipse and I have the javax.persistence in my class-path,
 otherwise I could not compile?

 Yes.

 I use the @Entity for the shared object
 used by client and server, the only possibility I found now is to
 create a DAO object for the client, but then I have redundancy. I
 think it is possible to do this without DAO but I am not sure how,
 otherwise I have to do it with it

 Add this file to your classpath: *http://tinyurl.com/4nrxk37(JPA API
 SOURCES).  Then recompile the project and tell me.*
 *
 *
 *Juan*
 *
 *
 *
 *
 *
 *

 2011/2/28 FritzTheCat wg27_2...@hotmail.com

  I am using Eclipse and I have the javax.persistence in my class-path,
  otherwise I could not compile? I use the @Entity for the shared object
  used by client and server, the only possibility I found now is to
  create a DAO object for the client, but then I have redundancy. I
  think it is possible to do this without DAO but I am not sure how,
  otherwise I have to do it with it

  many thanks for your help

  On 28 Feb., 17:10, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
    but I don't have to use maven to solve my
   @Entity annotation problem?

   No.

   How would you include the
   javax.persistence in the class-path?

   If you are using Eclipse see:
 http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.u...

   You must add source and you can download here:
 http://repository.jboss.org/maven2/org/hibernate/javax/persistence/hi...

    (you mean to include this in
   the .gwt.xml file?)

   No.

   Juan
   2011/2/28 FritzTheCat wg27_2...@hotmail.com

Hm, I don't use maven in my project, I saw the xml-file you posted in
some sample applications, but I don't have to use maven to solve my
@Entity annotation problem? How would you include the
javax.persistence in the class-path (you mean to include this in
the .gwt.xml file?), because at the server I already have it included,
otherwise I could not compile

Thanks for your help

On 28 Feb., 16:41, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 I don't do anything in my .gwt.xml for compiling my project. Are you
compile
 with gwt-maven-plugin?

 Here is my pom.xml and my .gwt-xml.

 Juan

 .gwt.xml:
 module rename-to='...'
 !-- Inherit the core Web Toolkit stuff. --
 inherits name='com.google.gwt.user.User' /

 !-- Inherit the default GWT style sheet. You can change --
 !-- the theme of your GWT application by uncommenting --
 !-- any one of the following lines. --
 inherits name='com.google.gwt.user.theme.standard.Standard' /
 !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
 !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

 !-- Other module inherits --
 inherits name=com.google.gwt.activity.Activity /
 inherits name=com.google.gwt.place.Place /
  !-- Specify the app entry point class. --
 entry-point class='...' /

 !-- Specify the paths for translatable code --
 source path='client' /
 source path='shared' /

 /module

 pom.xml:
 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
   http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=
   http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.
  ..


 !-- POM file generated with GWT webAppCreator --
 modelVersion4.0.0/modelVersion
 groupId/groupId
 artifactId/artifactId
 packagingwar/packaging
 version/version

 properties
 !-- Convenience property to set the GWT version --
 gwtVersion2.1.1/gwtVersion
 hibernate.version3.6.1.Final/hibernate.version
 !-- GWT needs at least java 1.5 --
 maven.compiler.source1.6/maven.compiler.source
 maven.compiler.target1.6/maven.compiler.target

  webappDirectory${project.build.directory}/${project.build.finalName}/webappDirectory
 project.build.sourceEncodingUTF-8/project.build.sourceEncoding
 /properties

 dependencies
 dependency
 groupIdcom.google.gwt/groupId
 artifactIdgwt-servlet/artifactId
 version${gwtVersion}/version
 scoperuntime/scope
 /dependency
 dependency
 groupIdcom.google.gwt/groupId
 artifactIdgwt-user/artifactId
 version${gwtVersion}/version
 scopeprovided/scope
 /dependency
 !-- Persistencia --
 dependency
 groupIdorg.hibernate.javax.persistence/groupId
 artifactIdhibernate-jpa-2.0-api/artifactId
 version1.0.0.Final/version
 /dependency
 dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-core/artifactId
 version${hibernate.version}/version
 exclusions

Re: CssResource and image sprites

2011-02-28 Thread Thomas Broyer


On Monday, February 28, 2011 6:30:18 PM UTC+1, Deepak Singh wrote:

 @sprite .middel-shadow-right3 li,
 @sprite .middel-shadow-right2 li,
 @sprite .middel-shadow-right li {


If should be:
@sprite .middel-shadow-right3 li, .middle-shadow-right2 li, 
.middel-shadow-right li {

Feel free to insert line breaks, but not @sprite. GWT uses CSS language 
built-in extensibility mechanism, where @sprite is an @-rule (just like 
the built-in @font-face, @media, @import, etc.)
Here you weren't respecting the CSS syntax.
I suspect the CSS parser is lenient and treated the , as a ; or 
something like that, hence the somewhat cryptic error message.

-- 
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: GWT with JPA

2011-02-28 Thread Juan Pablo Gardella
:) good!!

Is this another JPA source than the standard from Java?

 The specification is the same. So the API sources are equal.

Juan

2011/2/28 FritzTheCat wg27_2...@hotmail.com

 Thank you very much Juan, now it works without errors and the entity
 is persisted!!

 Is this another JPA source than the standard from Java? But it does
 not matter, it works well,

 many thanks

 On 28 Feb., 18:34, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  I am using Eclipse and I have the javax.persistence in my class-path,
  otherwise I could not compile?
 
  Yes.
 
  I use the @Entity for the shared object
  used by client and server, the only possibility I found now is to
  create a DAO object for the client, but then I have redundancy. I
  think it is possible to do this without DAO but I am not sure how,
  otherwise I have to do it with it
 
  Add this file to your classpath: *http://tinyurl.com/4nrxk37(JPA API
  SOURCES).  Then recompile the project and tell me.*
  *
  *
  *Juan*
  *
  *
  *
  *
  *
  *
 
  2011/2/28 FritzTheCat wg27_2...@hotmail.com
 
   I am using Eclipse and I have the javax.persistence in my class-path,
   otherwise I could not compile? I use the @Entity for the shared object
   used by client and server, the only possibility I found now is to
   create a DAO object for the client, but then I have redundancy. I
   think it is possible to do this without DAO but I am not sure how,
   otherwise I have to do it with it
 
   many thanks for your help
 
   On 28 Feb., 17:10, Juan Pablo Gardella gardellajuanpa...@gmail.com
   wrote:
 but I don't have to use maven to solve my
@Entity annotation problem?
 
No.
 
How would you include the
javax.persistence in the class-path?
 
If you are using Eclipse see:
  http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.u.
 ..
 
You must add source and you can download here:
  http://repository.jboss.org/maven2/org/hibernate/javax/persistence/hi.
 ..
 
 (you mean to include this in
the .gwt.xml file?)
 
No.
 
Juan
2011/2/28 FritzTheCat wg27_2...@hotmail.com
 
 Hm, I don't use maven in my project, I saw the xml-file you posted
 in
 some sample applications, but I don't have to use maven to solve my
 @Entity annotation problem? How would you include the
 javax.persistence in the class-path (you mean to include this in
 the .gwt.xml file?), because at the server I already have it
 included,
 otherwise I could not compile
 
 Thanks for your help
 
 On 28 Feb., 16:41, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com
 wrote:
  I don't do anything in my .gwt.xml for compiling my project. Are
 you
 compile
  with gwt-maven-plugin?
 
  Here is my pom.xml and my .gwt-xml.
 
  Juan
 
  .gwt.xml:
  module rename-to='...'
  !-- Inherit the core Web Toolkit stuff. --
  inherits name='com.google.gwt.user.User' /
 
  !-- Inherit the default GWT style sheet. You can change --
  !-- the theme of your GWT application by uncommenting --
  !-- any one of the following lines. --
  inherits name='com.google.gwt.user.theme.standard.Standard' /
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/
 --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --
 
  !-- Other module inherits --
  inherits name=com.google.gwt.activity.Activity /
  inherits name=com.google.gwt.place.Place /
   !-- Specify the app entry point class. --
  entry-point class='...' /
 
  !-- Specify the paths for translatable code --
  source path='client' /
  source path='shared' /
 
  /module
 
  pom.xml:
  ?xml version=1.0 encoding=UTF-8?
  project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=

 http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.
   ..
 
 
  !-- POM file generated with GWT webAppCreator --
  modelVersion4.0.0/modelVersion
  groupId/groupId
  artifactId/artifactId
  packagingwar/packaging
  version/version
 
  properties
  !-- Convenience property to set the GWT version --
  gwtVersion2.1.1/gwtVersion
  hibernate.version3.6.1.Final/hibernate.version
  !-- GWT needs at least java 1.5 --
  maven.compiler.source1.6/maven.compiler.source
  maven.compiler.target1.6/maven.compiler.target
 
  
 webappDirectory${project.build.directory}/${project.build.finalName}/webappDirectory
 
 project.build.sourceEncodingUTF-8/project.build.sourceEncoding
  /properties
 
  dependencies
  dependency
  groupIdcom.google.gwt/groupId
  artifactIdgwt-servlet/artifactId
  version${gwtVersion}/version
  scoperuntime/scope
  /dependency
  dependency
  groupIdcom.google.gwt/groupId
  artifactIdgwt-user/artifactId
  version${gwtVersion}/version
  scopeprovided/scope
  

Re: CssResource and image sprites

2011-02-28 Thread Deepak Singh
Hi,

Now it compiles fine but the page UI is not rendering style.css and the
sprite images.

I have done this in onModuleLoad()

StyleInjector.inject(resource.style().getText());

My html is something like this

div class=heading-left
div class=heading-right
  div class=heading-middel
div class=heading-middel-textfilter results/div
div class=heading-middel-icon id=minGif1/div
  /div
/div
  /div

so do i need to inject the corresponding css methods seperately into each
div element in onModuleLoad() ?

Thanks

On Mon, Feb 28, 2011 at 11:34 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On Monday, February 28, 2011 6:30:18 PM UTC+1, Deepak Singh wrote:

 @sprite .middel-shadow-right3 li,
 @sprite .middel-shadow-right2 li,
 @sprite .middel-shadow-right li {


 If should be:
 @sprite .middel-shadow-right3 li, .middle-shadow-right2 li,
 .middel-shadow-right li {

 Feel free to insert line breaks, but not @sprite. GWT uses CSS language
 built-in extensibility mechanism, where @sprite is an @-rule (just like
 the built-in @font-face, @media, @import, etc.)
 Here you weren't respecting the CSS syntax.
 I suspect the CSS parser is lenient and treated the , as a ; or
 something like that, hence the somewhat cryptic error message.

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



organization of large gwt project: how to correctly break an app into GIN, Guice, GWT and Maven modules

2011-02-28 Thread zixzigma
Hello Everyone,
I would like to ask your opinion on the correct way of organizing large gwt 
projects.

Below you can see the approach I'm thinking of, I am not sure though,
and greatly appreciate your invaluable input, or experience in similar 
situation.

GWT documentation recommends a project structure consisting of 3 parts: 
Client, Shared, Server

in addition, any application can be broken into several *Functional 
Areas*(realizing business concepts)
for example, an app can have Accounts, Reports, Tasks sections (aka. 
functional areas, modules)

to organize our project, we can therefore break the app into: Accounts 
Module, Reports Module, Tasks Module.

moreover, we would typically have a *Core module*, (one Core module for 
client +  one for Server)
this Core module might contain our custom framework in which other *business 
related* modules can be put together(assembled) and work together to 
accomplish their goal.

and we would also have a *Commons module*, which contains utility or common 
classes that other modules can use.

therefore:

- Functional Area 1 Module (eg, Accounts)
- Functional Area 2 Module (eg. Reports)

-Functional Area N Module

- Core Module - Client
- Core Module - Server
- Commons Module

Reports Module for example takes care of everything related to Reports.
and according to GWT recommendation, we break Reports Module into
Reports Client, Reports Shared, Reports Server sub-modules.

*ReportsClient* would have its own pom.xml , Gin Module, and GWT Module 
(xx.gwt.xml)
*Reports Server* would have its own pom.xml and Guice Module
*Reports shared* would have its own pom.xml and would consist of interfaces 
or some static data files

and similar for Accounts, and Tasks module.

our Core and Commons module would have their own pom.xml

we then would have an overall pom.xml which puts together all the other 
modules,
and builts the entire app.

can be summarize like this

*Each Functional Area would have*
1- client: pom.xml +  GIN module + GWT Module (xx.gwt.xml)
2- shared: pom.xml (would be interfaces for client and server to 
communicate)
3- server: pom.xml + Guice module (contaning DAO, Service, Servlet, etc)

and an overall pom.xml which puts together functional areas + core + commons 
modules (and corresponding pom.xml)

- what do you think of this way of organizing projects ?

- is there a direct one-to-one correspondence between pom.xml and gin/guice 
modules ?
  in other words, is it a good idea to have a pom.xml for each of our gin 
modules, and
  having a pom.xml for each of our guice modules ?

Really appreciate your thoughts on this.

Thank You

-- 
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: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)

2011-02-28 Thread malezgerd
This solution is correct; it works!


jhulford jhulford@... writes:



-- 
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: CssResource and image sprites

2011-02-28 Thread Deepak Singh
After struggling a lot, Still i am not able resolve this.

I guess i am missing some steps to do this optimisation.
Anybody can figure it out pls.

On Tue, Mar 1, 2011 at 12:03 AM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi,

 Now it compiles fine but the page UI is not rendering style.css and the
 sprite images.

 I have done this in onModuleLoad()

 StyleInjector.inject(resource.style().getText());

 My html is something like this

 div class=heading-left
 div class=heading-right
   div class=heading-middel
 div class=heading-middel-textfilter results/div
  div class=heading-middel-icon id=minGif1/div
   /div
  /div
   /div

 so do i need to inject the corresponding css methods seperately into each
 div element in onModuleLoad() ?

 Thanks

 On Mon, Feb 28, 2011 at 11:34 PM, Thomas Broyer t.bro...@gmail.comwrote:



 On Monday, February 28, 2011 6:30:18 PM UTC+1, Deepak Singh wrote:

 @sprite .middel-shadow-right3 li,
 @sprite .middel-shadow-right2 li,
 @sprite .middel-shadow-right li {


 If should be:
 @sprite .middel-shadow-right3 li, .middle-shadow-right2 li,
 .middel-shadow-right li {

 Feel free to insert line breaks, but not @sprite. GWT uses CSS language
 built-in extensibility mechanism, where @sprite is an @-rule (just like
 the built-in @font-face, @media, @import, etc.)
 Here you weren't respecting the CSS syntax.
 I suspect the CSS parser is lenient and treated the , as a ; or
 something like that, hence the somewhat cryptic error message.

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



Upgraded to 2.2 broke hibernate 3.6 using JPA in Intellij Idea

2011-02-28 Thread jones34
I updated to 2.2 and started immediately getting hibernate exceptions
on the first attempt to use the database (see below) in my development
environment Intellij Idea 10.

I suspect that updating stomps something in my classpath or just
reorders the class path in a way that makes hibernate fail. Has anyone
seen this?

Does anyone know which jars/classes might be conflicting?

thanks.

Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
vingenius] Unable to configure EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
374)
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:
56)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
78)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
54)
at us.vingeni.vingenius.server.db.DAO.clinit(DAO.java:29)
... 32 more
Caused by: org.hibernate.HibernateException: Unable to get the default
Bean Validation factory
at
org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:
127)
at
org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configuration.java:
1674)
at
org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.java:
1624)
at
org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:
1415)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:
1345)
at
org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:
1477)
at
org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:
193)
at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
1096)
at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
278)
at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
362)
... 36 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at
org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:
118)
... 45 more
Caused by: org.hibernate.HibernateException: Unable to build the
default ValidatorFactory
at
org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java:
345)
at
org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java:
106)
... 50 more
Caused by: javax.validation.ValidationException: Unable to find a
default provider
at javax.validation.Validation
$GenericBootstrapImpl.configure(Validation.java:264)
at
javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:
111)
at
org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java:
342)
... 51 more

-- 
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 do I have to close this dialogue box twice to get it to go away

2011-02-28 Thread Rob Tanner
You were right and it took me a while to find the second instance of creating 
the DialogBox().

Thanks,
Rob


On Feb 24, 2011, at 3:38 PM, John LaBanca wrote:

 Widgets can't duplicate themselves, and even if you call clone() on the 
 element, the event handlers wouldn't work.  You might be creating a second 
 DialogBox or calling show() (or center()) twice.  Can you put a breakpoint in 
 PopupPanel#show() and see if it is being called twice?
 
 Thanks,
 John LaBanca
 jlaba...@google.com
 
 
 On Thu, Feb 24, 2011 at 6:08 PM, Rob Tanner caspersg...@gmail.com wrote:
 Hi,
 
 I use DialogBoxes for error messages on many of my on-line forms.  Hit
 the OK button (which does a close on the DialogBox) and they go away.
 That's the way it should be.  Now I'm working on a form that requires
 users to read and accept a policy statement.  I want to set it up like
 a lot of license agreement screen you see when installing and/or
 updating software, a box with a scrollable section containing the
 license or, in this case, policy statement, and at the bottom of the
 box you either accept of don't accept the policy.  At this point, the
 box is not yet complex.  I took the same code that I use to generate
 the error message DialogBoxes, added a ScrollPanel.  The ScrollPanel
 contains a single VerticalPanel that contains the policy statement and
 an OK button (obviously nothing is in its final form yet).  When I
 scroll to the bottom of the text and hit the OK button, I find an
 identical box containing the policy statement, etc, immediately
 underneath.  When I scroll all the way down and hit the OK button,
 this second box goes away.
 
 I'm only doing one DialogBox.show() but it appear to be generating two
 identical boxes.  And just to be sure I was executing only a single
 show() I did the quick and dirty debug trick of adding a
 System.err.println() statement right before the show() and I got only
 a single output on the console.  I am using using GWT 2.1.
 
 Any ideas about what's going on?
 
 Thanks,
 
 Rob Tanner
 Linfield College
 
 --
 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: Upgraded to 2.2 broke hibernate 3.6 using JPA in Intellij Idea

2011-02-28 Thread jones34
It seems like 2.2 (or the upgrade process) triggers in hibernate the
hallucination that I wanted to use bean validation (maybe it's just
the presence of javax.validation in the gwt servlet-dep jar, although
it was present in 2.1 as well).

If you don't want to use hibernate bean validation, you can add this
line to your hibernate persistence.xml file:

  validation-modeNONE/validation-mode

And all is well again.

On Feb 28, 2:56 pm, jones34 ljw1...@gmail.com wrote:
 I updated to 2.2 and started immediately getting hibernate exceptions
 on the first attempt to use the database (see below) in my development
 environment Intellij Idea 10.

 I suspect that updating stomps something in my classpath or just
 reorders the class path in a way that makes hibernate fail. Has anyone
 seen this?

 Does anyone know which jars/classes might be conflicting?

 thanks.

 Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
 vingenius] Unable to configure EntityManagerFactory
         at
 org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
 374)
         at
 org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Hibernate 
 Persistence.java:
 56)
         at
 javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
 78)
         at
 javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
 54)
         at us.vingeni.vingenius.server.db.DAO.clinit(DAO.java:29)
         ... 32 more
 Caused by: org.hibernate.HibernateException: Unable to get the default
 Bean Validation factory
         at
 org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValid 
 ationActivator.java:
 127)
         at
 org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configu 
 ration.java:
 1674)
         at
 org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.java:
 1624)
         at
 org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:
 1415)
         at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:
 1345)
         at
 org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:
 1477)
         at
 org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigur 
 ator.java:
 193)
         at
 org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
 1096)
         at
 org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
 278)
         at
 org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:
 362)
         ... 36 more
 Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)
         at
 org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValid 
 ationActivator.java:
 118)
         ... 45 more
 Caused by: org.hibernate.HibernateException: Unable to build the
 default ValidatorFactory
         at
 org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(Type 
 SafeActivator.java:
 345)
         at
 org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivat 
 or.java:
 106)
         ... 50 more
 Caused by: javax.validation.ValidationException: Unable to find a
 default provider
         at javax.validation.Validation
 $GenericBootstrapImpl.configure(Validation.java:264)
         at
 javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:
 111)
         at
 org.hibernate.cfg.beanvalidation.TypeSafeActivator.getValidatorFactory(Type 
 SafeActivator.java:
 342)
         ... 51 more

-- 
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: CssResource and image sprites

2011-02-28 Thread John LaBanca
The class names are obfuscated.  You can try adding @NotStrict
to MyResources#style(), but that isn't really recommended because the
compiler can't optimize.  Instead, but your HTML in a  uiBinder.ui.xml file
and reference the styles like this:

ui:with field='res' type='com.faregugly.client.MyResources'/
div class={res.style.heading-left}
 div class={res.style.heading-right}
  div class={res.style.heading-middel}
 div class={res.style.heading-middel-text}filter results/div
div class={res.style.heading-middel-icon} id=minGif1/div
   /div
/div
  /div

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


On Mon, Feb 28, 2011 at 2:49 PM, Deepak Singh deepaksingh...@gmail.comwrote:

 After struggling a lot, Still i am not able resolve this.

 I guess i am missing some steps to do this optimisation.
 Anybody can figure it out pls.


 On Tue, Mar 1, 2011 at 12:03 AM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi,

 Now it compiles fine but the page UI is not rendering style.css and the
 sprite images.

 I have done this in onModuleLoad()

 StyleInjector.inject(resource.style().getText());

 My html is something like this

 div class=heading-left
 div class=heading-right
   div class=heading-middel
 div class=heading-middel-textfilter results/div
  div class=heading-middel-icon id=minGif1/div
   /div
  /div
   /div

 so do i need to inject the corresponding css methods seperately into each
 div element in onModuleLoad() ?

 Thanks

 On Mon, Feb 28, 2011 at 11:34 PM, Thomas Broyer t.bro...@gmail.comwrote:



 On Monday, February 28, 2011 6:30:18 PM UTC+1, Deepak Singh wrote:

 @sprite .middel-shadow-right3 li,
 @sprite .middel-shadow-right2 li,
 @sprite .middel-shadow-right li {


 If should be:
 @sprite .middel-shadow-right3 li, .middle-shadow-right2 li,
 .middel-shadow-right li {

 Feel free to insert line breaks, but not @sprite. GWT uses CSS language
 built-in extensibility mechanism, where @sprite is an @-rule (just like
 the built-in @font-face, @media, @import, etc.)
 Here you weren't respecting the CSS syntax.
 I suspect the CSS parser is lenient and treated the , as a ; or
 something like that, hence the somewhat cryptic error message.

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


-- 
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: organization of large gwt project: how to correctly break an app into GIN, Guice, GWT and Maven modules

2011-02-28 Thread Andy
We don't currently use Gin, Guice, or Maven, so I can't speak to that
portion of your architecture, but the rest of your approach looks
good. I would encourage you to build up a good set of components and
utilities (what you've labeled commons) and you might even want to
break that up.

Here's a small sample of how we've broken things up (there are 5-6
more):

edit - controls, rpc specific to editing

forms - an xml-based form generation mechanism we created

pillbox - a pillbox component we created (we'll share this eventually
in http://code.google.com/p/gwt-traction/ but it depends on other
code)

newprofile - new profile page with validation, etc. (see it live here
https://teampage.tractionsoftware.com/traction?type=newprofile)

admin - features, rpc specific to admin

traction - core set of utilities and components (like your core),
includes most of our rpc and pojos for rpc

view - a poorly named module for our main interface

We also use all of the gwt-traction code I mentioned above (like your
commons). It's where we put non-application-specific code that isn't
tightly integrated into the rest of our code.

Every module depends on our traction module. That module depends on
gwt, gwtquery, and gwt-traction and contains our i18n configuration.
It's helpful to keep these external dependencies in one place.

I realize that much of your question was around gin, guice, and maven
and hopefully someone will be able to provide some insight there.

I hope that was useful,
Andy

On Feb 28, 1:39 pm, zixzigma zixzi...@gmail.com wrote:
 Hello Everyone,
 I would like to ask your opinion on the correct way of organizing large gwt
 projects.

 Below you can see the approach I'm thinking of, I am not sure though,
 and greatly appreciate your invaluable input, or experience in similar
 situation.

 GWT documentation recommends a project structure consisting of 3 parts:
 Client, Shared, Server

 in addition, any application can be broken into several *Functional 
 Areas*(realizing business concepts)
 for example, an app can have Accounts, Reports, Tasks sections (aka.
 functional areas, modules)

 to organize our project, we can therefore break the app into: Accounts
 Module, Reports Module, Tasks Module.

 moreover, we would typically have a *Core module*, (one Core module for
 client +  one for Server)
 this Core module might contain our custom framework in which other *business
 related* modules can be put together(assembled) and work together to
 accomplish their goal.

 and we would also have a *Commons module*, which contains utility or common
 classes that other modules can use.

 therefore:

 - Functional Area 1 Module (eg, Accounts)
 - Functional Area 2 Module (eg. Reports)
 
 -Functional Area N Module

 - Core Module - Client
 - Core Module - Server
 - Commons Module

 Reports Module for example takes care of everything related to Reports.
 and according to GWT recommendation, we break Reports Module into
 Reports Client, Reports Shared, Reports Server sub-modules.

 *ReportsClient* would have its own pom.xml , Gin Module, and GWT Module
 (xx.gwt.xml)
 *Reports Server* would have its own pom.xml and Guice Module
 *Reports shared* would have its own pom.xml and would consist of interfaces
 or some static data files

 and similar for Accounts, and Tasks module.

 our Core and Commons module would have their own pom.xml

 we then would have an overall pom.xml which puts together all the other
 modules,
 and builts the entire app.

 can be summarize like this

 *Each Functional Area would have*
 1- client: pom.xml +  GIN module + GWT Module (xx.gwt.xml)
 2- shared: pom.xml (would be interfaces for client and server to
 communicate)
 3- server: pom.xml + Guice module (contaning DAO, Service, Servlet, etc)

 and an overall pom.xml which puts together functional areas + core + commons
 modules (and corresponding pom.xml)

 - what do you think of this way of organizing projects ?

 - is there a direct one-to-one correspondence between pom.xml and gin/guice
 modules ?
   in other words, is it a good idea to have a pom.xml for each of our gin
 modules, and
   having a pom.xml for each of our guice modules ?

 Really appreciate your thoughts on this.

 Thank You

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



How can I tell if I'm at the bottom of a ScrollPanel()

2011-02-28 Thread Rob Tanner
Hi,

I have an application where a user needs to read through the a document 
displayed in a ScrollPanel() and when they've scrolled all the way through I 
want to enable a button that the user can click on to acknowledge that 
they've read the document.  How can I tell if the user has scrolled all the 
way through to the text (scroll bar all the way at the bottom).  I can use 
getScrollPosition() to get the vertical scroll offset in pixels, but how can 
I tell what the max value should be should the documents content be 
changed?  Or, is there an entirely better way to go about this?

Thanks,

Rob Tanner
Linfield College

-- 
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: Method Reference Delegate or so

2011-02-28 Thread Ben Imp
You could create a composite async request object.  Its constructor
would take a list of special async requests, and it would execute them
in order.  They would have to be special as you would need some way to
attach listeners to them to know when each is done (the base interface
doesn't provide for such a thing).  As it was notified of each
success, it could kick off the next.  Alternatively, you might try
kicking them all off, and whenever you get a pokeback from one of your
children you could see if they are all done.

-Ben

On Feb 26, 2:43 pm, andi andi.ba...@googlemail.com wrote:
 Hi all,

 I'm looking for a solution how to transport a method reference. Usecase is
 to wrap some async method calls and only have one success handler after all
 are doen.

 E.g. I want something like this (which would easily possible in JS):

 Requestor req = new Requestor();
 req.add(Foo.method, param, param);
 req.add(Bar.method, param);
 req.do(new SimpleMethodCallbackJSONValue() {
     @Override
     public void onSuccess() {
     // ...
     }

 });

 Someone has a solution how to accomplish this?

 Thanks in advance,
 Andi

-- 
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: GWT Activities, Places with Event Bus ??????

2011-02-28 Thread Jian Liu
SergeZ,

I totally understand what you want - you want the Activity/Place to
handle the History Management, and mean time you don't want to loss
the power of EventBus so you can have Event Listeners on different
Presenter (and they could be on the same screen) to listen Events.

What you can is pass your Presenter objects to the Activity Mapper (in
its constructor). You will be all set.

-Jian

-- 
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 can I tell if I'm at the bottom of a ScrollPanel()

2011-02-28 Thread John LaBanca
Heh - I just sent a CL that adds methods to get the maximum
vertical/horizontal scroll position:
http://gwt-code-reviews.appspot.com/1370801/

http://gwt-code-reviews.appspot.com/1370801/You can wait for GWT 2.3, or
you can use the following:
int maxVerticalScroll = scrollPanel.getElement().getScrollHeight() -
scrollPanel.getElement().getClientHeight();

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


On Mon, Feb 28, 2011 at 4:44 PM, Rob Tanner caspersg...@gmail.com wrote:

 Hi,

 I have an application where a user needs to read through the a document
 displayed in a ScrollPanel() and when they've scrolled all the way through I
 want to enable a button that the user can click on to acknowledge that
 they've read the document.  How can I tell if the user has scrolled all the
 way through to the text (scroll bar all the way at the bottom).  I can use
 getScrollPosition() to get the vertical scroll offset in pixels, but how can
 I tell what the max value should be should the documents content be
 changed?  Or, is there an entirely better way to go about this?

 Thanks,

 Rob Tanner
 Linfield College

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



Help with smartgwt ListGrid and DetailViewer widget

2011-02-28 Thread iKoder
Stack : SmartGWT v2.4, GWT sdk 2.1 Mozilla 3.6

I am fairly new to Smart GWT, but have so far got the ListGrid
component working. Our requirement is to show additional details of
the record selected in the ListGrid.

Scenario: ListGrid --select record -- send request to server to
fetch details of the record -- show details of this fetched record as
readonly

Question:
1. What is the best approach to send HTTP GET request and rendering
the JSON response.
2. We considered using DetailsViewer and Dynamic form. Though
DetailsViewer.setData(...) works when we pass the current selected
ListGrid record, we want to get more details that is not held in the
ListGrid row.

Tried setting a RestDatasource for detailsViewer, it doesnt show the
fetched record in detailsViewer, although we can verify from firebug
that the request from datasource.fetchData() is hitting the
server(running a java spring MVC application and returns JSON).

Can you please help what is the best possible approach to retreive
JSON data for a record detail from server and show it in a form as
read only?

Is there any alternative in pure GWT... I am fedup trying to get this
working..:(

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



GWT eclipse pluggin won't install

2011-02-28 Thread Chris Moran
I'm trying to install the GWT pluggin into eclipse and am getting this
error:

Cannot complete the install because one or more required items could
not be found.
  Software being installed: Google Plugin for Eclipse 3.6
2.2.0.v201102111811
(com.google.gdt.eclipse.suite.e36.feature.feature.group
2.2.0.v201102111811)
  Missing requirement: Google Eclipse 3.6 Platform Plugin
2.2.0.v201102111811 (com.google.gdt.eclipse.platform.e36
2.2.0.v201102111811) requires 'bundle org.eclipse.jst.server.core
0.0.0' but it could not be found
  Cannot satisfy dependency:
From: Google Plugin for Eclipse 3.6 2.2.0.v201102111811
(com.google.gdt.eclipse.suite.e36.feature.feature.group
2.2.0.v201102111811)
To: com.google.gdt.eclipse.platform.e36 [2.2.0.v201102111811]

Anyone one know how to resolve this? Using the latest 3.6 version of
Eclipse. I checked installed pluggins and org.eclipse.jst.server.core
0.0.0 is not in the list. But I'm new to eclipse and can't even find
how to install this missing dependency.

Many posts of this bug on the eclipse site, but none seem to have a
solution.

-- 
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: Problem with updating to gwt 2.2

2011-02-28 Thread Dani Boomerang
Hello,

I started my project with GWT 2.1 and GWTP 0.5. I used to have the
same problem as you:

.
.
.
Failed to create an instance of
'com.myapp.client.Rem' via deferred binding
java.lang.RuntimeException: Deferred binding failed for
'com.myapp.client.gin.MyGinjector' (did you forget to inherit a
required module?)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
.
.
.

I couldn´t fix it at all, and I decided to jump to GWT 2.2 and gwtp
0.6

Now I get this error in gin-1.0-r170.jar:

[DEBUG] [gurunaki] - Validating newly compiled units
[ERROR] [gurunaki] - Errors in 'jar:file:/Users/Dani/Documents/
workspace/Gurunakiarch1/war/WEB-INF/lib/gin-1.0-r170.jar!/com/google/
gwt/inject/client/PrivateGinModule.java'
[ERROR] [gurunaki] - Line 96: The method bind(ClassT) in the 
type
GinBinder is not applicable for the arguments (KeyT)
[ERROR] [gurunaki] - Errors in 'jar:file:/Users/Dani/Documents/
workspace/Gurunakiarch1/war/WEB-INF/lib/gin-1.0-r170.jar!/com/google/
gwt/inject/client/assistedinject/GinFactoryModuleBuilder.java'
[ERROR] [gurunaki] - Line 216: The method 
get(Classcapture#1-of ?
extends T) is undefined for the type TypeLiteral
[ERROR] [gurunaki] - Line 223: The method get(ClassT) is 
undefined
for the type TypeLiteral
[ERROR] [gurunaki] - Line 230: The method 
get(Classcapture#3-of ?
extends T) is undefined for the type TypeLiteral
[ERROR] [gurunaki] - Line 246: The method 
get(Classcapture#5-of ?
extends T) is undefined for the type TypeLiteral
[ERROR] [gurunaki] - Line 254: The method get(ClassT) is 
undefined
for the type TypeLiteral
[ERROR] [gurunaki] - Line 262: The method 
get(Classcapture#7-of ?
extends T) is undefined for the type TypeLiteral
[ERROR] [gurunaki] - Line 278: The method 
get(Classcapture#10-of ?
extends T) is undefined for the type TypeLiteral
[ERROR] [gurunaki] - Line 286: The method get(ClassT) is 
undefined
for the type TypeLiteral
[ERROR] [gurunaki] - Line 294: The method 
get(Classcapture#14-of ?
extends T) is undefined for the type TypeLiteral
[ERROR] [gurunaki] - Line 309: The method 
get(Classcapture#17-of ?
extends T) is undefined for the type TypeLiteral
[ERROR] [gurunaki] - Line 324: The method get(ClassF) is 
undefined
for the type TypeLiteral
[ERROR] [gurunaki] - Failed to create an instance of
'org.ib.labs.gurunaki.client.Gurunaki' via deferred binding
[ERROR] [gurunaki] - Unable to load module entry point class
org.ib.labs.gurunaki.client.Gurunaki (see associated exception for
details)
[ERROR] [gurunaki] - Failed to load module 'gurunaki' from user agent
'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.16)
Gecko/20101130 Firefox/3.5.16' at localhost:49651

*The server exception is the next:

com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries) at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
503) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
375) at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183) at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510) at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352) at java.lang.Thread.run(Thread.java:680)


Which I think it is the exactly exception I used to have with GWT 2.1
 GWTP 0.6

I think I have tried almost everything playing with my build path, and
right now I have these libraries added to my build-path:

guice-3.0-rc2.jar
guice-servlet-3,0-rc2.jar
javax-inject-1.jar
aopalliance.jar
guice-assistedinject-snapshot.jar
gwtp-all-0.6-SNAPSHOT.jar
gwt-gin-1.0-r137.jar
gin-1.0-r170.jar

I´d really appreciate any idea...or perhaps...do you think could you
tell me the exactly libraries you have added to your build-path?

Thanks!!

Dani.

On Feb 21, 8:14 pm, Fille filip.lin...@gmail.com wrote:
 Solved it by adding

 guice-assistedinject-3.0-rc2.jar
 javax.inject.jar
 aopalliance.jar

 /Filip

 On 21 Feb, 19:11, Fille filip.lin...@gmail.com wrote:







  Hello
  I having problems with updating to gwt 2.2.

  I have downloaded and referenced:

  gin-1.0-r170.jar
  guice-3.0-rc2.jar
  guice-servlet-3.0-rc2.jar
  gwtp-all-0.6-20110217.132630-1.jar

  also dereferenced the old libraries, for guice, gin and gwpt.

  When i try to compile my project i get the following:
     Resolving javax.inject.Named
        Found type 'javax.inject.Named'
           [WARN] Ignoring unresolvable annotation type
  javax.inject.Qualifier
     Resolving javax.inject.Singleton
        Found type 'javax.inject.Singleton'
           [WARN] Ignoring unresolvable annotation type
  javax.inject.Scope
  java.lang.NoClassDefFoundError: javax/inject/Provider
          at java.lang.ClassLoader.defineClass1(Native Method)
          at 

connexion SQL impossible depuis servlet

2011-02-28 Thread casta040
Bonjour,
sous ubuntu 10.10, je suis en train de développer un servlet dans une
web application project sous eclipse grace au SDK GWT app engine (2)
- 1.4.2.

Dans un premier temps j'utilise un appel RPC pour établir la connexion
avec mon serveur.
j'execute donc le servlet coté serveur avec le code suivant:


Connection conn = null;

// figure out what server this application is being
hosted on
String url  = jdbc:mysql://localhost:3306/PMDB;
//String db   = PMDB;
String driver   = com.mysql.jdbc.Driver;
String user = casta;
String pass = monpassword;

System.out.println(connection SQL url:  + url);

try {
Class.forName(driver).newInstance();
System.out.println(DEBUG MySQL JDBC driver
loaded ok.);
conn =
DriverManager.getConnection(url,user,pass);
System.out.println(DEBUG MySQLConnected with
+url);
} catch (Exception e) {
// error
System.err.println(DEBUG Mysql Connection
Error: );

// for debugging error
e.printStackTrace();
}

if (conn == null)  {
System.out.println(DEBUG ~~ can't get
a Mysql connection);
}

= dans un premier temps, je souhaite utiliser le host localhost
pour la mise en place. Je verrai dans un 2eme temps pour faire un vrai
deploiement sur un serveur dédié...

j'obtiens toujours le message Mysql Connection Error: 
avec la trace:

connection SQL url: jdbc:mysql://localhost:3306/PMDB
DEBUG MySQL JDBC driver loaded ok.
DEBUG Mysql Connection Error:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
Could not create connection to database server.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at
com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:
112)
at
com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:
120)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
at
com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:
2413)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:
2163)
at com.mysql.jdbc.ConnectionImpl.init(ConnectionImpl.java:794)
at com.mysql.jdbc.JDBC4Connection.init(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at
com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(Runtime.java:
112)
at
com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Runtime.java:
120)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:
305)
at java.sql.DriverManager.getConnection(DriverManager.java:620)
at java.sql.DriverManager.getConnection(DriverManager.java:200)
at com.casta.pm.server.DB_Conn.getConn(DB_Conn.java:68)
at com.casta.pm.server.DB_PMDB.getAllJoueurData(DB_PMDB.java:36)
at
com.casta.pm.server.RpcCallServiceImpl.getAllJoueurData(RpcCallServiceImpl.java:
28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
569)
at

Re: CssResource and image sprites

2011-02-28 Thread khushi throne
hello ...sir

how  to use to the links

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



help sending emails in GWT

2011-02-28 Thread GrahamH
Hi all,

Im trying to set up my GWT app so that it can send emails.

I have the code to send the email in a server-side servlet class.  I
have downloaded the Java Mail API and the JAF and included both the
mail.jar and the activation.jar files to the external jars.

Here is my Code:

import java.util.Properties;

import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.Message.RecipientType;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.activation.*;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import cs.ubc.ca.cs310.HockeyPool.client.EmailService;

public class EmailServiceImpl extends RemoteServiceServlet implements
EmailService  {
/**
 *
 */
private static final long serialVersionUID = 1L;

public void sendEmail(String email){
Properties props = System.getProperties();
props.put(mail.smtp.host, smtp.gmail.com);
props.put(mail.smtp.port, 465);

Session mailSession = Session.getDefaultInstance(props);
Message simpleMessage = new MimeMessage(mailSession);

InternetAddress fromAddress = null;
InternetAddress toAddress = null;
try {
fromAddress = new 
InternetAddress(gharold...@gmail.com);
toAddress = new InternetAddress(email);
} catch (AddressException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

try {
simpleMessage.setFrom(fromAddress);
simpleMessage.setRecipient(RecipientType.TO, toAddress);
simpleMessage.setSubject(HockeyPool PoolAdmin 
Invitation);
simpleMessage.setText(Hello,br /br /You have been 
added as a
Pool Administrator for our Hockey Pool System);

Transport.send(simpleMessage);
System.out.println(email sent);
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

When i GWT Compile i get no errors at all.
Even when i debug the program it executes all of this code just fine
and never hits an exception but the email is NEVER sent.

Another thing is every single post about using Java Mail tells me i
need the activation.jar but the following line gives me a warning that
the activiation is never used anywhere in my class

import javax.activation.*;

Any help is much appreciated
Thanks

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



Enable compiler.emulatedStack when debug=true parameter is appended in URL else disable it.

2011-02-28 Thread SAURABH
I am new to GWT but the project I am working is old. This is related
to using compiler.emulatedStack.
Let’s say you go this route and the default access to your page.html
does use stack traces.  When a user reports a reproducible issue, you
can then have them add ?debug=true (for instance), which would trigger
the use of the stack trace, giving you more information to work with
when debugging the problem.  I am very excited about this approach and
am looking forward to implementing it in our production code.

How can I achieve this..??

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



GWT project Class in other package can not be found in source packages ¿?

2011-02-28 Thread jmsanchezbz
/*ERROR in FormViewer.java*/DB_Test rsTest = new DB_Test();
/*- org.ifoc.form.server.DB_Test can not be found in source packages.
Check the inheritance chain from your module;
 it may not be inheriting a required module or a module may not be
adding its source path entries properly.*/

Structure:
/src
-org.ifoc.form
-FormViewer.gwt.xml
-org.ifoc.form.client
-FormViewer.java ERROR¿?
-org.ifoc.form.server
-DB_Conn.java
-DB_Test.java

___
Form.Viewer.gwt.xml
---
module
inherits name=com.google.gwt.user.User/
inherits name=com.google.gwt.user.theme.standard.Standard/
entry-point class=org.ifoc.form.client.FormViewer/
inherits name=com.extjs.gxt.ui.GXT/
inherits name=org.ifoc.form.FormViewer/
inherits name=org.ifoc.form.FormViewer/

!-- --
source path='org.ifoc.form.client'/
source path='org.ifoc.form.server'/
source path='org.ifoc.form.shared'/

/module

FormViewer.java
-
package org.ifoc.form.client;


import org.ifoc.form.server.DB_Test;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class FormViewer implements EntryPoint {
private TextBox txtbxFirst;
private Button btnSave;
private TextBox txtbxLast;
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();

VerticalPanel verticalPanel = new VerticalPanel();
rootPanel.add(verticalPanel, 10, 10);
verticalPanel.setSize(430px, 280px);

FlexTable flexTable = new FlexTable();
verticalPanel.add(flexTable);
flexTable.setSize(210px, 20px);

Label lblInsertAPerson = new Label(Insert a person);
flexTable.setWidget(0, 1, lblInsertAPerson);

Label lblFirst = new Label(First);
flexTable.setWidget(1, 0, lblFirst);

txtbxFirst = new TextBox();
flexTable.setWidget(1, 1, txtbxFirst);

Label lblLast = new Label(Last);
flexTable.setWidget(2, 0, lblLast);

txtbxLast = new TextBox();
flexTable.setWidget(2, 1, txtbxLast);

btnSave = new Button(Save);
btnSave.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
/*ERROR*/   DB_Test rsTest = new DB_Test();
/*- org.ifoc.form.server.DB_Test can not be found in source packages.
Check the inheritance chain from your module;
 it may not be inheriting a required module or a module may not be
adding its source path entries properly.*/

rsTest.setData(txtbxFirst.getName(), 
txtbxLast.getName());
}
});
flexTable.setWidget(3, 1, btnSave);
}
}


DB_Test.java
--

package org.ifoc.form.server;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;

/**
 * I extend the DB_Conn abstract class, then I don't have to rewrite
code
 *
 * @author branflake2267
 *
 */
public class DB_Test extends DB_Conn {

/**
 * constructor - nothing to do
 */
public DB_Test() {
// nothing to do
}

/**
 * get how many chapters are in a book
 *
 * @param book
 * @return
 */
public int setData(String first, String last) {
int resultado=0;
String query = INSERT INTO test (first, last) VALUES ('+first
+','+last+');

try {
Connection connection = getConn();
Statement select = connection.createStatement();
ResultSet result = select.executeQuery(query);

//rsSize = getResultSetSize(result); // size the array

// clean up
result.close();
connection.close();

} catch (Exception e) {

System.err.println(Mysql Statement Error:  + query);
e.printStackTrace();
resultado = -1;
}

return resultado;
}
}


.classpath

?xml version=1.0 encoding=UTF-8?
classpath
classpathentry kind=src path=src/

Re: help sending emails in GWT

2011-02-28 Thread David Chandler
If your server impl is getting called, it's not really a GWT question, but I
notice you're trying to use smtp.gmail.com as your SMTP host. I highly doubt
that's allowed due to spam potential.

/dmc

On Mon, Feb 28, 2011 at 5:28 PM, GrahamH gharold...@gmail.com wrote:

 Hi all,

 Im trying to set up my GWT app so that it can send emails.

 I have the code to send the email in a server-side servlet class.  I
 have downloaded the Java Mail API and the JAF and included both the
 mail.jar and the activation.jar files to the external jars.

 Here is my Code:

 import java.util.Properties;

 import javax.mail.Message;
 import javax.mail.MessagingException;
 import javax.mail.Session;
 import javax.mail.Transport;
 import javax.mail.Message.RecipientType;
 import javax.mail.internet.AddressException;
 import javax.mail.internet.InternetAddress;
 import javax.mail.internet.MimeMessage;
 import javax.activation.*;

 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 import cs.ubc.ca.cs310.HockeyPool.client.EmailService;

 public class EmailServiceImpl extends RemoteServiceServlet implements
 EmailService  {
/**
 *
 */
private static final long serialVersionUID = 1L;

public void sendEmail(String email){
Properties props = System.getProperties();
props.put(mail.smtp.host, smtp.gmail.com);
props.put(mail.smtp.port, 465);

Session mailSession = Session.getDefaultInstance(props);
Message simpleMessage = new MimeMessage(mailSession);

InternetAddress fromAddress = null;
InternetAddress toAddress = null;
try {
fromAddress = new InternetAddress(
 gharold...@gmail.com);
toAddress = new InternetAddress(email);
} catch (AddressException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

try {
simpleMessage.setFrom(fromAddress);
simpleMessage.setRecipient(RecipientType.TO,
 toAddress);
simpleMessage.setSubject(HockeyPool PoolAdmin
 Invitation);
simpleMessage.setText(Hello,br /br /You have
 been added as a
 Pool Administrator for our Hockey Pool System);

Transport.send(simpleMessage);
System.out.println(email sent);
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
 }

 When i GWT Compile i get no errors at all.
 Even when i debug the program it executes all of this code just fine
 and never hits an exception but the email is NEVER sent.

 Another thing is every single post about using Java Mail tells me i
 need the activation.jar but the following line gives me a warning that
 the activiation is never used anywhere in my class

 import javax.activation.*;

 Any help is much appreciated
 Thanks

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: help sending emails in GWT

2011-02-28 Thread Greg Dougherty
 When i GWT Compile i get no errors at all.

GWT Compile is client side.  What you're doing is done, and can only
be done, on the server.  Where are you trying to send the mail from?

Greg

On Feb 28, 4:28 pm, GrahamH gharold...@gmail.com wrote:
 Hi all,

 Im trying to set up my GWT app so that it can send emails.

 I have the code to send the email in a server-side servlet class.  I
 have downloaded the Java Mail API and the JAF and included both the
 mail.jar and the activation.jar files to the external jars.

 Here is my Code:

 import java.util.Properties;

 import javax.mail.Message;
 import javax.mail.MessagingException;
 import javax.mail.Session;
 import javax.mail.Transport;
 import javax.mail.Message.RecipientType;
 import javax.mail.internet.AddressException;
 import javax.mail.internet.InternetAddress;
 import javax.mail.internet.MimeMessage;
 import javax.activation.*;

 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 import cs.ubc.ca.cs310.HockeyPool.client.EmailService;

 public class EmailServiceImpl extends RemoteServiceServlet implements
 EmailService  {
         /**
          *
          */
         private static final long serialVersionUID = 1L;

         public void sendEmail(String email){
                 Properties props = System.getProperties();
                 props.put(mail.smtp.host, smtp.gmail.com);
                 props.put(mail.smtp.port, 465);

                 Session mailSession = Session.getDefaultInstance(props);
                 Message simpleMessage = new MimeMessage(mailSession);

                 InternetAddress fromAddress = null;
                 InternetAddress toAddress = null;
                 try {
                         fromAddress = new 
 InternetAddress(gharold...@gmail.com);
                         toAddress = new InternetAddress(email);
                 } catch (AddressException e) {
                         // TODO Auto-generated catch block
                         e.printStackTrace();
                 }

                 try {
                         simpleMessage.setFrom(fromAddress);
                         simpleMessage.setRecipient(RecipientType.TO, 
 toAddress);
                         simpleMessage.setSubject(HockeyPool PoolAdmin 
 Invitation);
                         simpleMessage.setText(Hello,br /br /You have 
 been added as a
 Pool Administrator for our Hockey Pool System);

                         Transport.send(simpleMessage);
                         System.out.println(email sent);
                 } catch (MessagingException e) {
                         // TODO Auto-generated catch block
                         e.printStackTrace();
                 }
         }

 }

 When i GWT Compile i get no errors at all.
 Even when i debug the program it executes all of this code just fine
 and never hits an exception but the email is NEVER sent.

 Another thing is every single post about using Java Mail tells me i
 need the activation.jar but the following line gives me a warning that
 the activiation is never used anywhere in my class

 import javax.activation.*;

 Any help is much appreciated
 Thanks

-- 
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: GWT eclipse pluggin won't install

2011-02-28 Thread David Chandler
Please note your OS and the version of the Eclipse Platform feature (Help |
Install new software | What is already installed link | Features tab)

Thanks,
/dmc

On Mon, Feb 28, 2011 at 11:06 AM, Chris Moran chris.a.mo...@gmail.comwrote:

 I'm trying to install the GWT pluggin into eclipse and am getting this
 error:

 Cannot complete the install because one or more required items could
 not be found.
  Software being installed: Google Plugin for Eclipse 3.6
 2.2.0.v201102111811
 (com.google.gdt.eclipse.suite.e36.feature.feature.group
 2.2.0.v201102111811)
  Missing requirement: Google Eclipse 3.6 Platform Plugin
 2.2.0.v201102111811 (com.google.gdt.eclipse.platform.e36
 2.2.0.v201102111811) requires 'bundle org.eclipse.jst.server.core
 0.0.0' but it could not be found
  Cannot satisfy dependency:
From: Google Plugin for Eclipse 3.6 2.2.0.v201102111811
 (com.google.gdt.eclipse.suite.e36.feature.feature.group
 2.2.0.v201102111811)
To: com.google.gdt.eclipse.platform.e36 [2.2.0.v201102111811]

 Anyone one know how to resolve this? Using the latest 3.6 version of
 Eclipse. I checked installed pluggins and org.eclipse.jst.server.core
 0.0.0 is not in the list. But I'm new to eclipse and can't even find
 how to install this missing dependency.

 Many posts of this bug on the eclipse site, but none seem to have a
 solution.

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: help sending emails in GWT

2011-02-28 Thread Graham Haroldson
any idea how i would go about sending an email?

Do i have to use a different host or do i have to add my user validation?
I don't know the slightest thing about sending emails in code using SMTP, so
any direction here would be great.

Thanks
Graham

On Mon, Feb 28, 2011 at 2:55 PM, David Chandler drfibona...@google.comwrote:

 If your server impl is getting called, it's not really a GWT question, but
 I notice you're trying to use smtp.gmail.com as your SMTP host. I highly
 doubt that's allowed due to spam potential.

 /dmc


 On Mon, Feb 28, 2011 at 5:28 PM, GrahamH gharold...@gmail.com wrote:

 Hi all,

 Im trying to set up my GWT app so that it can send emails.

 I have the code to send the email in a server-side servlet class.  I
 have downloaded the Java Mail API and the JAF and included both the
 mail.jar and the activation.jar files to the external jars.

 Here is my Code:

 import java.util.Properties;

 import javax.mail.Message;
 import javax.mail.MessagingException;
 import javax.mail.Session;
 import javax.mail.Transport;
 import javax.mail.Message.RecipientType;
 import javax.mail.internet.AddressException;
 import javax.mail.internet.InternetAddress;
 import javax.mail.internet.MimeMessage;
 import javax.activation.*;

 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 import cs.ubc.ca.cs310.HockeyPool.client.EmailService;

 public class EmailServiceImpl extends RemoteServiceServlet implements
 EmailService  {
/**
 *
 */
private static final long serialVersionUID = 1L;

public void sendEmail(String email){
Properties props = System.getProperties();
props.put(mail.smtp.host, smtp.gmail.com);
props.put(mail.smtp.port, 465);

Session mailSession = Session.getDefaultInstance(props);
Message simpleMessage = new MimeMessage(mailSession);

InternetAddress fromAddress = null;
InternetAddress toAddress = null;
try {
fromAddress = new InternetAddress(
 gharold...@gmail.com);
toAddress = new InternetAddress(email);
} catch (AddressException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

try {
simpleMessage.setFrom(fromAddress);
simpleMessage.setRecipient(RecipientType.TO,
 toAddress);
simpleMessage.setSubject(HockeyPool PoolAdmin
 Invitation);
simpleMessage.setText(Hello,br /br /You have
 been added as a
 Pool Administrator for our Hockey Pool System);

Transport.send(simpleMessage);
System.out.println(email sent);
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
 }

 When i GWT Compile i get no errors at all.
 Even when i debug the program it executes all of this code just fine
 and never hits an exception but the email is NEVER sent.

 Another thing is every single post about using Java Mail tells me i
 need the activation.jar but the following line gives me a warning that
 the activiation is never used anywhere in my class

 import javax.activation.*;

 Any help is much appreciated
 Thanks

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




 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 w: http://code.google.com/
 b: http://googlewebtoolkit.blogspot.com/
 t: @googledevtools

 --
 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: Problem accessing a service that extends a generic superclass

2011-02-28 Thread David Chandler
Hi George,

Please star this issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5807

In the mean time, you can use the workaround shown in the issue and also in
the sample code for the listwidget project:
http://code.google.com/p/listwidget

HTH,
/dmc

On Sun, Feb 27, 2011 at 2:40 AM, George Moschovitis 
george.moschovi...@gmail.com wrote:

 I have a simple service:

 public class ArticleService {

public Article findArticle(Long id) {
..
}
public void persist(Article artilce) {
..
}
 }

 I use it with RequestFactory like this:

 @Service(value = ArticleService.class, locator =
 DefaultServiceLocator.class)
 public interface ArticleRequestContext extends RequestContext {
 ..
 }

 everything works as expected...

 then I tried to refactor the service:

 public class ArticleService extends BasicServiceArticle, ArticleDao {
 ...
 }

 wherein I moved methods like persist(), etc to the generic BasicService.
 Now, requests for persist() do no longer work.

 any ideas? is there a problem with generic classes?

 thanks in advance,
 -g.

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: GWT 2.2 on linux: Designer not wokring

2011-02-28 Thread Richard van der Wath
Problem disappeared after I installed GWT Designer BETA from
http://code.google.com/intl/af/webtoolkit/tools/download-gwtdesigner-beta.html

Thanks for everybody's help!
Richard

On 28 February 2011 21:17, Richard van der Wath rvanderw...@gmail.comwrote:

 I see the discussion refers to 64 bit systems. I have the issue on a 32 bit
 system and libwebkit seems to be fine:
 /usr/lib ls -l libweb*
 lrwxrwxrwx 1 root root   23 2011-02-28 21:12 libwebkit-1.0.so -
 libwebkit-1.0.so.2.17.8
 lrwxrwxrwx 1 root root   23 2011-01-12 21:58 libwebkit-1.0.so.2 -
 libwebkit-1.0.so.2.17.8
 -rwxr-xr-x 1 root root 16578456 2011-01-11 16:24 libwebkit-1.0.so.2.17.8

 Also, I'm not running the os-version of eclipse, but downloaded and
 installed from the eclipse website.

 I'll have a go with the GWT beta release.

 Cheers
 Richard



 On 25 February 2011 21:47, Eric Clayberg clayb...@google.com wrote:

 See the discussion and suggestions here...

 http://code.google.com/p/google-web-toolkit/issues/detail?id=6029

 --
 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: Problem with updating to gwt 2.2

2011-02-28 Thread Dani Boomerang
Ok, I found this post:

https://groups.google.com/forum/?fromgroups#!topic/gwt-platform/iFDxGnHfxFk

I updated my build-path as they discussed in the forum. So I have the
following libraries:

./war/WEB-INF/lib/aopalliance.jar
./war/WEB-INF/lib/gin-1.5-post-gwt-2.2.jar
./war/WEB-INF/lib/guice-3.0-rc2.jar
./war/WEB-INF/lib/guice-assistedinject-3.0-rc2.jar
./war/WEB-INF/lib/guice-servlet-3.0-rc2.jar
./war/WEB-INF/lib/gwt-servlet.jar
./war/WEB-INF/lib/gwtp-all-0.6-SNAPSHOT.jar
./war/WEB-INF/lib/javax.inject.jar

I think previous problem is fixed!

But unfortunate I´m getting a different error now...

But at least it´s a different one!
I´ll try to investigate it.

Thanks.

On Feb 28, 9:22 pm, Dani Boomerang daniestev...@gmail.com wrote:
 Hello,

 I started my project with GWT 2.1 and GWTP 0.5. I used to have the
 same problem as you:

 .
 .
 .
 Failed to create an instance of
 'com.myapp.client.Rem' via deferred binding
 java.lang.RuntimeException: Deferred binding failed for
 'com.myapp.client.gin.MyGinjector' (did you forget to inherit a
 required module?)
     at
 com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
 .
 .
 .

 I couldn´t fix it at all, and I decided to jump to GWT 2.2 and gwtp
 0.6

 Now I get this error in gin-1.0-r170.jar:

 [DEBUG] [gurunaki] - Validating newly compiled units
         [ERROR] [gurunaki] - Errors in 'jar:file:/Users/Dani/Documents/
 workspace/Gurunakiarch1/war/WEB-INF/lib/gin-1.0-r170.jar!/com/google/
 gwt/inject/client/PrivateGinModule.java'
                 [ERROR] [gurunaki] - Line 96: The method bind(ClassT) in 
 the type
 GinBinder is not applicable for the arguments (KeyT)
         [ERROR] [gurunaki] - Errors in 'jar:file:/Users/Dani/Documents/
 workspace/Gurunakiarch1/war/WEB-INF/lib/gin-1.0-r170.jar!/com/google/
 gwt/inject/client/assistedinject/GinFactoryModuleBuilder.java'
                 [ERROR] [gurunaki] - Line 216: The method 
 get(Classcapture#1-of ?
 extends T) is undefined for the type TypeLiteral
                 [ERROR] [gurunaki] - Line 223: The method get(ClassT) is 
 undefined
 for the type TypeLiteral
                 [ERROR] [gurunaki] - Line 230: The method 
 get(Classcapture#3-of ?
 extends T) is undefined for the type TypeLiteral
                 [ERROR] [gurunaki] - Line 246: The method 
 get(Classcapture#5-of ?
 extends T) is undefined for the type TypeLiteral
                 [ERROR] [gurunaki] - Line 254: The method get(ClassT) is 
 undefined
 for the type TypeLiteral
                 [ERROR] [gurunaki] - Line 262: The method 
 get(Classcapture#7-of ?
 extends T) is undefined for the type TypeLiteral
                 [ERROR] [gurunaki] - Line 278: The method 
 get(Classcapture#10-of ?
 extends T) is undefined for the type TypeLiteral
                 [ERROR] [gurunaki] - Line 286: The method get(ClassT) is 
 undefined
 for the type TypeLiteral
                 [ERROR] [gurunaki] - Line 294: The method 
 get(Classcapture#14-of ?
 extends T) is undefined for the type TypeLiteral
                 [ERROR] [gurunaki] - Line 309: The method 
 get(Classcapture#17-of ?
 extends T) is undefined for the type TypeLiteral
                 [ERROR] [gurunaki] - Line 324: The method get(ClassF) is 
 undefined
 for the type TypeLiteral
 [ERROR] [gurunaki] - Failed to create an instance of
 'org.ib.labs.gurunaki.client.Gurunaki' via deferred binding
 [ERROR] [gurunaki] - Unable to load module entry point class
 org.ib.labs.gurunaki.client.Gurunaki (see associated exception for
 details)
 [ERROR] [gurunaki] - Failed to load module 'gurunaki' from user agent
 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.16)
 Gecko/20101130 Firefox/3.5.16' at localhost:49651

 *The server exception is the next:

 com.google.gwt.core.ext.UnableToCompleteException: (see previous log
 entries) at
 com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
 503) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
 375) at
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler 
 .java:
 183) at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
 nelServer.java:
 510) at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
 352) at java.lang.Thread.run(Thread.java:680)

 Which I think it is the exactly exception I used to have with GWT 2.1
  GWTP 0.6

 I think I have tried almost everything playing with my build path, and
 right now I have these libraries added to my build-path:

 guice-3.0-rc2.jar
 guice-servlet-3,0-rc2.jar
 javax-inject-1.jar
 aopalliance.jar
 guice-assistedinject-snapshot.jar
 gwtp-all-0.6-SNAPSHOT.jar
 gwt-gin-1.0-r137.jar
 gin-1.0-r170.jar

 I´d really appreciate any idea...or perhaps...do you think could you
 tell me the exactly libraries you have added to your build-path?

 Thanks!!

 Dani.

 On Feb 21, 8:14 pm, Fille filip.lin...@gmail.com wrote:







  Solved it by adding

  guice-assistedinject-3.0-rc2.jar
  

Re: GWT project Class in other package can not be found in source packages ¿?

2011-02-28 Thread Juan Pablo Gardella
You can't have a server class in a client class: You have import
org.ifoc.form.server.DB_Test; in the class 
org.ifoc.form.client.FormViewer

Gardella Juan


2011/2/28 jmsanchezbz jmsanche...@gmail.com

 /*ERROR in FormViewer.java*/DB_Test rsTest = new DB_Test();
 /*- org.ifoc.form.server.DB_Test can not be found in source packages.
 Check the inheritance chain from your module;
  it may not be inheriting a required module or a module may not be
 adding its source path entries properly.*/

 Structure:
 /src
-org.ifoc.form
-FormViewer.gwt.xml
-org.ifoc.form.client
-FormViewer.java ERROR¿?
-org.ifoc.form.server
-DB_Conn.java
-DB_Test.java

 ___
 Form.Viewer.gwt.xml
 ---
 module
inherits name=com.google.gwt.user.User/
inherits name=com.google.gwt.user.theme.standard.Standard/
entry-point class=org.ifoc.form.client.FormViewer/
inherits name=com.extjs.gxt.ui.GXT/
inherits name=org.ifoc.form.FormViewer/
inherits name=org.ifoc.form.FormViewer/

!-- --
source path='org.ifoc.form.client'/
source path='org.ifoc.form.server'/
source path='org.ifoc.form.shared'/

 /module
 
 FormViewer.java
 -
 package org.ifoc.form.client;


 import org.ifoc.form.server.DB_Test;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.FlexTable;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.TextBox;
 import com.google.gwt.user.client.ui.VerticalPanel;

 /**
  * Entry point classes define codeonModuleLoad()/code.
  */
 public class FormViewer implements EntryPoint {
private TextBox txtbxFirst;
private Button btnSave;
private TextBox txtbxLast;
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();

VerticalPanel verticalPanel = new VerticalPanel();
rootPanel.add(verticalPanel, 10, 10);
verticalPanel.setSize(430px, 280px);

FlexTable flexTable = new FlexTable();
verticalPanel.add(flexTable);
flexTable.setSize(210px, 20px);

Label lblInsertAPerson = new Label(Insert a person);
flexTable.setWidget(0, 1, lblInsertAPerson);

Label lblFirst = new Label(First);
flexTable.setWidget(1, 0, lblFirst);

txtbxFirst = new TextBox();
flexTable.setWidget(1, 1, txtbxFirst);

Label lblLast = new Label(Last);
flexTable.setWidget(2, 0, lblLast);

txtbxLast = new TextBox();
flexTable.setWidget(2, 1, txtbxLast);

btnSave = new Button(Save);
btnSave.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
 /*ERROR*/   DB_Test rsTest = new DB_Test();
 /*- org.ifoc.form.server.DB_Test can not be found in source packages.
 Check the inheritance chain from your module;
  it may not be inheriting a required module or a module may not be
 adding its source path entries properly.*/

rsTest.setData(txtbxFirst.getName(),
 txtbxLast.getName());
}
});
flexTable.setWidget(3, 1, btnSave);
}
 }

 
 DB_Test.java
 --

 package org.ifoc.form.server;

 import java.sql.Connection;
 import java.sql.ResultSet;
 import java.sql.Statement;

 /**
  * I extend the DB_Conn abstract class, then I don't have to rewrite
 code
  *
  * @author branflake2267
  *
  */
 public class DB_Test extends DB_Conn {

/**
 * constructor - nothing to do
 */
public DB_Test() {
// nothing to do
}

/**
 * get how many chapters are in a book
 *
 * @param book
 * @return
 */
public int setData(String first, String last) {
int resultado=0;
String query = INSERT INTO test (first, last) VALUES
 ('+first
 +','+last+');

try {
Connection connection = getConn();
Statement select = connection.createStatement();
ResultSet result = select.executeQuery(query);

//rsSize = getResultSetSize(result); // size the
 array

// clean up
result.close();
connection.close();

} catch (Exception e) {

System.err.println(Mysql Statement Error:  +
 query);

Re: organization of large gwt project: how to correctly break an app into GIN, Guice, GWT and Maven modules

2011-02-28 Thread Thomas Broyer


On Monday, February 28, 2011 7:39:03 PM UTC+1, zixzigma wrote:

 Hello Everyone,
 I would like to ask your opinion on the correct way of organizing large gwt 
 projects.

[…]

 can be summarize like this

 *Each Functional Area would have*
 1- client: pom.xml +  GIN module + GWT Module (xx.gwt.xml)
 2- shared: pom.xml (would be interfaces for client and server to 
 communicate)
 3- server: pom.xml + Guice module (contaning DAO, Service, Servlet, etc)

 and an overall pom.xml which puts together functional areas + core + 
 commons modules (and corresponding pom.xml)


That would be the one with packaging=war, the web.xml, HTML/JSP pages, etc.

- what do you think of this way of organizing projects ?


+1 to splitting client/shared/server into 3 distinct modules, with a 4th one 
to pull client and server together into a webapp (client and server both 
depending on shared).

The question left open is: where do you think you'll put the GWT Compiler 
step?

In our app (which we didn't split into modules on the GWT side, except for 
shared+client), we do the gwt:compile in the client module (which is with 
packaging=jar so m2eclipse imports it as a Java project, but using the 
maven-assembly-plugin to build a ZIP that's later used as an war overlay in 
the webapp).
The net advantage is that we don't have to pay attention to dependencies (if 
I need to write a generator, I can add a dependency on gwt-dev without 
risking conflicts with other libs –because gwt-dev itself bundles a few 
libs–).
It also looks like the 
flexmojoshttp://www.sonatype.com/books/mvnref-book/reference/flex-dev.html 
way of doing things, just replacing as3+mxml and flexmojos:compile-swf with 
java and gwt:compile (and which is IMO how GWT projects in Maven should look 
like).
 

 - is there a direct one-to-one correspondence between pom.xml and gin/guice 
 modules ?
   in other words, is it a good idea to have a pom.xml for each of our gin 
 modules, and
   having a pom.xml for each of our guice modules ?


I don't think you should be thinking in these terms. It might be that 
there's a one-to-one correspondance, and I don't see anything wrong with 
this, but it shouldn't IMO be a goal, or a guide in deciding how to 
decompose your app in Maven modules.

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



Failing to install Google Web Toolkit Eclipse plugin

2011-02-28 Thread arnaultbona...@yahoo.com
Hello All,

I don't know if others have encountered the same problem but it
happens that the GWT eclipse plugin installation fails with the
following error:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
Unable to read repository at
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811.jar.
Read timed out

Others plugins installed fine (Google plugin and Google App Engine
plugin), only the google web toolkit has problem downloading the
sdkbundle jar file.
I thought I would post about this error in case others have similar
problem.

Any help would be greatly appreciated as I'm just starting with GWT.

Thanks and regards,

Arnault.

-- 
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: Failing to install Google Web Toolkit Eclipse plugin

2011-02-28 Thread David Chandler
I'm able to download this URL OK, perhaps you saw a temporary network or
service outage?

/dmc

On Mon, Feb 28, 2011 at 6:09 PM, arnaultbona...@yahoo.com 
arnaultbona...@yahoo.com wrote:

 Hello All,

 I don't know if others have encountered the same problem but it
 happens that the GWT eclipse plugin installation fails with the
 following error:

 An error occurred while collecting items to be installed
 session context was:(profile=epp.package.java,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
 action=).
 Unable to read repository at

 http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811.jar
 .
 Read timed out

 Others plugins installed fine (Google plugin and Google App Engine
 plugin), only the google web toolkit has problem downloading the
 sdkbundle jar file.
 I thought I would post about this error in case others have similar
 problem.

 Any help would be greatly appreciated as I'm just starting with GWT.

 Thanks and regards,

 Arnault.

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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, Editor Framework, and CellTable

2011-02-28 Thread Jake Wharton
I am looking to determine a method for integrating the editing abilities of 
the CellTable, automatic binding of the Editor framework, and the 
client-server communication of the RequestFactory together.

Given two classes, Parent and Child, I am attempting to create a 
ParentEditor which includes a listing of each associated Child. Without 
going to a separate editor, I would like to be able to add and remove 
children as well as modify properties of each child.

It seems obvious as to how to integrate a ListChild instance with the 
CellTable, how to use ListEditor to bind a list of objects to individual 
sub-editors, and how to add, remove, and update a Child through the 
RequestFactory. What is not obvious is how to properly hook all three 
together so that they work in harmony.

If anyone has code, suggestions, or links that can assist in this use case, 
or perhaps even a table-based editing implementation using only Editors and 
the RequestFactory it would be much appreciated.

-- 
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: help sending emails in GWT

2011-02-28 Thread Graham Haroldson
Again,  im not quite sure what im trying to send emails from,  i can
probably use my email, which is a gmail account.  I tried that and i also
tried adding my account and password to the properties but it still does
nothing

On Mon, Feb 28, 2011 at 3:04 PM, Greg Dougherty
dougherty.greg...@mayo.eduwrote:

  When i GWT Compile i get no errors at all.

 GWT Compile is client side.  What you're doing is done, and can only
 be done, on the server.  Where are you trying to send the mail from?

 Greg

 On Feb 28, 4:28 pm, GrahamH gharold...@gmail.com wrote:
  Hi all,
 
  Im trying to set up my GWT app so that it can send emails.
 
  I have the code to send the email in a server-side servlet class.  I
  have downloaded the Java Mail API and the JAF and included both the
  mail.jar and the activation.jar files to the external jars.
 
  Here is my Code:
 
  import java.util.Properties;
 
  import javax.mail.Message;
  import javax.mail.MessagingException;
  import javax.mail.Session;
  import javax.mail.Transport;
  import javax.mail.Message.RecipientType;
  import javax.mail.internet.AddressException;
  import javax.mail.internet.InternetAddress;
  import javax.mail.internet.MimeMessage;
  import javax.activation.*;
 
  import com.google.gwt.user.server.rpc.RemoteServiceServlet;
 
  import cs.ubc.ca.cs310.HockeyPool.client.EmailService;
 
  public class EmailServiceImpl extends RemoteServiceServlet implements
  EmailService  {
  /**
   *
   */
  private static final long serialVersionUID = 1L;
 
  public void sendEmail(String email){
  Properties props = System.getProperties();
  props.put(mail.smtp.host, smtp.gmail.com);
  props.put(mail.smtp.port, 465);
 
  Session mailSession = Session.getDefaultInstance(props);
  Message simpleMessage = new MimeMessage(mailSession);
 
  InternetAddress fromAddress = null;
  InternetAddress toAddress = null;
  try {
  fromAddress = new InternetAddress(
 gharold...@gmail.com);
  toAddress = new InternetAddress(email);
  } catch (AddressException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
 
  try {
  simpleMessage.setFrom(fromAddress);
  simpleMessage.setRecipient(RecipientType.TO,
 toAddress);
  simpleMessage.setSubject(HockeyPool PoolAdmin
 Invitation);
  simpleMessage.setText(Hello,br /br /You have
 been added as a
  Pool Administrator for our Hockey Pool System);
 
  Transport.send(simpleMessage);
  System.out.println(email sent);
  } catch (MessagingException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
  }
 
  }
 
  When i GWT Compile i get no errors at all.
  Even when i debug the program it executes all of this code just fine
  and never hits an exception but the email is NEVER sent.
 
  Another thing is every single post about using Java Mail tells me i
  need the activation.jar but the following line gives me a warning that
  the activiation is never used anywhere in my class
 
  import javax.activation.*;
 
  Any help is much appreciated
  Thanks

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



use of ClientBundle for html pages referring to images

2011-02-28 Thread antoine
Hi,

I have made an online documentation in html with images which are
referred to by the html with the img/ tag.
I am trying to use the client bundle for the html. My application
finds the html but it is looking for the images here /lea/
com.saic.lea.rpc.LeaRPC/images/menu-build.png (/lea is the application
context and com.saic.lea.rpc.LeaRPC is the concatenation of the
package name and the name of the gwt descriptor.
I tried to put the html under /com/saic/lea/rpc/client/resources/html/
user and the images under /com/saic/lea/rpc/client/resources/html/user/
images.

So my question is : is there a way to create resources in the
ClientBundle and say : hey, these resources refer to other resources
by relative path, so please package the whole thing so that resolution
can happen.

The same could happen with xml documents using xi:include/ or xsl
using xsl:import/.

Here is how I have declared my resources :

public interface HtmlResources extends ClientBundle {
  public static final HtmlResources INSTANCE =
GWT.create(HtmlResources.class);
  @Source(user/lea-user.html)
  @DoNotEmbed
  public DataResource userManual();
  @Source(admin/lea-admin.html)
  @DoNotEmbed
  public DataResource adminManual();
}

Packaging the complete documentation under www/manual and accessing it
by URL without resources works. But it leaves a taste of unfinished

-- 
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: organization of large gwt project: how to correctly break an app into GIN, Guice, GWT and Maven modules

2011-02-28 Thread zixzigma
Thank you so much for your always invaluable feedback.

I am investigating your suggestions at the moment.

following your comment:
splitting client/shared/server into 3 distinct modules, with a 4th one to 
pull client and server together into a webapp (client and server both 
depending on shared).

so far I have created the structure below,

- do you think the settings below, is correct ? (considering our app is 
named 'expense')

*expense-app:* packaging pom, modules: expense-client, expense-server, 
expense-shared, expense-webapp

*expense-client:* packaging jar - parent: expense-app, dependency: 
expense-shared  - structure: src/main/java

*expense-server:* packaging jar - parent: expense-app, dependency: 
expense-shared - structure: src/main/java

*expense-shared:* packaging jar - parent: expense-app - structure: 
src/main/java

*expense-webapp:* packaging war - parent: expense-app, dependency: 
expense-client, dependency: expense-server - *structure: src/main/webapp*

[please refer to links below]
- the way directories are structured in filesystem, expense-app is the top 
level directory with 4 sub-directories:
expense-client,expense-server,expense-shared,expense-webapp (these 4 are 
siblings)

however when I type mvn clean install, in my local repository, I see 5 
distinct directories at the same level, 
in other words, expense-client, expense-server, expense-shared, 
expense-webapp, and expense-app,
are all at the same level, and client,server,shared,webapp are not inside 
the expense-app directory.
is this correct ?

- structure as they sit in file system
http://oi52.tinypic.com/10h3ipy.jpg

- structure in local repository after mvn clean install
http://oi51.tinypic.com/33e7yxl.jpg

Thank You

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



ContextMenuHandler and CellBrowser

2011-02-28 Thread Y2i
Has anyone successfully used ContextMenuHandler with CellBrowser?  
How can I find an EntityProxy associated with the point of a right-click in 
ContextMenuHandler.onContextMenu(ContextMenuEvent 
event)?

Any help would be greatly appreciated!

-- 
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: GWT Spring Hibernate MySql Maven

2011-02-28 Thread JosephLi
It might be an overkill, but the Spring Roo + GWT integration has a
nice Maven build that is quite handy. Just follow some tutorial to
setup a Roo project with GWT. Then wipe the generated code out and u
will have yourself a fully cooked Maven build with AspectJ, Spring,
Hibernate and Gin setup.

Joseph

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



Refreshing a celltree

2011-02-28 Thread xwise
I can't seem to find any good information on how to refresh a celltree
so that selected cells can be displayed as selected somehow. I've
tried refreshing the listDataProvider that's used in getNodeInfo but
when I make the dataProvider a class variable (instead of a local
variable as shown in the example
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html?overview-summary.html)
the tree behaves badly (clicking a child causes the tree to be
replaced by the content of that child, instead of just opening that
child). Obviously I'm doing something wrong.
I also tried programmatically collapsing and reopening the nodes but I
don't know how to get the nodes. I can get the root node using
CellTree.getRootTreeNode() but then how do I get the children of these
children as TreeNode objects?
Since I must be doing something wrong and probably haven't really
figured out how to use the CellTree class properly, could someone
provide a small example of a cell tree that updates it's children (for
example when you click a node it becomes bold).

Thanks a lot.

-- 
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: Refreshing a celltree

2011-02-28 Thread Y2i
Have you had a chance to look at the showcase: 
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree

-- 
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: help sending emails in GWT

2011-02-28 Thread A. Stevko
Hi Graham,
The browser cannot send emails but the server can.
web-toolkit is the client half (and this forum), appengine can be the server
half
javax.mail is not supported on the client but it supported on the appengine
server.

If you are using appengine to host the server portion, below is a simple
email sending method that works for me.
This will send email from google's appengine's mail servers.
One caveat is that the FROM_ADDRESS needs to be listed as an administrator
of the app.
Another caveat is that Transport.send() can take a long time and may likely
fail with a MessagingException.
A third caveat is that bounces are eaten up due to some strange
configurations in the mail servers.

private static final String SUBJECT = Thanks for...;
private static final String BODY = Dear to_name...;
private static final String FROM_ADDRESS = m...@mydomain.com;
private static final String FROM_NAME = My Name;
private static final String BCC_ADDRESS = mys...@mydomain.com;

private boolean sendEmail( String toName, String emailAddress ) {
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);

String subject = SUBJECT.replace( to_name, toName ).replace(
email_address, emailAddress );
String body = BODY.replace( to_name, toName ).replace(
email_address, emailAddress );;
 try {
//
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress( FROM_ADDRESS, FROM_NAME ));
msg.addRecipient(Message.RecipientType.TO,
new InternetAddress( emailAddress, toName ));
if ( !BCC_ADDRESS.isEmpty() ) {
msg.addRecipient( Message.RecipientType.BCC, new InternetAddress(
BCC_ADDRESS ));
}
msg.setSubject(subject);
msg.setText( body );
Transport.send(msg);

return true;


On Mon, Feb 28, 2011 at 6:27 PM, Graham Haroldson gharold...@gmail.comwrote:

 Again,  im not quite sure what im trying to send emails from,  i can
 probably use my email, which is a gmail account.  I tried that and i also
 tried adding my account and password to the properties but it still does
 nothing





 On Mon, Feb 28, 2011 at 3:04 PM, Greg Dougherty 
 dougherty.greg...@mayo.edu wrote:

  When i GWT Compile i get no errors at all.

 GWT Compile is client side.  What you're doing is done, and can only
 be done, on the server.  Where are you trying to send the mail from?

 Greg

 On Feb 28, 4:28 pm, GrahamH gharold...@gmail.com wrote:
  Hi all,
 
  Im trying to set up my GWT app so that it can send emails.
 
  I have the code to send the email in a server-side servlet class.  I
  have downloaded the Java Mail API and the JAF and included both the
  mail.jar and the activation.jar files to the external jars.
 
  Here is my Code:
 
  import java.util.Properties;
 
  import javax.mail.Message;
  import javax.mail.MessagingException;
  import javax.mail.Session;
  import javax.mail.Transport;
  import javax.mail.Message.RecipientType;
  import javax.mail.internet.AddressException;
  import javax.mail.internet.InternetAddress;
  import javax.mail.internet.MimeMessage;
  import javax.activation.*;
 
  import com.google.gwt.user.server.rpc.RemoteServiceServlet;
 
  import cs.ubc.ca.cs310.HockeyPool.client.EmailService;
 
  public class EmailServiceImpl extends RemoteServiceServlet implements
  EmailService  {
  /**
   *
   */
  private static final long serialVersionUID = 1L;
 
  public void sendEmail(String email){
  Properties props = System.getProperties();
  props.put(mail.smtp.host, smtp.gmail.com);
  props.put(mail.smtp.port, 465);
 
  Session mailSession = Session.getDefaultInstance(props);
  Message simpleMessage = new MimeMessage(mailSession);
 
  InternetAddress fromAddress = null;
  InternetAddress toAddress = null;
  try {
  fromAddress = new InternetAddress(
 gharold...@gmail.com);
  toAddress = new InternetAddress(email);
  } catch (AddressException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
 
  try {
  simpleMessage.setFrom(fromAddress);
  simpleMessage.setRecipient(RecipientType.TO,
 toAddress);
  simpleMessage.setSubject(HockeyPool PoolAdmin
 Invitation);
  simpleMessage.setText(Hello,br /br /You
 have been added as a
  Pool Administrator for our Hockey Pool System);
 
  Transport.send(simpleMessage);
  System.out.println(email sent);
  } catch (MessagingException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
  }
 
  }
 
  When i GWT Compile i get no errors at all.
  Even when i debug the 

Re: Problem accessing a service that extends a generic superclass

2011-02-28 Thread George Moschovitis
thanks for the tip!

-g.

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



[gwt-contrib] Re: Store IsWidget instances in Panel instead of Widget?

2011-02-28 Thread Ed
Thanks, for the clear explanation. I wasn't aware of this.
If that's how it was designed, I understand it, but I don't think this
is well explained in the documentation and I hope most GWT developers
know this.
And why not extend this functionality to the way I use it so it might
become more useful?

- Ed


On Feb 28, 4:22 am, Stephen Haberman step...@exigencecorp.com wrote:
     public Widget asWidget() {
             return getEnsureUiWidget();
     }

 You shouldn't be doing this. asWidget wasn't added to allow lazy
 initialization of widgets.

 It was added so that dummy widgets can pretend to be widgets--but
 only in tests. When not testing, the assertion:

     assert widget.asWidget() == widget

 Should always pass.

 In other words, the only implementations of asWidget should ever be:

 A) In a real widget:

     public Widget asWidget() {
       return this;
     }

 B) In a stub/mock/fake widget:

     public Widget asWidget() {
       throw new RuntimeException(no, i'm not a real widget!);
     }

 While your use of asWidget is creative, it's not at all the intent, and
 so it's not surprising you're seeing odd results.

 - Stephen

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


[gwt-contrib] Re: [RFC] GWT Widgets that ROCK!

2011-02-28 Thread Thomas Broyer


On Saturday, February 26, 2011 9:14:37 PM UTC+1, Philippe Beaudoin wrote:

 John, I really like this idea. It's well thought-out and the customization 
 hooks seem at once powerful and easy to use. I like the use of 
 replace-with to provide a simple way to perform an app-wide appearance 
 switch. Here are a couple of remarks:

 Sorry it's so long. Here is the *tl;dnr* version:
 1) The ButtonCell(DefaultAppearance.Resources) constructor can be 
 confusing, I think it should be dropped.
 2) Providing a custom DefaultAppearance.Resources lead to somewhat smelly 
 code.


-1 on both the above

(note: ClientBundle only reads the annotations from the method definition, 
it does not look at the overridden methods)
 

 3) Minor one-time style modifications are hard to make.


There's no one-time style modification; if you style an instance slightly 
differently, it's related to the context in which you use it, which means 
that you're likely to find that context a second time in your app (where 
you'd want/need to apply the same style modification); if not today, then 
tomorrow when you'll add a feature.
It's similar to I won't externalize this value –golden number– into a 
constant because it's only used once (until it's used a second time, and 
you're still not sharing the value definition, so next time you'll want to 
change the value, you'll miss an instance).
And it's actually not that hard to override a CssResource: 5 lines of Java 
and a CSS file.
 

 4) Contrary to Stephen, I think this design makes it hard to use 
 selector-based CSS that assumes the widget obeys a precise DOM structure.
 5) We should make sure GIN can be used to inject Appearance 
 into ButtonCell and Resources into Appearance.
 6) I agree with Thomas about:
   - Not being sure making Appearance an abstract class is the right choice


I didn't give an opinion on the subject; I was just dismissing the argument.

I believe in most cases Appearance classes would have only 'public' methods 
(and it could be documented as being how they would evolve, if ever: only 
adding 'public' methods), and specific subclasses would only override those 
methods and add non-public ones (private or protected). If a new 'public' 
method is added in a later version with a signature that conflicts with one 
you added in a subclass, because your method would have a lesser visibility, 
your code would no longer compile.
If you need public to add methods, then it's probably a sign of code smell, 
and you could still detect conflicts by configuring your IDE to mark as 
errors an overridden method missing the @Overrides annotation (it wouldn't 
work if the class is a third-party lib you're using though; should there be 
an equivalent compiler switch?).
Finally, I don't think there would be much inheritance among Appearance 
classes (even user-made ones), so the case of classes turning into 
interfaces as we saw in GWT 2.2 is unlikely to happen.

In brief, I'm fine with abstract classes, and I'd be fine interfaces too; 
it's just that the argument about compatibility when the API evolves is to 
be taken with care.
Widgets already have see a few methods added in their lifetime and I don't 
think anyone complained about a new method breaking their code; it's just 
how OOP works after all.

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

[gwt-contrib] GWT Improvement and Feature List

2011-02-28 Thread Allahbaksh Asadullah
Dear All,
After reading few of the blogs and overall needs in some of the
projects. I thought following features can be added in GWT future
version

1.  Support for Servlet 3.0 specification
2.  RPCServlet to stabilized and brought to production level
3.  Exchange format to be more modular. Pluggable to ProtocolBuffer,
Apache Thrift etc
4.  Scala to JavaScript Compiler
5.  JDK7 project Coin support for the compiler
6.  Better Styling for Widget (CellBacked Widget)
7.  TabLayout can made like Firefox
8.  IndexDB and local cache support (HTML5 support)

Community if you need to add feature please add it.
Warm Regards,
Allahbaksh

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


[gwt-contrib] Re: GWT Improvement and Feature List

2011-02-28 Thread federico
a form of runtime modularity (separate modules compilations)

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

  1   2   >