Re: Aw: Re: Aw: Re: activities - places with more complex layouts

2011-05-30 Thread tanteanni
thx jens - thats enlightening!

ok in my case i will construct wrapper-widgets to get n displayareas with 1 
activity. the hint with n activity mappers to get n places to start will 
help in future. do you know of an use case for n activity mappers?

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



Using flex table with uibinder

2011-05-30 Thread Juhi
Hi,

I have no documentation and no idea how to use flex table in uibinder.
Can anyone help or post an example of flex table using uibinder.

Thanks,
Juhi.

-- 
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: activities - places with more complex layouts

2011-05-30 Thread tanteanni
jens' example for tab-like use - the google apps- is the exact same example 
i think about. it is used to switch between not connected parts. in fact 
they are connected - they are all google apps (connected via account) or 
all have the same context like - to set properties(connected via 
settings-file). and my first idea was to give each tab a place and be 
bookmarkable. and since you said that this isn't impossible i will try. 

-- 
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 CellList Drag and Drop

2011-05-30 Thread Jee
Can we re-order CellList .. using DND. If we have 5 items in the
CellList, can we move 2nd item to 5th Item in the same CellList.

Thanks
Jee


On May 29, 1:03 am, Julien Dramaix julien.dram...@gmail.com wrote:
 Could you explain more what you are looking for ? What do you mean by
 within CellList ?

 On May 28, 2:11 pm, Jee sundarra...@gmail.com wrote:







  Hi Julien,

  thanks.
  Its great to see your reply. CellList is supporting drag and drop.
  but i am looking within CellList whether drag and drop is supporting
  or not.
  I tried to get about it, but i still failed.
  Please suggest on this.

  Thanks
  Jee

  On May 27, 6:47 pm, Julien Dramaix julien.dram...@gmail.com wrote: You 
  can use the drag-and-drop plugins of gqtquery to enbale drag and
   drop on any CellWidget.

   Example 
   :http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/Conta...
   Documentation 
   :http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGW...

   Julien

   On May 27, 10:42 am, Jee sundarra...@gmail.com wrote:

Hi,

We would like to replace the old table inside Menu to use cellList.
However, we

don't know whether GWT cellList support drag and drop or not. Drag and
drop is

supported using old table inside Menu but we have to make sure this
feature

still works in cellList before we can replace it.

Thanks,
Jee

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



Alternative to using Blob on Client Side Code

2011-05-30 Thread Myth17
I was trying to fetch a Feed object which had 'Blob' as one of its 
attribute(A random file attachment). However I realized that we cant use 
Blob on the Client side code.
What should I use as an alternative?

Perhaps I could pass byte arrays around but that would be a large amount of 
data for multiple feeds. I would want user to click on a button on the Feed 
view to fetch the Attachment. How can I solve the problem?

-- 
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: UiBinder Internationalization - Search/Find Non-Internationalized Strings?

2011-05-30 Thread Jānis Ābele
Look at http://code.google.com/p/gwt-platform/wiki/MergeLocale, it does what 
you want.

-- 
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 does not implement HasName

2011-05-30 Thread marcotrev
Hi all,

I've recently developed a form editor library in which I use a
FormPanel to send the data to the server.
During form construction I have a for loop which sets the input
elements name to field names coming from a naming convention
available at both client and server side. Form input elements are
expected to implement HasName for what I know, so the for loop
should set input names to all kinds of input type widgets.

I noticed that DateBox does not implement HasName so I had to add a
special case for it and set the name to the wrapped TextBox element in
order to have the form filled with the date fields too.

IMHO this should be filed as a bug but before doing it I prefer to
hear some feedback from you.

Cheers,
  Marco

-- 
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 and OpenJPA not working together

2011-05-30 Thread roman
Thank you for your quick response.
I followed your advise and changed the underlying technology of my JPA
layer to DataNucleus.

But i ran into a different problem

log4j:WARN No appenders could be found for logger
(DataNucleus.Connection).
log4j:WARN Please initialize the log4j system properly.
[ERROR] javax.servlet.ServletContext log: unavailable
javax.persistence.PersistenceException: Provider error. Provider:
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider
at javax.persistence.Persistence.createFactory(Persistence.java:176)
...
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: javax.jdo.JDOFatalInternalException: Unexpected exception
caught.
NestedThrowables:
java.lang.reflect.InvocationTargetException
at
javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:
1186)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
803)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
698)
...
Caused by: java.lang.NoClassDefFoundError: java.io.FileOutputStream is
a restricted class. Please see the Google  App Engine developer's
guide for more details.
at
com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
51)
at
org.apache.derby.impl.services.stream.SingleStream.PBmakeFileHPW(Unknown
Source)
at org.apache.derby.impl.services.stream.SingleStream.run(Unknown
Source)

Well I see that i probably have got an error in the configuration of
the DataStorePersistenceProvider. Unfortunately, I am not sure what
the error could be. Is there any way to get a more specific
description of what is causing the problem?

cheers, roman


On 27 Mai, 15:28, Patrick Julien pjul...@gmail.com wrote:
 If you wan't to use JPA with AppEngine, you have to use the JPA that
 comes with AppEngine which is based on datanucleus.  See

 http://code.google.com/appengine/docs/java/datastore/jpa/overview.html

 for an overview







 On Fri, May 27, 2011 at 5:56 AM, roman roman.za...@gmail.com wrote:
  Hi,
  I'm trying to implement a UserManagement based on GoogleWebToolkit
  (Adding, deleting, assigning privileged; nothing special there). The
 GWT-module is using a serparate persistence module, which I included
  as a jar-file and which is based onOpenJPA.

  The persistence layer is working fine as long is I run it standalone.
  But when I wire it to myGWTproject, I can't create the
  EntityManagerFactory any more. I get a NullPointerException in one of
  theOpenJPAclasses, which I think is because that Google App Engine
  replaced the default java.lang.ClassLoader.

  Is it a bad idea to useOpenJPAwithGWT? Is there anything to
  consider when combining these libraries?

  For better understanding find the source code attached.
  Any help would be greatly appreciated.
  thx, roman

  The server is running athttp://localhost:/
  [WARN] Error for /usermgmtui/userInformation
  java.lang.ExceptionInInitializerError
         at org.apache.openjpa.kernel.Bootstrap.invokeFactory(Bootstrap.java:
  116)
         at
  org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:
  96)
         at
  org.apache.openjpa.persistence.OpenJPAPersistence.getEntityManagerFactory(OpenJPAPersistence.java:
  92)
         at
  com.mycompany.commons.jpa.JpaUserManagement.init(JpaUserManagement.java:
  64)
         at
  com.mycompany.commons.UserManagementImpl.setDatasoure(UserManagementImpl.java:
  71)
         at
  com.mycompany.ui.server.UserInformationServiceImpl.init(UserInformationServiceImpl.java:
  36)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
  Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
  Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
         at
  org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:
  428)
         at
  org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:
  339)
         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
  487)
         at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1166)
         at
  com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
  35)
         at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
         at
  

Aw: Re: Aw: Re: Aw: Re: activities - places with more complex layouts

2011-05-30 Thread Jens
Am Montag, 30. Mai 2011 08:08:19 UTC+2 schrieb tanteanni:



 the hint with n activity mappers to get n places to start will help in 
 future.


Thats not what I said. You will have 1 Place that can start up to n 
activities if you have n activity mappers.

You will have multiple activity mappers if you need more than one display 
area driven by separate activities.

 

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



Aw: Re: activities - places with more complex layouts

2011-05-30 Thread Jens
In a properties example you would only have one  PropertiesPlace and use the 
token to encode where you are. E.g. /#PropertiesPlace:account, 
/#PropertiesPlace:security etc. Depending on the token a different tab will 
be shown. There is no need for different places as you are always see the 
properties view of the app.

-- 
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 and OpenJPA not working together

2011-05-30 Thread roman
One more thing, that just came to my mind.
My solution also uses and is based on Apache James, which in return
has got an OpenJPA layer. That's why I did choose OpenJPA in the first
place.
So when you say that I have to use JPA layer of the appengine, hence
datanucleus, I really doubt that my James server will work as it
normally would. What are my chances of having a GWT frontend for a
user management that persists data into a Derby database; and a James
server that reads the data configured to work I need it to.
To make things even more challenging, it would be great to reuse
James' databaseconnection and use it in my user management.

cheers

On 30 Mai, 10:29, roman roman.za...@gmail.com wrote:
 Thank you for your quick response.
 I followed your advise and changed the underlying technology of my JPA
 layer to DataNucleus.

 But i ran into a different problem

 log4j:WARN No appenders could be found for logger
 (DataNucleus.Connection).
 log4j:WARN Please initialize the log4j system properly.
 [ERROR] javax.servlet.ServletContext log: unavailable
 javax.persistence.PersistenceException: Provider error. Provider:
 org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider
         at javax.persistence.Persistence.createFactory(Persistence.java:176)
         ...
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
         at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
         at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)
 Caused by: javax.jdo.JDOFatalInternalException: Unexpected exception
 caught.
 NestedThrowables:
 java.lang.reflect.InvocationTargetException
         at
 javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:
 1186)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
 803)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
 698)
         ...
 Caused by: java.lang.NoClassDefFoundError: java.io.FileOutputStream is
 a restricted class. Please see the Google  App Engine developer's
 guide for more details.
         at
 com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
 51)
         at
 org.apache.derby.impl.services.stream.SingleStream.PBmakeFileHPW(Unknown
 Source)
         at org.apache.derby.impl.services.stream.SingleStream.run(Unknown
 Source)

 Well I see that i probably have got an error in the configuration of
 the DataStorePersistenceProvider. Unfortunately, I am not sure what
 the error could be. Is there any way to get a more specific
 description of what is causing the problem?

 cheers, roman

 On 27 Mai, 15:28, Patrick Julien pjul...@gmail.com wrote:







  If you wan't to use JPA with AppEngine, you have to use the JPA that
  comes with AppEngine which is based on datanucleus.  See

 http://code.google.com/appengine/docs/java/datastore/jpa/overview.html

  for an overview

  On Fri, May 27, 2011 at 5:56 AM, roman roman.za...@gmail.com wrote:
   Hi,
   I'm trying to implement a UserManagement based on GoogleWebToolkit
   (Adding, deleting, assigning privileged; nothing special there). The
  GWT-module is using a serparate persistence module, which I included
   as a jar-file and which is based onOpenJPA.

   The persistence layer is working fine as long is I run it standalone.
   But when I wire it to myGWTproject, I can't create the
   EntityManagerFactory any more. I get a NullPointerException in one of
   theOpenJPAclasses, which I think is because that Google App Engine
   replaced the default java.lang.ClassLoader.

   Is it a bad idea to useOpenJPAwithGWT? Is there anything to
   consider when combining these libraries?

   For better understanding find the source code attached.
   Any help would be greatly appreciated.
   thx, roman

   The server is running athttp://localhost:/
   [WARN] Error for /usermgmtui/userInformation
   java.lang.ExceptionInInitializerError
          at 
   org.apache.openjpa.kernel.Bootstrap.invokeFactory(Bootstrap.java:
   116)
          at
   org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:
   96)
          at
   org.apache.openjpa.persistence.OpenJPAPersistence.getEntityManagerFactory(OpenJPAPersistence.java:
   92)
          at
   com.mycompany.commons.jpa.JpaUserManagement.init(JpaUserManagement.java:
   64)
          at
   com.mycompany.commons.UserManagementImpl.setDatasoure(UserManagementImpl.java:
   71)
          at
   com.mycompany.ui.server.UserInformationServiceImpl.init(UserInformationServiceImpl.java:
   36)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
   Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
   Source)
          at 
   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
   Source)
          at java.lang.reflect.Constructor.newInstance(Unknown Source)
          at 

Re: GWT CellList Drag and Drop

2011-05-30 Thread Julien Dramaix
Yes you can...
I wrote an example on how to use gwtquery drag-and-drop plugin for
implementing re-ordering in CellList :

Example : 
http://julien-labs.googlecode.com/svn-history/r7/trunk/sortablecellwidget/demo/SortableCellList/sortablecelllist.html

Java code : 
http://code.google.com/p/julien-labs/source/browse/trunk/sortablecellwidget/?r=7#sortablecellwidget%2Fsrc%2Fjulien%2Fsamples%2Fdndcellwidget%2Fclient

The code is documented and easy to understand. If I found time, I will
write an article about how to implement reordering in CellWidget...

Julien

On Mon, May 30, 2011 at 8:38 AM, Jee sundarra...@gmail.com wrote:
 Can we re-order CellList .. using DND. If we have 5 items in the
 CellList, can we move 2nd item to 5th Item in the same CellList.

 Thanks
 Jee


 On May 29, 1:03 am, Julien Dramaix julien.dram...@gmail.com wrote:
 Could you explain more what you are looking for ? What do you mean by
 within CellList ?

 On May 28, 2:11 pm, Jee sundarra...@gmail.com wrote:







  Hi Julien,

  thanks.
  Its great to see your reply. CellList is supporting drag and drop.
  but i am looking within CellList whether drag and drop is supporting
  or not.
  I tried to get about it, but i still failed.
  Please suggest on this.

  Thanks
  Jee

  On May 27, 6:47 pm, Julien Dramaix julien.dram...@gmail.com wrote: You 
  can use the drag-and-drop plugins of gqtquery to enbale drag and
   drop on any CellWidget.

   Example 
   :http://gwtquery-plugins.googlecode.com/svn/trunk/droppable/demo/Conta...
   Documentation 
   :http://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGW...

   Julien

   On May 27, 10:42 am, Jee sundarra...@gmail.com wrote:

Hi,

We would like to replace the old table inside Menu to use cellList.
However, we

don't know whether GWT cellList support drag and drop or not. Drag and
drop is

supported using old table inside Menu but we have to make sure this
feature

still works in cellList before we can replace it.

Thanks,
Jee

 --
 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: Alternative to using Blob on Client Side Code

2011-05-30 Thread Frederic Conrotte
You must first write a servlet that sends the binary to the user

Then when the user clicks on the button you call the servlet with the
proper parameter.

Here is an excerpt from our servlet implementation

response.reset();

response.setContentType(application/octet-stream);
response.setContentLength(contentLength);
response.setHeader(Content-disposition, attachment;
filename=\ + filename + \);
output = new
BufferedOutputStream(response.getOutputStream());
int data = input.read();
while (data != -1)
{
output.write(data);
data = input.read();
}
output.flush();


When the user clicks on the button you must call a

On May 30, 8:55 am, Myth17 nitishupr...@gmail.com wrote:
 I was trying to fetch a Feed object which had 'Blob' as one of its
 attribute(A random file attachment). However I realized that we cant use
 Blob on the Client side code.
 What should I use as an alternative?

 Perhaps I could pass byte arrays around but that would be a large amount of
 data for multiple feeds. I would want user to click on a button on the Feed
 view to fetch the Attachment. How can I solve the problem?

-- 
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: Alternative to using Blob on Client Side Code

2011-05-30 Thread Myth17
But the Model object in my /shared package folder need to refrence it 
somehow? But shared code is also used by Browser so I am not allowed to use 
Blob typwe. :|

-- 
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 + GWT widget

2011-05-30 Thread Thomas Broyer
Unless you add an @external gwt-Label; (or @external gwt-*;) line in 
your CssResource's CSS file, GWT will treat the gwt-Label class name just 
like any other, and will obfuscate it, so you'll have to setStyleName or 
addStyleName this obfuscated name (got back from the CssResource Java 
interface you declared) on your Label.

In other words, if you want to have a rule on the gwt-Label unobfuscated 
class name, you have to mark it as @external.

-- 
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: Aw: Re: Aw: Re: Aw: Re: activities - places with more complex layouts

2011-05-30 Thread tanteanni
thx for this correction - time to try it

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



pom.xml / gwt.xml

2011-05-30 Thread Aza
I'm not very clear on the difference between the depedencies in your
pom.xml and those inherited via gwt.xml. Could someone please help
clarify..

Thx

-- 
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: pom.xml / gwt.xml

2011-05-30 Thread Magno Machado
The pom is to instruct Maven (or other similar build tool) about what are
the dependencies of a given artifact.

The *.gwt.xml inherits clause tells the compiler what gwt modules should
be available to your app. This will tell the compiler a set of deferred
binding settings to use, the source folders for the inherited modules, etc.

Note that a single jar, which is declared on the pom.xml, may contain any
number of gwt modules (which should be inherited on a *.gwt.xml) file, see
gwt-user.jar for exemple

On Mon, May 30, 2011 at 9:05 AM, Aza azat...@gmail.com wrote:

 I'm not very clear on the difference between the depedencies in your
 pom.xml and those inherited via gwt.xml. Could someone please help
 clarify..

 Thx

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




-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

-- 
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: Error when obfuscating a gwt jar

2011-05-30 Thread Magno Machado
3. All the classes, which reside only in server, are under your
control and, hence, there is no need for any obfuscation.
Maybe the server is not under the OP's control

On Sun, May 29, 2011 at 11:27 PM, J.Ganesan j.gane...@datastoregwt.comwrote:

 External obfuscation seriously interferes with GWT.
 1.Whatever is in client package, in any case, can not be obfuscated.
 2. All the shared classes undergoing serialization can not be
 obfuscated.
 3. All the classes, which reside only in server, are under your
 control and, hence, there is no need for any obfuscation.

 If the jar file you are talking about is a thrid party jar, you really
 have a problem. When there is an update of jar file, it will result in
 an incompatible serialization of the already saved objects.

 J.Ganesan
 www.DataStoreGwt.com



 On May 29, 5:59 pm, Hedi Ben Said hedi.bens...@gmail.com wrote:
  In my application besides the javascript that have been generated as a
  result for the gwt compilation, there is also a jar file that contains
  the classes of my gwt application. These classes are necessary to make
  the server and client part communicate via rpc
 
  On May 27, 11:24 am, Martin Trummer ds.martin.trum...@gmail.com
  wrote:
 
 
 
 
 
 
 
   I guess, that your extra obfuscation step changes the names of all
   classes and thus the GWT serialization mechanism will not find the
   correct classes. I don't think you need toobfuscateanything, because
   GWT already obfuscates the java-script code:
 http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...
 
   that means, all GWT code, that the client will ever see is already
   obfuscated:
   so why would you want toobfuscatethe class files again?
 
   On May 26, 7:17 pm, Hedi Ben Said hedi.bens...@gmail.com wrote:
 
When Iobfuscatea jar of a gwt application I got the following error
The response could not be deserialized.
By obfuscating I do not mean the compiler option of gwt. I mean
obfuscating the .class files contained in the jar file
 
Do you have any idea?
 
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.




-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

-- 
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 and OpenJPA not working together

2011-05-30 Thread Patrick Julien
I think that's specific enough:

Caused by: java.lang.NoClassDefFoundError: java.io.FileOutputStream
is a restricted class. Please see the Google  App Engine developer's
guide for more details.

On Mon, May 30, 2011 at 4:29 AM, roman roman.za...@gmail.com wrote:
 Thank you for your quick response.
 I followed your advise and changed the underlying technology of my JPA
 layer to DataNucleus.

 But i ran into a different problem

 log4j:WARN No appenders could be found for logger
 (DataNucleus.Connection).
 log4j:WARN Please initialize the log4j system properly.
 [ERROR] javax.servlet.ServletContext log: unavailable
 javax.persistence.PersistenceException: Provider error. Provider:
 org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider
        at javax.persistence.Persistence.createFactory(Persistence.java:176)
        ...
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
        at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)
 Caused by: javax.jdo.JDOFatalInternalException: Unexpected exception
 caught.
 NestedThrowables:
 java.lang.reflect.InvocationTargetException
        at
 javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:
 1186)
        at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
 803)
        at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
 698)
        ...
 Caused by: java.lang.NoClassDefFoundError: java.io.FileOutputStream is
 a restricted class. Please see the Google  App Engine developer's
 guide for more details.
        at
 com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
 51)
        at
 org.apache.derby.impl.services.stream.SingleStream.PBmakeFileHPW(Unknown
 Source)
        at org.apache.derby.impl.services.stream.SingleStream.run(Unknown
 Source)

 Well I see that i probably have got an error in the configuration of
 the DataStorePersistenceProvider. Unfortunately, I am not sure what
 the error could be. Is there any way to get a more specific
 description of what is causing the problem?

 cheers, roman


 On 27 Mai, 15:28, Patrick Julien pjul...@gmail.com wrote:
 If you wan't to use JPA with AppEngine, you have to use the JPA that
 comes with AppEngine which is based on datanucleus.  See

 http://code.google.com/appengine/docs/java/datastore/jpa/overview.html

 for an overview







 On Fri, May 27, 2011 at 5:56 AM, roman roman.za...@gmail.com wrote:
  Hi,
  I'm trying to implement a UserManagement based on GoogleWebToolkit
  (Adding, deleting, assigning privileged; nothing special there). The
 GWT-module is using a serparate persistence module, which I included
  as a jar-file and which is based onOpenJPA.

  The persistence layer is working fine as long is I run it standalone.
  But when I wire it to myGWTproject, I can't create the
  EntityManagerFactory any more. I get a NullPointerException in one of
  theOpenJPAclasses, which I think is because that Google App Engine
  replaced the default java.lang.ClassLoader.

  Is it a bad idea to useOpenJPAwithGWT? Is there anything to
  consider when combining these libraries?

  For better understanding find the source code attached.
  Any help would be greatly appreciated.
  thx, roman

  The server is running athttp://localhost:/
  [WARN] Error for /usermgmtui/userInformation
  java.lang.ExceptionInInitializerError
         at org.apache.openjpa.kernel.Bootstrap.invokeFactory(Bootstrap.java:
  116)
         at
  org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:
  96)
         at
  org.apache.openjpa.persistence.OpenJPAPersistence.getEntityManagerFactory(OpenJPAPersistence.java:
  92)
         at
  com.mycompany.commons.jpa.JpaUserManagement.init(JpaUserManagement.java:
  64)
         at
  com.mycompany.commons.UserManagementImpl.setDatasoure(UserManagementImpl.java:
  71)
         at
  com.mycompany.ui.server.UserInformationServiceImpl.init(UserInformationServiceImpl.java:
  36)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
  Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
  Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
         at
  org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:
  428)
         at
  org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:
  339)
         at 
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
  487)
         at org.mortbay.jetty.servlet.ServletHandler
  

list to list

2011-05-30 Thread Navindian
Hi

I need a component which is used for moving chosen items from one list into
another with their optional reordering there.

This need to be developed in pure gwt without using libraries.

Thanks
navindian

-- 
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: Google Eclipse Plugin deletes gwt-servlet.jar when running?

2011-05-30 Thread Philippe Beaudoin
We recently added a maven dependency to gwt-servlet and cleaned-up the POM 
somewhat (thanks to Yannis Gonianakis) which made it possible to run as web 
application simple projects that do not have a server-side component.

For my projects with a GAE component, the Launch and Deploy from this 
Directory was unchecked. I tried checking it but keep on getting the 
following error:
  [WARN] Error starting handlers
  java.lang.NoClassDefFoundError: 
com/google/inject/servlet/GuiceServletContextListener

Thanks a lot for taking the time to look into this Rajeev, much appreciated.

   Philippe

-- 
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: Pop up Panel not working properly

2011-05-30 Thread Carlos
hi,

how did you do the binding ? can you paste your java class here so
that we can see whats going on ?
because i had done something similar to this.

regards.

On 28 mai, 13:55, Juhi Bhatia jbha...@entrib.com wrote:
 Hi,

 I am trying to show a Grid in a popup panel through uibinder. but the popup
 panel never shows up.

 This is the popup.ui.xml file -

 g:PopupPanel ui:field = popupPanel
         g:Grid
             g:row
                 g:customCell
                     g:Label text = Tag ID: /
                 /g:customCell
                 g:customCell
                     g:TextBox ui:field = tagIDBox/
                 /g:customCell
             /g:row

             g:row
                 g:customCell
                     g:Label text = Tag Name: /
                 /g:customCell
                 g:customCell
                     g:TextBox ui:field = tagNameBox/
                 /g:customCell
             /g:row

             g:row
                 g:customCell
                     g:Label text = Tag Description: /
                 /g:customCell
                 g:customCell
                     g:TextBox ui:field = tagDescBox/
                 /g:customCell
             /g:row

             g:row
                 g:customCell
                     g:Label text = EMG Tag Type: /
                 /g:customCell
                 g:customCell
                     g:TextBox ui:field = emgTagType/
                 /g:customCell
             /g:row

             g:row
                 g:customCell
                     g:Label text = Tag Display Unit: /
                 /g:customCell
                 g:customCell
                     g:TextBox ui:field = tagDisplayUnit/
                 /g:customCell
             /g:row

             g:row
                 g:customCell
                     g:Label text = Connector ID: /
                 /g:customCell
                 g:customCell
                     g:ListBox ui:field = connectorId/
                 /g:customCell
             /g:row

             g:row
                 g:customCell
                     g:Label text = Element ID: /
                 /g:customCell
                 g:customCell
                     g:ListBox ui:field = elementId/
                 /g:customCell
             /g:row
         /g:Grid

         g:Grid
             g:row
                 g:customCell
                     g:Label text = Back End Data/
                 /g:customCell
             /g:row
             g:row
                 g:customCell
                     g:Label text = Name: /
                 /g:customCell
                 g:customCell
                     g:TextBox ui:field = nameBox/
                 /g:customCell
             /g:row
             g:row
                 g:customCell
                     g:Label text = Value: /
                 /g:customCell
                 g:customCell
                     g:TextBox ui:field = valueBox/
                 /g:customCell
             /g:row
         /g:Grid
         /g:PopupPanel

 and my class extends PopupPanel.

 I create an object of this class and do a show() on the object, in the
 onClick of the button i want to show this popup.

 Can anyone help??

 Thanks,
 Juhi.

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



Codesplitting and ``If-Modified-Since`` Header

2011-05-30 Thread pansen
Hey,

we are successfully using the codesplitting feature in our project. on
our staging server, i recognized that all splitted files are always
completely loaded from the server. All files included in the hostpage,
will send a ``If-Modified-Since`` header the second time I load the
app::

If-Modified-Since   Mon, 30 May 2011 14:29:42 GMT
Cache-Control   max-age=0

All splitted JS files are correctly loaded afterwards, but the problem
is they never contain these information (``If-Modified-Since``
header). So the server is not able to respond with a 304 Not
Modified.

Can someone give me a hint where to tweak this behaviour?

The advice given here:
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#perfect_caching
also wont work without that header.

Thanks, 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 and OpenJPA not working together

2011-05-30 Thread roman
allright. your push made me look into it a little deeper :-)
My solution to the NoClassDefFoundError: java.io.FileOutputStream is
a restricted class is disabling the usage of Google's App engine
under Project - Properties | Google | App Engine | Use Google App
Engine -- uncheck

After that i got ClassCastException:
org.datanucleus.store.rdbms.RDBMSManager cannot be cast to
org.datanucleus.store.appengine.DatastoreManager which made me
banning the datanucleus-appengine-1.0.8.final.jar from the projects
classpath as well.
I have no clue if this is a good idea, but my code is running so far
and I am able to make calls to the Derby database.

Which brings me back to my other question:
Is it utterly impossible to have the persistence layer running with
OpenJPA along with a GWT frontend? As I fear Apache James is dependent
on its familiar JPA technology.

again, thanks for your advice. you helped me loads
alltogether I spent already a week on these issues, and I'm craving
for answers
cheers

On 30 Mai, 14:48, Patrick Julien pjul...@gmail.com wrote:
 I think that's specific enough:

 Caused by: java.lang.NoClassDefFoundError: java.io.FileOutputStream
 is a restricted class. Please see the Google  App Engine developer's
 guide for more details.







 On Mon, May 30, 2011 at 4:29 AM, roman roman.za...@gmail.com wrote:
  Thank you for your quick response.
  I followed your advise and changed the underlying technology of my JPA
  layer to DataNucleus.

  But i ran into a different problem

  log4j:WARN No appenders could be found for logger
  (DataNucleus.Connection).
  log4j:WARN Please initialize the log4j system properly.
  [ERROR] javax.servlet.ServletContext log: unavailable
  javax.persistence.PersistenceException: Provider error. Provider:
  org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider
         at javax.persistence.Persistence.createFactory(Persistence.java:176)
         ...
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
         at
  org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
  409)
         at org.mortbay.thread.QueuedThreadPool
  $PoolThread.run(QueuedThreadPool.java:582)
  Caused by: javax.jdo.JDOFatalInternalException: Unexpected exception
  caught.
  NestedThrowables:
  java.lang.reflect.InvocationTargetException
         at
  javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:
  1186)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
  803)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
  698)
         ...
  Caused by: java.lang.NoClassDefFoundError: java.io.FileOutputStream is
  a restricted class. Please see the Google  App Engine developer's
  guide for more details.
         at
  com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
  51)
         at
  org.apache.derby.impl.services.stream.SingleStream.PBmakeFileHPW(Unknown
  Source)
         at org.apache.derby.impl.services.stream.SingleStream.run(Unknown
  Source)

  Well I see that i probably have got an error in the configuration of
  the DataStorePersistenceProvider. Unfortunately, I am not sure what
  the error could be. Is there any way to get a more specific
  description of what is causing the problem?

  cheers, roman

  On 27 Mai, 15:28, Patrick Julien pjul...@gmail.com wrote:
  If you wan't to use JPA with AppEngine, you have to use the JPA that
  comes with AppEngine which is based on datanucleus.  See

 http://code.google.com/appengine/docs/java/datastore/jpa/overview.html

  for an overview

  On Fri, May 27, 2011 at 5:56 AM, roman roman.za...@gmail.com wrote:
   Hi,
   I'm trying to implement a UserManagement based on GoogleWebToolkit
   (Adding, deleting, assigning privileged; nothing special there). The
  GWT-module is using a serparate persistence module, which I included
   as a jar-file and which is based onOpenJPA.

   The persistence layer is working fine as long is I run it standalone.
   But when I wire it to myGWTproject, I can't create the
   EntityManagerFactory any more. I get a NullPointerException in one of
   theOpenJPAclasses, which I think is because that Google App Engine
   replaced the default java.lang.ClassLoader.

   Is it a bad idea to useOpenJPAwithGWT? Is there anything to
   consider when combining these libraries?

   For better understanding find the source code attached.
   Any help would be greatly appreciated.
   thx, roman

   The server is running athttp://localhost:/
   [WARN] Error for /usermgmtui/userInformation
   java.lang.ExceptionInInitializerError
          at 
   org.apache.openjpa.kernel.Bootstrap.invokeFactory(Bootstrap.java:
   116)
          at
   org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:
   96)
          at
   org.apache.openjpa.persistence.OpenJPAPersistence.getEntityManagerFactory(OpenJPAPersistence.java:
   92)
          at
   

Re: CssResource + GWT widget

2011-05-30 Thread Jonathan
Thank you Thomas.

(in a context of MVP / activities  places)
Is it a better design decision to use one big general CSS for all my
application or have one general CSS + smalls CSS for each views ?


On 30 mai, 06:39, Thomas Broyer t.bro...@gmail.com wrote:
 Unless you add an @external gwt-Label; (or @external gwt-*;) line in
 your CssResource's CSS file, GWT will treat the gwt-Label class name just
 like any other, and will obfuscate it, so you'll have to setStyleName or
 addStyleName this obfuscated name (got back from the CssResource Java
 interface you declared) on your Label.

 In other words, if you want to have a rule on the gwt-Label unobfuscated
 class name, you have to mark it as @external.

-- 
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 and OpenJPA not working together

2011-05-30 Thread Patrick Julien
OpenJPA works fine with GWT.  Your issues have to do with the fact
you're running on AppEngine.  I don't even see how it's possible you
got derby running on AppEngine unless you're using an all memory
database.

On Mon, May 30, 2011 at 12:31 PM, roman roman.za...@gmail.com wrote:
 allright. your push made me look into it a little deeper :-)
 My solution to the NoClassDefFoundError: java.io.FileOutputStream is
 a restricted class is disabling the usage of Google's App engine
 under Project - Properties | Google | App Engine | Use Google App
 Engine -- uncheck

 After that i got ClassCastException:
 org.datanucleus.store.rdbms.RDBMSManager cannot be cast to
 org.datanucleus.store.appengine.DatastoreManager which made me
 banning the datanucleus-appengine-1.0.8.final.jar from the projects
 classpath as well.
 I have no clue if this is a good idea, but my code is running so far
 and I am able to make calls to the Derby database.

 Which brings me back to my other question:
 Is it utterly impossible to have the persistence layer running with
 OpenJPA along with a GWT frontend? As I fear Apache James is dependent
 on its familiar JPA technology.

 again, thanks for your advice. you helped me loads
 alltogether I spent already a week on these issues, and I'm craving
 for answers
 cheers

 On 30 Mai, 14:48, Patrick Julien pjul...@gmail.com wrote:
 I think that's specific enough:

 Caused by: java.lang.NoClassDefFoundError: java.io.FileOutputStream
 is a restricted class. Please see the Google  App Engine developer's
 guide for more details.







 On Mon, May 30, 2011 at 4:29 AM, roman roman.za...@gmail.com wrote:
  Thank you for your quick response.
  I followed your advise and changed the underlying technology of my JPA
  layer to DataNucleus.

  But i ran into a different problem

  log4j:WARN No appenders could be found for logger
  (DataNucleus.Connection).
  log4j:WARN Please initialize the log4j system properly.
  [ERROR] javax.servlet.ServletContext log: unavailable
  javax.persistence.PersistenceException: Provider error. Provider:
  org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider
         at javax.persistence.Persistence.createFactory(Persistence.java:176)
         ...
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
         at
  org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
  409)
         at org.mortbay.thread.QueuedThreadPool
  $PoolThread.run(QueuedThreadPool.java:582)
  Caused by: javax.jdo.JDOFatalInternalException: Unexpected exception
  caught.
  NestedThrowables:
  java.lang.reflect.InvocationTargetException
         at
  javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:
  1186)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
  803)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
  698)
         ...
  Caused by: java.lang.NoClassDefFoundError: java.io.FileOutputStream is
  a restricted class. Please see the Google  App Engine developer's
  guide for more details.
         at
  com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
  51)
         at
  org.apache.derby.impl.services.stream.SingleStream.PBmakeFileHPW(Unknown
  Source)
         at org.apache.derby.impl.services.stream.SingleStream.run(Unknown
  Source)

  Well I see that i probably have got an error in the configuration of
  the DataStorePersistenceProvider. Unfortunately, I am not sure what
  the error could be. Is there any way to get a more specific
  description of what is causing the problem?

  cheers, roman

  On 27 Mai, 15:28, Patrick Julien pjul...@gmail.com wrote:
  If you wan't to use JPA with AppEngine, you have to use the JPA that
  comes with AppEngine which is based on datanucleus.  See

 http://code.google.com/appengine/docs/java/datastore/jpa/overview.html

  for an overview

  On Fri, May 27, 2011 at 5:56 AM, roman roman.za...@gmail.com wrote:
   Hi,
   I'm trying to implement a UserManagement based on GoogleWebToolkit
   (Adding, deleting, assigning privileged; nothing special there). The
  GWT-module is using a serparate persistence module, which I included
   as a jar-file and which is based onOpenJPA.

   The persistence layer is working fine as long is I run it standalone.
   But when I wire it to myGWTproject, I can't create the
   EntityManagerFactory any more. I get a NullPointerException in one of
   theOpenJPAclasses, which I think is because that Google App Engine
   replaced the default java.lang.ClassLoader.

   Is it a bad idea to useOpenJPAwithGWT? Is there anything to
   consider when combining these libraries?

   For better understanding find the source code attached.
   Any help would be greatly appreciated.
   thx, roman

   The server is running athttp://localhost:/
   [WARN] Error for /usermgmtui/userInformation
   java.lang.ExceptionInInitializerError
          at 
   

how do i add a tooltip to a column header in a celltable ?

2011-05-30 Thread Celinio
hello,
i just have a simple question :
how do i add a tooltip to a column header in a celltable ?

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.



Reusing a pre-existing service layer

2011-05-30 Thread okmich
Good day,

I am a beginner with GWT and to put a lot of my learning to work, I
have an existing web app that was written using EJB3 (jar) + JSF
(war).

What I am trying to is keep the jar as usual and replace the war using
GWT.
I have a separate lib where I put all the transfer, service interfaces
and query objects for use in the war project. Also as a part of JSF
implementation I use the transfer object in the jsp pages through the
managed beans.

My question how could this be implemented in GWT. The fear/scare is
majorly around the compile-to-javascript for the transfer and query
object.

Ideas please,


Regards.

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



Absent Code attribute in method that is not native or abstract in class file javax/persistence/LockModeType

2011-05-30 Thread Skalio
Hi there,

I am doing my first steps in GWT and I am fascinated by the
possibilities.

So far I have set up a small project that relies on java classes
supplied in a external library. This library is made available to my
project via maven (own repository).
I want to use Java classes from that library on the client side - so I
had to supply the source code within the jar and had to make sure,
those classes do not use code that's not translateable to Javascript.

So far so good. I finally got past the errors that no source code
could be found.. Now a new error arises during runtime of the web
application:


java.lang.ClassFormatError: Absent Code attribute in method that is
not native or abstract in class file javax/persistence/LockModeType
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at
com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:
463)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:
725)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:
681)
at
com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:
474)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:
640)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:
655)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:
801)
at
com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMediator.java:
416)
at
com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(TypeOracleMediatorFromSource.java:
54)
at
com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:
164)
at
com.google.gwt.dev.javac.CompilationState.init(CompilationState.java:
82)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
409)
at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
299)
at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
325)
at com.google.gwt.dev.DevModeBase
$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:105)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
190)
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)



I use Eclipse (Helios) and the Eclipse GWT-PLugin. The Web app is
hosted by the internal App Server. JDK is 1.6 on Mac OS X.
Any ideas on 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.



CellList refreshed only after mouse move

2011-05-30 Thread mitel
Hi,
I'm doing some tests using realtime message push from different
providers (Beaconpush, PubNub) and I want to render the received
messages
as soon as they hit the client. I'm using a callback that updates a
ListDataProvider ( getList().add(pushedMessage) ).
The message is received, as I can see it in my logs , the model is
updated - I do a dataProvider.refresh().

The strange thing is that the received message is rendered in the
browser only after a mouse move inside the browser window.
If I keep moving the mouse around, the pushed messages come in real
time.

What would be the workaround to render the information without
touching the mouse? I tried cellList.redraw() inside the callback
after
each message is received but doesn't help.

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.



calling non-GWT RPC Server

2011-05-30 Thread Georg Richwood
Hello,
is it possible to have a GWT application make RPC calls to a RPC
server that has been developed independent from GWT?

If yes, can I still use GWT's RemoteService and RemoteServiceServlet
or do I have to implement RPC communication from scratch?

Can I find an example somewhere, how to communicate between a GWT
client and a non-GWT RPC server?

Thanks
Georg

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



Open SVG file in another browser tab or save locally

2011-05-30 Thread Lars Ruoff
Hi,
I'm new to GWT development.
I have coded a small flag generator application, which can be seen
here in its early stage: http://flag-designer.appspot.com/
It makes use of inline-SVG, a feature that is not readily supported by
many browsers at this time. (see http://caniuse.com/svg-html5)

I'd like to introduce a link on the page that would allow to download
the .svg file locally. (Or open it in a seperate browser window/tab
for that matter).
That svg content is available in the client in form of a Java String.
How would i go to create a link that allows the user to open it in
another browser tab or save the file?

Are there other ideas to handle SVG images?

thanks,
Lars R.

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



Bug in GWT Eclipse plugin

2011-05-30 Thread connect2vishal
Try creating the HTML page in the GWT eclipse plugin ... You can
never do it.
Bugs persist in all the versions of eclipse

-- 
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 2.3 and the IE6 permutation

2011-05-30 Thread Björn Wikström
Hi,

I've currently come across some weird behavior with the IE6
permutation of the new 2.3 release. We're targeting IE7 (not IE6), if
that matters. The described behavior applies to both IE6 and IE7
though. In our GWT project we use a lot of FlexTables, and most of the
generated elements (if not all) have a specified width in their style
attribute, which we did not apply to the element.

Most of the time we have a CSS class attached to the FlexTable, with
our specified width value. This value gets overridden and we cannot
even set the width explicitly via setWidth()/setSize() - all values
are overridden with the one in the style attribute! The generated
width is 32 pixels, if someone wonders.

This behavior came when we upgraded to GWT 2.3, with the 2.2 version
we had not problems at all.

What can I do to solve the problem?

Best regards,
Björn Wikström

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



Using custom LocalMessages apart from Locales

2011-05-30 Thread elbartus
Hi,

we're are having problems to customize the I18N functionality of GWT.

We are currently using a static property file to generate our interfaces we 
use in the code.

Apart from loading the default locales like *de* or *en* at runtime we 
are also looking for a way to load custom language files dependent of 
another property (e.g. called *dist*).

In detail:

In our .gwt.xml we have both properties defined like this:

extend-property values=de name=locale/
extend-property values=en name=locale/

define-property name=xvz.platform values=dist1,dist2,dist3/


We now want to have one language file which contains all generic properties, 
and for each distribution and language other language files which can 
contain special values.
All these interfaces should also be generated automatically with the maven 
gwt plugin i18nMessagesBundle.

We already tried to use a SpecialLocalMessage interface which extends all 
the special dist interfaces but we were not able to replace those in the 
gwt.xml via replace-with because there are classes but not interfaces 
required.

Do you see any solution for this problem?


Thanks for you help in advance and best regards,

Tim

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

2011-05-30 Thread purni iyer
hello,
I am trying to develop an application using GWT deployed on Google App
Engine and face following problems
1.I need to compile my code everytime I make any changes in my code to
run on the local host.Is there any solution regarding this.
2.I am using MVP pattern to design the apps.And I would like to get
the menu bar of my application on all the views .I can dothis using UI
binder but how do I handle the events is my query.
3.How to apply Havour CSS on my Menu Items.I tried to apply but it
does not get reflected.

Waiting for reply
Thank You
Purnima

-- 
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 installation on Linux Ubuntu

2011-05-30 Thread Mayank Jain


I am getting below mentioned errors while installing GWT plugin on my 
Linux box.


uname -a
Linux mayank-Inspiron-1525 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 
03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux


Eclipse IDE for Java Developers

Version: 1.3.2.20110218-0812
Build id: 20110218-0911

(c) Copyright Eclipse contributors and others 2000, 2011.  All rights 
reserved.

Visit http://www.eclipse.org/platform

This product includes software developed by the
Apache Software Foundation http://www.apache.org/

Cannot complete the install because one or more required items could not 
be found.


Software being installed: Google Web Toolkit SDK 2.3.0 
2.3.0.r36v201104261928 
(com.google.gwt.eclipse.sdkbundle.e36.feature.feature.group 
2.3.0.r36v201104261928)


Missing requirement: Google Web Toolkit Plugin 2.3.1.r36v201105092302 
(com.google.gwt.eclipse.core 2.3.1.r36v201105092302) requires 'bundle 
org.eclipse.pde.core 0.0.0' but it could not be found


Cannot satisfy dependency:

From: Google Web Toolkit SDK 2.3.0.r36v201104261928 
(com.google.gwt.eclipse.sdkbundle 2.3.0.r36v201104261928)


To: bundle com.google.gwt.eclipse.core 0.0.0

Cannot satisfy dependency:

From: Google Web Toolkit SDK 2.3.0 2.3.0.r36v201104261928 
(com.google.gwt.eclipse.sdkbundle.e36.feature.feature.group 
2.3.0.r36v201104261928)


To: com.google.gwt.eclipse.sdkbundle [2.3.0.r36v201104261928]

Any one encountered same error or having an idea how to fix this?

Regards,
Mayank Jain

--
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 servlet thread, timer,reload

2011-05-30 Thread ArnoNyhm
Hi,

my gwt servlet loads data from a database, handle it and store it in
an embedded apche derby database. what i want is, that this process is
repeated every 45min automatically.
i don´t know how to do this?

regards arno

-- 
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: Overriding a css style loclly

2011-05-30 Thread Qiang Ma
Why don't you create a different style and do a setStyle on this label?
.xxxLabel{
   blah.
}

uniqueLabel.setStyleName(xxxLabel);

This seems to fit your needs.



On Sun, May 29, 2011 at 9:11 PM, lalit lalit.bh...@gmail.com wrote:

 I have a lot of labels in my application.I have overriding the style
 as most of the place, I need the new style and it works fines. the
 overridden style is

 .gwt-Label {
font-size: 15px;
font-weight: bold;
color: #fff;
float: inherit;
 }

 However at one particular place I need the color of label to be black,
 so I was trying to override the style in that ui.xml locally like

 ui:style field='reportStyle'
  @external gwt-Label;
.gwt-Label{ color: #000; }
  /ui:style

 However this impacts the style of label at other places also. Is there
 a way to override the standard style in a ui.xm so that it impacts the
 widgets of only in that ui binder.

 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.



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



AutoBen in JRE JUnit tests

2011-05-30 Thread Jānis Ābele
Hi!
I am trying out testing views in JRE JUnit tests folowing 
http://arcbees.wordpress.com/2010/11/25/testing-views-using-gwt-platform-mockingbinder/
 article.
My view implements TakesValueMeetingEventProxy  and is something like 
this:


   1. public class EventView extends Composite implements
   2. TakesValueMeetingEventProxy, IsWidget {
   3. public interface Binder extends UiBinderWidget, EventView {
   4. }
   5.  
   6. private MeetingEventProxy meetingEvent;
   7.  
   8. @UiField
   9. Label date http://www.php.net/date;
   10. @UiField
   11. Label startTime;
   12.  
   13. @Inject
   14. public EventView(final Binder uiBinder) {
   15. initWidget(uiBinder.createAndBindUi(this));
   16. }
   17.  
   18. @Override
   19. public void setValue(MeetingEventProxy meetingEvent) {
   20. this.meetingEvent = meetingEvent;
   21.  
   22. date http://www.php.net/date.setText(renderValueOrBlank(
   meetingEvent.getDate http://www.php.net/getdate()));
   23. startTime.setText(renderValueOrBlank(meetingEvent.
   getStartTime()));
   24. }
   25.  
   26. private String renderValueOrBlank(Object value) {
   27. return value == null ?  : String.valueOf(value);
   28. }
   29.  
   30. @Override
   31. public MeetingEventProxy getValue() {
   32. return meetingEvent;
   33. }
   34. }
   
For example, I want to test if values set in view are formated correctly .


   1. @Test
   2. public void shouldShowEventDateInCorrectFormat(MeetingEventProxy 
   event) {
   3. given(event.getDate http://www.php.net/getdate()).willReturn
   (new DateTime(2011-05-15).toDate());
   4.  
   5. eventView.setValue(event);
   6.  
   7. verify(eventView.date http://www.php.net/date).setText(
   15.05.2011);
   8. }
   
  
For now I used mock of MeetingEventProxy ,  but value objects doesn't get 
mocked.
  
*Should I use AutoBeanFactoryMagic to setup fixture?*
*
*
AutoBeanMeetingEventProxy meetingEvent= AutoBeanFactoryMagic.createBean(
MeetingEventProxy.class, new Configuration.Builder().build());

*Should it be tested in some other place?  *

-- 
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: UiBinder Internationalization - Search/Find Non-Internationalized Strings?

2011-05-30 Thread spierce7
Thank you very much. I'll look into it.

On May 30, 4:05 am, Jānis Ābele janis.ab...@gmail.com wrote:
 Look athttp://code.google.com/p/gwt-platform/wiki/MergeLocale, it does what
 you want.

-- 
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 + GWT widget

2011-05-30 Thread Thomas Broyer
IMO, the closer to the use, the better (the come back of modular vs. 
monolithic ;-) ).

-- 
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: Big Daddy example problems

2011-05-30 Thread Zachariah Young
@bbgott

I'm getting the same issue also on Ubuntu.  The solutions work just fine on 
Windows.  Could it be that Ubuntu has the  port blocked or something?

Also what did u hard code to get the Android application to work.

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



Order of methods returned on JClassType.getMethods()

2011-05-30 Thread Magno Machado
Is JClassType.getMethods() guaranteed to return the methods on the same
order as they're declared on the source?

I've just made an experiment and it seems to obey this rule, but the
documentation says nothing about this

-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

-- 
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 servlet thread, timer,reload

2011-05-30 Thread Juan Pablo Gardella
See Quartz http://www.quartz-scheduler.org/

2011/5/30 ArnoNyhm etechniker@googlemail.com

 Hi,

 my gwt servlet loads data from a database, handle it and store it in
 an embedded apche derby database. what i want is, that this process is
 repeated every 45min automatically.
 i don´t know how to do this?

 regards arno

 --
 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: calling non-GWT RPC Server

2011-05-30 Thread Juan Pablo Gardella
See
http://code.google.com/intl/es-ES/webtoolkit/doc/latest/tutorial/clientserver.html

Then:

is it possible to have a GWT application make RPC calls to a RPC
server that has been developed independent from GWT?

Yes. If the application is in another server, see:
http://code.google.com/intl/es-ES/webtoolkit/doc/latest/tutorial/Xsite.html

http://code.google.com/intl/es-ES/webtoolkit/doc/latest/tutorial/Xsite.htmlIf
yes, can I still use GWT's RemoteService and RemoteServiceServlet
or do I have to implement RPC communication from scratch?

Yes. Modularize in jar the servlet and share in the war application.

Can I find an example somewhere, how to communicate between a GWT
client and a non-GWT RPC server?

Here Communicating with the server
http://code.google.com/intl/es-ES/webtoolkit/doc/latest/tutorial/clientserver.html

http://code.google.com/intl/es-ES/webtoolkit/doc/latest/tutorial/clientserver.html
Juan

2011/5/28 Georg Richwood georgrichw...@yahoo.com

 Hello,
 is it possible to have a GWT application make RPC calls to a RPC
 server that has been developed independent from GWT?

 If yes, can I still use GWT's RemoteService and RemoteServiceServlet
 or do I have to implement RPC communication from scratch?

 Can I find an example somewhere, how to communicate between a GWT
 client and a non-GWT RPC server?

 Thanks
 Georg

 --
 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: Open SVG file in another browser tab or save locally

2011-05-30 Thread Juan Pablo Gardella
See this thread http://tinyurl.com/4hx7gd3, perhaps is util to you.

Juan

2011/5/29 Lars Ruoff lars.ru...@gmail.com

 Hi,
 I'm new to GWT development.
 I have coded a small flag generator application, which can be seen
 here in its early stage: http://flag-designer.appspot.com/
 It makes use of inline-SVG, a feature that is not readily supported by
 many browsers at this time. (see http://caniuse.com/svg-html5)

 I'd like to introduce a link on the page that would allow to download
 the .svg file locally. (Or open it in a seperate browser window/tab
 for that matter).
 That svg content is available in the client in form of a Java String.
 How would i go to create a link that allows the user to open it in
 another browser tab or save the file?

 Are there other ideas to handle SVG images?

 thanks,
 Lars R.

 --
 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: Using custom LocalMessages apart from Locales

2011-05-30 Thread Juan Pablo Gardella
Perhaps with maven
filtershttp://maven.apache.org/guides/getting-started/index.html#How_do_I_filter_resource_files.
You can replace properties in process-resources before compilation.

Do you need at runtime?

2011/5/30 elbartus xelbart...@googlemail.com

 Hi,

 we're are having problems to customize the I18N functionality of GWT.

 We are currently using a static property file to generate our interfaces we
 use in the code.

 Apart from loading the default locales like *de* or *en* at runtime we
 are also looking for a way to load custom language files dependent of
 another property (e.g. called *dist*).

 In detail:

 In our .gwt.xml we have both properties defined like this:

 extend-property values=de name=locale/
 extend-property values=en name=locale/

 define-property name=xvz.platform values=dist1,dist2,dist3/


 We now want to have one language file which contains all generic
 properties, and for each distribution and language other language files
 which can contain special values.
 All these interfaces should also be generated automatically with the maven
 gwt plugin i18nMessagesBundle.

 We already tried to use a SpecialLocalMessage interface which extends all
 the special dist interfaces but we were not able to replace those in the
 gwt.xml via replace-with because there are classes but not interfaces
 required.

 Do you see any solution for this problem?


 Thanks for you help in advance and best regards,

 Tim

  --
 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: how do i add a tooltip to a column header in a celltable ?

2011-05-30 Thread Juan Pablo Gardella
You must do a event handler (overwrite onBrowserEvent2), CellTable in gwt
2.3.0 doesn't support events. See this example:

@Override
protected void onBrowserEvent2(Event event) {
super.onBrowserEvent2(event);

String eventType = event.getType();
boolean isMouseover = mouseover.equals(eventType);
boolean isMouseout = mouseout.equals(eventType);

// Get the event target.
EventTarget eventTarget = event.getEventTarget();
if (!Element.is(eventTarget)) {
return;
}
final Element target = event.getEventTarget().cast();


You can overwrite this method and can open a tooltip.



2011/5/30 Celinio cel...@gmail.com

 hello,
 i just have a simple question :
 how do i add a tooltip to a column header in a celltable ?

 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.


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

2011-05-30 Thread Juan Pablo Gardella
Hi,

1.I need to compile my code everytime I make any changes in my code to
run on the local host.Is there any solution regarding this.

mm I don't use GAE.

2.I am using MVP pattern to design the apps.And I would like to get
the menu bar of my application on all the views .I can dothis using UI
binder but how do I handle the events is my query.

See this samplehttps://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home.
It has a menu on top of all views and use MVP. The menu is define in an xml
and complete at runtime.

3.How to apply Havour CSS on my Menu Items.I tried to apply but it
does not get reflected.

See this thread http://tinyurl.com/3vj6rxo, it help you I think.

Juan


2011/5/30 purni iyer purni.i...@gmail.com

 hello,
 I am trying to develop an application using GWT deployed on Google App
 Engine and face following problems
 1.I need to compile my code everytime I make any changes in my code to
 run on the local host.Is there any solution regarding this.
 2.I am using MVP pattern to design the apps.And I would like to get
 the menu bar of my application on all the views .I can dothis using UI
 binder but how do I handle the events is my query.
 3.How to apply Havour CSS on my Menu Items.I tried to apply but it
 does not get reflected.

 Waiting for reply
 Thank You
 Purnima

 --
 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: SuggestionBox events

2011-05-30 Thread jhulford
You can add a setter method in your request oracle to set it, write a
wrapper for your own suggest box class, etc... There's any number of
valid ways.

On May 28, 1:51 pm, Ilya Ilievski ilija...@gmail.com wrote:
 Actually I already have defined custom SuggestOracle, but how can I access
 the suggestionBox in the requestSuggestions method so I can change it's
 background to show the gif?I don't know how to hide the loading gif in the
 callback either. Can you please explain a little more to me?

-- 
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 native DnD Code

2011-05-30 Thread Navindian
I know there are multiple libraries from smartgwt, extgwt and julien
libraries to do list shuffle as attached.
But i wish to use native swing GWT to develop list shuffle and to handle
events.

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

attachment: ListShuttle.jpg

Re: GWT 2.3 composite editor // setValue called twice

2011-05-30 Thread Patrick Tucker
I didn't look at the code, so this may not be feasible, but shouldn't
you be doing this heavy stuff only when the value changes?  It's
pretty easy to check the current vale prior to doing any work, or
implement via handling valuechangeevents.

On May 27, 8:27 am, Sebastian Beigel sebast...@beigel.de wrote:
 Hi,

 unfortunately there seems to be no love for the issue I reported a
 while ago concerning the revamped editor code (starting w/ GWT 2.3)
 using Refresher  Initializer.

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

 Sub-editors' setValue() methods get called twice, which can be a very
 bad thing if you do something fancy/heavy in you setValue() method.
 But even for non-visible use-cases (like my trivial example w/
 TextBoxes) it's unnecessary and a can harm performance.

 Sebastian

-- 
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 OAuth libraries

2011-05-30 Thread othman
hello,
in gwt-oauth2 examples
https://code.google.com/p/gwt-oauth2/source/browse/trunk/samples/multi/com/google/api/gwt/oauth2/samples/multi/client/OAuth2SampleEntryPoint.java
they use only tow params wich are X_AUTH_URL and X_CLIENT_ID . for
twitter where can i get the twitter_Client_id?
thanks

On May 29, 11:33 pm, othman othmanelmou...@gmail.com wrote:
 i didn't meant to underestimate gwt-oauth2 project. i just want to
 understand the difference between it and signpost library. signpost
 seems more complex and involves signing the requests ect..But i'll
 give gwt-oauth2 a try ...

-- 
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 do i add a tooltip to a column header in a celltable ?

2011-05-30 Thread Celinio
thanks for your answer.
I had already explored that onBrowserEvent(...) possibility.

Where do i add that OnBrowserEvent(...) method to exactly ?

On Tue, May 31, 2011 at 2:31 AM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 You must do a event handler (overwrite onBrowserEvent2), CellTable in gwt
 2.3.0 doesn't support events. See this example:

 @Override
 protected void onBrowserEvent2(Event event) {
  super.onBrowserEvent2(event);

 String eventType = event.getType();
  boolean isMouseover = mouseover.equals(eventType);
 boolean isMouseout = mouseout.equals(eventType);

 // Get the event target.
 EventTarget eventTarget = event.getEventTarget();
  if (!Element.is(eventTarget)) {
 return;
 }
  final Element target = event.getEventTarget().cast();


 You can overwrite this method and can open a tooltip.



 2011/5/30 Celinio cel...@gmail.com

  hello,
 i just have a simple question :
 how do i add a tooltip to a column header in a celltable ?

 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.


  --
 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: Overriding a css style loclly

2011-05-30 Thread lalit
That's what I am thinking of now. However I think it would be great,
if we can have a feature in GWT where we can override the style which
are applicable in a certain context only let's say in the context of a
ui.xml file. That way the styling would become a lot flexible. I think
it should be possible also as it can be handled by the gwt compiler
while generating the js/html.

On May 31, 12:35 am, Qiang Ma mumay...@gmail.com wrote:
 Why don't you create a different style and do a setStyle on this label?
 .xxxLabel{
    blah.

 }

 uniqueLabel.setStyleName(xxxLabel);

 This seems to fit your needs.

 On Sun, May 29, 2011 at 9:11 PM, lalit lalit.bh...@gmail.com wrote:
  I have a lot of labels in my application.I have overriding the style
  as most of the place, I need the new style and it works fines. the
  overridden style is

  .gwt-Label {
     font-size: 15px;
     font-weight: bold;
     color: #fff;
     float: inherit;
  }

  However at one particular place I need the color of label to be black,
  so I was trying to override the style in that ui.xml locally like

          ui:style field='reportStyle'
           @external gwt-Label;
     .gwt-Label{ color: #000; }
   /ui:style

  However this impacts the style of label at other places also. Is there
  a way to override the standard style in a ui.xm so that it impacts the
  widgets of only in that ui binder.

  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.

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



Print contents of RichTextArea

2011-05-30 Thread Ash
I am able to print contents of a TextArea to a file by doing this
dom.getElementsByTagName(textarea);

but don't seem to find a way to do the same for RichTextArea. Does
anyone has an idea how to do this?

On the other hand is there a good solution to printing a page that is
designed using gwt?

Thanks,
Ash

-- 
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 2.4.0.beta in hosted MVN repo?

2011-05-30 Thread Jason Thrasher
Hi Folks,
Is GWT still being pushed to maven repositories anywhere, as it had
been last fall?
http://googlewebtoolkit.blogspot.com/2010/08/updated-maven-strategy-for-gwt.html

I'm looking to use some features from the 2.4.0.beta, but am pretty
lazy and trying to avoid pushing everything to my own repo, as
required prior to Aug/2010.

thanks,
Jason

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



Jexl or equivalent for GWT???

2011-05-30 Thread -sowdri-
Can someone suggest using JEXL or similar library on client side??

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.



Re: gwt servlet thread, timer,reload

2011-05-30 Thread J.Ganesan
Since the servlet runs under J2SE, you can go for java.util.Timer  and
java.util.TimerTask.

J.Ganesan
www.DataStoreGwt.com


On May 31, 5:08 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 See Quartz http://www.quartz-scheduler.org/

 2011/5/30 ArnoNyhm etechniker@googlemail.com







  Hi,

  my gwt servlet loads data from a database, handle it and store it in
  an embedded apche derby database. what i want is, that this process is
  repeated every 45min automatically.
  i don´t know how to do this?

  regards arno

  --
  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: calling non-GWT RPC Server

2011-05-30 Thread J.Ganesan


On May 29, 12:17 am, Georg Richwood georgrichw...@yahoo.com wrote:
 Hello,
 is it possible to have a GWT application make RPC calls to a RPC
 server that has been developed independent from GWT?

 If yes, can I still use GWT's RemoteService and RemoteServiceServlet
 or do I have to implement RPC communication from scratch?



 Can I find an example somewhere, how to communicate between a GWT
 client and a non-GWT RPC server?

---
Use websockets. There can be two way exchange of binary data.
Specifically, object graphs can be exchanged. TO my knowledge,
Chrome,Firefox,IE, Opera, Opera mobile support web sockets.

J.Ganesan
---

 Thanks
 Georg

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