remote debugging with Jetty and GWT?

2008-10-12 Thread markww

Hi,

I'm using Jetty 6.x as my web server. Does anyone know how to setup
remote debugging with GWT? It's difficult debugging via print
statements..

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Animation Framework

2008-10-12 Thread Jacob

I've heard that the demo site doesn't work in IE, so if you have
problems, try Firefox, or Opera, or Safari. I'm not sure yet where the
fault lies, because all that's missing is a bunch of buttons for
different effects. So far, it appears that all of the effects actually
work in IE, just not the buttons. I've run the page both identified as
and masked as IE in opera, but that's obviously not IE. Unfortunately,
all of my development is done in linux, so I don't get to test in IE
all that much. I've tested all of the actual animations and effets, so
I'll ust try to get the demo site working in IE. Just bear with me.

On Oct 12, 8:00 pm, Jacob <[EMAIL PROTECTED]> wrote:
> Thanks a lot for looking at it! I assumed when I built this that you
> wouldn't need to toggle a slide down, or in general toggle to a state
> in which the image no longer appears on screen and then do an
> animation on it. If that is something that honestly might hapen, then
> I can fix that. Unfortunately, due to the way that the garbage
> collection seems to work, if I clip an image to the point that it is
> invisible, then it is garbage collected, and if I re-clip it to the
> point that it's visible again, the image is gone. I therefore actually
> need to move the image off screen and make sure that at least 1 pixel
> is left horizontally or vertically and then when you toggle back, I
> just move it back into place. If anyone has a better workaround than
> this, please let me know.
>
> In general, for anyone looking at this, if you like at all what you
> see in the demo, but there's something that you think it's missing,
> let me know and I'll do my best to implement it as fast as possible.
> I'm just a college stude, (in case the url of the demo didn't give it
> away), but I'd like to make this animation framework as good as
> possible, because I'm currently not very satisfied with the status of
> animation in GWT.
> Also, if anyone actually makes a new animation with the framework, let
> me know (my email is on the google code page) and I'll take a look at
> it, test it, and if there's nothing wrong with it, then I'll be happy
> to package it in the framwork.
>
> On Oct 12, 4:34 pm, darkflame <[EMAIL PROTECTED]> wrote:
>
>
>
> > I notice in the demo a little problem when you toggle slidedown first,
> > then orbit.
>
> > Apart from that, good work!
>
> > On Oct 11, 11:17 pm, Jacob <[EMAIL PROTECTED]> wrote:
>
> > > For anyone who wants animations, and doesn't want to have to just plug
> > > in javascript animation libraries, I've just finished an animation/
> > > effect framework written from the ground up in GWT. Mind you, it's a
> > > framework, so it doesn't come with many animations/effects. I put in
> > > what I considered to be the basic necesities, in case that's all you
> > > need, or to be used as examples for animations/effects to help you
> > > create your own animations. Included animations are object translation
> > > (movement), orbital movement (moving around in a circle), and
> > > checkpoint based movement. The included effects are fading, sliding in
> > > all directions, and blinding in all directions. I've also included
> > > classes to do parallel and series animations. Everything I've written
> > > toggles properly and smoothly, even mid-animation. To make life
> > > easier, I've got sample code on my Google Code page and also created a
> > > javadoc (yes, everything is documented).
>
> > > check out the google code page athttp://code.google.com/p/gwt-majic/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Animation Framework

2008-10-12 Thread Jacob

Thanks a lot for looking at it! I assumed when I built this that you
wouldn't need to toggle a slide down, or in general toggle to a state
in which the image no longer appears on screen and then do an
animation on it. If that is something that honestly might hapen, then
I can fix that. Unfortunately, due to the way that the garbage
collection seems to work, if I clip an image to the point that it is
invisible, then it is garbage collected, and if I re-clip it to the
point that it's visible again, the image is gone. I therefore actually
need to move the image off screen and make sure that at least 1 pixel
is left horizontally or vertically and then when you toggle back, I
just move it back into place. If anyone has a better workaround than
this, please let me know.

In general, for anyone looking at this, if you like at all what you
see in the demo, but there's something that you think it's missing,
let me know and I'll do my best to implement it as fast as possible.
I'm just a college stude, (in case the url of the demo didn't give it
away), but I'd like to make this animation framework as good as
possible, because I'm currently not very satisfied with the status of
animation in GWT.
Also, if anyone actually makes a new animation with the framework, let
me know (my email is on the google code page) and I'll take a look at
it, test it, and if there's nothing wrong with it, then I'll be happy
to package it in the framwork.

On Oct 12, 4:34 pm, darkflame <[EMAIL PROTECTED]> wrote:
> I notice in the demo a little problem when you toggle slidedown first,
> then orbit.
>
> Apart from that, good work!
>
> On Oct 11, 11:17 pm, Jacob <[EMAIL PROTECTED]> wrote:
>
>
>
> > For anyone who wants animations, and doesn't want to have to just plug
> > in javascript animation libraries, I've just finished an animation/
> > effect framework written from the ground up in GWT. Mind you, it's a
> > framework, so it doesn't come with many animations/effects. I put in
> > what I considered to be the basic necesities, in case that's all you
> > need, or to be used as examples for animations/effects to help you
> > create your own animations. Included animations are object translation
> > (movement), orbital movement (moving around in a circle), and
> > checkpoint based movement. The included effects are fading, sliding in
> > all directions, and blinding in all directions. I've also included
> > classes to do parallel and series animations. Everything I've written
> > toggles properly and smoothly, even mid-animation. To make life
> > easier, I've got sample code on my Google Code page and also created a
> > javadoc (yes, everything is documented).
>
> > check out the google code page athttp://code.google.com/p/gwt-majic/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: EASYMOCK or JMOCK?

2008-10-12 Thread Arthur Kalmenson

Hey Ray,

I never heard of a mocking utility in GWT and I can't seem to find it
here: 
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?overview-summary.html.
Is it in the trunk maybe? This would be a real help because right now
I use interfaces to avoid having to use GWTTestCase. I guess it's good
practise in general, but sometimes I would rather use Widget in my
controller classes, and being able to mock them out would be very
nice.

Can GWTMockUtilities be used with any testing framework (TestNG) or
just with JUnit?

Yes, EasyMock rocks :)

Regards,
Arthur Kalmenson

On Oct 10, 1:47 pm, Ray Ryan <[EMAIL PROTECTED]> wrote:
> Actually, our mocking story improved in 1.5, with the addition of
> GWTMockUtilities. See that class's javadoc for a sample use with
> EasyMock.
>
> Note that this allows normal JUnit test cases to create mock instances
> of GWT widgets. E.g., if you have a controller class and you want a
> mock of the widget that it drives without having to incur the 20
> second GWTTestCase start up penalty, this is for you.
>
> If you need to test a widget itself, this won't help you.
>
> Oh, and EasyMock rocks.
>
> rjrjr
>
> On Oct 10, 6:07 am, Ponthiaux Eric <[EMAIL PROTECTED]> wrote:
>
> > If you have the time to "mock" your project you're lucky : ).
>
> > Anyway JMock looks better .
>
> > regards .
>
> > Arthur Kalmenson a écrit :
>
> > > This question was already asked a number of times.
>
> > > For server side testing, you can use any mocking framework you want.
> > > However, for client side testing of GWT specific code, you cannot use
> > > either mocking frameworks since they utilize reflection. Reflection is
> > > not supported on the client side for performance reasons.
>
> > > Regards,
> > > Arthur Kalmenson
>
> > > On Oct 8, 10:02 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > >> Can you use either EASYMOCK or JMOCK for unit testing purposes? Are
> > >> there any restrictions or problems?
>
> > >> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-12 Thread darkflame

That method worked, I wasnt aware of that method of doing it.
Cheers! :)

My own method, incidently, always worked in Firefox, and firebug
simply showed "opacity: 0.65;" for the style, without the
"alpha(opacity=65);" for IE present at all.


On Oct 13, 2:10 am, Paul Robinson <[EMAIL PROTECTED]> wrote:
> What happens if you try:
>
> Style style = temp.getElement().getStyle();
> style.setProperty("filter", "alpha(opacity=65)");
> style.setProperty("opacity", "0.65");
>
> firebug will tell you what style is in force for each element
>
> HTH
> Paul
>
>
>
> darkflame wrote:
> > I'm trying to make a standard image have a code-dependant uniform
> > transparency background, and for it to work across all browsers.
> > Doing this in css is easy, and works, but GWT seems to not be having
> > it.
>
> > I'm using simply;
>
> > temp.getElement().setAttribute("style", "filter: alpha(opacity=65);
> > opacity: 0.65");
>
> > Where temp is just an image.
>
> > This doesn't seem to have any effect, but I'm not sure why.
> > The same style code in CSS works, does it have to be different when
> > applied this way? And what referance do I look at to see the changes
> > made?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-12 Thread Paul Robinson

What happens if you try:

Style style = temp.getElement().getStyle();
style.setProperty("filter", "alpha(opacity=65)");
style.setProperty("opacity", "0.65");

firebug will tell you what style is in force for each element

HTH
Paul



darkflame wrote:
> I'm trying to make a standard image have a code-dependant uniform
> transparency background, and for it to work across all browsers.
> Doing this in css is easy, and works, but GWT seems to not be having
> it.
>
> I'm using simply;
>
> temp.getElement().setAttribute("style", "filter: alpha(opacity=65);
> opacity: 0.65");
>
> Where temp is just an image.
>
> This doesn't seem to have any effect, but I'm not sure why.
> The same style code in CSS works, does it have to be different when
> applied this way? And what referance do I look at to see the changes
> made?
>
>   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Animation Framework

2008-10-12 Thread darkflame

I notice in the demo a little problem when you toggle slidedown first,
then orbit.

Apart from that, good work!

On Oct 11, 11:17 pm, Jacob <[EMAIL PROTECTED]> wrote:
> For anyone who wants animations, and doesn't want to have to just plug
> in javascript animation libraries, I've just finished an animation/
> effect framework written from the ground up in GWT. Mind you, it's a
> framework, so it doesn't come with many animations/effects. I put in
> what I considered to be the basic necesities, in case that's all you
> need, or to be used as examples for animations/effects to help you
> create your own animations. Included animations are object translation
> (movement), orbital movement (moving around in a circle), and
> checkpoint based movement. The included effects are fading, sliding in
> all directions, and blinding in all directions. I've also included
> classes to do parallel and series animations. Everything I've written
> toggles properly and smoothly, even mid-animation. To make life
> easier, I've got sample code on my Google Code page and also created a
> javadoc (yes, everything is documented).
>
> check out the google code page athttp://code.google.com/p/gwt-majic/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-12 Thread darkflame

I'm trying to make a standard image have a code-dependant uniform
transparency background, and for it to work across all browsers.
Doing this in css is easy, and works, but GWT seems to not be having
it.

I'm using simply;

temp.getElement().setAttribute("style", "filter: alpha(opacity=65);
opacity: 0.65");

Where temp is just an image.

This doesn't seem to have any effect, but I'm not sure why.
The same style code in CSS works, does it have to be different when
applied this way? And what referance do I look at to see the changes
made?





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Module inheritance problem

2008-10-12 Thread marcelo melo

Gregor,

you made my day!!

Thanks a lot, once I included the .java files, it worked! That's the
problem of staring alone to a problem for hours...

Once again, thanks!

On Sun, Oct 12, 2008 at 11:55 AM, gregor <[EMAIL PROTECTED]> wrote:
>
> Are your source files (the .java ones) included in proxxiClient jar?
> If not include them and you should be good to go. It won't work if
> they're not.
>
> On Oct 12, 12:49 am, "marcelo melo" <[EMAIL PROTECTED]> wrote:
>> I've just found something interesting...
>>
>> This is the output of "Searching for resources within
>> file:/home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar"
>>
>>Indexing zip file: 
>> /home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
>>   br/com/proximati/proxxi/service/ProxxiClient.gwt.xml
>>   br/com/proximati/proxxi/service/ProxxiServiceFacade.class
>>   br/com/proximati/proxxi/service/client/base/Auditable.class
>>   br/com/proximati/proxxi/service/client/base/BaseVO.class
>>   br/com/proximati/proxxi/service/client/base/Identifiable.class
>>   br/com/proximati/proxxi/service/client/base/ItemState.class
>>   br/com/proximati/proxxi/service/client/base/Nameable.class
>>   br/com/proximati/proxxi/service/client/base/Property.class
>>   br/com/proximati/proxxi/service/client/base/Selectable.class
>>   br/com/proximati/proxxi/service/client/vo/MenuVO.class
>>   br/com/proximati/proxxi/service/entity/Exporta.class
>>   br/com/proximati/proxxi/service/entity/Grupo.class
>>   br/com/proximati/proxxi/service/entity/ItemMenu.class
>>   br/com/proximati/proxxi/service/entity/Pessoa.class
>>   br/com/proximati/proxxi/service/entity/base/ProxxiAuditor.class
>>   br/com/proximati/proxxi/service/model/ItemMenuModel.class
>>Searching for included resources in
>> /home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
>>   Excluding br/com/proximati/proxxi/service/client/base/ItemState.class
>>   Excluding br/com/proximati/proxxi/service/client/base/Selectable.class
>>   Excluding br/com/proximati/proxxi/service/client/vo/MenuVO.class
>>   Excluding br/com/proximati/proxxi/service/client/base/Property.class
>>   Excluding br/com/proximati/proxxi/service/entity/Pessoa.class
>>   Excluding br/com/proximati/proxxi/service/entity/ItemMenu.class
>>   Excluding br/com/proximati/proxxi/service/entity/Exporta.class
>>   Excluding br/com/proximati/proxxi/service/entity/Grupo.class
>>   Excluding br/com/proximati/proxxi/service/client/base/Auditable.class
>>   Excluding br/com/proximati/proxxi/service/ProxxiClient.gwt.xml
>>   Excluding 
>> br/com/proximati/proxxi/service/client/base/Identifiable.class
>>   Excluding br/com/proximati/proxxi/service/model/ItemMenuModel.class
>>   Excluding br/com/proximati/proxxi/service/client/base/BaseVO.class
>>   Excluding 
>> br/com/proximati/proxxi/service/entity/base/ProxxiAuditor.class
>>   Excluding br/com/proximati/proxxi/service/client/base/Nameable.class
>>   Excluding br/com/proximati/proxxi/service/ProxxiServiceFacade.class
>>No resources changed
>>
>> As you can see, it includes and excludes the classes, I noticed that
>> it happens to all modules. What is not happening is that is not
>> finding the resources it should be ("No resources changed" instead of
>> "Found new resource: ...").
>>
>> Why is it not loading the resources found under the client package?
>>
>> On Sat, Oct 11, 2008 at 8:17 PM, marcelo melo <[EMAIL PROTECTED]> wrote:
>> > I'm going nuts with this error 'cause I can't find its source.
>>
>> > I am trying to load a module from a jar into a GWT app, and when
>> > trying to run it I'm getting the error "No source code is available
>> > for type br.com.proximati.proxxi.service.client.vo.MenuVO; did you
>> > forget to inherit a required module?"
>>
>> > I know it is module related,but I can't find what I am doing wrong!
>> > The app finds and loads my module, but It doesn't find the classes
>> > inside it.
>>
>> > I am running GWTShell with -logLevel and getting the following:
>>
>> > ...
>> >  Loading inherited module 'br.com.proximati.proxxi.service.ProxxiClient'
>> > Module location:
>> > jar:file:/home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar!/br/com/proximati/proxxi/service/ProxxiClient.gwt.xml
>>
>> > ^
>> > That's my module!
>> > ...
>>
>> > Public resources found in...
>> > ...
>> > Searching for resources within
>> > file:/home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
>> >   Indexing zip file:
>> > /home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
>> > ^
>> > Once again!
>> > ...
>> > Translatable source found in...
>> > Refreshing resources
>> > ...
>> > Searching for resources within
>> > file:/home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
>> >   Indexing zip file:
>> > /home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
>> > ^
>> > And here it is once more!

PopupPanel with Parent

2008-10-12 Thread rjcarr

I'm wondering if there is a way to give a popup panel a parent.
Specifically, I have an absolute panel where the overflow is hidden
(think google maps) and I'd like a popup to go into this panel and get
hidden like everything else (think info popup in google maps).

I know I could accomplish this with a label or some other widget, but
I like the functionality the popup provides.  Is there anything I can
do to make use of the PopupPanel in my situation.  It seems adding it
to some panel would be the solution, but my tests show it doesn't seem
to like this.

Suggestions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---



Interfacing with Cometd?

2008-10-12 Thread markww

Hi,

I was looking to create a chat server using continuations, and came
across Cometd, a framework which already provides a scalable
continuation based messaging system.

I don't think we can mix it with GWT server-side though, as its
servlet interface exposes the 'service' method:


void service(HttpServletRequest request, HttpServletResponse
response);


is there anyway to interface with that in GWT? If we wanted to use GWT
RPC, I thought you need to define a servlet interface that uses plain
old data types, not a raw request with HttpServletRequest and
HttpServletResponse as the parameters.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Maps API for GWT: How to get the clicked polyline vertex?

2008-10-12 Thread Brian

When editing a polyline, how do you get the clicked vertex?

I've got a polyline that's editable.  When clicking a vertex, I want
to delete that vertex. My polyline is set up as:

map.addOverlay(poly);
poly.setEditingEnabled(true);
poly.setDrawingEnabled();

Adding a PolyLineClickHandler will tell me which polyline was clicked,
but how do you get the vertex from that?  After I get the vertex, I
want to get the vertex's index, so I can then call:
poly.deleteVertex(index)

The javascript Google maps sample here:
http://gmaps-samples.googlecode.com/svn/trunk/poly/mymapstoolbar.html

does it like so:

GEvent.addListener(poly, "click", function(latlng, index) {
if (typeof index == "number") {  // this is what I'm looking for in
the Maps API for GWT
  poly.deleteVertex(index);
} else {
// Other code
}

That 'deleteVertex when vertex clicked' is  what I'm trying to port to
my gwt app, basically.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Most efficient way to transfer larger amounts of data via RPC?

2008-10-12 Thread gregor

Hi Matt,

I've just checked an example XML file I have to hand (standardjbosscmp-
jdbc.xml) which is 115k. This comprises about 50 screen-fulls of XML
data. I think that probably qualifies as an excessive payload for a
single GWT RPC call. I suspect the reason it's slow is because the
alternatives you have tried (ftp, http etc) are using native stream
libraries to do the job, but in GWT RPC you are working in javascript
client side which is likely to be orders of magnitude slower when
parsing large strings like this.

It may be (because it in the nature of these things) that the fall off
in performance is exponential, so if you try artificially halving the
size of the string, then halving it again etc, you may well get more
than double increase in transfer speed per step leading you to an
optimum "chunk" size.

RPC involves trade offs between minimizing the number of calls against
individual call payload size. If you explained a bit more about what
all this data was and what the client does with it, you may get some
good ideas for how best to solve this. Certainly there are a number of
techniques and approaches that might answer, but it depends on your
use case.

regards
gregor

On Oct 11, 12:14 am, mtwomey <[EMAIL PROTECTED]> wrote:
> Greetings,
>
> I am still relatively new to GWT, although I've been tinkering with it
> for about a year now. I've been working on some small network
> troubleshooting tools and as part of the process, I'd like to pass
> configuration files from server to client (which are then acted upon
> by the client side code).
>
> Currently I'm doing this via GWT RPC with an ArrayList (one
> per line), but it's seems slow to me. The test file I'm using is about
> 98k and it's taking almost 4 seconds (according to Firebug's net
> analyzer) to get the response once it's submitted.
>
> Thinking that it may be the creation of so many Strings that was
> causing the delay, I devised a test passing a single 98k string - but
> the time hardly changed at all (it went down by .1 second):
>
> ###RPC test implementation###
>
>   public String stringTest() {
>     String filePath = "";
>     filePath += getServletContext().getRealPath("/");
>     filePath += "exampleConfig.txt";
>     String content = "";
>     try {
>       FileInputStream fis = new FileInputStream(filePath);
>       int x = fis.available();
>       byte b[] = new byte[x];
>       fis.read(b);
>       content = new String(b);
>     } catch (Exception e) {
>     }
>     return content;
>   }
>
> File transfers outside of RPC to this same host (e.g. ftp, scp,
> http, ...etc) are magnitudes faster. For example I can wget the same
> file in about 70ms.
>
> So I wanted to know:
>
> 1. Is this the expected behaviour for RPC? (if so, is it due to
> serialization?)
>
> 2. Is there something I'm doing wrong or just missing here (being
> fairly new to GWT)?
>
> 3. Is there another way all together that I could approach this to get
> the data to the client faster?
>
> Thanks for any comments!
>
> -Matt
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Module inheritance problem

2008-10-12 Thread gregor

Are your source files (the .java ones) included in proxxiClient jar?
If not include them and you should be good to go. It won't work if
they're not.

On Oct 12, 12:49 am, "marcelo melo" <[EMAIL PROTECTED]> wrote:
> I've just found something interesting...
>
> This is the output of "Searching for resources within
> file:/home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar"
>
>    Indexing zip file: 
> /home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
>       br/com/proximati/proxxi/service/ProxxiClient.gwt.xml
>       br/com/proximati/proxxi/service/ProxxiServiceFacade.class
>       br/com/proximati/proxxi/service/client/base/Auditable.class
>       br/com/proximati/proxxi/service/client/base/BaseVO.class
>       br/com/proximati/proxxi/service/client/base/Identifiable.class
>       br/com/proximati/proxxi/service/client/base/ItemState.class
>       br/com/proximati/proxxi/service/client/base/Nameable.class
>       br/com/proximati/proxxi/service/client/base/Property.class
>       br/com/proximati/proxxi/service/client/base/Selectable.class
>       br/com/proximati/proxxi/service/client/vo/MenuVO.class
>       br/com/proximati/proxxi/service/entity/Exporta.class
>       br/com/proximati/proxxi/service/entity/Grupo.class
>       br/com/proximati/proxxi/service/entity/ItemMenu.class
>       br/com/proximati/proxxi/service/entity/Pessoa.class
>       br/com/proximati/proxxi/service/entity/base/ProxxiAuditor.class
>       br/com/proximati/proxxi/service/model/ItemMenuModel.class
>    Searching for included resources in
> /home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
>       Excluding br/com/proximati/proxxi/service/client/base/ItemState.class
>       Excluding br/com/proximati/proxxi/service/client/base/Selectable.class
>       Excluding br/com/proximati/proxxi/service/client/vo/MenuVO.class
>       Excluding br/com/proximati/proxxi/service/client/base/Property.class
>       Excluding br/com/proximati/proxxi/service/entity/Pessoa.class
>       Excluding br/com/proximati/proxxi/service/entity/ItemMenu.class
>       Excluding br/com/proximati/proxxi/service/entity/Exporta.class
>       Excluding br/com/proximati/proxxi/service/entity/Grupo.class
>       Excluding br/com/proximati/proxxi/service/client/base/Auditable.class
>       Excluding br/com/proximati/proxxi/service/ProxxiClient.gwt.xml
>       Excluding br/com/proximati/proxxi/service/client/base/Identifiable.class
>       Excluding br/com/proximati/proxxi/service/model/ItemMenuModel.class
>       Excluding br/com/proximati/proxxi/service/client/base/BaseVO.class
>       Excluding 
> br/com/proximati/proxxi/service/entity/base/ProxxiAuditor.class
>       Excluding br/com/proximati/proxxi/service/client/base/Nameable.class
>       Excluding br/com/proximati/proxxi/service/ProxxiServiceFacade.class
>    No resources changed
>
> As you can see, it includes and excludes the classes, I noticed that
> it happens to all modules. What is not happening is that is not
> finding the resources it should be ("No resources changed" instead of
> "Found new resource: ...").
>
> Why is it not loading the resources found under the client package?
>
> On Sat, Oct 11, 2008 at 8:17 PM, marcelo melo <[EMAIL PROTECTED]> wrote:
> > I'm going nuts with this error 'cause I can't find its source.
>
> > I am trying to load a module from a jar into a GWT app, and when
> > trying to run it I'm getting the error "No source code is available
> > for type br.com.proximati.proxxi.service.client.vo.MenuVO; did you
> > forget to inherit a required module?"
>
> > I know it is module related,but I can't find what I am doing wrong!
> > The app finds and loads my module, but It doesn't find the classes
> > inside it.
>
> > I am running GWTShell with -logLevel and getting the following:
>
> > ...
> >  Loading inherited module 'br.com.proximati.proxxi.service.ProxxiClient'
> >     Module location:
> > jar:file:/home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar!/br/com/proximati/proxxi/service/ProxxiClient.gwt.xml
>
> > ^
> > That's my module!
> > ...
>
> > Public resources found in...
> > ...
> > Searching for resources within
> > file:/home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
> >           Indexing zip file:
> > /home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
> > ^
> > Once again!
> > ...
> > Translatable source found in...
> >     Refreshing resources
> > ...
> > Searching for resources within
> > file:/home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
> >           Indexing zip file:
> > /home/marcelo/desenv/projetos/proxxi/lib/proxxiClient.jar
> > ^
> > And here it is once more!
>
> > This jar has the following structure:
> > inside: br->com->proximati->proxxi->service
>
> > There are 3 packages:
> > client
> > entity
> > model
>
> > And the ProxxiClient.gwt.xml which contents are:
> > 
> >       
> > 
>
> >  And insider the client there is the package vo with the MenuVO class.
>
> > What I am missing???
--~--~---

Re: DropDownListBox - How to Use?

2008-10-12 Thread Isaac Truett

Kevin,

What happens when you select "apple" or "banana" is that an event is
fired. You can add an event handler to the list box to process that
event and react in any way you wish, such as by updating the displayed
text. As I recall you were looking for a way to display images in a
list box. In your case, I imagine you would want to replace the word
"box" with an image of the selected fruit.

- Isaac

On Fri, Oct 10, 2008 at 4:47 PM, Kevin <[EMAIL PROTECTED]> wrote:
>
> Hey,
>
> Please let me know if a DropDownListBox widget exists.
>
> I've looked and searched but found nothing.
>
> If you can't provide me with one, please tell me how this widget
> works.
>
> DropDownListBox listBox = new DropDownListBox("BOX");
> // Add an item
> listBox.addItem("Apple", "apple");
> // Add an item with a tooltip
> listBox.addItem("Banana", "banana", "A yellow fruit");
>
> I got this example from Isaac, a GWT Forum contributor. When I tested
> it, it's a ListBox with "BOX" written in the ListBox, then two
> dropdown options: apple and banana. But when you select apple or
> banana, nothing happens other than the options go away, but "BOX"
> appears still.
>
> Thanks,
> Kevin
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: How to get date fields?

2008-10-12 Thread LoneWolf

Yeah, me too :)

On Oct 9, 12:01 pm, "滋文苏" <[EMAIL PROTECTED]> wrote:
> i like your name.
>
> On Thu, Oct 9, 2008 at 5:53 PM, LoneWolf <[EMAIL PROTECTED]> wrote:
>
> > Hey,
> > How to get year, month of year, day of month in GWT application?
> > 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RequestBuilder

2008-10-12 Thread Ed

That totally depends on what you have running on the server.
If you have java running, have a look at RPC.
If not, just like any other way you would receive bytes (xml or text)
and then save it to db/disk.
The requestBuilder would be a good option to send something to the
backend... but also have a look at the file upload option (see forum
or doc).

good luck,
Ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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: Customize Hosted-mode browser

2008-10-12 Thread श्री

i got it working and i have listed the steps in my blog with
screenshot

http://slashgnu.blogspot.com/2008/10/gwt-hosted-mode-in-firefoxlinux.html


- sree

On Oct 12, 10:48 am, (श्री) GNU Yoga <[EMAIL PROTECTED]> wrote:
> would you mind sharing how you got it working
>
> On Sep 10, 9:26 pm, Thad <[EMAIL PROTECTED]> wrote:
>
> > I've been using OOPHM onLinuxwith Firefox 3.0.1 for about a week now
> > and I'm generally happy with the results.  I had some initial problems
> > converting one project over when I missed one of Eclipse's links to
> > gwt-user.jar.  That seemed to cause my RPC servlet calls to fail, but
> > I got that corrected.
>
> > Two days ago I was having some difficulty with OOPHM the Canvas widget
> > from gwt-canvas--OOPHM would launch but the Canvas would throw a
> > JavaScriptException in a random fashion:  The launch might fail two or
> > three times, but then without any change in my code whatsoever, it
> > would launch.  It seems that worked itself out by moving gwt-canvas
> > back into a JAR and putting it in my classpath.  I'd prefer to keep it
> > un-jar'ed for making modifications, but this is working for now.
>
> > On Sep 9, 8:54 am, Arthur Kalmenson <[EMAIL PROTECTED]> wrote:
>
> > > Currently in GWT (1.5 and below),hostedmodeis tied to the OS.
> > > Windows uses an IE basedhostedmode, OS X a WebKet based one, and
> > >Linuxuses a Mozilla basedhostedmode. As far as I know, these are
> > > stripped down versions of these browsers.
>
> > > Out-Of-ProcessHostedMode(OOPHM) is currently a branch in active
> > > development that should be part of GWT 1.6, from what I've 
> > > heard.OOPHMwill allow you to use any browser as yourhostedmode, even your
> > > existing browser that may have a number of extensions on it. If you're
> > > interested, take a look at the design doc 
> > > here:http://code.google.com/p/google-web-toolkit/wiki/DesignOOPHMorgrab
> > > that branch and give it a whirl. Unfortunately, I don't thinkOOPHM
> > > works correctly with Firefox yet, but others can correct me.
>
> > > Regards,
> > > Arthur Kalmenson
>
> > > On Sep 8, 9:47 am, Dimitri Kurashvili <[EMAIL PROTECTED]> wrote:
>
> > > > Title of the post mentioned above:
>
> > > > Can gwthostedbrowser render like Firefox instead of using
> > > > AppleWebKit in MacOS?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google 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
-~--~~~~--~~--~--~---