Re: RequestBuilder with xml request and xml response

2009-12-23 Thread Abdullah Shaikh
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, "url to the
servlet which response back with xml");
builder.setHeader("Content-type", "application/x-www-form-urlencoded");

builder.sendRequest(null, new RequestCallback() {

@Override
public void onResponseReceived(Request request, Response
response) {

String xmlData = response.getText();

//parse the xml data here
Document doc = XMLParser.parse(xmlData);
   }

@Override
public void onError(Request request, Throwable
exception) {
//handle error
}
} );

This should help.

- Abdullah

On Thu, Dec 24, 2009 at 10:32 AM, Malli  wrote:

> Hi,
> some body help  me out! i'm new to GWT.
> I'm using RequesteBuilder for calling HttpServlet.
>
> Here my doubts are :
> 1.How can we prepare  the xml request ?
> 2.how can we handle the xml response inside gwt application?
>
> please give me  reply with some samples.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Why History.newItem() always calls the onModuleLoad?

2009-12-23 Thread compuroad
I thought History.newItem() would only build the history stack.
However in my App it fires the EntryPoint onModuleLoad, restarting the
application.

What am I missing?

--

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




Re: Cross Domain Scripting

2009-12-23 Thread Vishal
Thank u for the corrections and your response.

To further clarify our problem domain.  We want a Microsoft .NET based
application to run our GWT app and and that server is on
xxx.somedomain.com.  To load up our GWT app , we wanted to source in
the cache.js and subsequent data transfers through RPC  from our java
based tomcat server , in the same domain but on a different host
yyy.somedomain.com. If I understood u correctly, the architecture that
will bypass SOP would be

* Create a Relay/Proxy on xxx.somedomain.com.. it is a IIS server and
no servlets on that host.
* The Relay as a relay should do , forwards the request ( any
request ) to yyy.somedomain.com.
* In the html src=http:// xxx.somedomain/g-control/gwtc/z/
z.nocache.js.
  This when loaded by the IIS server , actually relays the request to
yyy.somedomain.com.
* Any RPC executed on behalf of the downloaded js , will be to
xxx.somedomain relayed to yyy.somedomain.com

And thus we bypass SOP.

Have I understood this correctly.. ( even though it seems I have just
repeated your post ) and is it a well known practice top beat SOP ?





On Dec 23, 10:15 pm, Thomas Broyer  wrote:
> On 23 déc, 15:18, Vishal  wrote:
>
> > I have an html page on a loaded on  xxx.somedomain:301/some.html
>
> > This html has
> > 
> >             document.domain = 'somedomain:301';
> >   
>
> Well, first, this "document.domain" thing won't be executed, it has to
> be in a separate 

Re: Convenience callback method

2009-12-23 Thread bhomass
could some one point out an avenue for finding answers to this
question. I am sure if google is provide these design guides, they
should have communication channels for Q/A.

--

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




Re: Convenience callback method

2009-12-23 Thread bhomass
could some one point out an avenue for finding answers to this
question. I am sure if google is provide these design guides, they
should have communication channels for Q/A.

--

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




Getting RuntimeException in development mode for gwt2.0

2009-12-23 Thread Vikas
Getting following exception in development mode. It works fine when we
deploy same code.
Also there was no problem with gwt1.7.0, observed this exception only
with gwt2.0

java.lang.RuntimeException: Deferred binding failed for
'com.allen_sauer.gwt.log.client.impl.LogImpl' (did you forget to
inherit a required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:
43)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.allen_sauer.gwt.log.client.Log.(Log.java:69)

Following inherite entry is there in module xml file,


What could be the problem?

Thanks in advance,
Vikas

--

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




RequestBuilder with xml request and xml response

2009-12-23 Thread Malli
Hi,
some body help  me out! i'm new to GWT.
I'm using RequesteBuilder for calling HttpServlet.

Here my doubts are :
1.How can we prepare  the xml request ?
2.how can we handle the xml response inside gwt application?

please give me  reply with some samples.

--

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




Re: How to use UIBinder to create customized tags

2009-12-23 Thread Rick
Thanks Thomas

I am successful to create my customized tag by patching UIBinderWriter
-> registerParsers() method. I think GWT has done most of the work for
supporting customized tag but keeping it private.

On Dec 23, 6:48 pm, Thomas Broyer  wrote:
> On Dec 22, 5:28 am, Rick  wrote:
>
> > Thanks Thomas
>
> > Widgets are now adding by implementing HasWidgets interface.
>
> > But I need to do a little more. As there are tags in DockLayoutPanel
> > -- , ,  in the same way, I want to create my own
> > customized tags like , etc so that I can arrange my
> > layout accordingly. Can it be possible. If it is, kindly let me know
> > as it will be a great help for me to design my UI with more
> > flexibility,
>
> This is planned, but not yet available (there's a TODO in the code),
> unless of course you patch GWT.

--

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




Re: Cross Domain Scripting

2009-12-23 Thread Thomas Broyer


On 23 déc, 15:18, Vishal  wrote:
> I have an html page on a loaded on  xxx.somedomain:301/some.html
>
> This html has
> 
>             document.domain = 'somedomain:301';
>   

Well, first, this "document.domain" thing won't be executed, it has to
be in a separate 

Re: Styling CheckBox

2009-12-23 Thread Thomas Broyer


On 23 déc, 17:15, Tim K  wrote:
> I want to change the size of a com.google.gwt.user.client.ui.CheckBox
> so that it grows/shrinks.  I am using a Chrome Browser. It zooms in
> and out with Ctrl-Plus and Ctrl-Minus.
>
> This entry in my css file had no effect.
> .gwt-CheckBox {
>   width: 1em;
>   height: 1em;
>   padding: 0;
>   margin: 0;
>
> }
>
> Chrome's inspector displays this HTML.
> 
>    
> Should class="gwt-CheckBox" be on the input element?

No. A CheckBox widget is composed of a checkbox and label, wrapped in
a 

> Can a java method add a class to the input element?

You can use a SimpleCheckBox instead of a CheckBox, to just have the
.

But you can also just tweak your CSS to target the input child of
the .gwt-CheckBox:

.gwt-CheckBox input {
   width: 1em;
   height: 1em;
   padding: 0;
   margin: 0;
}


--

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




Re: rel attribute on anchor tag

2009-12-23 Thread Thomas Broyer

On 23 déc, 05:57, Nick Cronin  wrote:
> Hi,
> Is there a way to assign a rel attribute on an anchor tag via the
> "Anchor" object?  There's no setRelationship or anything obvious and
> I'm sure it's quite simple I just can't see it easily =)

A bit "low level" but quite "easy" nevertheless:

   myAnchor.getElement().cast().setRel("nofollow");

or if you don't like this cast() syntax:

   AnchorElement elt = myAnchor.getElement().cast();
   elt.setRel("nofollow");

--

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




Re: gwt reload event

2009-12-23 Thread Thomas Broyer

On 23 déc, 05:05, pgore  wrote:
>  Hi
> I need to know , if it is possible to handler the moment when the
> browser trigger one reload event.
>
> I can handle the moment when I close My browser , now I want to
> handler when is trigger the reload

A "reload" is an "unload" event, the very same that's also fired when
you navigate away or close the window/tab. In GWT, this is
WindowClosing and WindowClose.

Or are you experiencing another behavior in some browser?

--

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




Re: Pressing the enter key in the SuggestBox popup fire onKeyUp event! How to disable this?

2009-12-23 Thread golfdude

I had the same requirement and ended up writing my own SuggestBox
( started from the code of gwt suggestbox ).

--

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




Re: Saving form inputs for browser autocomplete

2009-12-23 Thread Ben Harris
There is a post on this somewhere, I just don't have the link.

1) Make a form with all the inputs and a submit button (In your HTML).
The action can be javascript:void(0). Give the form an id.
2) Do FormPanel.wrap(Document.get().getElementById(formID)) to get the
form.
3) You can add a handler to the FormPanel for input validation.
4) Add a JSNI native that creates a javascript function to call (like
this 
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#calling).
The Java method it calls should grab the inputs you want. It will be
triggered by the submit button.
5) Call the above method
6) Change the FormPanel action to be javascript:[method name from step
4]

This doesn't work on Chrome though, because chrome needs a new page to
load so it knows the values were correct. Or something like that.

You can set the form to display:none, then add it as a widget to a
popup panel and remove the display:none. This way it will be hidden
till you need it.

On Dec 24, 3:24 am, skrat  wrote:
> It's the very basic browser feature, without any extensions.  Just
> click twice on input, or start typing in a field you have had already
> submitted before, and previous values will be offered for you. This is
> standard feature of FF, Chrome, and I guess some more browsers.
>
> On Dec 23, 5:59 pm, Michael W  wrote:
>
>
>
> > Skrat,
>
> > Are you talking about the Google Autofill, Roboform Autofill feature?
> > Which means browser remembers your form entry and next time once you
> > click Autofill from browser, the form is refilled.
>
> > Or just want to prepopulate your form processed by your program.
>
> > On Dec 22, 9:22 am, skrat  wrote:
>
> > > Hmm, that script inserted forms problem, might be fatal.
>
> > > I guess security should be handled by browsers, and all non-XHR forms
> > > are leveraging this feature. please
>
> > > On Dec 22, 3:07 pm, Thomas Broyer  wrote:
>
> > > > On Dec 22, 2:53 pm, skrat  wrote:
>
> > > > > Hi all,
>
> > > > > I am curious about, how can one enable, or force a browser to remember
> > > > > value inside text inputs (TextBox) values. In browsers it basically
> > > > > works when you submit a form, then all values are remembered, and next
> > > > > time you open that form, you will be provided with autocomplete box.
> > > > > All major browsers works like this.
>
> > > > > Since in apps, that decides to use XML, JSON or GWT RPC, values in
> > > > > forms are actually not submitted, and thus not remebered. We just read
> > > > > those values and don't do any submit, we do XHR instead.
>
> > > > > Any ideas how to get back this very useful browser feature?
>
> > > > This is a hack but if you really want it:
> > > >  - use a form
> > > >  - expose a GWT method as a JS 'global' function (e.g.,
> > > > myExportedGwtMethod)
> > > >  - set the form's action to call the exported method
> > > > ("javascript:myExportedGwtMethod()")
> > > >  - do your XHR/RPC call from within your exported GWT method
>
> > > > Note that (I'm almost sure this isn't the case, for any form except
> > > > login forms, but just in case) this might only work if the form is
> > > > actually part of the original HTML markup of the page (i.e. not
> > > > inserted by script).
>
> > > > It's not worth it IMO; except for login forms eventually, even if it
> > > > goes against the most basic security rules, just because of the
> > > > enhanced UX.

--

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




Re: Problems with generator

2009-12-23 Thread Matias Kruk
It works! Thanks :)

On Wed, Dec 23, 2009 at 11:28 AM, Thomas Broyer  wrote:

>
> On Dec 22, 8:04 pm, "kruk.mat...@gmail.com" 
> wrote:
> >  am implementing a generator to generate code using Apache Velocity.
> > The question is that you use the JClassType.getMetaData () to get the
> > annotations in the code. Some extraction of my code:
> > GearsDataStoreGenerator extends Generator{
> >   public String generate (TreeLogger logger,
> > GeneratorContext context, String typeName)  throws
> > UnableToCompleteException
> >  {TypeOracle typeOracle = context.getTypeOracle();
> >  JClassType requestedClass = typeOracle.getType(typeName);
> >  requestedClass.getMetaData(ANNOTATION_TABLE); // GWT 1.7
> > returns the annotation metadata! GWT 2.0 returns nothing!
> > 
> > So GWT 1.7 version works perfect. But from version 2.0 stopped
> > working. Reading the sources of the method I detected the following
> > change:
> > GWT 2.0
> > @Deprecated
> >   public final String[][] getMetaData(String tagName) {
> > return TypeOracle.NO_STRING_ARR_ARR;
> >   }
> > GWT 1.7
> > public abstract String[][] getMetaData(String tagName);
> > In the context help of the method, talks about how to replace it:
> > ...
> > @deprecated
> > Javadoc comment metadata has been deprecated in favor of proper Java
> > annotations. See HasAnnotations.getAnnotation(Class) for equivalent
> > functionality.
> > Someone could help me with some example of
> > HasAnnotations.getAnnotation
> > (Class) ??
> > It think I have to use @Target(ElementType.ANNOTATION_TYPE)?
>
> JClassType implements HasAnnotation, so you just have to replace your
> call to getMetaData to a call to getAnnotation, replacing the name of
> your annotation with its actual class, e.g.
>
>   public @interface Table {
> String[] value();
>   }
>
>   @Table({ "foo", "bar", "baz" })
>   public class MyTable { }
>
>   JClassType sourceType = ...;
>   Table tableAnnotation = sourceType.getAnnotation(Table.class);
>   for (String v : tableAnnotation.value()) {
>  // will loop over "foo", "bar" and "baz"
>   }
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>


-- 
Ing. Inf. Matias Leandro Kruk
Blog: http://matiaskruk.blogspot.com/
Instituto Nacional de Investigación y Desarrollo Pesquero (INIDEP)
Paseo Victoria Ocampo N° 1,
Escollera Norte, (B7602HSA) Mar del Plata,
República Argentina
Cel: (0223)155485306
Tel: +54 (223) 4862586  (int:302-303)

--

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




Errors/Typos in GWT Docs

2009-12-23 Thread Marty Hall
I have been in Asia the last month doing training, so this is my first
look at the new (yay!) GWT 2.0 docs. GWT 2.0 looks great, but I did
notice a few small errors in the docs:

http://code.google.com/webtoolkit/gettingstarted.html
=

A) Under "Create your first Web application":
"create a new application called MyApplication" should be "create a
new application called MyWebApp". Also, I would suggest also saying
something like "if you use the Eclipse plugin described later in this
document, you can also do File > New > Web Application Project and
then interactively specify a package name".

B) Under "Run locally in development mode":
The sentence "Since this is your first time hitting the development
mode server..." is slightly inaccurate since the real issue is if it
is the first time PER BROWSER. I would suggest something like "The
first time you use a browser with the development mode server, it will
prompt..." Also, I again suggest that you list the Eclipse Plugin
command for running in development mode (R-click project, Debug As >
Web Application).

C) Under "Make a few changes":
In the first paragraph, "java files" should be "Java files". Also, the
last part of that same sentence ("in the case of this Quick Start...")
does not parse and needs to be reworded. Finally, in the last
sentence, change the colon after "Send" to a period.

D) Under "Setting up an IDE":
Since there is support only for Eclipse, I would change the title to
"Using the Eclipse Plugin" or "Eclipse Support" or some such. Also,
there should be a comma after "IDE" in the first sentence. Also, I'd
insert here a very short summary of what the Eclipse plugin does for
you. I would think the majority of users would use the plugin, but
this document somewhat implies that the command line is the normal
approach and the Eclipse plugin is an afterthought.

http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html
=

A) Under "Bug Fixes":
Issue 1574: #remoteCookie should be #removeCookie. Issue 3102:
#removeHandelr should be #removeHandler, and "has be" should be "has
been". Issue 3903: "pages no contain" should be something like "pages
no longer contain" or "pages do not contain".

B) Under "HtmlUnit and Test Cases":
In second bullet, change "continous" to "continuous".

C) Under "Problems?":
Add comma after "GWT Developer Forum".

http://code.google.com/eclipse/docs/using_sdks.html
=

A) I would be a bit more clear that you should select "Web Toolkit"
and point at the new GWT 2.0 installation. For those upgrading from
GWT 1.7, that is the part you have to change. The current screen shots
show only the App Engine part, which does not need to change.

http://code.google.com/webtoolkit/usingeclipse.html
=

A) For those upgrading from GWT 1.x, I would make it a bit more clear
that you have to download GWT 2.0 separately. Previously, downloading
the Eclipse plugin also gave you GWT, with no separate download
required.

B) Under "Create a Web Application", change "java package" to "Java
package".

C) Under "Run locally in Development Mode", this description of when
you will be prompted for the browser plugin is what I would like to
see under the same heading in 
http://code.google.com/webtoolkit/gettingstarted.html.

D) Under "Make a Few Changes", change "java files" to "Java files".

I am very pleased to see GWT 2.0 out. Keep up the great work!

  - Marty
http://www.coreservlets.com/

--

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




Re: How to implement a fancy zoom with GWT ?

2009-12-23 Thread Jason Essington
Also have a look at how PopupPanel or DialogBox use Animation for an example.

-jason

On Dec 23, 2009, at 2:24 PM, pohl wrote:

> Absolutely.   If another javascript manages to do something in a
> browser, then you can do it in GWT.   A good starting place would be
> to look at is the following class:
> 
>  com.google.gwt.animation.client.Animation
> 
> It's an abstract class that you extend.  There's a mechanism that
> repeatedly calls this method that you implement:
> 
>onUpdate(double progress)
> 
> The "progress" argument will be between 0.0 and 1.0, which tells you
> how far along you are in the animation step.   (Think of it as a
> percentage.)  Using that number, you can decide, for example, exactly
> how "zoomed", or "faded", or "moved" your widget or element is.  When
> the animation starts, the value will be 0.0.  When it's done, it will
> be 1.0.  In between, the Animation class provides a nice "easing
> function" that gives something a bit more natural than straight linear
> interpolation would.   The nice thing about it is that you don't have
> to think about the easing function.  The abstract superclass will just
> call onUpdate() and let you know how far along you are.
> 
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/animation/client/Animation.html
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
> 
> 

--

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




Re: Unable to run DevMode

2009-12-23 Thread Sorinel C
You can start properly the GWT 2.0 DevMode like it's described here:

http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html

Cheers!

--

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




Height Problem with FlexTable in GWT 2.0

2009-12-23 Thread Shady
After upgrading my GWT project from 1.7 to 2.0, I found out that the
cells in my flextable are NO LONGER taking into consideration the 100%
height that I am giving . In fact here is a simplified case that shows
the problem:

public void onModuleLoad() {
FlexTable f = new FlexTable();

Button b1 = new Button("Cell1");
b1.setWidth("100%");
b1.setHeight("100%");
f.setWidget(0, 0, b1);
f.getFlexCellFormatter().setRowSpan(0, 0, 2);

Button b2 = new Button("Cell2");
b2.setWidth("100%");
b2.setHeight("100%");
f.setWidget(0, 1, b2);

Button b3 = new Button("Cell3");
b3.setWidth("100%");
b3.setHeight("100%");
f.setWidget(1, 0, b3);

f.setWidth("200px");
f.setHeight("200px");
f.setBorderWidth(1);

RootPanel.get().add(f);
  }


Cells are actually expanding correctly in width (to 100%) but NOT in
height ! I tested it on 2 different browsers, tried changing the
RootPanel to the RootLayoutPanel, tried fixing column sizes but always
got the same problem.

Am I missing something or is it a regression in the new GWT 2.0 ? I
really need to have 100% height values in my FlexTable!!!

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: RequestBuilder call fails on FF

2009-12-23 Thread Ihor Kaharlichenko
You can try to install FireBug (see http://getfirebug.com/) and
monitor the request on the Net tab to see what happens with the
request. Both request and response bodies and headers can be seen
there. Give it a try and post the results here.

--

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




Re: How to implement a fancy zoom with GWT ?

2009-12-23 Thread pohl
Absolutely.   If another javascript manages to do something in a
browser, then you can do it in GWT.   A good starting place would be
to look at is the following class:

  com.google.gwt.animation.client.Animation

It's an abstract class that you extend.  There's a mechanism that
repeatedly calls this method that you implement:

onUpdate(double progress)

The "progress" argument will be between 0.0 and 1.0, which tells you
how far along you are in the animation step.   (Think of it as a
percentage.)  Using that number, you can decide, for example, exactly
how "zoomed", or "faded", or "moved" your widget or element is.  When
the animation starts, the value will be 0.0.  When it's done, it will
be 1.0.  In between, the Animation class provides a nice "easing
function" that gives something a bit more natural than straight linear
interpolation would.   The nice thing about it is that you don't have
to think about the easing function.  The abstract superclass will just
call onUpdate() and let you know how far along you are.

http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/animation/client/Animation.html

--

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




Re: Can java client use GWT RPC?

2009-12-23 Thread Isaac Truett
I'm sure with a little searching you can come up with information on
doing pure Java HTTP connections. There's probably something in the
Android API for that as well. But that's getting off topic for this
forum.


On Wed, Dec 23, 2009 at 8:53 AM, ailinykh  wrote:
> Thank you!
> This is what I'm going to do. But I see one problem here. I'd like to
> use Google's authentication.
> As far as I understand it is HTTP based. I don't see any way how to
> use it outside browser.
> Any ideas?
>
> Thank you,
>  Andrey
>
> On Dec 15, 10:45 am, Isaac Truett  wrote:
>> Hello Andrey,
>>
>> No, there isn't a simple way to use GWT RPC outside of the browser.
>>
>> Your best option is to write your server logic independent of any
>> particular protocol. Then you can write multiple protocol
>> implementations such as GWT RPC, JSON, plain HTTP, or even direct
>> sockets, that all share the same business logic.
>>
>> - Isaac
>>
>> On Tue, Dec 15, 2009 at 9:44 AM,ailinykh wrote:
>> > Hello, everybody!
>> > I have a simple GWT application. Right now Web browser is the only
>> > client. Also I want to create pure java client (android based). Is
>> > there a simple way to use GWT RPC from java client? If not, what are
>> > my options?
>>
>> > Thank you,
>> >  Andrey
>>
>> > --
>>
>> > You received this message because you are subscribed to the Google Groups 
>> > "Google Web Toolkit" group.
>> > To post to this group, send email to google-web-tool...@googlegroups.com.
>> > To unsubscribe from this group, send email to 
>> > google-web-toolkit+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: Integration in external site

2009-12-23 Thread mariyan nenchev
Why don't you want to use iframe?

On Wed, Dec 23, 2009 at 1:30 PM, shed wrote:

> Hi all,
>
> I want to integrate my GWT project in an external Website. But I don't
> want to use an IFrame. So I tried to load the compiled JS code in this
> external site. But it doesn't work. I think that it has to do with the
> "same origin policy" but I'm not really sure.
>
> Hope someone can give me an example how I can integrate my GWT project
> in an external site or can post some useful links.
>
> Thank you very much!
> Best Regards!
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: GWT RPC error

2009-12-23 Thread Sripathi Krishnan
There are two separate google projects - GWT and Google App Engine (GAE).

If you use GAE, you *cannot* use Oracle database (or any other database for
that matter). You are tied to using GAE's data storage mechanism.

If you don't know or care about GAE, just disable it for your project (its
just a setting in your eclipse project). Once you disable it, you should be
able to access your Oracle database.


--Sri


2009/12/23 SergeZ 

> Hi everybody!!! Please, help me in solving my problem!!!
>
> I have the standard simple project. The only customization which is
> had been done by me is DB connection (actually Oracle 10g DataBase).
> Of course I use the RPC mechanism. Data, retrieved from DB returning
> from method with String type. When it's time to do for applicaton an
> asyncronous method call, i receiving the such error message:
>
> Initializing AppEngine server
> The server is running at http://localhost:/
> 23.12.2009 12:33:21
> com.google.appengine.tools.development.ApiProxyLocalImpl log
> SEVERE: [1261571601567000] javax.servlet.ServletContext log: Exception
> while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract java.lang.String
> org.kamal.hello.client.HelloWorld.client.GreetingService.greetServer
> (java.lang.String)' threw an unexpected exception:
> java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
> Please see the Google  App Engine developer's guide for more details.
>at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
> (RPC.java:378)
>at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:581)
>at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:188)
>at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
> (RemoteServiceServlet.java:224)
>at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
> (AbstractRemoteServiceServlet.java:62)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter
> (ServeBlobFilter.java:51)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:121)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:70)
>at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:352)
>at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>at org.mortbay.jetty.Server.handle(Server.java:313)
>at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:844)
>at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:396)
>at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:442)
> Caused by: java.lang.NoClassDefFoundError: java.net.Socket is a
> restricted class. Please see the Google  App Engine developer's guide
> for more details.
>at
> com.google.appengine.tools.development.agent.runtime.Runtime.reject
> (Runtime.java:51)
>at oracle.net.nt.TcpNTAdapter.connect(Unknown Source)
>at oracle.net.nt.ConnOption.connect(Unknown Source)
>at oracle.net.nt.ConnStrategy.execute(Unknown Source)
>at oracle.net.resolver.A

Re: GWT RPC error

2009-12-23 Thread t.dave
it looks like you're referencing code on the GWT client side that the
GWT compiler doesn't support.  this kind of problem can be tricky,
because it looks like it compiles ok in eclipse.  remember that your
GWT client packages will end up in the browser as javascript, and so
GWT only supports only a subset of the JRE in the com.x.client.*
packages.

i'd check for any references to Socket:

java.net.Socket is a restricted class


as well, check the JRE emulation reference for supported client-side
java packages.

http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html



On Dec 23, 7:00 am, SergeZ  wrote:
> Hi everybody!!! Please, help me in solving my problem!!!
>
> I have the standard simple project. The only customization which is
> had been done by me is DB connection (actually Oracle 10g DataBase).
> Of course I use the RPC mechanism. Data, retrieved from DB returning
> from method with String type. When it's time to do for applicaton an
> asyncronous method call, i receiving the such error message:
>
> Initializing AppEngine server
> The server is running athttp://localhost:/
> 23.12.2009 12:33:21
> com.google.appengine.tools.development.ApiProxyLocalImpl log
> SEVERE: [1261571601567000] javax.servlet.ServletContext log: Exception
> while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract java.lang.String
> org.kamal.hello.client.HelloWorld.client.GreetingService.greetServer
> (java.lang.String)' threw an unexpected exception:
> java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
> Please see the Google  App Engine developer's guide for more details.
>         at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
> (RPC.java:378)
>         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:581)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:188)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
> (RemoteServiceServlet.java:224)
>         at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
> (AbstractRemoteServiceServlet.java:62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>         at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter
> (ServeBlobFilter.java:51)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:121)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>         at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>         at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>         at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>         at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:70)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>         at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:352)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:313)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:844)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:396)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:442)
> Caused by: java.lang.NoClassDefFoundError: java.net.Socket is a
> restricted class. Please see the Google  App Engine developer's guide
> for more details.
>         at com.google.appengine.tools.development.agent.runtime.Runtime.reject
> (Runtime.java:51)
>         at 

Re: Javascript problem in cache.html

2009-12-23 Thread Wouter
Sri,

Thanks, it worked! Once I set the style=DETAILED flag using the "GWT
Compile project" button in eclipse I soon discovered the problem. One
of my variables was null in some cases. Once I fixed this my
application works again.

Thanks
Wouter

On Dec 22, 9:19 pm, Sripathi Krishnan 
wrote:
> Pass the style = DETAILED flag 
> (seehttp://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...)
> to the GWTC compiler and then run the application.  It won't solve your
> problem, but will atleast point you to the method/variable that has the
> problem.
>
> --Sri
>
> 2009/12/23 Wouter 
>
>
>
> > Hi all,
>
> > I have a strange problem in a .cache.html that is generated by
> > GWT. When I click on an specific radio button in my application the
> > application seems to hang (the "please wait" indication remains
> > displayed). This problem occurs in Chrome, FF and IE. In IE an JS
> > error appears which says:
>
> > line 2965
> > char 368
> > Error 'b.a' is null or not an object
> > Code:0
> > URL: .cache.html
>
> > I use GWT-EXT and my application is hosted on Google App Engine.
>
> > Does anybody seen this error before and give me some pointers where to
> > look ?
>
> > regards
> > Wouter
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: Problems reading the content of a text file.

2009-12-23 Thread mdwarne
Hi,
RequestBuilder sends a request to the server.  I've never used it (I
use GWT-RPC) .

But perhaps you need to put your server address into the request?

Or maybe  call the GWT.getModuleBaseUrl() or  GWT.getHostPageBaseUrl()
to get the Base URL you need, and concat the file name to the baseUrl?

Sorry if this is not helpful.
Thanks,
Mike.


On Dec 22, 6:45 am, "Juan M.M.M."  wrote:
> Hi!
>
> I'm doing an example that I found ina book about GWT. It's the typical
> example of the hangman. I'm using Eclipse and GWT 2.0. This is my
> code:
>
> public class AhorGwt implements EntryPoint {
>
>         private FlowPanel letters = new FlowPanel();
>         private Label wordLabel = new Label();
>         private Image image = new Image();
>
>         private final int MAX_GUESSES = 6;
>         private int misses;
>         private String[] words;
>         private String word;
>         private char[] visibleWord;
>
>         @Override
>         public void onModuleLoad() {
>                 //create interface
>                 RootPanel ahorcado = RootPanel.get("ahorcado");
>                 ahorcado.add(letters);
>                 ahorcado.add(image);
>                 ahorcado.add(wordLabel);
>
>                 //load words
>                 final RequestBuilder requestBuilder = new RequestBuilder
> ( RequestBuilder.POST, "movies.txt" );
>                 try {
>                          requestBuilder.sendRequest( null, new 
> RequestCallback(){
>
>                                 public void onError(Request request, 
> Throwable exception) {
>                                         GWT.log( "failed getting movie list", 
> exception );
>                                 }
>
>                                 public void onResponseReceived(Request 
> request, Response response)
> {
>                                         words = 
> response.getText().split("\n");
>                                         GWT.log(words[2], null);
>                                         startGame();
>                                 }} );
>                 } catch (RequestException e) {
>                         GWT.log( "failed getting movie list", e );
>                 }
>                 wordLabel.setStyleName("word");
>         }
>         // ...
>
> }
>
> My movies.txt file is under /war/ file next to my index.html. Ok, once
> I get the supossed text file into 'words' variable I do a 'GWT.log
> (words[2], null);' in the console developent mode of eclipse I get
> this "HTTP Status 404 - Status report". As you can see, the file
> movies.txt hasn't been loaded. Instead of this, the program has red a
> kind of default text/html file. I don't know if the problem is in the
> location of the file or If I'm using a wrong method to read files on
> the client side.
>
> Thanks,
>
> Juanma

--

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




Re: Saving form inputs for browser autocomplete

2009-12-23 Thread skrat
It's the very basic browser feature, without any extensions.  Just
click twice on input, or start typing in a field you have had already
submitted before, and previous values will be offered for you. This is
standard feature of FF, Chrome, and I guess some more browsers.

On Dec 23, 5:59 pm, Michael W  wrote:
> Skrat,
>
> Are you talking about the Google Autofill, Roboform Autofill feature?
> Which means browser remembers your form entry and next time once you
> click Autofill from browser, the form is refilled.
>
> Or just want to prepopulate your form processed by your program.
>
> On Dec 22, 9:22 am, skrat  wrote:
>
>
>
> > Hmm, that script inserted forms problem, might be fatal.
>
> > I guess security should be handled by browsers, and all non-XHR forms
> > are leveraging this feature. please
>
> > On Dec 22, 3:07 pm, Thomas Broyer  wrote:
>
> > > On Dec 22, 2:53 pm, skrat  wrote:
>
> > > > Hi all,
>
> > > > I am curious about, how can one enable, or force a browser to remember
> > > > value inside text inputs (TextBox) values. In browsers it basically
> > > > works when you submit a form, then all values are remembered, and next
> > > > time you open that form, you will be provided with autocomplete box.
> > > > All major browsers works like this.
>
> > > > Since in apps, that decides to use XML, JSON or GWT RPC, values in
> > > > forms are actually not submitted, and thus not remebered. We just read
> > > > those values and don't do any submit, we do XHR instead.
>
> > > > Any ideas how to get back this very useful browser feature?
>
> > > This is a hack but if you really want it:
> > >  - use a form
> > >  - expose a GWT method as a JS 'global' function (e.g.,
> > > myExportedGwtMethod)
> > >  - set the form's action to call the exported method
> > > ("javascript:myExportedGwtMethod()")
> > >  - do your XHR/RPC call from within your exported GWT method
>
> > > Note that (I'm almost sure this isn't the case, for any form except
> > > login forms, but just in case) this might only work if the form is
> > > actually part of the original HTML markup of the page (i.e. not
> > > inserted by script).
>
> > > It's not worth it IMO; except for login forms eventually, even if it
> > > goes against the most basic security rules, just because of the
> > > enhanced UX.

--

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




Re: Problems reading the content of a text file.

2009-12-23 Thread Andrés Cerezo
Hello Juan in this link http://www.gwtapps.com/ you have the source code you
are testing.

Greetings.


2009/12/23 Juan M.M.M. 

> Thank you very much. You got the answer!
>
> >> "../movies.txt"
>
> Happy Christmas!
>
> On 22 dic, 21:14, Sripathi Krishnan 
> wrote:
> > The URL you are trying to access is wrong...
> >
> > Assuming you module is named hangman, this line
> >final RequestBuilder requestBuilder = new RequestBuilder(
> > RequestBuilder.POST, "movies.txt" );
> >
> > makes  a request tohttp://myserver.com/mywar/hangman/movies.txt, whereas
> > you want it to behttp://myserver.com/mywar/movies.txt
> >
> > Try using "../movies.txt", or use GWT.getHostPageBaseURL() ..
> >
> > --Sri
> >
> > 2009/12/22 Juan M.M.M. 
> >
> > > Hi!
> >
> > > I'm doing an example that I found ina book about GWT. It's the typical
> > > example of the hangman. I'm using Eclipse and GWT 2.0. This is my
> > > code:
> >
> > > public class AhorGwt implements EntryPoint {
> >
> > >private FlowPanel letters = new FlowPanel();
> > >private Label wordLabel = new Label();
> > >private Image image = new Image();
> >
> > >private final int MAX_GUESSES = 6;
> > >private int misses;
> > >private String[] words;
> > >private String word;
> > >private char[] visibleWord;
> >
> > >@Override
> > >public void onModuleLoad() {
> > >//create interface
> > >RootPanel ahorcado = RootPanel.get("ahorcado");
> > >ahorcado.add(letters);
> > >ahorcado.add(image);
> > >ahorcado.add(wordLabel);
> >
> > >//load words
> > >final RequestBuilder requestBuilder = new RequestBuilder
> > > ( RequestBuilder.POST, "movies.txt" );
> > >try {
> > > requestBuilder.sendRequest( null, new
> > > RequestCallback(){
> >
> > >public void onError(Request request,
> > > Throwable exception) {
> > >GWT.log( "failed getting movie
> > > list", exception );
> > >}
> >
> > >public void onResponseReceived(Request
> > > request, Response response)
> > > {
> > >words =
> > > response.getText().split("\n");
> > >GWT.log(words[2], null);
> > >startGame();
> > >}} );
> > >} catch (RequestException e) {
> > >GWT.log( "failed getting movie list", e );
> > >}
> > >wordLabel.setStyleName("word");
> > >}
> > >// ...
> > > }
> >
> > > My movies.txt file is under /war/ file next to my index.html. Ok, once
> > > I get the supossed text file into 'words' variable I do a 'GWT.log
> > > (words[2], null);' in the console developent mode of eclipse I get
> > > this "HTTP Status 404 - Status report". As you can see, the file
> > > movies.txt hasn't been loaded. Instead of this, the program has red a
> > > kind of default text/html file. I don't know if the problem is in the
> > > location of the file or If I'm using a wrong method to read files on
> > > the client side.
> >
> > > Thanks,
> >
> > > Juanma
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: gwt reload event

2009-12-23 Thread Pablo Martin Gore
please someone can help me with this issue.


2009/12/22 pgore 

>  Hi
> I need to know , if it is possible to handler the moment when the
> browser trigger one reload event.
>
> I can handle the moment when I close My browser , now I want to
> handler when is trigger the reload

--

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




Json data not rendered

2009-12-23 Thread jayesh
>From my gwt application I am calling an external python server for
json data.I am creating the client view with this data.Though I am
receiving data correctly, what I am seeing is a white screen. If I put
a message box after, it is some what working. any idea?

--
Thanks
Jayesh

--

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




How to implement a fancy zoom with GWT ?

2009-12-23 Thread tim
Hi all,

I'm trying GWT and I'm discovering the concepts with this way to
develop web app.

Would it be possible to develop javascripts "effects" with gwt, like
the popular fancy zoom or others known effects ?

Thanks for your answer,

best regards

--

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




rel attribute on anchor tag

2009-12-23 Thread Nick Cronin
Hi,
Is there a way to assign a rel attribute on an anchor tag via the
"Anchor" object?  There's no setRelationship or anything obvious and
I'm sure it's quite simple I just can't see it easily =)
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Getting User details in GWT RPC

2009-12-23 Thread Pavi
Hi,

I am trying to get user information in my GWT application while trying
to host it on the appspot. In my RPC service impl class I invoke the
following:

UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();

I plan to store the value of the user in the datastore, but the value
is always "null". Could someone please let me know if I am missing
something?

Thank you,
Pavi

--

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




gwt reload event

2009-12-23 Thread pgore
 Hi
I need to know , if it is possible to handler the moment when the
browser trigger one reload event.

I can handle the moment when I close My browser , now I want to
handler when is trigger the reload

--

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




Re: Validating ClientBundles ?

2009-12-23 Thread tberthel
I have the same issue for some time now

On Dec 22, 11:07 am, Carlos Aguayo  wrote:
> Hi,
>
> After upgrading the Eclipse plugin to GWT 2.0, whenever I import my
> Eclipse projects, Eclipse crashes. After importing the projects, I see
> multiple multiple (~12) jobs spawned called "Validating
> ClientBundles", then it either shows a warning saying that it ran out
> of memory or just closes.
>
> When inspecting the Eclipse log, I found this:
> 
> !ENTRY org.eclipse.core.jobs 4 2 2009-12-22 11:07:17.178
> !MESSAGE An internal error occurred during: "Refreshing workspace".
> !STACK 0
> java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start0(Native Method)
>         at java.lang.Thread.start(Thread.java:597)
>         at org.eclipse.core.internal.jobs.WorkerPool.jobQueued
> (WorkerPool.java:145)
>         at org.eclipse.core.internal.jobs.JobManager.schedule(JobManager.java:
> 1001)
>         at org.eclipse.core.internal.jobs.InternalJob.schedule
> (InternalJob.java:391)
>         at org.eclipse.core.runtime.jobs.Job.schedule(Job.java:435)
>         at
> com.google.gdt.eclipse.core.BuilderUtilities.revalidateCompilationUnits
> (BuilderUtilities.java:170)
>         at
> com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener
> $1.visit(ClientBundleResourceChangeListener.java:154)
>         at org.eclipse.core.internal.events.ResourceDelta.accept
> (ResourceDelta.java:68)
>         at org.eclipse.core.internal.events.ResourceDelta.accept
> (ResourceDelta.java:79)
>         at org.eclipse.core.internal.events.ResourceDelta.accept
> (ResourceDelta.java:79)
>         at org.eclipse.core.internal.events.ResourceDelta.accept
> (ResourceDelta.java:79)
>         at org.eclipse.core.internal.events.ResourceDelta.accept
> (ResourceDelta.java:79)
>         at org.eclipse.core.internal.events.ResourceDelta.accept
> (ResourceDelta.java:79)
>         at org.eclipse.core.internal.events.ResourceDelta.accept
> (ResourceDelta.java:79)
>         at org.eclipse.core.internal.events.ResourceDelta.accept
> (ResourceDelta.java:79)
>         at org.eclipse.core.internal.events.ResourceDelta.accept
> (ResourceDelta.java:48)
>         at
> com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener­.visitResourceDelta
> (ClientBundleResourceChangeListener.java:124)
>         at
> com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener­.resourceChanged
> (ClientBundleResourceChangeListener.java:116)
>         at org.eclipse.core.internal.events.NotificationManager$2.run
> (NotificationManager.java:291)
>         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>         at org.eclipse.core.internal.events.NotificationManager.notify
> (NotificationManager.java:285)
>         at
> org.eclipse.core.internal.events.NotificationManager.broadcastChanges
> (NotificationManager.java:149)
>         at org.eclipse.core.internal.resources.Workspace.broadcastPostChange
> (Workspace.java:313)
>         at org.eclipse.core.internal.resources.Workspace.endOperation
> (Workspace.java:1022)
>         at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
> (InternalWorkspaceJob.java:45)
>         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> ===
> These are my JVM settings in eclipse.ini:
>
> --launcher.XXMaxPermSize
> 256m
> -Xms256m
> -Xmx1024m
> -Xss1024k
>
> Is there a way to turn off this validation upon importing the project.
> Am I missing something or is this a bug?
>
> Thanks,
> Carlos

--

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




GWT + Eclipse error module

2009-12-23 Thread djkytra
Hi,
i have try to run a project with eclipse and now i get this error

Missing required argument 'module[s]'

Why this?

Regards,

--

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




problem changing code

2009-12-23 Thread Acerezo
Hello, I'm changing the source code and compile ok but when I'm doing
the test the web is always the same, Anyone know what can it be?

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Styling CheckBox

2009-12-23 Thread Tim K
I want to change the size of a com.google.gwt.user.client.ui.CheckBox
so that it grows/shrinks.  I am using a Chrome Browser. It zooms in
and out with Ctrl-Plus and Ctrl-Minus.

This entry in my css file had no effect.
.gwt-CheckBox {
  width: 1em;
  height: 1em;
  padding: 0;
  margin: 0;
}

Chrome's inspector displays this HTML.

   http://groups.google.com/group/google-web-toolkit?hl=en.




Cross Domain Scripting

2009-12-23 Thread Vishal
I have an html page on a loaded on  xxx.somedomain:301/some.html

This html has

document.domain = 'somedomain:301';
  

and thus has to load up a GWT generated nocache.js.
I have the

added to the GWT.xml to allow Cross Domain Scripting.


I am able to execute the nocache.js , but any RPC fail with

com.google.gwt.http.client.RequestPermissionException:
The URL http://yyy.somedomain:301/g-control/actionservice.foundation
is invalid or violates the same-origin security restrictionCaused by:
com.google.gwt.http.client.RequestException:


What am I doing wrong here ?

--

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




Re: How can you open the GWT 2.0 samples in eclipse?

2009-12-23 Thread Andrés Cerezo
Yes with this link all this is perfect!!!

Anyone knows how can I test the widgest of the submenu?
For example only CwTabPanel.java in the screen ?


2009/12/21 Jason Parekh 

> Hi Cian,
>
> Could you try importing each as an existing Java project?  Check out
> http://code.google.com/eclipse/docs/existingprojects.html.
>
> jason
>
> On Sun, Dec 20, 2009 at 7:00 PM, Cian Montgomery
>  wrote:
> > I am trying to get started with the gwt. I can build and run them from
> > the command line but there does not appear to be any way to open the
> > samples in eclipse. Is there a way to do this?
> >
> > Thanks.
> >
> > --
> >
> > You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> >
> >
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Integration in external site

2009-12-23 Thread shed
Hi all,

I want to integrate my GWT project in an external Website. But I don't
want to use an IFrame. So I tried to load the compiled JS code in this
external site. But it doesn't work. I think that it has to do with the
"same origin policy" but I'm not really sure.

Hope someone can give me an example how I can integrate my GWT project
in an external site or can post some useful links.

Thank you very much!
Best Regards!

--

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




ScrollPanel with DockLayoutPanel inside

2009-12-23 Thread Jonas
Is it possible that you can't put a DockLayoutPanel inside a
ScrollPanel?

When I try nothing is paintet on the screen.

I really dont know what is going on - any help would be appriciated.


Thanks

/J

--

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




Debug Mode Tomcat

2009-12-23 Thread Malli
HI,

I'm using ANT for compiling  gwt  java class  into  corresponding js
and html files.After compiled successfully i copied all gwt html and
js files parallel to my  WEB-INF folder under my application name ,for
deploying war i'm using Tomcat .Now  i need to put the break point on
gwt java files which files comes under client directory  and debug
it .. can anybody help me out?.

For debugging the  normal java files like servlet or util files i'm
setting tomcat bat file as follows:

set JAVA_OPTS=-Xms256m -Xmx512m -XX:PermSize=128M -XX:MaxPermSize=256M
set JPDA_ADDRESS=1097
set JPDA_TRANSPORT=dt_socket
catalina jpda start

So for above settings i'm able to debug the normal java  fiels like
servlet or util files bug not gwt java files.

I hopes i can get the response soon.

--

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




GWT RPC error

2009-12-23 Thread SergeZ
Hi everybody!!! Please, help me in solving my problem!!!

I have the standard simple project. The only customization which is
had been done by me is DB connection (actually Oracle 10g DataBase).
Of course I use the RPC mechanism. Data, retrieved from DB returning
from method with String type. When it's time to do for applicaton an
asyncronous method call, i receiving the such error message:

Initializing AppEngine server
The server is running at http://localhost:/
23.12.2009 12:33:21
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1261571601567000] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
org.kamal.hello.client.HelloWorld.client.GreetingService.greetServer
(java.lang.String)' threw an unexpected exception:
java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
Please see the Google  App Engine developer's guide for more details.
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java:378)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:581)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:188)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
(RemoteServiceServlet.java:224)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter
(ServeBlobFilter.java:51)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:352)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)
Caused by: java.lang.NoClassDefFoundError: java.net.Socket is a
restricted class. Please see the Google  App Engine developer's guide
for more details.
at com.google.appengine.tools.development.agent.runtime.Runtime.reject
(Runtime.java:51)
at oracle.net.nt.TcpNTAdapter.connect(Unknown Source)
at oracle.net.nt.ConnOption.connect(Unknown Source)
at oracle.net.nt.ConnStrategy.execute(Unknown Source)
at oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown
Source)
at oracle.net.ns.NSProtocol.establishConnection(Unknown Source)
at oracle.net.ns.NSProtocol.connect(Unknown Source)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:843)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:267)
at oracle.jdbc.driver.PhysicalConnection.
(PhysicalConnection.java:413)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:164)
at oracle.jdbc.driver.T4CDriverExtension.getConnection
(T4CDriverExtension.java:34)
at o

Re: Window formatting - Firefox vs. IE

2009-12-23 Thread David C. Hicks
Thanks, Jim.  I'll give it a try.

Jim Douglas wrote:
> David,
>
> The selection of "quirks mode" versus "standards mode" is the biggest
> factor I've noticed in the overall behaviour in IE8.  (I haven't
> tested in IE6 or IE7.)
>
> The quickest way to see if that's the issue is to hit F12 and try the
> three different document modes.  If your stuff works in standards mode
> and fails in quirks mode, change that to be the default version that
> you serve up.
>
> Jim.
>
> On Dec 23, 10:06 am, "David C. Hicks"  wrote:
>   
>> I've got a couple of problems with some dialogs that are based on the
>> Window class.  I hope someone can point me to a quick solution.  It just
>> seems like I must be missing something.
>>
>> My dialog based on the Window class has a number of panels in it.  Each
>> panel may have several widgets.  Those are all looking pretty good.  I
>> set the AutoHeight and AutoWidth properties for the Window to true.  Now
>> come the problems:
>>
>> 1) In Firefox, the dialogs look like they're almost perfect, except that
>> with text fields that are required, the little red icon on the right
>> makes the field larger than the dialog, resulting in a scroll bar being
>> placed below the widget/panel.  Is there a way to take that icon into
>> account so that the width works out correctly?
>>
>> 2) In IE, the dialogs end up taking the entire width of the browser, but
>> not the height (which appears to be correct).  How can I prevent this?
>>
>> Thanks for any suggestions.
>> Dave
>> 
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>   

--

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




Re: UI Binder bugs - maybe config issue on my side(?)

2009-12-23 Thread Peter
Great,
after clean install of Eclipse, Google plugin and Java I got it
running without errors.

Thank you guys very much for help.

Regards
Peter

On Dec 22, 5:43 pm, Jason Parekh  wrote:
> Peter,
>
> Also, would you mind downloading a fresh copy of Eclipse (with a new
> workspace) for testing purposes?  I imported your project, and the
> @UiFields are not marked as errors for me.  If a fresh Eclipse works,
> it'll help in debugging whether it's a system configuration issue or
> an Eclipse configuration issue.
>
> Thanks,
> jason
>
> On Tue, Dec 22, 2009 at 11:08 AM, Thomas Broyer  wrote:
>
> > On Dec 22, 10:42 am, Peter  wrote:
> >> Sure, thanks for helping hand. Zipped project is here:
>
> >> ns.blucina.net/lovisek/tmp/XploreU-inbox.zip
>
> >> I also deployed the project 
> >> here:http://ns.blucina.net/lovisek/tmp/xu/XploreU_inbox.html
>
> >> As you can see, onClick handler is never fired despite it should be
> >> triggered after clicking on button and bold C label.
>
> > You're not attaching your *widget* to the document, only its
> > *element*, so events are not sunk:
> >                Document.get().getBody().appendChild(b.getElement());
>
> > Use a RootPanel or RootLayoutPanel to add widgets to the page. That's
> > "GWT 101".
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--

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




Re: Window formatting - Firefox vs. IE

2009-12-23 Thread Jim Douglas
David,

The selection of "quirks mode" versus "standards mode" is the biggest
factor I've noticed in the overall behaviour in IE8.  (I haven't
tested in IE6 or IE7.)

The quickest way to see if that's the issue is to hit F12 and try the
three different document modes.  If your stuff works in standards mode
and fails in quirks mode, change that to be the default version that
you serve up.

Jim.

On Dec 23, 10:06 am, "David C. Hicks"  wrote:
> I've got a couple of problems with some dialogs that are based on the
> Window class.  I hope someone can point me to a quick solution.  It just
> seems like I must be missing something.
>
> My dialog based on the Window class has a number of panels in it.  Each
> panel may have several widgets.  Those are all looking pretty good.  I
> set the AutoHeight and AutoWidth properties for the Window to true.  Now
> come the problems:
>
> 1) In Firefox, the dialogs look like they're almost perfect, except that
> with text fields that are required, the little red icon on the right
> makes the field larger than the dialog, resulting in a scroll bar being
> placed below the widget/panel.  Is there a way to take that icon into
> account so that the width works out correctly?
>
> 2) In IE, the dialogs end up taking the entire width of the browser, but
> not the height (which appears to be correct).  How can I prevent this?
>
> Thanks for any suggestions.
> Dave

--

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




Window formatting - Firefox vs. IE

2009-12-23 Thread David C. Hicks
I've got a couple of problems with some dialogs that are based on the
Window class.  I hope someone can point me to a quick solution.  It just
seems like I must be missing something.

My dialog based on the Window class has a number of panels in it.  Each
panel may have several widgets.  Those are all looking pretty good.  I
set the AutoHeight and AutoWidth properties for the Window to true.  Now
come the problems:

1) In Firefox, the dialogs look like they're almost perfect, except that
with text fields that are required, the little red icon on the right
makes the field larger than the dialog, resulting in a scroll bar being
placed below the widget/panel.  Is there a way to take that icon into
account so that the width works out correctly?

2) In IE, the dialogs end up taking the entire width of the browser, but
not the height (which appears to be correct).  How can I prevent this?

Thanks for any suggestions.
Dave

--

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




Jetty Classpath, Ant vs Eclipse

2009-12-23 Thread Thad
I'm using GWT 2.0.0 on Linux with JDK 1.6 targeting JDK 1.5.0 (for
compatibility reasons with older Macs).

When I launch DevMode via Eclipse, all runs fine.  It also runs fine
when deployed as a WAR file on Linux or on MacOS 10.5.  However if I
launch DevMode via ant from the command line, my application's
services Impl's seem to choose a different classpath.  Here's the code
snippet that throws an exception:

  // Parse the XML.
  InputSource source = new InputSource(bais);
  XPathFactory factory = XPathFactory.newInstance();
  XPath xpath = factory.newXPath();
  String expression = "//pa...@number='"+page+"']";
  result = (Node)xpath.evaluate(expression, source,
XPathConstants.NODE);

The classes are imported from the JDK's javax.xml.xpath package.
The exception trace points to the last line of the above snippet:

00:01:21.111 [WARN] Error for /webclient/getImageServlet
java.lang.NoSuchMethodError: org.apache.xpath.XPathContext.(Z)V
at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:207)
at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:476)
at com...getLayerPage(GetImageServlet.java:647)

This seems to indicate that when run from the command line the XPath
is being derived from Xalan, which does not have the particular
evaluate() method I'm using.

My ant project class path is

  



...

  

  

${third.party.libs} includes Xalan, JDOM, JAI, and other jars.  Both
gwt-user.jar and gwt-dev.jar are in war/WEB-INF/lib.  My devmode
target looks like the ones in the 2.0.0 samples.

Any ideas?

--

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




flextable column widths and onLoad...

2009-12-23 Thread golfdude

I have a table widget ( derives from flextable ) in which I set the
columns widths based on a percentage of offsetWidth. In one table, I
load the contents of this table in a widget constructor ( which
creates the table ). At that time, the columns are not rendered
correctly. After the page is loaded, if I refresh or sort, then the
column sizes are set correctly ( since the resize is called ). I have
overloaded onLoad method in my table widget which calls resize. I also
call resize when the data is loaded. But the initial loaded table have
wrong sizes. Any ideas why this could be happenning ?

Thanks

gd

--

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




Re: Saving form inputs for browser autocomplete

2009-12-23 Thread Michael W
Skrat,

Are you talking about the Google Autofill, Roboform Autofill feature?
Which means browser remembers your form entry and next time once you
click Autofill from browser, the form is refilled.

Or just want to prepopulate your form processed by your program.



On Dec 22, 9:22 am, skrat  wrote:
> Hmm, that script inserted forms problem, might be fatal.
>
> I guess security should be handled by browsers, and all non-XHR forms
> are leveraging this feature. please
>
> On Dec 22, 3:07 pm, Thomas Broyer  wrote:
>
> > On Dec 22, 2:53 pm, skrat  wrote:
>
> > > Hi all,
>
> > > I am curious about, how can one enable, or force a browser to remember
> > > value inside text inputs (TextBox) values. In browsers it basically
> > > works when you submit a form, then all values are remembered, and next
> > > time you open that form, you will be provided with autocomplete box.
> > > All major browsers works like this.
>
> > > Since in apps, that decides to use XML, JSON or GWT RPC, values in
> > > forms are actually not submitted, and thus not remebered. We just read
> > > those values and don't do any submit, we do XHR instead.
>
> > > Any ideas how to get back this very useful browser feature?
>
> > This is a hack but if you really want it:
> >  - use a form
> >  - expose a GWT method as a JS 'global' function (e.g.,
> > myExportedGwtMethod)
> >  - set the form's action to call the exported method
> > ("javascript:myExportedGwtMethod()")
> >  - do your XHR/RPC call from within your exported GWT method
>
> > Note that (I'm almost sure this isn't the case, for any form except
> > login forms, but just in case) this might only work if the form is
> > actually part of the original HTML markup of the page (i.e. not
> > inserted by script).
>
> > It's not worth it IMO; except for login forms eventually, even if it
> > goes against the most basic security rules, just because of the
> > enhanced UX.

--

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




Re: Pressing the enter key in the SuggestBox popup fire onKeyUp event! How to disable this?

2009-12-23 Thread Michael W
Can you check following whether it is what you need?
If yes, I will post our solution here.


On Dec 22, 6:35 am, "ss.require"  wrote:
> Hi there!
> If I select an option in the SuggestBox popup by pressing the enter
> key then onKeyUp event fire. But I don't want that it happens because
> I already handle pressing the enter on the textbox by executing
> another code. My code below:
>
> suggestBox.addSelectionHandler(new SelectionHandler() {
>                         public void onSelection(SelectionEvent 
> arg0) {
>                                           //Here my code
>                         }
>                 });
> suggestBox.getTextBox().addKeyUpHandler(new KeyUpHandler() {
>                         public void onKeyUp(KeyUpEvent arg0) {
>                                      if (arg0.getNativeKeyCode() == 13) {
>                                                     //Here another my
> code
>                                 }
>                         }
>                 });
>
> How to disable this or what is the workaround?

--

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




Re: GWT 2.0 Panels

2009-12-23 Thread Ian Bambury
You can't use CSS file syntax you have to use DOM style (i.e. 'cssFloat' not
'float').

Try something like:


FlowPanel searchPanel = new FlowPanel();
Label leftPanel = new Label("Left"); // Or whatever
Label rightPanel = new Label("Right");

RootPanel.get().add(searchPanel);
searchPanel.add(leftPanel);
searchPanel.add(rightPanel);

searchPanel.setWidth("100%");
searchPanel.getElement().getStyle().setProperty("border", "1px solid
black");

leftPanel.getElement().getStyle().setProperty("cssFloat", "left");

rightPanel.getElement().getStyle().setProperty("cssFloat", "right");


Ian

http://examples.roughian.com

2009/12/23 mwaschkowski 

> Hi,
>
> I've been having great difficulty with 2.0 panels. I've read over the
> docs at:
>
>  http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
>
> and moved over to standards mode. I've found that a lot of widget that
> used to display scrollbars just don't anymore. I've tried using the
> new layoutpanels, but getting hung up now because of sizing issues - I
> now have to declare the sizes explicitly, and now there are layout
> issues (some of the page not being displayed depending on the
> browser).
>
> Well, first off, I decided to do something simple like replace my
> horizontal panel with a flow panel. This horizontal panel (hp) was
> 100% width, had a widget on the left and a widget on the right.
> Because the docs cautioned that HorizontalPanels might not work with
> standards mode, I did the following (using the float suggestion in the
> docs):
>
>FlowPanel searchPanel = new FlowPanel();
>DOM.setElementProperty(searchPanel.getElement(), "border",
> "1px
> solid black");
>searchPanel.setWidth("100%");
>searchPanel.add(leftPanel);
>DOM.setElementProperty(leftPanel.getElement(), "float",
> "left");
>searchPanel.add(rightPanel);
>DOM.setElementProperty(rightPanel.getElement(), "float",
> "right");
>
> As well, I tried to add a border so I could better see the layout.
> Neither the border is working, nor the floating of the widgets, help!
>
> Thanks,
>
> Mark
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: StatusCodeException

2009-12-23 Thread leslie
Thank you both for your responses.

First, I'll respond to Trevor by posting the stack:

com.google.gwt.user.client.rpc.StatusCodeException:
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:192)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:287)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
(RequestBuilder.java:396)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
(BrowserChannel.java:1668)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:613)

Ezra your post got me thinking about the browser settings.  And what I
discovered was that if the setting "Work Offline" in the File menu is
checked, or selected,
then the stack is generated.  But simply by unchecking this setting, I
can resolve the error and connect to the server.  Of course this makes
sense, I just hadn't
thought of it because often enough Firefox will simply prevent the
entire page from loading and give me the warning message in the
browser window.  But sometimes Firefox will go ahead
and load the page and if it does and if it's configured to work
"offline" then of course there will be a problem connecting to the
server.

So I think I've resolved this problem for now.  Thanks to you both.

--

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




Re: Using Constants server-side?

2009-12-23 Thread El Mentecato Mayor
Search this list for a couple of solutions that allow you to reuse the
client-side interfaces.  You will need to make sure that both the
properties files and the interfaces exist on both the client and
server sides.

I opted to simply use ResourceBundle and make my properties files
available on the server-side.  The only other thing you need to take
care of (in both scenarios) is knowing what Locale to use.  You
usually want to set it according to the locale that the client is
using, which doesn't necessarily correspond to the same locale that
the server-side JVM is running as.


On Dec 21, 10:07 am, omsrobert  wrote:
> I need to use the same localization mappings on the server as on the
> client.  I can't instantiate Constants server-side.  I suppose one
> method would be to read in the raw properties file and do a key lookup
> but I'd like to reuse the Java method interface if I can.  Ideas???

--

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




Re: UIBinder and image resources

2009-12-23 Thread ericv
Thanks for your response, I'll look at the details a bit later.

On Dec 23, 3:03 pm, Thomas Broyer  wrote:
> > Code:
>
> > public class Sandbox implements EntryPoint {
> >         public void onModuleLoad() {
> >                 BinderUiTest test = new BinderUiTest();
> >                 Document.get().getBody().appendChild(test.getElement());
>
> Where the hell have all of you been seeing this code to add widgets to
> the page?

Like I mentioned in the original post:
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_World

The sample code on that page has been very confusing to me, method
names aren't even consistent across the examples.

--

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




GWT 2.0 Panels

2009-12-23 Thread mwaschkowski
Hi,

I've been having great difficulty with 2.0 panels. I've read over the
docs at:

  http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html

and moved over to standards mode. I've found that a lot of widget that
used to display scrollbars just don't anymore. I've tried using the
new layoutpanels, but getting hung up now because of sizing issues - I
now have to declare the sizes explicitly, and now there are layout
issues (some of the page not being displayed depending on the
browser).

Well, first off, I decided to do something simple like replace my
horizontal panel with a flow panel. This horizontal panel (hp) was
100% width, had a widget on the left and a widget on the right.
Because the docs cautioned that HorizontalPanels might not work with
standards mode, I did the following (using the float suggestion in the
docs):

FlowPanel searchPanel = new FlowPanel();
DOM.setElementProperty(searchPanel.getElement(), "border", "1px
solid black");
searchPanel.setWidth("100%");
searchPanel.add(leftPanel);
DOM.setElementProperty(leftPanel.getElement(), "float", "left");
searchPanel.add(rightPanel);
DOM.setElementProperty(rightPanel.getElement(), "float", 
"right");

As well, I tried to add a border so I could better see the layout.
Neither the border is working, nor the floating of the widgets, help!

Thanks,

Mark

--

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




NumberFormat.getCurrencyFormat

2009-12-23 Thread Peter Ondruska
I have default locale set to "en" and would like to format currencies,
e.g. NumberFormat.getCurrencyFormat("CZK").format(c) but it fails as
CZK (Czech Crown) is not available in "en". How would I do that
without switching to "cs" locale?

--

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




Re: General question about project architecture.

2009-12-23 Thread Carl
You might want to look at this article:
http://claudiushauptmann.com/a-framework-for-gwt-multipage-applications.html

On Nov 16, 5:36 am, Davis Ford  wrote:
> I'm doing this now.  I set the project up this way several months ago and it
> works great for me.  The only real con is double compile-time, but I don't
> care about that.  I even have a feature where I can show a view of one
> application inside another, which is very cool.
>
> Here's how I set it up --http://zenoconsulting.wikidot.com/blog:16
>
> Regards,
> Davis
>
>
>
>
>
> On Sat, Nov 14, 2009 at 8:24 AM, rolf  wrote:
> > What's the best way to create a web app with multiple entry points but
> > a lot of common code (eg. common widgets and dialogs) shared between
> > them, as well as a common server back end? Currently I'm creating
> > multiple modules and multiple HTML pages within a single web app but
> > I'm also worried about scalability. The different entry points
> > correspond to different workflows depending on what the user is trying
> > to do, or perhaps customised versions of the interface for particular
> > customers.
>
> > I guess I should probably have a single module and top level entry
> > point and then switch between interfaces from there but that will
> > involve a lot of code refactoring.
>
> > -Rolf
>
> > On Nov 14, 11:50 am, Sripathi Krishnan 
> > wrote:
> > > Multiple modules is the wrong way to use GWT.
>
> > > GWT highly recommends using a single module. Most of the performance
> > > optimizations GWT does relies on the fact that you have a single,
> > monolithic
> > > module. Plus, as you observed, the time to build your application keeps
> > > growing as you add more modules, so it doesn't scale well.
>
> > > Part of the problem is deciding whether you are building a "Web App" or a
> > > "Web Site". Lots of
> > > discussions<
> >http://www.clyral.com/za/pages/web/website_vs_webapplication.html>can
> > > be found on this topic.
>
> > > GWT is great if you want to build a Web App. Typically, there is only a
> > > single HTML page, and different "screens" are manipulated on the client
> > side
> > > using DOM. But if you are building a traditional, multi-page Web Site
> > > (nothing wrong with that), then GWT is not for you. You are better off
> > using
> > > one of the many javascript libraries.
>
> > > So, lets assume you decide you want to build a web-app, and want to use
> > GWT
> > > to do so. To get started, stick to a single HTML page with a single GWT
> > > Module/Entry Point. Adding multiple "screens" is adding a new FlowPanel
> > or
> > > Composite with your content. Or perhaps, you have all "screens" built
> > into
> > > the original HTML page, and you just hide/unhide the divs based on user
> > > action.
>
> > > The above approach works well if you have a few (say less than 10)
> > screens.
> > > If your application grows bigger and more complex, you would want to
> > start
> > > following some established patterns. The MVP pattern has been touted as
> > the
> > > "way to build web-apps". Just do a google search, there are a lot of
> > > articles on that subject. Also, catch Ray Ryan's talk on GWT Architecture
> > > and best practices<
> >http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr...>.
>
> > > --Sri
>
> > > 2009/11/13 David C. Hicks 
>
> > > > Specifically, I'm curious about the use of GWT Modules in a project.
>
> > > > Each time we have a new "screen" to create, we have been adding a new
> > > > module to our project.  Of course, with each new module, there is an
> > > > additional build cycle to generate the Javascript for that module.
> >  What
> > > > I'm wondering is if this is normal, or does it make more sense to try
> > to
> > > > build up whole applications in a single module and perhaps keep the
> > > > build time down?  Each new module we add appears to increase our build
> > > > time by about 1.5 minutes.  It won't be long and this will be way
> > beyond
> > > > painful.
>
> > > > Any thoughts?
> > > > Thanks,
> > > > Dave
>
> > > > --
>
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google

Re: Problems with generator

2009-12-23 Thread Thomas Broyer

On Dec 22, 8:04 pm, "kruk.mat...@gmail.com" 
wrote:
>  am implementing a generator to generate code using Apache Velocity.
> The question is that you use the JClassType.getMetaData () to get the
> annotations in the code. Some extraction of my code:
>     GearsDataStoreGenerator extends Generator{
>                   public String generate (TreeLogger logger,
> GeneratorContext context, String typeName)  throws
> UnableToCompleteException
>      {    TypeOracle typeOracle = context.getTypeOracle();
>          JClassType requestedClass = typeOracle.getType(typeName);
>          requestedClass.getMetaData(ANNOTATION_TABLE); // GWT 1.7
> returns the annotation metadata! GWT 2.0 returns nothing!
>         
> So GWT 1.7 version works perfect. But from version 2.0 stopped
> working. Reading the sources of the method I detected the following
> change:
> GWT 2.0
> @Deprecated
>   public final String[][] getMetaData(String tagName) {
>     return TypeOracle.NO_STRING_ARR_ARR;
>   }
> GWT 1.7
> public abstract String[][] getMetaData(String tagName);
> In the context help of the method, talks about how to replace it:
> ...
> @deprecated
> Javadoc comment metadata has been deprecated in favor of proper Java
> annotations. See HasAnnotations.getAnnotation(Class) for equivalent
> functionality.
> Someone could help me with some example of
> HasAnnotations.getAnnotation
> (Class) ??
> It think I have to use @Target(ElementType.ANNOTATION_TYPE)?

JClassType implements HasAnnotation, so you just have to replace your
call to getMetaData to a call to getAnnotation, replacing the name of
your annotation with its actual class, e.g.

   public @interface Table {
 String[] value();
   }

   @Table({ "foo", "bar", "baz" })
   public class MyTable { }

   JClassType sourceType = ...;
   Table tableAnnotation = sourceType.getAnnotation(Table.class);
   for (String v : tableAnnotation.value()) {
  // will loop over "foo", "bar" and "baz"
   }

--

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




Re: JAXB in model classes also used by GWT RPC

2009-12-23 Thread Mike Bedard
I was alwayas under the impression that third party jars could not be included 
in the client side code because ultimatley this code is complied to 
javascript.  GWT complier only handles a subset of the Java API that's where 
the javax package is...
 
To get RPC to work you need to make changes in the client and server.  
 
If I'm off track and you 
 
-mike


--- On Wed, 12/23/09, Eric  wrote:


From: Eric 
Subject: Re: JAXB in model classes also used by GWT RPC
To: "Google Web Toolkit" 
Date: Wednesday, December 23, 2009, 8:32 AM


Thanks for the suggestion.

Ugh.  That feels pretty hacky, but may just be the best option.

Thanks again,
Eric

On Dec 23, 1:31 am, Pauli  wrote:
> Hi,
>
> I had the same problem a while ago and asked exactly the same
> question. Why don't jaxb annotations work? I remember reading
> somewhere that if things won't break if gwt cannot find annotation
> source files, but I'm not sure if I really read this or not.  Well, I
> didn't get an answer to that question, but I did get a suggestion for
> how to make things work for me. I took the jaxb source code and put
> the annotation files to my project so gwt can compile them.
>
> Pauli
>
> On 22 joulu, 22:59, Eric  wrote:
>
> > I have about 20 "model" classes that I use with GWT RPC and also
> > persist into a database using JPA.  This is all working fine.  On the
> > server side I need to do some XML processing and would like to use
> > some JAXB annotations on these model classes.  However it complains
> > with:
>
> > 15:26:47.005 [ERROR] [gwtui] Line 18: The import javax.xml.bind cannot
> > be resolved
>
> > Is there any way of getting this to work?  Why does it like my JPA
> > annotations just fine but reject the JAXB ones?
>
> > How have other people structured their projects that use GWT,
> > databases and webservices?
>
> > Thanks,
> > Eric

--

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





  

--

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




Re: StatusCodeException

2009-12-23 Thread Ezra
Hi Leslie,

I had a similar issue which was caused by having my ports not match up
correctly. If you take a look at the mozilla developer page ,
https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript, it
explains the browsers same origin policy. For example, localhost:1234
cant get javascript files from localhost:8080 in Firefox.

Its possible this has nothing to do with your problem but I was also
getting a status code of 0. If the server wasnt working properly I
think you would get a 404 error.

Let me know if this helps,
Ezra



On Dec 22, 1:36 pm, leslie  wrote:
> Mac OS X 10.5.7
> Firefox 3.5
> Eclipse 3.5 Galileo Cocoa
> Java 1.5.0
> GWT 2.0
>
> Hello, I'm catching a StatusCodeException when I try to make an RPC
> call.  The method getStatusCode() is indeed returning 0 which I
> understand means that the server can not be reached.  But I've been
> able to connect to the server at various times in development.  I'm
> usually able to actually but every now and then I see this. I've tried
> restarting the computer, restarting the server, and I've recompiled my
> project. If someone could help me debug why the server can not be
> reached I'd appreciate it.  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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Hyperlink ClickHandler help

2009-12-23 Thread Peter Ondruska
Dear all,

In GWT 2.0 Hyperlink.addClickHandler is deprecated and I should use
FocusWidget.addClickHandler. However no matter how hard I try I cannot
get this working. Would you help me please with an example of how to
add ClickHander to Hyperlink in GWT 2.0.

Thank you,

Peter

--

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




Re: StatusCodeException

2009-12-23 Thread Trevor Skaife
You'll have to start by maybe giving and example of what you are
trying to accomplish along with the full stack trace before anyone can
help you.

On Dec 22, 12:36 pm, leslie  wrote:
> Mac OS X 10.5.7
> Firefox 3.5
> Eclipse 3.5 Galileo Cocoa
> Java 1.5.0
> GWT 2.0
>
> Hello, I'm catching a StatusCodeException when I try to make an RPC
> call.  The method getStatusCode() is indeed returning 0 which I
> understand means that the server can not be reached.  But I've been
> able to connect to the server at various times in development.  I'm
> usually able to actually but every now and then I see this. I've tried
> restarting the computer, restarting the server, and I've recompiled my
> project. If someone could help me debug why the server can not be
> reached I'd appreciate it.  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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: UIBinder and image resources

2009-12-23 Thread Thomas Broyer


On Dec 22, 11:46 pm, ericv  wrote:
> Starting 
> point:http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Us...
>
> My goal here is simply to bind an image, and update it later on if
> necessary. I implemented the following code as a first step, but I
> keep getting "Found widget  in an
> HTML context". I'm unsure as to what that means; does the container
> need to be initialized somehow?

You can only use widgets () as direct children of other
widgets, or descendants of  widgets.

> Code:
>
> public class Sandbox implements EntryPoint {
>         public void onModuleLoad() {
>                 BinderUiTest test = new BinderUiTest();
>                 Document.get().getBody().appendChild(test.getElement());

Where the hell have all of you been seeing this code to add widgets to
the page? Widgets should be children of other widgets, except for two
cases: RootPanel/RootLayoutPanel, and those widgets created by their
wrap() static method.
In your case:

   RootPanel.get().add(test);

> public class BinderUiTest extends UIObject {
>         interface MyUiBinder extends UiBinder {}
>         private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
>
>         @UiField(provided = true)
>         final Resources resources = Resources.INSTANCE;
>
>         public BinderUiTest() {
>                 setElement(uiBinder.createAndBindUi(this));
>         }
>
> }

If you want to have an Image widget as a component of your
BinderUiTest object, you have to turn it into a Composite (probably
using an HTMLPanel widget as the root object).

--

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




Re: Using Gilead with GWT 2.0 ms1

2009-12-23 Thread Trevor Skaife
I'm just glad to see people are able to use my fix for using gilead
with GWT 2.0.0

On Dec 22, 11:08 am, lucamen  wrote:
> Thanks Josh!! That really help me a lot and now everything is working
> properly!
>
> BTW Bruno (the Gilead main developer) wrote 
> herehttp://sourceforge.net/projects/gilead/forums/forum/868076/topic/3484314
> that a new release is coming "very" soon... so just wait and hope in a
> stable version that works with gwt2.0
>
> Thanks again and merry christmas! :-P
>
> On 18 Dic, 22:53, Josh Martin  wrote:
>
>
>
> > What worked for me was to add the files Trevor specified to 'my'
> > project, and not into the original gilead source directories.  You
> > just have to make sure to match the original package directory he
> > specified of: src/com/google/gwt/user/server/rpc in your project
> > directory.  Any project that you create now that uses the adapter4gwt
> > library should include those two files as source files as well.  Your
> > application should compile with those source files in it, as long as
> > you have the adapter4gwt library files included (which you would have
> > to have to use gilead anyway).
>
> > I, too, thought he meant to put them in the original gilead
> > directories and recreate the entire adapter4gwt library, but after re-
> > reading what he suggested, I realized his real suggestion was far
> > easier. (Thanks Trevor!)
>
> > Hope this helps,
> > Josh
>
> > On Dec 18, 4:04 am, lucamen  wrote:
>
> > > Hello, I'm working on a GWT 2.0 project with hibernate integration 
> > > viaGilead. When I try to load data from database (on GWT 1.7 everything
> > > was working properly) I get this error "Parameter 0 of is of an
> > > unknown type 'java.lang.String/2004016611'" and googling I've found
> > > this thread.
> > > I downloaded these two files and put in src/com/google/gwt/user/server/
> > > rpc under mygileadroot directory but nothing changes!
>
> > > To be sure I've updated all my buildpath with the jars I need but the
> > > error still remain.
>
> > > Do I have to ant build the adapter4gwt with these two new files and
> > > then add the new jars I get?
>
> > > I've already tried but ant failed with this error:
>
> > > build:
> > >      [echo] adapter4gwt: 
> > > /Users/lucame/Documents/workspace/Libs/gilead-1.2.3.823/adapter4gwt/build.x
> > >  ml
> > >     [javac] Compiling 6 source files to /Users/lucame/Documents/
> > > workspace/Libs/gilead-1.2.3.823/adapter4gwt/classes
> > >     [javac] /Users/lucame/Documents/workspace/Libs/gilead-1.2.3.823/
> > > adapter4gwt/src/com/google/gwt/user/server/rpc/RPCCopy_GWT20.java:287:
> > > cannot find symbol
> > >     [javac] symbol  : constructor RPCRequest
> > > (java.lang.reflect.Method,java.lang.Object
> > > [],com.google.gwt.user.server.rpc.SerializationPolicy,int)
> > >     [javac] location: class com.google.gwt.user.server.rpc.RPCRequest
> > >     [javac] return new RPCRequest(method, parameterValues,
> > > serializationPolicy, 0);
> > >     [javac]        ^
> > >     [javac] 1 error
>
> > > What should I do to get GWT 2.0 work withGilead?
>
> > > ANY help would be VERY appreciate!!
>
> > > Thanks, Luca.
>
> > > On 10 Dic, 16:35, Trevor Skaife  wrote:
>
> > > > I definitely should have worded that better. You did exactly what I
> > > > wanted you to do, if you would put them in any other package it
> > > > wouldn't work.
>
> > > > On Dec 9, 5:27 pm, "graffle...@gmail.com" 
> > > > wrote:
>
> > > > > Thanks!!  Great work...
>
> > > > > but what do you mean by "Once you get these files in your project just
> > > > > make sure to change the package accordingly."
>
> > > > > all I did was put these files in src/com/google/gwt/user/server/rpc
>
> > > > > should I do anything else?
>
> > > > >   - Bob
>
> > > > > On Oct 18, 10:06 am, tskaife  wrote:
>
> > > > > > Ok, well I found out that my changes to makegileadwork for GWT 2.0
> > > > > > didn't quite work, but I've been able to fix that. I also notice 
> > > > > > that
> > > > > > I put the same two files up above, here are the 2 files to download 
> > > > > > to
> > > > > > getgileadworking with GWT 2.0.
>
> > > > > > RPCCopy.javahttp://trg-commons.googlecode.com/files/RPCCopy.java
>
> > > > > > RPCCopy_GWT20.javahttp://trg-commons.googlecode.com/files/RPCCopy_GWT20.java
>
> > > > > > Once you get these files in your project just make sure to change 
> > > > > > the
> > > > > > package accordingly.
>
> > > > > > On Oct 9, 1:35 pm, tskaife  wrote:
>
> > > > > > > I just updated toGWT 2.0ms1 and noticed that I was getting an 
> > > > > > > error
> > > > > > > that the constructor for RPCRequest doesn't exist (the 
> > > > > > > constructor now
> > > > > > > inclues a int flag parameter).
>
> > > > > > > java.lang.NoSuchMethodError:
> > > > > > > com.google.gwt.user.server.rpc.RPCRequest.(Ljava/lang/reflect/
> > > > > > > Method;[Ljava/lang/Object;Lcom/google/gwt/user/server/rpc/
> > > > > > > SerializationPolicy;)V
>
> > > > > > > I was able to fix the issue by creating a new

Re: GWT Developer Plugin not working IE8

2009-12-23 Thread Ian Bambury
See issue 4358

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

Ian

http://examples.roughian.com


2009/12/23 googelybear 

> It seems that when I select "Run as > Administrator" the plugin gets
> installed into the administrator's app data directory. when I manually
> copy the oophm.dll file to my home directory and issue the suggested
> command (regsrv32.exe ) I got it running. It this a bug
> or a feature? Is there a proper solution for this?
>
> thanks!
>
> On Dec 23, 5:40 am, Ian Bambury  wrote:
> > Have you tried running
> >
> > regsvr32.exe "C:\Users\Ian\AppData\Local\Google\Google Web
> > Toolkit\Developer Plugin\IE\oophm.dll"
> >
> > replacing "Ian" with your user name?
> >
> > Ian
> >
> > http://examples.roughian.com
> >
> > 2009/12/23 googelybear 
> >
> >
> >
> > > works for me in 64bit win 2003 server with 32bit IE8. But only when
> > > logged in as Administrator. When trying to install as as normal user
> > > with "run as" > "Adminsitrator" it gets sucessfully installed but the
> > > page still thinks the plugin is not installed. Any ideas?
> >
> > > On Dec 15, 3:20 pm, Chad  wrote:
> > > > I run Vista 64 bit and I have the debugger plug-in for both FF and
> > > > IE8. I'm not having any problems with it. ForIE, it only works in IE8
> > > > 32 bit, not IE8 64 bit. But it is on a 64 bit OS.
> >
> > > > HTH,
> > > > Chad
> >
> > > > On Dec 15, 3:26 pm, Sekhar Ravinutala  wrote:
> >
> > > > > But you didn't try Vista 64, which is where we're having trouble.
> If
> > > you
> > > > > have access to that OS, could you check?
> >
> > > > > On Tue, Dec 15, 2009 at 1:21 PM, Sorinel C <
> scristescu...@hotmail.com
> > > >wrote:
> >
> > > > > > I've tried on all OS, vista-x86, windows7-x64, xp-x86 ... and
> it's
> > > > > > working fine, better than chrome :)
> >
> > > > > > download it from here:
> >
> > >http://ui-programming.blogspot.com/2009/12/update-your-application-to.
> ..
> >
> > > > > > and have fun!
> >
> > > > > > Cheers.
> >
> > > > > > --
> >
> > > > > > You received this message because you are subscribed to the
> Google
> > > Groups
> > > > > > "Google Web Toolkit" group.
> > > > > > To post to this group, send email to
> > > google-web-tool...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > google-web-toolkit+unsubscr...@googlegroups.com
>  > > > cr...@googlegroups.com>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > > > > --
> > > > > AllureFX LLChttp://www.allurefx.com-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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.- 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: GWT Developer Plugin not working IE8

2009-12-23 Thread googelybear
It seems that when I select "Run as > Administrator" the plugin gets
installed into the administrator's app data directory. when I manually
copy the oophm.dll file to my home directory and issue the suggested
command (regsrv32.exe ) I got it running. It this a bug
or a feature? Is there a proper solution for this?

thanks!

On Dec 23, 5:40 am, Ian Bambury  wrote:
> Have you tried running
>
> regsvr32.exe "C:\Users\Ian\AppData\Local\Google\Google Web
> Toolkit\Developer Plugin\IE\oophm.dll"
>
> replacing "Ian" with your user name?
>
> Ian
>
> http://examples.roughian.com
>
> 2009/12/23 googelybear 
>
>
>
> > works for me in 64bit win 2003 server with 32bit IE8. But only when
> > logged in as Administrator. When trying to install as as normal user
> > with "run as" > "Adminsitrator" it gets sucessfully installed but the
> > page still thinks the plugin is not installed. Any ideas?
>
> > On Dec 15, 3:20 pm, Chad  wrote:
> > > I run Vista 64 bit and I have the debugger plug-in for both FF and
> > > IE8. I'm not having any problems with it. ForIE, it only works in IE8
> > > 32 bit, not IE8 64 bit. But it is on a 64 bit OS.
>
> > > HTH,
> > > Chad
>
> > > On Dec 15, 3:26 pm, Sekhar Ravinutala  wrote:
>
> > > > But you didn't try Vista 64, which is where we're having trouble. If
> > you
> > > > have access to that OS, could you check?
>
> > > > On Tue, Dec 15, 2009 at 1:21 PM, Sorinel C  > >wrote:
>
> > > > > I've tried on all OS, vista-x86, windows7-x64, xp-x86 ... and it's
> > > > > working fine, better than chrome :)
>
> > > > > download it from here:
>
> >http://ui-programming.blogspot.com/2009/12/update-your-application-to...
>
> > > > > and have fun!
>
> > > > > Cheers.
>
> > > > > --
>
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > > "Google Web Toolkit" group.
> > > > > To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > AllureFX LLChttp://www.allurefx.com-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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.- 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Can java client use GWT RPC?

2009-12-23 Thread ailinykh
Thank you!
This is what I'm going to do. But I see one problem here. I'd like to
use Google's authentication.
As far as I understand it is HTTP based. I don't see any way how to
use it outside browser.
Any ideas?

Thank you,
  Andrey

On Dec 15, 10:45 am, Isaac Truett  wrote:
> Hello Andrey,
>
> No, there isn't a simple way to use GWT RPC outside of the browser.
>
> Your best option is to write your server logic independent of any
> particular protocol. Then you can write multiple protocol
> implementations such as GWT RPC, JSON, plain HTTP, or even direct
> sockets, that all share the same business logic.
>
> - Isaac
>
> On Tue, Dec 15, 2009 at 9:44 AM,ailinykh wrote:
> > Hello, everybody!
> > I have a simple GWT application. Right now Web browser is the only
> > client. Also I want to create pure java client (android based). Is
> > there a simple way to use GWT RPC from java client? If not, what are
> > my options?
>
> > Thank you,
> >  Andrey
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: How to use UIBinder to create customized tags

2009-12-23 Thread Thomas Broyer


On Dec 22, 5:28 am, Rick  wrote:
> Thanks Thomas
>
> Widgets are now adding by implementing HasWidgets interface.
>
> But I need to do a little more. As there are tags in DockLayoutPanel
> -- , ,  in the same way, I want to create my own
> customized tags like , etc so that I can arrange my
> layout accordingly. Can it be possible. If it is, kindly let me know
> as it will be a great help for me to design my UI with more
> flexibility,

This is planned, but not yet available (there's a TODO in the code),
unless of course you patch GWT.

--

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




Re: GWT Developer Plugin not working IE8

2009-12-23 Thread Ian Bambury
Have you tried running

regsvr32.exe "C:\Users\Ian\AppData\Local\Google\Google Web
Toolkit\Developer Plugin\IE\oophm.dll"


replacing "Ian" with your user name?

Ian

http://examples.roughian.com


2009/12/23 googelybear 

> works for me in 64bit win 2003 server with 32bit IE8. But only when
> logged in as Administrator. When trying to install as as normal user
> with "run as" > "Adminsitrator" it gets sucessfully installed but the
> page still thinks the plugin is not installed. Any ideas?
>
> On Dec 15, 3:20 pm, Chad  wrote:
> > I run Vista 64 bit and I have the debugger plug-in for both FF and
> > IE8. I'm not having any problems with it. ForIE, it only works in IE8
> > 32 bit, not IE8 64 bit. But it is on a 64 bit OS.
> >
> > HTH,
> > Chad
> >
> > On Dec 15, 3:26 pm, Sekhar Ravinutala  wrote:
> >
> >
> >
> > > But you didn't try Vista 64, which is where we're having trouble. If
> you
> > > have access to that OS, could you check?
> >
> > > On Tue, Dec 15, 2009 at 1:21 PM, Sorinel C  >wrote:
> >
> > > > I've tried on all OS, vista-x86, windows7-x64, xp-x86 ... and it's
> > > > working fine, better than chrome :)
> >
> > > > download it from here:
> > > >
> http://ui-programming.blogspot.com/2009/12/update-your-application-to...
> >
> > > > and have fun!
> >
> > > > Cheers.
> >
> > > > --
> >
> > > > You received this message because you are subscribed to the Google
> Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > > --
> > > AllureFX LLChttp://www.allurefx.com- 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




My Project - seemap.ru

2009-12-23 Thread renovatio
Hi. Here is my project. seemap.ru

--

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




Re: JAXB in model classes also used by GWT RPC

2009-12-23 Thread Eric
Thanks for the suggestion.

Ugh.  That feels pretty hacky, but may just be the best option.

Thanks again,
Eric

On Dec 23, 1:31 am, Pauli  wrote:
> Hi,
>
> I had the same problem a while ago and asked exactly the same
> question. Why don't jaxb annotations work? I remember reading
> somewhere that if things won't break if gwt cannot find annotation
> source files, but I'm not sure if I really read this or not.  Well, I
> didn't get an answer to that question, but I did get a suggestion for
> how to make things work for me. I took the jaxb source code and put
> the annotation files to my project so gwt can compile them.
>
> Pauli
>
> On 22 joulu, 22:59, Eric  wrote:
>
> > I have about 20 "model" classes that I use with GWT RPC and also
> > persist into a database using JPA.  This is all working fine.  On the
> > server side I need to do some XML processing and would like to use
> > some JAXB annotations on these model classes.  However it complains
> > with:
>
> > 15:26:47.005 [ERROR] [gwtui] Line 18: The import javax.xml.bind cannot
> > be resolved
>
> > Is there any way of getting this to work?  Why does it like my JPA
> > annotations just fine but reject the JAXB ones?
>
> > How have other people structured their projects that use GWT,
> > databases and webservices?
>
> > Thanks,
> > Eric

--

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




Re: GWT 2.0 serialization policy file

2009-12-23 Thread Rodrigue Lagoue
It's really frustrating. since the error tells: "Type '*java.lang.Boolean*'
was not included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded. For security
purposes, this type will not be serialized.: instance = true"

When i try to make the following generic rpc call

@RemoteServiceRelativePath("testService")
public interface TestService extends RemoteService {

public , V extends Serializable, D extends
Serializable> T execute(
Action action);
}

here is the implementation:

@SuppressWarnings("serial")
public class TestServiceImpl extends RemoteServiceServlet implements
TestService {

@SuppressWarnings("unchecked")
@Override
public , V extends Serializable, D extends
Serializable> T execute(
Action action) {
System.out.println("action.data: " + action.toString());
DefaultResponse result = new DefaultResponse();
result.value = Boolean.TRUE;
return (T) result;
}

}

Thanks

--

On Wed, Dec 23, 2009 at 2:11 PM, Rodrigue Lagoue wrote:

> hi!
>
> No my classes have a no arguments constructors. There are just defined in
> another project. The GWT project uses it from a jar file.
>
> Thanks
>
>
> On Wed, Dec 23, 2009 at 12:34 PM, Dan  wrote:
>
>> Is this the problem with the classes you want to serialize not having
>> a no arguments constructor?
>>
>> On Nov 21, 11:56 pm, "Oleg K."  wrote:
>> > Hi all.
>> >
>> > I have the following problem.
>> >
>> > My project tries to use GWT RPC.
>> >
>> > It has one jar in dependency libs which contain several model classes.
>> > All of that classes implements Serializable and IsSerializable
>> > interfaces (one of that classes is CHAttrGroup). That jar also
>> > includes .java files with source code and Module.gwt.xml file so that
>> > model classes can be used in main GWT application by including
>> > .
>> >
>> > GWT compiler (2.0-rc1) doesn't write error messages when building
>> > application and all that model classes (e.g. CHAttrGroup) work
>> > correctly in client-side code (like other gwt client classes). But
>> > when I try to send objects of that class from server to client I get
>> > following exception:
>> >
>> > 2009-11-22 02:34:49.688:tasktrackgwt:WARN:  Exception while
>> > dispatching incoming RPC call
>> > com.google.gwt.user.client.rpc.SerializationException:
>> > java.lang.reflect.InvocationTargetException
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
>> zeWithCustomSerializer
>> > (ServerSerializationStreamWriter.java:760)
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
>> zeImpl
>> > (ServerSerializationStreamWriter.java:723)
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
>> ze
>> > (ServerSerializationStreamWriter.java:612)
>> > at
>> >
>> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write
>> Object
>> > (AbstractSerializationStreamWriter.java:129)
>> > at
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
>> > $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
>> zeValue
>> > (ServerSerializationStreamWriter.java:534)
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
>> zeClass
>> > (ServerSerializationStreamWriter.java:700)
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
>> zeImpl
>> > (ServerSerializationStreamWriter.java:730)
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
>> ze
>> > (ServerSerializationStreamWriter.java:612)
>> > at
>> >
>> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write
>> Object
>> > (AbstractSerializationStreamWriter.java:129)
>> > at
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
>> > $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
>> > at
>> >
>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
>> zeValue
>> > (ServerSerializationStreamWriter.java:534)
>> > at
>> com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:607)
>> > at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
>> > (RPC.java:465)
>> > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
>> > (RPC.java:562)
>> > at
>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
>> > (RemoteServiceServlet.java:188)
>> > at
>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
>> > (RemoteServiceServlet.java:224)
>> > at
>> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
>> > (AbstractRemoteServiceServlet.java:62)
>> > at javax.servlet.http.HttpServlet.s

Re: GWT 2.0 serialization policy file

2009-12-23 Thread Rodrigue Lagoue
hi!

No my classes have a no arguments constructors. There are just defined in
another project. The GWT project uses it from a jar file.

Thanks

On Wed, Dec 23, 2009 at 12:34 PM, Dan  wrote:

> Is this the problem with the classes you want to serialize not having
> a no arguments constructor?
>
> On Nov 21, 11:56 pm, "Oleg K."  wrote:
> > Hi all.
> >
> > I have the following problem.
> >
> > My project tries to use GWT RPC.
> >
> > It has one jar in dependency libs which contain several model classes.
> > All of that classes implements Serializable and IsSerializable
> > interfaces (one of that classes is CHAttrGroup). That jar also
> > includes .java files with source code and Module.gwt.xml file so that
> > model classes can be used in main GWT application by including
> > .
> >
> > GWT compiler (2.0-rc1) doesn't write error messages when building
> > application and all that model classes (e.g. CHAttrGroup) work
> > correctly in client-side code (like other gwt client classes). But
> > when I try to send objects of that class from server to client I get
> > following exception:
> >
> > 2009-11-22 02:34:49.688:tasktrackgwt:WARN:  Exception while
> > dispatching incoming RPC call
> > com.google.gwt.user.client.rpc.SerializationException:
> > java.lang.reflect.InvocationTargetException
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
> zeWithCustomSerializer
> > (ServerSerializationStreamWriter.java:760)
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
> zeImpl
> > (ServerSerializationStreamWriter.java:723)
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
> ze
> > (ServerSerializationStreamWriter.java:612)
> > at
> >
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write
> Object
> > (AbstractSerializationStreamWriter.java:129)
> > at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> > $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
> zeValue
> > (ServerSerializationStreamWriter.java:534)
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
> zeClass
> > (ServerSerializationStreamWriter.java:700)
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
> zeImpl
> > (ServerSerializationStreamWriter.java:730)
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
> ze
> > (ServerSerializationStreamWriter.java:612)
> > at
> >
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write
> Object
> > (AbstractSerializationStreamWriter.java:129)
> > at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> > $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
> > at
> >
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali
> zeValue
> > (ServerSerializationStreamWriter.java:534)
> > at
> com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:607)
> > at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
> > (RPC.java:465)
> > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> > (RPC.java:562)
> > at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> > (RemoteServiceServlet.java:188)
> > at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
> > (RemoteServiceServlet.java:224)
> > at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
> > (AbstractRemoteServiceServlet.java:62)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> > at com.google.inject.servlet.ServletDefinition.doService
> > (ServletDefinition.java:216)
> > at com.google.inject.servlet.ServletDefinition.service
> > (ServletDefinition.java:141)
> > at com.google.inject.servlet.ManagedServletPipeline.service
> > (ManagedServletPipeline.java:93)
> > at com.google.inject.servlet.FilterChainInvocation.doFilter
> > (FilterChainInvocation.java:63)
> > at com.google.inject.servlet.ManagedFilterPipeline.dispatch
> > (ManagedFilterPipeline.java:122)
> > at
> com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
> > 110)
> > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1157)
> > at org.mortbay.jetty.servlet.ServletHandler.handle
> > (ServletHandler.java:388)
> > at org.mortbay.jetty.security.SecurityHandler.handle
> > (SecurityHandler.java:216)
> > at org.mortbay.jetty.servlet.SessionHandler.handle
> > (SessionHandler.java:182)
> > at org.mortbay.jetty.handler.ContextHand

Joseph Favara/HQ/Corp/OAI is out of the office.

2009-12-23 Thread Joseph . Favara

I will be out of the office starting  12/23/2009 and will not return until
12/30/2009.

I will respond to your message when I return. If this is urgnet please
contact Narayanan Pillai at 105986

--

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




Re: Getting file size in client side

2009-12-23 Thread Lothar Kimmeringer
Manuel Carrasco Moñino schrieb:
> NO, you have to send it to the server where you can read the
> content-length in server side an close the connection early.
> Neither you can cancel the upload process once the form has been
> submitted, only the server can do.
> You can take a look to the gwtupload library which does it.

JFTR: Just checking the content-length doesn't work in all cases.
If the client decides to send the request with chunked encoding
you don't have that information at that point of time. In that
case you have to read in the data and close the moment the limit
has been reached.


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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Question on Code Generation inconjunction with JS-Libraries to optimize size

2009-12-23 Thread Tom Schindl
Hi Isaac,

Looks like you read my mind because this exactly what I've started
experimenting with.

My code now looks like this:

public class JSNIJs {
@Target(ElementType.TYPE)
public @interface JsResource {
String[] resources();
}
}

public class AWrapper {
@JsResource(resources = { "b.js", "a.js" })
private class Js extends JSNIJs {

}

public AWrapper() {
GWT.create(Js.class);
}
}

public class JSNIGenerator extends Generator {

@Override
public String generate(TreeLogger logger, GeneratorContext context,
String typeName) throws UnableToCompleteException {
TypeOracle typeOracle = context.getTypeOracle();
try {
JClassType userType = typeOracle.getType(typeName);
JSNIJs.JsResource resource = 
userType.getAnnotation(JSNIJs.JsResource.class);
if( resource == null ) {
logger.log(Type.ERROR, "JSNIJs needs to be 
annotated with @JsResource");
throw new UnableToCompleteException();
}

String[] resources = resource.resources();
if( resources.length == 0 ) {
logger.log(Type.ERROR, "@JsResource needs to 
hold at least one value");
}

for( String r : resources ) {
OutputStream outStream = 
context.tryCreateResource(logger, "test/js/" + r);
if( outStream != null ) {
outStream.write("--- Used 
---".getBytes());
context.commitResource(logger, 
outStream);  
}
}
} catch (NotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

return "testgen.client.JSNIJs";
}

}

This now writes an JS-Entry for every JS-File found. Ideally I could
write everything to one big fat-File but I couldn't find a way to
append something to a file until now in the generator API.

Thanks for your help.

Tom

On Wed, Dec 23, 2009 at 4:58 AM, Isaac Truett  wrote:
> Tom,
>
>> I thought about using the GWT Code Generation to get informed whenever
>> wrapper classes are used but as far as I understood this code
>> generation only jumps in when I use GWT.create() but this means my
>> Library users need to use GWT.create(AWrapper.class) instead of "new
>> AWrapper()" which is not very natural.
>
> If I understand your issue correctly, I think you could make it work
> by having your AWrapper constructor call
> GWT.create(AWrapperImpl.class) and delegate all of AWrapper's methods
> to the AWrapperImpl. That brings generators into the mix without
> creating a burdensome API.
>
> Make sense?
>
> - Isaac
>
>
> On Tue, Dec 22, 2009 at 3:17 PM, Tom  wrote:
>> Hi,
>>
>> I've been banging my head against something people here might probably
>> be able to help me. I've written a wrapper for a extensive JavaScript
>> Library which itself has a toolchain to optimize JS-Script code by
>> analyzing the used JS-API.
>>
>> As a small example say the js-library has:
>> * a.js
>> * b.js
>> * c.js
>>
>> And my wrappers look like this:
>> ---8<---
>> AWrapper {
>>   // ...
>> }
>>
>> BWrapper {
>>   // ...
>> }
>>
>> CWrapper {
>>   // ...
>> }
>> ---8<---
>>
>> Now my problem is that if I want to use it with GWT I need to findout
>> which Wrapper-Classes the GWT application uses, spit out informations
>> I can feed into the external toolchain to create an optimized JS-
>> Library-Version.
>>
>> I thought about using the GWT Code Generation to get informed whenever
>> wrapper classes are used but as far as I understood this code
>> generation only jumps in when I use GWT.create() but this means my
>> Library users need to use GWT.create(AWrapper.class) instead of "new
>> AWrapper()" which is not very natural.
>>
>> My ideal thing would be to have annotate my Java-Wrappers with
>> something like this:
>>
>> ---8<---
>> @JSResource("a.js")
>> AWrapper {
>>   // ...
>> }
>>
>> @JSResource("b.js")
>> BWrapper {
>>   // ...
>> }
>>
>> @JSResource("c.js")
>> CWrapper {
>>   // ...
>> }
>> ---8<---
>>
>> And somehow plug myself into the GWT-Compiler toolchain and get
>> informed when ever such a class is visited similar to what would
>> happen when I use GWT.create(). Does anybody have an idea or a
>> document, example source I can rea

Creating child node with child nodes

2009-12-23 Thread Komal
Hi,

I am trying to insert new child nodes
which contain n no of child nodes in them
eg:


   
   This is the code 
   



adding new child node would be like this
eg:

   
   This is the code 
   

   This is the code for line 2
   This is the new code for line 2
   This is another code for line 2



but when I try to create a new line node
it is getting created as

hence the children  tags are not getting appended

heres the code:

for (int i = 0; i < files.getLength(); i++) {
Element file = (Element) files.item(i);
if (file.getAttribute("name").equals("newfile")) {
Element linenode = customerDom.createElement("line");
linenode.setAttribute("no", "600");
Element codenode = customerDom.createElement("code");
codenode.setAttribute("user", "a");
codenode.setNodeValue("This is the code for line 2");
linenode.appendChild(codenode);
Element codenode2 = customerDom.createElement
("code");
codenode2.setAttribute("user", "b");
codenode2.setNodeValue("This is the new code for line 
2");
linenode.appendChild(codenode2);
file.appendChild(linenode);
}
}

Please let me know where I am wrong

Thanks,
Komal



--

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




Re: How to use UIBinder to create customized tags

2009-12-23 Thread Rick
Any idea friends???

I request from GWT members to reply this post please.

Regards

Rick

On Dec 22, 9:28 am, Rick  wrote:
> Thanks Thomas
>
> Widgets are now adding by implementing HasWidgets interface.
>
> But I need to do a little more. As there are tags in DockLayoutPanel
> -- , ,  in the same way, I want to create my own
> customized tags like , etc so that I can arrange my
> layout accordingly. Can it be possible. If it is, kindly let me know
> as it will be a great help for me to design my UI with more
> flexibility,
>
> On Dec 21, 7:44 pm, Thomas Broyer  wrote:
>
> > On Dec 21, 12:13 pm, Rick  wrote:
>
> > > Hi all
>
> > > As GWT is adding widgets in Horizontal panel, in the same way I want
> > > to get element in my composite widgets so that I can manage their
> > > layout in onAttach means I want to get label and html in RComposite
> > > widget's on attach.
>
> > > ui.xml
> > >  > >         xmlns:g='urn:import:com.google.gwt.user.client.ui'
> > >         xmlns:my='urn:import:gwt.testui.client'>
>
> > >         
>
> > >         My Widgets
> > >         in a row
>
> > >         
>
> > > 
> > > -->RCompositeWidget
> > > public class RCompositeWidget extends Composite {
> > >         public RCompositeWidget() {
> > >                 HorizontalPanel hp = new HorizontalPanel();
> > >                 initWidget(hp);
> > >         }
>
> > > }
>
> > > But I am getting following exception:
> > >         In com.google.gwt.uibinder.rebind.xmlelemen...@870aad, found
> > > unexpected child ""
>
> > RCompositeWidget has to implement HasWidgets if it's meant to be a
> > widget container, otherwise how wouldUiBinderadd the widgets to it?
> > Actually,UiBinderdoes not know that RCompositeWidget internally uses
> > an HorizontalPanel.

--

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




Re: Getting file size in client side

2009-12-23 Thread Manuel Carrasco Moñino
NO, you have to send it to the server where you can read the
content-length in server side an close the connection early.
Neither you can cancel the upload process once the form has been
submitted, only the server can do.
You can take a look to the gwtupload library which does it.

Regards
Manolo

On Wed, Dec 9, 2009 at 5:42 AM, subbu  wrote:
>
> Hi all,
>         I am using a fileupload component in my apps.like
> final FileUpload fileUpload = new FileUpload();
>
> uploadFormPanel.addButton(new Button("upload", new
> ButtonListenerAdapter() {
>                        public void onClick(Button button, EventObject e) {
>
>                                uploadFormPanel.getForm().submit(url, null,
> Connection.POST,"Uploading...", false);
>
>
>                        }
>                }));
>
> Is it possible to get the file size in my client side so that i can
> restrict the upload depends on the file size.
>
> Thanks and Regards,
>
>                       Subash K S
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--

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




Re: GWT 2.0 serialization policy file

2009-12-23 Thread Dan
Is this the problem with the classes you want to serialize not having
a no arguments constructor?

On Nov 21, 11:56 pm, "Oleg K."  wrote:
> Hi all.
>
> I have the following problem.
>
> My project tries to use GWT RPC.
>
> It has one jar in dependency libs which contain several model classes.
> All of that classes implements Serializable and IsSerializable
> interfaces (one of that classes is CHAttrGroup). That jar also
> includes .java files with source code and Module.gwt.xml file so that
> model classes can be used in main GWT application by including
> .
>
> GWT compiler (2.0-rc1) doesn't write error messages when building
> application and all that model classes (e.g. CHAttrGroup) work
> correctly in client-side code (like other gwt client classes). But
> when I try to send objects of that class from server to client I get
> following exception:
>
> 2009-11-22 02:34:49.688:tasktrackgwt:WARN:  Exception while
> dispatching incoming RPC call
> com.google.gwt.user.client.rpc.SerializationException:
> java.lang.reflect.InvocationTargetException
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeWithCustomSerializer
> (ServerSerializationStreamWriter.java:760)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeImpl
> (ServerSerializationStreamWriter.java:723)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze
> (ServerSerializationStreamWriter.java:612)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
> Object
> (AbstractSerializationStreamWriter.java:129)
>         at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeValue
> (ServerSerializationStreamWriter.java:534)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeClass
> (ServerSerializationStreamWriter.java:700)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeImpl
> (ServerSerializationStreamWriter.java:730)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze
> (ServerSerializationStreamWriter.java:612)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
> Object
> (AbstractSerializationStreamWriter.java:129)
>         at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeValue
> (ServerSerializationStreamWriter.java:534)
>         at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:607)
>         at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
> (RPC.java:465)
>         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:562)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:188)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
> (RemoteServiceServlet.java:224)
>         at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
> (AbstractRemoteServiceServlet.java:62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at com.google.inject.servlet.ServletDefinition.doService
> (ServletDefinition.java:216)
>         at com.google.inject.servlet.ServletDefinition.service
> (ServletDefinition.java:141)
>         at com.google.inject.servlet.ManagedServletPipeline.service
> (ManagedServletPipeline.java:93)
>         at com.google.inject.servlet.FilterChainInvocation.doFilter
> (FilterChainInvocation.java:63)
>         at com.google.inject.servlet.ManagedFilterPipeline.dispatch
> (ManagedFilterPipeline.java:122)
>         at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
> 110)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1157)
>         at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:388)
>         at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>         at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:182)
>         at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:765)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 418)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle
> (ContextHandlerCollection.java:230)
>         at org.mortbay.jetty.handler.HandlerCollection.handle
> (HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java

Re: GWT Developer Plugin not working IE8

2009-12-23 Thread googelybear
works for me in 64bit win 2003 server with 32bit IE8. But only when
logged in as Administrator. When trying to install as as normal user
with "run as" > "Adminsitrator" it gets sucessfully installed but the
page still thinks the plugin is not installed. Any ideas?

On Dec 15, 3:20 pm, Chad  wrote:
> I run Vista 64 bit and I have the debugger plug-in for both FF and
> IE8. I'm not having any problems with it. ForIE, it only works in IE8
> 32 bit, not IE8 64 bit. But it is on a 64 bit OS.
>
> HTH,
> Chad
>
> On Dec 15, 3:26 pm, Sekhar Ravinutala  wrote:
>
>
>
> > But you didn't try Vista 64, which is where we're having trouble. If you
> > have access to that OS, could you check?
>
> > On Tue, Dec 15, 2009 at 1:21 PM, Sorinel C wrote:
>
> > > I've tried on all OS, vista-x86, windows7-x64, xp-x86 ... and it's
> > > working fine, better than chrome :)
>
> > > download it from here:
> > >http://ui-programming.blogspot.com/2009/12/update-your-application-to...
>
> > > and have fun!
>
> > > Cheers.
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > AllureFX LLChttp://www.allurefx.com- 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT 2.0 serialization policy file

2009-12-23 Thread rlag...@googlemail.com
Hi Oleg,

i'm facing the same problem for 5 days now... Can you tell me please
how you  solved it?

Many thanks in advance

Rodrigue

On Nov 22, 12:56 am, "Oleg K."  wrote:
> Hi all.
>
> I have the following problem.
>
> My project tries to use GWT RPC.
>
> It has one jar in dependency libs which contain several model classes.
> All of that classes implements Serializable and IsSerializable
> interfaces (one of that classes is CHAttrGroup). That jar also
> includes .java files with source code and Module.gwt.xml file so that
> model classes can be used in main GWT application by including
> .
>
> GWT compiler (2.0-rc1) doesn't write error messages when building
> application and all that model classes (e.g. CHAttrGroup) work
> correctly in client-side code (like other gwt client classes). But
> when I try to send objects of that class from server to client I get
> following exception:
>
> 2009-11-22 02:34:49.688:tasktrackgwt:WARN:  Exception while
> dispatching incoming RPC call
> com.google.gwt.user.client.rpc.SerializationException:
> java.lang.reflect.InvocationTargetException
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeWithCustomSerializer
> (ServerSerializationStreamWriter.java:760)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeImpl
> (ServerSerializationStreamWriter.java:723)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze
> (ServerSerializationStreamWriter.java:612)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
> Object
> (AbstractSerializationStreamWriter.java:129)
>         at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeValue
> (ServerSerializationStreamWriter.java:534)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeClass
> (ServerSerializationStreamWriter.java:700)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeImpl
> (ServerSerializationStreamWriter.java:730)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze
> (ServerSerializationStreamWriter.java:612)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
> Object
> (AbstractSerializationStreamWriter.java:129)
>         at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> $ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
> zeValue
> (ServerSerializationStreamWriter.java:534)
>         at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:607)
>         at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
> (RPC.java:465)
>         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:562)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:188)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
> (RemoteServiceServlet.java:224)
>         at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
> (AbstractRemoteServiceServlet.java:62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at com.google.inject.servlet.ServletDefinition.doService
> (ServletDefinition.java:216)
>         at com.google.inject.servlet.ServletDefinition.service
> (ServletDefinition.java:141)
>         at com.google.inject.servlet.ManagedServletPipeline.service
> (ManagedServletPipeline.java:93)
>         at com.google.inject.servlet.FilterChainInvocation.doFilter
> (FilterChainInvocation.java:63)
>         at com.google.inject.servlet.ManagedFilterPipeline.dispatch
> (ManagedFilterPipeline.java:122)
>         at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
> 110)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1157)
>         at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:388)
>         at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>         at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:182)
>         at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:765)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 418)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle
> (ContextHandlerCollection.java:230)
>         at org.mortbay.jetty.handler.HandlerCollection.handle
> (HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWr

Re: Problems reading the content of a text file.

2009-12-23 Thread Juan M.M.M.
Thank you very much. You got the answer!

>> "../movies.txt"

Happy Christmas!

On 22 dic, 21:14, Sripathi Krishnan 
wrote:
> The URL you are trying to access is wrong...
>
> Assuming you module is named hangman, this line
>                final RequestBuilder requestBuilder = new RequestBuilder(
> RequestBuilder.POST, "movies.txt" );
>
> makes  a request tohttp://myserver.com/mywar/hangman/movies.txt, whereas
> you want it to behttp://myserver.com/mywar/movies.txt
>
> Try using "../movies.txt", or use GWT.getHostPageBaseURL() ..
>
> --Sri
>
> 2009/12/22 Juan M.M.M. 
>
> > Hi!
>
> > I'm doing an example that I found ina book about GWT. It's the typical
> > example of the hangman. I'm using Eclipse and GWT 2.0. This is my
> > code:
>
> > public class AhorGwt implements EntryPoint {
>
> >        private FlowPanel letters = new FlowPanel();
> >        private Label wordLabel = new Label();
> >        private Image image = new Image();
>
> >        private final int MAX_GUESSES = 6;
> >        private int misses;
> >        private String[] words;
> >        private String word;
> >        private char[] visibleWord;
>
> >       �...@override
> >        public void onModuleLoad() {
> >                //create interface
> >                RootPanel ahorcado = RootPanel.get("ahorcado");
> >                ahorcado.add(letters);
> >                ahorcado.add(image);
> >                ahorcado.add(wordLabel);
>
> >                //load words
> >                final RequestBuilder requestBuilder = new RequestBuilder
> > ( RequestBuilder.POST, "movies.txt" );
> >                try {
> >                         requestBuilder.sendRequest( null, new
> > RequestCallback(){
>
> >                                public void onError(Request request,
> > Throwable exception) {
> >                                        GWT.log( "failed getting movie
> > list", exception );
> >                                }
>
> >                                public void onResponseReceived(Request
> > request, Response response)
> > {
> >                                        words =
> > response.getText().split("\n");
> >                                        GWT.log(words[2], null);
> >                                        startGame();
> >                                }} );
> >                } catch (RequestException e) {
> >                        GWT.log( "failed getting movie list", e );
> >                }
> >                wordLabel.setStyleName("word");
> >        }
> >        // ...
> > }
>
> > My movies.txt file is under /war/ file next to my index.html. Ok, once
> > I get the supossed text file into 'words' variable I do a 'GWT.log
> > (words[2], null);' in the console developent mode of eclipse I get
> > this "HTTP Status 404 - Status report". As you can see, the file
> > movies.txt hasn't been loaded. Instead of this, the program has red a
> > kind of default text/html file. I don't know if the problem is in the
> > location of the file or If I'm using a wrong method to read files on
> > the client side.
>
> > Thanks,
>
> > Juanma
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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