Using a hash table for these kinds of objects may or may not be a
good idea due to the unlikelihood of two doubles computed at different
times using different sets of operations being exactly equal (==) to
one another. What are you trying to accomplish by storing them in a
hash table?
Dan
On M
Thanks Thomas, you have hit the nail on the head exactly. It makes sense now.
--~--~-~--~~~---~--~~
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@google
I have some clients that are running my GWT application and getting
errors when it tries to load JSON data. I don't know yet what browser/
version they are using. Probably IE5 but I am not sure.
Does anyone have some code I can put in my html host page, so that the
GWT code is not loaded for unsu
Is there any good ways people are using to automatically make a build
number + release date- and save it into a properties file or something
like that? Maybe Eclipse has some macro capability or something?
I can just hardcode it into my properties file, but that's no good if
we forget to update i
On Oct 28, 7:52 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote:
>
> This is mentionned in the Javadoc for the FormPanel()
> constructor:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...()
Thanks Thomas, I read the Javadocs but didn't get all the way down to
the Constructor.
I think this seems like a bug, but I'm not sure. This only occurs for
me when I am using:
form.setEncoding(FormPanel.ENCODING_MULTIPART);
form.setMethod(FormPanel.METHOD_POST);
form.submit();
AND the target of the form responds with a non-html content-type (e.g.
returns a Json response).
Then GW
And actually it was String regex's that caught me. Any guidlines for
creating string regexs that work both in Hosted Mode and in the
browser?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
Well I guess it's inevitable- I found something that works quite
differently in the Browser than in Hosted Mode :-(
Now I have to try to troubleshoot what is happening in the Javascript
in the browser but have no idea how. What is the best utility for
doing this on a Mac? Any guidelines ? I use
On Oct 23, 4:40 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> The best advice I could give you is to use application/x-www-form-
> urlencoded with your Alfresco Web Script ;-)
Thomas, thanks for pointing out my code errors, and your valuable
insights about Alfresco! I would like to use x-www-fo
On Oct 23, 12:12 pm, Alex Rice <[EMAIL PROTECTED]> wrote:
> rb.setHeader("Content-Type", "application/x-www-form-urlencoded
> data");
UGH! typo in the content type ^ . Fixed and now it works :-)
Thanks again
--~--~-~--~~~---~--
(sorry if this double posts- I think I messed up my last reply)
On Oct 23, 4:40 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> The best advice I could give you is to use application/x-www-form-
> urlencoded with your Alfresco Web Script ;-)
Thomas, thanks for your insights into Alfresco, and poi
Can anyone confirm whether RequestBuilder actually works for POSTs
setRequestData() and with multipart/form-data content type?
I have many hours trying to get this to work, and can't get either an
Apache/PHP script ,or an Alfresco web script server to parse the
content being posted. I also tried
My cms server (Alfresco) requires form POSTs to have the tag
enctype="multipart/form-data" (even if no files or uploads are in the
form).
Since GWT doesn't provide any methods for constructing the body/
payload of post requests, I am trying to roll my own but so far my
server isn't recognizing th
Thanks Sumit! That matches what I was seeing. Thank goodness for the -
noserver option.
I discovered a great way to circumvent the SOP rule, on Mac OS X and
I am not really sure why or how it works, but it does:
My GWT project is in ~alexr/Sites/xyz
So when GWT builds, it goes to
http://localh
Actually seems to be:
1. Reset Safari
2. Project | Clean in Eclipse
Hmmm
--~--~-~--~~~---~--~~
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
On Oct 21, 9:48 am, Sarah kho <[EMAIL PROTECTED]> wrote:
> Thank you for reply.
> Will I need some kind of plugin for developing GWT or Eclipse has it
> built-in?
>
http://code.google.com/webtoolkit/gettingstarted.html
--~--~-~--~~~---~--~~
You received this mes
my vote: Eclipse!
Alex
PS this question is asked frequently in the group ;-)
On Oct 21, 9:44 am, Sarah kho <[EMAIL PROTECTED]> wrote:
> Hi
> Thank you for reading my post
> Can someone please let me know what is best IDE for developing GWT
> applications?
>
> Thanks
--~--~-~--~~
On the Mac , I can clear the cache and cookies by quitting the Hosted
Mode shell/browser, running Safari and picking the menu Safari | Reset
Safari. AFAIK this isn't documented anywhere and it took me an hour to
figure out. It's probably super obvious to the developers but all I
know it probably h
This is a very volume group and release announcements seem to get
buried in the message threads rather quickly. Also there is apparently
no mailing list for GWT announcements? So please make a sticky thread
for the latest new release of GWT. That would be helpful. Thanks
--~--~-~--~~-
I hope someone can clarify this. I thought Hosted Mode did have the
SOP restriction and I'm pretty sure I did some testing with
RequestBuilder in 1.5.1 or 1.5.2 and saw the SOP restrictions. Being
new to GWT I thought this was just by design. I sure would be
convenient if hosted mode did not obey
Doh answered own question:
com.google.gwt.user.client.ui
Interface HasName
--~--~-~--~~~---~--~~
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@googlegro
The default font in GWT appears fine in Safari and Firefox they render
a reasonable size font, but it looks about 50% bigger in IE7. This was
discussed in a thread back in July and no good solution was provided -
basically it was required to override every single widget in your css
to make it look
Any my attempts to override the font-size in css are not working.
--~--~-~--~~~---~--~~
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
I am writing a multi-section form in GWT, that will be saved out to
the server as JSON. I was wondering if there is any facility to tag
form fields in GWT with a metadata, or just tag like a JSON key
string, for instance. I looked the the Javadoc API but didn't see
anything like this. Thanks in a
Seven, I am seeing it in the Javadoc (GWT API Reference) for
com.google.gwt.json.client.JSONNumber.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to G
It is discussed some in this thread: let's see if this link works
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/184204844b622067/34a347c50f17d31f?hl=en&lnk=gst&q=json+%2Bmindlube#34a347c50f17d31f
Basically the first paragraph you quoted, is incorrect at the present
time.
I agree this is confusing, but I got it because I am familiar with
command-line and path types of issues like this. Maybe more confusing
for people aren't strong in the unix shell area. :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Disregard this question - it must have been some kind of browser
caching problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@g
Got it! thanks
On Sep 30, 2:52 pm, "Perelman Nathan (Nathan)"
<[EMAIL PROTECTED]> wrote:
> Use doubleValue() and then cast to int. All JavaScript numbers (and
> therefore all JSONNumbers) are really doubles.
>
--~--~-~--~~~---~--~~
You received this message because
A very good question, because there is a doubleValue() but no
intValue() ... Hmm,
On Sep 30, 2:43 pm, "seven.reeds" <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am using Eclipse 3.4.1, java 1.6.0_07, gwt 1.5.2 under linux.
>
> I have a JSON object that contains an integer value. I am trying the
> follo
In Firefox, but not Safari, and haven't tried IE... the following code
results in an image that is scaled down ever so slightly, just enough
to look bad. Does anyone have a workaround or know the cause of this?
I tried replacing the HTML with an Image object but the same scaling
happens.
w/ GWT 1.
Thanks, I like this technique.
On Sep 24, 3:46 pm, Reinier Zwitserloot <[EMAIL PROTECTED]> wrote:
> You can create the singleton inside the interface. e.g:
>
> public class MyImages implemens AbstractImageStoreThingie {
> AbstractImagePrototype closeButton();
> ... more AIPs.
>
>
er <[EMAIL PROTECTED]> wrote:
> Alex Rice schrieb:
>
> > Would it make sense to wrap MyConstants and MyMessages in a Java
> > singleton, or is GWT already optimizing this behind the scenes? I am
> > just imagining *lots* of strings getting re-created every time the
> >
I have subclassed Constants and Messages and am finding the facility
to very useful. I have started to put code like this in many of my
classes:
public void useMyConstants() {
MyConstants myConstants = (MyConstants)
GWT.create(MyConstants.class);
Window.alert(myConstants.helloWorld());
}
Wou
Thanks that is helpful
Alex Rice
On Sep 11, 10:09 pm, Folke <[EMAIL PROTECTED]> wrote:
> It's pretty pointless to pass a raw JSONValue around because it
> doesn't have any semantic information. How do you distinguish between
> a JSONValue for a "section" and
bclassable...?
On Sep 11, 10:13 am, Folke <[EMAIL PROTECTED]> wrote:
> It depends on whether the JSON is hierarchical or flat.
>
> Take a look at the visitor pattern for complexer JSON
> structures.http://en.wikipedia.org/wiki/Visitor_pattern
>
> On 11 Sep., 17:40, A
The Walkabout pattern looks perfect except for it requires
java.lang.reflect which GWT doesn't support.
http://www.cs.ucla.edu/~palsberg/paper/compsac98.pdf
Looks like I need to add accept() methods to everything in
com.google.gwt.json.client
On Sep 11, 10:13 am, Folke <[EMAIL PROTECTED]> wrote
OK I'll read up on the Visitor pattern. The JSON is fairly
hierarchical - various sections and form fields within. I assume
Visitor is still advised for that.
Thanks!
Alex
On Sep 11, 10:13 am, Folke <[EMAIL PROTECTED]> wrote:
> It depends on whether the JSON is hierarchical or flat.
>
> Take a
Good day all,
I ordered the GWT in Practice book and eagerly awaiting it's arrival.
Maybe maybe my question is answered in there. However, I wanted to see
if anyone has a suggestion for a Java OO design pattern to use for the
following purpose:
I am working on a GWT project where application/sur
OK thanks I will try that next time.
edit the paths in:
Class-compile
Class-shell
Class.launch
then edit the path in (Eclipse 3.4):
Project | Properties | Java Build Path| gwt-user.jar
On Sep 8, 5:19 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> Oh yeah, also...
>
> You'll need to change the
I have a project that is fairly small, so I have just followed the
instructions
http://code.google.com/webtoolkit/gettingstarted.html
to create a new project in 1.5.2, and edit the .xml and .html files,
and add my Java classes to the project.
However I was wondering if there is a way to convert a
Thanks for this info!
Alex
On Aug 21, 1:39 am, Jason Morris <[EMAIL PROTECTED]> wrote:
> String.formatis not a GWT emulated method, check for those that are supported
> here:
>
> http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(goog...)
>
> (for GWT 1.5)
>
> In GWTformatusing a
42 matches
Mail list logo