Re: Javascript errors on internet explorer

2009-02-01 Thread alex.d

My suggestion is that your URL/title/parameter_string has invalid
characters. Check it or post an actuall line of code here.

On 30 Jan., 18:54, Stan  wrote:
> The following code is generating errors on IE7 and IE8:
>
> Window.open("http://someurlhere";, "Window Title", "resizable=yes");
>
> and also the sample code from PopupPanel:
>
> new MyPopup().show();
>
> The first example turns into Javascript code:
>  $wnd.open('http://someurlhere', 'Window Title', 'resizable=yes');
> and emits an error "Invalid Argument" with the character position at
> the "$" character.
>
> Both examples give different errors at different times. Stepping
> through the Javascript in the IE debugger often shows an error "not
> implemented" in the code
>
> function dispatchEventImpl(evt, elem, listener){
>   var prevCurrentEvent;
>   if (elem == sCaptureElem) {
>     if ($eventGetTypeInt(evt) == 8192) {
>       sCaptureElem = null;
>     }
>   }
>   prevCurrentEvent = currentEvent;
>   currentEvent = evt;
>   try {
>     listener.onBrowserEvent(evt);
>   }
>    finally {
>     currentEvent = prevCurrentEvent;
>   }
>
> }
>
> with the character position at the opening brace following "finally".
>
> Both these examples work fine with Firefox.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: JVM crash in hosted mode

2009-02-01 Thread Florian

After deployment it works just fine so I guess its a problem with the
hosted mode.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: JVM crash in hosted mode

2009-02-01 Thread Florian

After deployment it works just fine so I guess its a problem with the
hosted mode.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Rotating Image Wheel

2009-02-01 Thread alex.d

Start with taking a look at this animation-example:
http://gwt.google.com/samples/Showcase/Showcase.html#CwAnimation
Probably a good place to start ;-)

On 1 Feb., 16:24, Sandile  wrote:
> Though difficult to explain from the appearance of its title, I have
> endeavored to make a rotating image wheel like the one seen 
> inhttp://www.desktoptwo.com/home page in pure GWT. Of course, the
> purpose of this post was to get any help possible because I have no
> idea how to start.
>
> The movement of the images isn't that much of a problem, I could
> always make an algorithm to take care of position relative to size.
> However, I first need to understand image overlapping in GWT as well
> as implementation of mouse events for every icon.
>
> I may be a novice, but I think this attempt at a project may break the
> ice of experience.
>
> --Sandile
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: add animation

2009-02-01 Thread Mohammad Nasir Uddin
Dear Arthur
Thanks for your rpely. Actually I intend to do that when I will press a
button a window will appear from the center of the screen by zooming in
slowly and also the window will close by zooming out slowly when i will
press close button of the window. Can you help me in doing this. If possible
please attach me code for this. Thanks again.

Best regards
Nasir

On Mon, Feb 2, 2009 at 2:25 AM, Arthur Kalmenson wrote:

>
> Normally when you want to do animations with GWT you use GWT's
> Animation class. See the Javadoc:
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/animation/client/Animation.html
> .
> This should work with any GWT widget, I'm not sure how it'll work with
> gwt-ext widgets thought.
>
> --
> Arthur Kalmenson
>
>
>
> On Sun, Feb 1, 2009 at 8:23 AM, Nasir  wrote:
> >
> > Hi every one,
> >
> > I am developing a web site using GWT. Now I want to add animation in
> > my com.gwtext.client.widgets.Window class. It means that when I will
> > press a button a window will be visible showing animation. The
> > animation will also appear when i will close the window.
> >
> > Is there any one who can help me.
> >
> >
> > best regards
> > Nasir
> >
> > >
> >
>
> >
>

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



Re: Can we load an html file and add it as a Widget?

2009-02-01 Thread alex.d

It's not really a widget(though you can probably make one). Just make
an RPC-call, let your backend read the file and send it back, and put
your html into the HTMLPanel widget.

On 2 Feb., 08:04, Joshua Partogi  wrote:
> Dear all,
>
> I know that there is an HTML class in GWT for buffering out a plain
> html. But I have a case where it would be too much having to write all
> the html in my Java class. So I was wondering whether we can just load
> an HTML file and add that loaded HTML file as a widget. Is there any
> such class like that in GWT? Or does anyone has the trick for that?
>
> Thank you in advance.
>
> --
> If you can't believe in God the chances are your God is too small.
>
> Read my blog:http://joshuajava.wordpress.com/
> Follow me on twitter:http://twitter.com/jpartogi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Can we load an html file and add it as a Widget?

2009-02-01 Thread Joshua Partogi

Dear all,

I know that there is an HTML class in GWT for buffering out a plain
html. But I have a case where it would be too much having to write all
the html in my Java class. So I was wondering whether we can just load
an HTML file and add that loaded HTML file as a widget. Is there any
such class like that in GWT? Or does anyone has the trick for that?

Thank you in advance.

-- 
If you can't believe in God the chances are your God is too small.

Read my blog: http://joshuajava.wordpress.com/
Follow me on twitter: http://twitter.com/jpartogi

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

2009-02-01 Thread Transplant

Problem solved - the history iframe was missing from the HTML file. I
should have checked that first, but the fact that it was working fine
in Firefox/Safari threw me off.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Hyperlinks dont work on IE7??

2009-02-01 Thread Transplant

Just thought I would add - I'm using GWT 1.5.3.


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



reading node of xml in gwt

2009-02-01 Thread javaz

hi ,

Please see this xml:


   ...
  Smart Card
  Biometric
   ...
   dsfsd


Can anyone please tell me how to read such xml nodes in gwt in server
side? i tried a lot but could not read xml file containing both child
and subchild. I could read xml having only only one child nodes for
e.g


card 
   sdfdf3434



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



Hyperlinks dont work on IE7??

2009-02-01 Thread Transplant

I'm having a problem with Hyperlinks not working on IE7. It appears
that there was a similar bug reported some time back with non-GWT
tokens in IE7, but my problem appears to be a bit different (total
hyperlink failure). The following code works fine on Safari/FireFox,
but does nothing on IE7. This test just inserts the Hyperlink history
token into a status element. The host page must have one div in it
with the id "page".

--- SNIP SNIP ---
public void onModuleLoad ()
{
// Create some links
HorizontalPanel hpane = new HorizontalPanel ();
hpane.add (new Hyperlink ("One", "one-token"));
hpane.add (new Hyperlink ("Two", "two-token"));
hpane.add (new Hyperlink ("Three", "three-token"));

// Create a place to catch tokens
HTML status = new HTML ("Status: ");
status.getElement ().setAttribute ("id", "status");

// Stick them in the page element
RootPanel root = RootPanel.get ("page");
root.getElement ().setInnerHTML ("");
root.add (hpane);
root.add (status);

// Setup history tracking
History.fireCurrentHistoryState ();
History.addHistoryListener (new HistoryListener () {
public void onHistoryChanged (String historyToken)
{
RootPanel s = RootPanel.get ("status");
s.getElement ().setInnerHTML ("Status: [" + 
historyToken + "]");
}
});
}
--- SNIP SNIP ---

Any clues??


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



Re: What is the most preferred way !!??

2009-02-01 Thread Ajay Garg


> I can't see that what you are proposing is that much different from the
> standard anonymous ClickListener per button approach.

Hmm, well may be there is. The standard anonymous clicklistener
approach is of type :
Button b = new Button("This is a Button", new ClickListener(){void
onClick (Widget sender)});

As can be seen, this requires one instance (of type Button), and one
class (anonymous ClickListener) creation.



On the other hand, in my case, it is :
EButton e = new EButton(){void onClick (Widget sender)};

This case requires one class ( anonymous extended EButton) creation.

Your thoughts ..??





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



Weather Service in GWT Application

2009-02-01 Thread Chris

Hello:

Does anyone know of a weather service that you can embed in an
application?  Also looking for one that does not restrict you to free
public web sites only but one that can be used in a SAS app.

thanks!

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



Re: gwt 1.5 and hibernate

2009-02-01 Thread Arthur Kalmenson

Shivi, I highly recommend doing a search on the group. This topic has
been discussed a number of times and the answers to your questions are
all there.

--
Arthur Kalmenson



On Sun, Feb 1, 2009 at 7:08 PM, Gwt Learner  wrote:
>
> Hi,
>
> I'm developing a project in Eclipse using GWT 1.5 to make an online
> shop.
> So, my basic classes like product, shopping cart are made persistent
> using hibernate(annotations)
>
> I would like to know, that when I try and integrate the code with my
> client side to display products in the gui. will gwt 1.5 be compatible
> with hibernate?
>
> would I get any serialization errors?
> are the problems with using hibernate and GWT solved ? (in the sense
> with the new version GWT 1.5)
>
> Thanks
> Shivi
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Passing JSON data error

2009-02-01 Thread Shawn Brown

> But I get a "No source code is available for type "
> "GetProductTree; did you forget to inherit a required module?"
>
> Any clues to where I'm going wrong?

Are you sure it's in your classpath.  Are you using hosted mode?  If
so, have you confirmed your class is in the shell script to launch
hosted mode?

Shawn

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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 and hibernate

2009-02-01 Thread Gwt Learner

Hi,

I'm developing a project in Eclipse using GWT 1.5 to make an online
shop.
So, my basic classes like product, shopping cart are made persistent
using hibernate(annotations)

I would like to know, that when I try and integrate the code with my
client side to display products in the gui. will gwt 1.5 be compatible
with hibernate?

would I get any serialization errors?
are the problems with using hibernate and GWT solved ? (in the sense
with the new version GWT 1.5)

Thanks
Shivi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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 get RequestBuilder data in server side?

2009-02-01 Thread Thomas Broyer



On 31 jan, 10:48, Alex Luya  wrote:
> In client,I did this:
> 
> setRequestBuilder("getSalesman.php");
> builder.sendRequest("departmentId="46tefgrdf ,getCallback(salesIDList,
> "salesman", salesman));
> 
>
> In server,I did this
> ---
> print $_GET
> ---
> but $_GET is EMPTY
>
> So,How to get request data in server side?

print $_POST ?

or if a GET is what you want (given the name of the "service"):
   setRequestBuilder("getSalesman.php?departmentId=46tefgrdf");
   builder.sendRequest(null, getCallback(salesIDList, "salesman",
salesman));
and:
   print $_GET;


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: add animation

2009-02-01 Thread Arthur Kalmenson

Normally when you want to do animations with GWT you use GWT's
Animation class. See the Javadoc:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/animation/client/Animation.html.
This should work with any GWT widget, I'm not sure how it'll work with
gwt-ext widgets thought.

--
Arthur Kalmenson



On Sun, Feb 1, 2009 at 8:23 AM, Nasir  wrote:
>
> Hi every one,
>
> I am developing a web site using GWT. Now I want to add animation in
> my com.gwtext.client.widgets.Window class. It means that when I will
> press a button a window will be visible showing animation. The
> animation will also appear when i will close the window.
>
> Is there any one who can help me.
>
>
> best regards
> Nasir
>
> >
>

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



Passing JSON data error

2009-02-01 Thread ProtoLD

I'm passing a simple set of data in JSON format back to GWT.  The
class for interpreting this contains the following code:

protected GetProductTree() { }

public final native String getCustomerName() /*-{ return
this.customername;  }-*/;


>From what I see, I should simply be able to call this class for my
response like so:

submitProject.addClickListener(new ClickListener() {
public void onClick(Widget w) {
RequestBuilder.Method method=RequestBuilder.GET;
final String url1 = 
"http://localhost:8500/getProducts.cfm";;
//Window.alert(url1);
RequestBuilder rb = new RequestBuilder(method, url1);

try {
rb.sendRequest(null, new RequestCallback() {
public void onResponseReceived(Request 
request, Response
response) {
JSONObject oResults = 
(JSONObject) JSONParser.parse
(response.getText());
GetProductTree 
oResponse = oResults.isObject
().getJavaScriptObject().cast();

Window.alert(oResponse.getCustomerName());
}

public void onError(Request arg0, 
Throwable arg1) {
Window.alert("error");
}
});
} catch (RequestException e) {

}
}
});

But I get a "No source code is available for type "
"GetProductTree; did you forget to inherit a required module?"

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



Re: JUnit tests for widgets

2009-02-01 Thread Harun Pathan
I have the similar kind mechanism used in my application.
Model-View-ControllerI am already doing similar to what you have suggested
in your article. Behaviour in controller.
But wanted to verify attachment of listeners and Widgets done in
WidgetFactory.
I will use selenium for this type of testing.

Thanks for the inputs.

On Sat, Jan 31, 2009 at 10:08 PM, Daniel Wellman  wrote:

>
> Unfortunately, the event propagation system doesn't work in
> GWTTestCase - so that means you can't send a click() message to a
> Button and expect the registered ClickListeners to be notified.  This
> means you wouldn't be able to test clicking on an Anchor in a test and
> verifying any resulting behavior, even if Anchor supported such a
> method - which I'm not sure it does.
>
> I'd recommend moving all the behavior out of any anonymous
> ClickListeners and put them onto a "controller" or "presenter" object,
> then unit test those classes using standard JUnit test cases.  You
> won't be able to verify the callbacks are wired to the correct object,
> but in my experience that was easiest to check with some manual
> exploratory testing, or some very basic Selenium tests to exercise the
> system (without going into exhaustive scenario tests, since these were
> easier to test with unit tests).
>
> I've written about my experiences with testing GWT applications here,
> if it's helpful:
>
> http://blog.danielwellman.com/2008/11/test-first-gwt-article-in-november-2008-better-software-magazine.html
>
> Cheers,
> Dan
>
> On Jan 30, 9:20 am, hpgabbar  wrote:
> > I am using GWTTestCase only, but for elements like Anchor, i am not
> > able to find a way to fire a click. on button i could do that.
> > I want to know, whether GWT provides a way a programmatic equivalent
> > of the user clicking the anchor. It is there for Button.
> >
> > On Jan 30, 3:23 am, danox  wrote:
> >
> > > The GWT has a test framework that is built on JUnit. Essentially you
> > > create tests and you can then test your widgets as java objects in
> > > your test case. The GWT test case will load up hosted mode under the
> > > covers and run your tests in a GWT environment. A quick read over the
> > > GWT docs should get you started:
> http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-...
> >
> > > On Jan 30, 4:10 am, GWTDeveloper  wrote:
> >
> > > > Hi,
> >
> > > > I am new to GWT. I wanted to know effective way of testing widgets
> > > > like button, listbox, checkbox, anchor, textbox etc.
> > > > I have created a widget factory to create these widgets and attach
> > > > given listeners.
> >
> > > > when i tried writing unit tests, i was facing problems with anchor
> > > > element's clicks. Before i jump into selenium to write these tests,
> > > > i wanted to know the effective way of testing these widgets. I want
> to
> > > > keep selenium only for testing UI Layout/styles/component placements.
> >
> > > > Your inputs are highly appreciated.
> >
> > > > Thanks.
> >
>

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



Re: about GWT compiler performance

2009-02-01 Thread Niklas Derouche
Well, for me it only generates the IE version and the time is down to about
40 percent.
clean out the www folder before the compile perhaps?

n.

On Sun, Feb 1, 2009 at 6:35 PM, Pham Tran Quoc Viet <
phamtranquocv...@gmail.com> wrote:

> Hi,Great. That went through without error. How do you verify if only ie6
> version is created? I looked at the www folder and saw a bunch of html files
> whose names are some_random_number.html
>
> The time it took to compile did not seem to improve either. Thanks.
>
> Viet Pham
>
>
> On Sun, Feb 1, 2009 at 9:22 AM, Niklas Derouche  wrote:
>
>> Hi,
>> try:
>>
>> 
>> 
>> 
>>
>> if you see what I mean.
>>
>> n.
>>
>> On Sat, Jan 31, 2009 at 2:58 AM, Pham Tran Quoc Viet <
>> phamtranquocv...@gmail.com> wrote:
>>
>>> Hi,
>>> I followed the advise in this thread and added the following to my
>>> module.gwt.xml:
>>> 
>>>   
>>>   
>>>
>>>   
>>>   ...
>>>   
>>>   ...
>>>   
>>>   ...
>>> 
>>>
>>> I got this error:
>>> [ERROR] Property 'user.agent' not found
>>> [ERROR] Failure while parsing XML
>>>
>>> Any ideas? Thanks.
>>> Viet Pham
>>>
>>>
>>>
>>> On Sun, Nov 9, 2008 at 12:10 AM, surfer wrote:
>>>

 many many thanks
 using 
 the time of compilation fell down from 3':10" to 1':37"

 Lorenzo

 On 8 Nov, 02:13, "Ian Petersen"  wrote:
 > On Fri, Nov 7, 2008 at 6:06 PM, surfer 
 wrote:
 > > since often the main development of an application is viewed and
 > > debugged with one single type of browser and only sometimes verified
 > > on the others, does anybody know if it's possible to force GWT
 > > compiler to build javascript code for just one single target
 browser,
 > > in order to increase compiling phase performance ?
 >
 > Yes it's possible.  The answer lies behind this link:
 http://groups.google.com/group/Google-Web-Toolkit/search?group=Google.
 ..
 >
 > Ian


>>>
>>>
>>>
>>
>>
>> --
>> ---
>> Ave bossa nova, similis bossa seneca
>>
>>
>>
>
> >
>


-- 
---
Ave bossa nova, similis bossa seneca

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: about GWT compiler performance

2009-02-01 Thread Pham Tran Quoc Viet
Hi,Great. That went through without error. How do you verify if only ie6
version is created? I looked at the www folder and saw a bunch of html files
whose names are some_random_number.html

The time it took to compile did not seem to improve either. Thanks.

Viet Pham


On Sun, Feb 1, 2009 at 9:22 AM, Niklas Derouche  wrote:

> Hi,
> try:
>
> 
> 
> 
>
> if you see what I mean.
>
> n.
>
> On Sat, Jan 31, 2009 at 2:58 AM, Pham Tran Quoc Viet <
> phamtranquocv...@gmail.com> wrote:
>
>> Hi,
>> I followed the advise in this thread and added the following to my
>> module.gwt.xml:
>> 
>>   
>>   
>>
>>   
>>   ...
>>   
>>   ...
>>   
>>   ...
>> 
>>
>> I got this error:
>> [ERROR] Property 'user.agent' not found
>> [ERROR] Failure while parsing XML
>>
>> Any ideas? Thanks.
>> Viet Pham
>>
>>
>>
>> On Sun, Nov 9, 2008 at 12:10 AM, surfer wrote:
>>
>>>
>>> many many thanks
>>> using 
>>> the time of compilation fell down from 3':10" to 1':37"
>>>
>>> Lorenzo
>>>
>>> On 8 Nov, 02:13, "Ian Petersen"  wrote:
>>> > On Fri, Nov 7, 2008 at 6:06 PM, surfer 
>>> wrote:
>>> > > since often the main development of an application is viewed and
>>> > > debugged with one single type of browser and only sometimes verified
>>> > > on the others, does anybody know if it's possible to force GWT
>>> > > compiler to build javascript code for just one single target browser,
>>> > > in order to increase compiling phase performance ?
>>> >
>>> > Yes it's possible.  The answer lies behind this link:
>>> http://groups.google.com/group/Google-Web-Toolkit/search?group=Google...
>>> >
>>> > Ian
>>>
>>>
>>
>>
>>
>
>
> --
> ---
> Ave bossa nova, similis bossa seneca
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: about GWT compiler performance

2009-02-01 Thread Niklas Derouche
Hi,
try:





if you see what I mean.

n.

On Sat, Jan 31, 2009 at 2:58 AM, Pham Tran Quoc Viet <
phamtranquocv...@gmail.com> wrote:

> Hi,
> I followed the advise in this thread and added the following to my
> module.gwt.xml:
> 
>   
>   
>
>   
>   ...
>   
>   ...
>   
>   ...
> 
>
> I got this error:
> [ERROR] Property 'user.agent' not found
> [ERROR] Failure while parsing XML
>
> Any ideas? Thanks.
> Viet Pham
>
>
>
> On Sun, Nov 9, 2008 at 12:10 AM, surfer  wrote:
>
>>
>> many many thanks
>> using 
>> the time of compilation fell down from 3':10" to 1':37"
>>
>> Lorenzo
>>
>> On 8 Nov, 02:13, "Ian Petersen"  wrote:
>> > On Fri, Nov 7, 2008 at 6:06 PM, surfer 
>> wrote:
>> > > since often the main development of an application is viewed and
>> > > debugged with one single type of browser and only sometimes verified
>> > > on the others, does anybody know if it's possible to force GWT
>> > > compiler to build javascript code for just one single target browser,
>> > > in order to increase compiling phase performance ?
>> >
>> > Yes it's possible.  The answer lies behind this link:
>> http://groups.google.com/group/Google-Web-Toolkit/search?group=Google...
>> >
>> > Ian
>>
>>
>
> >
>


-- 
---
Ave bossa nova, similis bossa seneca

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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 construct a statement to control elements of parent window?

2009-02-01 Thread Rinpun

It's not valid javascript. Javascript doesn't allow you to do that,
thus GWT cannot allow you to either. Try $wnd.opener.document.EditView
["participant_id_"+index].value. If that doesn't work, you will at
least need to give that element an id property and then you can use
getElementById.

In another note, I presume opener is some kinda special document,
right? Otherwise you should be using $doc instead.

Blake

On Jan 31, 5:03 am, Alex Luya  wrote:
> I hava JSNI method(blow) to  control an element(a input) of parent
> window,
> -
> private static native void setUser(String index,String id,String name)/
> *-{
>                 ...
>              $wnd.opener.document.EditView+".participant_id_"+index.value =
> id;
>                 }-*/;
>
> -
>
> here,this id of element in parent window is a combination
> participant_id and id(input variable),I tried different ways to
> construct this statement,but got errors,Can anybody tell me how to
> contruct this statement?

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



add animation

2009-02-01 Thread Nasir

Hi every one,

I am developing a web site using GWT. Now I want to add animation in
my com.gwtext.client.widgets.Window class. It means that when I will
press a button a window will be visible showing animation. The
animation will also appear when i will close the window.

Is there any one who can help me.


best regards
Nasir

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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 downloading GWT1.5 for windows

2009-02-01 Thread Chauhan

Hi All,

I tried to download GWT1.5 for windows from following link
http://code.google.com/webtoolkit/download.html
I tried it many times and with two separate PCs but the download gets
stopped after 5-6 mb download. Please lemme know if anyone is bale to
download the same.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Soylatte 32 bit Java 6 for Mac, how to enable Eclipse to use it

2009-02-01 Thread Shawn Brown

Assuming that hosted mode runs off of compiled java code, what about
having soylatte 1.6 source files and setting a .class file
compatibility of 1.5.  Then you could use a 1.5 runtime.

I do that with other projects but don't know how to with gwt.

Shawn

On Sun, Feb 1, 2009 at 8:16 AM, Gary S  wrote:
>
> There is a way to run Eclipse for OS x with 32 bit soylatte Java 6
> http://tech-nickel.blogspot.com/2009/01/java-on-mac-os-x-try-soy-latte.html
> Hooray! Hooray! Hooray!
>
> Oh... wait..
> Soylatte: "XstartOnFirstThread" is currently not supported
>
> So I delete that, only to get
> "You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X"
> F**k! F**k! F**k!
>
> Gary
>
>
> >
>

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



Re: Problem with file upload

2009-02-01 Thread PlaceboDomingo

Hi Daniele,
I've got nearly the same problem.
Could you please tell me how you fixed the problem?

At first I tried it with the public-folder. Result: The same problem
as it is discussed here.
After that I thought, it would be smart to put the images
on server-side into the WebContent/images folder. But it was not: If I
try to load (@Client!) an image
GWT tells me that module WebContent/images could not be loaded.
Does anybody know how to create a proper URL that adresses my
WebContent folder? Or do I have to
specify the location in my definition xml (later web.xml...) ?

Thanks in advance,
Placebo

On 24 Jan., 19:07, Daniele  wrote:
> Now all work!!! :)
> Thanks a lot for supporting and patience!!
> If I have time, I try one solution you described to me
>
> regards
> Daniele
>
> 2009/1/24 gregor :
>
>
>
> > I think you understand theproblemnow.
>
> > If you wish to continue trying to get round this (i.e. continue to use
> > the Image newPhoto = new Image("category/photoName) approach) then you
> > will have to search around the Internet to see if someone has a good
> > solution for it (that also works in GWT hosted mode BTW!). Remember,
> > what you are doing is trying to use a very simple method to read the
> > new dynamically added photos (just by short relative URL) instead of
> > using a more robust persistence mechanism The public folder is not
> > designed to handle dynamic data like that, it's meant for static HTML,
> > CSS, js, image files etc. so you are hitting problems. There may be a
> > way to do it, I don't know. Someone must have tried before I suppose.
>
> > The alternative is to create a more robust mechanism for storing your
> > photo albums, setting it up automatically when you deploy the
> > application. One way to do this is to follow these steps:
>
> > 1) Place your "start up" example albums in, say, \src\albums. When you
> > deploy to real Tomcat copy this folder to WEB-INF\classes\album. This
> > means it is in the classpath for both development and deployment.
> > 2) Add an override init() method to your LoadPhotoFromAlbum RPC
> > servlet (or any other sevlet you always call before that). In this
> > method examine if you have already created the real photo album on
> > disk (i.e. you have preciously run the application on this server),
> > and if not copy the start up album to set it up. In a real Tomcat
> > instance you can specify a start up servlet in web.xml to do this, but
> > you can't (easily) do this in GWT hosted mode). Because you put the
> > the start up albums in classes\albums & src\albums, you can get at
> > them using \albums.
> > 3) You need a relative disk location to store the photo album that is
> > separate from your web application folders but still portable. You
> > can, for example, place it relative to your Tomcat instance
> > directories. To get the directory paths you can examine System
> > properties. This, for example, works for JBoss, Tomcat and GWT hosted
> > mode Tomcat:
>
> >   private static String getSystemBaseDir() {
> >        // try JBoss
> >        String dir = System.getProperty("jboss.server.home.dir");
> >        if (dir!=null) {
> >            log.info("Using JBoss: " + dir);
> >            return dir +File.separator + "data";
> >        }
> >        // try Tomcat
> >        dir = System.getProperty("catalina.home");
> >        if (dir!=null) {
> >            log.info("Using Tomcat: " + dir);
> >            return dir;
> >        }
> >        // otherwise GWT hosted mode default
> >        dir = System.getProperty("user.dir");
> >        log.info("Using default dir: " + dir);
> >        return dir;
> >    }
>
> > use this to create and subsequently query your album directory
> > structure under the main Tomcat home directory, but not under the
> > webapps directory, or your own application's directory. If in any
> > doubt about which system properties are available, just put this in a
> > servlet:
>
> >        Properties props = System.getProperties();
> >        props.list(System.out);
>
> > 4) Use a Filedownload HttpServlet to get the images instead of using
> > Image(url) thatreads the photofileand writes it to the servlet
> > response output stream. Search this group for examples of that, and
> > there are many examples on the net.
>
> > This will definitely work, and it will also work in GWT hosted mode,
> > Tomcat, and any other servlet container or application server you add
> > support for in that getSystemBaseDir() method.
>
> > regards
> > gregor
>
> > On Jan 24, 12:24 pm, Daniele  wrote:
> >> Nothing works!!!
>
> >> For Gregory:
> >> Application see new photo uploaded when I click on refresh button on
> >> gwt browser implementation.
>
> >> Maybe I have understandingproblem.
>
> >> Images uploaded necessarily go on public directory because client
> >> don't have access to other directory on server or local machine, ok?
> >> When application starting, it's copy allfilepresent on public
> >> directory and put it on public direct

Rotating Image Wheel

2009-02-01 Thread Sandile

Though difficult to explain from the appearance of its title, I have
endeavored to make a rotating image wheel like the one seen in
http://www.desktoptwo.com/ home page in pure GWT. Of course, the
purpose of this post was to get any help possible because I have no
idea how to start.

The movement of the images isn't that much of a problem, I could
always make an algorithm to take care of position relative to size.
However, I first need to understand image overlapping in GWT as well
as implementation of mouse events for every icon.

I may be a novice, but I think this attempt at a project may break the
ice of experience.

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



Retrieve form data

2009-02-01 Thread Edo

Hello,

I'm a GWT newbie.

I've created a FlexTable in a FormPanel, and added few text box to the
table.
...
final FormPanel form = new FormPanel();
form.setMethod(FormPanel.METHOD_POST);
FlexTable table = new FlexTable();
form.setWidget(table);
...
TextBox box = new TextBox();
box.setName("myName");
table.setWidget(0, 0, box);
...

Now I want to call a service with the form data when the user hits the
submit button.
How can I retrieve the form data?

Cheers,
Edo.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Hibernate + GWT integration options

2009-02-01 Thread Arthur Kalmenson

Another alternative is to use Dozer to map beans onto themselves. We
do this and it eliminates Hibernate specific set/list implementations.

--
Arthur Kalmenson



On Fri, Jan 30, 2009 at 12:50 PM, Karthik Karuppannan
 wrote:
> GWT is not able to serialize the PersistentSet in Hibernate POJO objects and
> throwing below errors.
>
>
>
> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> 'org.hibernate.collection.PersistentSet' was not assignable to
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom
> field serializer.  For security purposes, this type will not be serialized.
>
>   at
> com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:140)…..
>
>
>
> I googled around for options but I could not find any solution other than
> the hibernate4gwt (now Gilead). I am not comfortable using it as per steps
> described at
> http://hibernate4gwt.sourceforge.net/getting_started_stateless.html (I am
> not sure if there is any updated version to this).  I need to modify my
> domain classes, remote services, spring context configurations, etc.
>
>
>
> Is there any other alternate solution?  I joined just now and this is my
> first post. So, I am sorry if I am asking a repeated question for a known
> solution.
>
>
>
> ~ regards,
>
> Karthik Karuppannan
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: need GWT tutorial

2009-02-01 Thread Arthur Kalmenson

You could also buy a book on GWT. There are a number of good ones. I
suggest Google Web Toolkit Applications. It's a little old (doesn't
cover 1.5), but still a very good book.

--
Arthur Kalmenson



On Thu, Jan 29, 2009 at 11:43 PM, babar nazir  wrote:
> thanks charlie,
> i have read it but it is not sufficent to me. i want to build a demo
> application myself, please provide your assistance in this matter .
>
> Regards:
> Babar
>
> On Thu, Jan 29, 2009 at 4:14 PM, Charlie Collins 
> wrote:
>>
>> http://code.google.com/webtoolkit/gettingstarted.html
>>
>> On Jan 29, 5:20 am, babar  wrote:
>> > hi fellows,
>> >
>> > i need GWT tutorial urgently,
>> > because i have to present it to my fellows
>> >
>> > Regards:
>> > Babar
>>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: infoWindow.open(....) and setMaxContet() strange when max btn is clicked!

2009-02-01 Thread Eric Ayers

It appears that your Map click handler is getting fired when you click
the maximize button.   I think you can add this test at the top of
your click handler before re-invoking the info window to avoid this:

  if (overlay instanceof InfoWindow) {
return;
  }

Let me know if that solves the problem.

-Eric.

On Sun, Feb 1, 2009 at 3:59 AM, Yousef.Ghandour
 wrote:
>
> This will render the infoWindow just fine, and the max is working
> also:
>
>
>
> private void handleClick(MapClickEvent e) {
>
>final MapWidget sender = e.getSender();
>
>final Overlay overlay = e.getOverlay();
>
>final LatLng point = e.getLatLng();
>
>
>
>final InfoWindowContent content;
>
>HTML htmlWidget = new HTML(
>
>"ATTENTION PLEASE"
>
>+ " I have a few things to 
> say to you (click maximize.) p>");
>
>content = new InfoWindowContent(htmlWidget);
>
>content.setMaxContent("Now is the time for all good men to 
> come
> to the"
>
>+ " aid of their country 
> because we hold these truths to be
> self"
>
>+ " evident, that I have a 
> dream, that one day our children and
> our"
>
>+ " children's children will 
> tear down this wall!"
>
>+ "Now is the time for all 
> good men to come to the"
>
>+ " aid of their country 
> because we hold these truths to be
> self"
>
>+ " evident, that I have a 
> dream, that one day our children and
> our"
>
>+ " children's children will 
> tear down this wall!");
>
>content.setMaxTitle("ATTENTION PLEASE");
>
>
>
>
>
>infoWindow = sender.getInfoWindow();
>
>infoWindow.open(sender.getCenter(), content);
>
>
>
> }
>
>
>
> This will render the infoWindow, but when max btn is clicked, the
> window will disappear.
>
>
>
> private void handleClick(MapClickEvent e) {
>
>final MapWidget sender = e.getSender();
>
>final Overlay overlay = e.getOverlay();
>
>final LatLng point = e.getLatLng();
>
>
>
>final InfoWindowContent content;
>
>HTML htmlWidget = new HTML(
>
>"ATTENTION PLEASE"
>
>+ " I have a few things to 
> say to you (click maximize.) p>");
>
>content = new InfoWindowContent(htmlWidget);
>
>content.setMaxContent("Now is the time for all good men to 
> come
> to the"
>
>+ " aid of their country 
> because we hold these truths to be
> self"
>
>+ " evident, that I have a 
> dream, that one day our children and
> our"
>
>+ " children's children will 
> tear down this wall!"
>
>+ "Now is the time for all 
> good men to come to the"
>
>+ " aid of their country 
> because we hold these truths to be
> self"
>
>+ " evident, that I have a 
> dream, that one day our children and
> our"
>
>+ " children's children will 
> tear down this wall!");
>
>content.setMaxTitle("ATTENTION PLEASE");
>
>
>
>
>
>infoWindow = sender.getInfoWindow();
>
>infoWindow.open(point, content);
>
>
>
> }
>
>
>
> This will render the window, and will show the max window when the
> max btn is clicked
>
> however, it will throw the exception below
>
>
>
>
>
> private void handleClick(MapClickEvent e) {
>
>final MapWidget sender = e.getSender();
>
>final Overlay overlay = e.getOverlay();
>
>final LatLng point = e.getLatLng();
>
>
>
>final InfoWindowContent content;
>
>HTML htmlWidget = new HTML(
>
>"ATTENTION PLEASE"
>
>+ " I have a few things to 
> say to you (click maximize.) p>");
>
>content = new InfoWindowContent(htmlWidget);
>
>content.setMaxContent("Now is the time for all good men to 
> come
> to the"
>
>+ " aid of their country 
> because we hold these truths to be
> self"
>
>+ " evident, that I have a 
> dream, that one day our children and
> our"
>
>+ " children's children 

NodeList does not extend Iterator

2009-02-01 Thread Simon B

Hi,

I apologise if this is a stupid question, or If I'm missing something,
but why doesn't
com.google.gwt.xml.client.NodeList
extend
java.util.Iterator


it would be handy as then NodeList could be used with the shortened
for each block a la:
for (Node aNode : nodeList) {

}

Rather than
for (int i = 0; i < nodeList.length(); i++) {
 Node aNode = nodeList.item(i);
 
}
It seems a really obvious oversight, so I'm sure that there's a good
reason, I'd just like to know what it is.  I thought it may be to do
with the fact that gwt recently added support for java 1.5 (generics
enhanced for loop etc)

Any answers very much appreciated
Cheers
Simon



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



infoWindow.open(....) and setMaxContet() strange when max btn is clicked!

2009-02-01 Thread Yousef.Ghandour

This will render the infoWindow just fine, and the max is working
also:



private void handleClick(MapClickEvent e) {

final MapWidget sender = e.getSender();

final Overlay overlay = e.getOverlay();

final LatLng point = e.getLatLng();



final InfoWindowContent content;

HTML htmlWidget = new HTML(

"ATTENTION PLEASE"

+ " I have a few things to 
say to you (click maximize.)");

content = new InfoWindowContent(htmlWidget);

content.setMaxContent("Now is the time for all good men to 
come
to the"

+ " aid of their country 
because we hold these truths to be
self"

+ " evident, that I have a 
dream, that one day our children and
our"

+ " children's children will 
tear down this wall!"

+ "Now is the time for all 
good men to come to the"

+ " aid of their country 
because we hold these truths to be
self"

+ " evident, that I have a 
dream, that one day our children and
our"

+ " children's children will 
tear down this wall!");

content.setMaxTitle("ATTENTION PLEASE");





infoWindow = sender.getInfoWindow();

infoWindow.open(sender.getCenter(), content);



}



This will render the infoWindow, but when max btn is clicked, the
window will disappear.



private void handleClick(MapClickEvent e) {

final MapWidget sender = e.getSender();

final Overlay overlay = e.getOverlay();

final LatLng point = e.getLatLng();



final InfoWindowContent content;

HTML htmlWidget = new HTML(

"ATTENTION PLEASE"

+ " I have a few things to 
say to you (click maximize.)");

content = new InfoWindowContent(htmlWidget);

content.setMaxContent("Now is the time for all good men to 
come
to the"

+ " aid of their country 
because we hold these truths to be
self"

+ " evident, that I have a 
dream, that one day our children and
our"

+ " children's children will 
tear down this wall!"

+ "Now is the time for all 
good men to come to the"

+ " aid of their country 
because we hold these truths to be
self"

+ " evident, that I have a 
dream, that one day our children and
our"

+ " children's children will 
tear down this wall!");

content.setMaxTitle("ATTENTION PLEASE");





infoWindow = sender.getInfoWindow();

infoWindow.open(point, content);



}



This will render the window, and will show the max window when the
max btn is clicked

however, it will throw the exception below





private void handleClick(MapClickEvent e) {

final MapWidget sender = e.getSender();

final Overlay overlay = e.getOverlay();

final LatLng point = e.getLatLng();



final InfoWindowContent content;

HTML htmlWidget = new HTML(

"ATTENTION PLEASE"

+ " I have a few things to 
say to you (click maximize.)");

content = new InfoWindowContent(htmlWidget);

content.setMaxContent("Now is the time for all good men to 
come
to the"

+ " aid of their country 
because we hold these truths to be
self"

+ " evident, that I have a 
dream, that one day our children and
our"

+ " children's children will 
tear down this wall!"

+ "Now is the time for all 
good men to come to the"

+ " aid of their country 
because we hold these truths to be
self"

+ " evident, that I have a 
dream, that one day our children and
our"

+ " children's children will 
tear down this wall!");

content.setMaxTitle("ATTENTION PLEASE");





infoWindow = sender.getInfoWindow();

LatLng newP

Re: GWT + sqlitejdbc

2009-02-01 Thread newbie


Thank you a lot for help and explanation!

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