Re: GWT as an external library (GWT bookmarklet)

2010-12-15 Thread amjibaly
Referencing the same question on stackoverflow:

http://stackoverflow.com/questions/4434946/gwt-bookmarket-or-gwt-as-an-external-library

On Dec 13, 4:53 pm, amjibaly  wrote:
> I simply want to load a GWT app by adding a script tag to the DOM,
> however because the GWT linker uses document.write() I'm unable to
> find any good way of doing so. I've found some hacks for doing so on
> various blog posts but they all seem to fail with the latest version
> of GWT. Any reasonably non-invasive approach for doing this come to
> mind?

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



Re: How to reliably detect a paste operation via mouse in TextBox?

2010-12-15 Thread Sunit Katkar
Any ideas??


- Sunit Katkar
http://sunitkatkar.blogspot.com/



On Tue, Dec 14, 2010 at 2:25 PM, Sunit Katkar  wrote:

> I have a simple GWT TextBox widget.
>
> When a user types anything in it, I listen for keyboard events and enable a
> button.
>
> Now if the user simply copies the text from some other browser window using
> the mouse and the mouse context menu and then uses the same mouse context
> menu to paste in the TextBox, this event is not detected.
>
> So I extended a TextBox and added a sinkEvents(Event.ONPASTE); in the
> constructor.
>
> Also in the onBrowserEvent() method I check for the event type. If its a
> Event.ONPASTE, I fire a ValueChangeEvent.fire()
>
> Now in the event handling code, I override the
> onValueChange(ValueChangeEvent event) and detect any change and
> enable the button.
>
> So far so good. The problem is with Google Chrome browser. Firefox and IE7,
> IE8 detect this mouse based paste correctly, but Chrome does not.
>
> Any ideas?
>
> - Sunit Katkar
> http://sunitkatkar.blogspot.com/
>
>
>

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



Re: GWT + Google Maps (JSNI) put a map in a panel

2010-12-15 Thread mp31415
Last time I tried that project (gwt-google-maps-v3) it was rather raw
(buggy). And it seems completely dead by now as there were no new
releases since May, 2010.
It's sad that there is no decent java wrapper for the v3 maps.

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



Re: Db Connectivity

2010-12-15 Thread David Chandler
Vindhya,

Getting back to the root of your original question, you can't connect
directly to a database with GWT because there's no way to connect to a
database directly from JavaScript. Instead, you create a GWT service
and implement it on the server, where you can connect to a database
using JDBC or any Java persistence framework. Here's an article on
using GWT with Hibernate that you will hopefully find helpful:

http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html

And this link explains how to communicate with the server using GWT-RPC:

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

/dmc

On Thu, Dec 9, 2010 at 2:51 PM, Vindhya  wrote:
> Hello Friends,
>
> I am new to GWT and I am developing an application, - a form based
> one, to insert/delete/edit tuples in a set of tables.
>
> I am facing problems with the connectivity to the database.
>
> I kept getting an error:
> java.sql.Connection can not be found in source packages. Check the
> inheritance chain from your module; it may not be inheriting a
> required module or a module may not be adding its source path entries
> properly.
>
> The code I wrote is as follows:
>
> 
> package com.company.rulesengine.client;
>
> import java.sql.*;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.event.dom.client.ClickEvent;
> import com.google.gwt.event.dom.client.ClickHandler;
> import com.google.gwt.user.client.Window;
> import com.google.gwt.user.client.ui.Button;
> import com.google.gwt.user.client.ui.RootPanel;
> import com.google.gwt.user.client.ui.Label;
> import com.google.gwt.user.client.ui.TextBox;
>
> /**
>  * Entry point classes define onModuleLoad().
>  */
>
> public class RulesEngineUI implements EntryPoint {
>
>        public Connection conn= null;
>
>        RulesEngineUI()
>        {
>                //establishing a database connection
>
>            try
>            {
>              Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
>              String url = "<>";
>              conn = DriverManager.getConnection(url, "SYSTEM", "vindhya");
>             // doTests();
>                 System.out.println("DONE!");
>              conn.close();
>            }
>            catch (Exception ex) {System.err.println(ex.getMessage());}
>
>          }
>        private Button clickMeButton;
>        public void onModuleLoad()
>        {
>
>                RootPanel rootPanel = RootPanel.get();
>
>                clickMeButton = new Button();
>                rootPanel.add(clickMeButton, 232, 236);
>                clickMeButton.setText("Insert");
>
>                Label lblEmployeeId = new Label("Employee ID");
>                rootPanel.add(lblEmployeeId, 30, 61);
>
>                Label lblName = new Label("Employee Name");
>                rootPanel.add(lblName, 26, 142);
>
>                TextBox textBox = new TextBox();
>                rootPanel.add(textBox, 233, 59);
>
>                TextBox textBox_1 = new TextBox();
>                rootPanel.add(textBox_1, 232, 142);
>                clickMeButton.addClickHandler(new ClickHandler(){
>                        public void onClick(ClickEvent event) {
>                                Window.alert("Hello, GWT World!");
>                        }
>                });
>        }
> }
> 
>
> Any help in this regard will be well appreciated.
>
> Thank you,
> Vindhya
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: build GWT from source, only can do on Linux?

2010-12-15 Thread Mike
yes, i'm sure i put GWT_TOOLS right, because when i manually remove the 
"tools" folder, when compile, it pops "GWT_TOOLS" not set. i also followed 
the many threads talking about this topic, i tried nearly every methods but 
no luck, hope someone made this successfully shed some light on this. 
thanks.

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



Re: Db Connectivity

2010-12-15 Thread John LaBanca
Thanks,
John LaBanca
jlaba...@google.com


On Wed, Dec 15, 2010 at 7:35 PM, David Chandler wrote:

>
> http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html
>
> On Wed, Dec 15, 2010 at 6:39 PM, Ashok  wrote:
> >
> > Hi,
> >
> >  Asynchronous calls? What does this mean? I tried using threads. But,it
> gives
> > the error: ClassName cannot be found in the source package! If you can
> give some
> > example pages on Asynchronous calls, would be very helpful. Thanks in
> advance!
>
GWT does not support threads... nor does JavaScript.  Asynchronous means
that you trigger an event to be completed some time in the future.  There
are two variations in GWT: asynchronous RPC calls to the server, and
timers/scheduled commands.  RPC calls send a request to the server, then at
some later point, the server responds and triggers a callback.

Timers/Scheduled Commands (see Scheduler) specify a method to run after some
timeout.  However, keep in mind that JavaScript is single threaded.  Lets
say you schedule a Timer for 1ms, then synchronously perform 100ms worth of
code execution.  Since JavaScript is single threaded, your Timer will not
fire for at least 100ms, even though you scheduled it for 1ms.  Its
asynchronous because the code in the Timer executes after the current
execution block.


> >
> >
> > --
> > 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.
> >
> >
>
>
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> http://googlewebtoolkit.blogspot.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Db Connectivity

2010-12-15 Thread David Chandler
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html

On Wed, Dec 15, 2010 at 6:39 PM, Ashok  wrote:
>
> Hi,
>
>  Asynchronous calls? What does this mean? I tried using threads. But,it gives
> the error: ClassName cannot be found in the source package! If you can give 
> some
> example pages on Asynchronous calls, would be very helpful. Thanks in advance!
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: How to display an ampersand using UiBinder?

2010-12-15 Thread Hilco Wijbenga
On 15 December 2010 15:06, Nick Newman  wrote:
> You say that using A & B & C obviously fails (because the ampersand is
> illegal in the XML).  Does using a CDATA section to make it legal work?

:-) Nice one! Yes, GWT finds that acceptable.

Unfortunately, I still need to use g:HTML instead of g:Label as Mauro
indicated. It's not a very big deal since the generated HTML is the
same except for the CSS class name used. I just wish I could treat all
labels the same.

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



Browser plugins (quicktime, custom) in GWT

2010-12-15 Thread Myles Bostwick
I found http://code.google.com/p/bst-player/ for doing players the GWT way 
and it's just what I was looking for, except it seems to always include 
everything even if only a Quicktime player is used. Are there any more 
choices out there? I certainly can modify this code, but why re-invent the 
wheel if I don't have too...

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



Re: Db Connectivity

2010-12-15 Thread Ashok

Hi,

 Asynchronous calls? What does this mean? I tried using threads. But,it gives
the error: ClassName cannot be found in the source package! If you can give some
example pages on Asynchronous calls, would be very helpful. Thanks in advance! 


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



Re: How to display an ampersand using UiBinder?

2010-12-15 Thread Nick Newman
You say that using A & B & C obviously fails (because the ampersand is
illegal in the XML).  Does using a CDATA section to make it legal work?

Nick

On Wed, Dec 15, 2010 at 3:31 PM, Mauro Bertapelle <
mauro.bertape...@gmail.com> wrote:

> Label is not meant to contain html, use an HTML class instead:
> A & B
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: importing sample and tutorial apps

2010-12-15 Thread Chris Conroy
the eclipse projects are underneath trunk/eclipse/samples

The samples don't have the GWT nature set for GPE to know that they are GWT
projects. This is partly legacy and partly out of concern for those that
don't use GPE. Thought there has been some talk about modernizing them
(read: GPE'ifying them) recently.

On Wed, Dec 15, 2010 at 5:41 PM, Richard Hall  wrote:

> It is what I'm trying to do, but the install of the GWT SDK samples
> directory seems to be missing whatever build and/or configuration files are
> required to tell Eclipse that there are Java GWT projects in that folder -
> this is what my SDK folder contains:
>
> build.xml
> \DynaTable
> \DynaTableRf
> \Expenses
> \LogExample
> \Mail
>\src
>\test
>\war
>build.xml
>README.txt
> Showcase
>
> The result of trying to use the Import Wizard on the samples directory or
> the Mail subdirectory is:
>
> "No projects are found to import"
>
> Do I need to use another utility to process the sample apps directory? (the
> build.xml files seem to imply ANT, but that seems a little heavy handed for
> importing sample source code)  Perhaps the process for importing in Eclipse
> has changed since the last publishing of the sample source code? - but I
> haven't yet discovered any alternatives...
>
> I am moderately new to Eclipse, but moderately experienced with coding
> platforms.  If I know what direction to take, I'm sure I can make it work.
>  This just doesn't seem to adhere to anything I've experienced before.
>
> Thanks for your help.
>
> BTW - From what I have done so far with GWT, it looks to be a fantastic
> platform.  Great work.  I'm very much looking forward to using it and GAE in
> the near future.
>
> On Wed, Dec 15, 2010 at 2:08 PM, David Chandler wrote:
>
>> Richard,
>>
>> Agreed, we need better docs on this. All the Eclipse sample projects
>> are under the eclipse folder in the root dir. You should be able to
>> import them into Eclipse with File | Import existing project. Or is
>> that what you're trying?
>>
>> /dmc
>>
>> On Wed, Dec 15, 2010 at 3:41 PM, Richard Hall 
>> wrote:
>> > Like my noob friend above, I've also had lots of difficulty trying to
>> > import GWT sample apps, and other than slowly copy-pasting portions of
>> > code and reconfiguring, I cannot find any other way to import apps
>> > like the "Sample Mail app" or others like it.
>> >
>> > I absolutely cannot believe that this kind of functionality has been
>> > overlooked by those smart eclipse / GWT developers.  But I have been
>> > searching for days for alternatives, without success.  Either it's
>> > overly obvious or very subtle that I am not "getting it".
>> >
>> > I'm running GWT 2.0.4 and Eclipse 3.5.
>> >
>> > BTW, The link above seems to be redirected now to an irrelevant
>> > article.
>> >
>> > Any help is appreciated - Thanks,
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Google Web Toolkit" group.
>> > To post to this group, send email to
>> google-web-tool...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> > For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> >
>> >
>>
>>
>>
>> --
>> David Chandler
>> Developer Programs Engineer, Google Web Toolkit
>> http://googlewebtoolkit.blogspot.com/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: To GWT or Not to GWT

2010-12-15 Thread Paul Robinson
I haven't used gwt-exporter, or any non-trivial JSNI, so what I'm about 
to say may be rubbish.

http://code.google.com/p/gwt-exporter/

If you want multiple gadget-like things to work together that have been 
compiled separately, you could:

(1) Put each gadget-like thing into its own project
(2) Use gwt-exporter to create a javascript API
(3) Compile your gadget-like thing, and publish the resulting javascript 
with its API.
(4) Create a GWT wrapper that uses JSNI to talk to the javascript API, 
creating a GWT Java API
(5) Distribute the javascript compiled in (3) together with the java 
source code for the wrapper you created in (4)


Then somebody could pull many of these gadget-like things together in a 
big mashup.


If you wanted to add these gadget-like things together at *runtime*, you 
could do that if you just rely on the javascript API. If you're happy to 
GWT-compile the mashup, then you could use the GWT java wrappers so that 
the mashup could avoid JSNI, relying on the wrappers doing JSNI for you.


However:
(a) I don't know what, if any, bootstrapping you'd need to do for each 
of the gadget-like things.
(b) You might suffer from some duplication that a monolithic compile 
could optimize away. But you could provide common services into another 
gadget-like thing, and let other gadget-like things call its GWT wrapper.
(c) All this might be made to work, but there may be a better way that 
doesn't involve GWT

(d) I've no idea how you'd debug it as a whole

Paul


On 14/12/10 21:57, bkard...@gmail.com wrote:

GWT's monolithic compile makes for really efficient JavaScript/
Resource downloads.  In terms of providing a solution to the sort of
"traditional" kinds of web app problems, it's hard to argue that GWT
couldn't optimize whatever a developer would write because developers
write for flexibility - whereas the compile is about "there is 1 use
at the end of the day and everything else is just noise".

I'm sort of wondering though, are there classes of problems that GWT
is admittedly not a good fit for (specifically, according to the GWT
team itself) specifically because of that approach?

It's kind of hard to explain a concrete example, but let's try this:
If every gadget for iGoogle had to be developed in GWT - each iGoogle
gadget would contain everything that it needed and rely on nothing
shared, despite the fact that most gadgets would (according to the
compile reports) potentially share as much as 99% of their
dependencies.  Simply because they are disparate compiles, the
compiler's view into the world is just too small...

Hypothetically speaking, if the average gadget were something like
50k, and something like 48k of that was just "core stuff", this
implies that a page with 10 gadgets would be something like 500k (of
just script), but 480k of that was largely just "repeated" core code.
I suppose it guarantees that things won't "break" to an extent with
versioning, but wouldn't it be more efficient in this hypothetical
example to have coded the flexibility into the gadget "container"
once?  In other words - if the core were provided and the gadgets
merely used it, the total size of the page would be 68k instead of
500... Right?  And the more gadgets are there, the bigger the
"savings".

In this kind of case - would the GWT team say "GWT is the right
choice" or no?

   


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



Re: importing sample and tutorial apps

2010-12-15 Thread Richard Hall
It is what I'm trying to do, but the install of the GWT SDK samples
directory seems to be missing whatever build and/or configuration files are
required to tell Eclipse that there are Java GWT projects in that folder -
this is what my SDK folder contains:

build.xml
\DynaTable
\DynaTableRf
\Expenses
\LogExample
\Mail
   \src
   \test
   \war
   build.xml
   README.txt
Showcase

The result of trying to use the Import Wizard on the samples directory or
the Mail subdirectory is:

"No projects are found to import"

Do I need to use another utility to process the sample apps directory? (the
build.xml files seem to imply ANT, but that seems a little heavy handed for
importing sample source code)  Perhaps the process for importing in Eclipse
has changed since the last publishing of the sample source code? - but I
haven't yet discovered any alternatives...

I am moderately new to Eclipse, but moderately experienced with coding
platforms.  If I know what direction to take, I'm sure I can make it work.
 This just doesn't seem to adhere to anything I've experienced before.

Thanks for your help.

BTW - From what I have done so far with GWT, it looks to be a fantastic
platform.  Great work.  I'm very much looking forward to using it and GAE in
the near future.

On Wed, Dec 15, 2010 at 2:08 PM, David Chandler wrote:

> Richard,
>
> Agreed, we need better docs on this. All the Eclipse sample projects
> are under the eclipse folder in the root dir. You should be able to
> import them into Eclipse with File | Import existing project. Or is
> that what you're trying?
>
> /dmc
>
> On Wed, Dec 15, 2010 at 3:41 PM, Richard Hall  wrote:
> > Like my noob friend above, I've also had lots of difficulty trying to
> > import GWT sample apps, and other than slowly copy-pasting portions of
> > code and reconfiguring, I cannot find any other way to import apps
> > like the "Sample Mail app" or others like it.
> >
> > I absolutely cannot believe that this kind of functionality has been
> > overlooked by those smart eclipse / GWT developers.  But I have been
> > searching for days for alternatives, without success.  Either it's
> > overly obvious or very subtle that I am not "getting it".
> >
> > I'm running GWT 2.0.4 and Eclipse 3.5.
> >
> > BTW, The link above seems to be redirected now to an irrelevant
> > article.
> >
> > Any help is appreciated - Thanks,
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> >
>
>
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> http://googlewebtoolkit.blogspot.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: To GWT or Not to GWT

2010-12-15 Thread bkard...@gmail.com
I'm not really sure how to respond to that other than to say, "yes, we
understand the alternatives and the theory/practice" :)

Thanks.

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



Re: How to display an ampersand using UiBinder?

2010-12-15 Thread Mauro Bertapelle
Label is not meant to contain html, use an HTML class instead:
A & B

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



Re: Jetty WTP problems (Jetty is publishing to temp dir)

2010-12-15 Thread Peter Barker
On Wednesday, December 15, 2010 9:29:43 PM UTC, Peter Barker wrote:
>
>
>> It's working OK for all 5 developers of our team (I'm the only one on 
>> Windows, all others on Ubuntu 10.04 or 10.10)
>>
>>
> I'm going through the points you mentioned but wonder if you could tell me 
> what version of Jetty you're using on Windows? I'm on 6.1.26.
>
>
I think this is my problem. I've upgraded to 7.22 and got a different WTP 
server adaptor and it isn't doing the war file extraction anymore. I did get 
a bit confused with the Jetty versions as there seemed to be different 
organisations updating it so I grabbed the latest version from Mortbay. This 
is where I went wrong.

BTW (assuming you're on 7.x too), when you change web.xml does it 
automatically republish? It doesn't appear to here but I guess that's not a 
major issue and maybe it's by design?

Thanks for your responses.

Pete

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



Re: Jetty WTP problems (Jetty is publishing to temp dir)

2010-12-15 Thread Peter Barker

>
>
> It's working OK for all 5 developers of our team (I'm the only one on 
> Windows, all others on Ubuntu 10.04 or 10.10)
>
>
I'm going through the points you mentioned but wonder if you could tell me 
what version of Jetty you're using on Windows? I'm on 6.1.26.

Thanks,

Pete

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



Re: importing sample and tutorial apps

2010-12-15 Thread David Chandler
Richard,

Agreed, we need better docs on this. All the Eclipse sample projects
are under the eclipse folder in the root dir. You should be able to
import them into Eclipse with File | Import existing project. Or is
that what you're trying?

/dmc

On Wed, Dec 15, 2010 at 3:41 PM, Richard Hall  wrote:
> Like my noob friend above, I've also had lots of difficulty trying to
> import GWT sample apps, and other than slowly copy-pasting portions of
> code and reconfiguring, I cannot find any other way to import apps
> like the "Sample Mail app" or others like it.
>
> I absolutely cannot believe that this kind of functionality has been
> overlooked by those smart eclipse / GWT developers.  But I have been
> searching for days for alternatives, without success.  Either it's
> overly obvious or very subtle that I am not "getting it".
>
> I'm running GWT 2.0.4 and Eclipse 3.5.
>
> BTW, The link above seems to be redirected now to an irrelevant
> article.
>
> Any help is appreciated - Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



importing sample and tutorial apps

2010-12-15 Thread Richard Hall
Like my noob friend above, I've also had lots of difficulty trying to
import GWT sample apps, and other than slowly copy-pasting portions of
code and reconfiguring, I cannot find any other way to import apps
like the "Sample Mail app" or others like it.

I absolutely cannot believe that this kind of functionality has been
overlooked by those smart eclipse / GWT developers.  But I have been
searching for days for alternatives, without success.  Either it's
overly obvious or very subtle that I am not "getting it".

I'm running GWT 2.0.4 and Eclipse 3.5.

BTW, The link above seems to be redirected now to an irrelevant
article.

Any help is appreciated - Thanks,

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



Re: To GWT or Not to GWT

2010-12-15 Thread David Chandler
Brian,

Yes, all of GWT is open source. For more info, see

http://code.google.com/webtoolkit/makinggwtbetter.html

Happy exploring.

/dmc


On Wed, Dec 15, 2010 at 3:18 PM, Brian Kardell  wrote:
> Thanks David.
> I'll say that before posting anything on here I spent hours searching
> through these groups and found a lot of people looking for some kind of
> reuse very much related to this same kind of problem - but nothing
> especially helpful in the way of a solution... It almost seems like it
> should be doable with just a little bit more the compiler side or something.
> Is the compiler source available?  I have looked briefly into linkers, but I
> fear that the big hangup for us is really the base stuff which probably
> isn't addressable from the linkers.  Any advice on somewhere I can follow up
> with those kinds of interests?
> -Brian
>
>
> On Wed, Dec 15, 2010 at 3:08 PM, David Chandler 
> wrote:
>>
>> Fair enough, bkardell. GWT cannot optimize code that cannot be
>> compiled together. If it's a requirement for you that each widget is a
>> separate JavaScript, then you'd have to compile a few and see whether
>> the GWT optimizations such as dead code elimination outweigh the
>> effects of compiling multiple times the commonly used parts of the
>> shared libraries.
>>
>> GWT's sweet spot, IMHO, is building rich Internet applications that
>> feel like a desktop app but run in a browser. GWT can break the app
>> into multiple pieces using code splitting (runAsync), but if the
>> pieces aren't part of the same compile as in your case, that won't
>> help.
>>
>> /dmc
>>
>> On Wed, Dec 15, 2010 at 2:31 PM, bkard...@gmail.com 
>> wrote:
>> > Ok, a few things.
>> >
>> > 1) Thanks for the response.
>> > 2) Please have some patience, I'm really trying my best to communicate
>> > what seems to me a perfectly rational question that I feel like I am
>> > directing at exactly the right people.  If I come across unclearly, I
>> > will be more than happy to try to clarify.
>> > 3) The examples that both @clintjhill and I gave specified that these
>> > are disparate code bases that _can not_ be compiled together.  It is
>> > possible to specify things that can and can't be used, even an API -
>> > but they aren't owned by the same entity...  That's really why I tried
>> > to use "something like" iGoogle as an example because it's sort of the
>> > most analogous thing I can think of... It's a Mashup situation where
>> > there can potentially be many, many components shoved together from
>> > disparate (but trusted) sources.  If I recall, I think that the gadget
>> > container actually _does_ provide some common API for tabs and rpc and
>> > things... I'm not sure if that's re-incuded every time, but that's the
>> > idea - do we have to reinclude it every time?  I think that
>> > @clintjhill's example is more literal/concise so if you are more
>> > comfortable with that, the only addition I would like to make is that
>> > it is perhaps a little too small  (not just repeated, but repeated
>> > potentially many, many times) to demonstrate my concern
>> > 4) Note the end of the question above  "... if the GWT team had such a
>> > problem at hand - would they choose GWT" is followed immediately by
>> > "... and if so, how would they deal with the implications spelled out
>> > above?"
>> >
>> > I just want to say... There are languages and tools that I use, that I
>> > _love_ in fact, which would just be the wrong choice if that's not the
>> > problem space that they are focused on solving.  I think, if I had no
>> > desire to use GWT - why would I be asking...right?
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Google Web Toolkit" group.
>> > To post to this group, send email to
>> > google-web-tool...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > google-web-toolkit+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/google-web-toolkit?hl=en.
>> >
>> >
>>
>>
>>
>> --
>> David Chandler
>> Developer Programs Engineer, Google Web Toolkit
>> http://googlewebtoolkit.blogspot.com/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
David Chandler
Developer Progr

Re: To GWT or Not to GWT

2010-12-15 Thread David Chandler
Myles,

If your library code is JavaScript, you can always use JSNI methods in
GWT to call it. You could turn off optimizations in order to make GWT
produce such a JS, but GWT is designed to produce a highly-optimized
JavaScript for your app, not lots of little library JavaScripts, each
with potentially unused code.

I'm pretty sure a "shared library" feature has been requested on the
issue tracker, but I can't find it at the moment. For the time being,
code splitting (which requires a single Java code base) is the only
way to break a large GWT app into multiple JavaScripts.

/dmc

On Wed, Dec 15, 2010 at 3:17 PM, Myles Bostwick  wrote:
> Even if the code is not being compiled together, it seems like a library
> module could be created that could then be shared by all widgets in this
> scenario.  Someone please correct me if I'm wrong.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: To GWT or Not to GWT

2010-12-15 Thread bkard...@gmail.com
Yeah... That's a red herring, let's not pursue that any further :)  It
has nothing to do with anyone's location - everything to do with
separate codebases/projects.


On Dec 15, 3:30 pm, Christian Goudreau 
wrote:
> > Distributed Teams, should use Distributed Version Control Systems. doesnt
> > matter they are in different rooms or different continents, they commit to
> > same Source Code Repository!
>
> I have to agree with that !
>
>
>
>
>
> On Wed, Dec 15, 2010 at 3:29 PM, zixzigma  wrote:
>
> > On Dec 15, 11:07 am, clintjhill  wrote:
> > > To add an important part to the conversation.
>
> > > Widget #1 is developed by a team in CA.
> > > Widget #2 is developed by a team in AZ.
> > > They both have access to and utilize the 3 shared libraries.
>
> > Distributed Teams, should use Distributed Version Control Systems.
> > doesnt matter they are in different rooms or different continents,
> > they commit to same Source Code Repository!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Christian Goudreauwww.arcbees.com

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



Re: To GWT or Not to GWT

2010-12-15 Thread zixzigma
if you use JQuery or any other Library,
there is a core JSLibrary,
and third party plugins.

in a typical app/site you end up adding plugin after plugin to your
site/app.

each of those plugins are developed by separate developer somewhere in
the world.
they might have used similar utility library, but when you use them
together you have no idea.

so this problem is not a GWT related problem.

your team/company should put in a place a process regarding code-
reuse.

one alternative could be to rely on only one 3rd party provider, such
as Ext,
you can be pretty sure that they have a common base library
underneath.
you might have to pay. well decisions are about tradeoff.
the other alternative is assembling random plugins over the internet,
developed by developers with varying degree of skills.
you end up with bloated tangled JavaScript code, where plugin after
plugin,
contains duplicate code. this is the case with JQuery plugins.

JQuery itself is a neat library,
but if you assemble random plugins you found over the internet,
the problem you described also applies.

and it is not just JavaScript,in any programming language,
if you rely on third-party packages/libraries, there is a good chance
there might be a fair amount of duplication,
resulting in larger size of file.
thats why in Java World, build tools such as Maven, help manage
dependencies, so you don't use more than what you need.
but even then, each of the .jar in your project, might have used
custom String/Math/Algorithms utility classes.


it is not a GWT problem, becareful when using external libraries.
tradeoff: you get a piece of functionality out of the box VS
maintainability and duplication

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



Re: CssResource @def in UiBinder

2010-12-15 Thread John
Not really what I'm going for.  You get that same functionality with



I want to be able to do:

 common.css -
@def COLOR_THREE #aaeeaa;

 *.ui.xml -

.myViewSpecificCss {
 border: 1px solid COLOR_THREE;
}


I know you can do


.myViewSpecificCss {
 border: 1px solid COLOR_THREE;
}


but the css file with the definitions is in a different project, so I
can't relatively reference it.  There should be a way to get the @def
definitions from a CSS resource made available in a  tag.

On Dec 15, 1:48 pm, Myles Bostwick  wrote:
> I'm not sure if this is exactly what you're talking about or not, but I've
> got a common ResourceBundle that I use in my uibinder that I use like so:
>
> Included in ui.xml
> 
>
> Included in view
>         @UiFactory /* this method allows ui.xml to access an instance of a
> resource */
> public IResources getIResources() {
> return IResources.INSTANCE;
>
> }
>
> Which allows me to use a common resource bundle across my uibinder uis.

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



Re: To GWT or Not to GWT

2010-12-15 Thread clintjhill
On the face of it. Sure.

But until you understand a development environment - don't be hasty
with absolutes.

On Dec 15, 1:30 pm, Christian Goudreau 
wrote:
> > Distributed Teams, should use Distributed Version Control Systems. doesnt
> > matter they are in different rooms or different continents, they commit to
> > same Source Code Repository!
>
> I have to agree with that !
>
>
>
>
>
>
>
>
>
> On Wed, Dec 15, 2010 at 3:29 PM, zixzigma  wrote:
>
> > On Dec 15, 11:07 am, clintjhill  wrote:
> > > To add an important part to the conversation.
>
> > > Widget #1 is developed by a team in CA.
> > > Widget #2 is developed by a team in AZ.
> > > They both have access to and utilize the 3 shared libraries.
>
> > Distributed Teams, should use Distributed Version Control Systems.
> > doesnt matter they are in different rooms or different continents,
> > they commit to same Source Code Repository!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Christian Goudreauwww.arcbees.com

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



Re: To GWT or Not to GWT

2010-12-15 Thread Christian Goudreau
>
> Distributed Teams, should use Distributed Version Control Systems. doesnt
> matter they are in different rooms or different continents, they commit to
> same Source Code Repository!


I have to agree with that !

On Wed, Dec 15, 2010 at 3:29 PM, zixzigma  wrote:

>
>
> On Dec 15, 11:07 am, clintjhill  wrote:
> > To add an important part to the conversation.
> >
> > Widget #1 is developed by a team in CA.
> > Widget #2 is developed by a team in AZ.
> > They both have access to and utilize the 3 shared libraries.
>
> Distributed Teams, should use Distributed Version Control Systems.
> doesnt matter they are in different rooms or different continents,
> they commit to same Source Code Repository!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Christian Goudreau
www.arcbees.com

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



Re: To GWT or Not to GWT

2010-12-15 Thread zixzigma


On Dec 15, 11:07 am, clintjhill  wrote:
> To add an important part to the conversation.
>
> Widget #1 is developed by a team in CA.
> Widget #2 is developed by a team in AZ.
> They both have access to and utilize the 3 shared libraries.

Distributed Teams, should use Distributed Version Control Systems.
doesnt matter they are in different rooms or different continents,
they commit to same Source Code Repository!

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



Re: To GWT or Not to GWT

2010-12-15 Thread Brian Kardell
Yeah - it really would seem that way at the outset, but from what I'm seeing
first hand and reading in the groups it's kind of not that way... If you
have two things that are GWT at both ends (as opposed to say 1 external JS
and 1 GWT) you can share GWT modules - but each compile that uses it grabs
only what it needs from that module during the compile, thus each compile
that uses the module would re-optimize for that specific use (re-include the
bits they use).

If that's not right... would be excellent.



On Wed, Dec 15, 2010 at 3:17 PM, Myles Bostwick  wrote:

> Even if the code is not being compiled together, it seems like a library
> module could be created that could then be shared by all widgets in this
> scenario.  Someone please correct me if I'm wrong.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: To GWT or Not to GWT

2010-12-15 Thread Christian Goudreau
>
> Even if the code is not being compiled together, it seems like a library
> module could be created that could then be shared by all widgets in this
> scenario.  Someone please correct me if I'm wrong.


I think so too, but then you will need something to communicate between
every module using JSNI...

Cheers,

On Wed, Dec 15, 2010 at 3:18 PM, Brian Kardell  wrote:

> Thanks David.
>
> I'll say that before posting anything on here I spent hours searching
> through these groups and found a lot of people looking for some kind of
> reuse very much related to this same kind of problem - but nothing
> especially helpful in the way of a solution... It almost seems like it
> should be doable with just a little bit more the compiler side or something.
>
> Is the compiler source available?  I have looked briefly into linkers, but
> I fear that the big hangup for us is really the base stuff which probably
> isn't addressable from the linkers.  Any advice on somewhere I can follow up
> with those kinds of interests?
>
> -Brian
>
>
>
> On Wed, Dec 15, 2010 at 3:08 PM, David Chandler wrote:
>
>> Fair enough, bkardell. GWT cannot optimize code that cannot be
>> compiled together. If it's a requirement for you that each widget is a
>> separate JavaScript, then you'd have to compile a few and see whether
>> the GWT optimizations such as dead code elimination outweigh the
>> effects of compiling multiple times the commonly used parts of the
>> shared libraries.
>>
>> GWT's sweet spot, IMHO, is building rich Internet applications that
>> feel like a desktop app but run in a browser. GWT can break the app
>> into multiple pieces using code splitting (runAsync), but if the
>> pieces aren't part of the same compile as in your case, that won't
>> help.
>>
>> /dmc
>>
>> On Wed, Dec 15, 2010 at 2:31 PM, bkard...@gmail.com 
>> wrote:
>> > Ok, a few things.
>> >
>> > 1) Thanks for the response.
>> > 2) Please have some patience, I'm really trying my best to communicate
>> > what seems to me a perfectly rational question that I feel like I am
>> > directing at exactly the right people.  If I come across unclearly, I
>> > will be more than happy to try to clarify.
>> > 3) The examples that both @clintjhill and I gave specified that these
>> > are disparate code bases that _can not_ be compiled together.  It is
>> > possible to specify things that can and can't be used, even an API -
>> > but they aren't owned by the same entity...  That's really why I tried
>> > to use "something like" iGoogle as an example because it's sort of the
>> > most analogous thing I can think of... It's a Mashup situation where
>> > there can potentially be many, many components shoved together from
>> > disparate (but trusted) sources.  If I recall, I think that the gadget
>> > container actually _does_ provide some common API for tabs and rpc and
>> > things... I'm not sure if that's re-incuded every time, but that's the
>> > idea - do we have to reinclude it every time?  I think that
>> > @clintjhill's example is more literal/concise so if you are more
>> > comfortable with that, the only addition I would like to make is that
>> > it is perhaps a little too small  (not just repeated, but repeated
>> > potentially many, many times) to demonstrate my concern
>> > 4) Note the end of the question above  "... if the GWT team had such a
>> > problem at hand - would they choose GWT" is followed immediately by
>> > "... and if so, how would they deal with the implications spelled out
>> > above?"
>> >
>> > I just want to say... There are languages and tools that I use, that I
>> > _love_ in fact, which would just be the wrong choice if that's not the
>> > problem space that they are focused on solving.  I think, if I had no
>> > desire to use GWT - why would I be asking...right?
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Google Web Toolkit" group.
>> > To post to this group, send email to
>> google-web-tool...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> > For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> >
>> >
>>
>>
>>
>> --
>> David Chandler
>> Developer Programs Engineer, Google Web Toolkit
>> http://googlewebtoolkit.blogspot.com/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> googl

Re: To GWT or Not to GWT

2010-12-15 Thread Brian Kardell
Thanks David.

I'll say that before posting anything on here I spent hours searching
through these groups and found a lot of people looking for some kind of
reuse very much related to this same kind of problem - but nothing
especially helpful in the way of a solution... It almost seems like it
should be doable with just a little bit more the compiler side or something.

Is the compiler source available?  I have looked briefly into linkers, but I
fear that the big hangup for us is really the base stuff which probably
isn't addressable from the linkers.  Any advice on somewhere I can follow up
with those kinds of interests?

-Brian


On Wed, Dec 15, 2010 at 3:08 PM, David Chandler wrote:

> Fair enough, bkardell. GWT cannot optimize code that cannot be
> compiled together. If it's a requirement for you that each widget is a
> separate JavaScript, then you'd have to compile a few and see whether
> the GWT optimizations such as dead code elimination outweigh the
> effects of compiling multiple times the commonly used parts of the
> shared libraries.
>
> GWT's sweet spot, IMHO, is building rich Internet applications that
> feel like a desktop app but run in a browser. GWT can break the app
> into multiple pieces using code splitting (runAsync), but if the
> pieces aren't part of the same compile as in your case, that won't
> help.
>
> /dmc
>
> On Wed, Dec 15, 2010 at 2:31 PM, bkard...@gmail.com 
> wrote:
> > Ok, a few things.
> >
> > 1) Thanks for the response.
> > 2) Please have some patience, I'm really trying my best to communicate
> > what seems to me a perfectly rational question that I feel like I am
> > directing at exactly the right people.  If I come across unclearly, I
> > will be more than happy to try to clarify.
> > 3) The examples that both @clintjhill and I gave specified that these
> > are disparate code bases that _can not_ be compiled together.  It is
> > possible to specify things that can and can't be used, even an API -
> > but they aren't owned by the same entity...  That's really why I tried
> > to use "something like" iGoogle as an example because it's sort of the
> > most analogous thing I can think of... It's a Mashup situation where
> > there can potentially be many, many components shoved together from
> > disparate (but trusted) sources.  If I recall, I think that the gadget
> > container actually _does_ provide some common API for tabs and rpc and
> > things... I'm not sure if that's re-incuded every time, but that's the
> > idea - do we have to reinclude it every time?  I think that
> > @clintjhill's example is more literal/concise so if you are more
> > comfortable with that, the only addition I would like to make is that
> > it is perhaps a little too small  (not just repeated, but repeated
> > potentially many, many times) to demonstrate my concern
> > 4) Note the end of the question above  "... if the GWT team had such a
> > problem at hand - would they choose GWT" is followed immediately by
> > "... and if so, how would they deal with the implications spelled out
> > above?"
> >
> > I just want to say... There are languages and tools that I use, that I
> > _love_ in fact, which would just be the wrong choice if that's not the
> > problem space that they are focused on solving.  I think, if I had no
> > desire to use GWT - why would I be asking...right?
> >
> > --
> > 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.
> >
> >
>
>
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> http://googlewebtoolkit.blogspot.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: To GWT or Not to GWT

2010-12-15 Thread Myles Bostwick
Even if the code is not being compiled together, it seems like a library 
module could be created that could then be shared by all widgets in this 
scenario.  Someone please correct me if I'm wrong.

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



Re: To GWT or Not to GWT

2010-12-15 Thread David Chandler
Fair enough, bkardell. GWT cannot optimize code that cannot be
compiled together. If it's a requirement for you that each widget is a
separate JavaScript, then you'd have to compile a few and see whether
the GWT optimizations such as dead code elimination outweigh the
effects of compiling multiple times the commonly used parts of the
shared libraries.

GWT's sweet spot, IMHO, is building rich Internet applications that
feel like a desktop app but run in a browser. GWT can break the app
into multiple pieces using code splitting (runAsync), but if the
pieces aren't part of the same compile as in your case, that won't
help.

/dmc

On Wed, Dec 15, 2010 at 2:31 PM, bkard...@gmail.com  wrote:
> Ok, a few things.
>
> 1) Thanks for the response.
> 2) Please have some patience, I'm really trying my best to communicate
> what seems to me a perfectly rational question that I feel like I am
> directing at exactly the right people.  If I come across unclearly, I
> will be more than happy to try to clarify.
> 3) The examples that both @clintjhill and I gave specified that these
> are disparate code bases that _can not_ be compiled together.  It is
> possible to specify things that can and can't be used, even an API -
> but they aren't owned by the same entity...  That's really why I tried
> to use "something like" iGoogle as an example because it's sort of the
> most analogous thing I can think of... It's a Mashup situation where
> there can potentially be many, many components shoved together from
> disparate (but trusted) sources.  If I recall, I think that the gadget
> container actually _does_ provide some common API for tabs and rpc and
> things... I'm not sure if that's re-incuded every time, but that's the
> idea - do we have to reinclude it every time?  I think that
> @clintjhill's example is more literal/concise so if you are more
> comfortable with that, the only addition I would like to make is that
> it is perhaps a little too small  (not just repeated, but repeated
> potentially many, many times) to demonstrate my concern
> 4) Note the end of the question above  "... if the GWT team had such a
> problem at hand - would they choose GWT" is followed immediately by
> "... and if so, how would they deal with the implications spelled out
> above?"
>
> I just want to say... There are languages and tools that I use, that I
> _love_ in fact, which would just be the wrong choice if that's not the
> problem space that they are focused on solving.  I think, if I had no
> desire to use GWT - why would I be asking...right?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: To GWT or Not to GWT

2010-12-15 Thread Christian Goudreau
>
> Are you saying that you would recompile and redeploy the whole app every
> time this happens?

Well if you're thinking about a plug in-like application where third parties
register plug in for your application and that your clients must have access
to those newly added plug in. Well, yes. Anyway automatic adoption of any
plug in or any third parties application is unsecured, I prefer having a
team that investigate newly added plug in, then compile the entire app to
add that plug in to the library. After that, every users would be able to it
to their profile and be assured that the plug in isn't malicious.

That can be done and there's even some projects around that are about
sharing resources to make compile time faster. Anyway, there's too much
variable to take into account to have a straight answer. At least you can
assume that if you compile everything separately, you'll end up with
duplicated code and that you must compile somehow to fully take advantages
of Gwt.

Cheers

On Wed, Dec 15, 2010 at 2:46 PM, bkard...@gmail.com wrote:

> So Christian... I get what you are saying and that is actually what
> you would do if you owned it all as one thing, I totally agree... I
> think that the showcase app is probably like that and I have no
> problem with it... Makes sense.
>
> However in the iGoogle-esq example/question, those widgets are
> developed by different companies, or different parts of
> companies...They are created or updated all the time and whenever that
> happens, they need to be registered and immediately become
> available... Are you saying that you would recompile and redeploy the
> whole app every time this happens?
>
> Any other ideas?  The only other idea which we can see is that they
> are compiled separately - this creates the kind of situation described
> above, which we're looking for advice on...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Christian Goudreau
www.arcbees.com

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



Is there an event or something I can catch after a CellTree has completely rendered it's children to the DOM?

2010-12-15 Thread Blackberet
I have a CellTree in a ScrollLayoutPanel.
I really need to be able to scroll a cell into view when it is
selected.

I have two ways of selecting a cell; directly by the user, and
indirectly with a next/previous node button.
When next is clicked and the next cell is not visible in the the
ScrollLayout, I want to scroll that cell into view.

I have id's on all the cells so I should be able to do a;
DOM.scrollIntoView(selectedTopicElement);
but I need to do that after the tree finishes rendering.

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



Re: To GWT or Not to GWT

2010-12-15 Thread bkard...@gmail.com
So Christian... I get what you are saying and that is actually what
you would do if you owned it all as one thing, I totally agree... I
think that the showcase app is probably like that and I have no
problem with it... Makes sense.

However in the iGoogle-esq example/question, those widgets are
developed by different companies, or different parts of
companies...They are created or updated all the time and whenever that
happens, they need to be registered and immediately become
available... Are you saying that you would recompile and redeploy the
whole app every time this happens?

Any other ideas?  The only other idea which we can see is that they
are compiled separately - this creates the kind of situation described
above, which we're looking for advice on...

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



Insert TabLayoutPanel in a SimplePanel

2010-12-15 Thread Aldo Neto
Hi all,

I need to create a TabLayoutPanel and insert it as part of my editing page.
In other words, I'm filling a given form and as part of that form I need
some information to display inside the Tabs. I'm using the DockLayoutPanel
to split the screen and as part of the center I have a SimplePanel (along
with other panels), which should set my TabLayoutPanel as its widget. Note
that the TabLayoutPanel is defined in a different file.

I tried many different ways to do that but none is working. With the
SimplePanel I can get the Tabs header to be displayed but not their content.

Does anybody know what I have to do to fix that?

I was able to get the TabLayoutPanel to work inside the "Hello World" layout
(as it would be the only Panel in it), but it is not working for a more
complex layout.

Thanks in advance,

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



How to display an ampersand using UiBinder?

2010-12-15 Thread Hilco Wijbenga
Hi all,

I want to do display something like "A & B & C".


http://dl.google.com/gwt/DTD/xhtml.ent";>

  A & B & C


This displays as "A & B & C". (Note that even & is
replaced with &.) It doesn't seem to make a difference whether the
DOCTYPE is there or not. Obviously, using "A & B & C" directly fails.

If I try something like • or © then that works perfectly! So
it seems to be specific to ampersand.

Any ideas?

Cheers,
Hilco

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



Re: To GWT or Not to GWT

2010-12-15 Thread bkard...@gmail.com
Ok, a few things.

1) Thanks for the response.
2) Please have some patience, I'm really trying my best to communicate
what seems to me a perfectly rational question that I feel like I am
directing at exactly the right people.  If I come across unclearly, I
will be more than happy to try to clarify.
3) The examples that both @clintjhill and I gave specified that these
are disparate code bases that _can not_ be compiled together.  It is
possible to specify things that can and can't be used, even an API -
but they aren't owned by the same entity...  That's really why I tried
to use "something like" iGoogle as an example because it's sort of the
most analogous thing I can think of... It's a Mashup situation where
there can potentially be many, many components shoved together from
disparate (but trusted) sources.  If I recall, I think that the gadget
container actually _does_ provide some common API for tabs and rpc and
things... I'm not sure if that's re-incuded every time, but that's the
idea - do we have to reinclude it every time?  I think that
@clintjhill's example is more literal/concise so if you are more
comfortable with that, the only addition I would like to make is that
it is perhaps a little too small  (not just repeated, but repeated
potentially many, many times) to demonstrate my concern
4) Note the end of the question above  "... if the GWT team had such a
problem at hand - would they choose GWT" is followed immediately by
"... and if so, how would they deal with the implications spelled out
above?"

I just want to say... There are languages and tools that I use, that I
_love_ in fact, which would just be the wrong choice if that's not the
problem space that they are focused on solving.  I think, if I had no
desire to use GWT - why would I be asking...right?

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



Re: To GWT or Not to GWT

2010-12-15 Thread clintjhill
To add an important part to the conversation.

Widget #1 is developed by a team in CA.
Widget #2 is developed by a team in AZ.
They both have access to and utilize the 3 shared libraries.

Furthermore - the intent is that these widgets be capable of landing
in the same page but also possibly separately in different pages.

On Dec 15, 11:29 am, David Chandler  wrote:
> In the example you've given, GWT would compile the shared code into
> the module containing the Widgets, so there is only one copy.
> Furthermore, any unused methods in the libraries are not compiled or
> downloaded, as the GWT compiler eliminates dead code.
>
> Furthermore, you can break up an app into multiple pieces that get
> loaded "just in time" 
> withhttp://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html
>
> HTH,
> /dmc
>
>
>
>
>
>
>
>
>
> On Wed, Dec 15, 2010 at 12:14 PM, clintjhill  wrote:
> > I'll ask the same question in a different way.
>
> > There are 2 widgets. The first is for Alerts and the second is for
> > Messages.
>
> > Both share a library for their services (get/parse JSON data).
> > Both share a library for their UI (extending GWT or composites).
> > Both are separate GWT projects (code base is separate).
>
> > When both are compiled they both receive separate JavaScript for the
> > following same things:
>
> > 1. GWT core
> > 2. library for services
> > 3. library for UI
>
> > When both are used on a single page you end up with essentially
> > duplicated downloads from different JavaScript files. However the
> > desire would be that the GWT core, service and UI libraries be
> > "shared" and not downloaded twice.
>
> > In this example - would GWT be chosen - or is this an example where
> > GWT doesn't "fit"?
>
> > On Dec 15, 10:05 am, "bkard...@gmail.com"  wrote:
> >> I see "Google Web Toolkit, Atlanta, GA USA" after your name, so I
> >> expect that you are just the kind of person whose opinion I'm looking
> >> for... What say 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web 
> Toolkithttp://googlewebtoolkit.blogspot.com/

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



Re: Can someone please unsubscribe joseph.fav...@olympus.com from this group?

2010-12-15 Thread David Chandler
Thanks for the heads up. I've taken care of it. FYI, the best place to
make such requests is google-web-toolkit+ow...@googlegroups.com

/dmc


On Wed, Dec 15, 2010 at 1:37 PM, Jim Douglas  wrote:
> He posted a single message to this group almost three years ago.
> Since that time, all of his postings have been out-of-office
> autoreplies:
>
> http://groups.google.com/groups/profile?enc_user=0sdkURkAAADkQuqE8Kha_msj4vXhMlxF5QXXejbiipzYx0bmzwEdUg
>
> I emeiled him directly asking to fix this a few months ago, but he
> didn't respond.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: Can someone please unsubscribe joseph.fav...@olympus.com from this group?

2010-12-15 Thread Isaac Truett
I made a filter while back to mark those as spam. But, yeah, maybe
moderation could be re-enabled on his membership?


On Wed, Dec 15, 2010 at 1:37 PM, Jim Douglas  wrote:
> He posted a single message to this group almost three years ago.
> Since that time, all of his postings have been out-of-office
> autoreplies:
>
> http://groups.google.com/groups/profile?enc_user=0sdkURkAAADkQuqE8Kha_msj4vXhMlxF5QXXejbiipzYx0bmzwEdUg
>
> I emeiled him directly asking to fix this a few months ago, but he
> didn't respond.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: CssResource @def in UiBinder

2010-12-15 Thread Myles Bostwick
I'm not sure if this is exactly what you're talking about or not, but I've 
got a common ResourceBundle that I use in my uibinder that I use like so:

Included in ui.xml


Included in view
@UiFactory /* this method allows ui.xml to access an instance of a 
resource */
public IResources getIResources() {
return IResources.INSTANCE;
}

Which allows me to use a common resource bundle across my uibinder uis.

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



Re: Window 7 IE8 Drop Down List Boxes open problem

2010-12-15 Thread skippy
This is atill a problem.

However, it is in IE8 on Windows 7.


On Nov 3, 7:29 am, skippy  wrote:
>   @UiField ListBox groupListBox;
>
>   loadGroupListBox(workingLists, groupListBox);
>
>     private void loadGroupListBox(ArrayList itemList,
> ListBox listBox)
>     {
>         for (int i = 0; i < itemList.size(); ++i)
>         {
>             ListBoxItem item = itemList.get(i);
>             listBox.addItem(item.getDesc(), item.getCode());
>         }
>     }
>
> On Nov 1, 6:27 am, Nathan Wells  wrote:
>
>
>
> > Do you have a snippet of code that can reproduce this problem? this
> > sounds like a browser issue to me.
>
> > On Oct 28, 6:20 am, skippy  wrote:
>
> > > In this configuration, the drop down list boxes open with the top out
> > > of the top of the browser and no scrollBar.
>
> > > GWT 2.0.4
>
> > > Has anyone else seen this?
> > > Any chanse for a 2.0.5 fix?
>
> > > Thanks- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

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



Re: How to add checkbox in header.

2010-12-15 Thread John LaBanca
Create a CheckboxCell that handles selection and put it into the header like
subhrajyotim suggested.  Call Header#setUpdater(ValueUpdater) to handle
events when the checkbox is clicked.

You'll probably want to use a DefaultSelectionModel, which supports
selecting rows by default, then adding exceptions to the rule.

Thanks,
John LaBanca
jlaba...@google.com


On Wed, Dec 15, 2010 at 10:33 AM, Dominik  wrote:

> Hi,
> what do you want to do,
> do you want to have a CheckBox in every row to select the row and a
> selectbox in the header to select every row at once or
> do just want to select every row without the ability to select a
> single row?
>
> On 14 Dez., 20:17, Diyko  wrote:
> > I need add checkbox in header and implement "check/uncheck all rows"
> > functionality?
> > Anybody did it already?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Can someone please unsubscribe joseph.fav...@olympus.com from this group?

2010-12-15 Thread Jim Douglas
He posted a single message to this group almost three years ago.
Since that time, all of his postings have been out-of-office
autoreplies:

http://groups.google.com/groups/profile?enc_user=0sdkURkAAADkQuqE8Kha_msj4vXhMlxF5QXXejbiipzYx0bmzwEdUg

I emeiled him directly asking to fix this a few months ago, but he
didn't respond.

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



Re: To GWT or Not to GWT

2010-12-15 Thread David Chandler
In the example you've given, GWT would compile the shared code into
the module containing the Widgets, so there is only one copy.
Furthermore, any unused methods in the libraries are not compiled or
downloaded, as the GWT compiler eliminates dead code.

Furthermore, you can break up an app into multiple pieces that get
loaded "just in time" with
http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html

HTH,
/dmc

On Wed, Dec 15, 2010 at 12:14 PM, clintjhill  wrote:
> I'll ask the same question in a different way.
>
> There are 2 widgets. The first is for Alerts and the second is for
> Messages.
>
> Both share a library for their services (get/parse JSON data).
> Both share a library for their UI (extending GWT or composites).
> Both are separate GWT projects (code base is separate).
>
> When both are compiled they both receive separate JavaScript for the
> following same things:
>
> 1. GWT core
> 2. library for services
> 3. library for UI
>
> When both are used on a single page you end up with essentially
> duplicated downloads from different JavaScript files. However the
> desire would be that the GWT core, service and UI libraries be
> "shared" and not downloaded twice.
>
> In this example - would GWT be chosen - or is this an example where
> GWT doesn't "fit"?
>
> On Dec 15, 10:05 am, "bkard...@gmail.com"  wrote:
>> I see "Google Web Toolkit, Atlanta, GA USA" after your name, so I
>> expect that you are just the kind of person whose opinion I'm looking
>> for... What say 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: To GWT or Not to GWT

2010-12-15 Thread Christian Goudreau
Why don't you compile them together ? If you're going to use it on the same
page, then compile it together for that page and then, you wont have
duplicated code.

I personally use a lot of Gwt projects inside my own and this is a non
issue. I really don't see why I wouldn't compile my app and everything it
needs together. Even a gadget library, I would use efficiently code
splitting functionality and just compile everything together. Then when the
user navigate through my library to add widgets to his personal page, I
would load the widget code and show it.

Cheers,

On Wed, Dec 15, 2010 at 12:14 PM, clintjhill  wrote:

> I'll ask the same question in a different way.
>
> There are 2 widgets. The first is for Alerts and the second is for
> Messages.
>
> Both share a library for their services (get/parse JSON data).
> Both share a library for their UI (extending GWT or composites).
> Both are separate GWT projects (code base is separate).
>
> When both are compiled they both receive separate JavaScript for the
> following same things:
>
> 1. GWT core
> 2. library for services
> 3. library for UI
>
> When both are used on a single page you end up with essentially
> duplicated downloads from different JavaScript files. However the
> desire would be that the GWT core, service and UI libraries be
> "shared" and not downloaded twice.
>
> In this example - would GWT be chosen - or is this an example where
> GWT doesn't "fit"?
>
> On Dec 15, 10:05 am, "bkard...@gmail.com"  wrote:
> > I see "Google Web Toolkit, Atlanta, GA USA" after your name, so I
> > expect that you are just the kind of person whose opinion I'm looking
> > for... What say 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Christian Goudreau
www.arcbees.com

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



GWT 2.1 MVP Multiple activities clarification help

2010-12-15 Thread Milan Cvejic
Helo,
i tried to understand post at 
http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni
but with no luck :(

I tried following code:

package com.hellomvp.client;


import com.google.gwt.activity.shared.ActivityManager;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceController;
import com.google.gwt.place.shared.PlaceHistoryHandler;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.LayoutPanel;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;
import com.hellomvp.client.mvp.AppPlaceHistoryMapper;
import com.hellomvp.client.mvp.LeftActivityMapper;
import com.hellomvp.client.mvp.RightActivityMapper;
import com.hellomvp.client.place.HelloPlace;
import com.hellomvp.client.ClientFactory;

/**
 * Entry point classes define onModuleLoad().
 */

public class HelloMVP implements EntryPoint {

private Place defaultPlace = new HelloPlace("World!");
private LayoutPanel mainLayout = new LayoutPanel();

SimplePanel leftPanel = new SimplePanel();
SimplePanel rightPanel = new SimplePanel();

// Assumes a LayoutPanel is used for the layout, with a SimplePanel
for each display region
AcceptsOneWidget leftDisplay = new AcceptsOneWidget() {
   public void setWidget(IsWidget activityWidget) {
// Window.alert("test");
  Widget widget = Widget.asWidgetOrNull(activityWidget);
  mainLayout.setWidgetVisible(leftPanel, widget != null);
  leftPanel.setWidget(widget);
   }
};

// Assumes a LayoutPanel is used for the layout, with a SimplePanel
for each display region
AcceptsOneWidget rightDisplay = new AcceptsOneWidget() {
   public void setWidget(IsWidget activityWidget) {
// Window.alert("test");
  Widget widget = Widget.asWidgetOrNull(activityWidget);
  mainLayout.setWidgetVisible(rightPanel, widget != null);
  rightPanel.setWidget(widget);
   }
};

/**
 * This is the entry point method.
 */
public void onModuleLoad() {

// Create ClientFactory using deferred binding so we can replace
with
// different
// impls in gwt.xml
ClientFactory clientFactory = GWT.create(ClientFactory.class);
EventBus eventBus = clientFactory.getEventBus();
PlaceController placeController =
clientFactory.getPlaceController();

// Start ActivityManager for the left widget with our 
ActivityMapper
ActivityMapper leftActivityMapper = new LeftActivityMapper(
clientFactory);
ActivityManager leftActivityManager = new ActivityManager(
leftActivityMapper, eventBus);
leftActivityManager.setDisplay(leftDisplay);


// Start ActivityManager for the right widget with our
ActivityMapper
ActivityMapper rightActivityMapper = new RightActivityMapper(
clientFactory);
ActivityManager rightActivityManager = new ActivityManager(
rightActivityMapper, eventBus);
rightActivityManager.setDisplay(rightDisplay);

// Start PlaceHistoryHandler with our PlaceHistoryMapper
AppPlaceHistoryMapper historyMapper = GWT
.create(AppPlaceHistoryMapper.class);

PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(
historyMapper);
historyHandler.register(placeController, eventBus, 
defaultPlace);

DOM.setStyleAttribute(leftPanel.getElement(), "backgroundColor",
"#3054A1");
DOM.setStyleAttribute(rightPanel.getElement(), 
"backgroundColor",
"#ff2e80");

//  mainLayout.addWest(leftPanel, 15);
//  mainLayout.addEast(rightPanel, 15);

mainLayout.add(leftPanel);
mainLayout.add(rightPanel);

mainLayout.setWidgetLeftWidth(leftPanel, 0, Unit.PCT, 50,
Unit.PCT);  // Left panel
mainLayout.setWidgetRightWidth(rightPanel, 0, Unit.PCT, 50,
Unit.PCT); // Right panel

RootLayoutPanel.get().add(mainLayout);
// Goes to place represented on URL or default place
historyHandler.handleCurrentHistory();
}

}

But even if rightActivityManager or leftActivityManager return null,
nothing h

Re: How to add checkbox in header.

2010-12-15 Thread Dominik
Hi,
what do you want to do,
do you want to have a CheckBox in every row to select the row and a
selectbox in the header to select every row at once or
do just want to select every row without the ability to select a
single row?

On 14 Dez., 20:17, Diyko  wrote:
> I need add checkbox in header and implement "check/uncheck all rows"
> functionality?
> Anybody did it already?

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



Re: To GWT or Not to GWT

2010-12-15 Thread clintjhill
I'll ask the same question in a different way.

There are 2 widgets. The first is for Alerts and the second is for
Messages.

Both share a library for their services (get/parse JSON data).
Both share a library for their UI (extending GWT or composites).
Both are separate GWT projects (code base is separate).

When both are compiled they both receive separate JavaScript for the
following same things:

1. GWT core
2. library for services
3. library for UI

When both are used on a single page you end up with essentially
duplicated downloads from different JavaScript files. However the
desire would be that the GWT core, service and UI libraries be
"shared" and not downloaded twice.

In this example - would GWT be chosen - or is this an example where
GWT doesn't "fit"?

On Dec 15, 10:05 am, "bkard...@gmail.com"  wrote:
> I see "Google Web Toolkit, Atlanta, GA USA" after your name, so I
> expect that you are just the kind of person whose opinion I'm looking
> for... What say 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: To GWT or Not to GWT

2010-12-15 Thread David Chandler
Hi bkardell,

I think you're not getting many responses because

1) The subject of "to use GWT or not" comes up on the list about once
a month and it's getting old
2) This forum is for people wanting to use GWT, not for people who are
wanting to not use GWT
3) You've asked a general question. Please posit a specific example
and we can better guide you. If you can't think of one, you should use
GWT :-)

/dmc


On Wed, Dec 15, 2010 at 12:05 PM, bkard...@gmail.com  wrote:
> I see "Google Web Toolkit, Atlanta, GA USA" after your name, so I
> expect that you are just the kind of person whose opinion I'm looking
> for... What say 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: GWT + Google Maps (JSNI) put a map in a panel

2010-12-15 Thread Raphael André Bauer
On Wed, Dec 15, 2010 at 4:01 PM, Alberto  wrote:
> Thank You for you reply!
>
> I'm Italian... I can't use Map API for GWT because it supports only
> Maps API v2! So I'm using JSNI to work with the v3 Maps API, but I
> need a way to put a map in a panel and not in a DOM Node!

Did you try out:
http://code.google.com/p/gwt-google-maps-v3/

It's really straight forward to use and might be the solution,

Cheers,

Raphael

>
> On 14 Dic, 20:57, jMotta  wrote:
>> Sup,
>>
>> There is an API to Maps in GWT, so you can declare your panel using
>> UiBinder or programatic and then renderize your map at runtime.
>>
>> You're brazilian? add jayrmo...@gmail.com in gtalk and i help you! :D
>>
>> Thanks!
>>
>> On Dec 14, 7:23 am, Alberto  wrote:
>>
>>
>>
>>
>>
>>
>>
>> > Hi!
>> > First of all I'm sorry for my English. :)
>>
>> > I'm going to realize a GWT application that uses Maps v3 API using
>> > JSNI...
>>
>> > To create a new Map I have to pass a DOM parameter (a node of DOM) in
>> > this way:
>> > panorama = new
>> > $wnd.google.maps.StreetViewPanorama($doc.getElementById('pano_canvas'),pano
>> >  ramaOptions);
>>
>> > where 'pano_canvas' is a  element in my html page.
>>
>> > I want to draw my map in a panel and manage it with GWT technology.
>> > There is a way to refer to a dynamic panel instead of refer to a
>> > static DOM element?
>>
>> > 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Is encryption over RCP possible?

2010-12-15 Thread Rob Coops
Fair enough I have to say I have not seen that article before, interesting
though...

Anyway, see why I say use both:

UNSECURE -> CERT. EXCHANGE -> CERT. VERIF -> KEY NEGOTIATION -> SECURE
EXCHANGE -> JS TRANSFER -> CERT. EXCHANGE -> CERT. VERIF -> KEY
NEGOTIATION -> SECURE EXCHANGE -> LOGIN FORM

You site will not be much faster because of all this dragging around
certificates but it is much more work to listen in on.

As for your argument that:
a) Fiddling Javascript while it is transferred between server and
client is hard to achieve. If Mallory can do that, he/she may as well
fiddle with certificates, meaning TLS does not offer protection
against this kind of attack.

This is of course true assuming you change your script all the time but
staying realistic once deployed your script will be send to the client over
and over and over again without change. So for someone to sit in the middle
accept the script from your server and forward on a script with a slightly
different content is not hard at all. It is as simple as simply sending over
the different file... of course it takes some doing on the part of the
attacker but clearly what ever it is you are securing is worth the effort.

Still a simple but effective way to protect against burglary is to put
additional locks on the door, even if they are not that hard to break they
are harder to break then your neighbours lock who have only a single lock in
place...

Remaining realistic there is another simple yet effective way to deal with
this and that is to use a token system... again the more security you pile
on the better this does not mean the rest of the solutions is not needed or
useful but using a simple token generator to generate password strings in
combination with a user defined part of the password means that yet again
there is a additional hurdle to take for a would be attacker.

In the end a 100% safe system is not possible a secret will always leak out,
a private certificate is only as save as the machine it is on an if the
machine is connected to the internet it is not safe. There is really no way
you can be 100% sure your secret is safe as there is no way to proof that
who ever is trying to attack you has not found another way to get to your
secret.
The best thing you can go for is as safe as you can make it the more layers
of security the better and the more different devices and media involved the
better... in the end all security will be broken even a 1024 bit key will
not hold given enough time, most likely because someone will find a way to
access the client or server directly.
Look at the Skype algorithm in stead of trying to crack it the law
enforcement agencies all over the world are using trojans to listen in on
the client side. You can simply not grantee safety online it is simply not
possible as there are always attacks that can provide access via routes that
you can simply not control.




On Wed, Dec 15, 2010 at 6:17 PM, UseTheFork  wrote:

> Hi Rob,
>
> On Dec 15, 9:39 am, Rob Coops  wrote:
> > Lets sum this up nice and quick...
> >
> >- SSL/TLS uses certificates and is according to most as save as it
> gets
> >- MITM attacks can and do happen, they could theoretically even mess
> with
> >SSL/TLS communication
> >- SSL/TLS MITM attacks have to the best of my knowledge not been seen
> in
> >the real world (yet)
>
> Ok, then Google 'SSL/TLS MITM attacks'. Those attack do (and did)
> happen, but no bank or official institution will ever admit that.
> Their business would collapse if they admitted this publicly...
>
> Now if you want a specific example:
>
> http://www.zdnet.com/blog/security/man-in-the-middle-attacks-demoed-on-4-smartphones/4922
>
> >- Javascript cannot do its own encryption as it simply does not have
> the
> >right tools for it
>
> True, but there are many libraries available which provide
> functionalities facilitating the implementation of encryption.
>
> > Designing a watertight security solution that cannot be broken when
> > transporting data over a publicly accessible network is nothing else then
> > ignorance or arrogance on the part of the designer, it simply is not
> > possible not in the long run at least.
>
> Yes, it is possible when there is a pre-established secret between
> Alice and Bob. But, that is (most) often not the case on the Internet.
> So, I cannot rely on this.
>
> (REM: in a private email, someone argued that root certificates stored
> in browsers where pre-established secrets and concluded that TLS/SSL
> was therefore stronger than my approach; such certificates are not,
> they are public, this is no secret)
>
> > So take what you can get and throw as
> > much at it as possible SSL/TSL, your own encryption and anything else you
> > think might help to make the life of friend Mallory as miserable as
> > possible.
>
> TLS or not, user input should never be trusted and has to be checked
> by the server. If you have a method that checks this, then TLS is
> redun

CellBrowser default and min width for first column.

2010-12-15 Thread Akito Nozaki
>From glancing at the source there is no way to set the minimum width for the 
first column?

Also the document of setMinimumColumnWidth isn't very clear on what it wants 
to do. Looking at the source it will only affect newly added minimum column 
width. Anything that is already there will not be effected, causing the 
initial problem.

Doesn't it make more since to have set minimum column like we have for split 
layout panel? Maybe something like...
setMinimumNodeColumn(NodeInfo, width).

If there was a way to set the TreeViewModel and data later, not through 
constructor, this would also solve the issue. 

Default size works exactly the same as the min size but the behavior is what 
I expect, except for the first column.

Was going to overload CellBrowser to fix but I would have had to copy way 
too many things.

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



Re: Is encryption over RCP possible?

2010-12-15 Thread Sripathi Krishnan
Explain me how Mallory can put in a fake/invalid/duplicate/whatever SSL
certificate when Alice and Bob are communicating.

   1. Mallory can create a fake certificate and present it to Alice; but
   when Alice verifies the cert with Trent (ie. Verisign) she will catch the
   MITM
   2. Mallory can buy a new certificate from Trent -- but that certificate
   will represent Mallory and not Alice. Trent will not give Alice's
   certificate to Mallory.
   3. Mallory can compromise Trent's private key; possible but not feasible
   4. Mallory can get Alice to install a malicious root CA in her browser.
   But if he can do that, the game is already over.
   5. Mallory can find that Bob is using a weak cipher (ie. MD5) -
   definitely possible, but well within Bob's control to fix.

So, how do you think Mallory is going to fool Alice?

--Sri


On 15 December 2010 22:47, UseTheFork  wrote:

> Hi Rob,
>
> On Dec 15, 9:39 am, Rob Coops  wrote:
> > Lets sum this up nice and quick...
> >
> >- SSL/TLS uses certificates and is according to most as save as it
> gets
> >- MITM attacks can and do happen, they could theoretically even mess
> with
> >SSL/TLS communication
> >- SSL/TLS MITM attacks have to the best of my knowledge not been seen
> in
> >the real world (yet)
>
> Ok, then Google 'SSL/TLS MITM attacks'. Those attack do (and did)
> happen, but no bank or official institution will ever admit that.
> Their business would collapse if they admitted this publicly...
>
> Now if you want a specific example:
>
> http://www.zdnet.com/blog/security/man-in-the-middle-attacks-demoed-on-4-smartphones/4922
>
> >- Javascript cannot do its own encryption as it simply does not have
> the
> >right tools for it
>
> True, but there are many libraries available which provide
> functionalities facilitating the implementation of encryption.
>
> > Designing a watertight security solution that cannot be broken when
> > transporting data over a publicly accessible network is nothing else then
> > ignorance or arrogance on the part of the designer, it simply is not
> > possible not in the long run at least.
>
> Yes, it is possible when there is a pre-established secret between
> Alice and Bob. But, that is (most) often not the case on the Internet.
> So, I cannot rely on this.
>
> (REM: in a private email, someone argued that root certificates stored
> in browsers where pre-established secrets and concluded that TLS/SSL
> was therefore stronger than my approach; such certificates are not,
> they are public, this is no secret)
>
> > So take what you can get and throw as
> > much at it as possible SSL/TSL, your own encryption and anything else you
> > think might help to make the life of friend Mallory as miserable as
> > possible.
>
> TLS or not, user input should never be trusted and has to be checked
> by the server. If you have a method that checks this, then TLS is
> redundant. It does not offer more protection, but takes its toll on
> the communication.
>
> The main criticism I have received so far is Javascript fiddling.
>
> a) Fiddling Javascript while it is transferred between server and
> client is hard to achieve. If Mallory can do that, he/she may as well
> fiddle with certificates, meaning TLS does not offer protection
> against this kind of attack.
> b) Javascript injection can also happen when a web site inserts
> iframes to attempt to collect cookies information about a 3rd party
> web-site it want to corrupt. With my method, I don't use cookies,
> therefore such attacks are not possible.
> c) Javascript can also be fiddle within a web page locally and then
> reloaded. Not much can be accomplished with this (you would notice
> that person working on your computer).
>
> Several people argue that with TLS/SSL it is harder to fiddle with the
> Javascript. Therefore, it is better. Let's take a look at this:
>
> i) When client attempts to establish a secured TLS/SSL communication
> with server, the connection is not initially secured. So, we have
> something like this:
>
> UNSECURE -> CERT. EXCHANGE -> CERT. VERIF -> KEY NEGOTIATION -> SECURE
> EXCHANGE -> JS TRANSFER -> LOGIN FORM
>
> ii) With the method I would like to try:
>
> UNSECURE -> JS TRANSFER -> CERT. EXCHANGE -> CERT. VERIF -> KEY
> NEGOTIATION -> SECURE EXCHANGE -> LOGIN FORM
>
> We have already discussed the situation where JS can be fiddled
> between server and client and showed that TLS does not offer extra
> protection. Now, when secure exchange is accomplished in the other
> situation, secured communication is accomplished via RPC in my
> approach. One has to keep in mind that Diffie-Hellman is (often) used
> by TLS/SSL during the KEY NEGOTIATION, just like I will.
>
> I still remain open to arguments. Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send emai

Re: To GWT or Not to GWT

2010-12-15 Thread Eric Ayers
I chimed in because I maintain the gwt-gadgets API.

Personally, I could come up with some pathological cases,  can't think
of a single good reason to not use GWT :-)

There, now maybe you will get some responses.

On Wed, Dec 15, 2010 at 12:05 PM, bkard...@gmail.com  wrote:
> I see "Google Web Toolkit, Atlanta, GA USA" after your name, so I
> expect that you are just the kind of person whose opinion I'm looking
> for... What say 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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



Re: GWT 2.1 DateTimeFormat & locale changes?

2010-12-15 Thread Jim Douglas
> I tried to set the default locale using another bit
> of XML found at 
> http://code.google.com/intl/es-AR/webtoolkit/doc/latest/DevGuideI18nL...,
> but I could not even get the GWT compile to work when including that
> XML.

Me too; I thought I was just missing something.

The documentation says to add this to the .gwt.xml file:



http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html#LocaleDefault

But that rule does not appear to be valid.  I get this error message
when I add it:

The content of element type "module" must match "(inherits|source|
public|super-source|entry-point|stylesheet|
 script|servlet|replace-with|generate-with|define-property|extend-
property|set-property|clear-configuration-
 property|define-configuration-property|extend-configuration-property|
set-configuration-property|property-
 provider|define-linker|add-linker)*".

And I don't see it defined, even in the most current version of the
dtd:

http://google-web-toolkit.googlecode.com/svn/tags/2.1.0/distro-source/core/src/gwt-module.dtd

On Dec 2, 5:23 am, Rick Porter  wrote:
> I think I have solved my date/time issues by forcing a locale, but I
> would welcome suggestions for a better solution.
>
> In my module XML, I added the following line to include some
> internationalization code:
>
>    
>
> I added the following line to my module XML for my locale:
>
>    
>
> Including the locale extend-property increases the GWT compile time,
> since the compile does each browser/locale combination. This was the
> most undesireable piece of my solution since it basically doubled my
> GWT compile times. I tried to set the default locale using another bit
> of XML found 
> athttp://code.google.com/intl/es-AR/webtoolkit/doc/latest/DevGuideI18nL...,
> but I could not even get the GWT compile to work when including that
> XML.
>
> The last required piece was adding the following line in my HTML file:
>
>    
>
> This gives it a default locale, but I believe that it can be
> overridden with request parameters.
>
> I did test this on a couple projects, and it worked for both. However,
> I did not test with different locales. It seems that a new GWT 2.1
> project has the same issues, so this is not just a GWT 2.0 conversion
> problem -- I tested by adding a DateBox to a new GWT default project.
>
> Enjoy,
> Rick

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



JSONP and single signon (JOSSO)

2010-12-15 Thread koma
Hi

I am developing a GWT app that talks to a JSONP service.

The HTML host page is on a different domain from the JSONP service.

The HTML host page is protected by a single signon service JOSSO (
http://www.josso.org)
The JSONP service is protected by the same single signon service.
The results from the JSONP vary depending on the user that is logged in.

Upon retrieving the HTML host page the first time, the user is redirected to 
the JOSSO login page. After authentication, a cookie keeps the JOSSO session 
alive.
The problem is that the JSONP calls don't seem propagate this cookie.

Can somebody confirm this ? Is there a workaround ?

thx,

Koen


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



Re: Is encryption over RCP possible?

2010-12-15 Thread UseTheFork
Hi Rob,

On Dec 15, 9:39 am, Rob Coops  wrote:
> Lets sum this up nice and quick...
>
>    - SSL/TLS uses certificates and is according to most as save as it gets
>    - MITM attacks can and do happen, they could theoretically even mess with
>    SSL/TLS communication
>    - SSL/TLS MITM attacks have to the best of my knowledge not been seen in
>    the real world (yet)

Ok, then Google 'SSL/TLS MITM attacks'. Those attack do (and did)
happen, but no bank or official institution will ever admit that.
Their business would collapse if they admitted this publicly...

Now if you want a specific example:
http://www.zdnet.com/blog/security/man-in-the-middle-attacks-demoed-on-4-smartphones/4922

>    - Javascript cannot do its own encryption as it simply does not have the
>    right tools for it

True, but there are many libraries available which provide
functionalities facilitating the implementation of encryption.

> Designing a watertight security solution that cannot be broken when
> transporting data over a publicly accessible network is nothing else then
> ignorance or arrogance on the part of the designer, it simply is not
> possible not in the long run at least.

Yes, it is possible when there is a pre-established secret between
Alice and Bob. But, that is (most) often not the case on the Internet.
So, I cannot rely on this.

(REM: in a private email, someone argued that root certificates stored
in browsers where pre-established secrets and concluded that TLS/SSL
was therefore stronger than my approach; such certificates are not,
they are public, this is no secret)

> So take what you can get and throw as
> much at it as possible SSL/TSL, your own encryption and anything else you
> think might help to make the life of friend Mallory as miserable as
> possible.

TLS or not, user input should never be trusted and has to be checked
by the server. If you have a method that checks this, then TLS is
redundant. It does not offer more protection, but takes its toll on
the communication.

The main criticism I have received so far is Javascript fiddling.

a) Fiddling Javascript while it is transferred between server and
client is hard to achieve. If Mallory can do that, he/she may as well
fiddle with certificates, meaning TLS does not offer protection
against this kind of attack.
b) Javascript injection can also happen when a web site inserts
iframes to attempt to collect cookies information about a 3rd party
web-site it want to corrupt. With my method, I don't use cookies,
therefore such attacks are not possible.
c) Javascript can also be fiddle within a web page locally and then
reloaded. Not much can be accomplished with this (you would notice
that person working on your computer).

Several people argue that with TLS/SSL it is harder to fiddle with the
Javascript. Therefore, it is better. Let's take a look at this:

i) When client attempts to establish a secured TLS/SSL communication
with server, the connection is not initially secured. So, we have
something like this:

UNSECURE -> CERT. EXCHANGE -> CERT. VERIF -> KEY NEGOTIATION -> SECURE
EXCHANGE -> JS TRANSFER -> LOGIN FORM

ii) With the method I would like to try:

UNSECURE -> JS TRANSFER -> CERT. EXCHANGE -> CERT. VERIF -> KEY
NEGOTIATION -> SECURE EXCHANGE -> LOGIN FORM

We have already discussed the situation where JS can be fiddled
between server and client and showed that TLS does not offer extra
protection. Now, when secure exchange is accomplished in the other
situation, secured communication is accomplished via RPC in my
approach. One has to keep in mind that Diffie-Hellman is (often) used
by TLS/SSL during the KEY NEGOTIATION, just like I will.

I still remain open to arguments. Thanks!

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



Re: Property Provider for specific Users Agent

2010-12-15 Thread Patrice De Saint Steban
Thanks Thomas,

It's was the solution !

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



Re: To GWT or Not to GWT

2010-12-15 Thread bkard...@gmail.com
I see "Google Web Toolkit, Atlanta, GA USA" after your name, so I
expect that you are just the kind of person whose opinion I'm looking
for... What say 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how can i add my voice in my gwt application as time of regi

2010-12-15 Thread David Chandler
Assuming you can find an HTML / JS feature that allows access to the
user's microphone (I'm not aware of any), you could create a GWT
wrapper for it using a JSNI method similar to how gwt-mobile-webkit
wraps HTML 5 capabilities. Also see the gwt-voices project for sound
output (but not input, AFAIK) from GWT.

With Chrome, you may be able to use native client
http://code.google.com/p/nativeclient/ to get access to the mic,
perhaps someone on one of the NaCl forums would know?

HTH,
/dmc

On Wed, Dec 15, 2010 at 12:03 AM, dhruti  wrote:
> hi, i m gwt developer
>
> how can i add my voice in my gwt application as time of registration
> and than after at the time of login how can i authnticate that voice?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: Jetty WTP problems (Jetty is publishing to temp dir)

2010-12-15 Thread Thomas Broyer
Jetty WTP does not normally package a WAR, so there's no need to extract it 
anywhere.
It copies the resources into the workspace's .metadata 
(tmp0/wtpwebapps/) and creates a Jetty Context XML file 
(tmp0/contexts/.xml) that further "configures" the webapp. To 
re-publish the app, Jetty WTP updates the wtpwebapps resources and then 
"touches" the context.xml to have Jetty reload it (and in effect redeploy 
the associated webapp) next time it scans for updates. Jetty is configured 
(as configured by Jetty WTP, in the jetty-webapps.xml) to scan context files 
for updates every second.

Check that the WebAppProvider in the Jetty conf. is correctly initialized 
with a false (generally in jetty-webapps.xml; 
in your "Servers" project in Eclipse).
Also check that it's indeed loaded and taken into account (it should be 
listed in the start.ini, but introducing an XML ill-formed-ness would be 
enough to *prove* it).
Finally, check the context XML file that Jetty WTP creates.

It's working OK for all 5 developers of our team (I'm the only one on 
Windows, all others on Ubuntu 10.04 or 10.10)

If I were you, I'd ask the jetty-users mailing list…

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



Re: A vertical scroll bar problem in CellBrowser

2010-12-15 Thread Y2i
Thanks for accepting the issue John!

On Dec 15, 5:34 am, John LaBanca  wrote:
> Thanks.  I'll try to fix it for GWT 2.2.
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
>
>
>
>
>
> On Tue, Dec 14, 2010 at 10:03 PM, Y2i  wrote:
> > Thanks for your reply John!
>
> > I created an issue 5764
> >http://code.google.com/p/google-web-toolkit/issues/detail?id=5764
>
> > but I couldn't assign it to you (I probably don't have a permission)
>
> > I only see the issue in one browser out of two:
> > Chrome 9.0.597.16 dev has the issue
> > Firefox 3.6.13 does not have one (the second slide at
>
> >https://docs.google.com/present/edit?id=0Aaoje-sOVpn_ZGRwNmpma3ZfMTFk...
> > )
>
> > The issue is related to the overflow parameter on the cell browser
> > element.  If I set
> > browser.getElement().getStyle().setOverflow(Overflow.VISIBLE);
> > the scroll bars completely disappear (but, of course, the browser
> > becomes unusable when its width grows beyond its parent's width)
>
> > Thanks again,
> > Yuri
>
> > On Dec 14, 6:25 pm, John LaBanca  wrote:
> > > Can you create an issue and assign it to me.  Also, do you see this in
> > all
> > > browsers?
>
> > > Thanks,
> > > John LaBanca
> > > jlaba...@google.com
>
> > > On Tue, Dec 14, 2010 at 7:03 PM, Y2i  wrote:
> > > > The problem is shown on this slide:
>
> > > >https://docs.google.com/present/edit?id=0Aaoje-sOVpn_ZGRwNmpma3ZfMTFk.
> > ..
>
> > > > A CellBrowser fills its parent (with an orange border), and the parent
> > > > in turn sits inside a LayoutPanel (with a blue border).  When the
> > > > CellBrowser is not wide enough, it perfectly fills it's parent (the
> > > > top screenshot).  As soon as the CellBrowser becomes wider than it's
> > > > parent, it displays a horizontal scroll bar, as shown on the second
> > > > screenshot.  And it looks like the horizontal scroll bar causes an
> > > > extra vertical scroll bar to appear on the far right, which does not
> > > > make the whole thing look pretty.
>
> > > > Is there a way to get rid of the vertical scroll bar on the far right?
>
> > > > Thanks in advance for your help!
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: To GWT or Not to GWT

2010-12-15 Thread Eric Ayers
OK, fair enough. I just wasn't sure if you had the Gadget problem
space specifically in mind.

On Wed, Dec 15, 2010 at 10:10 AM, bkard...@gmail.com  wrote:
> Just in case it is not clear what I am trying to ask...
>
> The original question post began by (I thought) implying that this is
> not a concrete example and is peppered with words and phrases like "if
> every gadget", "potentially", "hyptothetically speaking" "in this
> hyptothetical example" and "in this kind of case".  What I'm asking is
> - from the GWT team's POV, are there potentially classes of problems
> for which the whole thing "cannot be compiled" (some kind of mashup of
> disparate, but - for simplicity sake - somehow trustable code bases)
> in which GWT would just have too little insight to the problem at
> large to actually optimize - thereby effectively making it a non-ideal
> choice... Or if the GWT team had such a problem at hand - would they
> choose GWT, and if so, how would they deal with the implications
> spelled out above?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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



Re: RequestFactory: return persisted ID in proxy after successful persist()

2010-12-15 Thread Y2i
> It returns the "stable id", which you already have with person.stableId().

May be you can use "stable id" to implement PersonPlace with the help
of RequestFactory.getHistoryToken(EntityProxyId proxy) and
RequestFactory.getProxyId(String historyToken)?

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



Re: file download using gwt and Servlet

2010-12-15 Thread Jim Douglas
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/8c708ac2da186d17/ca92d9d8f78a0e19

On Dec 15, 5:20 am, Bhaswanth Gattineni  wrote:
> Hi , I need to implement file download .I don't want give any server
> side file urls to download directly .I created a servlet which will
> open the file and write it to stream of response.Now coming to front
> gwt i have onResponseReceived(Request request, Response response)
> which will be called on receiving the response .Now how to proceed
> further? .My operation required is ,file in stream should be
> downloaded to client computer.(like similar to rapidshare) gwd code
> should automatically trigger the download without user intervention of
> clicking the link or anything .
>
> can one help me regarding this ?
>
>  Im new to this GWT.but as per my knowledge if i use this
> RequestBuilder .then file object will be cached and sent instead of
> streaming i guess.Please correct me if im wrong.If its wrong.what can
> be the best way to do this functionality ?

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



Re: Manipulate localized date on the server side

2010-12-15 Thread Sydney
My problem is not really how to store the date. I store them as GMT. My 
question is more about where should I run the code to process these dates in 
a localized manner. Either I do it on the server side to avoid sending too 
much data over the wire. In that case I need to get the client locale and 
timezone. Or I do it on the client side and I just have to process the date 
with DateTimeFormat. I think the first solution is more efficient in term of 
data transfered but the second one is easier to implement.

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



Re: MVP Issue

2010-12-15 Thread PhilBeaudoin
What Myles describe is discussed here:
http://code.google.com/webtoolkit/articles/mvp-architecture-2.html
And there:
http://arcbees.wordpress.com/2010/09/18/uihandlers-and-supervising-controlers/

It really makes it easier to use cool features like @UiHandler,
however if you want to keep your old approach here's how you can do:

public interface HasClickAndChangeHandlers extends HasClickHandlers,
HasChangeHandlers {}

public class HasClickAndChangeHandlersImpl
implements HasClickAndChangeHandlers {

  T widget;

  public HasClickAndChangeHandlersImpl(T widget) {
this.widget = widget;
  }
  @Override
  public HandlerRegistration addClickHandler(ClickHandler handler) {
return widget.addClickHandler(handler);
  }
  @Override
  public HandlerRegistration addChangeHandler(ChangeHandler handler) {
return widget.addChangeHandler(handler);
  }
  @Override
  public void fireEvent(GwtEvent event) {
widget.fireEvent(event);
  }
}




On Dec 14, 10:49 am, Myles Bostwick  wrote:
> I solve this by passing in the presenter to the view, the view catches these
> events and calls a particular method on the presenter.  That way the
> presenter doesn't have to know anything about the view code.  Hope that's
> helpful.

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



Re: Why won't the GWT 2.1 MVP example compile?

2010-12-15 Thread Y2i
It looks like you didn't inherit com.google.gwt.activity.Activity
module

On Dec 14, 2:23 pm, Ingert Doe  wrote:
> Hello! I have just spent hours trying to get the GWT 2.1 MVP example
> to compile but it just won't work. I can't for the life of me
> understand what is wrong here. This is what I have done:
>
> * I created a new GWT 2.1 project in eclipse (3.6)
> * I compile the default "Hello Server" code that is generated, and it
> works, no problem
> * I followed the GWT 2.1 MVP tutorial and added the classes to my
> project, one by one.
>
> Now when I try to compile I get the following error output:
>
> Compiling module org.mem.GWT21Test
>    Validating newly compiled units
>       [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
> GWT21Test/src/org/mem/client/AppActivityMapper.java'
>          [ERROR] Line 7: No source code is available for type
> com.google.gwt.activity.shared.ActivityMapper; did you forget to
> inherit a required module?
>          [ERROR] Line 16: No source code is available for type
> com.google.gwt.activity.shared.Activity; did you forget to inherit a
> required module?
>          [ERROR] Line 16: No source code is available for type
> com.google.gwt.place.shared.Place; did you forget to inherit a
> required module?
>       [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
> GWT21Test/src/org/mem/client/AppPlaceHistoryMapper.java'
>          [ERROR] Line 7: No source code is available for type
> com.google.gwt.place.shared.PlaceHistoryMapper; did you forget to
> inherit a required module?
>       [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
> GWT21Test/src/org/mem/client/ClientFactory.java'
>          [ERROR] Line 8: No source code is available for type
> com.google.gwt.place.shared.PlaceController; did you forget to inherit
> a required module?
>       [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
> GWT21Test/src/org/mem/client/ClientFactoryImpl.java'
>          [ERROR] Line 9: No source code is available for type
> com.google.gwt.place.shared.PlaceController; did you forget to inherit
> a required module?
>       [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
> GWT21Test/src/org/mem/client/GWT21Test.java'
>          [ERROR] Line 15: No source code is available for type
> com.google.gwt.place.shared.Place; did you forget to inherit a
> required module?
>          [ERROR] Line 21: No source code is available for type
> com.google.gwt.place.shared.PlaceController; did you forget to inherit
> a required module?
>          [ERROR] Line 24: No source code is available for type
> com.google.gwt.activity.shared.ActivityMapper; did you forget to
> inherit a required module?
>          [ERROR] Line 25: No source code is available for type
> com.google.gwt.activity.shared.ActivityManager; did you forget to
> inherit a required module?
>          [ERROR] Line 30: No source code is available for type
> com.google.gwt.place.shared.PlaceHistoryHandler; did you forget to
> inherit a required module?
>       [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
> GWT21Test/src/org/mem/client/GoodbyeActivity.java'
>          [ERROR] Line 8: No source code is available for type
> com.google.gwt.activity.shared.AbstractActivity; did you forget to
> inherit a required module?
>       [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
> GWT21Test/src/org/mem/client/GoodbyePlace.java'
>          [ERROR] Line 6: No source code is available for type
> com.google.gwt.place.shared.Place; did you forget to inherit a
> required module?
>          [ERROR] Line 17: No source code is available for type
> com.google.gwt.place.shared.PlaceTokenizer; did you forget to
> inherit a required module?
>       [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
> GWT21Test/src/org/mem/client/HelloActivity.java'
>          [ERROR] Line 8: No source code is available for type
> com.google.gwt.activity.shared.AbstractActivity; did you forget to
> inherit a required module?
>          [ERROR] Line 26: No source code is available for type
> com.google.gwt.place.shared.Place; did you forget to inherit a
> required module?
>       [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
> GWT21Test/src/org/mem/client/HelloPlace.java'
>          [ERROR] Line 6: No source code is available for type
> com.google.gwt.place.shared.Place; did you forget to inherit a
> required module?
>          [ERROR] Line 17: No source code is available for type
> com.google.gwt.place.shared.PlaceTokenizer; did you forget to
> inherit a required module?
>       [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
> GWT21Test/src/org/mem/client/HelloView.java'
>          [ERROR] Line 11: No source code is available for type
> com.google.gwt.place.shared.Place; did you forget to inherit a
> required module?
>    Finding entry point classes
>       [ERROR] Unable to find type 'org.mem.client.GWT21Test'
>          [ERROR] Hint: Previous compiler errors may

Re: Property Provider for specific Users Agent

2010-12-15 Thread Thomas Broyer


On Wednesday, December 15, 2010 4:00:58 PM UTC+1, Patou wrote:
>
> Hello, I create a property for know the type of mobile browser (iphone, 
> android, skyfire, firefox_mobile, opera_mobile or not a phone browser). The 
> problème is now I have 6 user agents and 6 phone user agent, it's build 36 
> permissions juste for the user agent, with internationalisation, there are 
> 36*n permutations ! His there a way to tell to GWT with properties 
> combinaisons is possible ? with the IE permutations there are phone with the 
> iphone, android, skyfire, there are just the safari permutations to build 
> and firefox mobile and opera_mobile with there specifics browser 
> permutations. It's must build just 12 permutations ! I use with this new 
> properties deffered binding and CSS conditionnal Thanks Patrice


See 
http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties#Example_2:_Avoiding_permutation_explosion
 

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



Re: onResize issue with IE 7

2010-12-15 Thread Philippe Beaudoin
Weird. Could you have some strange circular widget hierarchy?

On Wed, Dec 15, 2010 at 3:26 AM, Magnus  wrote:
> After adding the above code into my onResize method, my browser
> hangs...
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: RequestFactory: return persisted ID in proxy after successful persist()

2010-12-15 Thread RyanD
Of course!  Thanks, Thomas.  I keep forgetting that these aren't
"magical" methods, even persist().  Problem solved.

On Dec 15, 3:56 am, Thomas Broyer  wrote:
> On Wednesday, December 15, 2010 6:14:10 AM UTC+1, RyanD wrote:
>
> > This might be better logged as a feature request, but I wanted to
> > check that I hadn't missed something first.
>
> > Given something like this:
>
> > PersonProxy person = context.create(PersonProxy.class);
> > person.setName(name);
> > context.persist().using(person).fire(. etc.
>
> > In the call to:
>
> > onSuccess
>
> > person.getId() == null
>
> > Even though of course the persistence layer assigned it an ID.
>
> > Seems like it would be pretty useful to have GWT RF not necessarily
> > transmit every person property back to the client after a successful
> > persist, but certainly getting the ID back to the client would be
> > useful. For example, after the successful persist, let's say I want
> > to restfully navigate to a PersonPlace and use the person's new ID
> > (assigned by persistence layer) in the token?
>
> Can't you have your persist() method return the ID, so you have it passed as
> argument to the onSuccess method?

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



Re: GWT 2.1 DateTimeFormat & locale changes?

2010-12-15 Thread jhulford
This message is several days old, but I just ran into this too and
wanted to avoid having to update my host pages w/ the meta tags since
I'm only using the one locale as well.

To do this, add the following to your module's config file (.gwt.xml):






On Dec 2, 8:23 am, Rick Porter  wrote:
> I think I have solved my date/time issues by forcing alocale, but I
> would welcome suggestions for a better solution.
>
> In my module XML, I added the following line to include some
> internationalization code:
>
>    
>
> I added the following line to my module XML for mylocale:
>
>    
>
> Including thelocaleextend-property increases theGWTcompile time,
> since the compile does each browser/localecombination. This was the
> most undesireable piece of my solution since it basically doubled 
> myGWTcompile times. I tried to set the defaultlocaleusing another bit
> of XML found 
> athttp://code.google.com/intl/es-AR/webtoolkit/doc/latest/DevGuideI18nL...,
> but I could not even get theGWTcompile to work when including that
> XML.
>
> The last required piece was adding the following line in my HTML file:
>
>    
>
> This gives it a defaultlocale, but I believe that it can be
> overridden with request parameters.
>
> I did test this on a couple projects, and it worked for both. However,
> I did not test with different locales. It seems that a newGWT2.1
> project has the same issues, so this is not just aGWT2.0 conversion
> problem -- I tested by adding a DateBox to a newGWTdefault project.
>
> Enjoy,
> Rick

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



CssResource @def in UiBinder

2010-12-15 Thread John
I'm trying to use a set of common @def statements across multiple
child projects.  I cannot directly reference the css file in the
uiBinder - its in another project.  I need a way to set the 
tag to import / use / set source the css with @def statements from a
CssResource inside of a common ClientBundle.  The only fields
available inside  AFAIK are type, src, and field.  Type
requires that an interface be implemented, and src can only do paths
to a css file.  I need to point the src to a CssResource but this
doesn't seem possible.

(as an aside: I couldn't find a javadoc for any of the  tags -
they need to be explicitly available somewhere)


definitions.css
@def COLOR_ONE #3B5998;
@def COLOR_TWO #DFE4EE;
@def COLOR_THREE #FF;
@def COLOR_FOUR #6792AB;
@def COLOR_FIVE #00;

CommonBundle
public interface CommonBundle extends ClientBundle {

@Source("definitions.css")
Definitions definitions();

@Shared
public interface Definitions extends CssResource {

String COLOR_ONE();

String COLOR_TWO();

String COLOR_THREE();

String COLOR_FOUR();

String COLOR_FIVE();
}

---Doesn't work

.outerLabel {
color: COLOR_THREE;
}


---Doesn't work

.outerLabel {
color: COLOR_THREE;
}


--- Would like to use 


.outerLabel {
color: COLOR_THREE;
}


Is there a workaround / solution to this that I just don't know?  I
can't find anything searching through the forum posts ...

Thanks,
John

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



Re: GWT + Google Maps (JSNI) put a map in a panel

2010-12-15 Thread Alberto
Thank You for you reply!

I'm Italian... I can't use Map API for GWT because it supports only
Maps API v2! So I'm using JSNI to work with the v3 Maps API, but I
need a way to put a map in a panel and not in a DOM Node!

On 14 Dic, 20:57, jMotta  wrote:
> Sup,
>
> There is an API to Maps in GWT, so you can declare your panel using
> UiBinder or programatic and then renderize your map at runtime.
>
> You're brazilian? add jayrmo...@gmail.com in gtalk and i help you! :D
>
> Thanks!
>
> On Dec 14, 7:23 am, Alberto  wrote:
>
>
>
>
>
>
>
> > Hi!
> > First of all I'm sorry for my English. :)
>
> > I'm going to realize a GWT application that uses Maps v3 API using
> > JSNI...
>
> > To create a new Map I have to pass a DOM parameter (a node of DOM) in
> > this way:
> > panorama = new
> > $wnd.google.maps.StreetViewPanorama($doc.getElementById('pano_canvas'),pano 
> > ramaOptions);
>
> > where 'pano_canvas' is a  element in my html page.
>
> > I want to draw my map in a panel and manage it with GWT technology.
> > There is a way to refer to a dynamic panel instead of refer to a
> > static DOM element?
>
> > 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: To GWT or Not to GWT

2010-12-15 Thread bkard...@gmail.com
Just in case it is not clear what I am trying to ask...

The original question post began by (I thought) implying that this is
not a concrete example and is peppered with words and phrases like "if
every gadget", "potentially", "hyptothetically speaking" "in this
hyptothetical example" and "in this kind of case".  What I'm asking is
- from the GWT team's POV, are there potentially classes of problems
for which the whole thing "cannot be compiled" (some kind of mashup of
disparate, but - for simplicity sake - somehow trustable code bases)
in which GWT would just have too little insight to the problem at
large to actually optimize - thereby effectively making it a non-ideal
choice... Or if the GWT team had such a problem at hand - would they
choose GWT, and if so, how would they deal with the implications
spelled out above?

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



Re: How to add checkbox in header.

2010-12-15 Thread Subhrajyoti Moitra
""check/uncheck all rows""- For this, u will either extend CheckBoxCell and
override the onBrowserEvent() method.
or create a new AbstractCell and override the onBrowser(..) method..

Thanks,
Subhro.

2010/12/15 Subhrajyoti Moitra 

> I believe u are talking about CellTable widget. If so..
>
> Define a Header object;
> Implement the getValue method.
>
> The header accepts a cell object in its constructor.
> U can define any Cell like CheckBoxCell etc.
>
> CheckboxCell cb=new CheckboxCell();
> Header hdr=new Header(cb) {
> @Override
> public Boolean getValue() {
>
> return false;//return true to see a checked
> checkbox.
> }
> };
>
> CellTable ct=new CellTable();
> ct.addColumn(colCell,hdr);
>
> colCell is defined elsewhere.
>
> Hope this helps.
>
> Thanks,
> Subhro.
>
>
> On Wed, Dec 15, 2010 at 1:00 PM, Diyko  wrote:
>
>> I thought it should be easy
>> Help
>>
>> On 14 Грд, 21:17, Diyko  wrote:
>> > I need add checkbox in header and implement "check/uncheck all rows"
>> > functionality?
>> > Anybody did it already?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>

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



Re: How to add checkbox in header.

2010-12-15 Thread Subhrajyoti Moitra
I believe u are talking about CellTable widget. If so..

Define a Header object;
Implement the getValue method.

The header accepts a cell object in its constructor.
U can define any Cell like CheckBoxCell etc.

CheckboxCell cb=new CheckboxCell();
Header hdr=new Header(cb) {
@Override
public Boolean getValue() {

return false;//return true to see a checked
checkbox.
}
};

CellTable ct=new CellTable();
ct.addColumn(colCell,hdr);

colCell is defined elsewhere.

Hope this helps.

Thanks,
Subhro.

On Wed, Dec 15, 2010 at 1:00 PM, Diyko  wrote:

> I thought it should be easy
> Help
>
> On 14 Грд, 21:17, Diyko  wrote:
> > I need add checkbox in header and implement "check/uncheck all rows"
> > functionality?
> > Anybody did it already?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Property Provider for specific Users Agent

2010-12-15 Thread Patou
Hello,

I create a property for know the type of mobile browser (iphone,
android, skyfire, firefox_mobile, opera_mobile or not a phone
browser).
The problème is now I have 6 user agents and 6 phone user agent, it's
build 36 permissions juste for the user agent, with
internationalisation, there are 36*n permutations !
His there a way to tell to GWT with properties combinaisons is
possible ?
with the IE permutations there are phone
with the iphone, android, skyfire, there are just the safari
permutations to build
and firefox mobile and opera_mobile with there specifics browser
permutations.
It's must build just 12 permutations !

I use with this new properties deffered binding and CSS conditionnal

Thanks

Patrice

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



Re: Title: EntityProxyChange not being called?

2010-12-15 Thread David Chandler
Hi Richard,

It looks like AbstractRequestContext.processReturnRecord() fires an
EntityProxyChange event only when the version has changed. See lines
270-285 here:

http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.0/user/src/com/google/gwt/requestfactory/client/impl/AbstractRequestContext.java?r=9426

The answer to your question likely lies in the implementation of
hasVersionChanged() in the same file. Perhaps you could set a
breakpoint on the server or client to confirm that the version has
indeed changed for the entity?

HTH,
/dmc

On Sun, Dec 12, 2010 at 5:52 PM, Richard Berger  wrote:
> I am following the model of DynaTableRf in building a sample app
> combining RequestFactory, EditorFramework, CellTable, and Objectify.
> In tracing the code for DynaTableRf after a new Person is created
> (when the user clicks on New Person), the onPersonChanged method is
> called, since it was registered using the following code:
>
> EntityProxyChange.registerForProxyType(eventBus, PersonProxy.class,
>    new EntityProxyChange.Handler() {
>      public void onProxyChange(EntityProxyChange event)
> {
>        SummaryWidget.this.onPersonChanged(event);
>      }
>    });
>
> However, in my code (which is essentially identical - same type of
> "workflow", usage of RequestFactory, cellTable) my onProxyChange() is
> NOT being called.  My code is shown below - yes, it looks quite
> similar :).
> EntityProxyChange.registerForProxyType(eventBus,
> CommitmentProxy.class,
>    new EntityProxyChange.Handler() {
>      public void onProxyChange(EntityProxyChange
> event) {
>        SummaryWidget.this.onCommitmentChanged(event);
>        System.out.println("In onCommitmentChanged");
>      }
>    });
>
> In both cases (DynaTableRf, my code) the new objects (Person,
> Commitment) are created - it is a matter of how to get the
> EntityProxyChange to be called to update the display.
>
> Two things I Hadn't noticed at first (but which had no effect when I
> tried them):
> 1. To my CommitmentProxy class, I added the following line to match
> the equivalent in PersonProxy
>        EntityProxyId stableId();  // For EntityProxyChange
> - but no help
> 2. To my persist() method, I added a manual update to the version
> field, thinking that might be necessary to trigger the
> EntityProxyChange.
>
> The one significant difference between my code and DynaTableRf is that
> I am using Objectify, whereas DynaTableRf appears to use an in-memory
> datastore.
>
> So my questions are:
> 1. What is it that should trigger the EntityProxyChange event?  The
> code for when the user presses the New Person button is:
> PersonRequest context = requestFactory.personRequest();
> AddressProxy address = context.create(AddressProxy.class);
> PersonProxy person = context.edit(context.create(PersonProxy.class));
> person.setAddress(address);
> context.persist().using(person);
> eventBus.fireEvent(new EditPersonEvent(person, context));
>
> My code for the new Commitment button is:
> CommitmentRequest context = requestFactory.commitmentRequest();
> CommitmentProxy commitment =
> context.edit(context.create(CommitmentProxy.class));
> commitment.setPhase("Negotiation");
> context.persist(currentCommitUserProxy).using(commitment);
> eventBus.fireEvent(new EditCommitmentEvent(commitment, context));
>
> 2. Is Objectify the problem?  Does it interfere with the magic that
> triggers EntityProxyChange?
>
> Thanks so much for any assistance!
> RB
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



ProxyObjects and generalization

2010-12-15 Thread poe
Hi,

i've got a problem with generalization in gwt and proxy objects. My
abstract class

@PersistenceCapable
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public abstract class Person implements IsSerializable {

  ...

  public void persist() {
...
  }

  @Persistent
  private String name;

...
}

and my child class

@PersistenceCapable
public class Employee extends Person {

...

}


work fine with JUnit testing and JDO.

When I want do implement the user interface i am a little bit confused
when i write the proxy classes.

My first idea is to create the PersonProxy.class as usual and then
create a EmployeeProxy.class extending the PersonProxy.class and just
add the additional functions. But by doing it this way i get an error
(key name is not permitted to be set) when persisting an employee
object through the requestfactory.

My second problem is, how should i implement the requestContext
interfaces in the requestFactory. By now i've only implemented the
Person.class as a requestContext for persisting an employee. ( I am
still stuck with the first problem here, so I don't know if there is a
better solution ).

Thank you for any kind of help here,
greeting
Poe

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



Re: Sample application for Editor Framework

2010-12-15 Thread David Chandler
Hi Nirmal,

The DynaTableRF sample app makes extensive use of the Editor framework.

http://code.google.com/p/google-web-toolkit/source/browse/#svn/releases/2.1/samples/dynatablerf

HTH,
/dmc

On Tue, Dec 14, 2010 at 8:46 AM, Nirmal  wrote:
> I am looking for resources and code samples to learn the GWT2.1 Editor
> Framework.
> Any suggestions apart from the
> DevGuide: http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html
>
> Thanks in advance,
> Nirmal
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

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



Re: get "plugin failed to connect to hosted mode server on ...." error with Chrome GWT developer plugin but works fine with Firefox

2010-12-15 Thread Someuser
I had the same issue. Check to which sites GWT plugin allowed to
connect (Tools->Extensions->GWT Developer plugin->Settings).
Firefox version of plugin asks if site not in list, Chrome version
just throws error.

On 6 дек, 18:08, puthali  wrote:
> Hi,
>
> From yesterday I've been getting "plugin failed to connect to hosted
> mode server on 127.0.0.1:9997" error with GWT developer plugin on
> Chrome but when I try the same on Firefox it works. Any help will be
> greatly appreciated as I really don't want to launch FF just for this.
>
> My Chrome GWT developer plugin version is 1.0.9274 and the Firefox GWT
> plugin version is 1.0.7511
>
> thanks,
> Puthali

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



how can i add my voice in my gwt application as time of regi

2010-12-15 Thread dhruti
hi, i m gwt developer

how can i add my voice in my gwt application as time of registration
and than after at the time of login how can i authnticate that voice?

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



How to export an image (s) from a GWT module.

2010-12-15 Thread Michal
Hi,

I've created a GWT widget module MyModule as a separate project in
Eclipse. My main GWT project MySite is using MyModule. MyModule
supplies a composite GWT widget to MySite. MyModule's widget's css
style uses a particular image.

My question is how do I configure MyModule to export the neccessary
image to the MySite's war folder, so that the MyModule's css style can
use that image.

I am aware of the ImageBundle concept. However it seems that in this
case it's not the right thing to use, as the image is accessed by a
css file, not the Java code.

Thanks,
Michal.

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



Why won't the GWT 2.1 MVP example compile?

2010-12-15 Thread Ingert Doe
Hello! I have just spent hours trying to get the GWT 2.1 MVP example
to compile but it just won't work. I can't for the life of me
understand what is wrong here. This is what I have done:

* I created a new GWT 2.1 project in eclipse (3.6)
* I compile the default "Hello Server" code that is generated, and it
works, no problem
* I followed the GWT 2.1 MVP tutorial and added the classes to my
project, one by one.

Now when I try to compile I get the following error output:


Compiling module org.mem.GWT21Test
   Validating newly compiled units
  [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
GWT21Test/src/org/mem/client/AppActivityMapper.java'
 [ERROR] Line 7: No source code is available for type
com.google.gwt.activity.shared.ActivityMapper; did you forget to
inherit a required module?
 [ERROR] Line 16: No source code is available for type
com.google.gwt.activity.shared.Activity; did you forget to inherit a
required module?
 [ERROR] Line 16: No source code is available for type
com.google.gwt.place.shared.Place; did you forget to inherit a
required module?
  [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
GWT21Test/src/org/mem/client/AppPlaceHistoryMapper.java'
 [ERROR] Line 7: No source code is available for type
com.google.gwt.place.shared.PlaceHistoryMapper; did you forget to
inherit a required module?
  [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
GWT21Test/src/org/mem/client/ClientFactory.java'
 [ERROR] Line 8: No source code is available for type
com.google.gwt.place.shared.PlaceController; did you forget to inherit
a required module?
  [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
GWT21Test/src/org/mem/client/ClientFactoryImpl.java'
 [ERROR] Line 9: No source code is available for type
com.google.gwt.place.shared.PlaceController; did you forget to inherit
a required module?
  [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
GWT21Test/src/org/mem/client/GWT21Test.java'
 [ERROR] Line 15: No source code is available for type
com.google.gwt.place.shared.Place; did you forget to inherit a
required module?
 [ERROR] Line 21: No source code is available for type
com.google.gwt.place.shared.PlaceController; did you forget to inherit
a required module?
 [ERROR] Line 24: No source code is available for type
com.google.gwt.activity.shared.ActivityMapper; did you forget to
inherit a required module?
 [ERROR] Line 25: No source code is available for type
com.google.gwt.activity.shared.ActivityManager; did you forget to
inherit a required module?
 [ERROR] Line 30: No source code is available for type
com.google.gwt.place.shared.PlaceHistoryHandler; did you forget to
inherit a required module?
  [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
GWT21Test/src/org/mem/client/GoodbyeActivity.java'
 [ERROR] Line 8: No source code is available for type
com.google.gwt.activity.shared.AbstractActivity; did you forget to
inherit a required module?
  [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
GWT21Test/src/org/mem/client/GoodbyePlace.java'
 [ERROR] Line 6: No source code is available for type
com.google.gwt.place.shared.Place; did you forget to inherit a
required module?
 [ERROR] Line 17: No source code is available for type
com.google.gwt.place.shared.PlaceTokenizer; did you forget to
inherit a required module?
  [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
GWT21Test/src/org/mem/client/HelloActivity.java'
 [ERROR] Line 8: No source code is available for type
com.google.gwt.activity.shared.AbstractActivity; did you forget to
inherit a required module?
 [ERROR] Line 26: No source code is available for type
com.google.gwt.place.shared.Place; did you forget to inherit a
required module?
  [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
GWT21Test/src/org/mem/client/HelloPlace.java'
 [ERROR] Line 6: No source code is available for type
com.google.gwt.place.shared.Place; did you forget to inherit a
required module?
 [ERROR] Line 17: No source code is available for type
com.google.gwt.place.shared.PlaceTokenizer; did you forget to
inherit a required module?
  [ERROR] Errors in 'file:/Users/ingertd/Documents/workspace/
GWT21Test/src/org/mem/client/HelloView.java'
 [ERROR] Line 11: No source code is available for type
com.google.gwt.place.shared.Place; did you forget to inherit a
required module?
   Finding entry point classes
  [ERROR] Unable to find type 'org.mem.client.GWT21Test'
 [ERROR] Hint: Previous compiler errors may have made this
type unavailable
 [ERROR] Hint: Check the inheritance chain from your module;
it may not be inheriting a required module or a module may not be
adding its source path entries properly

What am I missing here?

-- 
You received this message because you are subscribed to the

ISSUE on pagination image

2010-12-15 Thread srinivas
Hi All,

I have a requirement to change the existing pagination image of
previous and next button.
wher is the location we need to put the new image for the previos and
next button?

pls help

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



file download using gwt and Servlet

2010-12-15 Thread Bhaswanth Gattineni


Hi , I need to implement file download .I don't want give any server
side file urls to download directly .I created a servlet which will
open the file and write it to stream of response.Now coming to front
gwt i have onResponseReceived(Request request, Response response)
which will be called on receiving the response .Now how to proceed
further? .My operation required is ,file in stream should be
downloaded to client computer.(like similar to rapidshare) gwd code
should automatically trigger the download without user intervention of
clicking the link or anything .

can one help me regarding this ?

 Im new to this GWT.but as per my knowledge if i use this
RequestBuilder .then file object will be cached and sent instead of
streaming i guess.Please correct me if im wrong.If its wrong.what can
be the best way to do this functionality ?


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



Re: A vertical scroll bar problem in CellBrowser

2010-12-15 Thread John LaBanca
Thanks.  I'll try to fix it for GWT 2.2.

Thanks,
John LaBanca
jlaba...@google.com


On Tue, Dec 14, 2010 at 10:03 PM, Y2i  wrote:

> Thanks for your reply John!
>
> I created an issue 5764
> http://code.google.com/p/google-web-toolkit/issues/detail?id=5764
>
> but I couldn't assign it to you (I probably don't have a permission)
>
> I only see the issue in one browser out of two:
> Chrome 9.0.597.16 dev has the issue
> Firefox 3.6.13 does not have one (the second slide at
>
> https://docs.google.com/present/edit?id=0Aaoje-sOVpn_ZGRwNmpma3ZfMTFkbWJocTI5cw&hl=en&authkey=CMzp2YQK
> )
>
> The issue is related to the overflow parameter on the cell browser
> element.  If I set
> browser.getElement().getStyle().setOverflow(Overflow.VISIBLE);
> the scroll bars completely disappear (but, of course, the browser
> becomes unusable when its width grows beyond its parent's width)
>
> Thanks again,
> Yuri
>
> On Dec 14, 6:25 pm, John LaBanca  wrote:
> > Can you create an issue and assign it to me.  Also, do you see this in
> all
> > browsers?
> >
> > Thanks,
> > John LaBanca
> > jlaba...@google.com
> >
> >
> >
> >
> >
> >
> >
> > On Tue, Dec 14, 2010 at 7:03 PM, Y2i  wrote:
> > > The problem is shown on this slide:
> >
> > >https://docs.google.com/present/edit?id=0Aaoje-sOVpn_ZGRwNmpma3ZfMTFk.
> ..
> >
> > > A CellBrowser fills its parent (with an orange border), and the parent
> > > in turn sits inside a LayoutPanel (with a blue border).  When the
> > > CellBrowser is not wide enough, it perfectly fills it's parent (the
> > > top screenshot).  As soon as the CellBrowser becomes wider than it's
> > > parent, it displays a horizontal scroll bar, as shown on the second
> > > screenshot.  And it looks like the horizontal scroll bar causes an
> > > extra vertical scroll bar to appear on the far right, which does not
> > > make the whole thing look pretty.
> >
> > > Is there a way to get rid of the vertical scroll bar on the far right?
> >
> > > Thanks in advance for your help!
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



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

2010-12-15 Thread Joseph . Favara

I will be out of the office starting  12/15/2010 and will not return until
12/17/2010.

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

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



Re: Hierarchical Places in GWT 2.1

2010-12-15 Thread Thomas Broyer


On Wednesday, December 15, 2010 11:22:52 AM UTC+1, dom.jansen wrote:
>
> Hey,
>
> is there a way to implement hierarchical places in gwt 2.1?
>
> E.g. i want:
> http://www.myexample.com/foo/bar
>
> In gwt 2.1 i get sth like this:
> http://www.myexample.com#foo:bar
>
> Regarding some posts of Thomas Broyer and the GWTP team it looks like
> there is no direct way to use hierarchical places in pure gwt 2.1
> (e.g. 
> http://groups.google.com/group/gwt-platform/browse_thread/thread/4c00e59dc139ccdf?fwc=1
> ).
>

That was about activities, not places.
 

> Are there workarounds (without involving a third party lib)?
>
> Replacing ":" with "/" may work with a customized
> AbstractPlaceHistoryMapper. So maybe the parameters of a place can
> mock hierarchical places.
>

If you don't want the prefix:place-specific-token pair, then indeed you have 
to create your own PlaceHistoryMapper instead of relying on the generator 
(do not use AbstractPlaceHistoryMapper though, it's really made for the 
prefix/token approach, which is not really –really not?– "hierarchical")
With your own PlaceHistoryMapper, you're free to parse an serialize your 
places the way you want. What's left then is to define Place types that 
model your "hierarchy".

> But what about removing the "#" hashtag?
>

Theoretically you could pass an Historian to the PlaceHistoryHandler that 
uses HTML5's pushState/onpopstate, but then that requires you to also handle 
the URLs on the server-side, because when people will bookmark the URLs, the 
browser will then request the full URL to the server.
See https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history

>

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



Jetty WTP problems (Jetty is publishing to temp dir)

2010-12-15 Thread Peter Barker
Hi,

I'm using Jetty WTP. When I publish my web application to the server it gets 
published in 2 places - under workspace metadata, and extracted to a 
temporary directory. If I then change a web page, the wtp location is 
updated, and Jetty will re-extract the war to a different temporary 
directory. Jetty serves files from the temporary directory.

This is causing me a lot of grief because when I run DevMode I need to give 
it the location of the war. I give it the only well-known and unchanging 
location (i.e. the one in workspace metadata). At startup DevMode creates 
additional files in this war so it can work properly (the 
modulename.nocache.js files, etc). The problem is that Jetty doesn't serve 
from this directory! I get HTTP 404 errors because the Javascript files 
cannot be found.

How is one supposed to use Jetty WTP with GWT? (The docs at 
http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee 
implies it's possible).

Thanks,

Pete

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



Re: RequestFactory: return persisted ID in proxy after successful persist()

2010-12-15 Thread Thomas Broyer

On Wednesday, December 15, 2010 6:14:10 AM UTC+1, RyanD wrote:
>
> This might be better logged as a feature request, but I wanted to 
> check that I hadn't missed something first. 
>
> Given something like this: 
>
> PersonProxy person = context.create(PersonProxy.class); 
> person.setName(name); 
> context.persist().using(person).fire(. etc. 
>
> In the call to: 
>
> onSuccess 
>
> person.getId() == null 
>
> Even though of course the persistence layer assigned it an ID. 
>
> Seems like it would be pretty useful to have GWT RF not necessarily 
> transmit every person property back to the client after a successful 
> persist, but certainly getting the ID back to the client would be 
> useful. For example, after the successful persist, let's say I want 
> to restfully navigate to a PersonPlace and use the person's new ID 
> (assigned by persistence layer) in the token?
>


Can't you have your persist() method return the ID, so you have it passed as 
argument to the onSuccess method?

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



Re: RequestFactory: return persisted ID in proxy after successful persist()

2010-12-15 Thread Thomas Broyer

On Wednesday, December 15, 2010 9:14:03 AM UTC+1, Y2i wrote:
>
> EntityProxyChange.registerForProxyType(...) can be used to get the ID 
> of the persisted object. 
>
> The receiver's 
> EntityProxyChange.Handler.onProxyChange(EntityProxyChange
>  
>
> event) will be called. 
> event.getWriteOperation() should return PERSIST 
> event.getProxyId() should return the stable id of the proxy. 
>
> This should help with a restful navigation after a successful persist.
>

It returns the "stable id", which you already have with person.stableId().

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



Re: build GWT from source, only can do on Linux?

2010-12-15 Thread salk31
Looks like it is not finding basic things like the servlet api jar and
htmlunit in the compile classpath. The tools checkout definitely in
the right place and the env variable correct? This bit is bog standard
Java so should compile fine. I think the documentation is just about
compiling native code. So if you just want to fiddle with the
compiler, runtime etc then you should be fine. I definitely had my own
version of some of the widgets working fine on XP.

On Dec 14, 12:11 pm, Sunny  wrote:
> oh really? i checked out the gwt trunk and run "ant" under it. the tool
> folder is also checked out which sit beside the trunk folder. and i also
> setup the GWT_TOOLS as system path. i google this group but find no topic
> match exactly the same i met, below is output, thanks for your answer.
>
> [gwt.javac]                                                    ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java:132:
> cannot find symbol
> [gwt.javac] symbol  : class ServletException
> [gwt.javac] location: class com.google.gwt.dev.shell.GWTShellServlet
> [gwt.javac]       throws ServletException, IOException {
> [gwt.javac]              ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java:137:
> cannot find symbol
> [gwt.javac] symbol  : class HttpServletRequest
> [gwt.javac] location: class com.google.gwt.dev.shell.GWTShellServlet
> [gwt.javac]   protected void doPost(HttpServletRequest request,
> HttpServletResponse response)
> [gwt.javac]                         ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java:137:
> cannot find symbol
> [gwt.javac] symbol  : class HttpServletResponse
> [gwt.javac] location: class com.google.gwt.dev.shell.GWTShellServlet
> [gwt.javac]   protected void doPost(HttpServletRequest request,
> HttpServletResponse response)
> [gwt.javac]                                                     ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java:138:
> cannot find symbol
> [gwt.javac] symbol  : class ServletException
> [gwt.javac] location: class com.google.gwt.dev.shell.GWTShellServlet
> [gwt.javac]       throws ServletException, IOException {
> [gwt.javac]              ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java:142:
> cannot find symbol
> [gwt.javac] symbol  : class HttpServletRequest
> [gwt.javac] location: class com.google.gwt.dev.shell.GWTShellServlet
> [gwt.javac]   protected void processFileRequest(HttpServletRequest request,
> [gwt.javac]                                     ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java:143:
> cannot find symbol
> [gwt.javac] symbol  : class HttpServletResponse
> [gwt.javac] location: class com.google.gwt.dev.shell.GWTShellServlet
> [gwt.javac]       HttpServletResponse response) throws IOException {
> [gwt.javac]       ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java:196:
> cannot find symbol
> [gwt.javac] symbol  : class HttpServletRequest
> [gwt.javac] location: class com.google.gwt.dev.shell.GWTShellServlet
> [gwt.javac]   protected void service(HttpServletRequest request,
> [gwt.javac]                          ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java:197:
> cannot find symbol
> [gwt.javac] symbol  : class HttpServletResponse
> [gwt.javac] location: class com.google.gwt.dev.shell.GWTShellServlet
> [gwt.javac]       HttpServletResponse response) throws ServletException,
> IOException {
> [gwt.javac]       ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java:197:
> cannot find symbol
> [gwt.javac] symbol  : class ServletException
> [gwt.javac] location: class com.google.gwt.dev.shell.GWTShellServlet
> [gwt.javac]       HttpServletResponse response) throws ServletException,
> IOException {
> [gwt.javac]                                            ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java:308:
> cannot find symbol
> [gwt.javac] symbol  : class HttpServletRequest
> [gwt.javac] location: class com.google.gwt.dev.shell.GWTShellServlet
> [gwt.javac]   private boolean autoGenerateResources(HttpServletRequest
> request,
> [gwt.javac]                                         ^
> [gwt.javac] D:\sunguo\My
> Documents\projects\gwt\google-web-tookit\dev\core\src\com\google\gwt\dev\sh 
> ell\GWTShellServlet.java

Re: RequestFactory, ServiceLocator and Spring

2010-12-15 Thread Thomas Broyer
RequestFactory will actually cache them (see the ServiceLayerCache class, 
both the ServiceLocator instance, associated with a given RequestContext 
class, and the service instance, associated with a given method, are cached, 
using memoization).

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



Re: extract substring from within 2 tokens

2010-12-15 Thread Thomas Broyer
First, java.util.regex is not emulated in GWT, so there's no reason to 
replace Apache Commons with java Regex.

There's however a com.google.gwt.regexp module. You could use something 
like:

RegExp r = RegExp.compile("ID:(.*?):ID", "g");
MatchResult m = r.exec(description);
if (m != null) {
   foundid = m.getGroup(1);
} else {
   // not found
}

(assuming 'description' can contain many things around the ID:...:ID, 
otherwise the String.split() option, or even String.substring, possibly 
combined with String.startsWith and String.endsWith, is the way to go as 
it's less error-prone)

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



Re: onResize issue with IE 7

2010-12-15 Thread Magnus
After adding the above code into my onResize method, my browser
hangs...

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



  1   2   >