Re: Could not load GWT DMP Plugin

2012-10-23 Thread Ganesh Krishnan
Seems to be a problem with Chrome rather than GWT plugin. I had the same 
issues and had to resort to IE (ugh) to continue my debug & development of 
GWT apps.
I have left a sternly worded review of Chrome following this breakage.


On Sunday, October 21, 2012 7:08:44 AM UTC+11, seas wrote:
>
> Started getting 'Could not load GWT DMP Plugin' yesterday when I start my 
> app from Eclipse using Chrome.  Happening on both work and home computers. 
>  From web searches, it looks like this has happened in the past, which 
> seemed to indicate that in those cases a new plugin was deployed that had 
> issues.  In those cases there was no clear fix except some people has 
> success rolling back to an earlier version of the plugin.
>
> I've tried reinstalling the latest plugin.  Didn't see any option for 
> downloading previous versions from the app store.  Tried restarting Chrome, 
> Eclipse, and rebooting the machine.
>
> Has there been a recent update to the plugin?  Where can I get the 
> previous one to roll back to?  Is there another update coming soon that 
> will fix this?
>
> My home set up is:
> Windows XP SP 3
> Eclipse Helios Service Release 2 build ID 20110218-0911
> Chrome 22.0.1229.94 m
> GWT Developer Plugin 1.0.11338
>
> My work set up is similar but with Window 7
>
>

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

2012-08-08 Thread ganesh R
Thank you it worked for too...

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



Re: Does GWT 2.3 provide Synchronous RPC?

2011-07-04 Thread Ganesh Magal
Thanks all for the help. There isn't any specific use case where I would
want to implement sync.RPC. I was trying to understand the GWT stockwatcher
example and was wondering if sync interface could directly be used by
creating an object of the sync. interface instead of the Async. interface.

On Mon, Jul 4, 2011 at 4:44 PM, Alain Ekambi wrote:

> What is actually the reason of making a synchronus call ?
> Is there any use case where that s necessary ?
>
>
> 2011/7/4 Dennis Haupt 
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> you can fake synchronous execution by calling the "next thing" at the
>> end of your async callback handling
>>
>> Am 04.07.2011 23:31, schrieb Kevin Jordan:
>> > 1.  It does not.
>> > 2.  The "synchronous" interface is the contract that your server-side
>> > must implement.  GWT.create also uses that class to find the Async
>> > class.
>> >
>> > On Jul 4, 10:38 am, Gunz  wrote:
>> >> Hi,
>> >> I was trying to understand and implement RPC in GWT. In the
>> >> StockWatcher example provide at GWT official website they implement
>> >> the syncronous interface and also the asyncronous interface. However
>> >> it also mentions that-  "It is not possible to call this version of
>> >> the RPC directly from the client. You must create an asynchronous
>> >> interface to all your services as shown below."
>> >>
>> >> My questions:
>> >> 1. Does GWT 2.3 support synchronous RPC?
>> >> 2. If not, why are we supposed to have the synchronous interface in
>> >> the client package?
>> >>
>> >> Thanks
>> >
>>
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v2.0.14 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iQIcBAEBAgAGBQJOEjI2AAoJENRtux+h35aGxOcP/RxSiuoJK11tNxrGEznNEQG9
>> nJyM9jJYAn98RuGSdeqe5d6yd105R4cXAUDkqTb5x88rox43w2y9csAbPDG0+wPp
>> MvzFJR8qqyD6b6g/8QxolZ/NLVxB9uz7JlSpRDYRQJkRj2dH4q5+gExlJqnj86yd
>> oYwEceiooCl/NBaUibO3bgoAjVT2whiGzYKTAjKuRlb3y1ZA/LUbsmo7fxhE/HCK
>> DToPKqCFAbuuZqr6nHKdOTk+iodEq1njfnnHWJSdD74sVgZ769eSNBpPlq5DnErk
>> 7RUfN70mtRe5De+fAfETSZ2a24PPWkhq4B5MkPSzbyrMR7JuW3+B6f/+MhUmCPBC
>> mEZfl8xkaS5O/7USzHrQifRBH19bCONauCfHaFehXQ1zMTGvqMpMlvXsgJIvNJ9Z
>> kGLXJcma10MI2rxlBEkUb35SSog1KHiLNqXKENbeAHBnGvGNLIHtkScMEoflBKuf
>> sifAzizIv0sHm+Yy1CcJJGPC9KZLFugPnHo3pSKaC4wYFWnDRHgvAZPHjkmTqgSX
>> Yin2N59P6ObcGV1FEOi9wxaP0Tx7kqFLxzOx788Qki/FPnfV3lac/2ZMbFY9R7dM
>> WZat0y0E+hQgGbGIw1Cg/ml8NpB3rbed3UEanK+CEggEunAT0IdoB4WJAlan/MiC
>> zkvdr9UcxTU1vIMvSz3H
>> =WEBR
>> -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.
>>
>>
>
>
> --
>
> GWT API for  non Java based platforms
> http://code.google.com/p/gwt4air/
> http://www.gwt4air.appspot.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.
>

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



Questions on 'Static Analysis' of the Client-End Java Source code.

2011-06-07 Thread Ganesh R
Team,

Would it add value to statically analyze the Java Source code (that
eventually gets compiled into Javascript) ?
If yes, please do recommend static analyzers for GWT Java source code.
If no, please do add a comment on why it does not add value.

We do understand that the generated javascript undergoes rigorous
static analysis by the GWT compiler.

Thanks very much


Ganesh

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



Progressive Browser Rendering using GWT RequestBuilder

2011-05-27 Thread Ganesh R
Team,

The following is the Setup we have:

1. A FASTCGI based  server
2. GWT based client.

We use the Request Builder class to communicate with the FASTCGI
backend to fetch (say) 500 log messages to load in a single page that
has a GWT GRID.

To improve the user perceived performance, we have the FASTCGI server
flush log messages in chunks of 30 each to the (GWT) client. However ,
we find that the GWT client waits until all the data (all 500
messages) are received and does not proceed to render the table 30
messages at a time, i.e., the request callback does not seem to be
invoked the number of times equivalent to the number of server side
flushes.

WE are testing with Firefox and IE , both of whom support progressive
rendering.

THANKS VERY MUCH FOR ANY SUGGESTIONS

Ganesh


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



Interface problem between GWT and C using JNI

2011-03-28 Thread ganesh
Hi,

I am planning to change the look and feel of the existing project.
My current project has backend code in C, and JNI layer to interact
with GUI(JAVA). Upon user actions in GUI, I transfer the information
to backend using JNI calls. Recently I came across the GWT and
impressed with it, thought of using it for current GUI, but am stuck
in interfacing GWT JAVA code(server) making JNI call to C code.

Just to test the GWT and JNI,
i) I added a sample GWT web application(example provided by Google in
GWT documentation) code to eclipse, where server and client code is in
Java. It is working fine after compiling in eclipse.

Later I added 'HelloWorld.c' file which just prints the 'Hello world'
to standard output stream, and a Hello.java file at server side, which
loads the native object file to Test.java file using inbuilt load
library function call.
Then I made a 'Test' class call in original GWT server JAVA file.

NOTE: I've linked the jna.jar file to eclipse for this project as
external jar file(as per GWT documentation), and placed the native
library file of C along with the Original GWT server class file.

Now when I try to compile the above code in eclipse, eclipse shows up
the message stating :
---
Starting Jetty on port 
  [WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
com.mycompany.mywebapp.client.GreetingService.greetServer(java.lang.String)
throws java.lang.IllegalArgumentException' threw an unexpected
exception: java.lang.UnsatisfiedLinkError:
com.mycompany.mywebapp.server.GreetingServiceImpl.sayHi(Ljava/lang/
String;)V
---
Appreciate your help.

Thank you,
Ganny

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



want to set browser to full screen mode

2010-09-28 Thread ganesh b
hai to all,
i am new to gwt, i want to run my gwt page in full screen mode, can
any tell me to to do this.

regards
ganesh

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



Problem in sending RPC call while using AnalogX proxy

2010-07-28 Thread Ganesh
Friends

I have developed an application using GWT & deployed it to my client.
My client uses AnalogX proxy server. Now problem is he is not able to
access my application due to AnalogX. If he uses direct connection to
internet or some other proxy server like WinProxy, he is able to
access my application. I tried AnalogX proxy server & faced the same
problem.

I tried deploying a simple core AJAX example (in javascript without
GWT) & it's running fine at client's end & at my machine also. Can
anyone suggest why this problem is coming while my application is
accessed using AnalogX proxy

Thanks

Ganesh

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



Re: How to compile multiple modules independent of each other

2010-02-06 Thread Ganesh
Friends, any comment on this.

Ganesh

On Jan 18, 1:32 pm, Ganesh  wrote:
> Hello Chris
>
> Sorry for being late, actually was out of office so could not check my
> emails.
>
> Here I want to extend GWT's library and provide a more powerful
> library to end users. e.g. I can provide a combo field where user can
> select multiple values as provided by gmail while composing mail for
> selecting To, Cc & Bcc. A more powerful date field can be provided
> which understands user's inputs intelligently & much more widgets like
> this. Now my problem is I want to compile each of these widgets
> separately in a  so that if changes are made in some base widget, & no
> changes are done in extending widgets, js of extending widgets should
> not be downloaded on client side. It is only possible when each module
> generates it's own js files without generating js of it's parent
> module.
>
> Now it will be really helpful if you could provide some help how we
> can do it. Even if we need to apply some patch in GWT's compiler,
> kindly hint for this & we can opt for that too :)
>
> Thanks in advance.
>
> Ganesh Bansal
>
> On Jan 8, 4:12 am, Chris Ramsdale  wrote:
>
> > Ganesh,
>
> > If you wouldn't mind, please provide us with some hypothetical, real world
> > examples of widgets that you are describing, as well as how they would
> > interact and depend on each other.
>
> > Typically hosting multiple GWT-based widgets on your servers for others to
> > consume within a mashup is a non-issue, as the consumer would simply include
> > script tags that reference your widgets. In some cases a separate iframe or
> > xs linker might be necessary, but the base cases should run right out of the
> > box.
>
> > The more complicated part (and again, I may be misunderstanding you) is
> > having widget x rely on widget y, with the requirement that they compile
> > separately and produce separate js.
>
> > Do you have a sample project that you could provide?
>
> > - Chris
>
> > On Thu, Jan 7, 2010 at 2:25 AM, Ganesh  wrote:
> > > Would request some one to comment on this so that I can move further
> > > with my application. Kindly let me if not possible in GWT so that I
> > > can look further for some other technology for my project.
>
> > > Ganesh Bansal
>
> > > On Jan 5, 10:08 am, Ganesh  wrote:
> > > > Hello Sri
>
> > > > Thanks for your comments. But I think my requirement is a very genuine
> > > > and if can be achieved in GWT, it will be a great feature for creating
> > > > client side component libraries using GWT. I would request to some one
> > > > from GWT team to comment on this whether it is possible (might be with
> > > > the help of some patch -:)) or if they are planning to provide it in
> > > > future releases of GWT.
>
> > > > Thanks
>
> > > > Ganesh Bansal
>
> > > > On Jan 1, 3:57 am, Sripathi Krishnan 
> > > > wrote:
>
> > > > > GWT was never meant to be used that way. If you want to share widgets,
> > > it
> > > > > has to be done at compile time, not at runtime.
>
> > > > > The gwt-exporter <http://code.google.com/p/gwt-exporter/> project can
> > > help
> > > > > you to some extent, you can have a look at it.
>
> > > > > --Sri
>
> > > > > 2009/12/31 Ganesh 
>
> > > > > > Hi All
>
> > > > > > I am using GWT2.0. I want to create some client side widgets by
> > > > > > extending GWT's widgets. These widgets will be deployed on my server
> > > &
> > > > > > I will provide public links of js (.nocache.js) file of these 
> > > > > > widgets
> > > > > > so that a user can include these in his application's html page & 
> > > > > > use
> > > > > > them. I will deploy many of such widgets on my server. If a user
> > > wants
> > > > > > to use more than one widget, he need to include js file of each
> > > widget
> > > > > > in his html file. Each widget will have it's own module.
>
> > > > > > Further my widgets can be dependent on each other. Suppose Widget1 
> > > > > > is
> > > > > > dependent on Widget2 & user wants to use Widget1, he needs to 
> > > > > > include
> > > > > > js of both widgets (Widget1 & Widget2) in his html file.
>
> &

Re: How to compile multiple modules independent of each other

2010-01-18 Thread Ganesh
Hello Chris

Sorry for being late, actually was out of office so could not check my
emails.

Here I want to extend GWT's library and provide a more powerful
library to end users. e.g. I can provide a combo field where user can
select multiple values as provided by gmail while composing mail for
selecting To, Cc & Bcc. A more powerful date field can be provided
which understands user's inputs intelligently & much more widgets like
this. Now my problem is I want to compile each of these widgets
separately in a  so that if changes are made in some base widget, & no
changes are done in extending widgets, js of extending widgets should
not be downloaded on client side. It is only possible when each module
generates it's own js files without generating js of it's parent
module.

Now it will be really helpful if you could provide some help how we
can do it. Even if we need to apply some patch in GWT's compiler,
kindly hint for this & we can opt for that too :)

Thanks in advance.

Ganesh Bansal

On Jan 8, 4:12 am, Chris Ramsdale  wrote:
> Ganesh,
>
> If you wouldn't mind, please provide us with some hypothetical, real world
> examples of widgets that you are describing, as well as how they would
> interact and depend on each other.
>
> Typically hosting multiple GWT-based widgets on your servers for others to
> consume within a mashup is a non-issue, as the consumer would simply include
> script tags that reference your widgets. In some cases a separate iframe or
> xs linker might be necessary, but the base cases should run right out of the
> box.
>
> The more complicated part (and again, I may be misunderstanding you) is
> having widget x rely on widget y, with the requirement that they compile
> separately and produce separate js.
>
> Do you have a sample project that you could provide?
>
> - Chris
>
> On Thu, Jan 7, 2010 at 2:25 AM, Ganesh  wrote:
> > Would request some one to comment on this so that I can move further
> > with my application. Kindly let me if not possible in GWT so that I
> > can look further for some other technology for my project.
>
> > Ganesh Bansal
>
> > On Jan 5, 10:08 am, Ganesh  wrote:
> > > Hello Sri
>
> > > Thanks for your comments. But I think my requirement is a very genuine
> > > and if can be achieved in GWT, it will be a great feature for creating
> > > client side component libraries using GWT. I would request to some one
> > > from GWT team to comment on this whether it is possible (might be with
> > > the help of some patch -:)) or if they are planning to provide it in
> > > future releases of GWT.
>
> > > Thanks
>
> > > Ganesh Bansal
>
> > > On Jan 1, 3:57 am, Sripathi Krishnan 
> > > wrote:
>
> > > > GWT was never meant to be used that way. If you want to share widgets,
> > it
> > > > has to be done at compile time, not at runtime.
>
> > > > The gwt-exporter <http://code.google.com/p/gwt-exporter/> project can
> > help
> > > > you to some extent, you can have a look at it.
>
> > > > --Sri
>
> > > > 2009/12/31 Ganesh 
>
> > > > > Hi All
>
> > > > > I am using GWT2.0. I want to create some client side widgets by
> > > > > extending GWT's widgets. These widgets will be deployed on my server
> > &
> > > > > I will provide public links of js (.nocache.js) file of these widgets
> > > > > so that a user can include these in his application's html page & use
> > > > > them. I will deploy many of such widgets on my server. If a user
> > wants
> > > > > to use more than one widget, he need to include js file of each
> > widget
> > > > > in his html file. Each widget will have it's own module.
>
> > > > > Further my widgets can be dependent on each other. Suppose Widget1 is
> > > > > dependent on Widget2 & user wants to use Widget1, he needs to include
> > > > > js of both widgets (Widget1 & Widget2) in his html file.
>
> > > > > Now my problem is
> > > > > - How to compile my Widget1's module so that while compiling Widget1,
> > > > > it doesn't generate js for Widget2 as it will be provided to it at
> > run
> > > > > time (as user will include Widget2's js file in his html file).
> > > > > - How Widget1 will be able to use Widget2 & it's method as GWT
> > > > > obfuscates all java code at compile time. I can't choose option for
> > > > > not obfuscating code due to si

Re: How to compile multiple modules independent of each other

2010-01-06 Thread Ganesh
Would request some one to comment on this so that I can move further
with my application. Kindly let me if not possible in GWT so that I
can look further for some other technology for my project.

Ganesh Bansal

On Jan 5, 10:08 am, Ganesh  wrote:
> Hello Sri
>
> Thanks for your comments. But I think my requirement is a very genuine
> and if can be achieved in GWT, it will be a great feature for creating
> client side component libraries using GWT. I would request to some one
> from GWT team to comment on this whether it is possible (might be with
> the help of some patch -:)) or if they are planning to provide it in
> future releases of GWT.
>
> Thanks
>
> Ganesh Bansal
>
> On Jan 1, 3:57 am, Sripathi Krishnan 
> wrote:
>
> > GWT was never meant to be used that way. If you want to share widgets, it
> > has to be done at compile time, not at runtime.
>
> > The gwt-exporter <http://code.google.com/p/gwt-exporter/> project can help
> > you to some extent, you can have a look at it.
>
> > --Sri
>
> > 2009/12/31 Ganesh 
>
> > > Hi All
>
> > > I am using GWT2.0. I want to create some client side widgets by
> > > extending GWT's widgets. These widgets will be deployed on my server &
> > > I will provide public links of js (.nocache.js) file of these widgets
> > > so that a user can include these in his application's html page & use
> > > them. I will deploy many of such widgets on my server. If a user wants
> > > to use more than one widget, he need to include js file of each widget
> > > in his html file. Each widget will have it's own module.
>
> > > Further my widgets can be dependent on each other. Suppose Widget1 is
> > > dependent on Widget2 & user wants to use Widget1, he needs to include
> > > js of both widgets (Widget1 & Widget2) in his html file.
>
> > > Now my problem is
> > > - How to compile my Widget1's module so that while compiling Widget1,
> > > it doesn't generate js for Widget2 as it will be provided to it at run
> > > time (as user will include Widget2's js file in his html file).
> > > - How Widget1 will be able to use Widget2 & it's method as GWT
> > > obfuscates all java code at compile time. I can't choose option for
> > > not obfuscating code due to size of js & security issues.
>
> > > Kindly also consider that I would like to compile Widget1 & Widget2
> > > separetly & a new version of Widget2 can be compiled at any time.
> > > After this compile, changes done in Widget2 shd reflect while it is
> > > being used through Widget1 without compiling Widget1 again.
>
> > > Any help/suggestion in this regard will be highly appreciable.
>
> > > Thanks in advance.
>
> > > Ganesh Bansal
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: How to compile multiple modules independent of each other

2010-01-04 Thread Ganesh
Hello Sri

Thanks for your comments. But I think my requirement is a very genuine
and if can be achieved in GWT, it will be a great feature for creating
client side component libraries using GWT. I would request to some one
from GWT team to comment on this whether it is possible (might be with
the help of some patch -:)) or if they are planning to provide it in
future releases of GWT.

Thanks

Ganesh Bansal

On Jan 1, 3:57 am, Sripathi Krishnan 
wrote:
> GWT was never meant to be used that way. If you want to share widgets, it
> has to be done at compile time, not at runtime.
>
> The gwt-exporter <http://code.google.com/p/gwt-exporter/> project can help
> you to some extent, you can have a look at it.
>
> --Sri
>
> 2009/12/31 Ganesh 
>
> > Hi All
>
> > I am using GWT2.0. I want to create some client side widgets by
> > extending GWT's widgets. These widgets will be deployed on my server &
> > I will provide public links of js (.nocache.js) file of these widgets
> > so that a user can include these in his application's html page & use
> > them. I will deploy many of such widgets on my server. If a user wants
> > to use more than one widget, he need to include js file of each widget
> > in his html file. Each widget will have it's own module.
>
> > Further my widgets can be dependent on each other. Suppose Widget1 is
> > dependent on Widget2 & user wants to use Widget1, he needs to include
> > js of both widgets (Widget1 & Widget2) in his html file.
>
> > Now my problem is
> > - How to compile my Widget1's module so that while compiling Widget1,
> > it doesn't generate js for Widget2 as it will be provided to it at run
> > time (as user will include Widget2's js file in his html file).
> > - How Widget1 will be able to use Widget2 & it's method as GWT
> > obfuscates all java code at compile time. I can't choose option for
> > not obfuscating code due to size of js & security issues.
>
> > Kindly also consider that I would like to compile Widget1 & Widget2
> > separetly & a new version of Widget2 can be compiled at any time.
> > After this compile, changes done in Widget2 shd reflect while it is
> > being used through Widget1 without compiling Widget1 again.
>
> > Any help/suggestion in this regard will be highly appreciable.
>
> > Thanks in advance.
>
> > Ganesh Bansal
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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




How to compile multiple modules independent of each other

2009-12-31 Thread Ganesh
Hi All

I am using GWT2.0. I want to create some client side widgets by
extending GWT's widgets. These widgets will be deployed on my server &
I will provide public links of js (.nocache.js) file of these widgets
so that a user can include these in his application's html page & use
them. I will deploy many of such widgets on my server. If a user wants
to use more than one widget, he need to include js file of each widget
in his html file. Each widget will have it's own module.

Further my widgets can be dependent on each other. Suppose Widget1 is
dependent on Widget2 & user wants to use Widget1, he needs to include
js of both widgets (Widget1 & Widget2) in his html file.

Now my problem is
- How to compile my Widget1's module so that while compiling Widget1,
it doesn't generate js for Widget2 as it will be provided to it at run
time (as user will include Widget2's js file in his html file).
- How Widget1 will be able to use Widget2 & it's method as GWT
obfuscates all java code at compile time. I can't choose option for
not obfuscating code due to size of js & security issues.

Kindly also consider that I would like to compile Widget1 & Widget2
separetly & a new version of Widget2 can be compiled at any time.
After this compile, changes done in Widget2 shd reflect while it is
being used through Widget1 without compiling Widget1 again.

Any help/suggestion in this regard will be highly appreciable.

Thanks in advance.

Ganesh Bansal

--

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




Re: Performance issues in GWT application

2009-08-31 Thread Ganesh

Hi Alexander

Thanks for your reply. Taking Apache in loop is required as I have to
setup some virtual host for accessing my application, so I need
Apache. Further regarding 3rd level named, could you please explain
what are these 3rd level names and how I can setup it. I have already
registered a domain (say myserver.com) and for DNS mapping of domain &
my server's IP, I am using a domain name service (zoneedit). But my
problem is that all of my calls to server are routing through zoneedit
(to resolve domain name).

Kindly excuse if I am misinterpreting something & would request to
explain further.

Ganesh Bansal

On Aug 28, 7:12 pm, Alexander Cherednichenko  wrote:
> Your request needs to go through too long chain, that's why it is
> slow.
> I'm not sure what's the purpose of the proxy server. Does it do any
> valuable work, or anything it does is just forwarding requests back
> and force between internet clients and your JBoss?
>
> Also, why do you need Apache on the local machine? You could just
> change JBoss configuration to listen to default port eighty, thus
> eliminating one more item from chain.
>
> What I'd recommend is to get some domain name. 3rd level names can be
> optained pretty easily. And then setup DNS to point this name to your
> jboss static ip address.
>
> In this case clients will have direct requests, except the first time
> when dns request would precede loaded one.
>
> On Aug 28, 2:30 am, Subhash Kaker 
> wrote:
>
> > Hi All
>
> > I am also facing performance issue like this.
>
> > Any suggestion/help will be appreciated.
>
> > Thanks in adv.
> > Subhash
>
> > On Aug 28, 11:10 am,Ganesh wrote:
>
> > > Hi All
>
> > > I am facing performance issues in my GWT application. My scenario is
> > > as explained below:
>
> > > My GWT application is deployed on a JBoss server which is running on a
> > > machine with static IP say 56.56.56.56 with port 8080. Now when I
> > > access my application using this IP & port, speed of my application is
> > > very good and all is running very well. Now I want to setup a named
> > > proxy server sayhttp://myserver.comforaccessingmy application. For
> > > this, I made an account on zoneedit.com and created a mapping of my
> > > named server to my static IP with port 80. On port 80 on my static
> > > server, I setup an Apache server. In Apache server's config file, I
> > > forward my all requests to JBoss server running on same machine. Now
> > > using this setup, I am able to access my application using 
> > > linkhttp://myserver.com.
>
> > > But now the performance issues started. Request which is sent to
> > > server from my application, starts taking too much time. A blank (no
> > > data is being sent b/w server & client and no processing is being done
> > > on server) request which takes 450 ms if access application through
> > > static IP, takes 1400 ms when application is accessed 
> > > usinghttp://myserver.com.
>
> > > Below is the code which I use to send request to my server:
>
> > >     _MyServiceAsync myServiceAsync = (_MyServiceAsync) GWT.create
> > > (_MyService.class);
> > >     ServiceDefTarget endpoint = (ServiceDefTarget) myServiceAsync;
> > >     String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> > >     endpoint.setServiceEntryPoint(moduleRelativeURL);
> > >     myServiceAsync.callMethod();
>
> > > The problem which seems to be is because all my requests are going to
> > > zoneedit.com and than to my server and that's why they are taking a
> > > lot of time. A solution which I thought was replacing
> > > GWT.getModuleBaseURL() with my static IP in moduleRelativeURL for
> > > sending direct request, but that didn't work because of cross domain
> > > AJAX call restriction.
>
> > > I request if someone can help me how can I achieve performance without
> > > telling exact IP (it is also difficult to remember an IP) to my
> > > clients on which my application is running. Any suggestion/help will
> > > be highly appreciated.
>
> > > Thanks in advance
>
> > >GaneshBansal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email 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 use multiple servers in a single client

2009-08-28 Thread Ganesh

Hi

I am working on a GWT application. In this, what my client needs is I
send calls to different servers on basis of request types.

Suppose there are 4 request types SELECT/INSERT/UPDATE/DELETE on basis
of operation to be performed on server. If request type is SELECT, we
need to send request to SERVER_1 and if request type is INSERT, UPDATE
OR DELETE, we need to send request to SERVER_2.

Now my question is how to send call to 2 different servers through
same client window.

Please help

Ganesh Bansal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Performance issues in GWT application

2009-08-28 Thread Ganesh

Hi David

Thanks for your reply. But I am a newbie in these type of mappings &
creating named servers. Could you please explain which type of
professional services you are writing about. Also it would be better
if you can provide some links/articles in this regard.

Ganesh.

On Aug 28, 12:23 pm, David  wrote:
> I guess you should ditch zoneedit and go for a more professional service ?
>
> On Fri, Aug 28, 2009 at 8:10 AM, Ganesh wrote:
>
> > Hi All
>
> > I am facing performance issues in my GWT application. My scenario is
> > as explained below:
>
> > My GWT application is deployed on a JBoss server which is running on a
> > machine with static IP say 56.56.56.56 with port 8080. Now when I
> > access my application using this IP & port, speed of my application is
> > very good and all is running very well. Now I want to setup a named
> > proxy server sayhttp://myserver.comfor accessing my application. For
> > this, I made an account on zoneedit.com and created a mapping of my
> > named server to my static IP with port 80. On port 80 on my static
> > server, I setup an Apache server. In Apache server's config file, I
> > forward my all requests to JBoss server running on same machine. Now
> > using this setup, I am able to access my application using link
> >http://myserver.com.
>
> > But now the performance issues started. Request which is sent to
> > server from my application, starts taking too much time. A blank (no
> > data is being sent b/w server & client and no processing is being done
> > on server) request which takes 450 ms if access application through
> > static IP, takes 1400 ms when application is accessed 
> > usinghttp://myserver.com.
>
> > Below is the code which I use to send request to my server:
>
> >    _MyServiceAsync myServiceAsync = (_MyServiceAsync) GWT.create
> > (_MyService.class);
> >    ServiceDefTarget endpoint = (ServiceDefTarget) myServiceAsync;
> >    String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> >    endpoint.setServiceEntryPoint(moduleRelativeURL);
> >    myServiceAsync.callMethod();
>
> > The problem which seems to be is because all my requests are going to
> > zoneedit.com and than to my server and that's why they are taking a
> > lot of time. A solution which I thought was replacing
> > GWT.getModuleBaseURL() with my static IP in moduleRelativeURL for
> > sending direct request, but that didn't work because of cross domain
> > AJAX call restriction.
>
> > I request if someone can help me how can I achieve performance without
> > telling exact IP (it is also difficult to remember an IP) to my
> > clients on which my application is running. Any suggestion/help will
> > be highly appreciated.
>
> > Thanks in advance
>
> > Ganesh Bansal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Performance issues in GWT application

2009-08-27 Thread Ganesh

Hi All

I am facing performance issues in my GWT application. My scenario is
as explained below:

My GWT application is deployed on a JBoss server which is running on a
machine with static IP say 56.56.56.56 with port 8080. Now when I
access my application using this IP & port, speed of my application is
very good and all is running very well. Now I want to setup a named
proxy server say http://myserver.com for accessing my application. For
this, I made an account on zoneedit.com and created a mapping of my
named server to my static IP with port 80. On port 80 on my static
server, I setup an Apache server. In Apache server's config file, I
forward my all requests to JBoss server running on same machine. Now
using this setup, I am able to access my application using link
http://myserver.com.

But now the performance issues started. Request which is sent to
server from my application, starts taking too much time. A blank (no
data is being sent b/w server & client and no processing is being done
on server) request which takes 450 ms if access application through
static IP, takes 1400 ms when application is accessed using http://myserver.com.

Below is the code which I use to send request to my server:

_MyServiceAsync myServiceAsync = (_MyServiceAsync) GWT.create
(_MyService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) myServiceAsync;
String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
endpoint.setServiceEntryPoint(moduleRelativeURL);
myServiceAsync.callMethod();

The problem which seems to be is because all my requests are going to
zoneedit.com and than to my server and that's why they are taking a
lot of time. A solution which I thought was replacing
GWT.getModuleBaseURL() with my static IP in moduleRelativeURL for
sending direct request, but that didn't work because of cross domain
AJAX call restriction.

I request if someone can help me how can I achieve performance without
telling exact IP (it is also difficult to remember an IP) to my
clients on which my application is running. Any suggestion/help will
be highly appreciated.

Thanks in advance

Ganesh Bansal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email 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 1.7 Now Available

2009-08-24 Thread Ganesh

Hi,
I migrated from GWT 1.5.0 to GWT 1.7 and I am facing a lot of issues
in serialized objects being passed via RPC. Support to java.util.List
seems to have been withdrawn and my existing code fails. Please do let
me know if this is a know are and how to take care of the same??

My code compiles fine, there are NO compilation erros. But during
runtime (via the hosted mode), I don't see my page, I just see the
"Loading..." status.

I have an object "CustomHashMap" which extends the "java.util.HashMap"
inside the client package. Now the input for this class is (String,
Object). This was working earlier in GWT 1.5, but now with GWT 1.7, it
fails. I have now changed the method signature to (String,
Serializable), now it compiles, but the same error said above occurs
at runtime.

Cheers,
Ganesh

On Jul 23, 3:54 am, Bruce Johnson  wrote:
> Hi everyone,
>
> (Most people are probably already quite aware of the new GWT 1.7 release,
> but we wanted to send out an "official" announcement we could pin to the top
> of the message list.)
>
> GWT 1.7 is a minor update that adds better support for Internet Explorer 8,
> Firefox 3.5, and Safari 4. Each of these new browser versions introduced at
> least one change that negatively impacted compiled GWT modules, so we
> recommend that you do update to GWT 1.7 and recompile your existing
> applications to ensure that they work with the latest versions of browsers.
> No source code changes on your part should be required.
>
> Normally, a minor update such as this would have been named 1.6.5 (the
> previous latest version of GWT was 1.6.4), but we did add the value "ie8" to
> the "user.agent" deferred binding property, which could impact projects
> using custom deferred binding rules that are sensitive to that property.
> Thus, we went withGWT 1.7 rather than GWT 1.6.5, to indicate that you may
> need to pay attention to that change. Details are in the release notes.
>
> In every other respect, this is just a bugfix release, so in the vast
> majority of cases, the update-recompile process should be nearly effortless.
>
> Download 
> here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=GW...
>
> Cheers,
> Bruce, on behalf of your friendly GWT Team

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email 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 1.5.3 upgrade problem with RPC

2009-03-14 Thread Ganesh

Oh...I got it.. my Impl war still had the old gwt-user/stripped-gwt
jars in addition to the gwt-servlet. It started working once I removed
the others...

Thanks...

On Mar 14, 1:05 pm, 唐振坤  wrote:
> In the GWT docs, you need to change the Content-Type from "text/plain" to
> "text/x-gwt-rpc", and update your server with GWT 1.5 gwt-servlet.jar. It
> may be caused by still using the gwt-servlet.jar of GWT Version 1.4.
>
>  In GWT 1.5, the RPC content type was switched from "text/plain" to
> "text/x-gwt-rpc".
>
> If you receive this exception, then your server is still using a GWT 1.4
> gwt-servlet.jar.
>
> On Sat, Mar 14, 2009 at 3:00 PM, Ganesh  wrote:
>
> > Hi,
> > I have a small problem when I upgraded to 1.5.3(from 1.0.21) with RPC
>
> > Exception while dispatching incoming RPC call
> > javax.servlet.ServletException: Content-Type must be 'text/plain' with
> > 'charset=
> > utf-8' (or unspecified charset)
> >        at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.readPayloadAsUtf8
> > (RemoteServiceServlet.java:507)
>
> > I googled(http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/
> > FAQ_RPCContentTypeTextPlain ).. and made changes to shell/complile and
> > my server-side class path(the impl class). I use Geronimo
>
> > I am not able to get rid of the above exception... could someone help
> > me...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT 1.5.3 upgrade problem with RPC

2009-03-14 Thread Ganesh

Hi,
I have a small problem when I upgraded to 1.5.3(from 1.0.21) with RPC

Exception while dispatching incoming RPC call
javax.servlet.ServletException: Content-Type must be 'text/plain' with
'charset=
utf-8' (or unspecified charset)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.readPayloadAsUtf8
(RemoteServiceServlet.java:507)

I googled(http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/
FAQ_RPCContentTypeTextPlain ).. and made changes to shell/complile and
my server-side class path(the impl class). I use Geronimo

I am not able to get rid of the above exception... could someone help
me...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Serialization problem

2009-01-12 Thread ganesh machkure
Hi,

I would suggest you to go through Pro web 2.0 GWT Book. There author has
given possible solution for PersistentSet, PersistenMap  and others
serialization issue with GWT using HibernateFilter and writing a different
ServerStreamSerializer class for that.

-Ganesh



On Mon, Jan 12, 2009 at 3:33 AM, huma  wrote:

>
> Hi people.
>
> I've been developing an application with hibernate + spring + gwt, and
> i've come to a point where i need some help from you!
>
> I know that hibernate generates PersistentBag for Lists ( Hibernate
> implementation of List), and I need to serialize this lists. But I
> know that GWT doesn't support PersistentBag.
>
> So, and because i've read that we can implement a custom field
> serializer, i developed a PersistentBag_CustomFieldSerializer, like
> this:
>
> package org.hibernate.collection;
>
> import com.google.gwt.user.client.rpc.SerializationException;
> import com.google.gwt.user.client.rpc.SerializationStreamReader;
> import com.google.gwt.user.client.rpc.SerializationStreamWriter;
>
> /**
>  * Custom field serializer for {...@link
> org.hibernate.collection.PersistentBag}.
>  */
> public final class PersistentBag_CustomFieldSerializer {
>
>public static void deserialize(SerializationStreamReader
> streamReader, PersistentBag instance) throws SerializationException {
>int size = streamReader.readInt();
>for (int i = 0; i < size; ++i) {
>Object obj = streamReader.readObject();
>instance.add(obj);
>}
>}
>
>public static void serialize(SerializationStreamWriter
> streamWriter, PersistentBag instance) throws SerializationException {
>int size = instance.size();
>streamWriter.writeInt(size);
>for (Object o : instance) {
>streamWriter.writeObject(o);
>}
>}
>
> }
>
> With this development, the server serializes the instance, with no
> error, but the client return's a message saying
> "This application is out of date, please click the refresh button on
> your browser."
>
> Could anyone provide with possible hints to solve this error.
>
> Best regards
>
> Hugo Marcelino
>
> >
>


-- 
Thanks N Regards
Ganesh Machkure

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



Deploy GWT application with hibernate config xml files

2008-12-30 Thread ganesh

 I have hibernate.cfg.xml and *.hbm.xml files in a package /com/test/
server/config folder.

/com/test/client/Example.java
/com/test/server/

How do i deploy these cfg.xml and hbm.xml files to the tomcat.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: History list problem in IE6 - Do I really need to patch GWT's jar

2008-11-20 Thread Ganesh

Hello Sumit

I tried adding "position:absolute" in  but same result as
before. Now waiting for your reply

Regards

Ganesh Bansal


On Nov 21, 9:11 am, Ganesh <[EMAIL PROTECTED]> wrote:
> Hello Sumit
>
> Thanks for your reply.
>
> I have already added this  tag in my host HTML page with a
> difference that "position:absolute" is missing. I don't think it
> should affect history working  but still I will try using this tag in
> my  tag and update you shortly.
>
> I am explaining my problem once more if I was not able to do it
> properly before.
>
> Problem: In IE6, although history is being maintained, but the node
> which is being added in browser's history list (list which is shown
> while pressing down button located along with back button), is showing
> link/URL of the page instead of showing title of the window. While
> it's working fine in Chrome & Mozilla. For resolving this, I need to
> hack in HistoryIE6Impl class as given in previous post.
>
> Kindly let me know if I need to explain more. (In the mean time, I am
> trying position tag and will update you accordingly.)
>
> Regards
>
> Ganesh Bansal
>
> On Nov 21, 3:41 am, Sumit Chandel <[EMAIL PROTECTED]> wrote:
>
> > Hi Ganesh,
>
> > I believe the problem you're experiencing is due to the fact that you forgot
> > to include a required iframe on your host HTML page. Specifically, the GWT
> > History mechanism uses an  trick to correctly support history in
> > IE6.
>
> > Try adding the following iframe in the body of your host HTML page:
>
> >  > style="position:absolute;width:0;height:0;border:0">
>
> > That should solve the problem without needing to hack the HistoryImplIE6
> > class.
>
> > Hope that helps,
> > -Sumit Chandel
>
> > On Tue, Nov 18, 2008 at 11:13 PM, Ganesh <[EMAIL PROTECTED]> wrote:
>
> > > Hello Friends
>
> > > Can anyone confirm if I am doing right for managing history or is
> > > there any other alternate for avoiding this patch ?
>
> > > Regards
>
> > > Ganesh Bansal
>
> > > On Nov 18, 9:29 am, Ganesh <[EMAIL PROTECTED]> wrote:
> > > > I am using GWT 1.5 and want to manage history. Whenever I call
> > > > History.newItem(token), Mozilla displays the window title in history
> > > > list But Internet Explorer shows
> > >http://localhost:/com.TestEntry/8DF40326B05334ADE3B6DCA8E9DD3DA2
> > > > in the list i.e. URL of my page instead of showing window title. When
> > > > I drilled, I noticed an issue in HistoryImplIE6's newItemImpl method.
>
> > > > It was written as below:
> > > >   protected native void newItemImpl(Element historyFrame, String
> > > > historyToken, boolean forceAdd) /*-{
> > > >     historyToken = historyToken || "";
> > > >     if (forceAdd || ($wnd.__gwt_historyToken != historyToken)) {
> > > >       var doc = historyFrame.contentWindow.document;
> > > >       doc.open();
> > > >       doc.write(' > > > id="__gwt_historyToken">' + historyToken + '');
> > > >       doc.close();
> > > >     }
> > > >   }-*/;
>
> > > > It adds an IFrame without specifying title tag. If IFrame does not
> > > > have title then it will display the complete URL in history list. For
> > > > a solution, I applied a patch in this class where I took the window
> > > > title and put it into head tag as below:
> > > >   protected native void newItemImpl(Element historyFrame, String
> > > > historyToken, boolean forceAdd) /*-{
> > > >   historyToken = historyToken || "";
> > > >     if (forceAdd || ($wnd.__gwt_historyToken != historyToken)) {
> > > >       var doc = historyFrame.contentWindow.document;
> > > >       doc.open();
> > > >  var windowTitle = $wnd.document.title;
> > > >       doc.write(''+windowTitle+' > > > head> > > > id="__gwt_historyToken">' + historyToken + '');
> > > >       doc.close();
> > > >     }
> > > >   }-*/;
> > > > and now IE is also showing window title in History list.
>
> > > > Now my question is: is it a bug of GWT ? And is there any other
> > > > alternate for this so that I need not to make a patch in GWT's jar.
>
> > > > Any help or suggestion in this regard will be highly appreciated.
>
> > > > Regards
>
> > > > GaneshBansal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: History list problem in IE6 - Do I really need to patch GWT's jar

2008-11-20 Thread Ganesh

Hello Sumit

Thanks for your reply.

I have already added this  tag in my host HTML page with a
difference that "position:absolute" is missing. I don't think it
should affect history working  but still I will try using this tag in
my  tag and update you shortly.

I am explaining my problem once more if I was not able to do it
properly before.

Problem: In IE6, although history is being maintained, but the node
which is being added in browser's history list (list which is shown
while pressing down button located along with back button), is showing
link/URL of the page instead of showing title of the window. While
it's working fine in Chrome & Mozilla. For resolving this, I need to
hack in HistoryIE6Impl class as given in previous post.

Kindly let me know if I need to explain more. (In the mean time, I am
trying position tag and will update you accordingly.)


Regards

Ganesh Bansal

On Nov 21, 3:41 am, Sumit Chandel <[EMAIL PROTECTED]> wrote:
> Hi Ganesh,
>
> I believe the problem you're experiencing is due to the fact that you forgot
> to include a required iframe on your host HTML page. Specifically, the GWT
> History mechanism uses an  trick to correctly support history in
> IE6.
>
> Try adding the following iframe in the body of your host HTML page:
>
>  style="position:absolute;width:0;height:0;border:0">
>
> That should solve the problem without needing to hack the HistoryImplIE6
> class.
>
> Hope that helps,
> -Sumit Chandel
>
> On Tue, Nov 18, 2008 at 11:13 PM, Ganesh <[EMAIL PROTECTED]> wrote:
>
> > Hello Friends
>
> > Can anyone confirm if I am doing right for managing history or is
> > there any other alternate for avoiding this patch ?
>
> > Regards
>
> > Ganesh Bansal
>
> > On Nov 18, 9:29 am, Ganesh <[EMAIL PROTECTED]> wrote:
> > > I am using GWT 1.5 and want to manage history. Whenever I call
> > > History.newItem(token), Mozilla displays the window title in history
> > > list But Internet Explorer shows
> >http://localhost:/com.TestEntry/8DF40326B05334ADE3B6DCA8E9DD3DA2
> > > in the list i.e. URL of my page instead of showing window title. When
> > > I drilled, I noticed an issue in HistoryImplIE6's newItemImpl method.
>
> > > It was written as below:
> > >   protected native void newItemImpl(Element historyFrame, String
> > > historyToken, boolean forceAdd) /*-{
> > >     historyToken = historyToken || "";
> > >     if (forceAdd || ($wnd.__gwt_historyToken != historyToken)) {
> > >       var doc = historyFrame.contentWindow.document;
> > >       doc.open();
> > >       doc.write(' > > id="__gwt_historyToken">' + historyToken + '');
> > >       doc.close();
> > >     }
> > >   }-*/;
>
> > > It adds an IFrame without specifying title tag. If IFrame does not
> > > have title then it will display the complete URL in history list. For
> > > a solution, I applied a patch in this class where I took the window
> > > title and put it into head tag as below:
> > >   protected native void newItemImpl(Element historyFrame, String
> > > historyToken, boolean forceAdd) /*-{
> > >   historyToken = historyToken || "";
> > >     if (forceAdd || ($wnd.__gwt_historyToken != historyToken)) {
> > >       var doc = historyFrame.contentWindow.document;
> > >       doc.open();
> > >  var windowTitle = $wnd.document.title;
> > >       doc.write(''+windowTitle+' > > head> > > id="__gwt_historyToken">' + historyToken + '');
> > >       doc.close();
> > >     }
> > >   }-*/;
> > > and now IE is also showing window title in History list.
>
> > > Now my question is: is it a bug of GWT ? And is there any other
> > > alternate for this so that I need not to make a patch in GWT's jar.
>
> > > Any help or suggestion in this regard will be highly appreciated.
>
> > > Regards
>
> > > GaneshBansal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: History list problem in IE6 - Do I really need to patch GWT's jar

2008-11-18 Thread Ganesh

Hello Friends

Can anyone confirm if I am doing right for managing history or is
there any other alternate for avoiding this patch ?

Regards

Ganesh Bansal

On Nov 18, 9:29 am, Ganesh <[EMAIL PROTECTED]> wrote:
> I am using GWT 1.5 and want to manage history. Whenever I call
> History.newItem(token), Mozilla displays the window title in history
> list But Internet Explorer shows  
> http://localhost:/com.TestEntry/8DF40326B05334ADE3B6DCA8E9DD3DA2
> in the list i.e. URL of my page instead of showing window title. When
> I drilled, I noticed an issue in HistoryImplIE6's newItemImpl method.
>
> It was written as below:
>   protected native void newItemImpl(Element historyFrame, String
> historyToken, boolean forceAdd) /*-{
>     historyToken = historyToken || "";
>     if (forceAdd || ($wnd.__gwt_historyToken != historyToken)) {
>       var doc = historyFrame.contentWindow.document;
>       doc.open();
>       doc.write(' id="__gwt_historyToken">' + historyToken + '');
>       doc.close();
>     }
>   }-*/;
>
> It adds an IFrame without specifying title tag. If IFrame does not
> have title then it will display the complete URL in history list. For
> a solution, I applied a patch in this class where I took the window
> title and put it into head tag as below:
>   protected native void newItemImpl(Element historyFrame, String
> historyToken, boolean forceAdd) /*-{
>   historyToken = historyToken || "";
>     if (forceAdd || ($wnd.__gwt_historyToken != historyToken)) {
>       var doc = historyFrame.contentWindow.document;
>       doc.open();
>  var windowTitle = $wnd.document.title;
>       doc.write(''+windowTitle+' head> id="__gwt_historyToken">' + historyToken + '');
>       doc.close();
>     }
>   }-*/;
> and now IE is also showing window title in History list.
>
> Now my question is: is it a bug of GWT ? And is there any other
> alternate for this so that I need not to make a patch in GWT's jar.
>
> Any help or suggestion in this regard will be highly appreciated.
>
> Regards
>
> GaneshBansal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



History list problem in IE6 - Do I really need to patch GWT's jar

2008-11-17 Thread Ganesh

I am using GWT 1.5 and want to manage history. Whenever I call
History.newItem(token), Mozilla displays the window title in history
list But Internet Explorer shows  
http://localhost:/com.TestEntry/8DF40326B05334ADE3B6DCA8E9DD3DA2
in the list i.e. URL of my page instead of showing window title. When
I drilled, I noticed an issue in HistoryImplIE6's newItemImpl method.

It was written as below:
  protected native void newItemImpl(Element historyFrame, String
historyToken, boolean forceAdd) /*-{
historyToken = historyToken || "";
if (forceAdd || ($wnd.__gwt_historyToken != historyToken)) {
  var doc = historyFrame.contentWindow.document;
  doc.open();
  doc.write('' + historyToken + '');
  doc.close();
}
  }-*/;

It adds an IFrame without specifying title tag. If IFrame does not
have title then it will display the complete URL in history list. For
a solution, I applied a patch in this class where I took the window
title and put it into head tag as below:
  protected native void newItemImpl(Element historyFrame, String
historyToken, boolean forceAdd) /*-{
  historyToken = historyToken || "";
if (forceAdd || ($wnd.__gwt_historyToken != historyToken)) {
  var doc = historyFrame.contentWindow.document;
  doc.open();
 var windowTitle = $wnd.document.title;
  doc.write(''+windowTitle+'' + historyToken + '');
  doc.close();
}
  }-*/;
and now IE is also showing window title in History list.

Now my question is: is it a bug of GWT ? And is there any other
alternate for this so that I need not to make a patch in GWT's jar.

Any help or suggestion in this regard will be highly appreciated.

Regards

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