Re: Error This UIObject's element is not set;

2008-09-17 Thread Danny Schimke
Hi Shi!
create a constructor for your MenuHome and move the code from the Composite()-
Method into this constructor.
Extending from Composite is correct! ^^
Don't know why you use a method for doing this... ;)
...
public MenuHome() {

VerticalPanel vPanel = new VerticalPanel();
// Do You really want to set the title (title = tooltip)?
// To see something create a Label with Text an add this to the vPanel
// Example
// Label label = new Label(Good!);
// vPanel.add(label);
vPanel.setTitle(GOOD!);
vPanel.setWidth(100%);
vPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
initWidget(vPanel);
// Don't use this here (you do this on your entrypoint alright)
RootPanel.get().add(vPanel);

}

I hope i could help you... ;)

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



what is user.agent in defer binding?

2008-09-17 Thread peterx86

Hi,

I am reading the defer binding :
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideDeferredBindingReplacement

However, who will set the user.agent property? Will it be set by the
bootstrap javascript automatically? If yes, then how can i get the
list of available properties?

regards
pt


  replace-with
class=com.google.gwt.user.client.ui.impl.PopupImplMozilla
when-type-is
class=com.google.gwt.user.client.ui.impl.PopupImpl /
any
  when-property-is name=user.agent value=gecko/
  when-property-is name=user.agent value=gecko1_8 /
/any
  /replace-with

--~--~-~--~~~---~--~~
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: Does the server side language matter?

2008-09-17 Thread Thomas Broyer


On 16 sep, 18:14, walden [EMAIL PROTECTED] wrote:
 Thomas,

 On Sep 16, 11:10 am, Thomas Broyer [EMAIL PROTECTED] wrote:

  (I you ask me my opinion: GWT-RPC is not RESTful so I don't use it,
  but the hability to share a class between client and server code is
  appealing; I'm not using such a thing either though)

 How do you arrive at that opinion?

 You can use or not use GWT RPC for whatever reason you like.  But when
 you say you don't use GWT RPC because it's not RESTful, I think that
 carries no real meaning other than general FUD.  It would be better to
 state the specific tradeoffs that don't work for you.  I'm just
 concerned that some might avoid a very useful technology for a very
 questionable reason.  Can you please shed some more light?

1. RPC: the method is in the request body, not as an HTTP method
(not always possible though).
2. If I want a collection resource (GETting the resource returns me
a representation of the list) and individual entry resources (that
I could GET, PUT and DELETE –using method override in older Safari–,
and eventually POST for other needs...), I need 2 RemoteService
classes, and then using the EntryService means changing the service
location before each method call; this is not the way GWT-RPC has
been thought, GWT-RPC isn't resource-oriented, it's, well, RPC...
3. POST for everything, even for things that should have been GETs,
PUTs or DELETEs; this makes HTTP caches unusable (which you might
want, but not necessarily).
etc.

In brief: GWT-RPC is RPC (method calls), it's not resource-oriented.
It tunnels within HTTP requests, but it isn't HTTP. Well, it's the
same as SOAP, without the bloated XML serialization and minus the
extensibility.

GWT-RPC is good for prototyping, because it's easy to set up; but it
isn't web-style, so it won't scale as well as RESTful web
services (a book that I highly recommend, along with blog posts from
Joe Gregorio).
I guess generators could be used to make RESTful web services as easy
as GWT-RPC (I didn't investigate yet, as our server-side language
is... JavaScript!)
--~--~-~--~~~---~--~~
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: what is user.agent in defer binding?

2008-09-17 Thread Thomas Broyer


On 17 sep, 10:17, peterx86 [EMAIL PROTECTED] wrote:
 Hi,

 I am reading the defer binding 
 :http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog...

 However, who will set the user.agent property? Will it be set by the
 bootstrap javascript automatically?

Yes, through a property-provider (look at the com/google/gwt/user/
UserAgent.gwt.xml file in gwt-user.jar)

 If yes, then how can i get the list of available properties?

Properties? or user.agent values? For the latter, the user.agent
property is defined in the UserAgent.gwt.xml file. For the former,
well, search for define-property in all the *.gwt.xml files in your
classpath?


--~--~-~--~~~---~--~~
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: #token fragment sometimes cause page reload, sometimes not?

2008-09-17 Thread Thomas Broyer



On 17 sep, 06:09, Brice [EMAIL PROTECTED] wrote:
 Good evening. I am working on a new GWT app and I noticed a few
 strange behaviors in IE 7 that I didn't see in FireFox / Safari.
 Particularly that a link with a #token will cause a page refresh if
 its in my wrapper HTML, but not if its generated by GWT. This doesn't
 happen (from what I can see) in FireFox / Safari.

 Here's the scenario: my wrapper HTML has been designed externally, the
 GWT just renders into the content area of the page. Outside of this
 area are two tabs. Instead of linking to different pages, the hrefs
 are #tabA and #tabB. After the GWT EntryModule has run, this *should*
 just fire History changed events, right? That's what it does in FF and
 Safari. In IE, it reloads the page, and since my EntryModule invokes
 fireCurrentHistoryState(), the right state is initialized.

 Within the GWT module, links are rendered with tokens, too. When these
 are clicked, the page does not reload. As expected, the History
 changed event is fired, and the new application state is loaded.

 Am I going about this incorrectly? Is this an IE ideosyncracy?

Yes (search the issue tracker, this has been reported recently –maybe
it was you?–)

 Is there a workaround?

Attach onclick handlers to your links to call History.newItem and
Event.preventDefault(). That's what GWT's Hyperlink do to workaround
this IE quirk.

To attach the onclick, you could loop through the
Document.get().getElementsByTagName(a) (before attaching your GWT
widgets) and call DOM.setEventListener and DOM.sinkEvents.
However, I'd rather expose the History.newItem method as a global JS
function through JSNI and attach the onclick handlers in the host page
HTML: a href=#tab1 onclick=GWT_History_newItem('tab1'); return
false;

Another option is to just have placeholders in your HTML host page and
inject GWT Hyperlinks in there (RootPanel.get(tab1link).add(new
Hyperlink(Tab 1, tab1))).

...if only there were a SimpleHyperlink widget with a static wrap()
method to wrap an A HREF and set the EventListener automatically...
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Annoucement. PureMVC4GWT RC is available

2008-09-17 Thread Luciano Broussal

Hi All,

I've created a tiny but powerful gwt project

The Goal is to provide a MVC framework based on the simple, well
designed and powerful PureMVC framework.

This offer an opportunity to have the same design patterns what ever
you code in Java, .Net, Pythom, PHP ...

Find all necessary documention on PureMVC on the offcial site
http://puremvc.org/


PureMVC4GWT is hosted on Google Code at

http://code.google.com/p/purevmc4gwt/


Feel free to try it and join me to help me to leverage it.

Regards.

Luciano Broussal

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



File write not working

2008-09-17 Thread Ryan

Hi everybody,

I have this particular problem.
I am creating a file.It is working in hosted mode means the file is
getting created. But when i deploy my project on tomcat and try to run
the application the file is not getting created

This is my code.
try{
File file1 = new File(C:\\logE.txt);
FileWriter fr = new FileWriter(file1);
fr.write(Please write me);
fr.flush();
fr.close()
}
catch(Exception e){

}

regards,
Cherian




--~--~-~--~~~---~--~~
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: File write not working

2008-09-17 Thread Lothar Kimmeringer

Ryan schrieb:

 I have this particular problem.
 I am creating a file.It is working in hosted mode means the file is
 getting created. But when i deploy my project on tomcat and try to run
 the application the file is not getting created

If we are talking about the application that run in the browser,
this is no surprise, because you can't access the file-system
for writing using Javascrip inside your browser. If we are
talking about code that resides e.g. in a RemoteServiceServlet
there must be some kind of exception being thrown. Without the
complete stacktrace of this error no help is possible.


Regards, Lothar

--~--~-~--~~~---~--~~
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: File write not working

2008-09-17 Thread Ryan


Thanks Lothar,

I am talking about server side code here, because the client would
anyway not support writing files.
Problem is how do I view this stack trace of the error .
Where can I view the stack trace.
Any pointers to how to view the stack trace.

regards,
Cherian

--~--~-~--~~~---~--~~
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: File write not working

2008-09-17 Thread Niklas Derouche
On Wed, Sep 17, 2008 at 1:13 PM, Ryan [EMAIL PROTECTED] wrote:



 Thanks Lothar,

 I am talking about server side code here, because the client would
 anyway not support writing files.
 Problem is how do I view this stack trace of the error .
 Where can I view the stack trace.
 Any pointers to how to view the stack trace.


WAG: the user running the application/service does not have the appropriate
permissions. I run into this every once in a while in
deployments. I

n.
-- 

I've had a wonderful time but
this wasn't it.
Groucho Marx

--~--~-~--~~~---~--~~
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: File write not working

2008-09-17 Thread Lothar Kimmeringer

Ryan schrieb:
 
 I am talking about server side code here, because the client would
 anyway not support writing files.

Doesn't prevent people from trying ;-)

 Problem is how do I view this stack trace of the error .
 Where can I view the stack trace.
 Any pointers to how to view the stack trace.

I don't know Tomcat in detail but every HTTP-server has something
like a log-file, so look for that file in the Tomcat or system-
wide logs-directory. Another way would be write your own logs but
if the reason is a lack of permission that isn't an option.


Regards, Lothar

--~--~-~--~~~---~--~~
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: Multiple serialization policies generated

2008-09-17 Thread daniel.z

Thanks. ;)

On 16 Sep., 18:42, Isaac Truett [EMAIL PROTECTED] wrote:
 On Sun, Sep 14, 2008 at 5:52 AM, daniel.z

 [EMAIL PROTECTED] wrote:

  I'm using GWT 1.5.2 with hibernate4gwt 1.1b and the maven-
  googlewebtoolkit2-plugin 2.0-beta20 and im currently getting multiple
  differing serialization policy files (*.gwt.rpc) generated. I wondered
  if there is one file per service interface as i did not find any hint
  on multiple .gwt.rpc files anywhere? Is there any explenation how this
  can happen?

 You can get one per application permutation (language, browser, etc.).

  In addition i wondered if the entries in this files are correct since
  i did not see such in there before, several classes are contained
  twice. one time normal and another prefixed by [L and suffixed by
  ;. For example:
  java.lang.String, true
  [Ljava.lang.String;, true

  Bug? Misconfiguration? Feature?

 [Ljava.lang.String; is a String array.




--~--~-~--~~~---~--~~
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: File write not working

2008-09-17 Thread alex.d

Tomcat is keeping it's log-files in tomcat 6.0\logs or /tomcat6/
logs. Look for preferences to know what file that is, but basically
you can just take the file with the last changed-date. Normally
you'll find all Exceptions- or System.out.print-output-messages
there.

P.S. Is Linux your deployment environment? In that case C:\logE.txt
could be a problem ;-)

On 17 Sep., 13:25, Lothar Kimmeringer [EMAIL PROTECTED] wrote:
 Ryan schrieb:



  I am talking about server side code here, because the client would
  anyway not support writing files.

 Doesn't prevent people from trying ;-)

  Problem is how do I view this stack trace of the error .
  Where can I view the stack trace.
  Any pointers to how to view the stack trace.

 I don't know Tomcat in detail but every HTTP-server has something
 like a log-file, so look for that file in the Tomcat or system-
 wide logs-directory. Another way would be write your own logs but
 if the reason is a lack of permission that isn't an option.

 Regards, Lothar
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



GWT RPC Handling Session

2008-09-17 Thread Schimki86

There is a login-page on startup at my GWT-Application. The user
enters his login name and password and clicks a button to sign in. In
my server- implementation there is a method which should sign the user
in (and gets back a result- state):

...
public int loginUser(String user, String password) {
int result = -2;
// check's whether user name equals a valid email
if (Validator.validateEmail(user)) {
DB_User db = new DB_User();
// get request to create a session, when login for creating the
session later
// HttpServletRequest request = this.getThreadLocalRequest();
// login the user
result = db.loginUser(user.toLowerCase(), password, request);
}
return result;
}
...

In the loginUser- method of db I create the session:

...
HttpSession session = request.getSession();
...

I don't know how I have to handle the session. There must be a state
in the server- implementation which is compareable withe the current
session, because only there I can access the session with
this.getThreadLocalRequest().getSession();, or!? How do I check
whether the session is valid?

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



Handling ONCONTEXTMENU in GWT 1.5

2008-09-17 Thread melody

Use Case
1. Disable browser context menu by default
2. Enable browser context menu on edit controls like EDIT boxes,
listboxes etc when such controls receive focus. This is required so
that you can do the normal highlighting, cut, copy and paste from such
controls

3. When edit controls lose focus, disable the browser content menu
again

4. Example


//disable browser context menu on main page
code
 private static native void disableBrowserContextMenuJSNI() /*-{
$doc.oncontextmenu = function() { return false; };
}-*/;
/code

//enable browser context menu
 private static native void restoreContextMenuJSNI() /*-{
$doc.oncontextmenu = function() { return true; };
}-*/;


Create edit box with preview that allows switching between disbaled
and enabled context menu
code
public class PreviewTextBox extends TextBox implements FocusListener {

public PreviewTextBox() {
this.addFocusListener(this);
}

 public void onDetach() {
 super.onDetach();
 disableBrowserContextMenuJSNI();
 DOM.removeEventPreview(m_preview); //tos - 1
 }

 public void onFocus(Widget w) {
 DOM.removeEventPreview(m_preview); //tos - 1
 DOM.addEventPreview(m_preview); //tos
 restoreContextMenuJSNI();
 }

 public void onLostFocus(Widget w) {
 disableBrowserContextMenuJSNI();
 DOM.removeEventPreview(m_preview); //tos - 1
 }

private EventPreview m_preview = new EventPreview() {
public boolean onEventPreview(Event event) {
int type = DOM.eventGetType(event);
switch (type) {
case Event.ONMOUSEDOWN:
Element target1 = DOM.eventGetTarget(event);
if (!
PreviewTextBox.this.getElement().isOrHasChild(target1)) {
   disableBrowserContextMenuJSNI(); //by
defauly no browser context menu must show
DeferredCommand.addCommand(new Command() {
public void execute() {
 
DOM.removeEventPreview(m_preview); //tos - 1
}
});
}
break;
default:
break;
}
// But DO allow the event to fire.
return true;
}
};
}
/code


The above code was working perfectly in GWT 1.4.x

With the advent of GWT1.5, this nolonger works and I get the browser
context menu anyway.

Is there anything else I need to do to make the oncontextmenu event
work in GWT 1.5.




Also I noticed that now we have Event.ONCONTEXTMENU as an event bit.

I tried using EventPreview to stop the context menu from showing but
most of the times this event is NOT PREVIEWED! See example below

code
 public boolean onEventPreview(Event event) {
int type = DOM.eventGetType(event);
switch (type) {
case Event.ONCONTEXTMENU:
Element target = DOM.eventGetTarget(event);
if (!
m_search_textbox.getElement().isOrHasChild(target)) {
DOM.eventPreventDefault(event);
DOM.eventCancelBubble(event, true);
return false;//dont allow to bubble break;
}
break;
}
  return true;
}
/code

Any reason why it previews sometimes and not all the time.

Does it have anything to do with this line

GWT Widgets now sink their events lazily: widgets no longer routinely
sink their events eagerly. Instead, the event is sunk the first time a
listener is added to the widget. So subclasses which relied on eagerly
sunk events will now have to manually sink the events they depend
upon.

from the breaking changes page:-

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=ReleaseNotes_1_5_BreakingChanges


If so what do I need to do.

Thanks,

Melody
--~--~-~--~~~---~--~~
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: File write not working

2008-09-17 Thread Ryan

thanks alex,

I am workng on windows.
Now the problem is that all system.out.println statements written in
classes that extend remoteserviceservlet are not printed in the logs
i.e. stdout file.
Any system.out.println statements written in classes that do not
extend remoteserviceservlet are printed in the logs
So obviously errors occuring in the  classes that extend
remoteserviceservlet are not printed too.
Now I dont know what could be the reason.
If someone could enlighten me as to why this happens I would be
greatful.

regards,
cherian

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



shouldEnforceTypeVersioning() has been deprecated,how can I replaced?

2008-09-17 Thread Alex Luya

I want to reuse source code(that is published under apache 2),but 
the guy of writer used a  method: 
com.google.gwt.user.client.rpc.impl.AbtractSerializationStream.shouldEnforceTypeVersioning(),it
 
existed in 1.5 RC 2,but has been deprecated  in the v1.5.2,I can not 
find any suggestion how to get a method to replace it from 
API,strangely,there is not api description about this 
package(com.google.gwt.user.client.rpc.impl),can anybody help me?thank you.

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



Re: File write not working

2008-09-17 Thread Lothar Kimmeringer

Ryan schrieb:

 I am workng on windows.
 Now the problem is that all system.out.println statements written in
 classes that extend remoteserviceservlet are not printed in the logs
 i.e. stdout file.

Logging with System.out.println is bad style. Inside a servlet
you better use getServletContext().log(...)


Regards, Lothar

--~--~-~--~~~---~--~~
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: shouldEnforceTypeVersioning() has been deprecated,how can I replaced?

2008-09-17 Thread Isaac Truett

com.google.gwt.user.client.rpc.impl is not part of the supported
public API (*.impl.* usually isn't).

As far as a replacement, I can't really help you. You could contact
the author and find out if there's a new version of the library on the
way.


On Wed, Sep 17, 2008 at 8:56 AM, Alex Luya [EMAIL PROTECTED] wrote:

I want to reuse source code(that is published under apache 2),but
 the guy of writer used a  method:
 com.google.gwt.user.client.rpc.impl.AbtractSerializationStream.shouldEnforceTypeVersioning(),it
 existed in 1.5 RC 2,but has been deprecated  in the v1.5.2,I can not
 find any suggestion how to get a method to replace it from
 API,strangely,there is not api description about this
 package(com.google.gwt.user.client.rpc.impl),can anybody help me?thank you.

 


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



Re: overide browser context menu

2008-09-17 Thread Joel Webber
It appears that the oncontextmenu event won't get previewed correctly in all
circumstances. I've entered issue 2895 to this effect.
If the code you mention above is no longer working, it is probably because
the oncontextmenu property is being overwritten by sinkEvents(). Try moving
it to after sinkEvents() is called on the element -- I believe that should
work for now.

On Wed, Sep 17, 2008 at 8:18 AM, melody [EMAIL PROTECTED] wrote:

 Joel,

 The code you suggested is exactly what I have and have had since GWT
 1.3.

 With the advent of GWT1.5, this nolonger works.

 Is there anything else I need to do to make the oncontextmenu event
 work in GWT 1.5.

 Also I noticed that now we have Event.ONCONTEXTMENU as an event bit.

 I tried using EventPreview to stop the context menu from showing but
 most of the times this event is NOT PREVIEWED! See example below

 code
  public boolean onEventPreview(Event event) {
int type = DOM.eventGetType(event);
switch (type) {
case Event.ONCONTEXTMENU:
Element target = DOM.eventGetTarget(event);
if (!
 m_search_textbox.getElement().isOrHasChild(target)) {
DOM.eventPreventDefault(event);
DOM.eventCancelBubble(event, true);
return false;//dont allow to bubble break;
}
break;
}
  return true;
 }
 /code

 Any reason why it previews sometimes and not all the time.

 Does it have anything to do with this line

 GWT Widgets now sink their events lazily: widgets no longer routinely
 sink their events eagerly. Instead, the event is sunk the first time a
 listener is added to the widget. So subclasses which relied on eagerly
 sunk events will now have to manually sink the events they depend
 upon.

 from the breaking changes page:-


 http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=ReleaseNotes_1_5_BreakingChanges


 If so what do I need to do.

 Thanks,

 Melody


 On Jun 20 2006, 11:41 am, Joel Webber [EMAIL PROTECTED] wrote:
  All,
 
  The document.oncontextmenu event is indeed what you're looking for.
  Support
  for it is fairly widespread (minus Opera 8, apparently).
 
  QuirksMode's description:
 http://www.quirksmode.org/js/events_compinfo.html#interface
 
  Try the following code:
 
private static native void killContextMenu() /*-{
  $doc.oncontextmenu = function() { return false; };
}-*/;
 
  joel.
 
  On 6/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 
 
   I don't have any experience with GWT specifically, but when I needed
   this functionality in the past I found that there is a contextmenu
   event that can be bludgeoned into working across browsers.
   Specifically, you at least need to call event.stopPropagation() (if it
   exists) or some browsers will go ahead and show their context menu
   anyway.
 
   I don't believe it's possible to do this solely with mouse events, but
   I could be mistaken.
 
   [EMAIL PROTECTED] wrote:
Does anyone have any how-to on making a context (right-click) menu on
 a
GWT widget?
 
 public class ContextButton extends Button implements EventListener {
public void onBrowserEvent(Event event) {
System.out.println(DOM.eventGetButton(event));
System.out.println(DOM.eventGetClientX(event));
System.out.println(DOM.eventGetClientY(event));
}
}
 
  I'm unsure if the above is behaving correctly (for me to capture
 the
event), since my left button click actsas I would expect (if
Event.LEFT_BUTTON == 0) but I don't have a middle mouse button and
 the
browser context menu captures my right click...
 
Any help would be 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: shouldEnforceTypeVersioning() has been deprecated,how can I replaced?

2008-09-17 Thread Alex Luya

Isaac Truett wrote:
 com.google.gwt.user.client.rpc.impl is not part of the supported
 public API (*.impl.* usually isn't).

 As far as a replacement, I can't really help you. You could contact
 the author and find out if there's a new version of the library on the
 way.


 On Wed, Sep 17, 2008 at 8:56 AM, Alex Luya [EMAIL PROTECTED] wrote:
   
I want to reuse source code(that is published under apache 2),but
 the guy of writer used a  method:
 com.google.gwt.user.client.rpc.impl.AbtractSerializationStream.shouldEnforceTypeVersioning(),it
 existed in 1.5 RC 2,but has been deprecated  in the v1.5.2,I can not
 find any suggestion how to get a method to replace it from
 API,strangely,there is not api description about this
 package(com.google.gwt.user.client.rpc.impl),can anybody help me?thank you.

 

 

   
thank you very much!


--~--~-~--~~~---~--~~
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: #token fragment sometimes cause page reload, sometimes not?

2008-09-17 Thread Srini Marreddy

Brice,
 I got similar problems when i was working on a GWT
application. In my case all History changes are triggered by my
application itself no external hyper links.(History.newItem()).
However sometimes IE7 reloads the page. I applied a FIX suggested in
the following thread.

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/26bb5d7cff3f1ab8/c71514aec8dc5703?show_docid=c71514aec8dc5703

Regards,
Srini


On Sep 17, 8:26 am, Brice [EMAIL PROTECTED] wrote:
 Thomas,

 Thanks much for the prompt response and no less than three
 workarounds! I was not the individual who created this issue, but I
 had assumed I wasn't the only one seeing this ;-) Just didn't see any
 other threads when I searched the group.

 I'll take a whack at this and report back if I have any further
 problems.

 Thanks,
 Brice

 On Sep 17, 10:55 am, Thomas Broyer [EMAIL PROTECTED] wrote:

  On 17 sep, 06:09, Brice [EMAIL PROTECTED] wrote:

   Good evening. I am working on a new GWT app and I noticed a few
   strange behaviors in IE 7 that I didn't see in FireFox / Safari.
   Particularly that a link with a #token will cause a page refresh if
   its in my wrapper HTML, but not if its generated by GWT. This doesn't
   happen (from what I can see) in FireFox / Safari.

   Here's the scenario: my wrapper HTML has been designed externally, the
   GWT just renders into the content area of the page. Outside of this
   area are two tabs. Instead of linking to different pages, the hrefs
   are #tabA and #tabB. After the GWT EntryModule has run, this *should*
   just fire History changed events, right? That's what it does in FF and
   Safari. In IE, it reloads the page, and since my EntryModule invokes
   fireCurrentHistoryState(), the right state is initialized.

   Within the GWT module, links are rendered with tokens, too. When these
   are clicked, the page does not reload. As expected, the History
   changed event is fired, and the new application state is loaded.

   Am I going about this incorrectly? Is this an IE ideosyncracy?

  Yes (search the issue tracker, this has been reported recently –maybe
  it was you?–)

   Is there a workaround?

  Attach onclick handlers to your links to call History.newItem and
  Event.preventDefault(). That's what GWT's Hyperlink do to workaround
  this IE quirk.

  To attach the onclick, you could loop through the
  Document.get().getElementsByTagName(a) (before attaching your GWT
  widgets) and call DOM.setEventListener and DOM.sinkEvents.
  However, I'd rather expose the History.newItem method as a global JS
  function through JSNI and attach the onclick handlers in the host page
  HTML: a href=#tab1 onclick=GWT_History_newItem('tab1'); return
  false;

  Another option is to just have placeholders in your HTML host page and
  inject GWT Hyperlinks in there (RootPanel.get(tab1link).add(new
  Hyperlink(Tab 1, tab1))).

  ...if only there were a SimpleHyperlink widget with a static wrap()
  method to wrap an A HREF and set the EventListener automatically...- Hide 
  quoted text -

  - Show quoted text -


--~--~-~--~~~---~--~~
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: Does the server side language matter?

2008-09-17 Thread walden



On Sep 17, 5:37 am, Thomas Broyer [EMAIL PROTECTED] wrote:
 On 16 sep, 18:14, walden [EMAIL PROTECTED] wrote:





  Thomas,

  On Sep 16, 11:10 am, Thomas Broyer [EMAIL PROTECTED] wrote:

   (I you ask me my opinion: GWT-RPC is not RESTful so I don't use it,
   but the hability to share a class between client and server code is
   appealing; I'm not using such a thing either though)

  How do you arrive at that opinion?

  You can use or not use GWT RPC for whatever reason you like.  But when
  you say you don't use GWT RPC because it's not RESTful, I think that
  carries no real meaning other than general FUD.  It would be better to
  state the specific tradeoffs that don't work for you.  I'm just
  concerned that some might avoid a very useful technology for a very
  questionable reason.  Can you please shed some more light?

 1. RPC: the method is in the request body, not as an HTTP method
 (not always possible though).

What is the design tradeoff though?  Why does a pragmatic developer
care?

 2. If I want a collection resource (GETting the resource returns me
 a representation of the list) and individual entry resources (that
 I could GET, PUT and DELETE –using method override in older Safari–,
 and eventually POST for other needs...), I need 2 RemoteService
 classes, and then using the EntryService means changing the service
 location before each method call; this is not the way GWT-RPC has
 been thought, GWT-RPC isn't resource-oriented, it's, well, RPC...

I can't really understand any of that.  What do you need to do that
REST gives you and GWT RPC fails?

 3. POST for everything, even for things that should have been GETs,
 PUTs or DELETEs; this makes HTTP caches unusable (which you might
 want, but not necessarily).
 etc.

PUTS and DELETES are not required by REST.  As for POST versus GET for
inquiries, even within REST there are tradeoffs and minor misfits.
You may use a POST form when you have a lot of parameters, even though
your intention is to invoke a safe method, which POST does not give
you by HTTP contract.


 In brief: GWT-RPC is RPC (method calls), it's not resource-oriented.
 It tunnels within HTTP requests, but it isn't HTTP. Well, it's the
 same as SOAP, without the bloated XML serialization and minus the
 extensibility.

These answers are bsically REST religion.  Assuming I have no
religion, why do I care?


 GWT-RPC is good for prototyping, because it's easy to set up; but it
 isn't web-style, so it won't scale as well as RESTful web
 services (a book that I highly recommend, along with blog posts from
 Joe Gregorio).

On the face of it, I disagree that it won't scale.  I would like to
have a scenario.

 I guess generators could be used to make RESTful web services as easy
 as GWT-RPC (I didn't investigate yet, as our server-side language
 is... JavaScript!)- Hide quoted text -

GWT RPC has to be considered as part of the optional COD variant of
REST.  In a nutshell, interactions between a GWT client and server are
private interactions between components which are not expected to
independently co-evolve.  The scaleability is one level up, where the
GWT host HTML file appears as a regular Web resource.

Thanks for your answers.  I think the way GWT has advanced AJAX, these
REST questions need serious reconsideration.

Walden


 - Show quoted text -
--~--~-~--~~~---~--~~
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: Annoucement. PureMVC4GWT RC is available

2008-09-17 Thread eggsy84

Hi there

I have never encountered PureMVC but have been developing using GWT
for around 10 months now.

We have come up with various methods of attempting to implement the
MVC approach through GWT none of which we have been that happy with to
be honest.

I'll read up on PureMVC and how it works first then it looks like your
implementation should be very useful! Thank you for bringing this to
my attention if I understand the concept I would definately be
interested in helping the development of puremvc4gwt!

Eggsy

---

On Sep 17, 11:34 am, Luciano Broussal [EMAIL PROTECTED]
wrote:
 Hi All,

 I've created a tiny but powerful gwt project

 The Goal is to provide a MVC framework based on the simple, well
 designed and powerful PureMVC framework.

 This offer an opportunity to have the same design patterns what ever
 you code in Java, .Net, Pythom, PHP ...

 Find all necessary documention on PureMVC on the offcial 
 sitehttp://puremvc.org/

 PureMVC4GWT is hosted on Google Code at

 http://code.google.com/p/purevmc4gwt/

 Feel free to try it and join me to help me to leverage it.

 Regards.

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



Severe performance problem after upgrading to GWT 1.5.2 (final)

2008-09-17 Thread hbatista

Hi,
I've just upgraded one of my projects from 1.4.60 to 1.5.2, and
everything went very smoothly, but...
when my application tries to fetch a large number of objects from the
server (via RPC, returns HashMapInteger,xxx, about 6000 entries) it
takes a very very long time!

Before the upgrade this was very fast (at least in Firefox and Chrome,
not in IE).

Strangely, while waiting for the RPC call to return there is NO cpu
activity...

For me this seems related to some deep changes in the serialization
code (taking a guess here), before the upgrade trying to fetch so many
records from the server would crash IE with 'JavaScript SyntaxError
exception: Out of memory', while now it works (good!) but is very slow
in all browsers (bad!).

Can someone help me debug this 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@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: GWT RPC Handling Session

2008-09-17 Thread walden

Not sure I understand your question.  Yes, viisibility of the Session
in your service handling code is awkward, but you have figured out
what to do, as demonstrated by your code.

I have to say that this is yet another example of jumping through all
sorts of hoops trying to do custom authentication when you could much
more easily use HTTP Basic or Digest and get on with writing your
application.  If you would like help with HTTP Basic or Digest, give a
holler.

Walden

On Sep 17, 8:07 am, Schimki86 [EMAIL PROTECTED] wrote:
 There is a login-page on startup at my GWT-Application. The user
 enters his login name and password and clicks a button to sign in. In
 my server- implementation there is a method which should sign the user
 in (and gets back a result- state):

 ...
 public int loginUser(String user, String password) {
         int result = -2;
         // check's whether user name equals a valid email
         if (Validator.validateEmail(user)) {
                 DB_User db = new DB_User();
                 // get request to create a session, when login for creating 
 the
 session later
                 // HttpServletRequest request = this.getThreadLocalRequest();
                 // login the user
                 result = db.loginUser(user.toLowerCase(), password, request);
         }
         return result;}

 ...

 In the loginUser- method of db I create the session:

 ...
 HttpSession session = request.getSession();
 ...

 I don't know how I have to handle the session. There must be a state
 in the server- implementation which is compareable withe the current
 session, because only there I can access the session with
 this.getThreadLocalRequest().getSession();, or!? How do I check
 whether the session is valid?

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



Re: Using EasyMock in GWT Test Cases

2008-09-17 Thread ksachdeva

Thanks. Although the error message that it is not able to find the
source is misleading as it makes it seem like that it trying to
generate javascript out of it.

Regards
Kapil

On Sep 14, 7:26 pm, Arthur Kalmenson [EMAIL PROTECTED] wrote:
 It's not possible to use EasyMock in GWTTestCases. EasyMock requires
 Java Reflections (AFAIK), and therefore cannot be run in hosted mode.
 This is why you need to architect your application in such a way that
 most of your business logic lives in classes that don't use GWT
 widgets and are therefore testable outside of GWTTestCase.

 Regards,
 Arthur Kalmenson

 On Sep 13, 6:05 pm, ksachdeva [EMAIL PROTECTED] wrote:



  Hi,

  I am trying to use the EasyMock in my unit tests and I am getting a
  weired behavior. Here are the details of my configuration:

  Windows Vista SP1; GWT 1.5.2; EasyMock 2.4; Eclipse 3.4

  The error I am getting when I run my MyTest-hosted.launch
  configuration from eclipse:

  Compiling Java source files in module 'com.myns.MyModule.JUnit'
     Removing units with errors
        [ERROR] Errors in 'file:/C:/---removed-for-clarity--/test/
  com/myns/client/subpackage/MyModuleTest.java'
           [ERROR] Line 25: No source code is available for type
  org.easymock.EasyMock; did you forget to inherit a required module?

  From error it seems like it is looking for JUnit / EasyMock
  sources 

  My understanding was that in hosted mode there would be no conversion
  to JavaScript so I should be able to use EasyMock to mock some of my
  classes.

  Here is how my methods look in the test case:

   public String getModuleName() {
      return com.myns.MyModule;
    }

    public void testSimple() {
            SomeInterface mock = createMock(SomeInterface.class);
    }

  If I remove the code for mocking from testSimple() then I can see that
  my unit test work !!!

  Please help

  Regards
  Kapil- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: GWT RPC Handling Session

2008-09-17 Thread hezjing
I'm sorry, but I have to admit that I don't know HTTP Basic or Digest.Can
you explain more (and any good article/tutorial)?

Thank you!


On Wed, Sep 17, 2008 at 10:57 PM, walden [EMAIL PROTECTED]wrote:


 Not sure I understand your question.  Yes, viisibility of the Session
 in your service handling code is awkward, but you have figured out
 what to do, as demonstrated by your code.

 I have to say that this is yet another example of jumping through all
 sorts of hoops trying to do custom authentication when you could much
 more easily use HTTP Basic or Digest and get on with writing your
 application.  If you would like help with HTTP Basic or Digest, give a
 holler.

 Walden

 On Sep 17, 8:07 am, Schimki86 [EMAIL PROTECTED] wrote:
  There is a login-page on startup at my GWT-Application. The user
  enters his login name and password and clicks a button to sign in. In
  my server- implementation there is a method which should sign the user
  in (and gets back a result- state):
 
  ...
  public int loginUser(String user, String password) {
  int result = -2;
  // check's whether user name equals a valid email
  if (Validator.validateEmail(user)) {
  DB_User db = new DB_User();
  // get request to create a session, when login for
 creating the
  session later
  // HttpServletRequest request =
 this.getThreadLocalRequest();
  // login the user
  result = db.loginUser(user.toLowerCase(), password,
 request);
  }
  return result;}
 
  ...
 
  In the loginUser- method of db I create the session:
 
  ...
  HttpSession session = request.getSession();
  ...
 
  I don't know how I have to handle the session. There must be a state
  in the server- implementation which is compareable withe the current
  session, because only there I can access the session with
  this.getThreadLocalRequest().getSession();, or!? How do I check
  whether the session is valid?
 
  Hope you can help and thx in advance!
 



-- 

Hez

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



GWT's HTTPS design consideration and guideline?

2008-09-17 Thread hezjing
Hi
I have a GWT application, and it is running without HTTPS.

What need to be done if I want this GWT application to run with HTTPS?
Is there any changes in the code and configuration?

Can I test HTTPS in hosted mode?

Is there any difference when designing a GWT application for HTTP and HTTPS?



-- 

Hez

--~--~-~--~~~---~--~~
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: append new data in Livegrid

2008-09-17 Thread Khoa

Thanks for your responses... I kind of get the thing working. Here is
my logic:

On the server-side, I periodically query the database for new records
and append them to my Object[][] data. Whenever the client click
Refresh button for example, the server-side will send the data[][]
back in JSON format. There is a problem with this approach, however,
as the Object[][] data array will grow very large over time and
consequently, the JSON data as well. That brings up another set of
questions :-)

1. On the server-side I would like to store only new records in data[]
[],  and let the client keep track of past records. Server will only
send new data since the last client refresh. How do I append new data
into BufferedStore and/or JSONReader and refresh the livegrid?

2. Instead of waiting for the user to click Refresh button, I would
like to auto refresh the grid periodically -- How can I achieve that?
What functions does the Refresh button invoke?

Appreciate your inputs.

Khoa


On Sep 16, 2:54 am, vruddhi shah [EMAIL PROTECTED] wrote:
 Hi Khoa,

 See this can be help to you...www.sample.gwt4enterprise.com

 Vruddhi

 On Mon, Sep 15, 2008 at 10:53 PM, Khoa [EMAIL PROTECTED] wrote:

  Hi,

  I am using Livegrid to display records from a database -- As new
  records are inserted into a database (by another program), I would
  like to periodically update my grid by appending newly added records.
  I can query the whole table again but that's not very efficient. Is
  there a way to update the livegrid with those new records?

  I've looked at the Livegrid sample code, but it uses a static Object[]
  [] data as a source.

  Thanks,
  Khoa
--~--~-~--~~~---~--~~
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: GWT Maps API fails on host mode

2008-09-17 Thread Eric Ayers
I'm wondering if it is some sort of network issue - the Maps API has to load
from a server at google.

Also, even though you shouldn't need a key, you could go to
http://code.google.com/apis/maps and get one for localhost.  IIRC, some
parts of the API (Geocoding maybe?) do need a key, even if its localhost.

On Wed, Sep 17, 2008 at 1:17 PM, Einstein0970 [EMAIL PROTECTED] wrote:


 Hi Eric,

 I have installed the latest and greatest JVM32bit and still fails on
 the same error.
 Any other ideas?

 - Erick

 On Sep 15, 8:46 pm, Eric Ayers [EMAIL PROTECTED] wrote:
  We have had reports of GWT being used sucessfully on Ubuntu 8 and 9.  One
  more thing - I think you must be using the 32 bit JVM or you probably
  wouldn't even see hosted mode, but just to be certain, are you using a 32
  bit JVM?   We've had reports of a bad version of the 1.6 JVM causing
  problems in one distro.  Can you try upgrading or changing your JVM
  version?  Any 32 bit 1.5.x or 1.6.x should work.
 
  All these things aside, it still looks to me like the Maps API script is
 not
  loading. I can't tell you why it would all of a sudden start to fail.
 
 
 
  On Mon, Sep 15, 2008 at 8:35 PM, Eric Ayers [EMAIL PROTECTED] wrote:
   What happens when you try to compile and run in web mode?
 
   On Mon, Sep 15, 2008 at 7:31 PM, Einstein0970 [EMAIL PROTECTED]
 wrote:
 
   Ran the HelloMaps demo and works great when deployed on my localhost
   tomcat but same error when ran from the Eclipse IDE host-mode. BTW,
   the same app ran well in GWT1.4, Ubuntu 7 and Eclipse 3.3...
   Can you guys reproduce my errors using HelloMaps in Ubuntu 8.04?
 
   On 15 sep, 16:33, Eric Ayers [EMAIL PROTECTED] wrote:
When you ran the tutorial, did the application in the tutorial work
 for
   you
(the world's largest ball of twine)?
 
Can you show a small segment of code that reproduces the problem?
 
On Mon, Sep 15, 2008 at 4:26 PM, Einstein0970 [EMAIL PROTECTED]
 wrote:
 
 I use: gwt-maps.jar (0.0.290) from (http://code.google.com/p/gwt-
 google-apis/wiki/Downloads
  http://code.google.com/p/gwt-google-apis/wiki/Downloads
 )
 
 On Sep 15, 3:50 pm, Eric Ayers [EMAIL PROTECTED] wrote:
  When you say you are using the latest gwt-maps.jar file, can you
   tell me
  what version you downloaded?
 
  On Mon, Sep 15, 2008 at 3:46 PM, Einstein0970 [EMAIL PROTECTED]
 
   wrote:
 
   Still fails:
 
   Here's my gwt.xml file: (followed the tut:
  
 http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted)
 
   module
 
inherits name=com.google.gwt.maps.GoogleMaps/
 inherits name=com.jarics.gwt.Widgets /
 !-- You can run under localhost without a key --
script src=http://maps.google.com/maps?
   gwt=1amp;file=apiamp;v=2.x
http://maps.google.com/maps?gwt=1file=apiv=2.x
   /
 entry-point class=com.mobigolf.gwt.client.MobiGolf/
 
   /module
 
   On Sep 15, 1:44 pm, Eric Ayers [EMAIL PROTECTED] wrote:
Try loading the Maps API before your GWT script.  Or move
 the
   loading
 of
   the
Maps script into your .gwt.xml file.  There is an example of
 the
 latter
   in
the online documentation at:
http://code.google.com/p/gwt-google-apis/
 
On Mon, Sep 15, 2008 at 12:55 PM, Einstein0970 
   [EMAIL PROTECTED]
 wrote:
 
 Hi,
 
 I have tried all possibilities:
 
 1- scrip in my html file
 2- cript in my web.xml file
 
 Still receive same error.
 
 Here are my files:
 html
head
 
!--
   --
!-- Any title is fine
   --
!--
   --
titleWrapper HTML for MobiGolf/title
 
!--
   --
!-- The module reference below is the link
--
!-- between html and your Web Toolkit
 module
--
!--
   --
meta name='gwt:module'
 content='com.mobigolf.gwt.MobiGolf'/
 
!--
   --
!-- Link CSS file
   --
!--
   --
link type=text/css rel='stylesheet'
   href='MobiGolf.css'/
 
/head
 
!--   --
!-- The body can have arbitrary html, or  --
!-- we leave the body empty because we want   --
!-- to create a completely dynamic ui --
!--   --
body
 
!--
--
!-- This script is required bootstrap
 stuff.
   --
!-- You can put it in the HEAD, but
 startup
--
!-- is slightly faster if you include it
 here.
   --
!--
--
  

Re: GWT Maps API fails on host mode

2008-09-17 Thread Eric Ayers
Could it be that you have some sort of proxy setup to get to the Internet?
If so, the hosted mode browser probably isn't aware of it.

John T. on the GWT team suggested you try 'wireshark' to see if the requests
to fetch the Google Maps API were getting off of the machine.

-Eric.

On Wed, Sep 17, 2008 at 1:24 PM, Eric Ayers [EMAIL PROTECTED] wrote:

 I'm wondering if it is some sort of network issue - the Maps API has to
 load from a server at google.

 Also, even though you shouldn't need a key, you could go to
 http://code.google.com/apis/maps and get one for localhost.  IIRC, some
 parts of the API (Geocoding maybe?) do need a key, even if its localhost.


 On Wed, Sep 17, 2008 at 1:17 PM, Einstein0970 [EMAIL PROTECTED] wrote:


 Hi Eric,

 I have installed the latest and greatest JVM32bit and still fails on
 the same error.
 Any other ideas?

 - Erick

 On Sep 15, 8:46 pm, Eric Ayers [EMAIL PROTECTED] wrote:
  We have had reports of GWT being used sucessfully on Ubuntu 8 and 9.
  One
  more thing - I think you must be using the 32 bit JVM or you probably
  wouldn't even see hosted mode, but just to be certain, are you using a
 32
  bit JVM?   We've had reports of a bad version of the 1.6 JVM causing
  problems in one distro.  Can you try upgrading or changing your JVM
  version?  Any 32 bit 1.5.x or 1.6.x should work.
 
  All these things aside, it still looks to me like the Maps API script is
 not
  loading. I can't tell you why it would all of a sudden start to fail.
 
 
 
  On Mon, Sep 15, 2008 at 8:35 PM, Eric Ayers [EMAIL PROTECTED] wrote:
   What happens when you try to compile and run in web mode?
 
   On Mon, Sep 15, 2008 at 7:31 PM, Einstein0970 [EMAIL PROTECTED]
 wrote:
 
   Ran the HelloMaps demo and works great when deployed on my localhost
   tomcat but same error when ran from the Eclipse IDE host-mode. BTW,
   the same app ran well in GWT1.4, Ubuntu 7 and Eclipse 3.3...
   Can you guys reproduce my errors using HelloMaps in Ubuntu 8.04?
 
   On 15 sep, 16:33, Eric Ayers [EMAIL PROTECTED] wrote:
When you ran the tutorial, did the application in the tutorial work
 for
   you
(the world's largest ball of twine)?
 
Can you show a small segment of code that reproduces the problem?
 
On Mon, Sep 15, 2008 at 4:26 PM, Einstein0970 [EMAIL PROTECTED]
 wrote:
 
 I use: gwt-maps.jar (0.0.290) from (
 http://code.google.com/p/gwt-
 google-apis/wiki/Downloads
  http://code.google.com/p/gwt-google-apis/wiki/Downloads
 )
 
 On Sep 15, 3:50 pm, Eric Ayers [EMAIL PROTECTED] wrote:
  When you say you are using the latest gwt-maps.jar file, can
 you
   tell me
  what version you downloaded?
 
  On Mon, Sep 15, 2008 at 3:46 PM, Einstein0970 
 [EMAIL PROTECTED]
   wrote:
 
   Still fails:
 
   Here's my gwt.xml file: (followed the tut:
  
 http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted)
 
   module
 
inherits name=com.google.gwt.maps.GoogleMaps/
 inherits name=com.jarics.gwt.Widgets /
 !-- You can run under localhost without a key --
script src=http://maps.google.com/maps?
   gwt=1amp;file=apiamp;v=2.x
http://maps.google.com/maps?gwt=1file=apiv=2.x
   /
 entry-point class=com.mobigolf.gwt.client.MobiGolf/
 
   /module
 
   On Sep 15, 1:44 pm, Eric Ayers [EMAIL PROTECTED] wrote:
Try loading the Maps API before your GWT script.  Or move
 the
   loading
 of
   the
Maps script into your .gwt.xml file.  There is an example
 of the
 latter
   in
the online documentation at:
http://code.google.com/p/gwt-google-apis/
 
On Mon, Sep 15, 2008 at 12:55 PM, Einstein0970 
   [EMAIL PROTECTED]
 wrote:
 
 Hi,
 
 I have tried all possibilities:
 
 1- scrip in my html file
 2- cript in my web.xml file
 
 Still receive same error.
 
 Here are my files:
 html
head
 
!--
   --
!-- Any title is fine
   --
!--
   --
titleWrapper HTML for MobiGolf/title
 
!--
   --
!-- The module reference below is the
 link
--
!-- between html and your Web Toolkit
 module
--
!--
   --
meta name='gwt:module'
 content='com.mobigolf.gwt.MobiGolf'/
 
!--
   --
!-- Link CSS file
   --
!--
   --
link type=text/css rel='stylesheet'
   href='MobiGolf.css'/
 
/head
 
!--   --
!-- The body can have arbitrary html, or  --
!-- we leave the body empty because we want   --
!-- to create a completely dynamic ui --
!-- 

Re: GWT Maps API fails on host mode

2008-09-17 Thread Einstein0970

Yeah it gets to http://maps.google.com/maps?gwt=1amp;file=apiamp;v=2.x
from my machine using firefox 3. No proxies in my way either.

On Sep 17, 1:58 pm, Eric Ayers [EMAIL PROTECTED] wrote:
 Could it be that you have some sort of proxy setup to get to the Internet?
 If so, the hosted mode browser probably isn't aware of it.

 John T. on the GWT team suggested you try 'wireshark' to see if the requests
 to fetch the Google Maps API were getting off of the machine.

 -Eric.

 On Wed, Sep 17, 2008 at 1:24 PM, Eric Ayers [EMAIL PROTECTED] wrote:
  I'm wondering if it is some sort of network issue - the Maps API has to
  load from a server at google.

  Also, even though you shouldn't need a key, you could go to
 http://code.google.com/apis/mapsand get one for localhost.  IIRC, some
  parts of the API (Geocoding maybe?) do need a key, even if its localhost.

  On Wed, Sep 17, 2008 at 1:17 PM, Einstein0970 [EMAIL PROTECTED] wrote:

  Hi Eric,

  I have installed the latest and greatest JVM32bit and still fails on
  the same error.
  Any other ideas?

  - Erick

  On Sep 15, 8:46 pm, Eric Ayers [EMAIL PROTECTED] wrote:
   We have had reports of GWT being used sucessfully on Ubuntu 8 and 9.
   One
   more thing - I think you must be using the 32 bit JVM or you probably
   wouldn't even see hosted mode, but just to be certain, are you using a
  32
   bit JVM?   We've had reports of a bad version of the 1.6 JVM causing
   problems in one distro.  Can you try upgrading or changing your JVM
   version?  Any 32 bit 1.5.x or 1.6.x should work.

   All these things aside, it still looks to me like the Maps API script is
  not
   loading. I can't tell you why it would all of a sudden start to fail.

   On Mon, Sep 15, 2008 at 8:35 PM, Eric Ayers [EMAIL PROTECTED] wrote:
What happens when you try to compile and run in web mode?

On Mon, Sep 15, 2008 at 7:31 PM, Einstein0970 [EMAIL PROTECTED]
  wrote:

Ran the HelloMaps demo and works great when deployed on my localhost
tomcat but same error when ran from the Eclipse IDE host-mode. BTW,
the same app ran well in GWT1.4, Ubuntu 7 and Eclipse 3.3...
Can you guys reproduce my errors using HelloMaps in Ubuntu 8.04?

On 15 sep, 16:33, Eric Ayers [EMAIL PROTECTED] wrote:
 When you ran the tutorial, did the application in the tutorial work
  for
you
 (the world's largest ball of twine)?

 Can you show a small segment of code that reproduces the problem?

 On Mon, Sep 15, 2008 at 4:26 PM, Einstein0970 [EMAIL PROTECTED]
  wrote:

  I use: gwt-maps.jar (0.0.290) from (
 http://code.google.com/p/gwt-
  google-apis/wiki/Downloads
   http://code.google.com/p/gwt-google-apis/wiki/Downloads
  )

  On Sep 15, 3:50 pm, Eric Ayers [EMAIL PROTECTED] wrote:
   When you say you are using the latest gwt-maps.jar file, can
  you
tell me
   what version you downloaded?

   On Mon, Sep 15, 2008 at 3:46 PM, Einstein0970 
  [EMAIL PROTECTED]
wrote:

Still fails:

Here's my gwt.xml file: (followed the tut:

 http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted)

module

 inherits name=com.google.gwt.maps.GoogleMaps/
  inherits name=com.jarics.gwt.Widgets /
  !-- You can run under localhost without a key --
 script src=http://maps.google.com/maps?
gwt=1amp;file=apiamp;v=2.x
 http://maps.google.com/maps?gwt=1file=apiv=2.x
/
  entry-point class=com.mobigolf.gwt.client.MobiGolf/

/module

On Sep 15, 1:44 pm, Eric Ayers [EMAIL PROTECTED] wrote:
 Try loading the Maps API before your GWT script.  Or move
  the
loading
  of
the
 Maps script into your .gwt.xml file.  There is an example
  of the
  latter
in
 the online documentation at:
 http://code.google.com/p/gwt-google-apis/

 On Mon, Sep 15, 2008 at 12:55 PM, Einstein0970 
[EMAIL PROTECTED]
  wrote:

  Hi,

  I have tried all possibilities:

  1- scrip in my html file
  2- cript in my web.xml file

  Still receive same error.

  Here are my files:
  html
         head

                 !--
--
                 !-- Any title is fine
--
                 !--
--
                 titleWrapper HTML for MobiGolf/title

                 !--
--
                 !-- The module reference below is the
  link
 --
                 !-- between html and your Web Toolkit
  module
 --
                 !--
--
                 meta name='gwt:module'
  content='com.mobigolf.gwt.MobiGolf'/

                 !--
--
                 !-- Link CSS file
--
                 !--
--
                 link type=text/css rel='stylesheet'
href='MobiGolf.css'/

         /head

         !--   

Re: GWT Google Maps InfoWindow Resizing

2008-09-17 Thread Pavel Byles
bump.
anyone else?

On Tue, Sep 16, 2008 at 10:09 PM, Pavel Byles [EMAIL PROTECTED] wrote:

 Yes... reset is what I was referring to


 On Tue, Sep 16, 2008 at 4:43 PM, Eric Ayers [EMAIL PROTECTED] wrote:

 I didn't see a resize() function other than reset()


 On Tue, Sep 16, 2008 at 4:25 PM, Pavel Byles [EMAIL PROTECTED]wrote:

 I know the JS api has a resize function.. but GWT doesn't.
 Also I've seen others do it but have no idea how it's done.

 -Pavel

 On Tue, Sep 16, 2008 at 3:11 PM, Eric Ayers [EMAIL PROTECTED] wrote:

 I just added a patch for the GInfoWindow.reset() method in the issue
 tracker, but I was unable to get it to work reliably.  I have a question
 into the Maps folks.

 -Eric.

 On Tue, Sep 16, 2008 at 1:39 PM, Pavel Byles [EMAIL PROTECTED]wrote:

 Does anyone know how to make the InfoWindow resize once the content has
 been loaded within it?

 -Pavel





 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USA
 http://code.google.com/webtoolkit/








 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USA
 http://code.google.com/webtoolkit/

 



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



Need some JSNI help/explanation

2008-09-17 Thread Hiedi

I am working on a new class and I want to expose instance fields and
methods via a prototype via JSNI so I can call from third party script
into my GWT code like this.

var mySimpleObject = new Simple(test);
test.callMyName();

I have been working through a series of examples that build on each
other but I am not sure that my assumptions about why the ones that
work really work and why the ones that fail really fail.

Here they are -- JSNI experts please comment!

Thanks!

package com.test.client;

public class Simple {

public String name;

public Simple(String name) {

this.name = name;
}

public static Simple createSimple(String name) {
return new Simple(name);

}

// this works becuase you are passing in the Simple reference
public native void callMyNameWorks(Simple myInstance)
/*-{

 $wnd.callMyName = function(){

alert( [EMAIL PROTECTED]::name);
 }

 alert( [EMAIL PROTECTED]::name);

 $wnd.callMyName();

 }-*/;

// this works because we COPY the reference and store it in a
closure.
public native void callMyNameWorks()
/*-{

 var myInstance = this;

 $wnd.callMyName = function(){


alert( [EMAIL PROTECTED]::name);
 }

 //this in GWT entrypoint is the Simple object that called this
method.
 alert( [EMAIL PROTECTED]::name);

 $wnd.callMyName();

 }-*/;

// this broken because this is not the right object when our new
function
// gets called.
public native void callMyNameHalfBroken()
/*-{

 $wnd.callMyName = function(){

 //this will break because at this is actually the window object
now (or who called the method)
 alert( [EMAIL PROTECTED]::name);
 }

 //this works b/c GWT entrypoint is the Simple object that called
this method.
 alert( [EMAIL PROTECTED]::name);

 $wnd.callMyName();

 }-*/;

public static native void callMyNameStaticGlobalWorks()
/*-{

 //---
 //NOTE: this RETURNS the GWT Simple Object not a js object
 //---
 $wnd.jsSimple = function (name){
 return
@com.siemens.soarian.sf.uiarch.client.Simple::createSimple(Ljava/lang/
String;)(name)
 }

 //myObject must be an instance of the GWT Simple Object
 $wnd.callMyNameGlobal = function(myGwtJavaObject){

alert([EMAIL PROTECTED]::name);
 }

 var myJsSimple = new $wnd.jsSimple(testing);

 //works bc we pass in the actual GWT Java Simple object
 $wnd.callMyNameGlobal(myJsSimple);

 }-*/;

public static native void callMyNameStaticGlobalBroken()
/*-{

 debugger;

 //---
 //NOTE: effectively assigns the value of var name = javascript
instance of gwt java object
 //if you look at the object in debug you will see name.instance is
now defined.
 //name.instance is a reference to the gwt object
 //---
 $wnd.jsSimple = function (name){
 this.instance =
@com.siemens.soarian.sf.uiarch.client.Simple::createSimple(Ljava/lang/
String;)(name);
 }

 //myObject must be an instance of the GWT Simple Object
 $wnd.callMyNameGlobal = function(myobject){

 alert([EMAIL PROTECTED]::name);

 }

 //debug shows that there is now a name.instance defined;
 var myJsSimple = new $wnd.jsSimple(testing);
 $wnd.callMyNameGlobal(myJsSimple);

 }-*/;

public static native void callMyNameStaticLocalBroken()
/*-{

 debugger;

 //---
 //NOTE: effectively assigns the value of var name = javascript
instance of gwt java object
 //if you look at the object in debug you will see name.instance is
now defined.
 //name.instance is a reference to the gwt object
 //---
 $wnd.jsSimple = function (name){
 this.instance =
@com.siemens.soarian.sf.uiarch.client.Simple::createSimple(Ljava/lang/
String;)(name);
 }

 //store a copy of the prototype reference to use later
 var _= $wnd.jsSimple.prototype;
 _.callMyNameLocal = function(){

 //who is this when its called? it won't be a GWT Java Simple
object!!!
 //it is actually the javascript object -- So the myInstance[blah
blah] will be undefined
 var myInstance = this;

alert([EMAIL PROTECTED]::name);
 }

 var myJsSimple = new $wnd.jsSimple(testing);
 myJsSimple.callMyNameLocal();

 }-*/;

public static native void callMyNameStaticLocalWorks1()
/*-{


Question on parsing JSON string

2008-09-17 Thread ceeed

Hi,
I am gettiing a hash/dictionary from the server as a JSON string. This
looks some thing like:
{a: bar, b: foo, c: [x, y, z], d: {1: xxx, 2:
yyy}}
Is there some class that can convert this to a HashMap?
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: GWT Maps API fails on host mode

2008-09-17 Thread Einstein0970

What version of eclipse did you use?

On Sep 17, 2:20 pm, Eric Ayers [EMAIL PROTECTED] wrote:
 I just loaded gwt 1.5.2 and gwt-maps milestone r290 onto a machine whose
 /etc/issue reports Ubuntu 8.04.1 (64 bit)

 JVM is: /usr/lib/jvm/ia32-java-6-sun/jre/bin/java

 I ran the stock HelloMaps demo without a problem.

 Again, you might try the 'wireshark' tool to make sure that requests from
 hosted mode are actually making it off the machine.

 On Wed, Sep 17, 2008 at 2:03 PM, Einstein0970 [EMAIL PROTECTED] wrote:

  Yeah it gets tohttp://maps.google.com/maps?gwt=1file=apiv=2.x
  from my machine using firefox 3. No proxies in my way either.

  On Sep 17, 1:58 pm, Eric Ayers [EMAIL PROTECTED] wrote:
   Could it be that you have some sort of proxy setup to get to the
  Internet?
   If so, the hosted mode browser probably isn't aware of it.

   John T. on the GWT team suggested you try 'wireshark' to see if the
  requests
   to fetch the Google Maps API were getting off of the machine.

   -Eric.

   On Wed, Sep 17, 2008 at 1:24 PM, Eric Ayers [EMAIL PROTECTED] wrote:
I'm wondering if it is some sort of network issue - the Maps API has to
load from a server at google.

Also, even though you shouldn't need a key, you could go to
   http://code.google.com/apis/mapsandget one for localhost.  IIRC, some
parts of the API (Geocoding maybe?) do need a key, even if its
  localhost.

On Wed, Sep 17, 2008 at 1:17 PM, Einstein0970 [EMAIL PROTECTED]
  wrote:

Hi Eric,

I have installed the latest and greatest JVM32bit and still fails on
the same error.
Any other ideas?

- Erick

On Sep 15, 8:46 pm, Eric Ayers [EMAIL PROTECTED] wrote:
 We have had reports of GWT being used sucessfully on Ubuntu 8 and 9.
 One
 more thing - I think you must be using the 32 bit JVM or you
  probably
 wouldn't even see hosted mode, but just to be certain, are you using
  a
32
 bit JVM?   We've had reports of a bad version of the 1.6 JVM causing
 problems in one distro.  Can you try upgrading or changing your JVM
 version?  Any 32 bit 1.5.x or 1.6.x should work.

 All these things aside, it still looks to me like the Maps API
  script is
not
 loading. I can't tell you why it would all of a sudden start to
  fail.

 On Mon, Sep 15, 2008 at 8:35 PM, Eric Ayers [EMAIL PROTECTED]
  wrote:
  What happens when you try to compile and run in web mode?

  On Mon, Sep 15, 2008 at 7:31 PM, Einstein0970 [EMAIL PROTECTED]
wrote:

  Ran the HelloMaps demo and works great when deployed on my
  localhost
  tomcat but same error when ran from the Eclipse IDE host-mode.
  BTW,
  the same app ran well in GWT1.4, Ubuntu 7 and Eclipse 3.3...
  Can you guys reproduce my errors using HelloMaps in Ubuntu 8.04?

  On 15 sep, 16:33, Eric Ayers [EMAIL PROTECTED] wrote:
   When you ran the tutorial, did the application in the tutorial
  work
for
  you
   (the world's largest ball of twine)?

   Can you show a small segment of code that reproduces the
  problem?

   On Mon, Sep 15, 2008 at 4:26 PM, Einstein0970 
  [EMAIL PROTECTED]
wrote:

I use: gwt-maps.jar (0.0.290) from (
   http://code.google.com/p/gwt-
google-apis/wiki/Downloads
 http://code.google.com/p/gwt-google-apis/wiki/Downloads
)

On Sep 15, 3:50 pm, Eric Ayers [EMAIL PROTECTED] wrote:
 When you say you are using the latest gwt-maps.jar file,
  can
you
  tell me
 what version you downloaded?

 On Mon, Sep 15, 2008 at 3:46 PM, Einstein0970 
[EMAIL PROTECTED]
  wrote:

  Still fails:

  Here's my gwt.xml file: (followed the tut:

   http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted)

  module

   inherits name=com.google.gwt.maps.GoogleMaps/
    inherits name=com.jarics.gwt.Widgets /
    !-- You can run under localhost without a key --
   script src=http://maps.google.com/maps?
  gwt=1amp;file=apiamp;v=2.x
   http://maps.google.com/maps?gwt=1file=apiv=2.x
  /
    entry-point class=com.mobigolf.gwt.client.MobiGolf/

  /module

  On Sep 15, 1:44 pm, Eric Ayers [EMAIL PROTECTED]
  wrote:
   Try loading the Maps API before your GWT script.  Or
  move
the
  loading
of
  the
   Maps script into your .gwt.xml file.  There is an
  example
of the
latter
  in
   the online documentation at:
   http://code.google.com/p/gwt-google-apis/

   On Mon, Sep 15, 2008 at 12:55 PM, Einstein0970 
  [EMAIL PROTECTED]
wrote:

Hi,

I have tried all possibilities:

1- scrip in my html file
2- cript in my web.xml file

Still receive same error.

Here are my files:
html
       head

               !--
 

Re: Using EasyMock in GWT Test Cases

2008-09-17 Thread Kapil Sachdeva
So going by this theory does it do the conversion of junit libraries since
they are needed. ?. Since mocking is such an essential part of unit testing
could some one suggest how one should include it in GWT. My GWT Classes
incorporate both pure java classes and overlays on existing javascript
libraries.

GWT and its associated toos is really a lot of magic and a beautiful piece
of engineering. I wish they would publish more articles, documents etc on
the internals of GWT so others could learn from experiences of these great
developers.
Regards
Kapil
On Wed, Sep 17, 2008 at 2:19 PM, Ian Petersen [EMAIL PROTECTED] wrote:


 On Wed, Sep 17, 2008 at 12:10 PM, ksachdeva [EMAIL PROTECTED] wrote:
  Thanks. Although the error message that it is not able to find the
  source is misleading as it makes it seem like that it trying to
  generate javascript out of it.

 That's exactly what it's trying to do.  If you had provided sources,
 it _then_ would have complained that the reflection-related classes
 are not available.

 Ian

 


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



Project bin directory

2008-09-17 Thread Willis

Kind of a simple question, but I notice that some of my GWT projects
have a bin directory. I understand it holds the compiled versions of
my class files from src, but it is not created when a project is
started (using the project/application creators), so when is it
created?  Also, what happens if I delete it?

Thanks in advance for any clarifications!

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



Trouble loading common files in Eclipse

2008-09-17 Thread Lane

This is probably trivally easy, but I find the documentation on
modules a little sparse so hopefully someone will help me out.

I have a project under Eclipse that I have split into a client side
project and a server side project. I do this so that I can run the
server under Tomcat 6 rather than the built-in Tomcat.

Both projects share common files, which I initially just put into the
client project and included the client project in the server's class
path. Unfortunately, I get problems with versions of things like the
Bootstrap and Servlet classes between the Tomcat 6 I'm running and the
native version in GWT.

So, I pulled my common files out into yet a third project and am
trying to include that project into my client project, but I can't
figure out how to get the GWT compiler to find those common files. I
have the project in my class path. I have the source files called out
in my module XML file: source path=com/blah/v4/common/client. I
even tried making the common files into its own module and inheriting
it. But I can't get the compiler to find them.

I am running on Windows so I am not sure what the right syntax would
be for absolute-pathing the files (though I have a tried a couple
things).

There has to be some clearer information on the right way to do this.
Can someone please point me in the right direction?

Thanks,

Lane

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



Real world UI development and GWT

2008-09-17 Thread philserve

I'm trying to choose an appropriate framework for a mid-large scale
web app. I've built apps using JS and javascript libraries, such as
Dojo and Prototype, but am looking for a more comprehensive approach.
I like what I see in GWT, but for the most part I don't want to do
large scale UI generation in GWT - the real world approach has been:

- graphic designer lays out HTML pages w/ css
- development takes pages, tweaks IDs and develops code to access
those elements (via IDs) for data injection.

With an existing J2EE architecture from which to retrieve data, GWT-
RPC is an obvious choice. But I don't want to get into heavy
developing of UI Layouts - I prefer to access object via
RootPanel.get(MYID) then add components into a page already nicely
laid out by my designer.

The main pages are spreadsheet like tables, so my thought is to use
GWT-EXT to generate and populate these tables with data. But these
initially empty tables exist within an existing HTML page layout given
to me. IOW, the pages are generally semi-static but component
contents are dynamically loaded.

Bottom line I don't want to get back into Swing-like coding and layout
tweaking, but rather focus on M and C of the MVC paradigm.

Do you think GWT is a good solution for this basic paradigm of web
page development?

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



GWT and Real World UI Development

2008-09-17 Thread philserve

Folks, I'm trying to choose an appropriate framework for a mid-large
scale web app. I've built many apps using JS and javascript libraries,
such as Dojo and Prototype, but am looking for a more comprehensive
approach. I like what I see in GWT, but for the most part I don't want
to do large scale UI generation in GWT - the real world approach has
been

--~--~-~--~~~---~--~~
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: Invalid version number null when using the hosted mode

2008-09-17 Thread mzachar

I had the same problem as well. And I found that in my hosted.html I
had external.gwtOnLoad(window, modName); and it was not working.
Then I made some changes (I made them a lot so I am not realy sure
which one was correct) and then the result in hosted.html was
external.gwtOnLoad(window, modName, 1.5);. So maby if your builder
is building all the time wrong hosted.html you can try to chnage it
manualy. Maybe it will helps.

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



Dynamic Windows/Form

2008-09-17 Thread Jaco van Staden

Hi Guys,

I would like to create an application where I can create the actual
forms/windows dynamically and add GWT controls to the windows
dynamically.  I was wondering whether anyone has tried to do this
before, seeing that I'm not getting any information on how to do it.

Basically the process would be to have a FormBuilder type class, which
takes a form definition specifying which controls should be on the
form and then loops through it adding the controls/components.

Any ideas???

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: Getting User Input from Input Field

2008-09-17 Thread WebDude

I tried elem.getAttribute(value).  It unfortunately, didn't change
the behavior.

As for using a text box, this example is a dumbed down version of what
I'm doing.  The real application is integrating GWT as part of other
(non-GWT) JavaScripts.  The other JavaScripts are inserting data into
an input field.  I would like to read those values from the GWT part
of the application. If there is a better way, I'm open to
suggestions.  I merely added the HTML element to better simulate the
situation I'm in.  I guess the sample code isn't a good example.  I
don't have a direct access to the Element object.  I would have to get
element by ID (the commented out lines in my example).

I guess, the real question is how do I get non-GWT javascripts to talk
to GWT?
I'm also curious to why it works in IE and hosted mode but not other
browsers.  I thought GWT was (thankfully) suppose to take care of
browser differences.

Thanks


On Sep 16, 7:08 am, Danny Schimke [EMAIL PROTECTED] wrote:
 You init an element with com.google.gwt.user.client.Element elem
 = DOM.getChild(inputHTML.getElement(), 0); and then you wanted to get the
 value val = DOM.getElementAttribute(elem, value);. Why you do not try to
 get the value by elem.getAttribute(value)? Or use a TextBox instead
 HTML(... your textbox as html- code ...) and work with getter- method(s)
 to get the value from outside. When I have enougth time I'll try your code:
 first and foremost, it looks really good... ;) See U L8er

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



Different request but get same image issue.

2008-09-17 Thread maxx

I use GWT to build a pictures gallery (3 by 3) which get the images
from a server. Each image is unique.
The client will request from the server and a java servlet will
generate the image.
The problem is when the pictures gallery displays the images,
sometimes it would shows same image although the request to the server
is different.
For example:
Image #1 : image.setUrl(http://www.domain.com/servlet?
args=image1);
Image #2 : image.setUrl(http://www.domain.com/servlet?args=image2;);
But it's would shows same image for both requests instead of showing
different images. Usually it's happens when both images sit side by
side.
When I refresh the browser (F5), it will display properly which is
it's display two different images (one of the image will display
correctly).
For your information, on client side I use iteration to create the
Image object and set the Url; such as:
for(int i=0, i9; i++){
Image image = new Image();
image.setUrl(someUrl+args);
}

Anyone know what the cause of this problem and how to solve it?

--~--~-~--~~~---~--~~
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: GWT Projects in Eclipse 3.4.0

2008-09-17 Thread larsonc

Marcus,

I'm not sure if you have resolved this or not, but this happened to me
when I was integrating GWT into a JBoss application.  I had to right-
click on the the src folder and do a Refresh.  Just hitting F5
wasn't reloading everything.  As an alternative (if this doesn't
work), you could always create a linked project folder to the public
folder in your workspace (New  Folder  Advanced  Check Link to
folder in the file system  Browse...).

Good luck,

Cory

On Sep 16, 6:19 am, Marcus [EMAIL PROTECTED] wrote:
 Hi all:  I've been able to create the StockWatcher project and go
 through the tutorial.  However, I'm having one difficulty with
 Eclipse.  When I import the project into Eclipse (after running
 projectCreator  applicationCreator), I only see the Java files under
 the src tree.  I do not see any xml or html or css files - nor the
 public folder.  If I want to edit them, I have to go File | Open File
 and manually browse to the location of the file I want to edit.  Is
 there a setting in Eclipse that I'm missing to be able to see these
 files under the src tree?

 Cheers,
 Marcus

--~--~-~--~~~---~--~~
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: Using EasyMock in GWT Test Cases

2008-09-17 Thread Ian Petersen

On Wed, Sep 17, 2008 at 5:50 PM, Kapil Sachdeva [EMAIL PROTECTED] wrote:
 So going by this theory does it do the conversion of junit libraries since
 they are needed. ?

GWT comes with a JUnit implementation that suits the needs spec'd out
by the GWT developers.  I'm not sure what that actually means, but I
do know the conversion was done manually--whatever source was needed
was written by hand.  There's no magic automatic conversion happening
in the background.

 Since mocking is such an essential part of unit testing
 could some one suggest how one should include it in GWT. My GWT Classes
 incorporate both pure java classes and overlays on existing javascript
 libraries.

You probably need to look into writing a generator.  Ray Cromwell has
an excellent primer on generators in his blog at
http://timepedia.blogspot.com/.  I think the relevant entries are
called Generators and Generators part deux, or something like
that.  The articles are quite old by now.  You can also search the
history of this list and the history of the
Google-Web-Toolkit-Contributors list for discussions on generators or
reflection because the answer to just about every reflection question
is use a generator.  Finally, the GWT source includes several
generator implementations--there's at least the RPC generator, the
i18n generator, and probably several others.

Ian

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



Re: GWT using maps api problems

2008-09-17 Thread Eric Ayers
This is the first time I've heard of the Fusion product.  From looking at
the First Base Solutions website, it looks different from the Google Maps
API that gwt-google-apis wraps.

On Tue, Sep 16, 2008 at 11:24 AM, Brad [EMAIL PROTECTED] wrote:


 I'm currently developing a GWT app that uses the latest google maps
 api for map viewing. However I recently hit a road block when
 deploying my app. The app was deployed internally and I tried to
 connect to the maps javascript api and no luck. After further
 investigation I found we have deployed a Google Earth Enterprise
 Fusion server that also has the Google Maps api hanging off of that.
 It appears that this Fusion maps api is not the same as the google
 maps api I'm testing with from the net. I can't find ANYTHING out the
 nets to help with this problem. Does GWT even work with Fusion
 products/apis?

 



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



GWT And HTTPServlet

2008-09-17 Thread sim123

I have couple of RPC servlet(which extends RemoteServiceServlet) and
couple of HTTPServlet (TestJSONServlet) which extends from
HTTPServlet, when I am trying to call non RPC servlet from my
application I am getting an error saying ClassNotFound, my
compilation output folder has TestJSONServlet.class file. I tried
putting this class file in embedded tomcat's /webapps/ROOT/WEB-INF/
classes, however I am still getting the same error.

ERROR] Unable to instantiate 'com.test.TestJSONServlet'
java.lang.ClassNotFoundException: com.test.TestJSONServlet

I would really appreciate if someone can help me with this as soon as
possible.

Thank you very much for all the help and support.
--~--~-~--~~~---~--~~
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: GWT Compilation Time

2008-09-17 Thread Charlie Collins

That blog post does a bunch of stuff in step 3 that I definitely
would not recommend.  Building your own version of GWT for that is not
necessary.  You can set those properties in your own module and it
will redefine them.  Or if you really need to, you can just put your
own UserAgent.gwt.xml in the CLASSPATH in front of the gwt libraries
and that works too, you don't need to rebuild GWT for that.

On Sep 16, 11:40 am, Olivier [EMAIL PROTECTED] wrote:
 Hi,
 You can read my blog post about speeding up the GWT compiler by trying
 to reduce the number of permutations.

 http://blog.bazoud.com/post/2008/07/31/Can-I-speed-up-the-GWT-compilerhttp://blog.bazoud.com/post/2008/07/31/Can-I-speed-up-the-GWT-compile...http://blog.bazoud.com/post/2008/07/31/Can-I-speed-up-the-GWT-compile...

 On Sep 16, 12:21 pm, Bal Krishna [EMAIL PROTECTED] wrote:

  Hi All,
  I am implementing I18 support for my application and I am using GWT
  I18 support.
  In my module file, I extended three locales and compilation time for
  my java files increased drastically. Earlier it was taking around
  30-40 mins but after adding three locales in my module configuration
  file it is taking around 120-130 mins.
  I am very surprised by seeing this much difference in compilation
  time. Why is it so??
  Is there any mistake I made in adding support of locale to my
  application or something wrong with handling of I18 by GWT API??
  Can anyone help me out??
--~--~-~--~~~---~--~~
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: GWT and Real World UI Development

2008-09-17 Thread Charlie Collins

To be honest, GWT is not that great at the team designer vs
developer separation at the moment.  There are ways to mitigate that
(tools like Instantiations designer), and approaches that help (clear
rules for css names for widgets/elements and then a designer who can
really just work with the CSS to tweak things - but still the
developer has to have some idea of how this works too), but it's not
as clean as more traditional web app work, in my experience.

Declarative UI though is on the way, and that will really help in this
area: http://code.google.com/p/google-web-toolkit-incubator/wiki/DeclarativeUi.

And, don't get me wrong here, even though I think this is not a strong
suit of GWT at the moment, I think all of the other advantages are
huge and I would still advocate using it - and have used it myself on
a few medium/large projects, and a bunch of small ones (advantages
like working with Java and having an IDE, static types and static
analysis tools, unit tests, a single code base that works for all the
major browsers . . . most of the time, and more).

On Sep 16, 8:33 pm, philserve [EMAIL PROTECTED] wrote:
 I'm trying to choose an appropriate framework for a mid-large scale
 web app. I've built apps using JS and javascript libraries, such as
 Dojo and Prototype, but am looking for a more comprehensive approach.
 I like what I see in GWT, but for the most part I don't want to do
 large scale UI generation in GWT - the real world approach has been:

      - graphic designer lays out HTML pages w/ css
      - development takes pages, tweaks IDs and develops code to access
 those elements (via IDs) for data injection.

 With an existing J2EE architecture from which to retrieve data, GWT-
 RPC is an obvious choice. But I don't want to get into heavy
 developing of UI Layouts - I prefer to access object via
 RootPanel.get(MYID) then add components into a page already nicely
 laid out by my designer.

 The main pages are spreadsheet like tables, so my thought is to use
 GWT-EXT to generate and populate these tables with data. But these
 initially empty tables exist within an existing HTML page layout given
 to me. IOW, the pages are generally semi-static but component
 contents are dynamically loaded.

 Bottom line I don't want to get back into Swing-like coding and layout
 tweaking, but rather focus on M and C of the MVC paradigm.

 Do you think GWT is a good solution for this basic paradigm of web
 page development?
--~--~-~--~~~---~--~~
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: Severe performance problem after upgrading to GWT 1.5.2 (final)

2008-09-17 Thread Tim

not sure, but maybe there are some datatype penalty issues (long vs
double etc). Did you profile your server side code?

On Sep 17, 10:28 am, hbatista [EMAIL PROTECTED] wrote:
 Hi,
 I've just upgraded one of my projects from 1.4.60 to 1.5.2, and
 everything went very smoothly, but...
 when my application tries to fetch a large number of objects from the
 server (via RPC, returns HashMapInteger,xxx, about 6000 entries) it
 takes a very very long time!

 Before the upgrade this was very fast (at least in Firefox and Chrome,
 not in IE).

 Strangely, while waiting for the RPC call to return there is NO cpu
 activity...

 For me this seems related to some deep changes in the serialization
 code (taking a guess here), before the upgrade trying to fetch so many
 records from the server would crash IE with 'JavaScript SyntaxError
 exception: Out of memory', while now it works (good!) but is very slow
 in all browsers (bad!).

 Can someone help me debug this 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@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: Passing arguments into my GWT Application

2008-09-17 Thread Nicky

Search the group... 
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/85267b4604f7e70f#

On Sep 16, 3:50 pm, Joe Larson [EMAIL PROTECTED] wrote:
 Our main application is a WebObjects app.  We're now adding Web 2.0
 into the equation.  We're rebuilding isolated pages at first.

 I'm trying to figure out how to pass in from the WO app initial data
 to the GWT app.  I'd like to feed it two pieces of data:

 -WOInstanceID
 -A generated session ID (not the WOSessionID, but my own)

 I need these fields so I can initiate a proper Services connection
 back to the WO app for doing all my database work.

 I've tried passing arguments on the command line, but that has been
 problematic.  I can't figure out how to parse them.  The two methods
 in class GWT that return URLs seem to strip off everything after
 the ?.  Furthermore when operating in development mode (where my WO
 app is also acting as the web browser), WO gets cranky if you have a ?
 and doesn't actually load my GWT app but instead goes to my app's
 login page.

 Any suggestions?

 I thought maybe I could create some JavaScript variables from the WO
 app before including the GWT page, but I'm not quite sure how to do
 that nor if that's the best method.

 -Joe
--~--~-~--~~~---~--~~
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: GWT's HTTPS design consideration and guideline?

2008-09-17 Thread Reinier Zwitserloot

yes, there are differences.

Testing: Use -noserver. Google for it on this newsgroup for more info
on how that works.

SSL has three notable differences. These aren't the only ones, but
probably the biggest surprises:

CACHING: Web browsers were designed to cope with idiot web server
maintainers. This was a phenomenally stupid move, as you should never
underestimate the ingenuity of idiots, but, alas, we're stuck with
this bass ackwards principle, and it screws you over when you use SSL.
The first culprit is caching. In SSL mode, you can push 'please cache
me' all you want, but in general web browsers will ignore you. You
should still try, but, take it with a grain of salt, and make sure
you're set up to handle quite a bit of bandwidth. I've got an item on
my todo list I should really get to, and that's to create a table to
list which HTTP headers, if any, will make a browser cache stuff in
SSL mode.

REFERRAL: Web browsers will not send a referrer header if you link
from https to http. The thinking here is that in the olden days, not
everyone had cookies enabled, so you faked it by storing the session
ID in the url itself, and you inspected the URL instead of the cookie
to figure out a user's session id. This was not just a flagrant abuse
of the whole concept of HTTP, but also a gaping security hole, because
browsers tend to litter URLs all over the place. In caches, history
data, and, yes, referral links. Instead of recognizing that this
behaviour is simply security broken and spreading the word to stop
doing it, the SSL standard edicts that HTTPS pages should not be sent
as referrer to non-http pages, evidently in some sort of screwed up
belief that sites running on https are more trustworthy in case an
https page did use the session id in the URL trick to get around
disabled cookies. D'ooh. You can fix it by bouncing all links
through plain http on your own server, letting it redirect. But that's
an ugly hack, and I won't get into how to set that up in this post.

MIXED MODE WARNING: IE is especially sucky at this. You're free to
swap the document domain between http and https all day long,but load
one non-https piece of content in an https loaded page and the user
gets an awkwardly huge warning dialog that no one understands and make
them run for the hills. In practice there's rather little security
leakage in e.g. loading user avatar images off of non-https, but,
again, the SSL standard thinks it knows better than you and stubbornly
gets in your way. Not to mention the rather stark difference between
proctecting yourself against eavedroppers and the harder task of
keeping out man-in-the-middle attacks. SSL acts as if the first (just
protect against eavesdroppers) is somehow beneath it. Argh. No
solution to this one as far as I know. Load it all over SSL. Yet
another reason why so many people use SSL only for login and then move
out, to avoid these issues, not because it costs a little more CPU.

FORK OUT SOME DOUGH: https sans a signed certificate is like a party
without booze. What's the point? Unfortunately, in order to be
considered signed on all major browsers, you need to shell out some
cash, about 100 dollars for a single domain, 500 for all subdomains to
one domain. This step isn't optional - the security dialog that pops
up when your SSL cert isn't signed properly is a lot scarier for a
user than no https at all, and for once for good reason, as there's no
way to verify that you're really talking to whatever's in your
location bar without it.  Just don't give your money to those bastards
at verisign. They'll kill the internet if it were up to those freedom
haters. That means, avoid verisign, thawte, and GeoTrust. Consider
Comodo, or Entrust. I strongly urge you to heed this warning;
verisign's control of the universally accepted root cert market is
around 80% nowadays. If they control all of it, expect your yearly
costs (oh, yeah, that 100 bucks is a yearly payment, sorry) to go sky
high. It's in all of our best interests if that does not come to pass.

Good luck, Hez.

On Sep 17, 6:20 pm, hezjing [EMAIL PROTECTED] wrote:
 Hi
 I have a GWT application, and it is running without HTTPS.

 What need to be done if I want this GWT application to run with HTTPS?
 Is there any changes in the code and configuration?

 Can I test HTTPS in hosted mode?

 Is there any difference when designing a GWT application for HTTP and HTTPS?

 --

 Hez
--~--~-~--~~~---~--~~
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: Question on parsing JSON string

2008-09-17 Thread Reinier Zwitserloot

Yah, my new JSON library will. But it's not ready quite yet. Well, the
reading bit's ready - still working on writing. If you want to beta
test it, mail me. The core contributors are more or less agreed that
the current offering is a bit weak so you might see it as part of the
core GWT library in GWT 1.6. You're in luck - because of my attempt to
get the library introduced as part of GWT proper it has even more unit
tests than I'd usually write, so it should be pretty robust.

On Sep 17, 11:19 pm, ceeed [EMAIL PROTECTED] wrote:
 Hi,
 I am gettiing a hash/dictionary from the server as a JSON string. This
 looks some thing like:
 {a: bar, b: foo, c: [x, y, z], d: {1: xxx, 2:
 yyy}}
 Is there some class that can convert this to a HashMap?
 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
-~--~~~~--~~--~--~---



Debugging GWT with Eclipse

2008-09-17 Thread Amit Dhingra
Hi,
I have been unable to debug GWT application in eclipse.
I tried running the debugger with the main class as
com.google.gwt.dev.GWTShell. Doing so and checking the textbox Stop in
main the debugger halts in main as expected, but the hosted browser is
never opened and it never comes to breakpoints set in my code.
Am I missing on something.
Or rather I am asking for Idiot's guide to debugging GWT in Eclipse.

Thanks in advance!!!

-- 
Warm Regards,
Amit Dhingra

--~--~-~--~~~---~--~~
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: File write not working

2008-09-17 Thread Ryan

Danke Lothar,

I think I should got my answer using
getServletContext().log(...) .This does the job.
I still have to check whether it creates files or not. But atleast it
has started printing statements to the log.

regards,
Cherian

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



[gwt-contrib] Code Review: gwt-google-apis Maps release notes

2008-09-17 Thread Eric Ayers
Hello Miguel,

Here are changes to the release notes for the Maps RC1 release.  The only
thing we might add that might be release note worthy is the retrieval of the
Google Earth plugin object.

M  maps/distro-source/src/release_notes.html

-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---

Index: maps/distro-source/src/release_notes.html
===
--- maps/distro-source/src/release_notes.html	(revision 792)
+++ maps/distro-source/src/release_notes.html	(working copy)
@@ -38,34 +38,35 @@
  liThis library requires GWT 1.5 or later and Java 1.5 or later./li
  liThis library requires the use of the Google Maps API 2.89 or later. (Some features of the bindings require more recent versions of the Maps API version up to 2.113, see the Maps API developer website.)/li
  liRemoved Listener classes for events that were previously deprecated.  Each removed class has an equivalent Handler class./li
- liFixed problems initializing constants on IE6/7 in Hosted Mode/li
+ liChanged many classes to be subclasses of JavaScriptObject (JavaScript overlay types).  This means that you can no longer use codenew/code to construct many types - you must use the factory method codeType.newInstance()/code instead./li
+ liFixed problems initializing constants on IE6/7 in Hosted Mode./li
  liRemoved MarkerManager, as Maps team is discontinuing support for it in deference to an open source version with more features./li
  liAdded checks to see that the JS API was properly loaded./li
- liAdded support for Polyline and Polygon drawing/editing features/li
- liUpdates to JSIO to support pre-release changes to GWT 1.5 hosted mode/li
- liFixed GeocodeCache subclassing issues/i
- liFixed many other issues noted in the a href=http://code.google.com/p/gwt-google-apis/issues/list?can=1q=API%3AMaps+Milestone%3A1_1_RC;Issue Tracker/a/li
+ liAdded support for Polyline and Polygon drawing/editing features./li
+ liUpdates to JSIO to support pre-release changes to GWT 1.5 hosted mode./li
+ liFixed GeocodeCache subclassing issues./li
+ liAdded many unit tests./li
+ liFixed many other issues noted in the a href=http://code.google.com/p/gwt-google-apis/issues/list?can=1q=API%3AMaps+Milestone%3A1_1_RC;Issue Tracker/a./li
/ul
h3Known Issues/h3
 	   ul
  liNot all features in the Maps API are supported.  The Maps API is constantly evolving./li
-   liPolygons that are not filled do not add/remove or deliver events properly (Issue 108. Maps API issue to be addressed in upcoming release.)/li
 	   /ul
hr/
   a name=Release_Notes_r290/a
  h2Release Notes for r290 (milestone release)/h2
h3Changes since r41/h3
ul
- liAdded many Maps API features added since 2.83 up to 2.98/li
+ liAdded many Maps API features added since 2.83 up to 2.98./li
  liUpdated features now require Java 1.5 and GWT 1.5 or higher./li
- liUpdated to use Java 1.5 generics, enum types, and annotations/li
+ liUpdated to use Java 1.5 generics, enum types, and annotations./li
  liMaps project placed in a separate tree so it can be built and distributed independently./li
  liNew event handling system that models each Maps API with a single Java Event and Handler class.  Existing Listener classes are now deprecated./li
- liAdded unit tests for event handing/li
+ liAdded unit tests for event handing./li
  liAdded javadoc comments to all classes./li
- liUpdated to use JSIO r83/li
+ liUpdated to use JSIO r83./li
  liRemoved use of long values passed via JSNI and JSIO methods./li
- liAdded styling and documentation to the HelloMaps sample project/li
+ liAdded styling and documentation to the HelloMaps sample project./li
  liAdded additional features to the HelloMaps sample project, partially as a way to manually test the newly added API features./li
  liChanged API to extract constant values from the Maps API instead of hard coding constants in Java./li
  liMany issues from the a href=http://code.google.com/p/gwt-google-apis/issues/list;issue tracker/a have been addressed, all marked as version 1.1_RC./li


[gwt-contrib] [google-web-toolkit commit] r3661 - changes/spoon/runAsync/samples/showcase/src/com/google/gwt/sample/sho wcase/client

2008-09-17 Thread codesite-noreply

Author: [EMAIL PROTECTED]
Date: Wed Sep 17 07:53:35 2008
New Revision: 3661

Modified:
 
changes/spoon/runAsync/samples/showcase/src/com/google/gwt/sample/showcase/client/ContentWidget.java

Log:
Don't put ContentWidget.onLoad behind runAsync; run it synchronously.


Modified:  
changes/spoon/runAsync/samples/showcase/src/com/google/gwt/sample/showcase/client/ContentWidget.java
==
---  
changes/spoon/runAsync/samples/showcase/src/com/google/gwt/sample/showcase/client/ContentWidget.java
 
(original)
+++  
changes/spoon/runAsync/samples/showcase/src/com/google/gwt/sample/showcase/client/ContentWidget.java
 
Wed Sep 17 07:53:35 2008
@@ -15,8 +15,6 @@
   */
  package com.google.gwt.sample.showcase.client;

-import com.google.gwt.core.client.GWT;
-import com.google.gwt.core.client.RunAsyncCallback;
  import com.google.gwt.http.client.Request;
  import com.google.gwt.http.client.RequestBuilder;
  import com.google.gwt.http.client.RequestCallback;
@@ -321,21 +319,13 @@

@Override
protected void onLoad() {
-GWT.runAsync(new RunAsyncCallback() {
-  public void onFailure(Throwable e) {
-Window.alert(Could not load fragment:  + e);
-  }
+// Initialize this widget if we haven't already
+initialize();

-  public void onSuccess() {
-// Initialize this widget if we haven't already
-initialize();
-
-// Select the first tab
-if (getTabBar().getTabCount()  0) {
-  tabBar.selectTab(0);
-}
-  }
-});
+// Select the first tab
+if (getTabBar().getTabCount()  0) {
+  tabBar.selectTab(0);
+}
}

/**

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Code Review: gwt-google-apis Maps update the DirectionsTest

2008-09-17 Thread Miguel Méndez
LGTM

On Tue, Sep 16, 2008 at 7:40 AM, Eric Ayers [EMAIL PROTECTED] wrote:

 I updated issue 171 - the 1.5.2 release is broken on this unit test, but
 has been subsequently fixed. See GWT issue 2841

 http://code.google.com/p/google-web-toolkit/issues/detail?id=2841


 On Mon, Sep 15, 2008 at 4:30 PM, Eric Ayers [EMAIL PROTECTED] wrote:

 Hello Miguel,

 This resolves issue 171 - which was apparently due to a core GWT issue.
 It also adds a few more tests to the DirectionsTest, and updates the Marker
 class to properly extract Markers from a list.

 M
 maps/maps/test/com/google/gwt/maps/client/geocode/DirectionsTest.java
 M  maps/maps/src/com/google/gwt/maps/client/overlay/Marker.java

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USA
 http://code.google.com/webtoolkit/




 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USA
 http://code.google.com/webtoolkit/




-- 
Miguel

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Code Review: gwt-google-apis Search LocalSearch.getCenterPoint() accepts Maps LatLng

2008-09-17 Thread Eric Ayers
Hello Miguel,

This patch adds an overload to  LocalSearch.setCenterPoint()  to accept a
JavaScriptObject parameter.  It can be either a raw GLatLng or GMap2 object,
or it can be a LatLng object from the gwt-maps API (which is just a Java
overlay type for GLatLng).  I tested this manually by creating a small demo
project.

M  search/src/com/google/gwt/search/client/LocalSearch.java
M  search/src/com/google/gwt/search/client/impl/GlocalSearch.java

-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---

Index: search/src/com/google/gwt/search/client/LocalSearch.java
===
--- search/src/com/google/gwt/search/client/LocalSearch.java	(revision 797)
+++ search/src/com/google/gwt/search/client/LocalSearch.java	(working copy)
@@ -15,6 +15,7 @@
  */
 package com.google.gwt.search.client;
 
+import com.google.gwt.core.client.JavaScriptObject;
 import com.google.gwt.search.client.impl.GlocalSearch;
 
 /**
@@ -34,11 +35,11 @@
* suppose the searcher is centered in Santa Barbara, CA and the user is
* searching for Cava. With co-mingled results, the first search result is
* actually an address match against Cava Close, Aberdeen City, AB15 UK. The
-   * second result is Cava Restaurant amp; Bar. Using this method, applications
-   * are able to disable and enable address lookup producing either strictly
-   * search results, or address lookup results co-mingled with search results.
-   * In this case, if address lookup is disabled, the first result would be
-   * Cava Restaurant amp; Bar.
+   * second result is Cava Restaurant amp; Bar. Using this method,
+   * applications are able to disable and enable address lookup producing either
+   * strictly search results, or address lookup results co-mingled with search
+   * results. In this case, if address lookup is disabled, the first result
+   * would be Cava Restaurant amp; Bar.
* 
* @param mode Supplies the desired address lookup mode.
*/
@@ -48,6 +49,18 @@
 
   /**
* This method establishes a center point that is used to scope search
+   * results. You can pass a GLatLng or GMap2 object created by the Google Maps API.
+   * If you are using the gwt-maps project, pass an instance of the LatLng class.
+   * 
+   * @param point Supply either a GLatLng object or a GMap2 object from the
+   *  Google Maps API.  
+   */
+  public void setCenterPoint(JavaScriptObject point) {
+IMPL.setCenterPoint(this, point);
+  }
+
+  /**
+   * This method establishes a center point that is used to scope search
* results.
* 
* @param point a string which specifies an address by name. When this
Index: search/src/com/google/gwt/search/client/impl/GlocalSearch.java
===
--- search/src/com/google/gwt/search/client/impl/GlocalSearch.java	(revision 797)
+++ search/src/com/google/gwt/search/client/impl/GlocalSearch.java	(working copy)
@@ -24,17 +24,15 @@
 /**
  */
 public interface GlocalSearch extends GSearch {
-  JSOpaque RESULT_CLASS = new JSOpaque($wnd.GlocalSearch.RESULT_CLASS);
   GlocalSearch IMPL = GWT.create(GlocalSearch.class);
+  JSOpaque RESULT_CLASS = new JSOpaque($wnd.GlocalSearch.RESULT_CLASS);
 
   @Constructor($wnd.GlocalSearch)
   JavaScriptObject construct();
 
-  // XXX Possible integration with Maps API. Consider code bloat before adding
-  // public void setCenterPoint(GMap point);
-  // public void setCenterPoint(GPoint point);
+   void setAddressLookupMode(Search jso, JSOpaque mode);
 
-  void setAddressLookupMode(Search jso, JSOpaque mode);
-
+  void setCenterPoint(Search jso, JavaScriptObject point);
+  
   void setCenterPoint(Search jso, String point);
 }


[gwt-contrib] Re: GWT Issue 343 and the JSR-303 Draft (Implementing in GWT)

2008-09-17 Thread chris.ruffalo

I wasn't including the source files.  Disregard.  Release should be
soon.

On Sep 17, 3:38 pm, chris.ruffalo [EMAIL PROTECTED] wrote:
 One final bit of help.

 I'm having problems building a jar that will work with the modules to
 compile under a normal project.  If I export the jar with Eclipse
 everything works fine (add directory entries and all that) and the
 compile and shell modes work.

 If I use an ant task to build the jar then it will not work with the
 compiled mode or the shell mode.

 I've never been able to have ant (1.7.1) do this in the past either,
 on other projects.

 Any help would be appreciated.

 On Sep 12, 11:08 pm, chris.ruffalo [EMAIL PROTECTED] wrote:

  I see.  That worked, I guess I was expecting something bad to happen
  if I didn't write new source.  In retrospect why would that happen?

  Fortunately I don't have to do anything different (per user agent)
  yet.

  On Sep 12, 3:39 pm, BobV [EMAIL PROTECTED] wrote:

Namely:
 Hosted mode works fine but compiling tries to rebind twice (even
though I only have
one GWT.create()) and it can't create the printwriter because the
class it is trying to write
already exists.  I guess I need a smarter generator. (?)

   This is expected behavior.  The generator gets called once per
   permutation.  If the PrintWriter is null, just return the name of the
   implementation class that you were tryping to create.  It works this
   way because you may want to generate different code for different
   user.agent values or along some other deferred-binding axis.  In this
   case, you would name the implementation classes differently.

   --
   Bob Vawter
   Google Web Toolkit Team
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit commit] r3663 - in changes/jat/oophm-trunk-r3274/plugins/xpcom: . VisualStudio

2008-09-17 Thread codesite-noreply
Author: [EMAIL PROTECTED]
Date: Wed Sep 17 17:16:17 2008
New Revision: 3663

Added:
changes/jat/oophm-trunk-r3274/plugins/xpcom/VisualStudio/
 
changes/jat/oophm-trunk-r3274/plugins/xpcom/VisualStudio/firefox-xpcom.sln
(contents, props changed)
 
changes/jat/oophm-trunk-r3274/plugins/xpcom/VisualStudio/firefox-xpcom.vcproj   
 
(contents, props changed)
changes/jat/oophm-trunk-r3274/plugins/xpcom/xpOOPHM.def
changes/jat/oophm-trunk-r3274/plugins/xpcom/xpOOPHM.rc
Modified:
changes/jat/oophm-trunk-r3274/plugins/xpcom/ModuleOOPHM.cpp

Log:
Windows portability changes, MSVC project - basically working but not tested
significantly.


Modified: changes/jat/oophm-trunk-r3274/plugins/xpcom/ModuleOOPHM.cpp
==
--- changes/jat/oophm-trunk-r3274/plugins/xpcom/ModuleOOPHM.cpp (original)
+++ changes/jat/oophm-trunk-r3274/plugins/xpcom/ModuleOOPHM.cpp Wed Sep 17  
17:16:17 2008
@@ -26,6 +26,21 @@
  #include nsIClassInfoImpl.h // 1.9 only
  #endif

+#ifdef _WINDOWS
+#include windows.h
+
+BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReasonForCall, LPVOID  
lpReserved) {
+  switch (ulReasonForCall) {
+case DLL_PROCESS_ATTACH:
+case DLL_THREAD_ATTACH:
+case DLL_THREAD_DETACH:
+case DLL_PROCESS_DETACH:
+  break;
+  }
+  return TRUE;
+}
+#endif
+
  NS_GENERIC_FACTORY_CONSTRUCTOR(ExternalWrapper)
  NS_DECL_CLASSINFO(ExternalWrapper)


Added:  
changes/jat/oophm-trunk-r3274/plugins/xpcom/VisualStudio/firefox-xpcom.sln
==
--- (empty file)
+++  
changes/jat/oophm-trunk-r3274/plugins/xpcom/VisualStudio/firefox-xpcom.sln  
 
Wed Sep 17 17:16:17 2008
@@ -0,0 +1,26 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual C++ Express 2005
+Project({8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942})  
= firefox-xpcom, firefox-xpcom.vcproj, 
{6BF0C2CE-CB0C-421B-A67C-1E448371D24A}
+EndProject
+Global
+   GlobalSection(SolutionConfigurationPlatforms) = preSolution
+   Debug|Win32 = Debug|Win32
+   Debug|Win64 = Debug|Win64
+   Release|Win32 = Release|Win32
+   Release|Win64 = Release|Win64
+   EndGlobalSection
+   GlobalSection(ProjectConfigurationPlatforms) = postSolution
+   {6BF0C2CE-CB0C-421B-A67C-1E448371D24A}.Debug|Win32.ActiveCfg = 
Debug| 
Win32
+   {6BF0C2CE-CB0C-421B-A67C-1E448371D24A}.Debug|Win32.Build.0 = 
Debug|Win32
+   {6BF0C2CE-CB0C-421B-A67C-1E448371D24A}.Debug|Win64.ActiveCfg = 
Debug| 
Win32
+   {6BF0C2CE-CB0C-421B-A67C-1E448371D24A}.Debug|Win64.Build.0 = 
Debug|Win32
+   {6BF0C2CE-CB0C-421B-A67C-1E448371D24A}.Release|Win32.ActiveCfg 
= Release| 
Win32
+   {6BF0C2CE-CB0C-421B-A67C-1E448371D24A}.Release|Win32.Build.0 = 
Release| 
Win32
+   {6BF0C2CE-CB0C-421B-A67C-1E448371D24A}.Release|Win64.ActiveCfg 
= Release| 
Win32
+   {6BF0C2CE-CB0C-421B-A67C-1E448371D24A}.Release|Win64.Build.0 = 
Release| 
Win32
+   EndGlobalSection
+   GlobalSection(SolutionProperties) = preSolution
+   HideSolutionNode = FALSE
+   EndGlobalSection
+EndGlobal

Added:  
changes/jat/oophm-trunk-r3274/plugins/xpcom/VisualStudio/firefox-xpcom.vcproj
==
--- (empty file)
+++  
changes/jat/oophm-trunk-r3274/plugins/xpcom/VisualStudio/firefox-xpcom.vcproj   
 
Wed Sep 17 17:16:17 2008
@@ -0,0 +1,759 @@
+?xml version=1.0 encoding=UTF-8?
+VisualStudioProject
+   ProjectType=Visual C++
+   Version=8.00
+   Name=firefox-xpcom
+   ProjectGUID={6BF0C2CE-CB0C-421B-A67C-1E448371D24A}
+   RootNamespace=firefox-xpcom
+   Keyword=Win32Proj
+   
+   Platforms
+   Platform
+   Name=Win32
+   /
+   /Platforms
+   ToolFiles
+   /ToolFiles
+   Configurations
+   Configuration
+   Name=Debug|Win32
+   OutputDirectory=Debug
+   IntermediateDirectory=Debug
+   ConfigurationType=2
+   UseOfMFC=1
+   
+   Tool
+   Name=VCPreBuildEventTool
+   /
+   Tool
+   Name=VCCustomBuildTool
+   /
+   Tool
+   Name=VCXMLDataGeneratorTool
+   /
+   Tool
+   Name=VCWebServiceProxyGeneratorTool
+   /
+   Tool
+   Name=VCMIDLTool
+   /
+   Tool
+   Name=VCCLCompilerTool
+   Optimization=0
+ 

[gwt-contrib] Re: GWT Issue 343 and the JSR-303 Draft (Implementing in GWT)

2008-09-17 Thread chris.ruffalo

Released here : http://code.google.com/p/google-web-toolkit/issues/detail?id=343

Let me know what you think.

On Sep 17, 6:42 pm, chris.ruffalo [EMAIL PROTECTED] wrote:
 I wasn't including the source files.  Disregard.  Release should be
 soon.

 On Sep 17, 3:38 pm, chris.ruffalo [EMAIL PROTECTED] wrote:

  One final bit of help.

  I'm having problems building a jar that will work with the modules to
  compile under a normal project.  If I export the jar with Eclipse
  everything works fine (add directory entries and all that) and the
  compile and shell modes work.

  If I use an ant task to build the jar then it will not work with the
  compiled mode or the shell mode.

  I've never been able to have ant (1.7.1) do this in the past either,
  on other projects.

  Any help would be appreciated.

  On Sep 12, 11:08 pm, chris.ruffalo [EMAIL PROTECTED] wrote:

   I see.  That worked, I guess I was expecting something bad to happen
   if I didn't write new source.  In retrospect why would that happen?

   Fortunately I don't have to do anything different (per user agent)
   yet.

   On Sep 12, 3:39 pm, BobV [EMAIL PROTECTED] wrote:

 Namely:
  Hosted mode works fine but compiling tries to rebind twice (even
 though I only have
 one GWT.create()) and it can't create the printwriter because the
 class it is trying to write
 already exists.  I guess I need a smarter generator. (?)

This is expected behavior.  The generator gets called once per
permutation.  If the PrintWriter is null, just return the name of the
implementation class that you were tryping to create.  It works this
way because you may want to generate different code for different
user.agent values or along some other deferred-binding axis.  In this
case, you would name the implementation classes differently.

--
Bob Vawter
Google Web Toolkit Team
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---