Re: Servlets 3.0 and GWT

2009-09-09 Thread Ittai

Wow, simple and elegant.
Thank you very much!
This indeed looks like what I was looking for

On Sep 10, 3:38 am, Sri  wrote:
> You can use the RequestBuilder class in GWT to make connections to
> your server.
>
> Below is the sample code that you can use (from
> com.google.gwt.examples.http.client.GetExample )
>
>   public static void doGet(String url) {
>     RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
> url);
>
>     try {
>       Request response = builder.sendRequest(null, new RequestCallback
> () {
>         public void onError(Request request, Throwable exception) {
>           // Code omitted for clarity
>         }
>
>         public void onResponseReceived(Request request, Response
> response) {
>           // Code omitted for clarity
>         }
>       });
>     } catch (RequestException e) {
>       // Code omitted for clarity
>     }
>   }
>
> POST is identical, except for the following lines --
> builder.setHeader("Content-Type", "application/x-www-form-
> urlencoded");
> Request response = builder.sendRequest(postData, new RequestCallback()
> {
>
> --sri
>
> On Sep 9, 5:47 am, Ittai  wrote:
>
>
>
> > Hi All,
> > I'm stepping into the world of AJAX and due to a need I have in strong
> > built-in "Server Push" technologies I'm giving the Servlets 3.0 (under
> > Java EE 6 preview) a try.
> > I'm posting here because my client side will (hopefully) be based on
> > GWT and after going over the StockWatcher tutorial and reading a bit
> > about the Server-Client relationship I'm not sure what path I can
> > take.
> > I'm pretty sure I can't use the GWT-RPC mode because the
> > RemoteServiceServlet class extends the previous HttpServlet which
> > isn't helpfull for me.
> > So basically what I'm asking is, if I have a servlet built on my
> > server (Glassfish V3 preview) which is called with a
> > HttpServletRequest and returns HttpServletResponse (of course while
> > utilizing Asynchronous support of Servlets 3.0)
> > how should I go about Implementing the handle to the call of my
> > servlet and the receiving of the response in the GWT side?
> > I have a feeling this is a very basic question but the whole AJAX
> > thinking is very new to me.
>
> > Thanks for reading so far,
> > Ittai
--~--~-~--~~~---~--~~
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: CSS Theme File - Disabled

2009-09-09 Thread josivan

tks... :)
other framework have enabled this feature :)

j.

On 7 set, 06:21, Thomas Broyer  wrote:
> On 7 sep, 02:40, josivan  wrote:
>
> > Hi, my application has currently many files for CSS oftheme.
> > My doubt! Is possible disabledtheme(css) file generation?
> > I need only my css file, where I'm setting css rules (gwt-*)
> > inclusive.
>
> Just remove any  line
> from your gwt.xml file(s)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is it possible to develop desktop applications using GWT?

2009-09-09 Thread Joe Cole

I would look into titanium/air - both of which can work with gwt.

On Sep 10, 6:13 am, Ian Bambury  wrote:
> Hi kolombo1,
> Yes it is.
>
> GWT is very capable of producing desktop apps, either with data held
> centrally somewhere or alternatively by using Gears, or (best of both
> worlds) a combination of both so you a) can use it off-line and b) have an
> on-line backup or c) do all of that and have a central repository.
>
> Another option is to run a light-weight web server on the local machine or a
> LAN server.
>
> But GWT is not really there to provide an alternative to traditional desktop
> apps - there are enough options there already - it's aimed at (groan)
> 'cloud' computing i.e. something stuck on a server that you can access from
> anywhere (with a connection) and which gives you the latest version of the
> software every time you go there (no downgrading allowed - it's the
> future, whether you want it of not).
>
> Ian
>
> http://examples.roughian.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Null pointer in generated createStreamWriter method

2009-09-09 Thread Joe Cole

If you can reproduce this consistently it may be a compiler bug. It
sounds as though the code is getting optimised out.
GWT Team - is there a way to debug this situation with SOYC?

On Sep 10, 6:39 am, Jennifer Vendetti 
wrote:
> Thanks for your reply Joe.  I found a solution, although I'm not sure
> why the change I made fixes the problem.
>
> I read Robert Hanson's GWT In Action book and followed the
> recommendation in Chapter 11 about using the Facade pattern to
> simplify working with RPC.  A pared down example from our code base
> is:
>
> // ChAOService.java
> @RemoteServiceRelativePath("chao")
> public interface ChAOService extends RemoteService {
>     public List getNotes(String projectName, String
> entityName, boolean topLevel);
>
> }
>
> // ChAOServiceAsync.java
> public interface ChAOServiceAsync {
>     void getNotes(String projectName, String entityName, boolean
> topLevel, AsyncCallback> cb);
>
> }
>
> // ChAOServiceManager.java
> public class ChAOServiceManager {
>
>     private static ChAOServiceAsync proxy;
>     private static ChAOServiceManager instance;
>
>     private ChAOServiceManager() {
>         proxy = (ChAOServiceAsync) GWT.create(ChAOService.class);
>     }
>
>     public static ChAOServiceManager getInstance() {
>         if (instance == null) {
>             instance = new ChAOServiceManager();
>         }
>         return instance;
>     }
>
>     public void getNotes(String projectName, String entityName,
> boolean topLevel, AsyncCallback> cb) {
>         proxy.getNotes(projectName, entityName, topLevel, cb);
>     }
>
> }
>
> In my client code, if I separate my calls into two lines like this:
>
> ChAOServiceManager chaoServiceManager = ChAOServiceManager.getInstance
> ();
> chaoServiceManager.getNotes(...);
>
> ... my app works.  But, if I use one line of Java code like this:
>
> ChAOServiceManager.getInstance().getNotes(...);
>
> ... my app fails with the exception I reported yesterday.
>
> Kind of confused by this, but glad my app is working now.
>
> Thanks,
> Jennifer
>
> On Sep 9, 8:55 am, Joe Cole  wrote:
>
> > I remember something like this happening once on 1.5.
> > From memory (I couldn't find it in our tracker) it was to do with not
> > implementing RemoteService or something similar to that like not
> > implementing Serializable.
> > This may be completely wrong as it was about 1000 tickets ago :) - but
> > is worth a shot.
>
> > On Sep 9, 12:14 pm, Jennifer Vendetti 
> > wrote:
>
> > > Hi,
>
> > > I'm developing with GWT (version 1.7.0) and having trouble figuring
> > > out the source of a runtime exception.  My application compiles, runs,
> > > and behaves as expected in hosted mode (on both Windows and Linux).
> > > In browser mode (also on Windows and Linux), I get a runtime
> > > exception:
>
> > > 'com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_s...' is null
> > > or not an object
>
> > > The generated javascript where the exception occurs is:
>
> > > function com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_
> > > $createStreamWriter__Lcom_google_gwt_user_client_rpc_impl_RemoteServiceProx
> > >  y_2
> > > (this$static){
> > >   var clientSerializationStreamWriter;
> > >   clientSerializationStreamWriter =
> > > com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_
> > > $ClientSerializationStreamWriter__Lcom_google_gwt_user_client_rpc_impl_Clie
> > >  
> > > ntSerializationStreamWriter_2Lcom_google_gwt_user_client_rpc_impl_Serialize
> > >  r_2Ljava_lang_String_2Ljava_lang_String_2
> > > (new
> > > com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter(),
> > > this
> > > $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_serializer,
> > > this
> > > $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_moduleBaseUR
> > >  L,
> > > this
> > > $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_serializatio
> > >  nPolicyName);
>
> > > clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_Abstrac
> > >  tSerializationStreamWriter_objectCount
> > > = 0;
> > >   java_util_AbstractHashMap_$clearImpl__Ljava_util_AbstractHashMap_2
> > > (clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_Abstra
> > >  ctSerializationStreamWriter_objectMap);
>
> > > clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_Abstrac
> > >  tSerializationStreamWriter_stringMap.clear__
> > > ();
> > >   java_util_ArrayList_$clear__Ljava_util_ArrayList_2
> > > (clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_Abstra
> > >  ctSerializationStreamWriter_stringTable);
>
> > > clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_ClientS
> > >  erializationStreamWriter_encodeBuffer
> > > = java_lang_StringBuffer_$StringBuffer__Ljava_lang_StringBuffer_2(new
> > > java_lang_StringBuffer());
>
> > > com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_
> > > $writeString__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializatio

Re: What permutations get compiled ?

2009-09-09 Thread Sri

Typically, supported browsers and supported languages generate the
most permutations.

If you want to reduce the number of parameters, you can paste this
line in your *.gwt.xml

  
  

Similarly, if you have any localization support, disable it during
development.

Based on the above two properties, we were able to reduce number of
permutations from 12 to 1 (6 browsers X 2 languages). But the time
saved wasn't all that much, certainly not 1/12th.

On Sep 9, 8:24 am, nicolas de loof  wrote:
> Hi
> I'm trying to reduce my build time by setting appropriate properties.
> Reducing number of permutation seems to be the simpliest way to reduce the
> gwt-complation time.
>
> Anyway I get some strange result as number of permutation proceed, and would
> like to trace what property combination was used for them. Is there any way
> to enable such logging on gwt compiler ?
>
> Thansk,
> Nicolas
--~--~-~--~~~---~--~~
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: Servlets 3.0 and GWT

2009-09-09 Thread Sri

You can use the RequestBuilder class in GWT to make connections to
your server.

Below is the sample code that you can use (from
com.google.gwt.examples.http.client.GetExample )

  public static void doGet(String url) {
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
url);

try {
  Request response = builder.sendRequest(null, new RequestCallback
() {
public void onError(Request request, Throwable exception) {
  // Code omitted for clarity
}

public void onResponseReceived(Request request, Response
response) {
  // Code omitted for clarity
}
  });
} catch (RequestException e) {
  // Code omitted for clarity
}
  }

POST is identical, except for the following lines --
builder.setHeader("Content-Type", "application/x-www-form-
urlencoded");
Request response = builder.sendRequest(postData, new RequestCallback()
{

--sri

On Sep 9, 5:47 am, Ittai  wrote:
> Hi All,
> I'm stepping into the world of AJAX and due to a need I have in strong
> built-in "Server Push" technologies I'm giving the Servlets 3.0 (under
> Java EE 6 preview) a try.
> I'm posting here because my client side will (hopefully) be based on
> GWT and after going over the StockWatcher tutorial and reading a bit
> about the Server-Client relationship I'm not sure what path I can
> take.
> I'm pretty sure I can't use the GWT-RPC mode because the
> RemoteServiceServlet class extends the previous HttpServlet which
> isn't helpfull for me.
> So basically what I'm asking is, if I have a servlet built on my
> server (Glassfish V3 preview) which is called with a
> HttpServletRequest and returns HttpServletResponse (of course while
> utilizing Asynchronous support of Servlets 3.0)
> how should I go about Implementing the handle to the call of my
> servlet and the receiving of the response in the GWT side?
> I have a feeling this is a very basic question but the whole AJAX
> thinking is very new to me.
>
> Thanks for reading so far,
> Ittai
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



EasyMock and MVP architecture testing

2009-09-09 Thread Ben

Hi, I am using MVP architecture for my application, but I am trying to
use EasyMock to provide mock objects to test all my presenters. I have
a question about testing event handlers from GWT such as ClickHandler.
Does anyone try to use EasyMock to test click event? Or I should write
my own mock event and mock handler like it is mentioned in GWT blog.

Thanks,
Ben
--~--~-~--~~~---~--~~
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: Web Application in Regional Language

2009-09-09 Thread Tamás Gömbös
Hi Sundar,

You develop a web app in your own language in the same way as do it in
another language. You just translate its content to your language, that's
all.

If you are completely new to computer programming then maybe developing a
web application using GWT is not the best point to start. There are plenty
of tutorials for beginners on the internet about Java and about
object-oriented programming in general. Search for them is the best thing to
do in this case, I think.

If you are only new to GWT, I recommend to read the tutorial and create your
own StockWatcher application. There's a chapter about internationalization
too: http://code.google.com/intl/hu-HU/webtoolkit/tutorials/1.6/i18n.html

Best regards,
Tamás

2009/9/9 Sundar 

>
> How to develope web apps in regional language with use of google
> code ?
>
> I am new to computer programming. I am interested to making web
> applications in tamil language. I am choosing the google code as
> resource. Any one help to me how develop it... It may help to others
> who want develop web apps for his human language...
>
> I hope very much about i am getting all answers..
>
> 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
-~--~~~~--~~--~--~---



access to domain external feeds

2009-09-09 Thread dao

hello,

A very easy question for you web policy expert guys:

I want to make an application that uses data from an external URL. It
is an atom feed (could be an RSS one) from flickr. I just want to
fetch some photos from my flickr account. The typical URL is

feed://api.flickr.com/services/feeds/photos_public.gne?
id=28208...@n00

you can see that it is an different origin URL, so it is not applyable
with GWT requestbuilder, isn't it (see
http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/FAQ_SOP)

Therefore, what's the best practice to use those data in my GWT app? I
did not catch if there is a workaround, if I have to use GWT an other
way?

I have nevertheless tried the request buider with this URL. I was
surprised of the behaviour:

response.getStatusCode() is 0 (why 0?, not an HTTP valid code, isn't
it?
response.getStatusText() is empty.
response.getText() is empty.

what does it mean? please give me a clue !!!

below the piece of code I wrote:


public FlickrFeedAnalyser(final String url, final
FlexTableFillerCallback callback) {
photos = new ArrayList();
RequestBuilder builder = new RequestBuilder
(RequestBuilder.GET,
url);
System.out.println(url);
try {
Request response = builder.sendRequest(null,
new RequestCallback()
{
public void onError(Request request,
Throwable exception) {
System.out.println
(exception);
}
public void onResponseReceived(Request
request,
Response response) {
Document feed = XMLParser.parse
(response.getText());
if (response.getText().length()
<10) {
DialogBox error = new
DialogBox();
error.setText
("code:"+response.getStatusCode()+" -
msg"+response.getStatusText());
error.show();
}
NodeList entries =
feed.getElementsByTagName("entry");
if (entries.getLength()==0)
System.out.println
(feed);
for (int i = 0; i <
entries.getLength(); i++) {
photos.add(new Photo
(entries.item(i)));
}
callback.callback(photos);
}
});
} catch (RequestException e) {
System.out.println(e);
}
}

--~--~-~--~~~---~--~~
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: Parsing ATOM feeds in GWT

2009-09-09 Thread Sumit Chandel
Hi Vincenzo,
While there is no specific GWT library for processing Atom XML feeds, the
gwt-feed-reader project, originally created to demonstrate how to write GWT
applications that target mobile browsers, makes use of the Google AJAX Feed
API which allows you to easily fetch and process Atom feeds. It should
provide a useful example for your own project.

gwt-feed-reader:
http://code.google.com/p/gwt-feed-reader/

Hope that helps,
-Sumit Chandel

On Mon, Sep 7, 2009 at 8:39 AM, Vincenzo Vitale
wrote:

> Hi,
> is there any GWT library for ATOM XML feeds?
>
>
> Thanks in advance,
> Vincenzo.
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Importing a new .jar file

2009-09-09 Thread Sumit Chandel
Hi Hunter,
You're likely running into more than one problem here.

Firstly, when looking to reuse external libraries in your GWT project, you
must make sure that the library is cross-compilable to JavaScript and is
supported by the GWT Emulated JRE, or ensure that the library is only
intended to be used in server-side code.

The library that you're using here is likely not translatable source code,
and so you will need to look at keeping and using that code uniquely on the
server-side. If the code you're reusing is actually cross-compilable, then
you can reuse it by both adding the JAR to your project classpath and
inheriting the module in your own GWT module, via the  tag (see
GWT module documentation linked below).

If you are only using the library on the server-side and you're using the
embedded Jetty server in hosted mode, you may need to add the JXL jar to the
hosted mode launch configuration.

GWT module inheritance:
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideInheritingModules

Hope that helps,
-Sumit Chandel

On Mon, Sep 7, 2009 at 1:01 AM, hunter  wrote:

>
> Hi...
>  I am using gwt and eclipse to build my application.In that I
> need to use jxl.jar files to access the data that is present in a
> microsoft excel sheet.
>  My question is : Is it enough if we just add the .jar by right
> click->build path->configure build path->libraries->add external jars.
> or do we need to manipulate any other thing.
>  The problem what I am facing is : I have tried to add the jar
> file as mentioned above and written the code,it is executing but when
> i open the developed application in the google web tool kit browser it
> is throwing an error "import jxl cannot be resolved"..
>
>
> >
>

--~--~-~--~~~---~--~~
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 in a "cross site scripting mandatory" environnement

2009-09-09 Thread Isaac Truett

Hello,

I believe the XS linker is what you need. See link below.

http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html

- Isaac


On Wed, Sep 9, 2009 at 5:36 AM, PFP77 wrote:
>
>       Hi,
>
> I am developing applications in a corporate environnement where all
> web applications are hosted (in an iframe) in another web application
> that manages sessions and the launch of all other applications. To do
> that (and use js methods exposed by the main app), every application
> must must lower the document.domain to the last 2 elements (eg
> myapp.example.com -> example.com).
>
> This seems to break the "nested iframe" GWT is creating. (Javascript
> permission refused on $wnd.document)
>
> Is there a nice way to make it work (aside from adding the adequate
> 

Re: Aborting a server request

2009-09-09 Thread jay

In your async interface, rather than declaring the method to return
void, have it return a Request. You can then use the Request::cancel()
method.

jay

On Sep 9, 1:10 pm, Simal  wrote:
> Sorry I didn't mention that.. I'm using GWT-RPC.
>
> - Simal
>
> On Sep 9, 4:09 pm, Ian Petersen  wrote:
>
>
>
> > On Wed, Sep 9, 2009 at 1:01 PM, Simal  wrote:
> > > I was wondering if there is a way to cancel an ongoing server request
> > > (from client side) and if we get handles to our server requests at
> > > all..
>
> > Yes.  Are you talking GWT-RPC or hand-rolled requests?
>
> > Ian
--~--~-~--~~~---~--~~
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: Newbie to GWT 1.7 - again

2009-09-09 Thread Christian Goudreau
Here's some piece of advice.

First, If you're using the default GWT-RPC pattern, wich use the same object
type on the client side and on the server side. I think it's normal that it
doesn't work, since you're using two different object to represent the same
thing.

Second, I'll tell you what I'm using. GWT-Dispatch ! Simple implementation
of command pattern, it'll help you acheive what your searching. Personnaly,
I use the same object, but at some point with that implementation you can
control and do some "customisation" to what you want to send !

Little and simple exemple for updating a list of province :

public class UpdateProvinceHandler implements ActionHandler {
private Boolean result;

public Class getActionType() {
return UpdateProvince.class;
}

public UpdateProvinceResult execute(UpdateProvince action,
ExecutionContext context) throws ActionException {
ApapulTransaction.INSTANCE.open();

result =
ApapulTransaction.INSTANCE.updateProvince(action.getProvince());

ApapulTransaction.INSTANCE.close();

return new UpdateProvinceResult(result);
}

public void rollback(UpdateProvince action, UpdateProvinceResult result,
ExecutionContext context) throws ActionException {
}
}

This class is a servlet handled by Guice. Here's my guice config file :

public class ServerModule extends ActionHandlerModule {

@Override
protected void configureHandlers() {
bindHandler(GetProvincesHandler.class);
bindHandler(InsertProvinceHandler.class);
bindHandler(RemoveProvinceHandler.class);
bindHandler(UpdateProvinceHandler.class);

bind(Log.class).toProvider(LogProvider.class).in(Singleton.class);
}
}

There's also other files, but I let you read the quick start guide of the
Gwt-Dispatch project. The only thing you have to know is that when you
execute this, you will be able to transform you data from the server, to a
form that the client understand !

ApapulTransaction.INSTANCE.open();

result =
ApapulTransaction.INSTANCE.updateProvince(action.getProvince());

ApapulTransaction.INSTANCE.close();

return new UpdateProvinceResult(result);

this return a simple boolean saying Hey, Operation succeed ! Result could
have been a DTO object too, it's only a matter of use case. Oh, It Must send
back something that the client will understand, so DAO object isn't right,
do the conversion before sending that back.

Hope it'll help you, I know my server sice need a little bit of best
practice advice, but I'm starting to get a grip of all the best pratice to
do in client side ! There's four things you should get : Gin, Guice,
gwt-presenter and gwt-dispatch !

Regards

Christian

On Wed, Sep 9, 2009 at 4:07 PM, Thomas Holmes wrote:

>
> Well ... there is another thread with this message/issue, but I can
> tell you exactly what I need.
>
> So, I've got a working Spring 2.5.6 application, we use an
> applicationContext.xml file.
> We have working and unit tested Hibernate POJO's with Annotations, and
> we have DAO's ... all defined in the Spring applicationContext.xml
> file.
> There is NO hibernate.cfg.xml file and there are NO ObjectType.hbm.xml
> files .. unfortunately a lot of samples use these.
>
> So, in testing out StockWatcher, I created a new GWT-RPC Service which
> returns one of my database objects.
> I used a Hibernate POJO and made sure that it returned all the
> serializable types, and that works great in my Service.
> I guess I need to create a new POJO that is a DTO. This new DTO object
> will look like the Hibernate POJO, but will also implement
> "isSerializable"
> Or maybe both:
>
> @Entity(name = "database_tablename")
> public class TestDataPOJO implements Serializable,IsSerializable
>
> somewhere in the TestServiceImpl (under /server) we need to call the
> database, get the data, move that to the new DTO, and that should be
> what I want.
> Likewise, I should have a method in the service that takes my modified
> data (in this DTO object), and then somehow call the DAO to put the
> data into the database.
>
> So ... the key for me ... is how do I get my GWT-RPC service, somehow,
> someway to use my already unit tested DAO's
>
> Once, I can bridge that, I think I will be ok ...
>
> Thanks so much for the help!
> Tom
>
> On Sep 9, 3:16 pm, Sumit Chandel  wrote:
> > Hi Thomas,
> > Indeed the StockWatcher tutorial includes a section on using GWT RPC
> which
> > should help as an example in your case. The webAppCreator also generates
> a
> > starter sample application that includes a GWT RPC component as well, so
> you
> > may want to use that as a reference.
> >
> > For more specific help on using RPC for your applicaiton, it might help
> to
> > know a bit more about the types that you want to send over the wire. If
> > you're using DTOs across the wire, keeping track of objects updated on
> the
> > client and

Re: Aborting a server request

2009-09-09 Thread Simal

Sorry I didn't mention that.. I'm using GWT-RPC.

- Simal

On Sep 9, 4:09 pm, Ian Petersen  wrote:
> On Wed, Sep 9, 2009 at 1:01 PM, Simal  wrote:
> > I was wondering if there is a way to cancel an ongoing server request
> > (from client side) and if we get handles to our server requests at
> > all..
>
> Yes.  Are you talking GWT-RPC or hand-rolled requests?
>
> Ian
--~--~-~--~~~---~--~~
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: Aborting a server request

2009-09-09 Thread Ian Petersen

On Wed, Sep 9, 2009 at 1:01 PM, Simal  wrote:
> I was wondering if there is a way to cancel an ongoing server request
> (from client side) and if we get handles to our server requests at
> all..

Yes.  Are you talking GWT-RPC or hand-rolled requests?

Ian

--~--~-~--~~~---~--~~
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: Newbie to GWT 1.7 - again

2009-09-09 Thread Thomas Holmes

Well ... there is another thread with this message/issue, but I can
tell you exactly what I need.

So, I've got a working Spring 2.5.6 application, we use an
applicationContext.xml file.
We have working and unit tested Hibernate POJO's with Annotations, and
we have DAO's ... all defined in the Spring applicationContext.xml
file.
There is NO hibernate.cfg.xml file and there are NO ObjectType.hbm.xml
files .. unfortunately a lot of samples use these.

So, in testing out StockWatcher, I created a new GWT-RPC Service which
returns one of my database objects.
I used a Hibernate POJO and made sure that it returned all the
serializable types, and that works great in my Service.
I guess I need to create a new POJO that is a DTO. This new DTO object
will look like the Hibernate POJO, but will also implement
"isSerializable"
Or maybe both:

@Entity(name = "database_tablename")
public class TestDataPOJO implements Serializable,IsSerializable

somewhere in the TestServiceImpl (under /server) we need to call the
database, get the data, move that to the new DTO, and that should be
what I want.
Likewise, I should have a method in the service that takes my modified
data (in this DTO object), and then somehow call the DAO to put the
data into the database.

So ... the key for me ... is how do I get my GWT-RPC service, somehow,
someway to use my already unit tested DAO's

Once, I can bridge that, I think I will be ok ...

Thanks so much for the help!
 Tom

On Sep 9, 3:16 pm, Sumit Chandel  wrote:
> Hi Thomas,
> Indeed the StockWatcher tutorial includes a section on using GWT RPC which
> should help as an example in your case. The webAppCreator also generates a
> starter sample application that includes a GWT RPC component as well, so you
> may want to use that as a reference.
>
> For more specific help on using RPC for your applicaiton, it might help to
> know a bit more about the types that you want to send over the wire. If
> you're using DTOs across the wire, keeping track of objects updated on the
> client and persisting the changes to the server could be a matter of
> introducing (somewhat smelly) boolean control, a client-side register, or
> something else. A good solution depends on the type of information you want
> to send across.
>
> Hope that helps,
> -Sumit Chandel
>
> On Sun, Sep 6, 2009 at 2:03 PM, Jim Douglas  wrote:
>
> > Hi Thomas,
>
> > The tutorials are very helpful; I worked through implementing the
> > StockWatcher sample to get my head around GWT concepts (including
> > RPC):
>
> >http://code.google.com/webtoolkit/tutorials/1.6/index.html
>
> > On Sep 6, 1:50 pm, Thomas Holmes  wrote:
> > > I posted this before, and I was waiting for the moderators to put this
> > > online.
> > > I am desperate, and need a working GWT-RPC working ASAP.    I've got 6
> > > new books on GWT and some refer to older 1.5 versions and not the new
> > > versions.
>
> > > We have Spring 2.5.6, some MVC, using Spring Beans, and Hibernate
> > > POJO's with Annotations.
> > > There is NO hibernate.cfg.xml and there are NO Object.hbm.xml files,
> > > but we do have working DAO's which work great.
>
> > > Now ... I want to be able to take a Master/Detail (or Parent Child/
> > > Record), bring it to the front-end, edit the data and push it back.
> > > So, I am going to need a GWT-RPC service(s) so we can do CRUD
> > > functionality.  All the samples I have seen use hbm.xml files and
> > > expect a hbernate.cfg.xml which we don't have.
>
> > > So, if anyone can point me in the right direction with working
> > > examples, it will be much appreciated.
>
> > > thanks!
> > >                             Tom
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Aborting a server request

2009-09-09 Thread Simal

Hi everyone,

I was wondering if there is a way to cancel an ongoing server request
(from client side) and if we get handles to our server requests at
all..

Thanks,
Simal


--~--~-~--~~~---~--~~
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: Build 6093 borked?

2009-09-09 Thread Sumit Chandel
Hi Richard,
Thanks for reporting the latest breaking revision. This may no longer be an
issue now, but if it is, could you mention what error messages you get while
building? It's very likely that the trunk may have been in a temporary
broken state when that revision went through, but that's usually par for the
course when working with trunk and typically gets fixed quickly. If it is
still a problem, it would be useful to know what's breaking during the build
to make sure we haven't overlooked anything on our end.

Cheers,
-Sumit Chandel

On Sun, Sep 6, 2009 at 4:56 PM, Richard Vowles wrote:

>
> I just did an update (rev 6093) and I'm on Windows XP and the samples
> are broken. I did a
> ant clean
> ant dist
>
> and it broke after DynaTable so i cleaned and dist-one and still
> borked. Anyone else having this problem?
>
> For the moment I am compiling without samples (commented out) to get
> working again (OOPHM HTMLUnit integration)
>
> Ta
> Richard
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



How to sort PagingScrollTable

2009-09-09 Thread davis

Hi, I am using the PagingScrollTable from incubator (http://
tinyurl.com/lb68nz)

My first question is can it be sorted?

If you run the demo here: http://tinyurl.com/nqlax7

...you can click the sortable columns, but you'll see that the rows
are not correctly sorted.

My second question is if it can be sorted (including the pages), how
do you do it?  I have set the ColumnDefinition#setIsSortable(boolean)
to true on the columns I want sorting on.  The values are just
java.lang.String.

It does not sort when I click the column.

Do I have to implement my own SortHandler?


--~--~-~--~~~---~--~~
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 RPC Hibernate - again and again

2009-09-09 Thread Thomas Holmes

Yes, absolutely 100% I do have Hibernate working with Annotations!
The Hibernate DAO's and POJO's have all been Unit Tested and work
perfectly 100%.
And we are using Spring with the DAO's and POJO's defined in the
applicationContext.xml file.
There are NO hibernate.cfg.xml and Object.hm.xml files defined, and we
don't seem to need them since all that is defined within the
applicationContext.xml file.

Yes, I have learned that I can't call Spring classes from within GWT.

I agree with you, I need to create some DTO classes that handle the
wire transfer between the UI and the database.
I gather from reading that the DTO custom classes have to implement
isSerializable and collections are ArrayList, String array, Vector,
HashMap, and HashSet.

So, I'm looking now for examples on when exactly the Service calls the
backend database ...
The GWT-RPC Service at some point either has to call the DAO's to
create, retrieve/fetch, update, delete data.
Where and how that happens I am looking for.

I looked at Gilead and the samples, and they use Hibernate.cfg.xml and
the Object.hbm.xml ... which I don't have in this application.
So, if I found an example of Gilead with Spring, that would help.

Thanks for the help, I do appreciate it!   :-)
 
Tom

On Sep 9, 1:38 pm, Robnauticus-  wrote:
> Hello Thomas,
>
> Do you have Hibernate working with annotations?  If you don't have an
> cfg.xml file set up and mapping files, Hibernate will not work.  You
> are also attempting to call spring classes inside of GWT which will
> not work.
>
> I created a "Domain" package that serves as the in-between for your
> shared client/server data classes that are passed via RPC.
>
> In your .gwt.xml file for your project you need to add  path="domain" /> to the file to tell GWT that it can use those classes
> as well as the "client" package.
>
> Now you have the problem with serializing Hibernate object from client/
> server.  Gilead is what I am using, there are other ways to do this
> but Bruno did a great job creating the lib.  Basically the Hibernate
> objects that are generated are too complex to be converted to js
> objects so Gilead takes the nasty work out of the conversion.
>
> Take a look at which core java libraries can be converted to js by
> GWT.  Anything else will fail for the most part so don't try to
> include it in your client code.  The server package will allow you to
> do anything you want java-wise.
>
> HTH,
> Rob
>
> On Sep 9, 8:35 am, Thomas Holmes  wrote:
>
> > I get the idea that ouside packages need to be include in the module ...
> > but of course I am going to include code from outside packages 
> > Hibernate and Spring jars are outside ... and there is no source code:
>
> > so, here are some errors;
> > [ERROR] Line 5: The import org.springframework.orm cannot be resolved
> > [ERROR] Line 10: HibernateDaoSupport cannot be resolved to a type
> > [ERROR] Line 14: The method getHibernateTemplate() is undefined for the type
> > TestDaoImpl
>
> > So, I added this to my StockWatcher.gwt.xml:
> >  
> >    > name='org.springframework.orm.hibernate3.support.HibernateDaoSupport'/>
>
> > But now I get:
> > [TRACE] Loading inherited module
> > 'org.springframework.orm.hibernate3.support.HibernateDaoSupport'
> > [ERROR] Unable to find
> > 'org/springframework/orm/hibernate3/support/HibernateDaoSupport.gwt.xml' on
> > your classpath;
> > could be a typo, or maybe you forgot to include a classpath entry for
> > source?
>
> > And then the application won't run at all ..
>
> > On Wed, Sep 9, 2009 at 6:49 AM, Raphael André Bauer <
>
> > raphael.andre.ba...@gmail.com> wrote:
>
> > > On Tue, Sep 8, 2009 at 10:17 PM, Thomas Holmes
> > > wrote:
>
> > > > Would you have some sample code that I could see ... or a link to
> > > > some.
>
> > > > I'm going to continue looking through my book, and use their example
> > > > that uses the Command Pattern.
>
> > > > I am getting tons of errors because my DAO's and POJO's are in another
> > > > package, so I was working with GWT Modules to try and make that work.
> > > > I finally gave that up and tried to move that code closer to the
> > > > Client directory ... and there a still a ton of errors.
>
> > > > The most bothersome was in my UserDaoImpl where I have a
> > > > "getHibernateTemplate" method, and it says that the source code isn't
> > > > there.
> > > most likely this code is referenced by a module. some ideas:
> > > - check by which module it is referenced (if you have more than one)
> > > and make sure it is inherited by that module.
> > > - make sure it is under the /client/ directory, so that the gwt
> > > crosscompiler can find the sourcecode.
> > > - make sure the file has no external references (import xyz) that are
> > > not in the client directory
>
> > > this should make that part work... hope that helps...
>
> > > r
>
> > > > So ... it is driving me crazy ...
>
> > > > Thanks!
> > > >                            Tom
>
> > > > On Sep 8, 4:04 pm, David Durham  wrote:
> > >

Re: GWT RPC Hibernate - again and again

2009-09-09 Thread Thomas Holmes

I absolutely have no idea what cross-compiling means.  I've been
working with Java for 10+ years, and I've never heard of it.
I've never had to do an rich-internet-application ever, and I've never
used GWT.   I have written Struts1, Struts, and Spring1 applications,
so I've had to work with MVC for a long time which used to be the
"thing" to do.

The application does use Hibernate and Spring, and a good part of this
web-application uses behind the scenes Spring server-side code.

I got handed the UI part which does use SmartGWT, my co-workers and I
have successfully worked on getting code from the database to the
SmartGWT UI.

Since we are not paying thousands of dollars for the SmartGWT Server,
we are writing it ourselves ... using GWT-RPC.
Although I can already get data from the database to the UI ... it's
going back that I need to work on.
I just thought getting data wih GWT-RPC would get the pipe-line
working between the two.

There have been integrations with GWT/Spring from what I have seen, so
I will keep looking and working on this.

Thanks!
 Tom

On Sep 9, 1:10 pm, Raphael André Bauer 
wrote:
> On Wed, Sep 9, 2009 at 5:35 PM, Thomas Holmes 
> wrote:
> > I get the idea that ouside packages need to be include in the module ...
> > but of course I am going to include code from outside packages 
> > Hibernate and Spring jars are outside ... and there is no source code:
>
> > so, here are some errors;
> > [ERROR] Line 5: The import org.springframework.orm cannot be resolved
> > [ERROR] Line 10: HibernateDaoSupport cannot be resolved to a type
> > [ERROR] Line 14: The method getHibernateTemplate() is undefined for the type
> > TestDaoImpl
>
> > So, I added this to my StockWatcher.gwt.xml:
> >  
> >    > name='org.springframework.orm.hibernate3.support.HibernateDaoSupport'/>
>
> > But now I get:
> > [TRACE] Loading inherited module
> > 'org.springframework.orm.hibernate3.support.HibernateDaoSupport'
> > [ERROR] Unable to find
> > 'org/springframework/orm/hibernate3/support/HibernateDaoSupport.gwt.xml' on
> > your classpath;
> > could be a typo, or maybe you forgot to include a classpath entry for
> > source?
>
> > And then the application won't run at all ..
>
> okay. you have to understand what crosscompiling actually means. the
> stuff you write in java for the gwt looks like java. eclipse even
> thinks it is java and the debugger works. but it is not java.
>
> so if it us no java. then you cannot include any java file.
>
> what is it then? well it is javascript. there is a really cool
> crosscompiling step involved that transforms the java stuff to
> javascript.
>
> so simply forget that you can include large java packages into your
> gwt application (btw => the spring package you included is not a gwt
> package => so this has to fails...).
>
> how to solve this? check out smart-gwt
> (http://code.google.com/p/smartgwt/) to get an idea (i don't know
> smart-gwt well, but the basic idea is cool). or generate some simple
> POJOs that have no dependencies to any package and can be handled by
> java server side code and also javascript code on the GWT client side.
>
> hope that helps...
>
> r
>
>
>
> > On Wed, Sep 9, 2009 at 6:49 AM, Raphael André Bauer
> >  wrote:
>
> >> On Tue, Sep 8, 2009 at 10:17 PM, Thomas Holmes
> >> wrote:
>
> >> > Would you have some sample code that I could see ... or a link to
> >> > some.
>
> >> > I'm going to continue looking through my book, and use their example
> >> > that uses the Command Pattern.
>
> >> > I am getting tons of errors because my DAO's and POJO's are in another
> >> > package, so I was working with GWT Modules to try and make that work.
> >> > I finally gave that up and tried to move that code closer to the
> >> > Client directory ... and there a still a ton of errors.
>
> >> > The most bothersome was in my UserDaoImpl where I have a
> >> > "getHibernateTemplate" method, and it says that the source code isn't
> >> > there.
> >> most likely this code is referenced by a module. some ideas:
> >> - check by which module it is referenced (if you have more than one)
> >> and make sure it is inherited by that module.
> >> - make sure it is under the /client/ directory, so that the gwt
> >> crosscompiler can find the sourcecode.
> >> - make sure the file has no external references (import xyz) that are
> >> not in the client directory
>
> >> this should make that part work... hope that helps...
>
> >> r
>
> >> > So ... it is driving me crazy ...
>
> >> > Thanks!
> >> >                            Tom
>
> >> > On Sep 8, 4:04 pm, David Durham  wrote:
> >> >> > After research in this group, and on Google in general, I have found
> >> >> > that I should look at Gilead.
> >> >> > So, I downloaded the latest jars and the latest sample (using GWT
> >> >> > 1.6)
> >> >> > and sure enough, AGAIN, the sample uses hibernate.cfg.xml and
> >> >> > Object.hbm.xml files 
>
> >> >> I was able to make GWT and Hiberate (JPA annotations) wo

Re: Newbie to GWT 1.7 - again

2009-09-09 Thread Sumit Chandel
Hi Thomas,
Indeed the StockWatcher tutorial includes a section on using GWT RPC which
should help as an example in your case. The webAppCreator also generates a
starter sample application that includes a GWT RPC component as well, so you
may want to use that as a reference.

For more specific help on using RPC for your applicaiton, it might help to
know a bit more about the types that you want to send over the wire. If
you're using DTOs across the wire, keeping track of objects updated on the
client and persisting the changes to the server could be a matter of
introducing (somewhat smelly) boolean control, a client-side register, or
something else. A good solution depends on the type of information you want
to send across.

Hope that helps,
-Sumit Chandel

On Sun, Sep 6, 2009 at 2:03 PM, Jim Douglas  wrote:

>
> Hi Thomas,
>
> The tutorials are very helpful; I worked through implementing the
> StockWatcher sample to get my head around GWT concepts (including
> RPC):
>
> http://code.google.com/webtoolkit/tutorials/1.6/index.html
>
>
> On Sep 6, 1:50 pm, Thomas Holmes  wrote:
> > I posted this before, and I was waiting for the moderators to put this
> > online.
> > I am desperate, and need a working GWT-RPC working ASAP.I've got 6
> > new books on GWT and some refer to older 1.5 versions and not the new
> > versions.
> >
> > We have Spring 2.5.6, some MVC, using Spring Beans, and Hibernate
> > POJO's with Annotations.
> > There is NO hibernate.cfg.xml and there are NO Object.hbm.xml files,
> > but we do have working DAO's which work great.
> >
> > Now ... I want to be able to take a Master/Detail (or Parent Child/
> > Record), bring it to the front-end, edit the data and push it back.
> > So, I am going to need a GWT-RPC service(s) so we can do CRUD
> > functionality.  All the samples I have seen use hbm.xml files and
> > expect a hbernate.cfg.xml which we don't have.
> >
> > So, if anyone can point me in the right direction with working
> > examples, it will be much appreciated.
> >
> > thanks!
> > Tom
> >
>

--~--~-~--~~~---~--~~
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: Your GWT based open source project(s)

2009-09-09 Thread Adligo

To answer your original question, Yes.

I find open source code extremely useful for learning, constructing
and maintaining software projects.  The plethora of projects out there
has saved me tons of time, which has progressed my career.

Who said;
You never get something for nothing.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Why not use Java HashMap for JSON

2009-09-09 Thread Sumit Chandel
Hi Marcelo,
You could also put null or undefined checks in your overlay type methods so
that whenever the object the JSO represents is only partially filled,
calling on those potentially undefined properties will return something
elegant back to your GWT code that could be interpreted and handled.

Hope that helps,
-Sumit Chandel

On Sun, Sep 6, 2009 at 3:39 PM, Jeff Chimene  wrote:

>
> On 09/06/2009 03:02 PM, Marcelo Sena wrote:
> >
> > Yes I have but I don't see how I could use it to send or receive
> > portions of an object, like, now the key, now an email, now a name
> > etc. I don't see how it could help when handling portions of an
> > object. Is that possible?
>
> I'm going assume you mean data structures like
> { "key": 1234} or {"email" : "f...@example.com"}
>
> You're right in the sense that JSO types seem designed for "complete"
> objects, as opposed to object fragments.
>
> AFAIK, a reference for a "complete" object that resembles
>
> {"server":{"id":2,"name":"fred"}}
>
> might look like:
>
> public final native String getName() /*-{
> return this.server.name;
> }-*/;
>
> For objects that are the subject of this thread, I think you get by with:
>
> public final native String getEMail() /*-{
> return this.email;
> }-*/;
>
> All of the above examples go into a JSO type class declaration
>
> public class UserInfo extends JavaScriptObject {
> protected UserInfo() {}
> }
>
> but the email example does not reference the class object like the
> server name does.
>
> I think one potential problem you'll have with this implementation is
> that you might find yourself with an annoying run-time error when the
> current JSO does not have a member named "key" (or "email"), yet you
> execute a code sequence that assumes the current object does have a
> member named "key". This error is difficult to cause when using
> "complete" JS objects.
>
> This will be a difficult error to track down, since it will be dependent
> on a particular operation sequence.
>
> >
> > On Sep 6, 6:31 pm, Jeff Chimene  wrote:
> >> On 09/06/2009 10:51 AM, Marcelo Sena wrote:
> >>
> >>
> >>
> >>> Really why not?
> >>> It was my first thought. You guys(developers at GWT) have probably
> >>> created some sort of HashMap to handle JSON objects received from RPC
> >>> calls handling its values and strings.
> >>> Anyway, I find the standard way of handling JSON values quite... ugly.
> >>> Is there any reason why shouldn't I use a process like:
> >>> 1- Get string form the wire.
> >>> 2- Use regex to get the name and values.
> >>> 3- Fill a Map with the values from step 2.
> >>> 4- Get the values that I want from the Map.
> >>
> >>> Thanks in advance.
> >>
> >> Have you looked at the Javascript Overlay type? It's quite efficient.
> >> I'm guessing it's more efficient than using a Map.
> http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
> > >
>
>
> >
>

--~--~-~--~~~---~--~~
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: Null pointer in generated createStreamWriter method

2009-09-09 Thread Jennifer Vendetti

Thanks for your reply Joe.  I found a solution, although I'm not sure
why the change I made fixes the problem.

I read Robert Hanson's GWT In Action book and followed the
recommendation in Chapter 11 about using the Facade pattern to
simplify working with RPC.  A pared down example from our code base
is:

// ChAOService.java
@RemoteServiceRelativePath("chao")
public interface ChAOService extends RemoteService {
public List getNotes(String projectName, String
entityName, boolean topLevel);
}

// ChAOServiceAsync.java
public interface ChAOServiceAsync {
void getNotes(String projectName, String entityName, boolean
topLevel, AsyncCallback> cb);
}

// ChAOServiceManager.java
public class ChAOServiceManager {

private static ChAOServiceAsync proxy;
private static ChAOServiceManager instance;

private ChAOServiceManager() {
proxy = (ChAOServiceAsync) GWT.create(ChAOService.class);
}

public static ChAOServiceManager getInstance() {
if (instance == null) {
instance = new ChAOServiceManager();
}
return instance;
}

public void getNotes(String projectName, String entityName,
boolean topLevel, AsyncCallback> cb) {
proxy.getNotes(projectName, entityName, topLevel, cb);
}
}


In my client code, if I separate my calls into two lines like this:

ChAOServiceManager chaoServiceManager = ChAOServiceManager.getInstance
();
chaoServiceManager.getNotes(...);

... my app works.  But, if I use one line of Java code like this:

ChAOServiceManager.getInstance().getNotes(...);

... my app fails with the exception I reported yesterday.

Kind of confused by this, but glad my app is working now.

Thanks,
Jennifer


On Sep 9, 8:55 am, Joe Cole  wrote:
> I remember something like this happening once on 1.5.
> From memory (I couldn't find it in our tracker) it was to do with not
> implementing RemoteService or something similar to that like not
> implementing Serializable.
> This may be completely wrong as it was about 1000 tickets ago :) - but
> is worth a shot.
>
> On Sep 9, 12:14 pm, Jennifer Vendetti 
> wrote:
>
>
>
> > Hi,
>
> > I'm developing with GWT (version 1.7.0) and having trouble figuring
> > out the source of a runtime exception.  My application compiles, runs,
> > and behaves as expected in hosted mode (on both Windows and Linux).
> > In browser mode (also on Windows and Linux), I get a runtime
> > exception:
>
> > 'com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_s...' is null
> > or not an object
>
> > The generated javascript where the exception occurs is:
>
> > function com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_
> > $createStreamWriter__Lcom_google_gwt_user_client_rpc_impl_RemoteServiceProx 
> > y_2
> > (this$static){
> >   var clientSerializationStreamWriter;
> >   clientSerializationStreamWriter =
> > com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_
> > $ClientSerializationStreamWriter__Lcom_google_gwt_user_client_rpc_impl_Clie 
> > ntSerializationStreamWriter_2Lcom_google_gwt_user_client_rpc_impl_Serialize 
> > r_2Ljava_lang_String_2Ljava_lang_String_2
> > (new
> > com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter(),
> > this
> > $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_serializer,
> > this
> > $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_moduleBaseUR 
> > L,
> > this
> > $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_serializatio 
> > nPolicyName);
>
> > clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_Abstrac 
> > tSerializationStreamWriter_objectCount
> > = 0;
> >   java_util_AbstractHashMap_$clearImpl__Ljava_util_AbstractHashMap_2
> > (clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_Abstra 
> > ctSerializationStreamWriter_objectMap);
>
> > clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_Abstrac 
> > tSerializationStreamWriter_stringMap.clear__
> > ();
> >   java_util_ArrayList_$clear__Ljava_util_ArrayList_2
> > (clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_Abstra 
> > ctSerializationStreamWriter_stringTable);
>
> > clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_ClientS 
> > erializationStreamWriter_encodeBuffer
> > = java_lang_StringBuffer_$StringBuffer__Ljava_lang_StringBuffer_2(new
> > java_lang_StringBuffer());
>
> > com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_
> > $writeString__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStr 
> > eamWriter_2Ljava_lang_String_2
> > (clientSerializationStreamWriter,
> > clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_ClientS 
> > erializationStreamWriter_moduleBaseURL);
>
> > com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_
> > $writeString__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStr 
> > eamWriter_2Ljava_lang_String_2
> > (clientSerializationStreamWriter,
> > clientSerializa

Re: Debuger problem , Eclipse plugin , GWT team attention / Expression / Watch

2009-09-09 Thread Aladdin

yeah Sumit , I can also debug myHTML with no problem but this after
assigning it. What if you want to debug the code "e.toString()"
without assign it to a variable !


try this

public void onModuleLoad() {
Element e=RootPanel.get().getElement();
//Do something ...

   //try to add a watch for "e.getString()"   it will NOT
work
}

On Aug 24, 7:28 pm, Sumit Chandel  wrote:
> HiAladdin,
> I just debugged the following code snippet:
>
> public void onModuleLoad() {
>   Element e = DOM.getElementById("mydiv");
>   String myHTML = e.toString();
>   Window.alert(e.toString());
>   Window.alert(myHTML);
>
> }
>
> I was able to add a watch to the expression e.toString(), inspect the
> e.toString() assignment in the code snippet and inspect the myHTML variable.
> The alerts also both fired and displayed the same text ([object]). The
> element "mydiv" is a div that I defined in my host HTML page.
>
> Is there anything I'm missing to reproduce what you saw?
>
> Thanks,
> -Sumit Chandel
>
> On Fri, Aug 21, 2009 at 12:37 PM, Aladdin  wrote:
>
> > Hi
>
> > I notice a bug in GWT / Eclipse if you have a this code
>
> > Element e = DOM.get... //Some element
>
> > Now try to add a watch to this
>
> > "e.getString()"
>
> > this is the error that I'm getting (in the Expression window)
>
> > Method "getString" with signature "()Ljava/lang/String;" is not
> > applicable on this object
>
> > I could do something like this
>
> > String myHTML=e.getString(); // then I can add a watch !
>
> > I can add a watch to "e" but not any sub methods !
>
> > is this a bug or I'm making something wrong ?
--~--~-~--~~~---~--~~
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: ImageBundles and Image Path

2009-09-09 Thread Sumit Chandel
Hi Sammy,
The images that you refer to via the @Resources tag must be somewhere in the
classpath during your GWT compilation / hosted mode startup. Although it
isn't common practice to include public resources like image files in the
WEB-INF folder, you can use the @Resource tag to refer to the image as long
as the WEB-INF folder is in your hosted mode and GWT compiler process
classpaths.

Hope that helps,
-Sumit Chandel

On Sat, Sep 5, 2009 at 8:51 PM, picosam  wrote:

>
> Hello,
>
> I have a folder named "images" in the same level as my WEB-INF folder
> in my project. What should I put in the @Resource tag in the
> ImageBudle method? It doesn't seem to find my image at all.
>
> Thank you,
> Sammy
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is there a way so I can use "Project>Run As>Run on Server" functionality while using the new GWT eclipse plugin?

2009-09-09 Thread jmpeace

Thanks for your answer Jason.

I was previously using cypal studio because it makes it easy for you
to deploy your compiled code (HTML & CSS) and java clases (Servlets)
to a local server in the traditional Eclipse way.  (Run As > Run on
Server).

I've put almost all of my GWT client and server code inside a JAR, and
my team use this jar to build products using this jar as their core.
The team members simply make extensions to server classes, they are
not involved in changes to the UI (GWT) code.

The team uses WEB MODE only, because of performance reasons.

My original question was, how could I deploy the war directory to a
server inside eclipse?

Thank you very much for your attention.

joe



On 17 ago, 11:09, Jason Parekh  wrote:
> Hi jmpeace,
> Could you explain your use case a bit more (so in the future, we can better
> support it.)
>
> My understanding is you'd like to do infrequent GWT compiles and package
> this into a WAR and run it on a server.  Is the server GWT's jetty instance
> or your own app server?
>
> You may be able to use Keith's instructions 
> fromhttp://groups.google.com/group/Google-Web-Toolkit/msg/9ce13140f71e2100if
> you want to run this on your own app server.
>
> Thanks,
> jason
>
>
>
> On Fri, Aug 14, 2009 at 4:14 PM, jmpeace  wrote:
>
> > I've been using Cypal Studio so far, as it provides this
> > functionality.  Is there a way to do that with the new plug in?  How
> > could I launch the project in web mode without compiling every time?
>
> > I have this situation since the client side of my app is almost
> > finished and I don't really need to transcode it very often.
>
> > Any suggestion would be greatly appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is it possible to develop desktop applications using GWT?

2009-09-09 Thread Ian Bambury
Hi kolombo1,
Yes it is.

GWT is very capable of producing desktop apps, either with data held
centrally somewhere or alternatively by using Gears, or (best of both
worlds) a combination of both so you a) can use it off-line and b) have an
on-line backup or c) do all of that and have a central repository.

Another option is to run a light-weight web server on the local machine or a
LAN server.

But GWT is not really there to provide an alternative to traditional desktop
apps - there are enough options there already - it's aimed at (groan)
'cloud' computing i.e. something stuck on a server that you can access from
anywhere (with a connection) and which gives you the latest version of the
software every time you go there (no downgrading allowed - it's the
future, whether you want it of not).

Ian

http://examples.roughian.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is it possible to develop desktop applications using GWT?

2009-09-09 Thread Paul Grenyer

Hi

> I'm sorry for this newby question, but I'm new to GWT.
> Thanks for your help.

Why would you want to? That's what swing is for.


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Is it possible to develop desktop applications using GWT?

2009-09-09 Thread kolombo1

I'm sorry for this newby question, but I'm new to GWT.
Thanks for your help.

--~--~-~--~~~---~--~~
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: Designer

2009-09-09 Thread Michael

Don't know about freeware, but there is GWTDesigner from
Instantiations (http://www.instantiations.com/gwtdesigner/) which
starts at 59$ for a one-year subscription.

cu

Michael

Danny wrote:
> Guten Morgen!
> Das GWT setze ich schon einige Zeit (erfolgreich) ein, allerdings
> bisher ohne Designer. Um mir die Arbeit zu erleichtern, bin ich nun
> allerdings auf der Suche nach einen visuellen Designer für
> Oberflächen. Kann mir jemand eine empfehlen, die in Eclipse integriert
> ist und als Freeware erhältlich ist?
> Meine Google-Suchen dazu waren nicht allzusehr von Erfolg gekrönt ;-)
> Danke!
> Schöne Grüße
> Daniel

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



Web Application in Regional Language

2009-09-09 Thread Sundar

How to develope web apps in regional language with use of google
code ?

I am new to computer programming. I am interested to making web
applications in tamil language. I am choosing the google code as
resource. Any one help to me how develop it... It may help to others
who want develop web apps for his human language...

I hope very much about i am getting all answers..

Thank You...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT RPC Hibernate - again and again

2009-09-09 Thread Robnauticus-

Hello Thomas,

Do you have Hibernate working with annotations?  If you don't have an
cfg.xml file set up and mapping files, Hibernate will not work.  You
are also attempting to call spring classes inside of GWT which will
not work.

I created a "Domain" package that serves as the in-between for your
shared client/server data classes that are passed via RPC.

In your .gwt.xml file for your project you need to add  to the file to tell GWT that it can use those classes
as well as the "client" package.

Now you have the problem with serializing Hibernate object from client/
server.  Gilead is what I am using, there are other ways to do this
but Bruno did a great job creating the lib.  Basically the Hibernate
objects that are generated are too complex to be converted to js
objects so Gilead takes the nasty work out of the conversion.

Take a look at which core java libraries can be converted to js by
GWT.  Anything else will fail for the most part so don't try to
include it in your client code.  The server package will allow you to
do anything you want java-wise.

HTH,
Rob


On Sep 9, 8:35 am, Thomas Holmes  wrote:
> I get the idea that ouside packages need to be include in the module ...
> but of course I am going to include code from outside packages 
> Hibernate and Spring jars are outside ... and there is no source code:
>
> so, here are some errors;
> [ERROR] Line 5: The import org.springframework.orm cannot be resolved
> [ERROR] Line 10: HibernateDaoSupport cannot be resolved to a type
> [ERROR] Line 14: The method getHibernateTemplate() is undefined for the type
> TestDaoImpl
>
> So, I added this to my StockWatcher.gwt.xml:
>  
>    name='org.springframework.orm.hibernate3.support.HibernateDaoSupport'/>
>
> But now I get:
> [TRACE] Loading inherited module
> 'org.springframework.orm.hibernate3.support.HibernateDaoSupport'
> [ERROR] Unable to find
> 'org/springframework/orm/hibernate3/support/HibernateDaoSupport.gwt.xml' on
> your classpath;
> could be a typo, or maybe you forgot to include a classpath entry for
> source?
>
> And then the application won't run at all ..
>
> On Wed, Sep 9, 2009 at 6:49 AM, Raphael André Bauer <
>
>
>
> raphael.andre.ba...@gmail.com> wrote:
>
> > On Tue, Sep 8, 2009 at 10:17 PM, Thomas Holmes
> > wrote:
>
> > > Would you have some sample code that I could see ... or a link to
> > > some.
>
> > > I'm going to continue looking through my book, and use their example
> > > that uses the Command Pattern.
>
> > > I am getting tons of errors because my DAO's and POJO's are in another
> > > package, so I was working with GWT Modules to try and make that work.
> > > I finally gave that up and tried to move that code closer to the
> > > Client directory ... and there a still a ton of errors.
>
> > > The most bothersome was in my UserDaoImpl where I have a
> > > "getHibernateTemplate" method, and it says that the source code isn't
> > > there.
> > most likely this code is referenced by a module. some ideas:
> > - check by which module it is referenced (if you have more than one)
> > and make sure it is inherited by that module.
> > - make sure it is under the /client/ directory, so that the gwt
> > crosscompiler can find the sourcecode.
> > - make sure the file has no external references (import xyz) that are
> > not in the client directory
>
> > this should make that part work... hope that helps...
>
> > r
>
> > > So ... it is driving me crazy ...
>
> > > Thanks!
> > >                            Tom
>
> > > On Sep 8, 4:04 pm, David Durham  wrote:
> > >> > After research in this group, and on Google in general, I have found
> > >> > that I should look at Gilead.
> > >> > So, I downloaded the latest jars and the latest sample (using GWT 1.6)
> > >> > and sure enough, AGAIN, the sample uses hibernate.cfg.xml and
> > >> > Object.hbm.xml files 
>
> > >> I was able to make GWT and Hiberate (JPA annotations) work without
> > >> Gilead.  I just used the underlying beanlib replicators to undo the
> > >> cglib or javassist stuff before serializing to client.
>
> > >> -Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Problem with GWT installation - configuration

2009-09-09 Thread Prosky

Good evening user's, i have a small problem with a configuration of
the classpath of my project. Infact during the debugging of the
project (the structure of the project is visible at the end of the
post) the GWTLog signals the following error:

[ERROR] Unable to load module entry point class
org.unicam.resourceome.web.portal.client.Portal (see associated
exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): Object
doesn't support property or method
number: -2146827850
description: Proprietà o metodo non supportati dall'oggetto
at
org.unicam.gwt.graphics.client.canvas.impl.GWTCanvasImplDefault.createElement
(Native Method)
at org.unicam.gwt.graphics.client.canvas.GWTCanvas.
(GWTCanvas.java:138)
at org.unicam.gwt.graphics.client.GWTGraphicsView.init
(GWTGraphicsView.java:42)
at org.unicam.gwt.graphics.client.GWTGraphicsView.
(GWTGraphicsView.java:38)
at org.unicam.resourceome.web.portal.client.Portal.onModuleLoad
(Portal.java:198)

and in particular in eclipse escape a windows "Class COMObject.class
Not Found" that say that the jar file dev-windows.jar has no source
attchment" (but the source i think that is correct because is the
folder where i have unzipped GWT".

Is there any person that can help me? Thank you for the quickly answer
(sorry for the bad english).


STRUCTURE OF PROJECT - TWO MODULE

FRIST MODULE (CALL PORTAL) THAT IMPLEMENT ENTRY POINT:

-->src
-->org.unicam.resourceome.web.portal
->Portal.gwt.xml
-->org.unicam.resourceome.web.portal.client
-->org.unicam.resourceome.web.portal.client.grappa.parser
-->org.unicam.resourceome.web.portal.server


SECOND SUPPORT MODULE (CALL CANVASGRAPHICS) THAT NOT IMPLEMENT ENTRY
POINT:

-->src
-->org.unicam.gwt.graphics
->CanvasGraphics.gwt.xml
-->org.unicam.gwt.graphics.client
-->org.unicam.gwt.graphics.client.canvas
-->org.unicam.gwt.graphics.client.canvas.impl
-->org.unicam.gwt.graphics.client.core
-->org.unicam.gwt.graphics.client.data.graph
-->org.unicam.gwt.graphics.client.data.graph.event
-->org.unicam.gwt.graphics.client.data.graph.listener
-->org.unicam.gwt.graphics.client.event
-->org.unicam.gwt.graphics.client.graph
-->org.unicam.gwt.graphics.client.listeners
-->org.unicam.gwt.graphics.client.shapes


Thank you another time for the answer.

--~--~-~--~~~---~--~~
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: FlowPanel

2009-09-09 Thread Ian Bambury
Why do you say inline-block and not inline?
Ian

http://examples.roughian.com

(BTW FF2 and below doesn't support inline-block)



2009/9/9 mars1412 

>
> upps:
> inline for IE
> inline-block for everything else
>
> On Sep 9, 6:52 pm, mars1412  wrote:
> > I think you'll need 'inline-block' for IE
> >
> > On Sep 9, 2:20 pm, Rami Alkhalyleh  wrote:
> >
> > > Thanks a lot Ian
> >
> > > with display=inline, it's working fine
> >
> > > thanks
> >
> > > On Wed, Sep 9, 2009 at 2:24 PM, Ian Bambury 
> wrote:
> > > > Set the VP's 'display' property to 'inline'.
> > > > And maybe ask yourself if you really need VPs (tables) or whether
> more
> > > > flowpanels (simple divs) would do.
> > > > Ian
> >
> > > >http://examples.roughian.com
> >
> > > > 2009/9/9 Rami Alkhalyleh 
> >
> > > >> Hi,
> >
> > > >> thanks Tamas for your reply.
> >
> > > >> I need to use the flow panel to control over the flow layout, which
> means,
> > > >> If I have many panels in the flow panel, and I removed one of them
> in the
> > > >> middle, the flow panel suppose to layout it again to do a shift for
> those
> > > >> panels that are after the removed one.
> >
> > > >> thanks
> >
> > > >> On Wed, Sep 9, 2009 at 11:31 AM, Tamás Gömbös 
> wrote:
> >
> > > >>> Hi,
> >
> > > >>> Put a HorizontalPanel on each VerticalPanel:
> >
> > > >>> HorizontalPanel hp1 = new HorizontalPanel();
> > > >>> vp1.add(hp1);
> >
> > > >>> 
> >
> > > >>> To be honest, I don't really understand GWT's layout handling but
> this
> > > >>> works everytime for me, when I'd like to change the size of a panel
> in both
> > > >>> horizontal and vertical direction.
> >
> > > >>> Hope this helps!
> >
> > > >>> 2009/9/9 Rami Alkhalyleh 
> >
> > >  Hi
> >
> > >   Actually I need to use the FlowPanel, I need to list my widgets
> in a
> > >  flow way horizontally, the vertical panels that I'm trying to add
> them to
> > >  the flow panel has a width also a height, but it didn't work, also
> I tried
> > >  to put each vertical panel in a horizontal panel but I got the
> same result,
> > >  the flow panel list them vertically, also I tried to use a simple
> panel
> > >  instead of vertical panel then add them to the flow panel but the
> flow panel
> > >  list them vertically.
> >
> > >  this is a sample code:
> >
> > >  public class MyProject implements EntryPoint {
> >
> > >    private final FlowPanel fp = new FlowPanel();
> > >    private final SimplePanel vp1 = new SimplePanel();
> > >    private final SimplePanel vp2 = new SimplePanel();
> > >    private final SimplePanel vp3 = new SimplePanel();
> >
> > >    public void onModuleLoad() {
> >
> > >  fp.setStyleName("fpTest");
> > >  vp1.setStyleName("vpTest");
> > >  vp2.setStyleName("vpTest");
> > >  vp3.setStyleName("vpTest");
> > >  fp.setWidth("500px");
> > >  fp.setHeight("500px");
> > >  vp1.setWidth("74px");
> > >  vp1.setHeight("80px");
> > >  vp2.setWidth("74px");
> > >  vp2.setHeight("80px");
> > >  vp3.setWidth("74px");
> > >  vp3.setHeight("80px");
> > >  fp.add(vp1);
> > >  fp.add(vp2);
> > >  fp.add(vp3);
> > >  RootPanel.get("divId").add(fp);
> >
> > >    }
> > >  }
> >
> > >  Note: the styles 'fpTest' and 'vpTest' contains just a background
> color,
> > >  and if you try to use a vertical panel instead of simple panel,
> the same
> > >  result which is list them vertically.
> >
> > >  thanks a lot
> >
> > >  On Wed, Sep 9, 2009 at 7:18 AM, Saeed Zarinfam <
> zarinfa...@gmail.com>wrote:
> >
> > > > Hi
> > > > You must add your vertical panel in a horizontal panel or
> decrease
> > > > vertical panel width.
> >
> > >  --
> > >  Best Regards
> > > Rami
> >
> > > >> --
> > > >> Best Regards
> > > >>Rami
> >
> > > --
> > > Best Regards
> > >Rami
> >
> >
> >
>

--~--~-~--~~~---~--~~
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: can anyone explain how to use listBox.fireEvent

2009-09-09 Thread Yanick

On Sep 8, 11:25 am, John V Denley  wrote:
> eclipse seems to prompt me to enter something like:
>
> listBox.fireEvent(GwtEvent event);
>
> but I have no idea what that means, and it doesnt like the ?
>
> is there any documentation on this anywhere, or am I just meant to
> instinctively know what this means and how to use it?
>
> PLEASE help me, ive just spend the last 3 hours trying to find an
> example i can learn from, but have found it impossible!
>
> Thanks,
> John

Yes, of course there is, right in the Javadoc (http://google-web-
toolkit.googlecode.com/svn/javadoc/1.6/index.html)

Look at the ChangeEvent constructor (for example), it says :
"Protected constructor, use DomEvent.fireNativeEvent
(com.google.gwt.dom.client.NativeEvent,
com.google.gwt.event.shared.HasHandlers)  to fire change events."

So, do that :

DomEvent.fireNativeEvent(ChangeEvent.getType(), listbox);

and the listbox's fireEvent() will be called properly.

When the event to fire is not a DOM event, the xxxEvent class usually
implements a static public method "fire", that you can invoke like

xxxEvent.fire(source[, ...]);

Hope this clears up a bit. I was into that reading too actually last
night.
--~--~-~--~~~---~--~~
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 RPC Hibernate - again and again

2009-09-09 Thread Raphael André Bauer

On Wed, Sep 9, 2009 at 5:35 PM, Thomas Holmes wrote:
> I get the idea that ouside packages need to be include in the module ...
> but of course I am going to include code from outside packages 
> Hibernate and Spring jars are outside ... and there is no source code:
>
> so, here are some errors;
> [ERROR] Line 5: The import org.springframework.orm cannot be resolved
> [ERROR] Line 10: HibernateDaoSupport cannot be resolved to a type
> [ERROR] Line 14: The method getHibernateTemplate() is undefined for the type
> TestDaoImpl
>
> So, I added this to my StockWatcher.gwt.xml:
>  
>    name='org.springframework.orm.hibernate3.support.HibernateDaoSupport'/>
>
> But now I get:
> [TRACE] Loading inherited module
> 'org.springframework.orm.hibernate3.support.HibernateDaoSupport'
> [ERROR] Unable to find
> 'org/springframework/orm/hibernate3/support/HibernateDaoSupport.gwt.xml' on
> your classpath;
> could be a typo, or maybe you forgot to include a classpath entry for
> source?
>
> And then the application won't run at all ..

okay. you have to understand what crosscompiling actually means. the
stuff you write in java for the gwt looks like java. eclipse even
thinks it is java and the debugger works. but it is not java.

so if it us no java. then you cannot include any java file.

what is it then? well it is javascript. there is a really cool
crosscompiling step involved that transforms the java stuff to
javascript.

so simply forget that you can include large java packages into your
gwt application (btw => the spring package you included is not a gwt
package => so this has to fails...).


how to solve this? check out smart-gwt
(http://code.google.com/p/smartgwt/) to get an idea (i don't know
smart-gwt well, but the basic idea is cool). or generate some simple
POJOs that have no dependencies to any package and can be handled by
java server side code and also javascript code on the GWT client side.

hope that helps...

r

>
> On Wed, Sep 9, 2009 at 6:49 AM, Raphael André Bauer
>  wrote:
>>
>> On Tue, Sep 8, 2009 at 10:17 PM, Thomas Holmes
>> wrote:
>> >
>> > Would you have some sample code that I could see ... or a link to
>> > some.
>> >
>> > I'm going to continue looking through my book, and use their example
>> > that uses the Command Pattern.
>> >
>> > I am getting tons of errors because my DAO's and POJO's are in another
>> > package, so I was working with GWT Modules to try and make that work.
>> > I finally gave that up and tried to move that code closer to the
>> > Client directory ... and there a still a ton of errors.
>> >
>> > The most bothersome was in my UserDaoImpl where I have a
>> > "getHibernateTemplate" method, and it says that the source code isn't
>> > there.
>> most likely this code is referenced by a module. some ideas:
>> - check by which module it is referenced (if you have more than one)
>> and make sure it is inherited by that module.
>> - make sure it is under the /client/ directory, so that the gwt
>> crosscompiler can find the sourcecode.
>> - make sure the file has no external references (import xyz) that are
>> not in the client directory
>>
>> this should make that part work... hope that helps...
>>
>> r
>>
>>
>>
>>
>>
>> >
>> > So ... it is driving me crazy ...
>> >
>> > Thanks!
>> >                            Tom
>> >
>> > On Sep 8, 4:04 pm, David Durham  wrote:
>> >> > After research in this group, and on Google in general, I have found
>> >> > that I should look at Gilead.
>> >> > So, I downloaded the latest jars and the latest sample (using GWT
>> >> > 1.6)
>> >> > and sure enough, AGAIN, the sample uses hibernate.cfg.xml and
>> >> > Object.hbm.xml files 
>> >>
>> >> I was able to make GWT and Hiberate (JPA annotations) work without
>> >> Gilead.  I just used the underlying beanlib replicators to undo the
>> >> cglib or javassist stuff before serializing to client.
>> >>
>> >> -Dave
>> > >
>> >
>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Making a widget as big as possible (but no bigger!)

2009-09-09 Thread Bigous

Another solution, without setting HTML and Body width and height could
be using a table.
If you create a table with width and height in 100% and only one cell,
any widget you put inside this cell can be resized in width and
height try this one:

FlexTable layout = new FlexTable();

layout.setWidth("100%");
layout.setHeight("100%");

layout.setWidget(0, 0, w);

RootPanel.get().clear();
RootPanel.get().add(layout);

I don't know well why this works, but works.

[]s


On Sep 8, 5:17 pm, Nathan Wells  wrote:
> I think the main requirement (that often get missed) is that the parent
> element must have a width and height set.
> Nathan Wells
>
>
>
> On Tue, Sep 8, 2009 at 10:58 AM, David Given  wrote:
>
> > Nathan Wells wrote:
> > > I realize this example is rather naive, but I think we can use it as a
> > > starting point:
>
> > >http://nathanwells.net/work/cssTest.html
>
> > > Is that basically what you're looking for? I tested it in IE 8, 7 (via
> > > compatibility mode), Firefox, and Chrome. Everything looks fine to me.
> > > Again, for IE 6, some hacking may be necessary.
>
> > Hmm. Very interesting. You're specifying both left: and right:. I tried
> > that, it didn't work, I checked the CSS spec, and saw that it wasn't
> > supposed to work, etc.
>
> > Now I go back to the CSS spec to discover why your example works and
> > discover I misread it. I hate the CSS spec; it is second only to the
> > Javascript spec for sheer obscurity.
>
> > That still doesn't explain why it didn't work for me. Possibly just a
> > mistake on my part, or possibly a rendering error in the hosted browser,
> > which has exceedingly dodgy rendering in places.
>
> > I'll do some playing when I get home. Thanks.
>
> > --
> > ┌─── dg@cowlark.com ─http://www.cowlark.com─
> > │
> > │ "They laughed at Newton. They laughed at Einstein. Of course, they
> > │ also laughed at Bozo the Clown." --- Carl Sagan
--~--~-~--~~~---~--~~
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: FlowPanel

2009-09-09 Thread mars1412

upps:
inline for IE
inline-block for everything else

On Sep 9, 6:52 pm, mars1412  wrote:
> I think you'll need 'inline-block' for IE
>
> On Sep 9, 2:20 pm, Rami Alkhalyleh  wrote:
>
> > Thanks a lot Ian
>
> > with display=inline, it's working fine
>
> > thanks
>
> > On Wed, Sep 9, 2009 at 2:24 PM, Ian Bambury  wrote:
> > > Set the VP's 'display' property to 'inline'.
> > > And maybe ask yourself if you really need VPs (tables) or whether more
> > > flowpanels (simple divs) would do.
> > > Ian
>
> > >http://examples.roughian.com
>
> > > 2009/9/9 Rami Alkhalyleh 
>
> > >> Hi,
>
> > >> thanks Tamas for your reply.
>
> > >> I need to use the flow panel to control over the flow layout, which 
> > >> means,
> > >> If I have many panels in the flow panel, and I removed one of them in the
> > >> middle, the flow panel suppose to layout it again to do a shift for those
> > >> panels that are after the removed one.
>
> > >> thanks
>
> > >> On Wed, Sep 9, 2009 at 11:31 AM, Tamás Gömbös  wrote:
>
> > >>> Hi,
>
> > >>> Put a HorizontalPanel on each VerticalPanel:
>
> > >>> HorizontalPanel hp1 = new HorizontalPanel();
> > >>> vp1.add(hp1);
>
> > >>> 
>
> > >>> To be honest, I don't really understand GWT's layout handling but this
> > >>> works everytime for me, when I'd like to change the size of a panel in 
> > >>> both
> > >>> horizontal and vertical direction.
>
> > >>> Hope this helps!
>
> > >>> 2009/9/9 Rami Alkhalyleh 
>
> >  Hi
>
> >   Actually I need to use the FlowPanel, I need to list my widgets in a
> >  flow way horizontally, the vertical panels that I'm trying to add them 
> >  to
> >  the flow panel has a width also a height, but it didn't work, also I 
> >  tried
> >  to put each vertical panel in a horizontal panel but I got the same 
> >  result,
> >  the flow panel list them vertically, also I tried to use a simple panel
> >  instead of vertical panel then add them to the flow panel but the flow 
> >  panel
> >  list them vertically.
>
> >  this is a sample code:
>
> >  public class MyProject implements EntryPoint {
>
> >    private final FlowPanel fp = new FlowPanel();
> >    private final SimplePanel vp1 = new SimplePanel();
> >    private final SimplePanel vp2 = new SimplePanel();
> >    private final SimplePanel vp3 = new SimplePanel();
>
> >    public void onModuleLoad() {
>
> >      fp.setStyleName("fpTest");
> >      vp1.setStyleName("vpTest");
> >      vp2.setStyleName("vpTest");
> >      vp3.setStyleName("vpTest");
> >      fp.setWidth("500px");
> >      fp.setHeight("500px");
> >      vp1.setWidth("74px");
> >      vp1.setHeight("80px");
> >      vp2.setWidth("74px");
> >      vp2.setHeight("80px");
> >      vp3.setWidth("74px");
> >      vp3.setHeight("80px");
> >      fp.add(vp1);
> >      fp.add(vp2);
> >      fp.add(vp3);
> >      RootPanel.get("divId").add(fp);
>
> >    }
> >  }
>
> >  Note: the styles 'fpTest' and 'vpTest' contains just a background 
> >  color,
> >  and if you try to use a vertical panel instead of simple panel, the 
> >  same
> >  result which is list them vertically.
>
> >  thanks a lot
>
> >  On Wed, Sep 9, 2009 at 7:18 AM, Saeed Zarinfam 
> >  wrote:
>
> > > Hi
> > > You must add your vertical panel in a horizontal panel or decrease
> > > vertical panel width.
>
> >  --
> >  Best Regards
> >     Rami
>
> > >> --
> > >> Best Regards
> > >>    Rami
>
> > --
> > Best Regards
> >    Rami
>
>
--~--~-~--~~~---~--~~
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: FlowPanel

2009-09-09 Thread mars1412

I think you'll need 'inline-block' for IE

On Sep 9, 2:20 pm, Rami Alkhalyleh  wrote:
> Thanks a lot Ian
>
> with display=inline, it's working fine
>
> thanks
>
>
>
> On Wed, Sep 9, 2009 at 2:24 PM, Ian Bambury  wrote:
> > Set the VP's 'display' property to 'inline'.
> > And maybe ask yourself if you really need VPs (tables) or whether more
> > flowpanels (simple divs) would do.
> > Ian
>
> >http://examples.roughian.com
>
> > 2009/9/9 Rami Alkhalyleh 
>
> >> Hi,
>
> >> thanks Tamas for your reply.
>
> >> I need to use the flow panel to control over the flow layout, which means,
> >> If I have many panels in the flow panel, and I removed one of them in the
> >> middle, the flow panel suppose to layout it again to do a shift for those
> >> panels that are after the removed one.
>
> >> thanks
>
> >> On Wed, Sep 9, 2009 at 11:31 AM, Tamás Gömbös  wrote:
>
> >>> Hi,
>
> >>> Put a HorizontalPanel on each VerticalPanel:
>
> >>> HorizontalPanel hp1 = new HorizontalPanel();
> >>> vp1.add(hp1);
>
> >>> 
>
> >>> To be honest, I don't really understand GWT's layout handling but this
> >>> works everytime for me, when I'd like to change the size of a panel in 
> >>> both
> >>> horizontal and vertical direction.
>
> >>> Hope this helps!
>
> >>> 2009/9/9 Rami Alkhalyleh 
>
>  Hi
>
>   Actually I need to use the FlowPanel, I need to list my widgets in a
>  flow way horizontally, the vertical panels that I'm trying to add them to
>  the flow panel has a width also a height, but it didn't work, also I 
>  tried
>  to put each vertical panel in a horizontal panel but I got the same 
>  result,
>  the flow panel list them vertically, also I tried to use a simple panel
>  instead of vertical panel then add them to the flow panel but the flow 
>  panel
>  list them vertically.
>
>  this is a sample code:
>
>  public class MyProject implements EntryPoint {
>
>    private final FlowPanel fp = new FlowPanel();
>    private final SimplePanel vp1 = new SimplePanel();
>    private final SimplePanel vp2 = new SimplePanel();
>    private final SimplePanel vp3 = new SimplePanel();
>
>    public void onModuleLoad() {
>
>      fp.setStyleName("fpTest");
>      vp1.setStyleName("vpTest");
>      vp2.setStyleName("vpTest");
>      vp3.setStyleName("vpTest");
>      fp.setWidth("500px");
>      fp.setHeight("500px");
>      vp1.setWidth("74px");
>      vp1.setHeight("80px");
>      vp2.setWidth("74px");
>      vp2.setHeight("80px");
>      vp3.setWidth("74px");
>      vp3.setHeight("80px");
>      fp.add(vp1);
>      fp.add(vp2);
>      fp.add(vp3);
>      RootPanel.get("divId").add(fp);
>
>    }
>  }
>
>  Note: the styles 'fpTest' and 'vpTest' contains just a background color,
>  and if you try to use a vertical panel instead of simple panel, the same
>  result which is list them vertically.
>
>  thanks a lot
>
>  On Wed, Sep 9, 2009 at 7:18 AM, Saeed Zarinfam 
>  wrote:
>
> > Hi
> > You must add your vertical panel in a horizontal panel or decrease
> > vertical panel width.
>
>  --
>  Best Regards
>     Rami
>
> >> --
> >> Best Regards
> >>    Rami
>
> --
> Best Regards
>    Rami
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Servlets 3.0 and GWT

2009-09-09 Thread Ittai

Hi All,
I'm stepping into the world of AJAX and due to a need I have in strong
built-in "Server Push" technologies I'm giving the Servlets 3.0 (under
Java EE 6 preview) a try.
I'm posting here because my client side will (hopefully) be based on
GWT and after going over the StockWatcher tutorial and reading a bit
about the Server-Client relationship I'm not sure what path I can
take.
I'm pretty sure I can't use the GWT-RPC mode because the
RemoteServiceServlet class extends the previous HttpServlet which
isn't helpfull for me.
So basically what I'm asking is, if I have a servlet built on my
server (Glassfish V3 preview) which is called with a
HttpServletRequest and returns HttpServletResponse (of course while
utilizing Asynchronous support of Servlets 3.0)
how should I go about Implementing the handle to the call of my
servlet and the receiving of the response in the GWT side?
I have a feeling this is a very basic question but the whole AJAX
thinking is very new to me.

Thanks for reading so far,
Ittai

--~--~-~--~~~---~--~~
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: Android (1.5) Browser displays empty page

2009-09-09 Thread strandbygaard

Any news on this?

I have an HTC Hero, and at the moment I'm seeing blank pages for just
about all google services. I can get to Google's pages un-
authenticated, but when I try to authenticate, I get the blank pages.


On Aug 18, 8:02 am, Michael Wiedmann 
wrote:
> On 18 Aug., 01:07, Thomas Broyer  wrote:
>
> > A quick Google search led me tohttp://stackoverflow.com/questions/468993
>
> Unfortunately this reveals nothing at all. No output related to any
> JS errors, etc.
>
> In the meantime I found, that accessing the same GWT application using
> an iPhone shows the same behaviour: blank page.
>
> Michael

--~--~-~--~~~---~--~~
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 in a "cross site scripting mandatory" environnement

2009-09-09 Thread PFP77

   Hi,

I am developing applications in a corporate environnement where all
web applications are hosted (in an iframe) in another web application
that manages sessions and the launch of all other applications. To do
that (and use js methods exposed by the main app), every application
must must lower the document.domain to the last 2 elements (eg
myapp.example.com -> example.com).

This seems to break the "nested iframe" GWT is creating. (Javascript
permission refused on $wnd.document)

Is there a nice way to make it work (aside from adding the adequate

Re: Null pointer in generated createStreamWriter method

2009-09-09 Thread Joe Cole

I remember something like this happening once on 1.5.
>From memory (I couldn't find it in our tracker) it was to do with not
implementing RemoteService or something similar to that like not
implementing Serializable.
This may be completely wrong as it was about 1000 tickets ago :) - but
is worth a shot.

On Sep 9, 12:14 pm, Jennifer Vendetti 
wrote:
> Hi,
>
> I'm developing with GWT (version 1.7.0) and having trouble figuring
> out the source of a runtime exception.  My application compiles, runs,
> and behaves as expected in hosted mode (on both Windows and Linux).
> In browser mode (also on Windows and Linux), I get a runtime
> exception:
>
> 'com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_s...' is null
> or not an object
>
> The generated javascript where the exception occurs is:
>
> function com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_
> $createStreamWriter__Lcom_google_gwt_user_client_rpc_impl_RemoteServiceProxy_2
> (this$static){
>   var clientSerializationStreamWriter;
>   clientSerializationStreamWriter =
> com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_
> $ClientSerializationStreamWriter__Lcom_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_2Lcom_google_gwt_user_client_rpc_impl_Serializer_2Ljava_lang_String_2Ljava_lang_String_2
> (new
> com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter(),
> this
> $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_serializer,
> this
> $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_moduleBaseURL,
> this
> $static.com_google_gwt_user_client_rpc_impl_RemoteServiceProxy_serializationPolicyName);
>
> clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_objectCount
> = 0;
>   java_util_AbstractHashMap_$clearImpl__Ljava_util_AbstractHashMap_2
> (clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_objectMap);
>
> clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_stringMap.clear__
> ();
>   java_util_ArrayList_$clear__Ljava_util_ArrayList_2
> (clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_stringTable);
>
> clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_encodeBuffer
> = java_lang_StringBuffer_$StringBuffer__Ljava_lang_StringBuffer_2(new
> java_lang_StringBuffer());
>
> com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_
> $writeString__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_2Ljava_lang_String_2
> (clientSerializationStreamWriter,
> clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_moduleBaseURL);
>
> com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_
> $writeString__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStreamWriter_2Ljava_lang_String_2
> (clientSerializationStreamWriter,
> clientSerializationStreamWriter.com_google_gwt_user_client_rpc_impl_ClientSerializationStreamWriter_serializationPolicyStrongName);
>   return clientSerializationStreamWriter;
>
> }
>
> The browser's script debugger reports that "this$static" is null, but
> I don't know what could be causing this.
>
> Can anyone give suggestions here?
>
> Thank you,
> Jennifer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: what are prerequisites for learning google window toolkit

2009-09-09 Thread davidRoe

which could also be phrased as "you will gain Java skills".  I came to
GWT from JavaScript and found the transition from one language to
another to be easy, you should find it to be a similar experience from
Flex.

on the down-side, Java can be pretty verbose at times, but at least
you won't be using an Adobe product.

On Sep 8, 3:12 am, Paul Robinson  wrote:
> You need java skills. HTML and CSS will help, but you can get started
> without that.
>
> The end user doesn't need any application installed in their browser
> (like flash does) because everything gets compiled to javascript. You do
> not need javascript skills, although you can mix in native javascript if
> you want to.
>
> Developers don't need any particular tools apart from java and any
> editor you like. Most people here seem to use Eclipse for their
> development environment.
>
> Paul
>
>
>
> hari wrote:
> > Hi friends,
> > I am working as a Flex developer.
> > Recently i listen about GWT (Google window toolkit).
> > I think it is also RIA tech. like Flex.
> > Please provide some information about GWT.
> > what are prerequisites for learning google window toolkit.
> > which softwares are we use for developing GWT application. like  for
> > running flex applications we use flashplayer.like that which softwares
> > we use for GWT.
>
> > Thanks in advance.
>
> > Regards,
> > Harish.K
--~--~-~--~~~---~--~~
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 RPC Hibernate - again and again

2009-09-09 Thread Thomas Holmes
I get the idea that ouside packages need to be include in the module ...
but of course I am going to include code from outside packages 
Hibernate and Spring jars are outside ... and there is no source code:

so, here are some errors;
[ERROR] Line 5: The import org.springframework.orm cannot be resolved
[ERROR] Line 10: HibernateDaoSupport cannot be resolved to a type
[ERROR] Line 14: The method getHibernateTemplate() is undefined for the type
TestDaoImpl

So, I added this to my StockWatcher.gwt.xml:
 
  

But now I get:
[TRACE] Loading inherited module
'org.springframework.orm.hibernate3.support.HibernateDaoSupport'
[ERROR] Unable to find
'org/springframework/orm/hibernate3/support/HibernateDaoSupport.gwt.xml' on
your classpath;
could be a typo, or maybe you forgot to include a classpath entry for
source?

And then the application won't run at all ..

On Wed, Sep 9, 2009 at 6:49 AM, Raphael André Bauer <
raphael.andre.ba...@gmail.com> wrote:

>
> On Tue, Sep 8, 2009 at 10:17 PM, Thomas Holmes
> wrote:
> >
> > Would you have some sample code that I could see ... or a link to
> > some.
> >
> > I'm going to continue looking through my book, and use their example
> > that uses the Command Pattern.
> >
> > I am getting tons of errors because my DAO's and POJO's are in another
> > package, so I was working with GWT Modules to try and make that work.
> > I finally gave that up and tried to move that code closer to the
> > Client directory ... and there a still a ton of errors.
> >
> > The most bothersome was in my UserDaoImpl where I have a
> > "getHibernateTemplate" method, and it says that the source code isn't
> > there.
> most likely this code is referenced by a module. some ideas:
> - check by which module it is referenced (if you have more than one)
> and make sure it is inherited by that module.
> - make sure it is under the /client/ directory, so that the gwt
> crosscompiler can find the sourcecode.
> - make sure the file has no external references (import xyz) that are
> not in the client directory
>
> this should make that part work... hope that helps...
>
> r
>
>
>
>
>
> >
> > So ... it is driving me crazy ...
> >
> > Thanks!
> >Tom
> >
> > On Sep 8, 4:04 pm, David Durham  wrote:
> >> > After research in this group, and on Google in general, I have found
> >> > that I should look at Gilead.
> >> > So, I downloaded the latest jars and the latest sample (using GWT 1.6)
> >> > and sure enough, AGAIN, the sample uses hibernate.cfg.xml and
> >> > Object.hbm.xml files 
> >>
> >> I was able to make GWT and Hiberate (JPA annotations) work without
> >> Gilead.  I just used the underlying beanlib replicators to undo the
> >> cglib or javassist stuff before serializing to client.
> >>
> >> -Dave
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
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 in gwt showcase on mac

2009-09-09 Thread Ian Bambury
You might be better off in a gxt forum.
Ian

http://examples.roughian.com


2009/9/9 sprz 

>
> A colleague told me that he investigated this issue a while ago, and
> it seems that the proxy is updating some files, including the
> cache.html file
> However, the gxt showcase
> http://www.extjs.com/examples/explorer.html#overview
> is perfecly working
> any idea why?
>
> On Sep 9, 8:33 am, sprz  wrote:
> > Hi all,
> >
> > when launching the gwt showcasehttp://
> gwt.google.com/samples/Showcase/Showcase.html
> > under Mac OS X 10.5.8 with Firefox 3.5.2, nothing is diplayed in the
> > browser and I get the following error message in Firebug:
> >
> > invalid XML tag syntax at the line 548 of the following file:
> > E943AC7B81BAEC8BF004F3678598AB22.cache.html
> >
> > And here is the line 548:
> > function DEb(a){if(a<=30){return 1< > (a-30)}}
> >
> > I get this error behind the proxy of my client office...
> >
> > Cheers,
> >
> > Steve
> >
>

--~--~-~--~~~---~--~~
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: Designer

2009-09-09 Thread Nathan Wells

Danny,

(1) This is an English forum. If you want people to respond to your
request, please at least post a computer-assisted translation.

(2) This is a developer forum. If you are looking for a graphic
designer, please use the many many sites available for this. If there
aren't any specific to German graphic designers, perhaps you could
create one and make millions!

Auf Deutsch:

Danny,

(1) Dies ist ein Englisches Forum. Wenn Sie Antworten auf Ihre Anfrage
wollen, bitte zumindest eine computergestützte Übersetzung
einreichen.

(2) Dies ist ein Entwickler Forum. Wenn Sie eine Grafik-Designer
suchen, benutzen Sie bitte die vielen, vielen Webites, die fur dieses
Zweck entwickelt wurde. Wenn es keine gibt, die fuer deutschen
Grafiker zugedacht wurde, könnten Sie vielleicht sie erstellen und
dabei sich reich machen!

(Entschuldigung. Ich kann ja viel mehr Deutsch verstehen als
schreiben)

On Sep 9, 12:20 am, Danny  wrote:
> Guten Morgen!
> Das GWT setze ich schon einige Zeit (erfolgreich) ein, allerdings
> bisher ohne Designer. Um mir die Arbeit zu erleichtern, bin ich nun
> allerdings auf der Suche nach einen visuellen Designer für
> Oberflächen. Kann mir jemand eine empfehlen, die in Eclipse integriert
> ist und als Freeware erhältlich ist?
> Meine Google-Suchen dazu waren nicht allzusehr von Erfolg gekrönt ;-)
> Danke!
> Schöne Grüße
> Daniel
--~--~-~--~~~---~--~~
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 in gwt showcase on mac

2009-09-09 Thread sprooooz

A colleague told me that he investigated this issue a while ago, and
it seems that the proxy is updating some files, including the
cache.html file
However, the gxt showcase http://www.extjs.com/examples/explorer.html#overview
is perfecly working
any idea why?

On Sep 9, 8:33 am, sprz  wrote:
> Hi all,
>
> when launching the gwt 
> showcasehttp://gwt.google.com/samples/Showcase/Showcase.html
> under Mac OS X 10.5.8 with Firefox 3.5.2, nothing is diplayed in the
> browser and I get the following error message in Firebug:
>
> invalid XML tag syntax at the line 548 of the following file:
> E943AC7B81BAEC8BF004F3678598AB22.cache.html
>
> And here is the line 548:
> function DEb(a){if(a<=30){return 1< (a-30)}}
>
> I get this error behind the proxy of my client office...
>
> Cheers,
>
> Steve
--~--~-~--~~~---~--~~
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: Serializing Class objects

2009-09-09 Thread Bohoej

Thanks

On Sep 9, 3:43 pm, David Given  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Bohoej wrote:
>
> [...]
>
> > I am trying to send Class objects from the server to the client, and
> > then used GWT.create to make instances of these classes.
>
> You can't do this at all --- GWT.create() is a magic(TM) function that
> requires a class *literal* as an argument. You can't use it with variables!
>
> e.g.:
>
> Class c = Fnord.class;
> Object o = GWT.create(c); /* wrong */
>
> Object o = GWT.create(Fnord.class); /* right */
>
> So your only option is going to be to send a value identifying the class
> from the server to the client and use something like a big switch
> statement to generate an object of the right type.
>
> - --
> David Given
> d...@cowlark.com
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (Cygwin)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkqnsO4ACgkQf9E0noFvlzjGLgCgh0b0Q8cx7rFGdgpizZ9iOt+A
> YkgAnj2k0aZa3DD5LrRSHWPUkqFI7MUP
> =aRqv
> -END PGP SIGNATURE-
--~--~-~--~~~---~--~~
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: Serializing Class objects

2009-09-09 Thread David Given

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bohoej wrote:
[...]
> I am trying to send Class objects from the server to the client, and
> then used GWT.create to make instances of these classes.

You can't do this at all --- GWT.create() is a magic(TM) function that
requires a class *literal* as an argument. You can't use it with variables!

e.g.:

Class c = Fnord.class;
Object o = GWT.create(c); /* wrong */

Object o = GWT.create(Fnord.class); /* right */

So your only option is going to be to send a value identifying the class
from the server to the client and use something like a big switch
statement to generate an object of the right type.

- --
David Given
d...@cowlark.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqnsO4ACgkQf9E0noFvlzjGLgCgh0b0Q8cx7rFGdgpizZ9iOt+A
YkgAnj2k0aZa3DD5LrRSHWPUkqFI7MUP
=aRqv
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
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: Can it possible.. I need your ideas...

2009-09-09 Thread venki

Ok..

But in that case every image will come to browser as individual only.
It poses multiple requests for all images. That is the problem i am
facing..

Any way.. Say i have all images of all users at compile time only. I
mean i will take the users images information in advance or from
another site like that... After having i will create their
corresponding image bundle. As a result i will be having all image
bundles(one big image of all uploaded images of a particular user) of
all users.



My question is.. GWT compiler is creating one image bundle at compile
time and it is fetching individual images from it right...
Here can i specify to GWT compiler to use already existing image
bundle rather than creating image bundle at the compile time.

Thank you for sharing your idea






On Sep 8, 4:34 pm, Sri  wrote:
> Image Bundle is not going to help you in this case. ImageBundle
> requires all images to be available at compile time. In your case, the
> userscanupload the images at run time, so you need a different
> solution.
>
> You should just write a servlet which returns the appropriate image
> for the logged in user, and give the url for your servlet to an Image
> Widget.
>
> On Sep 7, 11:37 am, venki  wrote:
>
> > We are able to image bundle localization. So based on locale the
> > corresponding image bundle will be loaded right??
>
> > My question is..
>
> > Say i am having 1000 users to my site. At the time of registration i
> > am allowing the users to upload their interested images to be shown
> > after logged in. So here i have to create 1000 image bundles according
> > to each users images.
>
> > My question:-canwe make itpossibleusing image bundle. So based on
> > some user information i have to point to its corresponding image
> > bundle.
>
> > Great thanks in advance
>
> > I will wait for your ideas...
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Serializing Class objects

2009-09-09 Thread Bohoej

Hi

I am trying to send Class objects from the server to the client, and
then used GWT.create to make instances of these classes. The problem
is that GWT complains that Class objects are not serializable, but the
java.lang.Class does implement the serializable interface.

My service interface looks as follows:
===
@RemoteServiceRelativePath("timeline")
public interface TimelineService extends RemoteService {
public ArrayList>
getBankPeriods(String id);
}


My Async Interface looks as follows:
===
public interface TimelineServiceAsync {
public void getBankPeriods(String
id,AsyncCallback>>
callback);
}


My service implementation looks as follows (VacationType is a subclass
of PeriodTypeInformation:
==
public class TimelineServiceImpl extends RemoteServiceServlet
implements TimelineService {
   public ArrayList>
getBankPeriods(String id) {
   ArrayList> periods = new
ArrayList>();
   periods.add(PeriodTypeInformation.class);
   periods.add(VacationType.class);
   return periods;
   }
}


My calling function looks as follows:
=
AsyncCallback>>
callback = new AsyncCallback>>() {
  public void onSuccess(ArrayList> result) {
for (Class period : result) {
  timeline.addPeriodToBank(new Period((PeriodTypeInformation)
GWT.create(period)));
}
  }
  public void onFailure(Throwable caught) {
 // Failed - do something
  }
};
timelineService.getBankPeriods(timeline.getId(), callback);


PeriodTypeInformation is serializable according to GWT (and so is
VacationType) and both have zero argument public constructors to use
with GWT.create(). If I dont try to send the classes via RPC, but hard
code the two classes instead, everything functions as expected.

Is there something I'm missing or is Class objects not serializable in
GWT?

Thanks

/Morten

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



What permutations get compiled ?

2009-09-09 Thread nicolas de loof
Hi
I'm trying to reduce my build time by setting appropriate properties.
Reducing number of permutation seems to be the simpliest way to reduce the
gwt-complation time.

Anyway I get some strange result as number of permutation proceed, and would
like to trace what property combination was used for them. Is there any way
to enable such logging on gwt compiler ?

Thansk,
Nicolas

--~--~-~--~~~---~--~~
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: FlowPanel

2009-09-09 Thread Rami Alkhalyleh
Thanks a lot Ian

with display=inline, it's working fine




thanks

On Wed, Sep 9, 2009 at 2:24 PM, Ian Bambury  wrote:

> Set the VP's 'display' property to 'inline'.
> And maybe ask yourself if you really need VPs (tables) or whether more
> flowpanels (simple divs) would do.
> Ian
>
> http://examples.roughian.com
>
>
>
> 2009/9/9 Rami Alkhalyleh 
>
>> Hi,
>>
>> thanks Tamas for your reply.
>>
>> I need to use the flow panel to control over the flow layout, which means,
>> If I have many panels in the flow panel, and I removed one of them in the
>> middle, the flow panel suppose to layout it again to do a shift for those
>> panels that are after the removed one.
>>
>>
>> thanks
>>
>>
>> On Wed, Sep 9, 2009 at 11:31 AM, Tamás Gömbös  wrote:
>>
>>> Hi,
>>>
>>> Put a HorizontalPanel on each VerticalPanel:
>>>
>>> HorizontalPanel hp1 = new HorizontalPanel();
>>> vp1.add(hp1);
>>>
>>> 
>>>
>>> To be honest, I don't really understand GWT's layout handling but this
>>> works everytime for me, when I'd like to change the size of a panel in both
>>> horizontal and vertical direction.
>>>
>>> Hope this helps!
>>>
>>>
>>> 2009/9/9 Rami Alkhalyleh 
>>>
 Hi

  Actually I need to use the FlowPanel, I need to list my widgets in a
 flow way horizontally, the vertical panels that I'm trying to add them to
 the flow panel has a width also a height, but it didn't work, also I tried
 to put each vertical panel in a horizontal panel but I got the same result,
 the flow panel list them vertically, also I tried to use a simple panel
 instead of vertical panel then add them to the flow panel but the flow 
 panel
 list them vertically.

 this is a sample code:

 public class MyProject implements EntryPoint {

   private final FlowPanel fp = new FlowPanel();
   private final SimplePanel vp1 = new SimplePanel();
   private final SimplePanel vp2 = new SimplePanel();
   private final SimplePanel vp3 = new SimplePanel();

   public void onModuleLoad() {

 fp.setStyleName("fpTest");
 vp1.setStyleName("vpTest");
 vp2.setStyleName("vpTest");
 vp3.setStyleName("vpTest");
 fp.setWidth("500px");
 fp.setHeight("500px");
 vp1.setWidth("74px");
 vp1.setHeight("80px");
 vp2.setWidth("74px");
 vp2.setHeight("80px");
 vp3.setWidth("74px");
 vp3.setHeight("80px");
 fp.add(vp1);
 fp.add(vp2);
 fp.add(vp3);
 RootPanel.get("divId").add(fp);

   }
 }

 Note: the styles 'fpTest' and 'vpTest' contains just a background color,
 and if you try to use a vertical panel instead of simple panel, the same
 result which is list them vertically.

 thanks a lot

 On Wed, Sep 9, 2009 at 7:18 AM, Saeed Zarinfam wrote:

>
> Hi
> You must add your vertical panel in a horizontal panel or decrease
> vertical panel width.
>
>


 --
 Best Regards
Rami



>>>
>>>
>>>
>>
>>
>> --
>> Best Regards
>>Rami
>>
>>
>>
>
> >
>


-- 
Best Regards
   Rami

--~--~-~--~~~---~--~~
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: Translate localised messages in GWT app

2009-09-09 Thread mars1412

> After some research I'm thinking maybe we should use the gwt dynamic
> translations (somewhat like you mention mars1412), but this implies
> that all language strings of the application should be transferred all
> at once and then will be stored as a javascript variable on the
> client. It's not such a disaster, but it would be nice to prevent
> having to load all language strings at once.
>
> OT: And as for static translation, I'm not too impressed with how that
> works anyway, it should have been much simpler.
in my opinion the static translation stuff is really great and a
magnitude better than any dynamic translation
 * compiler optimization
   * will not include any unused translations
   * will inline the variables for best performance
 * compile-time checking:
   * this is an invaluable feature, because you can make sure at
compile time, that the translations have the correct number of
variables and even type-checking is possible
 * when you code against the text-interface, it's very easy in your
IDE to search for all places where the text is used
 * and I guess: with the RunAsync feature the static translation way
will nly the texts that are really required

do you really want to abandon all this, just to see the changes
immediately?

If so, I'm afraid there are no simple ways to get around loading all
texts at once on startup.


--~--~-~--~~~---~--~~
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: Change the text for FileUpload widget

2009-09-09 Thread mars1412

I don't think HTML allows you to set this.
AFAIK this text is always in the language, that the browser is run in.

On 9 Sep., 12:00, hockie  wrote:
> How can I change the text for FileUpload? I want to the text "browse"
> in other languages.
--~--~-~--~~~---~--~~
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: seo and google web toolkit

2009-09-09 Thread Ian Bambury
2009/9/9 Alexander Cherednichenko 

>
> Problem in having static content and enriching it with gwt is that
> you'll need to create application for each page (if they are
> different) and app creation in GWT is fairly overheaded. Also, you'll
> need to have gwt app bootstrap on each page load, which is no good.
>

Not true. You can keep your content in HTML pages on the server and fetch it
as needed. You then link these pages to create a non-JS site which is
crawlable. If you name the pages after the history token you would use in
the GWT site, then a) you can write a generic function to get the page and
b) you can write a JS script to redirect JS-enabled visitors who click on a
search link to the right place in the GWT app.

E.g. of you search Google for 'GWT DockPanel' my site's link is '
examples.roughian.com/Panels__DockPanel.htm' but if you click on the link,
you end up at 'http://examples.roughian.com/index.htm#Panels~DockPanel'.
The initial payload for the site is about 30% of what it would be if the
text were included, and I can update it without a recompile.

Ian

http://examples.roughian.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlowPanel

2009-09-09 Thread Ian Bambury
Set the VP's 'display' property to 'inline'.
And maybe ask yourself if you really need VPs (tables) or whether more
flowpanels (simple divs) would do.
Ian

http://examples.roughian.com


2009/9/9 Rami Alkhalyleh 

> Hi,
>
> thanks Tamas for your reply.
>
> I need to use the flow panel to control over the flow layout, which means,
> If I have many panels in the flow panel, and I removed one of them in the
> middle, the flow panel suppose to layout it again to do a shift for those
> panels that are after the removed one.
>
>
> thanks
>
>
> On Wed, Sep 9, 2009 at 11:31 AM, Tamás Gömbös  wrote:
>
>> Hi,
>>
>> Put a HorizontalPanel on each VerticalPanel:
>>
>> HorizontalPanel hp1 = new HorizontalPanel();
>> vp1.add(hp1);
>>
>> 
>>
>> To be honest, I don't really understand GWT's layout handling but this
>> works everytime for me, when I'd like to change the size of a panel in both
>> horizontal and vertical direction.
>>
>> Hope this helps!
>>
>>
>> 2009/9/9 Rami Alkhalyleh 
>>
>>> Hi
>>>
>>>  Actually I need to use the FlowPanel, I need to list my widgets in a
>>> flow way horizontally, the vertical panels that I'm trying to add them to
>>> the flow panel has a width also a height, but it didn't work, also I tried
>>> to put each vertical panel in a horizontal panel but I got the same result,
>>> the flow panel list them vertically, also I tried to use a simple panel
>>> instead of vertical panel then add them to the flow panel but the flow panel
>>> list them vertically.
>>>
>>> this is a sample code:
>>>
>>> public class MyProject implements EntryPoint {
>>>
>>>   private final FlowPanel fp = new FlowPanel();
>>>   private final SimplePanel vp1 = new SimplePanel();
>>>   private final SimplePanel vp2 = new SimplePanel();
>>>   private final SimplePanel vp3 = new SimplePanel();
>>>
>>>   public void onModuleLoad() {
>>>
>>> fp.setStyleName("fpTest");
>>> vp1.setStyleName("vpTest");
>>> vp2.setStyleName("vpTest");
>>> vp3.setStyleName("vpTest");
>>> fp.setWidth("500px");
>>> fp.setHeight("500px");
>>> vp1.setWidth("74px");
>>> vp1.setHeight("80px");
>>> vp2.setWidth("74px");
>>> vp2.setHeight("80px");
>>> vp3.setWidth("74px");
>>> vp3.setHeight("80px");
>>> fp.add(vp1);
>>> fp.add(vp2);
>>> fp.add(vp3);
>>> RootPanel.get("divId").add(fp);
>>>
>>>   }
>>> }
>>>
>>> Note: the styles 'fpTest' and 'vpTest' contains just a background color,
>>> and if you try to use a vertical panel instead of simple panel, the same
>>> result which is list them vertically.
>>>
>>> thanks a lot
>>>
>>> On Wed, Sep 9, 2009 at 7:18 AM, Saeed Zarinfam wrote:
>>>

 Hi
 You must add your vertical panel in a horizontal panel or decrease
 vertical panel width.


>>>
>>>
>>> --
>>> Best Regards
>>>Rami
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> Best Regards
>Rami
>
> >
>

--~--~-~--~~~---~--~~
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: FlowPanel

2009-09-09 Thread Rami Alkhalyleh
Hi,

thanks Tamas for your reply.

I need to use the flow panel to control over the flow layout, which means,
If I have many panels in the flow panel, and I removed one of them in the
middle, the flow panel suppose to layout it again to do a shift for those
panels that are after the removed one.


thanks


On Wed, Sep 9, 2009 at 11:31 AM, Tamás Gömbös  wrote:

> Hi,
>
> Put a HorizontalPanel on each VerticalPanel:
>
> HorizontalPanel hp1 = new HorizontalPanel();
> vp1.add(hp1);
>
> 
>
> To be honest, I don't really understand GWT's layout handling but this
> works everytime for me, when I'd like to change the size of a panel in both
> horizontal and vertical direction.
>
> Hope this helps!
>
>
> 2009/9/9 Rami Alkhalyleh 
>
>> Hi
>>
>>  Actually I need to use the FlowPanel, I need to list my widgets in a flow
>> way horizontally, the vertical panels that I'm trying to add them to the
>> flow panel has a width also a height, but it didn't work, also I tried to
>> put each vertical panel in a horizontal panel but I got the same result, the
>> flow panel list them vertically, also I tried to use a simple panel instead
>> of vertical panel then add them to the flow panel but the flow panel list
>> them vertically.
>>
>> this is a sample code:
>>
>> public class MyProject implements EntryPoint {
>>
>>   private final FlowPanel fp = new FlowPanel();
>>   private final SimplePanel vp1 = new SimplePanel();
>>   private final SimplePanel vp2 = new SimplePanel();
>>   private final SimplePanel vp3 = new SimplePanel();
>>
>>   public void onModuleLoad() {
>>
>> fp.setStyleName("fpTest");
>> vp1.setStyleName("vpTest");
>> vp2.setStyleName("vpTest");
>> vp3.setStyleName("vpTest");
>> fp.setWidth("500px");
>> fp.setHeight("500px");
>> vp1.setWidth("74px");
>> vp1.setHeight("80px");
>> vp2.setWidth("74px");
>> vp2.setHeight("80px");
>> vp3.setWidth("74px");
>> vp3.setHeight("80px");
>> fp.add(vp1);
>> fp.add(vp2);
>> fp.add(vp3);
>> RootPanel.get("divId").add(fp);
>>
>>   }
>> }
>>
>> Note: the styles 'fpTest' and 'vpTest' contains just a background color,
>> and if you try to use a vertical panel instead of simple panel, the same
>> result which is list them vertically.
>>
>> thanks a lot
>>
>> On Wed, Sep 9, 2009 at 7:18 AM, Saeed Zarinfam wrote:
>>
>>>
>>> Hi
>>> You must add your vertical panel in a horizontal panel or decrease
>>> vertical panel width.
>>>
>>>
>>
>>
>> --
>> Best Regards
>>Rami
>>
>>
>>
>
> >
>


-- 
Best Regards
   Rami

--~--~-~--~~~---~--~~
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 RPC Hibernate - again and again

2009-09-09 Thread Raphael André Bauer

On Tue, Sep 8, 2009 at 10:17 PM, Thomas Holmes wrote:
>
> Would you have some sample code that I could see ... or a link to
> some.
>
> I'm going to continue looking through my book, and use their example
> that uses the Command Pattern.
>
> I am getting tons of errors because my DAO's and POJO's are in another
> package, so I was working with GWT Modules to try and make that work.
> I finally gave that up and tried to move that code closer to the
> Client directory ... and there a still a ton of errors.
>
> The most bothersome was in my UserDaoImpl where I have a
> "getHibernateTemplate" method, and it says that the source code isn't
> there.
most likely this code is referenced by a module. some ideas:
- check by which module it is referenced (if you have more than one)
and make sure it is inherited by that module.
- make sure it is under the /client/ directory, so that the gwt
crosscompiler can find the sourcecode.
- make sure the file has no external references (import xyz) that are
not in the client directory

this should make that part work... hope that helps...

r





>
> So ... it is driving me crazy ...
>
> Thanks!
>                            Tom
>
> On Sep 8, 4:04 pm, David Durham  wrote:
>> > After research in this group, and on Google in general, I have found
>> > that I should look at Gilead.
>> > So, I downloaded the latest jars and the latest sample (using GWT 1.6)
>> > and sure enough, AGAIN, the sample uses hibernate.cfg.xml and
>> > Object.hbm.xml files 
>>
>> I was able to make GWT and Hiberate (JPA annotations) work without
>> Gilead.  I just used the underlying beanlib replicators to undo the
>> cglib or javassist stuff before serializing to client.
>>
>> -Dave
> >
>

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



Change the text for FileUpload widget

2009-09-09 Thread hockie

How can I change the text for FileUpload? I want to the text "browse"
in other languages.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Openlayers Gwt

2009-09-09 Thread Gilles

Hi all,

I have an application running on gwt together with openlayers. I am
trying to change the mouse cursor.
It works fine on the gwt with DOM.setStyleAttribute(RootPanel.get
().getElement(), "cursor", "wait");
but as soon as I "mouse over" the openlayers the cursor change to
normal.

Any clues ?

Thanks !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Translate localised messages in GWT app

2009-09-09 Thread Steven De Groote

Actually not all users should be able to have their own language, some
users with a specific role should be able to translate the
application.

If that is possible inline that is fine, but I was thinking more like
having a seperate page where a user is presented with all language
strings and fields where he can fill in the translated value.

After some research I'm thinking maybe we should use the gwt dynamic
translations (somewhat like you mention mars1412), but this implies
that all language strings of the application should be transferred all
at once and then will be stored as a javascript variable on the
client. It's not such a disaster, but it would be nice to prevent
having to load all language strings at once.

OT: And as for static translation, I'm not too impressed with how that
works anyway, it should have been much simpler.

I'm happy to hear any suggestions/ideas.


Steven


On Sep 9, 10:22 am, mars1412  wrote:
> sure it is, but I would not recommend it
>
> you could store the translations in a databasetable and on startup
> read all translations for the current language, tranfer them to the
> client and then have a client-side mapping from your multilang keys to
> the actual translation
>
> then you could simply write an edit view for your translation table
> and let your users edit the translations
>
> however - this is a lot of work and you'll lose all the benefits of
> static string translation
>
> why would you want each user to have her own translations?
>
> On Sep 8, 3:56 pm, Steven De Groote  wrote:
>
> > Hi,
>
> > we're looking for a way to enable users to change translations of a
> > currently running GWT application. We are currently using static
> > string i18n, but this has the disadvantage that we need to compile
> > each time again when there is a language correction.
>
> > I have looked in the documentation, but I can't find a way to somehow
> > change these translated messages from a GWT webpage.
>
> > Is this possible in any way?
>
> > Thanks,
> > Steven
--~--~-~--~~~---~--~~
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: Custom boot-strap / setting locale from request headers

2009-09-09 Thread Thomas Broyer



On 9 sep, 04:10, Andrew Lee  wrote:
> Hi Thomas -
> Thanks for the info. That sounds like it would work great if I had control
> over the host page. Unfortunately what I'm trying to do is make an
> embeddable widget, so I will not actually have any control over the host
> page.

Have a look at this then: 
http://groups.google.fr/group/google-web-toolkit/msg/fce0b435446877f7
(link #3)

> I've managed to dynamically insert CSS into the page, so I don't
> actually need the nocache.js file to do any of the CSS for me.
>
> I would need to load the js dependencies though... have you ever done this
> manually? Any idea where docs might be? Is this even possible?

Using a  in your gwt.xml (just as you could have done with
CSS and the  element)?
and/or using ImmutableResources/ClientBundle?
http://code.google.com/p/google-web-toolkit-incubator/wiki/ImmutableResourceBundle
http://code.google.com/p/google-web-toolkit/wiki/ClientBundle

If you really do want to customize the bootstrap sequence (I wouldn't
do that, as it means far more maintenance IMO; unless you inherit an
existing primary linker and don't modify its template), have a look at
http://code.google.com/p/google-web-toolkit/wiki/LinkerDesign and how
IFrameLinker or XSLinker are implemented.
Using this approach, you could have your nocache.js contain a section
generated by a servlet (parsing the Accept-Language, most likely
making use of the server utilities from the GWT Incubator) to
initialize a variable, and override the  with one that uses this variable instead of looking at
the query-string and/or meta.
...but you could do the same by first injecting a script that'd
initialize a global variable and then use that variable in your
 (just like I proposed a year ago with the
langdetect service; but you could use your own servlet instead; most
likely based on the server utilities from the GWT Incubator)

--~--~-~--~~~---~--~~
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: dubuger does not stop on breakpoints pls help

2009-09-09 Thread divya.aj...@gmail.com

I had same problems too :D
Hope this discussion thread is helpful.
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/c36a02cfdd8ed09f/a65136a57bfd679a?hl=en&lnk=gst&q=++Issues+Debugging+GWT+apps++#a65136a57bfd679a


On Sep 8, 6:11 pm, olivier nouguier 
wrote:
> Hi,
>  Probably a jdk 
> issue:http://stackoverflow.com/questions/1022007/why-are-my-breakpoints-ign...
>
> On Tue, Sep 8, 2009 at 3:02 PM, ben fenster  wrote:
>
> > im using eclipse galliano 3.5 and althouge im in debug mode the damm
> > thing wont stop at the breakpoints pls help !!!
>
> --
> A coward is incapable of exhibiting love; it is the prerogative of the
> brave.
> --
> Mohandas Gandhi
--~--~-~--~~~---~--~~
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: Translate localised messages in GWT app

2009-09-09 Thread mars1412

sure it is, but I would not recommend it

you could store the translations in a databasetable and on startup
read all translations for the current language, tranfer them to the
client and then have a client-side mapping from your multilang keys to
the actual translation

then you could simply write an edit view for your translation table
and let your users edit the translations

however - this is a lot of work and you'll lose all the benefits of
static string translation

why would you want each user to have her own translations?


On Sep 8, 3:56 pm, Steven De Groote  wrote:
> Hi,
>
> we're looking for a way to enable users to change translations of a
> currently running GWT application. We are currently using static
> string i18n, but this has the disadvantage that we need to compile
> each time again when there is a language correction.
>
> I have looked in the documentation, but I can't find a way to somehow
> change these translated messages from a GWT webpage.
>
> Is this possible in any way?
>
> Thanks,
> Steven
--~--~-~--~~~---~--~~
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: Generation of useful random ID

2009-09-09 Thread divya.aj...@gmail.com

Why does the client need to generate a key for the database?
The server should return this to the client instead.

In the windows world there exists a globally unique identifier called
GUID. The GUID is guaranteed to be unique on all machines.
It is a combination of the MAC address + Current Time + some other
things.
The idea is that the no. should be unique when generated on any
machine at any time!
You can generate such a unique no. easily on the client side.

However, i would advise against clients generating Unique IDs for
database keys.

On Sep 8, 6:32 pm, Bohoej  wrote:
> Hi
>
> I would like to be able to generate a random ID, which can be used as
> a key in a database. I found a md5 implementation in javascript, which
> works fine on the client side of my code, but not on the server side.
> On the other hand I have also found alot of good examples of random
> string generators to use on the server side, but they all use
> libraries which are not usable on the client side.
>
> I am only thinking about md5 because it should be fairly unique. I
> would like to be able to call the same function on both client and
> server side, as I use this in connection with creation of data objects
> that should be sent back and forth with GWT RPC, and if they dont have
> an ID, I will generate it. This means that I need an algorithm for a
> unique random string that can be translated by GWT.
>
> Any suggestions to a solution?
>
> /Morten
--~--~-~--~~~---~--~~
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: FlowPanel

2009-09-09 Thread Tamás Gömbös
Hi,

Put a HorizontalPanel on each VerticalPanel:

HorizontalPanel hp1 = new HorizontalPanel();
vp1.add(hp1);



To be honest, I don't really understand GWT's layout handling but this works
everytime for me, when I'd like to change the size of a panel in both
horizontal and vertical direction.

Hope this helps!


2009/9/9 Rami Alkhalyleh 

> Hi
>
>  Actually I need to use the FlowPanel, I need to list my widgets in a flow
> way horizontally, the vertical panels that I'm trying to add them to the
> flow panel has a width also a height, but it didn't work, also I tried to
> put each vertical panel in a horizontal panel but I got the same result, the
> flow panel list them vertically, also I tried to use a simple panel instead
> of vertical panel then add them to the flow panel but the flow panel list
> them vertically.
>
> this is a sample code:
>
> public class MyProject implements EntryPoint {
>
>   private final FlowPanel fp = new FlowPanel();
>   private final SimplePanel vp1 = new SimplePanel();
>   private final SimplePanel vp2 = new SimplePanel();
>   private final SimplePanel vp3 = new SimplePanel();
>
>   public void onModuleLoad() {
>
> fp.setStyleName("fpTest");
> vp1.setStyleName("vpTest");
> vp2.setStyleName("vpTest");
> vp3.setStyleName("vpTest");
> fp.setWidth("500px");
> fp.setHeight("500px");
> vp1.setWidth("74px");
> vp1.setHeight("80px");
> vp2.setWidth("74px");
> vp2.setHeight("80px");
> vp3.setWidth("74px");
> vp3.setHeight("80px");
> fp.add(vp1);
> fp.add(vp2);
> fp.add(vp3);
> RootPanel.get("divId").add(fp);
>
>   }
> }
>
> Note: the styles 'fpTest' and 'vpTest' contains just a background color,
> and if you try to use a vertical panel instead of simple panel, the same
> result which is list them vertically.
>
> thanks a lot
>
> On Wed, Sep 9, 2009 at 7:18 AM, Saeed Zarinfam wrote:
>
>>
>> Hi
>> You must add your vertical panel in a horizontal panel or decrease
>> vertical panel width.
>>
>>
>
>
> --
> Best Regards
>Rami
>
> >
>

--~--~-~--~~~---~--~~
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 Project MultiModule ClassPath Configuration

2009-09-09 Thread Prosky

Is there a person that can help me? I can give more information about
the project or i can send with email the project if there is a person
that want help me. I think that the problem is a small problem.

Thank you.

On 7 Set, 16:07, Prosky  wrote:
> Good morning to all users of the forum;  i have a
> small problem with a gwt project and i hope that you solve it. (sorry
> for the my bad english)
> The Project is constituted by one module that is called "Portal", that
> contain the entry point class, and by another support module that is
> called "Canvas", that not contain another entry point.
> The project is completely but i can't execute him because i don't
> configurate the classpath in the correctly mode.
> Infact during the execution i have this problem:
>
> [ERROR] Unable to load module entry point class
> org.unicam.resourceome.web.portal.client.Portal (see associated
> exception for details)
> com.google.gwt.core.client.JavaScriptException: (TypeError): Property
> or method doesn't support by the object
>  number: -2146827850
>  description: Property or method doesn't support by the object
>         at
> org.unicam.gwt.graphics.client.canvas.impl.GWTCanvasImplDefault.createElement
> (Native Method)
>         at org.unicam.gwt.graphics.client.canvas.GWTCanvas.
> (GWTCanvas.java:138)
>         at org.unicam.gwt.graphics.client.GWTGraphicsView.init
> (GWTGraphicsView.java:42)
>         at org.unicam.gwt.graphics.client.GWTGraphicsView.
> (GWTGraphicsView.java:38)
>         at
> org.unicam.resourceome.web.portal.client.Portal.onModuleLoad
> (Portal.java:198)
>
> I think that the problem is in the configuration of the classpath,
> isn't true? I already read the getting started guide and another two
> guide about the correct configuration of the classpath but i dont'
> solve nothing.
> So i put in the last part of the post the xml file of each module, i
> hope that this thing help you.
>
> The .xml file of module Portal that implements the entry point is
> that:
>
> 
>         
>         
>
>
>         
>
>          class='org.unicam.resourceome.web.portal.client.Portal' /
>
> 
>
> The .xml file of module CanvasGraphics without entry point is that:
>
> 
>
>         
>         
>
>         
> class="org.unicam.gwt.graphics.client.canvas.impl.GWTCanvasImplDefault">
>                 
> class="org.unicam.gwt.graphics.client.canvas.impl.GWTCanvasImpl" />
>         
>
>         
> class="org.unicam.gwt.graphics.client.canvas.impl.GradientFactoryImplDefault">
>                  class="org.unicam.gwt.graphics.client.canvas.GradientFactory" />
>         
> 
>
> Another strange problem is that the compilation of the project is
> correct, the run of the project in web mode is correct but the running
> and debugging in hosted mode give the error of the frist part of the
> post.
>
> Can someone help me or suggest the solution?
>
> If i must give more information about the application is not the
> problem. Thank tou another time for the answer, sorry for this bad
> english.
>
> Sorry for the bad english, thank you for the answer. Bye.
> 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: Manual Compiling of Eclipse Project

2009-09-09 Thread Alexander Cherednichenko

take a look here for various ant tasks:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/380e018631b15380

On Sep 7, 7:58 am, venki  wrote:
> @java -Xms512M -Xmx512M -cp "%~dp0\src;E:\codebase\DimDimCodeBase
> \v5.0\ThirdPartyPackages\gwt17\gwt-user.jar;E:\codebase\DimDimCodeBase
> \v5.0\ThirdPartyPackages\gwt17\gwt-dev-windows.jar
> com.google.gwt.dev.Compiler  
>
> On Sep 5, 10:37 pm, Charlie  wrote:
>
> > Hello
> > I have an ecplise gwt project and I want to be able to take my source
> > files and compile it manually using the "ant" command in the command
> > line but I can't manage to understand how to do it.
> > Can anyone help?
--~--~-~--~~~---~--~~
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: seo and google web toolkit

2009-09-09 Thread Alexander Cherednichenko

I think they would never execute your code (even in javascript) on
their crawlers :)
electricity costs more.

As for htmlUnit and google adSense - no prob with that; I believe, you
could easily leave adsense blocks as externals even in HTMLUnit
output. Or find other solution which would do this.

Problem in having static content and enriching it with gwt is that
you'll need to create application for each page (if they are
different) and app creation in GWT is fairly overheaded. Also, you'll
need to have gwt app bootstrap on each page load, which is no good.

On Sep 8, 7:53 pm, Raphael André Bauer 
wrote:
> On Tue, Sep 8, 2009 at 10:45 AM, Alexander
>
> Cherednichenko wrote:
>
> > I am not expert, though i have some recommendations.
>
> > 1. Don't even try to generate _really_ different content for searchbot
> > and for the end-user. Sometimes googles sends request with 'normal'
> > user-agent, and if you have different content for users and bots,
> > you'll be banned (because of cloacking :) )
> > Though, there are some ways to do so,
> > Though, not sure /me has enough time to work with google customer
> > support to clear this issue (if they have customer support, have never
> > heard of it:) )
>
> > 2. You may try create normal static application with unique URS, and
> > just wrap some page elements with javascript to provide rich
> > functionality. UIBinder is of new stuff.
>
> > 3. You may try searhcing here (in this group) for such problems.
> > People resolve it in different ways. I've heard of interesting way -
> > generating html content by HTMLUnit and feeding it to the bot. Simply
> > - if your application sees it is a bot, it runs gwt (javascript) code
> > in headless browser on the serverside, and flushes momental DOM
> > snapshot to the response.
>
> > 4. Look here 
> > -http://lexaux.blogspot.com/2009/03/afraid-of-being-banned-by-google-f...
> > I was going to make a little demo some time ago, but had no time to
> > complete it :( sorry. Though, there may still be some interesting
> > facts.
>
> @all: thanks for the ideas.
>
> htmlunit is a really cool idea. however, i am not sure if it will fail
> with adsense and related concepts. so my solution is roughly like
> this:
> - generate regular html output
> - enrich / regroup html output via gwt
>
> so - there is no double content (i hope at least). google is happy,
> because parsing my page is really simple. and the user is happy -
> because he can use nice web 2.0 goodies.
>
> ok. this breaks some things of the gwt (i was hoping that i can forget
> almost everything about html and css and cross browser compatability
> issues), but it works.
>
> btw. in my opinion, google should run a 1sec htmlunit against my
> webpage, not me. but - ok takes way more CPU and the result is not
> predictable (what is this funny js generating? so somehow i can
> understand google. however - that puts gwt applications in the same
> bucket as flash applications - a bucket called "not properly indexed
> by google".
>
> thanks again,
>
> r
>
>
>
> > On Sep 7, 12:04 pm, Raphael André Bauer
> >  wrote:
> >> hey everybody,
>
> >> as every friendly web inhabitant i want that google knows my website
> >> and people that are interested in my stuff can find it easily.
> >> however, as my first experiments suggest the google bot does not even
> >> try to analyze (execute) gwt code (a working test of my concept is at
> >> [1]).
>
> >> this can -- on the one hand -- be explained by the very nature of gwt
> >> - it is javascript - much like an application that should not be
> >> indexed by a search bot by nature. but -- on the other hand -- hey! it
> >> is so simple. execute the js, see if it generates a more or less
> >> stable DOM, parse the dom and you are done. and both is from google?
> >> seems that the GWT hits the same indexing hell flash did.
>
> >> ok. maybe i am wrong here. in my opinion it is really bad news that
> >> GWT stuff is not at all analyzed by the google search bot.
>
> >> to come up with a conclusion would involve to sacrifice a lot of GWT
> >> coolness. mainly because i have to generate a lot of HTML myself that
> >> can be analyzed by search robots. i also wrote about that at [2]. it
> >> is especially interesting how [3] did "solve" the "problem".
>
> >> do the experts have any recommendations?
>
> >> thanks!
>
> >> ra!
> >> [1]http://scisurfer.com/news
> >> [2]http://blog.scisurfer.com/2009/09/gwt-and-seo-concerns.html
> >> [3]http://examples.roughian.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Designer

2009-09-09 Thread Danny

Guten Morgen!
Das GWT setze ich schon einige Zeit (erfolgreich) ein, allerdings
bisher ohne Designer. Um mir die Arbeit zu erleichtern, bin ich nun
allerdings auf der Suche nach einen visuellen Designer für
Oberflächen. Kann mir jemand eine empfehlen, die in Eclipse integriert
ist und als Freeware erhältlich ist?
Meine Google-Suchen dazu waren nicht allzusehr von Erfolg gekrönt ;-)
Danke!
Schöne Grüße
Daniel

--~--~-~--~~~---~--~~
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 doesn't index text in GWT apps

2009-09-09 Thread Raphael André Bauer

On Wed, Sep 9, 2009 at 8:41 AM, Jaap wrote:
>
> Hi,
>
> I'm working on a GWT app (it's a search application) and the main
> window is not being indexed by google. Google indexes just the static
> text in the html file and the javascript generated text not at all.
> Probably the crawler doesn't run javascript.
>
> The disadvantage however is that my app does not get properly indexed.
> The only thing I can think of to improve things is that I make the
> main window mostly a static html page with static text and images
>
> If I then do a search, the static text in the HTML should be removed.
> Any ideas on how to do this? Load a new HTML page or so, or is there
> some way to hide the static text in the html programmatically?

i started a thread 2 days ago about the same topic called "seo and
google web toolkit"...
maybe that helps...
r

>
> Jaap
>
> >
>

--~--~-~--~~~---~--~~
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: FlowPanel

2009-09-09 Thread Rami Alkhalyleh
Hi

 Actually I need to use the FlowPanel, I need to list my widgets in a flow
way horizontally, the vertical panels that I'm trying to add them to the
flow panel has a width also a height, but it didn't work, also I tried to
put each vertical panel in a horizontal panel but I got the same result, the
flow panel list them vertically, also I tried to use a simple panel instead
of vertical panel then add them to the flow panel but the flow panel list
them vertically.

this is a sample code:

public class MyProject implements EntryPoint {

  private final FlowPanel fp = new FlowPanel();
  private final SimplePanel vp1 = new SimplePanel();
  private final SimplePanel vp2 = new SimplePanel();
  private final SimplePanel vp3 = new SimplePanel();

  public void onModuleLoad() {

fp.setStyleName("fpTest");
vp1.setStyleName("vpTest");
vp2.setStyleName("vpTest");
vp3.setStyleName("vpTest");
fp.setWidth("500px");
fp.setHeight("500px");
vp1.setWidth("74px");
vp1.setHeight("80px");
vp2.setWidth("74px");
vp2.setHeight("80px");
vp3.setWidth("74px");
vp3.setHeight("80px");
fp.add(vp1);
fp.add(vp2);
fp.add(vp3);
RootPanel.get("divId").add(fp);

  }
}

Note: the styles 'fpTest' and 'vpTest' contains just a background color, and
if you try to use a vertical panel instead of simple panel, the same result
which is list them vertically.

thanks a lot

On Wed, Sep 9, 2009 at 7:18 AM, Saeed Zarinfam  wrote:

>
> Hi
> You must add your vertical panel in a horizontal panel or decrease
> vertical panel width.
> >
>


-- 
Best Regards
   Rami

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: what module contains com.google.gwt.core.ext.typeinfo.* ??

2009-09-09 Thread Transplant

Ok, so I figured it out - it's not supposed to be inherited as a
module.

Because the Generator stuff is all at compile time you can't have your
Generator classes in packages under the client source tree (unless you
specifically exclude them in a source tag).

So to anyone who is starting to work with the compile-time code
generation facilities, be sure to keep your compile-time code out of
your client package tree, or you will get the dreaded 'No source code
is available for type' errors.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: HttpServletRequest returns wrong session?

2009-09-09 Thread philipp.bouil...@gmail.com

Ok, I will try that. Thanks for your answer.

In the meantime, I had experimented a little and I found that I could
use a cookie to store the current user/encoded password combination
and, if the failure case occurs, I "re-authenticate" the user from the
information in the cookie and bind the user to the new session. This
works -- I don't really understand, why the problem occured in the
first place, but at least I do have a workaround now. For those
interested, here is the relevant snippet:

Call this, whenever a user authenticates (or in a more general case:
Whenever you assign data to a session):
private final void updateCookies(String login, String hash) {
Cookie cLogin = new Cookie("userName", login);
Cookie cPwd = new Cookie("userPassword", hash);
int maxAge;
String path = getThreadLocalRequest().getContextPath();
maxAge = 60 * 60 * 24 * 30; // 1 month

cLogin.setMaxAge(maxAge);
cPwd.setMaxAge(maxAge);

cLogin.setPath(path);
cPwd.setPath(path);

getThreadLocalResponse().addCookie(cLogin);
getThreadLocalResponse().addCookie(cPwd);
}

To read the cookie-data:
protected AuthUser getAuthUserFromCookies () {
Cookie[] cookies = getThreadLocalRequest().getCookies();
String loginName = null;
String password = null;
if (cookies != null) {
for (int i = 0; i < cookies.length; i++) {
Cookie cookie = cookies[i];
String name = cookie.getName();
String value = cookie.getValue();
if (name.equalsIgnoreCase("userName")) {
loginName = value;
} else if 
(name.equalsIgnoreCase("userPassword")) {
password = value;
}
}
}

System.err.println("Examining cookie: " + loginName + ", " +
password);

// Snip: The following omitted code authenticates the user 
using a
password hash
return successfullyAuthenticatedUser;
}

So now, it's down to the failure case:

public final synchronized UserSession getUserSession() throws
SessionExpiredException {
HttpSession session = getSession();
synchronized (session) {
UserBinding userBinding = 
(UserBinding)session.getAttribute
(SESSION_USER);
if(userBinding == null) {
System.err.println("Session cookie expired; 
re-authenticating
user...");
AuthUser user = getAuthUserFromCookies();
if (user != null) {
UserSession userSession = new 
UserSession(user, session.getId());
bindUserToSession(userSession, session);
// Be sure to update the
cookie here, again; otherwise you'll run into problems
// the next time the session
is different.
updateCookies(user.getLoginName(), 
user.getPassword());
}
userBinding = 
(UserBinding)session.getAttribute(SESSION_USER);
if (userBinding == null) {
throw new 
SessionExpiredException("Session expired!");
}
}
return userBinding.getUserSession();
}
}


On 9 Sep., 01:54, Sri  wrote:
> GWT doesn't do anything with the session, so it is strange you are
> facing such a problem.
>
> Perhaps you could make a simple servlet/jsp (independent of gwt) which
> prints the same information as above (ie. sessionid and user object),
> and access the URL via a browser. If you are seeing the same behaviour
> (session id changing), then you would have eliminated GWT from being
> the culprit.
>
> On Sep 8, 4:11 am, "philipp.bouil...@gmail.com"
>
>  wrote:
> > Hi,
>
> > for a GWT application, I need a user management servlet, thus I am
> > setting an attribute for a session in which the current user is stored
> > (like this:
>
> > HttpSession session = getThreadLocalRequest().getSession(true);
> > session.setAttribute("user", "myUserName");
>
> > Now, I do have a different service, which I use to display some data.
> > When I click on a button on the client side, the data is displayed
> > correctly -- in about 59 of 60 cases. If I click the button often
> > enough, at one point, the following code will _not_ work:
>
> > HttpSessio