Customizing DisclosurePanel

2011-10-26 Thread Marwa
Hello all,
I am trying to customize DisclosurePanel in a way that gives me
ability to modify title (header text) on the
widget itself. I just need to make the DisclosurePanel editable when
it opens. When it closes, the header
text should be showing normally (read only, not editable).

I thought about using g:customHeader and set a TextBox inside it to
be able to edit. When the panel
opens, I set the TextBox visibility to true and when it closes, I set
the visibility to false.

This turned out to be wrong, because I should set the visibility of
the customHeader, not the TextBox which I don't know how it can be
done.

Can anyone help me on this ? Using custom header is correct or I
should use something else ?

Please, advise.

Thanks,
Marwa

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



Can't install GPE

2011-10-26 Thread dgaj
Hi,

I've not been able to install the Google Plugin for Eclipse I get the
following error message:

Missing requirement: Google Plugin for Eclipse 3.7
2.4.2.relr37v201110112027
(com.google.gdt.eclipse.suite.e37.feature.feature.group
2.4.2.relr37v201110112027) requires 'org.eclipse.wst.css.core 0.0.0'
but it could not be found

I've tried this on 3.7, 3.6 both 32bit and 64 bit versions on both
Unbuntu and Windows. All give the same error. :-(

Anyone have a suggestion?

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



strange JSNI Exception Something other than a Java object was returned from JSNI method ...: JS value of type boolean, expected java.lang.Object

2011-10-26 Thread tanteanni
our gwt produces every few seconds a strange exception:
java.lang.IllegalArgumentException: Something other than a Java object was 
returned from JSNI method

i googled around and find that this could be related to autoboxing (in this 
case probably boolean-Boolean: JS value of type boolean, expected 
java.lang.Object). The question is: is autoboxing allowed in client code? 
is this a limitation of gwt? i never read about such an limitation and most 
of google results about that are outdated.
Ok now i found this: 
http://googlewebtoolkit.blogspot.com/2008/08/gwt-15-now-available.html 
-Simplify your code with for-each loops, autoboxing, static imports, and 
enum types.

So what is the problem here or how to debug this?

thx in advance

Full stack trace:

java.lang.IllegalArgumentException: Something other than a Java object was 
returned from JSNI method 
'@com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)':
 
JS value of type boolean, expected java.lang.Object
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271)
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:214)
at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:167)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:619)
Wed Oct 26 07:04:23 CEST 2011 
SEVERE: class java.lang.IllegalArgumentException null
com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271)
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
com.google.gwt.core.client.impl.Impl.apply(Impl.java)
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
java.lang.Thread.run(Thread.java:619)

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



Re: How to get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread tanteanni
i have one problem with this solution: testability 
since i generate those links in an activity i want test it without 
GwtTestCase. But using my AppPlaceHistoryMapper smells like the need for 
GWTTestCase?!

i think i will refactor my code and give the place a string constant 
(public or with getter) and use this as prefix - good idea?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/1Q6hkGJQ5VMJ.
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.



Popup windows printing

2011-10-26 Thread Mike Dee
I have an app that creates reports, which are basically HTML.  The
reports need to be printed and that is what I'm trying to figure out.

I'm porting an older app - that is more of traditional web app.
Reports are displayed in a page - with a UI wrapped around them.  When
a user wants to print a report, he clicks a print link, which pops
up a window with a printer friendly version (no UI elements).  He can
then selects the browser's print command.  Works nicely.

I'm trying to figure out how to do that in GWT.  I can display a
report.  Printing doesn't work well, because it prints all the UI
stuff too.

I've looked into separate popup windows.  Most of the messages here
recommend against doing it.  Instead they suggest using a Dialog box.
I've tried it and created a Dialog with simply an HTMLPanel.  However,
selecting File-Print (in the browser) prints the entire page (the
entire window).

Any suggestions on a way to do this?

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



Re: How to get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread Jens
Oh yes I think you will need a GWTTestCase as the mapper is created with 
GWT.create(). I did not had that in mind because I have implemented 
PlaceHistoryMapper myself (nicer url scheme) so there is no need for 
GWT.create().


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



Re: Nested Editor creation question

2011-10-26 Thread opn
Thanks for your answers!

I found my mistake.

My 

initWidget(uiBinder.createAndBindUi(this));

came too late in the constructor, after

editorDriver = GWT.create(Driver.class);
editorDriver.initialize(requestFactory, userEditor);

The editor was not initialized at that point and so i got the error.
Stupid mistake. Now works without provided=true (I initialized the self 
provided editor earlier, so the error didnt occur then).


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



Re: Editor not flush values of subeditors

2011-10-26 Thread Thomas Broyer


On Tuesday, October 25, 2011 10:33:55 PM UTC+2, Cristian Rinaldi wrote:

 Thomas, thanks for the fast responce. I will see if this is causing the 
 error.
  
 AddressWidget implements AddressView and Editor for AddressProxy, you say 
 that the AddressView must be extend Editor?


I'm saying that the type of the address field in type TerceroEditor does 
not implement Editor (or IsEditor), so the Editor framework does not treat 
it as an editor. You'll either have to change it to AddressWidget, or make 
AddressView extend Editor.

Now, one design question. 

 I love MVP, this pattern is very powerfull but, with Activities and Place 
 some thing are dificult.

 Activities are for when you need navigation, but if want each view has a 
 Presenter, I thought the following:
   
One interface Presenter for each View, where View delegate the logic 
 in the presenter implementation.
Now, presenter is not Activity. When I need navigation, I make a 
 Activity that inject the presenter and delegate in this the logic of View.

I want keep separate in the best forms the concepts of view and 
 presenter, but I want to know if inject the presenter in view is ok.
   The presenter have a method called onCreate(T) where T is a View. That 
 method is called when View is initialized after make UiBinder interface.
   In the onCreate(T) I inicialize the editor driver, etc.

   When I precise a Activity, in the start method I obtain the view, by 
 example, with AsyncProvider, how the View inject Presenter, the Activity 
 delegate logic to Presenter.

  I started think this for nested complex widget, for example, load 
 Employees associated with bank accounts, where the Widgets for list of 
 selection and creation bank account is a widget that delegate logic in a 
 presenter that is not Activity.
  But, i can use this widget alone in other view where is necesary one 
 Activity.

   All this is fine or I've gone crazy?


I'm not sure I understood what you're coming with. All I can say is that my 
activities are presenters, and in a few cases where a complex component 
is to be reused, I have a presenter and view for it that's not an activity. 
I also inject my views within my presenters in their constructors, and the 
presenters inject themselves into their view when needed (when the 
activity starts, in my case); this allows the views to have longer lifetime 
as the presenters, because I use short-lived presenters and singleton views.

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



Re: permutation explosion

2011-10-26 Thread mma
Here is an excerpt of console output (when I upload to appengine):

 Deploying frontend 


Preparing to deploy: 

Created staging directory at: 
'/var/folders/CC/CCXgSiQyGZChKamrrjcK2k+++TI/-Tmp-/appcfg7657467333929685094.tmp'
 


Scanning for jsp files. 

Scanning files on local disk. 

Scanned 250 files. 

Scanned 500 files. 

Scanned 750 files. 

Scanned 1000 files. 

Scanned 1250 files. 

Initiating update. 

Cloning 162 static files. 

Cloned 100 files. 

Cloning 1216 application files. 

Cloned 100 files. 

Cloned 200 files. 

Cloned 300 files. 

Cloned 400 files. 

Cloned 500 files. 

Cloned 600 files. 

Cloned 700 files. 

Cloned 800 files. 

Cloned 900 files. 

Cloned 1000 files. 

Cloned 1100 files. 

Cloned 1200 files. 




Deploying: 

Uploading 242 files.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/pToZHK54MGwJ.
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.



Handling authorization exception from server to client

2011-10-26 Thread André Salvati
Hi,

I've been working with GWT 2.4 and trying to send an authorization
exception from server to client whitout success.

1) Server:

A - Raise ReportableException throught report() on my
ServiceLayerDecorator.

B – Send the following JSON to the client:

{S:[false],I:[{F:true,M:Não
autorizado,X:com.google.web.bindery.requestfactory.server.ReportableException}]}

2) Client:

AbstractRequestContext doesn't enter on processPayload() → if
(response.getGeneralFailure() != null) because it doesn't find key
“F” (but “F” is there, isn't??)


What is wrong?

Is it the right way to treat this kind of exception?

Thank you.

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



Why GWT ignore standard html tags ?

2011-10-26 Thread Gervais.b
Hi all,

I'm playing with GWT since some weeks and now I want to create a form
(not int Html sense); In this form I want to use the Html label tag
to set focus on the field referenced by the for attribute value.

1° label for=fldFirstNameg:InlineLabel text={msg.firstName} //
label
But that don't works because GWT ui:field don't set the Id to the
field.

2° So I have tried to give an id to my field but now GWT complaints
because we can use id with ui:field.

3° I have Googled a little and found a topic who use en expression to
retrieve the field id :
label for={fldFirstName.getElement.getId}g:InlineLabel
text={msg.firstName} //label
But the for attribute stay empty.

4° I have decided to tell you Why GWT ignore standard html tags ?
and force us to write many boilerplate code for simple things ?
I think that the GWT has made an impressive work but I don't
understand why in many cases we have to ignore Html best pratice

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



Re: future of gwt who use gwt

2011-10-26 Thread Nagin Kothari
Dart is yet very very young.. .I think it will take more than two years to
gain popularity and acceptance(if at all?), also all browser vendors (like
Microsoft) acceptance.
So why worry right now about Dart?
Any way new client side technologies keep coming every year. If at all Dart
gains popularity in future,I think  Google would provide tool to convert
your GWT (java) code to Dart.

-Nagin

On Tue, Oct 25, 2011 at 11:55 PM, Tomasz Gawel tomaszga...@op.pl wrote:

 hi thomas,

 thanks for link to infoq article about dart - so... it seems my guess
 is possibly right :) - but it's long long way ahead.

 as to mentioned issue with hashmap - i find it feature rather than
 problem. and that case is even not java-javascript but ie specific
 implementation issue.
 and as to gwt - since this is gwt group - i liked very much the idea
 of cross-compilation and possibility of maintaining big client side
 application in java. although it was gwt where i came across it the
 first time. but than i was not sure about it should try to mimic
 common java libraries. maybe sticking only to java raw language but
 with browser specific libriries would be a better solution? libraries
 that vastly utilize something like JavaScriptObject class in current
 implementation? maybe the wrong business policy was to target with gwt
 at existing java developers rather than motivate existing javascript
 developers to learn java :)?
 but no tool is perfect - especially from its begining - and
 imporovements are natural (notice java collections).
 gwt is still young, and java at its age was imho less convincing
 technology. if it is not due any legal/licensing strategy than i would
 stick to java in gwt... if i were gooogle ;).

 as to mysql - nice to see it on app engine - but this fact does not
 undermine the possibility of willingness to became independent from
 oracle owned technology.
 since mysql community server is open source and GPL licensed, google
 is no way dependent on oracle in that case. situation with java is
 quite different, and as i remember some time ago microsoft tried to
 make its own java, what has been effectively stopped by sun's sue and
 trial, utlimately resulting in birth of c# :).

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



Re: Road Map for GWT?

2011-10-26 Thread Thomas Broyer
There has never been any roadmap.

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



Re: future of gwt who use gwt

2011-10-26 Thread Jens
I think in the future GWT will compile to Dart for browsers that support 
Dart and compile to JS (using the dart compiler) for older browsers. 

Also it seems like that (typed) Dart syntax is very similar to Java so it 
should be possible to convert a GWT/Java project to Dart. It wouldn't 
be completely automatic (deferred binding could be a problem) but I think 
its doable.

So I think you won't have any downsides of using GWT now. GWT will be 
supported a long time as its used in a lot of internal google projects. If 
you do not choose GWT you have to use JavaScript directly. If Dart becomes 
successful you have the same problem: How to convert a JavaScript 
application to Dart?. Using GWT I think you have a pretty good chance that 
GWT will solve this problem for you...

-- J.

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



Re: CellTable - how to load just one page?

2011-10-26 Thread Thomas Broyer


On Wednesday, October 26, 2011 7:20:20 AM UTC+2, Magnus wrote:

 Hi,

 I have a large list, which I do not want to load all at once. I would like 
 to load and display just one page and let the user navigate to other pages.

 The problem I see with CellTable is that it needs the whole list at once 
 (setRowData). So I have to transfer all the data. Is it possible just to 
 load the data for one page, and load the next portion if the page changes?


Are you kidding me? Just 2 days ago you asked how to display the whole data 
you loaded because CellTable uses paging by default!

Either you have the whole data set and you can call setRowData(List), which 
is just a shorthand for setRowCount(list.size());setRowData(0,list);
Or you have only a portion of the data (generally the size of a page, but 
not necessarily) and you'll call setRowCount (either you know exactly how 
many items the whole dataset contains, and you can call setRowCount(int), 
or you're not sure and you'll call setRowCount(int,boolean) passing 'false' 
as the second argument; if you really don't know, you can pass any big 
value as the first argument, and then adjust it later when you've reached 
the end of the dataset, ofr instance) and setRowData(int,List).

Other questions:
 How can I add a simple navigation buttons (page next, last) to a CellTable?


SimplePager ?

Finally, assume that the CellTable resides within a panel with a given 
 size. Is it possible to set the page size so that there are no scroll bars, 
 i. e. fill the panel with cell rows without exceeding the available space?


Only if you know in advance the height of a rendered row. You could also, I 
guess, reduce the page-size once loaded if you detect that scrollbars are 
necessary, until they're no longer needed (i.e. load a bit too many and 
then only show what fits in the display area).

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



Re: strange JSNI Exception Something other than a Java object was returned from JSNI method ...: JS value of type boolean, expected java.lang.Object

2011-10-26 Thread Thomas Broyer
Looks a lot 
like http://code.google.com/p/google-web-toolkit/issues/detail?id=5778
Does it only happen in Chrome, or on other browsers too?

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



Re: How to get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread Thomas Broyer
Isn't that what mocks are for?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bQ_3M5iyC8MJ.
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.



Activities and Places, how to deal with nested views ?

2011-10-26 Thread Gervais.b
Dear GWT profesionnals,

I try to create an little app who allow users to make search. The main
screen contains some inputs and a TabLayoutPanel who contains two set
of inputs.
The main screen is created with UiBinder and the two containeds into
the tabs are also described with UiBinder. I have one activity who
manage the screen and perform the search.

But now I have to add another search button into the first tab. This
search button let the user do a search and complete the inputs. The
first solution is to add another callback method to the atcivity
doNestedSearchAndFillSubset() but this nestedSearch can prompt the
user with an popup panel to select one line from the result set...

Is it a way to manage the subSearch view and action with another
activity who is nested into the main screen activity ?

Thanks

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



Re: Activities and Places, how to deal with nested views ?

2011-10-26 Thread Juan Pablo Gardella
Did you see this post
http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni?


2011/10/26 Gervais.b gervai...@gmail.com

 Dear GWT profesionnals,

 I try to create an little app who allow users to make search. The main
 screen contains some inputs and a TabLayoutPanel who contains two set
 of inputs.
 The main screen is created with UiBinder and the two containeds into
 the tabs are also described with UiBinder. I have one activity who
 manage the screen and perform the search.

 But now I have to add another search button into the first tab. This
 search button let the user do a search and complete the inputs. The
 first solution is to add another callback method to the atcivity
 doNestedSearchAndFillSubset() but this nestedSearch can prompt the
 user with an popup panel to select one line from the result set...

 Is it a way to manage the subSearch view and action with another
 activity who is nested into the main screen activity ?

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



Re: Handling authorization exception from server to client

2011-10-26 Thread Thomas Broyer
F is present in I, meaning one particular invocation (service method 
call) failed, not the whole batch request (well, actually, S:[false] 
says the one and only invocation failed, then the object in I gives 
information about the failure).

FYI, the response format is defined by the 
com.google.web.bindery.requestfactory.shared.messages.ResponseMessage 
AutoBean.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5JioRng87REJ.
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.



Error when migrating to GWT 2.4.0

2011-10-26 Thread Tiago Rinck Caveden
Hello all,

I'm trying to migrate to GWT 2.4.0 in order to use some of its features and
bug fixes, but when I try to load the application in Eclipse I have the
following error:

[WARN] Error for /gwtRequest
java.lang.NoSuchMethodError:
com.google.gwt.core.client.impl.WeakMapping.setWeak(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
at
com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.createShim(ProxyAutoBean.java:342)
 at com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.as
(ProxyAutoBean.java:169)
 at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:124)
at
com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:133)

Anyone has any idea of what's the problem? I verified that the maven plugin
in the pom is of the same version of GWT (2.4.0). The SDK configured for the
project is also 2.4.0, actually is the only one installed.

I noted that Gin is indirectly importing GWT 2.2.0.. I wonder if this might
be the issue, and how to get it fixed...

The funny thing is that eclipse itself can find the sources for the method
which is supposedly missing, when I navigate to it using the stack trace
above.

Thank you for any help,
Tiago

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



Re: Why GWT ignore standard html tags ?

2011-10-26 Thread Thomas Broyer


On Wednesday, October 26, 2011 1:54:38 PM UTC+2, Gervais.b wrote:

 Hi all, 

 I'm playing with GWT since some weeks and now I want to create a form 
 (not int Html sense); In this form I want to use the Html label tag 
 to set focus on the field referenced by the for attribute value. 

 1° label for=fldFirstNameg:InlineLabel text={msg.firstName} // 
 label 
 But that don't works because GWT ui:field don't set the Id to the 
 field.


Yes, and there's a good reason for this (performance IIRC, and also the GWT 
team wanted to try other approaches than getElementById to retrieve the 
elements).
 

 2° So I have tried to give an id to my field but now GWT complaints 
 because we can use id with ui:field. 

 3° I have Googled a little and found a topic who use en expression to 
 retrieve the field id : 
 label for={fldFirstName.getElement.getId}g:InlineLabel 
 text={msg.firstName} //label 
 But the for attribute stay empty.


Yes, because as you said, ui:field doesn't set an ID on the element 
(actually, it does set one, but removes it right after use).
 

 4° I have decided to tell you Why GWT ignore standard html tags ? 
 and force us to write many boilerplate code for simple things ?


There are features that, if not done correctly, would cause a lot of bugs 
being reported, and would effectively move resources (human resources I 
mean) on fixing those rather than improving the toolkit.
There are ways to do what you want without too much 
boilerplate: 
https://docs.google.com/Doc?docid=0AQcd-Zsy2T-YZG1mZG5jNl84Z3NkMmJuZHo
And there are ways to do it without without writing any code: 
labelui:text from={msg.firstName} / g:TextBox 
ui:field=fldFirstName //label Just Works™, because the textbox is 
within the label, so there's no need for a for= attribute.
 

 I think that the GWT has made an impressive work but I don't 
 understand why in many cases we have to ignore Html best pratice


You don't have to.
 

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



Re: Error when migrating to GWT 2.4.0

2011-10-26 Thread Juan Pablo Gardella
Put GWT 2.4 in first place in the classpath.

2011/10/26 Tiago Rinck Caveden cave...@gmail.com

 Hello all,

 I'm trying to migrate to GWT 2.4.0 in order to use some of its features and
 bug fixes, but when I try to load the application in Eclipse I have the
 following error:

 [WARN] Error for /gwtRequest
 java.lang.NoSuchMethodError:
 com.google.gwt.core.client.impl.WeakMapping.setWeak(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
 at
 com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.createShim(ProxyAutoBean.java:342)
  at com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.as
 (ProxyAutoBean.java:169)
  at
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:124)
 at
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:133)

 Anyone has any idea of what's the problem? I verified that the maven plugin
 in the pom is of the same version of GWT (2.4.0). The SDK configured for the
 project is also 2.4.0, actually is the only one installed.

 I noted that Gin is indirectly importing GWT 2.2.0.. I wonder if this might
 be the issue, and how to get it fixed...

 The funny thing is that eclipse itself can find the sources for the method
 which is supposedly missing, when I navigate to it using the stack trace
 above.

 Thank you for any help,
 Tiago

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



Re: Error when migrating to GWT 2.4.0

2011-10-26 Thread Patrick Julien
I would check if an earlier gwt 2.x is still found on your classpath, like 
a local copy in web-inf 

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



Re: How to get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread tanteanni
i guess you mean to implement my own PlaceHistoryMapper - only for test?

that could work

but now i am happy with my getPrefix() in place-class. With this i don't 
need a dependency to historymapper in my activity. (it don't feels right to 
use historymapper to get a constant string from a place?!)

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



Re: How to get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread Thomas Broyer


On Wednesday, October 26, 2011 3:51:12 PM UTC+2, tanteanni wrote:

 i guess you mean to implement my own PlaceHistoryMapper - only for test?

 that could work


Yes, with the added benefit that you could test whether you call the 
PlaceHistoryMapper with the appropriate argument, not whether the returned 
value from the place-to-string conversion is the one you expect (which will 
change when you change your PlaceTokenizer, but you're not testing your 
PlaceTokenizer here, you're testing your activity, and if the test changes 
when the implementation of another class changes –without breaking the 
contract: turn a place into a string–, it's no longer a *unit* test; and it 
also means you'd have to change all your tests when you decide to change 
what your PlaceTokenizer generates/parses).
With a mock, the exact output wouldn't matter, the input would however: 
does my activity calls the mapper with the appropriate argument?
 

 but now i am happy with my getPrefix() in place-class. With this i don't 
 need a dependency to historymapper in my activity. (it don't feels right to 
 use historymapper to get a constant string from a place?!)


Well, the goal of PlaceHistoryMapper *is* to get a string out of a place 
(and the reverse). Whether it's used by the PlaceHistoryHandler or your 
code the builds link doesn't really matter. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/kYVjqqZJVPgJ.
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.



problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-26 Thread tanteanni
the scenario is as follows (i use gin):
- onModuleLoad instantiates a ApplicationManager and runs start() on it.
- ApplicationManager sets up all activitymanagers and the layout, gives 
every manager some display area, sets up history handler and start 
history (historyHandler.handleCurrentHistory();)

all is running fine but i want the application manager to defer the loading 
until an event (data-loaded-event). so i make the manager listen to it and 
all the setup-stuff is done in a new method continueStart(); called on 
this event. the former start() (called in onModuleLoad) just displays a 
loading widget.
but now no activity is started. i debugged into the code. it seems that 
with this deferred loading the ActivityManagers don't hear the 
PlaceChangeEvent fired by historyHandler.handleCurrentHistory(); (The 
Eventbus emitting this event is the same the ActivityManager registered on)

So what's going on here?

my only explanation at the moment is, that this could be related to the 
fact that all the application setup stuff happens after onModuleLoad has 
finished (it only calls start(), and in background applicationManager is 
waiting for an event and does the reals setup after onModulLoad())

so what to do - thx in advance

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



Re: How to get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread tanteanni
thx!

once again i learned a lot :-)

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



Re: CellTable - how to load just one page?

2011-10-26 Thread David
Only if you know in advance the height of a rendered row. 

Hi Thomas,

I'm close to a solution to providing dynamic retrieval of data via
scrolling.   The CellList example provided in the GWT Showcase does
not work for me because is doesn't let the user immediately scroll to
any portion of the list not already loaded.  Hence you get a water
pump effect as you have to bring the scrollbar all the way to the
bottom in order to request more data.

Right now I am determing the scrollpanel height by multiplying two
constants:   VISIBLE_ITEMS_IN_VIEW * ROW_HEIGHT
I  determine ROW_HIGHT by testing with some data and inspecting the
value of  cellTable.getRowElement(0).getClientHeight().

Do you know any way of determining the height of a rendered row  at
runtime and before setting the height of the scrollpanel ?

thanks
David

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



Re: Apache Tomcat - Access Files Outside Webroot

2011-10-26 Thread Jmscavaleiro
Hello Alan,

Thank you very much for your reply. My problem is solved.

Unfortunately Apache didn't wrote any exception on catalina.out log.
And yes, you were right, it was a problem of paths. Simply i didn't
create a new File with the absolute path of the destination location,
i was using only the docs/filename.txt assuming that the File classe
would recognize the full path knowing the location in the filesystem
of the app. With Eclipse/Jetty it works but with Apache Tomcat don't.

Once again, thanks for you help, you really convinced me that my
problem was related to paths (Like one friend induced me to). But in
the matteer of fact, the debbug was not easy, the debbug mode with
external server don't work in the server side in the peace of code
where i make this io operations (strange), and the System.out.println
don't show up in the catalina.stdout (strange to and yes, i have
compiled and deployed it on the Apache Tomcat with that modifications
twice).

Thanks,
João Cavaleiro.

On Oct 25, 1:55 pm, Alan Chaney a...@mechnicality.com wrote:
 Jo o

 On 10/25/2011 1:44 AM, Jmscavaleiro wrote: Hello everyone,

  I had deployed my GWT application in the application server Apache
  Tomcat. My GWT application needs to access files in folder C:
  \Storage. In development mode the application runs like a charm but
  in an external web server (Apache Tomcat) it does not run, crashes
  when it tries to copy files from C:\Storage to \docs. I think this
  might be because i'm trying to access files outside the webroot. How
  can i solve this situation? Using apache commons libs to deal with
  files? Could be permissions? I need some enlightment, some help will
  be very apreciated.

 This is something that I do all the time so its your setup that's at fault.

 Are you seeing any exceptions in the log files - logs/catalina.out would
 be a good place
 to look. You can use the standard java.io.*classes such as File ,
 FileReader, FileWriter to make
 the transfers.  I suspect that you have an error in the way the paths
 are created in your production
 server.

 Another possibility is that you have a security manager in place - once
 again, check your logs.

 Alan









  Thanks in advance,
  Jo o Cavaleiro.

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



Re: How to get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread tanteanni
ok some questions remain:

i just implemented my AppHistoryMapper. I need one implementation per 
place, right? (i guess that is what gwt.create does: generating one mapper 
per place using the tokenizer code for implementation?)
with this mock in place: is the code provided bei jens 
(myHyperLink.setTargetHistoryToken(mapper.getToken(new MyPlace(stateVar1, 
stateVar2, ...)));)) working without gwtTestCase? Which part is 
extracting the prefix from place (some where in setTargetHistoryToken?)? 


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



Re: Apache Tomcat - Access Files Outside Webroot

2011-10-26 Thread Thad
You might want to take this up with the Tomcat user's list, but let me
offer some ideas.

First, I'll second what Alan says:  Read your Tomcat logs.

Second, where is \docs? Inside your $CATALINA_HOME/webapp/MyApp
directory? You can't rely on that directory being writable or even
being there. Tomcat unpacks your war by default, but it can be set not
to do so. Not unpacking is the default in some web servers. I suspect
that Tomcat is not permitting you to copy to a subdirectory inside
$CATALINA_HOME/webapp/MyApp for just that reason.

If the user account that launches Tomcat can read C:\Storage, there's
no reason you can't copy from there. I do this a lot. However I then
use servlets to write the file to back to my user (into an IFRAME or
new window). I don't copy it into a directory my webapp's tree and
tell the browser to access it.

On Oct 25, 4:44 am, Jmscavaleiro jmscavale...@gmail.com wrote:
 Hello everyone,

 I had deployed my GWT application in the application server Apache
 Tomcat. My GWT application needs to access files in folder C:
 \Storage. In development mode the application runs like a charm but
 in an external web server (Apache Tomcat) it does not run, crashes
 when it tries to copy files from C:\Storage to \docs. I think this
 might be because i'm trying to access files outside the webroot. How
 can i solve this situation? Using apache commons libs to deal with
 files? Could be permissions? I need some enlightment, some help will
 be very apreciated.

 Thanks in advance,
 João Cavaleiro.

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



Re: strange JSNI Exception Something other than a Java object was returned from JSNI method ...: JS value of type boolean, expected java.lang.Object

2011-10-26 Thread tanteanni
i think yes -

thx for the hint

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



Re: Popup windows printing

2011-10-26 Thread Jeffrey Chimene

On 10/26/2011 1:02 AM, Mike Dee wrote:

I have an app that creates reports, which are basically HTML.  The
reports need to be printed and that is what I'm trying to figure out.

I'm porting an older app - that is more of traditional web app.
Reports are displayed in a page - with a UI wrapped around them.  When
a user wants to print a report, he clicks a print link, which pops
up a window with a printer friendly version (no UI elements).  He can
then selects the browser's print command.  Works nicely.

I'm trying to figure out how to do that in GWT.  I can display a
report.  Printing doesn't work well, because it prints all the UI
stuff too.

I've looked into separate popup windows.  Most of the messages here
recommend against doing it.  Instead they suggest using a Dialog box.
I've tried it and created a Dialog with simply an HTMLPanel.  However,
selecting File-Print (in the browser) prints the entire page (the
entire window).

Any suggestions on a way to do this?


Here's one idea I've implemented. It's amenable to arbitrary levels of 
complexity.


Your UI posts a request to your server on user action (e.g. a button 
click event), and opens the result in a new window:

button type=submit
form action=printTheCurrentReport _target=_blank method=get
!-- Depending on how you manage sessions, you might want a session ID 
token in a hidden field --

/button

Reminder: you should have css for print media.

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



Re: How to get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread Jens


 i guess that is what gwt.create does: generating one mapper per place 
 using the tokenizer code for implementation?


Only one mapper is generated. It contains a large generated if-then-else 
block that delegates getPlace() and getToken() to the correct Tokenizer 
based on the prefix (use -gen compiler option to see whats generated).

I think you only need one mocked mapper. If you want to test an activity 
the mocked mapper would do nothing except tracking method calls and its 
arguments as Thomas said. If your activity has a method configureLinks() 
that you want to test, it only matters that your activity calls 
mapper.getToken(...place for each link that has to be configured...) with 
the correct places as arguments inside this method. The mapper could also 
just return specific test strings per place (e.g. a, b, c, ... so no 
real tokens created by tokenizers) because it only matters that these 
strings are set to the hyperlinks, it does not matter if theses strings are 
correctly generated by the mapper.

My code contains a Hyperlink instance so it would not work without 
GWTTestCase. Its just a short-hand code snippet. In reality you would have 
a method like updateLinkAToken(String token) in your view interface and the 
activity would do:

mockedView.updateLinkAToken(mockedMapper.getToken(new Place())).

As your mockedView and mockedMapper should not have a dependency to JSNI / 
GWT.create() it will work without a GWTTestCase.

-- J.

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



Re: GWT Developer Plugin for Firefox 7

2011-10-26 Thread Joel
It is inside the conversation, you even had it included in your reply.

Here is the direct link to it :
http://groups.google.com/group/google-web-toolkit/attach/840a3dc826eda769/gwt-dev-plugin.xpi?part=4

Please take the time to report how it worked for you :-)

Joel.

On Oct 25, 5:28 pm, morteza adi morteza...@gmail.com wrote:
 I'm new here  !!

 where can i download gwt-dev-plugin.xpi for ff7 ? can you please provide a
 link.

 Truly yours,
 Morteza Adi

 On Wed, Oct 26, 2011 at 12:52 AM, Ivan Dimitrijevic dim...@gmail.comwrote:







  Also works fine from Win7 64bit.
  --
  S postovanjem,
  *Ivan Dimitrijevic*, dipl.ing. ISiT, MSc
  d...@dnjcompany.com d...@dnjcopmany.com
 http://dimi.dnjcompany.com

  On Tue, Oct 25, 2011 at 23:14, Alan Leung acle...@google.com wrote:

  Sometimes this week.

  It seems to be pretty stable.

  -Alan

  On Tue, Oct 25, 2011 at 7:31 AM, Ivan Dimitrijevic dim...@gmail.comwrote:

  Works regular for me on Mac OS X 10.7.2
  64bit

  --
  S postovanjem,
  *Ivan Dimitrijevic*, dipl.ing. ISiT, MSc
  d...@dnjcompany.com d...@dnjcopmany.com
 http://dimi.dnjcompany.com

  On Tue, Oct 25, 2011 at 16:29, Joel glatap...@gmail.com wrote:

  It seems to work for me as well, under Firefox 7.0.1 with Windows 7
  x64.

  When is the deployment planned ?

  On Oct 10, 6:27 pm, Alan Leung acle...@google.com wrote:
   For those who had experienced a crash on 32bit Linux, would you mind
  doing
   me a favor by trying the attached xpi file?

   Thanks!

   -Alan

   On Mon, Oct 10, 2011 at 3:15 PM, Michael Vogt vmei...@googlemail.com
  wrote:

 works perfectly on my Ubuntu 64 bit
 Linux N53SV 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25
  UTC 2011
 x86_64 x86_64 x86_64 GNU/Linux
 FF 7.0.1

Yes works also on my ThinkPad with Ubuntu 11.04 64-bit and Firefox
7.0.1 at home.

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

    gwt-dev-plugin.xpi
   4080KViewDownload

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



HTTPSession Cookie Changed

2011-10-26 Thread Niraj Salot
Dear all,

We are facing some serious issue.

After accessing the application for some time , We are having timeout
issue. Although the timeout is set to 2 hours  , we are seeing that
session are expired only after 15-20 Minutes.

We are using GWT , Spring. our application is deployed on JBOSS 7.0.2.
We are using the HTTPSession in server side only. We are expecting
that during each RPC , browser will send the JSESSION ID cookie with
each request. No seperate coding is done for this.

After our deeper analysis we have found that from client side the
cookie which contians the jSESSIONID is suddenly changed and when it
reaches to server , server create the issue of timeout.

One more thing... The application works fine for couple of users. The
problem only starts when we have more users connected to the
application. Have check memory and CPU stuff. They are fine. nothing
serious over there.

Any help would be greatly appreciated.

Thanks.
Niraj.

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



Re: GWT Developer Plugin for Firefox 7

2011-10-26 Thread Joel
Thank you very much :-)

On Oct 25, 5:14 pm, Alan Leung acle...@google.com wrote:
 Sometimes this week.

 It seems to be pretty stable.

 -Alan







 On Tue, Oct 25, 2011 at 7:31 AM, Ivan Dimitrijevic dim...@gmail.com wrote:
  Works regular for me on Mac OS X 10.7.2
  64bit

  --
  S postovanjem,
  *Ivan Dimitrijevic*, dipl.ing. ISiT, MSc
  d...@dnjcompany.com d...@dnjcopmany.com
 http://dimi.dnjcompany.com

  On Tue, Oct 25, 2011 at 16:29, Joel glatap...@gmail.com wrote:

  It seems to work for me as well, under Firefox 7.0.1 with Windows 7
  x64.

  When is the deployment planned ?

  On Oct 10, 6:27 pm, Alan Leung acle...@google.com wrote:
   For those who had experienced a crash on 32bit Linux, would you mind
  doing
   me a favor by trying the attached xpi file?

   Thanks!

   -Alan

   On Mon, Oct 10, 2011 at 3:15 PM, Michael Vogt vmei...@googlemail.com
  wrote:

 works perfectly on my Ubuntu 64 bit
 Linux N53SV 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC
  2011
 x86_64 x86_64 x86_64 GNU/Linux
 FF 7.0.1

Yes works also on my ThinkPad with Ubuntu 11.04 64-bit and Firefox
7.0.1 at home.

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

    gwt-dev-plugin.xpi
   4080KViewDownload

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



Re: Popup windows printing

2011-10-26 Thread Mike Dee
I was thinking about something like that.  In the posts about popup
windows this is seen as a negative because it is tricky to setup
communications between the main window and the popup.  But there
really is no communication needed in this case.

Do you see the popup window as a GWT window or just a straight HTML
window?

On Oct 26, 7:55 am, Jeffrey Chimene jchim...@gmail.com wrote:
 On 10/26/2011 1:02 AM, Mike Dee wrote:









  I have an app that creates reports, which are basically HTML.  The
  reports need to be printed and that is what I'm trying to figure out.

  I'm porting an older app - that is more of traditional web app.
  Reports are displayed in a page - with a UI wrapped around them.  When
  a user wants to print a report, he clicks a print link, which pops
  up a window with a printer friendly version (no UI elements).  He can
  then selects the browser's print command.  Works nicely.

  I'm trying to figure out how to do that in GWT.  I can display a
  report.  Printing doesn't work well, because it prints all the UI
  stuff too.

  I've looked into separate popup windows.  Most of the messages here
  recommend against doing it.  Instead they suggest using a Dialog box.
  I've tried it and created a Dialog with simply an HTMLPanel.  However,
  selecting File-Print (in the browser) prints the entire page (the
  entire window).

  Any suggestions on a way to do this?

 Here's one idea I've implemented. It's amenable to arbitrary levels of
 complexity.

 Your UI posts a request to your server on user action (e.g. a button
 click event), and opens the result in a new window:
 button type=submit
 form action=printTheCurrentReport _target=_blank method=get
 !-- Depending on how you manage sessions, you might want a session ID
 token in a hidden field --
 /button

 Reminder: you should have css for print media.

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



Re: HTTPSession Cookie Changed

2011-10-26 Thread Juan Pablo Gardella
Are you use clusters? reverse proxy?

2011/10/26 Niraj Salot salotni...@gmail.com

 Dear all,

 We are facing some serious issue.

 After accessing the application for some time , We are having timeout
 issue. Although the timeout is set to 2 hours  , we are seeing that
 session are expired only after 15-20 Minutes.

 We are using GWT , Spring. our application is deployed on JBOSS 7.0.2.
 We are using the HTTPSession in server side only. We are expecting
 that during each RPC , browser will send the JSESSION ID cookie with
 each request. No seperate coding is done for this.

 After our deeper analysis we have found that from client side the
 cookie which contians the jSESSIONID is suddenly changed and when it
 reaches to server , server create the issue of timeout.

 One more thing... The application works fine for couple of users. The
 problem only starts when we have more users connected to the
 application. Have check memory and CPU stuff. They are fine. nothing
 serious over there.

 Any help would be greatly appreciated.

 Thanks.
 Niraj.

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



Re: HTTPSession Cookie Changed

2011-10-26 Thread Jens
So far I have only seen this in clusters with session replication and a 
round robin load balancer (or multiple DNS entries which is basically some 
sort of round robin load balancing). Sometimes session replication fails 
and a new session is created on a cluster node. You could use sticky load 
balancing to reduce the chance of a lost session because of replication. 

Already searched for JBOSS issues regarding lost sessions?

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



Re: Popup windows printing

2011-10-26 Thread Jeff Chimene
On 10/26/2011 08:38 AM, Mike Dee wrote:
 I was thinking about something like that.  In the posts about popup
 windows this is seen as a negative because it is tricky to setup
 communications between the main window and the popup.  But there
 really is no communication needed in this case.
 
 Do you see the popup window as a GWT window or just a straight HTML
 window?

The latter. This is one of those cases where I think that using GWT to
create the child window doesn't get you anything except a problem
solved! endorphin rush. As I said earlier, the solution can be made
arbitrarily complex, so I'm sure that someone will chime in with a
reason to implement the popup using GWT methods.

To follow-up on the CSS: I've noticed that when there's a reference to a
CSS with media type print, then FF opens a print dialog automatically.
I think Chrome does this too.


 
 On Oct 26, 7:55 am, Jeffrey Chimene jchim...@gmail.com wrote:
 On 10/26/2011 1:02 AM, Mike Dee wrote:









 I have an app that creates reports, which are basically HTML.  The
 reports need to be printed and that is what I'm trying to figure out.

 I'm porting an older app - that is more of traditional web app.
 Reports are displayed in a page - with a UI wrapped around them.  When
 a user wants to print a report, he clicks a print link, which pops
 up a window with a printer friendly version (no UI elements).  He can
 then selects the browser's print command.  Works nicely.

 I'm trying to figure out how to do that in GWT.  I can display a
 report.  Printing doesn't work well, because it prints all the UI
 stuff too.

 I've looked into separate popup windows.  Most of the messages here
 recommend against doing it.  Instead they suggest using a Dialog box.
 I've tried it and created a Dialog with simply an HTMLPanel.  However,
 selecting File-Print (in the browser) prints the entire page (the
 entire window).

 Any suggestions on a way to do this?

 Here's one idea I've implemented. It's amenable to arbitrary levels of
 complexity.

 Your UI posts a request to your server on user action (e.g. a button
 click event), and opens the result in a new window:
 button type=submit
 form action=printTheCurrentReport _target=_blank method=get
 !-- Depending on how you manage sessions, you might want a session ID
 token in a hidden field --
 /button

 Reminder: you should have css for print media.
 

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



Re: jquery?

2011-10-26 Thread t.dave
my $.02 would be that it all depends on what kind of project/app/
website you're building.  if you want to have a true web application
where the page seldom if ever does a full refresh and you want to have
a lot of fancy and super awesome functionality, then GWT is the way to
go.  i've heard that there are ways with javascript to manage your
project well, but my experience with JS is somewhat limited.  i think
it's better for a large web app to be able to work one level of
abstraction higher by coding in java and taking advantage of
everything that brings.

however, if you're building what's really a website and you want to
have just a sprinkling of ajax or a little cool functionality, then by
all means go with jquery.  it's much more lightweight and for simple
things, way simpler.  but from what i've seen i would definitely not
want to do anything of significant size with that.

most likely building a website will be faster, but a web app has a lot
of advantages.  with a web app you can push your state down into the
client and have a stateless server side which helps bigtime with
scalability.  but, depending on your project there may be security
concerns around doing that.

as always, pros and cons both ways but by asking on a GWT list the
answer of which to go with is most likely going to be GWT.  :)



On Oct 25, 12:53 pm, Luis Montes monte...@gmail.com wrote:
 Maintaining JS doesn't have to become a nightmare on large projects.  Other
 toolkits besides jquery have taken things like modularity,dependency
 management, and modularity into account.

 Write in GWT if you want to write in Java.


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



Re: Click Events not getting attached

2011-10-26 Thread Jeff Larsen
Why do you need to get widgets as elements? 

Why not just do 

p.add(new HTMLPanel(Hello a href=\#world\World/a);

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



Re: Editor not flush values of subeditors

2011-10-26 Thread Cristian Rinaldi
Tanks Thomas for response.
The rare is that AddressView implements EditorAddreessProxy

I put the codes below:

*Extract for TerceroNewView*

public interface TerceroNewView extends View, EditorTercerosProxy {
  public interface Presenter extends MutablePresenterTerceroNewView{

  }

  RequestFactoryEditorDriverTercerosProxy, ? extends EditorTercerosProxy
createEditorDriver(
  RequestFactory rf);
}
*
*
*
*
*Extract for TerceroEditor*

public class TerceroEditor implements TerceroNewView {

  private static TerceroEditorUiBinder uiBinder =
GWT.create(TerceroEditorUiBinder.class);

  interface TerceroEditorUiBinder extends UiBinderSimplePanel,
TerceroEditor {
  }

  interface Driver extends RequestFactoryEditorDriverTercerosProxy,
TerceroEditor {
  }

  private SimplePanel root;

  @UiField
  ClientResource res;

  @UiField
  ValueBoxEditorDecoratorString name;

  @UiField
  ValueBoxEditorDecoratorString lastName;

  @UiField(provided = true)
  AddressView address;

  private final TerceroNewView.Presenter presenter;

  @Inject
  public TerceroEditor(
  AsyncProviderAddressView addressView,
  @Named(Constans.TerceroNewPresenter) TerceroNewView.Presenter
presenter) {

this.presenter = presenter;

addressView.get(new AsyncCallbackAddressView() {
  @Override
  public void onSuccess(AddressView result) {
address = result;
ini();

  }
  @Override
  public void onFailure(Throwable caught) {
  }
});
  }

  private void ini(){
root = uiBinder.createAndBindUi(this);
res.erpLgkStyle().ensureInjected();
presenter.onCreate(this);
  }

  .
  .
}

*Extract for AddressView:*

  public interface AddressView extends View, EditorAddressProxy{

 public interface Presenter extends MutablePresenterAddressView{

 }

 HasConstrainedValueCityProxy getCitys();
  }

*Extract for AddressEditor:*

public class AddressEditor implements AddressView {

  interface AddressWidgetUiBinder extends UiBinderHTMLPanel, AddressEditor
{
  }

  interface Driver extends RequestFactoryEditorDriverAddressProxy,
AddressEditor {
  }

  private static AddressWidgetUiBinder uiBinder =
GWT.create(AddressWidgetUiBinder.class);

  private HTMLPanel root;

  private AddressView.Presenter presenter;

  @UiField
  ValueBoxEditorDecoratorString address;

  @UiField
  ValueBoxEditorDecoratorInteger number;

  @UiField
  ValueBoxEditorDecoratorString code;

  @UiField(provided = true)
  SelectorCityView city;


  @Inject
  public AddressEditor(
  AsyncProviderSelectorCityView selectorCity,
  @Named(Constans.AddressNewPresenter) AddressView.Presenter presenter)
{

this.presenter = presenter;

// TODO ver si hay otra forma de inicializar las vistas
selectorCity.get(new AsyncCallbackSelectorCityView() {
  @Override
  public void onSuccess(SelectorCityView result) {
city = result;
init();
  }

  @Override
  public void onFailure(Throwable caught) {
  }
});
  }

  private void init(){
root = uiBinder.createAndBindUi(this);
presenter.onCreate(this);
  }
...
...
}

*Extract for TerceroNewPresenter*

public class TerceroNewEditorPresenter implements TerceroNewView.Presenter {

  private final PlaceController placeController;
  private final ErpRequestFactory requestFactory;

  private RequestFactoryEditorDriverTercerosProxy, ? extends
EditorTercerosProxy terceroDriver;

  @Inject
  public TerceroNewEditorPresenter(final AddressNewPresenter
addressPresenter,
  final ErpRequestFactory requestFactory, final PlaceController
placeController) {

this.placeController = placeController;
this.requestFactory = requestFactory;
  }

  @Override
  public void goTo(Place place) {
placeController.goTo(place);
  }

  @Override
  public void save() {

RequestContext context = terceroDriver.flush();

boolean hasClientErrors = terceroDriver.hasErrors();

if (!hasClientErrors) {

  context.fire(new ReceiverVoid() {

@Override
public void onSuccess(Void response) {
  placeController.goTo(new DefaultPlace());
}

@Override
public void onViolation(SetViolation errors) {
  terceroDriver.setViolations(errors);
}

@Override
public void onConstraintViolation(SetConstraintViolation?
violations) {
  terceroDriver.setConstraintViolations(violations);
}

  });
}
  }

  @Override
  public void onCreate(final TerceroNewView view) {

terceroDriver = view.createEditorDriver(requestFactory);

TercerosRequest context = requestFactory.getTercerosRequest();

TercerosProxy tercero = context.create(TercerosProxy.class);

AddressProxy address = context.create(AddressProxy.class);

tercero.setAddress(address);

context.persist(tercero).with(terceroDriver.getPaths());

terceroDriver.edit(tercero, context);
  }
...
...
}


*Extract for GIN configurations:*


Re: Road Map for GWT?

2011-10-26 Thread Anton DS
http://code.google.com/p/google-web-toolkit/w/list, here you can get a
list of new features, some time.

On Oct 26, 5:40 am, sampath sai vsampath@gmail.com wrote:
 Hi ,

 Any one has RoadMap for GWT 2012? Please provide some links..

 Thanks,
 Sai

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



Loading Components On User Request

2011-10-26 Thread Ari
Hi,

Can explain or point me to a tutorial/example that explains how to
load different components on demand within my GWT application?

For example, let's say my GWT application's main/start page is a
home page with a navigation bar at the top and a content container
below. Once a user clicks a navigation button in the navigation bar,
I'd like to load that component into the content container, keeping
the navigation bar as is.

Thanks

-Ari

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



Request Factory - Getter issues

2011-10-26 Thread Antoine DESSAIGNE
Hi,

I have 2 issues with the RequestFactory 2.4.0:
- It doesn't seems to support array types as return types,
RequestFooProxy[] getAllFoo() doesn't work
- My Foo base type and thus my FooProxy types have getters without the
'get' prefix, it's name() instead of getName(). This throws an error at
compilation: [ERROR] The method public abstract java.lang.String name() is
neither a getter nor a setter

Is is possible to make it work or should I convert all my arrays into lists
and add the 'get' prefix on all my getters?

Thanks a lot,

Antoine.

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



Drag and Drop to a RichTextArea / IFrame?

2011-10-26 Thread Derek
I'm trying out some of the fun drag-and-drop stuff in GWT. My current
attempt is to drag a file into a richtextarea, but nothing seems to be
working correctly. It works fine if I use a FlowPanel or some other
GWT widget, but not a RichTextArea despite it have an addDropHandler
method.

Anyone have any experience with this?

My code in onModuleLoad:

DropHandler drop = new DropHandler() {

@Override
public void onDrop(DropEvent event) {
event.preventDefault();

String data = event.getData(text);
GWT.log(text is +data+ and there are
+numFiles(event.getDataTransfer())+ files);
}
};
RichTextArea rt = new RichTextArea();
rt.addDropHandler(drop); // never called even after drag-and-dropping
a file on the rt
RootPanel.get().add(rt);

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



Re: Loading Components On User Request

2011-10-26 Thread Akash Gupta
Have a simple panel, and keep setting widget to that simple panel on click
of navigation panel, for on demand part, create the component on click
method if it is null, else set the already created widget.

On Wed, Oct 26, 2011 at 8:41 PM, Ari ari.brandeis.k...@gmail.com wrote:

 Hi,

 Can explain or point me to a tutorial/example that explains how to
 load different components on demand within my GWT application?

 For example, let's say my GWT application's main/start page is a
 home page with a navigation bar at the top and a content container
 below. Once a user clicks a navigation button in the navigation bar,
 I'd like to load that component into the content container, keeping
 the navigation bar as is.

 Thanks

 -Ari

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



Re: Click Events not getting attached

2011-10-26 Thread Akash Gupta
ya use them as widgets instead of elements,  if you want to retain the
listeners.

On Wed, Oct 26, 2011 at 10:13 PM, Jeff Larsen larse...@gmail.com wrote:

 Why do you need to get widgets as elements?

 Why not just do

 p.add(new HTMLPanel(Hello a href=\#world\World/a);

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/1NyzCaMCB2QJ.

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



Announce: GwtQuery 1.1.0

2011-10-26 Thread Manuel Carrasco Moñino
The GQuery team is proud to announce the version 1.1.0 of the library.

We have been working hard in order to fix many issues and to achieve a
closed jQuery API.

The new release includes new features like the jQuery Ajax API, Data
binding to easily manage json and xml data, better interaction with
gwt widgets, and improved documentation.

You can see the full list of features in the presentation given in The
RivieraDev last week in France [1] or taking a look to the project
wiki pages [2]

[1] 
http://www.slideshare.net/dodotis/gquery-a-jquery-clone-for-gwt-rivieradev-2011
[2] http://code.google.com/p/gwtquery/w/list


Thanks so much to the people sending issues, testing, and using the library.

- GQuery Team

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



Chrome 15, GWT DMP Plugin crashes

2011-10-26 Thread pjspychala
After upgrading to a new version of the browser (Chrome 15) it seems
that the plugin no longer likes whats going on. I've tried
uninstalling and reinstalling the plugin without success.

What happens:

Webapp loads
I can do some actions on the webapp, but 95% of actions will freeze
chrome. Eventually chrome will ask to disable the plugin which will
unfreeze the good stuff which will leave me with this inside Eclipse:


13:32:15.151 [ERROR] [???] Remote connection lost

com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote
connection lost
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
307)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
546)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Connection reset by peer: socket
write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
at com.google.gwt.dev.shell.BrowserChannel
$ReturnMessage.send(BrowserChannel.java:1310)
at com.google.gwt.dev.shell.BrowserChannel
$ReturnMessage.send(BrowserChannel.java:1315)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
295)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
546)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Unknown Source)

which is expected and this:

13:32:15.080 [ERROR] [???] Uncaught exception escaped

com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote
connection lost
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
354)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
218)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
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:213)
at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:
172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
292)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
546)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Connection reset by peer: socket
write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
at com.google.gwt.dev.shell.BrowserChannel
$ReturnMessage.send(BrowserChannel.java:1310)
at com.google.gwt.dev.shell.BrowserChannel
$ReturnMessage.send(BrowserChannel.java:1315)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
340)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
218)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
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:213)
at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown 

Re: Chrome 15, GWT DMP Plugin crashes

2011-10-26 Thread savilak
We have the same issue with Chrome 16.0.912.12 dev-m.
In case we deploy the app or use IE in debug mode  the app works fine!

Thanks
Savilak


On Oct 26, 8:38 pm, pjspychala tomatoactiva...@gmail.com wrote:
 After upgrading to a new version of the browser (Chrome15) it seems
 that the plugin no longer likes whats going on. I've tried
 uninstalling and reinstalling the plugin without success.

 What happens:

 Webapp loads
 I can do some actions on the webapp, but 95% of actions will freezechrome. 
 Eventuallychromewill ask to disable the plugin which will
 unfreeze the good stuff which will leave me with this inside Eclipse:

 13:32:15.151 [ERROR] [???] Remoteconnectionlost

 com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remoteconnectionlost
     at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
 lServer.java:
 307)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
 nelServer.java:
 546)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
 363)
     at java.lang.Thread.run(Unknown 
 Source)Causedby:java.net.SocketException:Connectionresetbypeer:socketwriteerror
     at java.net.SocketOutputStream.socketWrite0(Native Method)
     at java.net.SocketOutputStream.socketWrite(Unknown Source)
     at java.net.SocketOutputStream.write(Unknown Source)
     at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
     at java.io.BufferedOutputStream.flush(Unknown Source)
     at java.io.DataOutputStream.flush(Unknown Source)
     at com.google.gwt.dev.shell.BrowserChannel
 $ReturnMessage.send(BrowserChannel.java:1310)
     at com.google.gwt.dev.shell.BrowserChannel
 $ReturnMessage.send(BrowserChannel.java:1315)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
 lServer.java:
 295)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
 nelServer.java:
 546)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
 363)
     at java.lang.Thread.run(Unknown Source)

 which is expected and this:

 13:32:15.080 [ERROR] [???] Uncaught exception escaped

 com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remoteconnectionlost
     at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
 rReturn(BrowserChannelServer.java:
 354)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
 elServer.java:
 218)
     at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 136)
     at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
     at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
     at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
 ava:
 91)
     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
     at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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.jav a:
 172)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
 lServer.java:
 292)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
 nelServer.java:
 546)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
 363)
     at java.lang.Thread.run(Unknown 
 Source)Causedby:java.net.SocketException:Connectionresetbypeer:socketwriteerror
     at java.net.SocketOutputStream.socketWrite0(Native Method)
     at java.net.SocketOutputStream.socketWrite(Unknown Source)
     at java.net.SocketOutputStream.write(Unknown Source)
     at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
     at java.io.BufferedOutputStream.flush(Unknown Source)
     at java.io.DataOutputStream.flush(Unknown Source)
     at com.google.gwt.dev.shell.BrowserChannel
 $ReturnMessage.send(BrowserChannel.java:1310)
     at com.google.gwt.dev.shell.BrowserChannel
 $ReturnMessage.send(BrowserChannel.java:1315)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
 rReturn(BrowserChannelServer.java:
 340)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
 elServer.java:
 218)
     at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 136)
     at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
     at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
     at
 

Re: Click Events not getting attached

2011-10-26 Thread gangurg gangurg
How to use them as Widgets ?

On Wed, Oct 26, 2011 at 10:04 AM, Akash Gupta akash.b...@gmail.com wrote:

 ya use them as widgets instead of elements,  if you want to retain the
 listeners.


 On Wed, Oct 26, 2011 at 10:13 PM, Jeff Larsen larse...@gmail.com wrote:

 Why do you need to get widgets as elements?

 Why not just do

 p.add(new HTMLPanel(Hello a href=\#world\World/a);

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/1NyzCaMCB2QJ.

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



Re: Chrome 15, GWT DMP Plugin crashes

2011-10-26 Thread Juan Pablo Gardella
I use Chrome v16 dev and works.

2011/10/26 pjspychala tomatoactiva...@gmail.com

 After upgrading to a new version of the browser (Chrome 15) it seems
 that the plugin no longer likes whats going on. I've tried
 uninstalling and reinstalling the plugin without success.

 What happens:

 Webapp loads
 I can do some actions on the webapp, but 95% of actions will freeze
 chrome. Eventually chrome will ask to disable the plugin which will
 unfreeze the good stuff which will leave me with this inside Eclipse:


 13:32:15.151 [ERROR] [???] Remote connection lost

 com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote
 connection lost
at

 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
 307)
at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 546)
at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 363)
at java.lang.Thread.run(Unknown Source)
 Caused by: java.net.SocketException: Connection reset by peer: socket
 write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
at com.google.gwt.dev.shell.BrowserChannel
 $ReturnMessage.send(BrowserChannel.java:1310)
at com.google.gwt.dev.shell.BrowserChannel
 $ReturnMessage.send(BrowserChannel.java:1315)
at

 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
 295)
at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 546)
at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 363)
at java.lang.Thread.run(Unknown Source)

 which is expected and this:

 13:32:15.080 [ERROR] [???] Uncaught exception escaped

 com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote
 connection lost
at

 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
 354)
at

 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
 218)
at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 136)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
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:213)
at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:
 172)
at

 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
 292)
at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 546)
at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 363)
at java.lang.Thread.run(Unknown Source)
 Caused by: java.net.SocketException: Connection reset by peer: socket
 write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
at com.google.gwt.dev.shell.BrowserChannel
 $ReturnMessage.send(BrowserChannel.java:1310)
at com.google.gwt.dev.shell.BrowserChannel
 $ReturnMessage.send(BrowserChannel.java:1315)
at

 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
 340)
at

 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
 218)
at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 136)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
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:213)
at 

How do I get a reference to a div and set its inner HTML?

2011-10-26 Thread laredotornado
Hi,

I'm using GWT 2.4.  I have a click handler attached to a button.
Within the handler, I make an ajax call that returns HTML.  I wish to
populate the innerHTML of a div, given the element's id, but I'm not
sure how to do that.

Any suggestions?  I'm currently working with ...


  public void onSuccess(String result) {
  final DivElement contentDiv = (DivElement)
getWidgetById(CONTENT_DIV_ID);
  contentDiv.setInnerHTML(result);
  }
});

The above currently gives the compile error Cannot cast from Widget
to DivElement.  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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Road Map for GWT?

2011-10-26 Thread sampath sai
Thank you.
Sai

On Wed, Oct 26, 2011 at 6:28 AM, Anton DS anton.ds.alexe...@gmail.comwrote:

 http://code.google.com/p/google-web-toolkit/w/list, here you can get a
 list of new features, some time.

 On Oct 26, 5:40 am, sampath sai vsampath@gmail.com wrote:
  Hi ,
 
  Any one has RoadMap for GWT 2012? Please provide some links..
 
  Thanks,
  Sai

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



Re: How do I get a reference to a div and set its inner HTML?

2011-10-26 Thread KevMo
If you know the ID of an element, you can get it by:

Document.get().getElementById(CONTENT_DIV_ID);

Cheers,
Kevin

On Oct 26, 11:18 am, laredotornado laredotorn...@zipmail.com wrote:
 Hi,

 I'm using GWT 2.4.  I have a click handler attached to a button.
 Within the handler, I make an ajax call that returns HTML.  I wish to
 populate the innerHTML of a div, given the element's id, but I'm not
 sure how to do that.

 Any suggestions?  I'm currently working with ...

           public void onSuccess(String result) {
                   final DivElement contentDiv = (DivElement)
 getWidgetById(CONTENT_DIV_ID);
                   contentDiv.setInnerHTML(result);
           }
         });

 The above currently gives the compile error Cannot cast from Widget
 to DivElement.  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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: CellTable styles incorrectly on IE9

2011-10-26 Thread Simon
I can confirm this bug.  Not only does this affect CellTable, but
DataGrid, CellSampler, and Cell Validation classes.  Anyone can
validate this by navigating to Google's own GWT Showcase at
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable in
IE9.

Where can we officially report this bug so it gets escalated
appropriately?  This is very important because I'm in the midst of a
missionary endeavor to convert to GWT at my company in lieu of
JSF(which in IMHO are much inferior paradigms for most applications),
and I'm losing traction over this! :P

Thanks in advance.

On Sep 24, 9:24 pm, drtman drt...@gmail.com wrote:
 I am using the latest, i.e. 2.4.0, and the latest version of the
 eclipse plugin (just updated last night).  Perhaps it's a some setting
 in IE9, but I have tried turning compatibility view on/off, putting
 the IE=9 meta tag in the html loader file, and a variety of other
 things, but it's just broken.  I am using IE 9.0.8112.16421.

 On Sep 24, 8:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:

  IE9 is supported sinde GWT 2.3.0, what version of GWT are you use?

  2011/9/24 drtman drt...@gmail.com

   If I take the example code directly from the GWT API docs for
   CellTable (i.e. the code for an entry point module that creates and
   displays a contact table with a manual list), the table that is
   displayed has no formatting whatsoever on IE9.  It is just simple left-
   justified text with no styling and nothing is selectable.  If I
   replace the CellTable with a DataGrid, only the paging control
   displays.  On Chrome and Firefox these appear to work.  I have tried
   all combinations of styling, tried replacing the CellTable.Resources
   with my own styling, etc., etc. and it never works.

   Is there a trick to making the new data widgets style properly on IE9?

   --
   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.-Hide quoted text -

  - Show quoted text -

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



Re: CellTable styles incorrectly on IE9

2011-10-26 Thread Patrick Julien
I just tried the showcase link in IE9, it looks identical to chrome.  I can 
select the controls.  I don't know what could be wrong but it's working here

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/hyIsNfsoxZoJ.
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.



SplitLayoutPanel and Widgets using UiBinder

2011-10-26 Thread SigmaBlu
I currently have a SplitLayoutPanel (north, west, center, and south).
I am trying to remove and add a widget based on the users interaction
with the centers widget.

For example, when the user clicks on a tables cell, it will remove the
current widget and replace it with another widget. Unfortunately, im
running into an error and it says that i cant add another widget after
the center.  Can someone please point me to right source.  Thanks.

Regards,
SigmaBlu

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



Re: SplitLayoutPanel and Widgets using UiBinder

2011-10-26 Thread Patrick Julien
You need to put an additional layout in the center, like SimplePanel, you 
then remove and add your widget there.

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



Re: SplitLayoutPanel and Widgets using UiBinder

2011-10-26 Thread Freddie Jefferson
Patrick,
My apologies, but I am not trying to swap out the center panel's widget.
However, I am trying to swap out the West panel's widget.

On Wed, Oct 26, 2011 at 4:46 PM, Patrick Julien pjul...@gmail.com wrote:

 You need to put an additional layout in the center, like SimplePanel, you
 then remove and add your widget there.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/e3TuaSoB8VsJ.
 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: SplitLayoutPanel and Widgets using UiBinder

2011-10-26 Thread Patrick Julien
OK, so use a SimplePanel or whatever you need in the west area and assign 
to that

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



Re: CellTable styles incorrectly on IE9

2011-10-26 Thread Jeff Larsen
I got the same as Patrick. CellTable is filled with styling. 

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



Re: GWT advantages

2011-10-26 Thread Robert Zaleski
It's funny to me that you feel this way, because every large project I've 
worked on using a dynamically typed language has turned into a rats nest 
and has caused me undue headaches with me having to maintain the runtime 
context in my head instead of having that determined for me.  I'm talking 
about once you get into the 30K plus lines of code.

I do think that if you're just adding a menu or some other JS glitz to a 
page, GWT is definitely more than you need, which is why I still hack out 
PERL scripts whenever I want to churn through a file for some quick one off 
analysis.

I know there are large projects written completely in dynamic languages 
though, have you written one, and are there things you do to keep them 
maintainable?  I know you can create a rats nest with JAVA too, but at 
least I always know simple things like what variables I have access to and 
if my refactorings changed every instance calling my function.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/YVrOCcww59EJ.
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.



a total GWT newbie needs help

2011-10-26 Thread Wicca
Hello everyone,
I am very very new to this, but have somehow by hook or by crook,
managed to create a website with pages, links, paypal widgets, etc.
However - I do not know how to write html and only understand a very
small portion of what I read as I look for a solution to my problem.
Therefore I joined this group to see if there is anyone who is willing
to assist me.
What I need is help (by explaining in very simple everyday language)
in getting rid of huge spaces between PayPal buttons on a registration
page I created on the website.
If such a person exists and would reply to this email, I don't think
it would take much time to fix this issue.
I've been looking for the answer for hours and while I find references
to the issue, I can't understand the solutions due to my woeful lack
of programming skill.

I will be eternally grateful, truly.
Thank you,

Wicca

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



回复: a total GWT newbie needs help

2011-10-26 Thread 袁红杰
Does anybody know how to quit these email? i don't want this type  mail sent to 
my box

--- 11年10月27日,周四, Wicca wicca...@gmail.com 写道:


发件人: Wicca wicca...@gmail.com
主题: a total GWT newbie needs help
收件人: Google Web Toolkit google-web-toolkit@googlegroups.com
日期: 2011年10月27日,周四,上午8:03


Hello everyone,
I am very very new to this, but have somehow by hook or by crook,
managed to create a website with pages, links, paypal widgets, etc.
However - I do not know how to write html and only understand a very
small portion of what I read as I look for a solution to my problem.
Therefore I joined this group to see if there is anyone who is willing
to assist me.
What I need is help (by explaining in very simple everyday language)
in getting rid of huge spaces between PayPal buttons on a registration
page I created on the website.
If such a person exists and would reply to this email, I don't think
it would take much time to fix this issue.
I've been looking for the answer for hours and while I find references
to the issue, I can't understand the solutions due to my woeful lack
of programming skill.

I will be eternally grateful, truly.
Thank you,

Wicca

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



Re: a total GWT newbie needs help

2011-10-26 Thread Jeff Chimene
On 10/26/2011 05:03 PM, Wicca wrote:
 Hello everyone,
 I am very very new to this, but have somehow by hook or by crook,
 managed to create a website with pages, links, paypal widgets, etc.
 However - I do not know how to write html and only understand a very
 small portion of what I read as I look for a solution to my problem.
 Therefore I joined this group to see if there is anyone who is willing
 to assist me.
 What I need is help (by explaining in very simple everyday language)
 in getting rid of huge spaces between PayPal buttons on a registration
 page I created on the website.
 If such a person exists and would reply to this email, I don't think
 it would take much time to fix this issue.
 I've been looking for the answer for hours and while I find references
 to the issue, I can't understand the solutions due to my woeful lack
 of programming skill.
 
 I will be eternally grateful, truly.
 Thank you,
 
 Wicca
 

This is probably not the right list for you. You'll want to learn HTML
and CSS for a start. This not the right group to support that endeavor.

There are many HTML/CSS resources on the web, and your local bookstore
has miles of shelf space devoted to these topics.

Bueno Suerte,
jec

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



Re: a total GWT newbie needs help

2011-10-26 Thread Bruno Sandivilli
If you want to build a website, and do not know html, but you've heard about
GWT, you are fine. With GWT you can easily create a simple website 'without
the need to use HTML'. Start by installing the GWT enviorement, and
deploying the sample app.

2011/10/26 Jeff Chimene jchim...@gmail.com

 On 10/26/2011 05:03 PM, Wicca wrote:
  Hello everyone,
  I am very very new to this, but have somehow by hook or by crook,
  managed to create a website with pages, links, paypal widgets, etc.
  However - I do not know how to write html and only understand a very
  small portion of what I read as I look for a solution to my problem.
  Therefore I joined this group to see if there is anyone who is willing
  to assist me.
  What I need is help (by explaining in very simple everyday language)
  in getting rid of huge spaces between PayPal buttons on a registration
  page I created on the website.
  If such a person exists and would reply to this email, I don't think
  it would take much time to fix this issue.
  I've been looking for the answer for hours and while I find references
  to the issue, I can't understand the solutions due to my woeful lack
  of programming skill.
 
  I will be eternally grateful, truly.
  Thank you,
 
  Wicca
 

 This is probably not the right list for you. You'll want to learn HTML
 and CSS for a start. This not the right group to support that endeavor.

 There are many HTML/CSS resources on the web, and your local bookstore
 has miles of shelf space devoted to these topics.

 Bueno Suerte,
 jec

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



Re: Editor not flush values of subeditors

2011-10-26 Thread Cristian Rinaldi
To test I created a new view for Address without presenter injected into
constructor.
And the Address View is not injected into the TerceroEditor view.

And things are just fine.

This works well:

   @UiField
  AddressEditor2 address;  *//AddressEditor is a concrete class.*

  private final TerceroNewView.Presenter presenter;

  @Inject
  public TerceroEditor(  *//Note: not inject sub-view AddressView, UiBinder
make a implementation*
  @Named(Constans.TerceroNewPresenter) TerceroNewView.Presenter
presenter) {

this.presenter = presenter;
ini();
  }

  private void ini(){
root = uiBinder.createAndBindUi(this);
res.erpLgkStyle().ensureInjected();
presenter.onCreate(this);
  }


TerceroNewEditor.ui.xml part:
   ...
   ...
   l:AddressEditor2 ui:field=address/l:AddressEditor2
   ...
   ...

//AddressView implements EditorAddressProxy

public class AddressEditor2 extends Composite implements AddressView {

  private static AddressEditor2UiBinder uiBinder =
GWT.create(AddressEditor2UiBinder.class);

  interface AddressEditor2UiBinder extends UiBinderWidget, AddressEditor2
{
  }

  private HTMLPanel root;

  private AddressView.Presenter presenter;

  @UiField
  ValueBoxEditorDecoratorString address;

  @UiField
  ValueBoxEditorDecoratorInteger number;

  @UiField
  ValueBoxEditorDecoratorString code;

  public AddressEditor2() {
initWidget(uiBinder.createAndBindUi(this));
  }
}

*
-
*
*
-
*
*
*
If you inject the View with a Provider or AsyncProvider or directly not send
the information of Address.
This does not work:

   @ UiField (provided = true)
   AddressView address *//AddressView is a interface that
Implements EditorAddressProxy*

   private final TerceroNewView.Presenter presenter;

@Inject
public TerceroEditor(
  *ProviderAddressView addressView,*
  @Named(Constans.TerceroNewPresenter) TerceroNewView.Presenter
presenter) {

   * this.address = addressView.get();*
this.presenter = presenter;
ini();
 }

private void ini(){
root = uiBinder.createAndBindUi(this);
res.erpLgkStyle().ensureInjected();
presenter.onCreate(this);
}


  TerceroNewEditor.ui.xml part:
   ...
   ...
   l:AddressView ui:field=address/l:AddressView
   ...
   ...

//AddressView implemens EditorAddressProxy
public class AddressEditor implements AddressView {

  interface AddressWidgetUiBinder extends UiBinderHTMLPanel, AddressView {
  }

  private static AddressWidgetUiBinder uiBinder =
GWT.create(AddressWidgetUiBinder.class);

  private HTMLPanel root;

  private AddressView.Presenter presenter;

  @UiField
  ValueBoxEditorDecoratorString address;

  @UiField
  ValueBoxEditorDecoratorInteger number;

  @UiField
  ValueBoxEditorDecoratorString code;

  @Inject
  public AddressEditor(
  @Named(Constans.AddressNewPresenter) AddressView.Presenter presenter)
{

this.presenter = presenter;
init();
  }

  private void init(){
root = uiBinder.createAndBindUi(this);
presenter.onCreate(this);
  }

  @Override
  public Widget asWidget() {
return root;
  }
}

*Gin Module*
*
*
public class ViewModule extends AbstractGinModule {

  @Override
  protected void configure() {



*bind(AddressView.class).to(AddressEditor.class).in(Singleton.class);*
   * bind(TerceroNewView.class).to(TerceroEditor.class).in(Singleton.class);
*

.
.

 *
bind(TerceroNewView.Presenter.class).annotatedWith(Names.named(Constans.TerceroNewPresenter)).to(TerceroNewEditorPresenter.class);
*
*
bind(AddressView.Presenter.class).annotatedWith(Names.named(Constans.AddressNewPresenter)).to(AddressNewPresenter.class);
*

  }
}



A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2011/10/26 Cristian Rinaldi cristian.rina...@logikas.com

 Tanks Thomas for response.
 The rare is that AddressView implements EditorAddreessProxy

 I put the codes below:

 *Extract for TerceroNewView*

 public interface TerceroNewView extends View, EditorTercerosProxy {
   public interface Presenter extends MutablePresenterTerceroNewView{

   }

   RequestFactoryEditorDriverTercerosProxy, ? extends
 EditorTercerosProxy createEditorDriver(
   RequestFactory rf);
 }
 *
 *
 *
 *
 *Extract for TerceroEditor*

 public class TerceroEditor implements TerceroNewView {

   private static TerceroEditorUiBinder uiBinder =
 GWT.create(TerceroEditorUiBinder.class);

   interface TerceroEditorUiBinder extends UiBinderSimplePanel,
 TerceroEditor {
   }

   interface Driver extends 

Re: Popup windows printing

2011-10-26 Thread Mike Dee
It seems easy to popup a new window, but I'm not sure how to stick the
HTML into it.  If Window.open would return a reference to the window,
I could see a way to do it.

Here is another idea.  I can create another module to the GWT app.
It's sole purpose is to handle printing.

The GWT app I'm working on is based on Activities and Places.  The
layout is based on a DockLayoutPanel, which contains a bunch of UI
stuff (that appears when printing and is not wanted).  The new module
will simply contain an HTML panel.

So the benefits of a new module are: works in standard GWT environment
(without much hacking) and allows a different layout from main app.

On Oct 26, 9:07 am, Jeff Chimene jchim...@gmail.com wrote:
 On 10/26/2011 08:38 AM, Mike Dee wrote:

  I was thinking about something like that.  In the posts about popup
  windows this is seen as a negative because it is tricky to setup
  communications between the main window and the popup.  But there
  really is no communication needed in this case.

  Do you see the popup window as a GWT window or just a straight HTML
  window?

 The latter. This is one of those cases where I think that using GWT to
 create the child window doesn't get you anything except a problem
 solved! endorphin rush. As I said earlier, the solution can be made
 arbitrarily complex, so I'm sure that someone will chime in with a
 reason to implement the popup using GWT methods.

 To follow-up on the CSS: I've noticed that when there's a reference to a
 CSS with media type print, then FF opens a print dialog automatically.
 I think Chrome does this too.









  On Oct 26, 7:55 am, Jeffrey Chimene jchim...@gmail.com wrote:
  On 10/26/2011 1:02 AM, Mike Dee wrote:

  I have an app that creates reports, which are basically HTML.  The
  reports need to be printed and that is what I'm trying to figure out.

  I'm porting an older app - that is more of traditional web app.
  Reports are displayed in a page - with a UI wrapped around them.  When
  a user wants to print a report, he clicks a print link, which pops
  up a window with a printer friendly version (no UI elements).  He can
  then selects the browser's print command.  Works nicely.

  I'm trying to figure out how to do that in GWT.  I can display a
  report.  Printing doesn't work well, because it prints all the UI
  stuff too.

  I've looked into separate popup windows.  Most of the messages here
  recommend against doing it.  Instead they suggest using a Dialog box.
  I've tried it and created a Dialog with simply an HTMLPanel.  However,
  selecting File-Print (in the browser) prints the entire page (the
  entire window).

  Any suggestions on a way to do this?

  Here's one idea I've implemented. It's amenable to arbitrary levels of
  complexity.

  Your UI posts a request to your server on user action (e.g. a button
  click event), and opens the result in a new window:
  button type=submit
  form action=printTheCurrentReport _target=_blank method=get
  !-- Depending on how you manage sessions, you might want a session ID
  token in a hidden field --
  /button

  Reminder: you should have css for print media.

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



Re: DataGrid and CellTable

2011-10-26 Thread Craig Mitchell
DataGrid also allows borders the selected cell.

In my experience, CellTable sizes its columns to the data, however, is not 
scrollable.  While DataGrid is scrollable, however, it's columns size only 
on what you ask them to, not on the data contents.

...I live in hope that a CellTable will someday be scrollable (and not just 
be put in a scroll panel - have it so the header is always visible).

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



[gwt-contrib] Re: Fixing a bug in Cell Widgets when using the BOUND_TO_SELECTION KeyboardSelectionPolicy in which ... (issue1578805)

2011-10-26 Thread jlabanca

committed as r10724

http://gwt-code-reviews.appspot.com/1578805/

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


[gwt-contrib] Announce: GwtQuery 1.1.0

2011-10-26 Thread Manuel Carrasco Moñino
The GQuery team is proud to announce the version 1.1.0 of the library.

We have been working hard in order to fix many issues and to achieve a
closed jQuery API.

The new release includes new features like the jQuery Ajax API, Data
binding to easily manage json and xml data, better interaction with
gwt widgets, and improved documentation.

You can see the full list of features in the presentation given in The
RivieraDev last week in France [1] or taking a look to the project
wiki pages [2]

[1] 
http://www.slideshare.net/dodotis/gquery-a-jquery-clone-for-gwt-rivieradev-2011
[2] http://code.google.com/p/gwtquery/w/list


Thanks so much to the people sending issues, testing, and using the library.

- GQuery Team

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


Re: [gwt-contrib] Re: loading live, instantly-generated data from the server and displaying it as a line graph

2011-10-26 Thread arif
Thank you for the reply!
Is there any example/tutorial you could refer to that explains this in more
detail?
BTW, which users group you were referring to?


On Tue, Oct 25, 2011 at 12:07 PM, Jeff Larsen larse...@gmail.com wrote:

 This is probably a better discussion for the users group, but I'll answer
 it anyway. I'm using HighCharts for some of my charting needs, you'll just
 need to send the data down to the charting software and either poll for new
 data, or implement server push/cometd and have it update the graph that
 way.

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




-- 
Thanks,
*S. M. Niaz Arifin*
Graduate Student
206 Cushing, Department of Computer Science and Engineering
University of Notre Dame, IN 46556, USA
*Research*: https://sites.google.com/a/nd.edu/publications
*Website*: http://smniazarifin.tripod.com

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

[gwt-contrib] Re: Switch to internal implementation of StringInterner to avoid class loader (issue1578804)

2011-10-26 Thread tobyr

LGTM

Still not really fond of the manual sharding, but it's hard to argue
against fixed without regression.


http://gwt-code-reviews.appspot.com/1578804/diff/4004/dev/core/test/com/google/gwt/dev/util/StringInternerTest.java
File dev/core/test/com/google/gwt/dev/util/StringInternerTest.java
(right):

http://gwt-code-reviews.appspot.com/1578804/diff/4004/dev/core/test/com/google/gwt/dev/util/StringInternerTest.java#newcode87
dev/core/test/com/google/gwt/dev/util/StringInternerTest.java:87:
private static String makeString(int[] array) {
Dead code?

http://gwt-code-reviews.appspot.com/1578804/

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


[gwt-contrib] Re: r10697 is back! It was falsely accused last time. Fingers crossed: (issue1578806)

2011-10-26 Thread rchandia


http://gwt-code-reviews.appspot.com/1578806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
File user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
(right):

http://gwt-code-reviews.appspot.com/1578806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java#newcode216
user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java:216:
Boolean rtn = extractConfigProperty(logger, propertyOracle,
LAZY_WIDGET_BUILDERS_PROPERTY, false);
On 2011/10/26 20:28:37, rdayal wrote:

Do you want to set the default value to true?


Done.

http://gwt-code-reviews.appspot.com/1578806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
File user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
(right):

http://gwt-code-reviews.appspot.com/1578806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1009
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1009: return
tokenForStringExpression(source, expression);
On 2011/10/26 20:28:37, rdayal wrote:

Why was this change necessary?


Quoting rjrjr in the original issue:

Fixes unreported bad code gen for things like
a href={uh.oh} when safehtml is off. Fix is a bit squirrelly, but
the intent is to delete the code
in question almost immediately if nothing blows up with new default.

http://gwt-code-reviews.appspot.com/1578806/

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


[gwt-contrib] Make form event getTypes public. (issue1582803)

2011-10-26 Thread stephen . haberman

Reviewers: rjrjr,

Message:
I was writing some stubs for FormPanel and couldn't access the event
types from another package. So far all the events I've needed have an
accessible getType method, so I think this change is okay.



Please review this at http://gwt-code-reviews.appspot.com/1582803/

Affected files:
  M user/src/com/google/gwt/user/client/ui/FormPanel.java


Index: user/src/com/google/gwt/user/client/ui/FormPanel.java
diff --git a/user/src/com/google/gwt/user/client/ui/FormPanel.java  
b/user/src/com/google/gwt/user/client/ui/FormPanel.java
index  
6143ff5d436634290d41cb2d1c994951be2635a0..fe35fa85619934dc64feb4c8b1f4b71e6ea5d8c1  
100644

--- a/user/src/com/google/gwt/user/client/ui/FormPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/FormPanel.java
@@ -75,7 +75,7 @@ public class FormPanel extends SimplePanel implements  
FiresFormEvents, FormPanel

  *
  * @return the handler hook
  */
-static TypeSubmitCompleteHandler getType() {
+public static TypeSubmitCompleteHandler getType() {
   if (TYPE == null) {
 TYPE = new TypeSubmitCompleteHandler();
   }
@@ -95,7 +95,7 @@ public class FormPanel extends SimplePanel implements  
FiresFormEvents, FormPanel


 @Override
 public final TypeSubmitCompleteHandler getAssociatedType() {
-  return TYPE;
+  return getType();
 }

 /**
@@ -142,7 +142,7 @@ public class FormPanel extends SimplePanel implements  
FiresFormEvents, FormPanel

  *
  * @return the handler hook
  */
-static TypeSubmitHandler getType() {
+public static TypeSubmitHandler getType() {
   if (TYPE == null) {
 TYPE = new TypeSubmitHandler();
   }
@@ -161,7 +161,7 @@ public class FormPanel extends SimplePanel implements  
FiresFormEvents, FormPanel


 @Override
 public final TypeFormPanel.SubmitHandler getAssociatedType() {
-  return TYPE;
+  return getType();
 }

 /**


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


[gwt-contrib] Re: Make form event getTypes public. (issue1582803)

2011-10-26 Thread stephen . haberman


http://gwt-code-reviews.appspot.com/1582803/diff/1/user/src/com/google/gwt/user/client/ui/FormPanel.java
File user/src/com/google/gwt/user/client/ui/FormPanel.java (left):

http://gwt-code-reviews.appspot.com/1582803/diff/1/user/src/com/google/gwt/user/client/ui/FormPanel.java#oldcode98
user/src/com/google/gwt/user/client/ui/FormPanel.java:98: return TYPE;
This was returning null if I instantiated an event and called
getAssociatedType before getType was called. I'm not sure if this was a
purposeful optimization, but it seems safer to use getType.

http://gwt-code-reviews.appspot.com/1582803/

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