com.google.gwt.core.client.JavaScriptException

2011-03-22 Thread alexoffspring
I have the following selectionListener attached to a standard button:

protected SelectionListener btnSelLst = new
SelectionListener() {
@Override
public void componentSelected(ButtonEvent ce) {
ViewTrePuntini w = (ViewTrePuntini)viewBuilder;
w.createNewView();

Window window = viewBuilder.retrieveWindow();
window.show();
}
};

viewBuilder a filed of the class that contains this button and is a
simple external builder i use to build my window. the field is
assigned to this class throught a setViewBuilder(ViewBuilder
viewBuilder).

the methods createNewView() and retrieveWindow() do not do nothing
special rather than creating my object and retrieving the window i
want to show.

When i FIRST click onto my button, i obtain what i want WITHOUT any
error.
Then, i i close my window and i click a SECOND time onto the same
button i obtain the following

com.google.gwt.core.client.JavaScriptException which does not make any
sense to me:

com.google.gwt.core.client.JavaScriptException: (TypeError): parent is
null
fileName: http://localhost:/  lineNumber: 162
stack: (null,[object HTMLDivElement])@http://localhost:/:162 @:0
([object GWTJavaObject],327937)@http://localhost://hosted.html?
siipalclient:56
 ([object GWTJavaObject])@http://localhost:/:14 @:0
([object GWTJavaObject],327937)@http://localhost://hosted.html?
siipalclient:56
 ([object GWTJavaObject])@http://localhost:/:14 @:0
 ([object GWTJavaObject],327937)@http://localhost://hosted.html?
siipalclient:56
 ([object GWTJavaObject])@http://localhost:/:14 @:0
([object GWTJavaObject],327937)@http://localhost://hosted.html?
siipalclient:56
 ([object GWTJavaObject])@http://localhost:/:14 @:0
 ([object GWTJavaObject],327937)@http://localhost://hosted.html?
siipalclient:56
 ([object GWTJavaObject])@http://localhost:/:14 @:0 (null,983110,
[object MouseEvent],[object HTMLTableElement],[object
GWTJavaObject])@http://localhost://hosted.html?siipalclient:56
([object MouseEvent])@http://localhost:/:107 ((function (evt) {var
listener, curElem = this;while (curElem && !(listener =
curElem.__listener)) {curElem = curElem.parentNode;}if (curElem &&
curElem.nodeType != 1) {curElem = null;}if (listener) {if
(__gwt_makeJavaInvoke(1)(null, 917622, listener))
{__gwt_makeJavaInvoke(3)(null, 983110, evt, curElem, listener);}}}),
[object HTMLTableElement],[object Object])@http://localhost:/:46 @:
0 (null,106,(function (evt) {var listener, curElem = this;while
(curElem && !(listener = curElem.__listener)) {curElem =
curElem.parentNode;}if (curElem && curElem.nodeType != 1) {curElem =
null;}if (listener) {if (__gwt_makeJavaInvoke(1)(null, 917622,
listener)) {__gwt_makeJavaInvoke(3)(null, 983110, evt, curElem,
listener);}}}),[object HTMLTableElement],[object Object])@http://
localhost://hosted.html?siipalclient:56 ([object
MouseEvent])@http://localhost:/:65

at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
129)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at com.goo


Can anyone please explain me what kind of error can be, since the
stack error is totally incomprehensible.


I appreciate any idea or slight of help that anyone can give to me.

--alex

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



Re: GWT eclipse pluggin won't install

2011-03-01 Thread alexoffspring
Search for "Error installing GWT 2.2 in eclipse 3.6 "

Need to download the .zip into your machine and do the upgrade locally
If it doesn't work you need to uninstall some plugins before.


--Alex

On 28 Feb, 17:06, Chris Moran  wrote:
> I'm trying to install the GWT pluggin into eclipse and am getting this
> error:
>
> Cannot complete the install because one or more required items could
> not be found.
>   Software being installed: Google Plugin for Eclipse 3.6
> 2.2.0.v201102111811
> (com.google.gdt.eclipse.suite.e36.feature.feature.group
> 2.2.0.v201102111811)
>   Missing requirement: Google Eclipse 3.6 Platform Plugin
> 2.2.0.v201102111811 (com.google.gdt.eclipse.platform.e36
> 2.2.0.v201102111811) requires 'bundle org.eclipse.jst.server.core
> 0.0.0' but it could not be found
>   Cannot satisfy dependency:
>     From: Google Plugin for Eclipse 3.6 2.2.0.v201102111811
> (com.google.gdt.eclipse.suite.e36.feature.feature.group
> 2.2.0.v201102111811)
>     To: com.google.gdt.eclipse.platform.e36 [2.2.0.v201102111811]
>
> Anyone one know how to resolve this? Using the latest 3.6 version of
> Eclipse. I checked installed pluggins and org.eclipse.jst.server.core
> 0.0.0 is not in the list. But I'm new to eclipse and can't even find
> how to install this missing dependency.
>
> Many posts of this bug on the eclipse site, but none seem to have a
> 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Failing to install Google Web Toolkit Eclipse plugin

2011-03-01 Thread alexoffspring
Arnault,
i had the same problem last week and opened a thread in the forum.
We solved the problem at the end.

Search for
"Error installing GWT 2.2 in eclipse 3.6 "

--Alex




On 1 Mar, 01:58, David Chandler  wrote:
> I'm able to download this URL OK, perhaps you saw a temporary network or
> service outage?
>
> /dmc
>
> On Mon, Feb 28, 2011 at 6:09 PM, arnaultbona...@yahoo.com <
>
>
>
> arnaultbona...@yahoo.com> wrote:
> > Hello All,
>
> > I don't know if others have encountered the same problem but it
> > happens that the GWT eclipse plugin installation fails with the
> > following error:
>
> > An error occurred while collecting items to be installed
> > session context was:(profile=epp.package.java,
> > phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
> > action=).
> > Unable to read repository at
>
> >http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
> > .
> > Read timed out
>
> > Others plugins installed fine (Google plugin and Google App Engine
> > plugin), only the google web toolkit has problem downloading the
> > sdkbundle jar file.
> > I thought I would post about this error in case others have similar
> > problem.
>
> > Any help would be greatly appreciated as I'm just starting with GWT.
>
> > Thanks and regards,
>
> > Arnault.
>
> > --
> > You received 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
> w:http://code.google.com/
> b:http://googlewebtoolkit.blogspot.com/
> t: @googledevtools

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



Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-23 Thread alexoffspring
Andrew,
thanks for your precious help.

I confirm that this procedure leads to a successfull installation.

The thread is [SOLVED]

Thanks to all for the contribute.

--Alex

On 23 Feb, 10:14, Andrew Scully  wrote:
> In my case, I had to install from the zip archive instead due to
> firewall trouble.
>
> Even then, I had to run the install (and restart) twice before it
> installed correctly, for some reason.
>
> Make sure your eclipse is fully up to date prior to installation.
>
> Cheers, Andy.
>
> On Feb 23, 8:02 am, alexoffspring  wrote:
>
> > Jesse,
> > doesn't work with me. Got the same error message
>
> > An error occurred while collecting items to be installed
> > session context was:(profile=SDKProfile,
> > phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
> > action=).
> > Artifact not found: osgi.bundle,com.google.gdt.eclipse.core,
> > 2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> > Artifact not found: osgi.bundle,com.google.gwt.eclipse.core,
> > 2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
> > Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer,
> > 2.2.0.r36x201102111505..
>
> > Why does Eclipse say:"Artifact not found" ??
>
> > Is there any official answer by Google? All the other users, that
> > joined the present discussion, did they manage to solve and upgrade to
> > 2.2?
> > How did they do?
>
> > --Alex
>
> > On 22 Feb, 18:28, Jesse  wrote:
>
> > > I had this problem as well.  It was solved by installing in
> > > increments:
>
> > > First, install Plugin only (no SDK)
> > > Next, install GWT 2.2 SDK (no App Engine)
> > > Finally, install App Engine SDK
>
> > > I restarted in between each.

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



Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-23 Thread alexoffspring

Jesse,
doesn't work with me. Got the same error message

An error occurred while collecting items to be installed
session context was:(profile=SDKProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
Artifact not found: osgi.bundle,com.google.gdt.eclipse.core,
2.2.0.v201102111811.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclipse.core_2.2.0.v201102111811.jar
Artifact not found: osgi.bundle,com.google.gwt.eclipse.core,
2.2.0.v201102111811.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclipse.core_2.2.0.v201102111811.jar
Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer,
2.2.0.r36x201102111505..

Why does Eclipse say:"Artifact not found" ??

Is there any official answer by Google? All the other users, that
joined the present discussion, did they manage to solve and upgrade to
2.2?
How did they do?


--Alex


On 22 Feb, 18:28, Jesse  wrote:
> I had this problem as well.  It was solved by installing in
> increments:
>
> First, install Plugin only (no SDK)
> Next, install GWT 2.2 SDK (no App Engine)
> Finally, install App Engine SDK
>
> I restarted in between each.

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



Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-16 Thread alexoffspring
>From what i read in this forum, many users got problems installing ver
2.2.

What i'd like to know, as many of us, is a definitive answer from
google. Since, this trial&error
approach by all these users may lead to wrong hints and apparently
correct solution, that may
work in some cases, but would worsen the situation in others.

As far as i know (somebody corrects me if i'm wrong) the up-to-date
situation is that, we need to be sure to uninstall the following
plugins before updating to 2.2:

eRCP Designer
GWT Designer
GWT Designer Core
GWT Designer Editor
Swing Designer
SWT Designer
SWT Designer Core
SWT Designer SWT_AWT Support
SWT Designer XWT Support
WindowBuilder Core
WindowBuilder Core Documentation
WindowBuilder Core UI
WindowBuilder CSS Support
WindowBuilder GroupLayout Support
WindowBuilder XML Core

>From my experience, i can say that this is NOT sufficient to complete
a correct installation for Eclipse 3.6 (Helios) from
http://dl.google.com/eclipse/plugin/3.6
(which is the formal link to use that google is publishing here:
http://code.google.com/intl/it-IT/eclipse/docs/download.html )



--Alex


On 16 Feb, 21:24, RorohikoKris  wrote:
> Further info: this morning, I re-tried my experiment with a fresh
> install of Helios, 3.6 - same setup, and it worked!
>
> A few things are different - so any one of them or a combination of
> them might have fixed it:
>
> 1) It's a few days later - so maybe whatever was wrong is fixed now
> 2) I am in a different location, using a different Internet connection
> (been travelling)
>
> I am not using any proxies - so I don't think proxy settings would be
> the issue.
>
> On Feb 17, 2:32 am, Andrew Scully  wrote:
>
> > Well that settles it, it can't be anything to do with the installation
> > history of the eclipse if you had this issue with a fresh install.
>
> > It seems to be the case that several jars are not coming down with the
> > install, or are not getting through to the plugins directory.
>
> > I am on Windows XP by the way.
>
> > On Feb 15, 8:35 pm, RorohikoKris  wrote:
>
> > > Hi Chris,
>
> > > On Feb 16, 2:08 am, Chris Ramsdale  wrote:> Alex,
>
> > > > Can you tell us what components you currently have installed within 
> > > > Eclipse?
> > > > ("Install New Software..." menu option, and then click on the "already
> > > > installed" link)
>
> > > For what it's worth - I am having the same issues (update or install
> > > fails with a bunch of 'artifact not found' errors).
>
> > > I am on a Mac, OS X 10.6.6. I eventuallyI tried downloading a fresh
> > > Eclipse 3.6.1 Helios from the Eclipse web site and tried to install
> > > GWT 2.2 into it from scratch (nothing else installed yet, but I think
> > > I did allow Eclipse to update its own stuff first) and still had the
> > > same problem - I used the 'Eclipse for EE developers'. Hope that's
> > > helpful info... I have the same issues on two separate Macs.
>
> > > Cheers,
>
> > > Kris

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



Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-14 Thread alexoffspring
Thanks for your reply

We will be waiting for the update


--alex

On 15 Feb, 01:34, Chris Ramsdale  wrote:
> Thanks for all of the feedback. We're looking into the installation issues
> and will have an update asap.
>
> -- Chris
> On Feb 14, 2011 11:33 AM, "alexoffspring"  wrote:
>
> > It cannot be considered acceptable to have all these problems just for
> > an upgrade.
> > Somebody from Google should tell where in the release notes (http://
> > code.google.com/intl/it-IT/webtoolkit/doc/latest/ReleaseNotes.html)
> > it is written that GWT 2.2.0 have all these dependency problems. The
> > procedure for installation linked in the releasenotes is the same as
> > always, and the unique way to ask for help with installation problems
> > is this forum.
>
> > But still nobody from Google is giving the solution.
>
> >> > Up until now, GWT Designer was independent of GWT and GPE.
>
> >> > Now they are integrating and (kind of) uniting.
>
> >> > So I consider it acceptable that one must remove and old and
> >> > incompatible version of GWT designer before installing the new one,
> >> > which is now integrated into GPE.
>
> > --
> > You received this message because you are subscribed to the Google Groups
>
> "Google Web Toolkit" group.> To post to this group, send email to 
> google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
>
> google-web-toolkit+unsubscr...@googlegroups.com.> For more options, visit 
> this group at
>
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-14 Thread alexoffspring
It cannot be considered acceptable to have all these problems just for
an upgrade.
Somebody from Google should tell where in the release notes  (http://
code.google.com/intl/it-IT/webtoolkit/doc/latest/ReleaseNotes.html)
it is written that GWT 2.2.0 have all these dependency problems. The
procedure for installation linked in the releasenotes is the same as
always, and the unique way to ask for help with installation problems
is this forum.

But still nobody from Google is giving the solution.




>
> > Up until now, GWT Designer was independent of GWT and GPE.
>
> > Now they are integrating and (kind of) uniting.
>
> > So I consider it acceptable that one must remove and old and
> > incompatible version of GWT designer before installing the new one,
> > which is now integrated into GPE.
>

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



Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-14 Thread alexoffspring
Same problem as you.
I do not have any GWT designer installed and installation fails:



An error occurred while collecting items to be installed
session context was:(profile=SDKProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer,
2.2.0.r36x20110242.
http://dl.google.com/eclipse/inst/d2gwt/latest/3.6/plugins/com.google.gdt.eclipse.designer_2.2.0.r36x20110242.jar
Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.GWTExt,
2.2.0.r36x20110255.
http://dl.google.com/eclipse/inst/d2gwt/latest/3.6/plugins/com.google.gdt.eclipse.designer.GWTExt_2.2.0.r36x20110255.jar
...
...




On Feb 14, 4:45 pm, csillag  wrote:
> Up until now, GWT Designer was independent of GWT and GPE.
>
> Now they are integrating and (kind of) uniting.
>
> So I consider it acceptable that one must remove and old and
> incompatible version of GWT designer before installing the new one,
> which is now integrated into GPE.
>
> HOWEVER
>
> 1. I did not have any GWT designer installed (only the GWT SDK, GAE
> SDK, and GPE), and installation still failed.
>
> 2. It's specifically stated (in the changelog of GWT 2.2) that GPE
> _can_ be used with a standalone GWT designer, too; but obviously, it
> has to be the right version. But that't one (or two) steps forward
> from where we are now; we are just trying to install GPE.

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



Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-14 Thread alexoffspring

> 1. I have tried that (removing all GWT-related component, and then re-
> installing all the latest versions), but it did not work; I still got
> the same errors.
> 2. The DOCS clearly states that there are now two versions of the GWT
> designer: one integrated and one standalone. So, no, one is not
> supposed to be forced to use the integrated version. (Where to
> download the matching version of the standalone edition is a hard
> question, though...)

So is the integrated version of GWT designer within Eclipse the
problem?

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



Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-14 Thread alexoffspring
well
if this is the real and only solution, i think that it should be
formally stated by google team.

This means that, every time i will need to upgrade sdks, or designer,
or whatever, i
will need to uninstall and install everything?!?  this is crazy

There must be a better solution.



On 14 Feb, 15:44, "jonsm...@gmail.com"  wrote:
> I have 2.2 running now. Initially I had a bunch of errors too. I
> uninstalled all versions WindowBuilder, GWT Plugin, GWT Designer -
> then reinstalled the GWT Plugin. You don't need to mess with the SDKs.
> In my case pieces from various releases of the GWT Designers were
> interfering with each other. You have to use the GWT designer that
> comes in the GWT Plugin.
>
> --
> Jon Smirl
> jonsm...@gmail.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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-14 Thread alexoffspring
I got the same error this morning. and i already wrote a post for this
in the forum, but seems that nobody from google is interested in
answering this point!


On 14 Feb, 11:12, Andrew Scully  wrote:
> Using the "Add new software" funtion in eclipse 3.6.0 (Build id:
> I20100608-0911), I attempted to install GWT 2.2 
> fromhttp://dl.google.com/eclipse/plugin/3.6
>
> This operation failed, however, with the below errors. I have numerous
> previous versions of GWT installed, including the various milestones
> and RCs of 2.1.
>
> Is anyone else getting issues like this? If not, it could be a result
> of our corporate firewall.
>
> An error occurred while collecting items to be installed
> session context was:(profile=SDKProfile,
> phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
> action=).
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.core,
> 2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gwt.eclipse.core,
> 2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
> Artifact not found: osgi.bundle,com.google.appengine.eclipse.sdkbundle.
> 1.4.2,1.4.2.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer,
> 2.2.0.r36x201102111505.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted.
> 1_6,2.2.0.r36x201102111446.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted.
> 2_0,2.2.0.r36x201102111446.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted.
> 2_0.webkit_win32,2.2.0.r36x201102111446.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gwt.eclipse.sdkbundle.
> 2.2.0,2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
> Artifact not found: osgi.bundle,org.eclipse.wb.core,
> 0.9.0.r36x201102111430.http://dl.google.com/eclipse/plugin/3.6/plugins/org.eclipse.wb.core_0...
> Artifact not found: osgi.bundle,org.eclipse.wb.core.lib,
> 0.9.0.r36x201102111430.http://dl.google.com/eclipse/plugin/3.6/plugins/org.eclipse.wb.core.l...

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



Re: Problems while installing Google Updates for Eclipse 3.6

2011-02-14 Thread alexoffspring
I reported the problem to Eclipse - Bugzilla Team.
Here is the answer:

"--- Comment #1 from Ankur Sharma  2011-02-14
03:25:44 EST ---
Please report the problem to Google. There might be some missing
prerequisites."


Seems to be a Google problem.
Can anybody from the Google team help solving this?


Thanks




On 14 Feb, 08:51, alexoffspring  wrote:
> Today i tried to install these new updates:
> 1) Google Plugin for Eclipse 3.6            Ver.: 2.2.0
> 2) Google App Engine Java SDK 1.4.2   Ver.: 1.4.2
> 3) GWT SDK 2.2.0                               Ver.: 2.2.0
>
> And i get the following error messages:
>
> An error occurred while collecting items to be installed
> session context was:(profile=SDKProfile,
> phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
> action=).
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.core,
> 2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gwt.eclipse.core,
> 2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
> Artifact not found: osgi.bundle,com.google.appengine.eclipse.sdkbundle.
> 1.4.2,1.4.2.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer,
> 2.2.0.r36x201102111505.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted.
> 1_6,2.2.0.r36x201102111446.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted.
> 2_0,2.2.0.r36x201102111446.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted.
> 2_0.webkit_win32x64,2.2.0.r36x201102111446.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gwt.eclipse.sdkbundle.
> 2.2.0,2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
> Artifact not found: osgi.bundle,org.eclipse.wb.core,
> 0.9.0.r36x201102111430.http://dl.google.com/eclipse/plugin/3.6/plugins/org.eclipse.wb.core_0...
> Artifact not found: osgi.bundle,org.eclipse.wb.core.lib,
> 0.9.0.r36x201102111430.http://dl.google.com/eclipse/plugin/3.6/plugins/org.eclipse.wb.core.l...

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



Problems while installing Google Updates for Eclipse 3.6

2011-02-13 Thread alexoffspring
Today i tried to install these new updates:
1) Google Plugin for Eclipse 3.6Ver.: 2.2.0
2) Google App Engine Java SDK 1.4.2   Ver.: 1.4.2
3) GWT SDK 2.2.0   Ver.: 2.2.0

And i get the following error messages:

An error occurred while collecting items to be installed
session context was:(profile=SDKProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
Artifact not found: osgi.bundle,com.google.gdt.eclipse.core,
2.2.0.v201102111811.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclipse.core_2.2.0.v201102111811.jar
Artifact not found: osgi.bundle,com.google.gwt.eclipse.core,
2.2.0.v201102111811.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclipse.core_2.2.0.v201102111811.jar
Artifact not found: osgi.bundle,com.google.appengine.eclipse.sdkbundle.
1.4.2,1.4.2.v201102111811.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine.eclipse.sdkbundle.1.4.2_1.4.2.v201102111811.jar
Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer,
2.2.0.r36x201102111505.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclipse.designer_2.2.0.r36x201102111505.jar
Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted.
1_6,2.2.0.r36x201102111446.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclipse.designer.hosted.1_6_2.2.0.r36x201102111446.jar
Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted.
2_0,2.2.0.r36x201102111446.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclipse.designer.hosted.2_0_2.2.0.r36x201102111446.jar
Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer.hosted.
2_0.webkit_win32x64,2.2.0.r36x201102111446.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclipse.designer.hosted.2_0.webkit_win32x64_2.2.0.r36x201102111446.jar
Artifact not found: osgi.bundle,com.google.gwt.eclipse.sdkbundle.
2.2.0,2.2.0.v201102111811.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811.jar
Artifact not found: osgi.bundle,org.eclipse.wb.core,
0.9.0.r36x201102111430.
http://dl.google.com/eclipse/plugin/3.6/plugins/org.eclipse.wb.core_0.9.0.r36x201102111430.jar
Artifact not found: osgi.bundle,org.eclipse.wb.core.lib,
0.9.0.r36x201102111430.
http://dl.google.com/eclipse/plugin/3.6/plugins/org.eclipse.wb.core.lib_0.9.0.r36x201102111430.jar

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



I18N: Problem during implementation of com.google.gwt.i18n.client.Messages class | GWT 2.1.0

2010-11-15 Thread alexoffspring
Given MyMessages.java:

import com.google.gwt.i18n.client.Constants;
public interface MyMessages extends Costants {
String textField_text();
}

The MyMessages.properties:
textField_text=date is not correct


and MyMessages_it.properties containing:
textField_text=la data non e' corretta.


and  in the Main.gwt.xml:




The label:
MyMessages MYMESSAGES = GWT.create(MyMessages.class);
textField.setText(MYMESSAGES.textField_text());


Shows the corrects message, depending on the ?locale=...

 - BUT -

If i JUST change:

import com.google.gwt.i18n.client.Messages;
public interface MyMessages extends Messages {
..
}


I get this error Message:
java.lang.RuntimeException: Deferred binding failed for
'com.mycompany.project.client.MyMessages' (did you forget to inherit a
required module?)   at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.client.GWT.create(GWT.java:97)   at
com.mycompany.project.client.FirstComposite.(FirstComposite.java:
24) at com.mycompany.project.client.Main.onModuleLoad(Main.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)   at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)at java.lang.Thread.run(Unknown Source)




I really don't get what i am doing wrong. If someone knows why this is
happening please help me.
Thanks in advance

p.s.: i am using Eclipse 3.6 with GWT 2.1.0

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



Re: DecoratedPopupPanel VS DialogBox

2010-11-05 Thread alexoffspring
- DialogBox can be Dragged and Dropped by default while the DPP
cannot.
- DB has center() and SetText() Method; DPP uses show().
- I cannot see the possibility to extend them in order to have the
'minimize'/'maximize'/'close'   button like a desktop window (as in
SmartGWT).

Anymore?



On 3 Nov, 09:55, alexoffspring  wrote:
> 1) What's the difference?
>
> 2) Which are the PROs and CONs of each one?
>
> 3) Is it possible to extend them in order to add the three icons
> 'minimize'/'maximize'/'close' like a normal desktop window?

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



DecoratedPopupPanel VS DialogBox

2010-11-03 Thread alexoffspring
1) What's the difference?

2) Which are the PROs and CONs of each one?

3) Is it possible to extend them in order to add the three icons
'minimize'/'maximize'/'close' like a normal desktop window?

-- 
You received 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 and CSS - Style Problem

2010-10-28 Thread alexoffspring
Thanks to all for the answers. But i'm afraid to say that the solution
was far away.

I used a DOM inspector, and i found the name of the styles i needed to
customize the panel.

I must say that gwt documentation about CSS style names and what they
PRECISELY do, for certain widgets/panels (the complex ones, i must
say) is absolutely not sufficient and sometimes misleading.




On 27 Ott, 16:12, StrongSteve  wrote:
> the way to go would be to define your own styles in the css and to
> bind them to the decorated stack panel using
> panel.setStylePrimaryName(nameOfYourStyle).
>
> Greetings
> Stefan
>
> On Oct 26, 4:09 pm, Jeff Larsen  wrote:
>
>
>
> > The default styles are being pulled in via this line in your *.gwt.xml
>
> >   
>
> > On Oct 26, 6:35 am, alexoffspring  wrote:
>
> > > If i do delete any occurence of the .gwt-DecoratedStackPanel style in
> > > the CSS file,
> > > i ALWAYS see the panel with its DEFAULT STYLE (!?)
> > > If the style is not present in my Main.CSS, where is it defined
>
> > > Is it because this widget uses others CSS styles, like:
> > > .gwt-StackPanel ...??
> > > .gwt-TabBar ...??
>
> > > But this sound strange, since
> > > decoratedStackPanel.getStylePrimaryName()    and
> > > decoratedStackPanel.getStyleName()
> > > return    gwt-DecoratedStackPanel.
>
> > > On 26 Ott, 13:28, alexoffspring  wrote:
>
> > > > Obviously,
> > > > the Style name of decoratedStackPanel is "gwt-DecoratedStackPanel"
>
> > > > On 26 Ott, 10:39, alexoffspring  wrote:
>
> > > > > Try to definite your CSS style for a generic Decorated Stack Panel
> > > > > like following:
>
> > > > > 
> > > > > .gwt-DecoratedStackPanel .gwt-StackPanelItem {
> > > > >         background-color: #00;
> > > > >         color: #00;
> > > > >         border-color: #00;
>
> > > > > }
>
> > > > > .gwt-DecoratedStackPanel {
> > > > >         background-color: #00;
> > > > >         color: #00;
> > > > >         border-color: #00;
>
> > > > > }
>
> > > > > .gwt-DecoratedStackPanel .gwt-StackPanelItem-selected {
> > > > >         background-color: #00;
> > > > >         color: #00;
> > > > >         border-color: #00;}
>
> > > > > ..
>
> > > > > and create it like following:
>
> > > > > DecoratedStackPanel decoratedStackPanel = new DecoratedStackPanel();
> > > > > decoratedStackPanel.add(new VerticalPanel(), "Feed Rss");
> > > > > decoratedStackPanel.add(new VerticalPanel(), "News");
>
> > > > > When launching the application, you will see that the DSP style
> > > > > appears ALWAYS the default style.
> > > > > You can write whatever you want in your CSS file, but for this Widget,
> > > > > style NEVER changes.
>
> > > > > Am i doing something wrong, or is a GWT bug?
>
> > > > > Please answer- Nascondi testo citato
>
> > > > - Mostra testo citato -- Nascondi testo citato
>
> - Mostra testo citato -

-- 
You received 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 and CSS - Style Problem

2010-10-26 Thread alexoffspring
If i do delete any occurence of the .gwt-DecoratedStackPanel style in
the CSS file,
i ALWAYS see the panel with its DEFAULT STYLE (!?)
If the style is not present in my Main.CSS, where is it defined

Is it because this widget uses others CSS styles, like:
.gwt-StackPanel ...??
.gwt-TabBar ...??

But this sound strange, since
decoratedStackPanel.getStylePrimaryName()and
decoratedStackPanel.getStyleName()
returngwt-DecoratedStackPanel.




On 26 Ott, 13:28, alexoffspring  wrote:
> Obviously,
> the Style name of decoratedStackPanel is "gwt-DecoratedStackPanel"
>
> On 26 Ott, 10:39, alexoffspring  wrote:
>
>
>
> > Try to definite your CSS style for a generic Decorated Stack Panel
> > like following:
>
> > 
> > .gwt-DecoratedStackPanel .gwt-StackPanelItem {
> >         background-color: #00;
> >         color: #00;
> >         border-color: #00;
>
> > }
>
> > .gwt-DecoratedStackPanel {
> >         background-color: #00;
> >         color: #00;
> >         border-color: #00;
>
> > }
>
> > .gwt-DecoratedStackPanel .gwt-StackPanelItem-selected {
> >         background-color: #00;
> >         color: #00;
> >         border-color: #00;}
>
> > ..
>
> > and create it like following:
>
> > DecoratedStackPanel decoratedStackPanel = new DecoratedStackPanel();
> > decoratedStackPanel.add(new VerticalPanel(), "Feed Rss");
> > decoratedStackPanel.add(new VerticalPanel(), "News");
>
> > When launching the application, you will see that the DSP style
> > appears ALWAYS the default style.
> > You can write whatever you want in your CSS file, but for this Widget,
> > style NEVER changes.
>
> > Am i doing something wrong, or is a GWT bug?
>
> > Please answer- Nascondi testo citato
>
> - Mostra testo citato -

-- 
You received 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 and CSS - Style Problem

2010-10-26 Thread alexoffspring
Obviously,
the Style name of decoratedStackPanel is "gwt-DecoratedStackPanel"




On 26 Ott, 10:39, alexoffspring  wrote:
> Try to definite your CSS style for a generic Decorated Stack Panel
> like following:
>
> 
> .gwt-DecoratedStackPanel .gwt-StackPanelItem {
>         background-color: #00;
>         color: #00;
>         border-color: #00;
>
> }
>
> .gwt-DecoratedStackPanel {
>         background-color: #00;
>         color: #00;
>         border-color: #00;
>
> }
>
> .gwt-DecoratedStackPanel .gwt-StackPanelItem-selected {
>         background-color: #00;
>         color: #00;
>         border-color: #00;}
>
> ..
>
> and create it like following:
>
> DecoratedStackPanel decoratedStackPanel = new DecoratedStackPanel();
> decoratedStackPanel.add(new VerticalPanel(), "Feed Rss");
> decoratedStackPanel.add(new VerticalPanel(), "News");
>
> When launching the application, you will see that the DSP style
> appears ALWAYS the default style.
> You can write whatever you want in your CSS file, but for this Widget,
> style NEVER changes.
>
> Am i doing something wrong, or is a GWT bug?
>
> Please answer

-- 
You received 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 and CSS - Style Problem

2010-10-26 Thread alexoffspring
Try to definite your CSS style for a generic Decorated Stack Panel
like following:



.gwt-DecoratedStackPanel .gwt-StackPanelItem {
background-color: #00;
color: #00;
border-color: #00;
}

.gwt-DecoratedStackPanel {
background-color: #00;
color: #00;
border-color: #00;
}

.gwt-DecoratedStackPanel .gwt-StackPanelItem-selected {
background-color: #00;
color: #00;
border-color: #00;
}
..

and create it like following:

DecoratedStackPanel decoratedStackPanel = new DecoratedStackPanel();
decoratedStackPanel.add(new VerticalPanel(), "Feed Rss");
decoratedStackPanel.add(new VerticalPanel(), "News");

When launching the application, you will see that the DSP style
appears ALWAYS the default style.
You can write whatever you want in your CSS file, but for this Widget,
style NEVER changes.



Am i doing something wrong, or is a GWT bug?


Please answer




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



A gwt-CSS problem for Advanced problem solvers

2010-10-22 Thread alexoffspring
I am strongly convinced that CSS does not work on Horizontal Panel
Splitter, or better, it does not work correctly as it is reported by
documentation.

I just created a GWT Java Project like this:

public class TestGWT implements EntryPoint {
private Button clickMeButton;
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
rootPanel.setPixelSize(Window.getClientWidth(),
Window.getClientHeight());
HorizontalSplitPanel hsp = new HorizontalSplitPanel();
hsp.setSize("100%", "100%");
clickMeButton = new Button();
hsp.setLeftWidget(clickMeButton);
hsp.setSplitPosition("200px");
rootPanel.add(hsp);
clickMeButton.setText("Click me!");
clickMeButton.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
Window.alert("Hello, GWT World!");
}
});
}
}



I went into the TestGWT.CSS file in order to change the background-
color of the Splitter.

.gwt-HorizontalSplitPanel .splitter {
background-color: #00;
cursor: move;
}

Nothing changes! Whatever color i put, it is always default color
(i.d.: #C3D9FF)
I tried to change
1. "background-color" in "color"  -- nothing
2. "cursor: move"  in "cursor: col-resize"  or  "cursor: resize" --
nothing
3. used "border", "border-color" -- nothing

While if i try to change the

.gwt-HorizontalSplitPanel {
border: 8px solid #00;
}

and it works fine.


I use Eclipse, GWT Designer, GWT 2.0.4, IE8 and run my experiments in
Development Mode.

Where's the bug?

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



Position of the Splitter in the HorizontalSplitPanel

2010-10-21 Thread alexoffspring
Hi all
it is not possible to get the positione of the Splitter into an
HorizontalSplitPanel.

If i try to extend the HorizontalSplitPanel the override the
appropriate method and set it public, Eclipse
warn me it is a "deprecated class"

Anybody knows a way to solve 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.



SplitLayoutPanel: How to get North,West .. panels' size?

2010-10-20 Thread alexoffspring
I got a GWT SplitLayoutPanel full-window sized:

...
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
rootPanel.setPixelSize(Window.getClientWidth(),
Window.getClientHeight());

SplitLayoutPanel splitLayoutPanel = new MySplitLayoutPanel();
rootPanel.add(splitLayoutPanel, 0, 0);
splitLayoutPanel.setPixelSize(Window.getClientWidth(),
Window.getClientHeight());
...


I want to add a StackPanel on the right (Outlook-like style):

DecoratedStackPanel decoratedStackPanel = new DecoratedStackPanel();
decoratedStackPanel.add(,);
splitLayoutPanel.addWest(decoratedStackPanel, 100.0);
...


I would like to 'resize' the Stack Panel, in order to stretch or
enlarge the panel when the splitter is moved.
But i don't understand how can i get the size of the 'West' part of
the SplitLayoutPanel, since i don't see any method that can help me.


-- 
You received 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: java.lang.ClassCastException .. but why?

2010-10-20 Thread alexoffspring
Yep now i got the error.

Well, finally the solution i'm adopting now is the ep-like suggestion:

MenuBar root = new MenuItem("MyMenuBar", new MyMenuBar(false));
MyMenuBar myMenuBar = (MyMenubar)root.getSubMenu();



Thanks to all

On 20 Ott, 09:21, ep  wrote:
> since MyMenuBar is-a MenuBar there is an implicit typecast, so you can
> do
>
> MenuBar myBar = new MyMenuBar(..)
>
> you can of course downcast the MenuBar to MyMenuBar, if you're sure it
> is a MyMenuBar
>
> @alexoffspring
>
> i'm wondering how you initialize the *root* with your MyMenuBar, if
> doing this way:
>
> MenuBar root = new MenuItem("MyMenuBar", new MyMenuBar(false));
> MyMenuBar myMenuBar = (MyMenubar)root.getSubMenu();
>
> then the cast shall be working like a charm
>
> On 20 Okt., 03:31, Prashant  wrote:
>
>
>
> > you can typecast *MyMenuBar *to *MenuBar *but not the other way round. Here
> > you are trying to typecast *MenuBar* to *MyMenuBar*.
>
> > On 19 October 2010 21:28, alexoffspring  wrote:
>
> > > Thanks guys.
>
> > > Ok, i got the error in the constructor. Now it sounds like this:
>
> > > > public class MyMenuBar extends MenuBar {
>
> > > // super constructor
> > > public MyMenuBar(boolean bool) {
> > >          super(bool);
> > > } ;
>
> > > But still i got the same ClassCastException.
>
> > > root    is a MenuItem   and    root.getSubMenu() return a MenuBar
> > > object.
>
> > > On 19 Ott, 17:39, ep  wrote:
> > > > where do you make new MyMenuBar() and how do you provide it to the
> > > > "root" member? and what type is root actually?
>
> > > > On 19 Okt., 17:14, alexoffspring  wrote:
>
> > > > > I created a public class MyMenuBar   just to use the getItems()
> > > > > method, which is protected in MenuBar:
> > > > > 
> > > > > public class MyMenuBar extends MenuBar {
>
> > > > >         // super constructor
> > > > >         public MyMenuBar(boolean bool) {
> > > > >                 new MenuBar(bool);
> > > > >         }
>
> > > > >         // the super.getItems() is protected
> > > > >         public List getItems() {
> > > > >                 return super.getItems();
> > > > >         }
>
> > > > > };
>
> > > > > 
>
> > > > > I don't understand why a get a   java.lang.ClassCastException  when i
> > > > > try to cast a MenuBar into a MyMenuBar:
>
> > > > > .
> > > > > MenuBar menuBar = root.getSubMenu();
> > > > > local_mmb = ((MyMenuBar) menuBar).getItems();
> > > > > 
>
> > > > > Where am i wrong?- Nascondi testo citato
>
> > > > - Mostra testo citato -
>
> > > --
> > > You received 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.
>
> > --
> > Prashantwww.claymus.com
> > code.google.com/p/claymus/- Nascondi testo citato
>
> - Mostra testo citato -

-- 
You received 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: java.lang.ClassCastException .. but why?

2010-10-19 Thread alexoffspring
Thanks guys.

Ok, i got the error in the constructor. Now it sounds like this:

> public class MyMenuBar extends MenuBar {

// super constructor
public MyMenuBar(boolean bool) {
 super(bool);
} ;



But still i got the same ClassCastException.

rootis a MenuItem   androot.getSubMenu() return a MenuBar
object.




On 19 Ott, 17:39, ep  wrote:
> where do you make new MyMenuBar() and how do you provide it to the
> "root" member? and what type is root actually?
>
> On 19 Okt., 17:14, alexoffspring  wrote:
>
>
>
> > I created a public class MyMenuBar   just to use the getItems()
> > method, which is protected in MenuBar:
> > 
> > public class MyMenuBar extends MenuBar {
>
> >         // super constructor
> >         public MyMenuBar(boolean bool) {
> >                 new MenuBar(bool);
> >         }
>
> >         // the super.getItems() is protected
> >         public List getItems() {
> >                 return super.getItems();
> >         }
>
> > };
>
> > 
>
> > I don't understand why a get a   java.lang.ClassCastException  when i
> > try to cast a MenuBar into a MyMenuBar:
>
> > .
> > MenuBar menuBar = root.getSubMenu();
> > local_mmb = ((MyMenuBar) menuBar).getItems();
> > 
>
> > Where am i wrong?- Nascondi testo citato
>
> - Mostra testo citato -

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



java.lang.ClassCastException .. but why?

2010-10-19 Thread alexoffspring
I created a public class MyMenuBar   just to use the getItems()
method, which is protected in MenuBar:

public class MyMenuBar extends MenuBar {

// super constructor
public MyMenuBar(boolean bool) {
new MenuBar(bool);
}

// the super.getItems() is protected
public List getItems() {
return super.getItems();
}

};




I don't understand why a get a   java.lang.ClassCastException  when i
try to cast a MenuBar into a MyMenuBar:


.
MenuBar menuBar = root.getSubMenu();
local_mmb = ((MyMenuBar) menuBar).getItems();



Where am i 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: Trasform a Menu() object structure into a Tree()

2010-10-19 Thread alexoffspring
Thanks for the help Jeff. I did what you proposed.

Now i got a List which contains my MenuBars and MenuItems.
(i saw it from the Debug)
But now how can i get the information? All the fields and methods
which have the informations i need are private!


And what about the DOM manipulation?

Thanks
alex


On 19 Ott, 01:40, Jeff Larsen  wrote:
> You could extend MenuBar and then override getItems() and make it
> public. Then you would have access to all of the MenuBar's Items.
>
> That is really the only way I can see doing it without getting into
> DOM manipulation. This probably has more pitfalls down the road, but
> it is the only place I can see to start.
>
> On Oct 18, 5:49 pm, Patrick Hilsbos 
> wrote:
>
>
>
> > ...also looking for a solution- Nascondi testo citato
>
> - Mostra testo citato -

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



Trasform a Menu() object structure into a Tree()

2010-10-18 Thread alexoffspring
Suppose to have a MenuBar object, which has submenus and items added
to it.
How is it possible to get its Tree structure from the object?

For example:
public class OtherMenu extends Composite {

public OtherMenu() {

VerticalPanel verticalPanel = new VerticalPanel();
initWidget(verticalPanel);

MenuBar menuBar = new MenuBar(false);
verticalPanel.add(menuBar);
MenuBar menuBar_1 = new MenuBar(true);

MenuItem menuItem = new MenuItem("File", false, menuBar_1);
MenuBar menuBar_2 = new MenuBar(true);

MenuItem menuItem_1 = new MenuItem("New", false, menuBar_2);

MenuItem menuItem_3 = new MenuItem("New Blank", false, (Command)
null);
menuBar_2.addItem(menuItem_3);
menuBar_1.addItem(menuItem_1);
MenuBar menuBar_3 = new MenuBar(true);

MenuItem menuItem_2 = new MenuItem("Save", false, menuBar_3);
MenuBar menuBar_4 = new MenuBar(true);

MenuItem menuItem_4 = new MenuItem("Save As..", false, menuBar_4);

MenuItem menuItem_5 = new MenuItem("Txt", false, (Command) null);
menuBar_4.addItem(menuItem_5);
menuBar_3.addItem(menuItem_4);
menuBar_1.addItem(menuItem_2);

MenuItem menuItem_6 = new MenuItem("Exit", false, (Command) null);
menuBar_1.addItem(menuItem_6);
menuBar.addItem(menuItem);
}

}


How can i trasform its structure into a "Tree"? Are there any methods
which starting from a menubar, give me the structure of the menu
bar??
File
  |-- New
  |-- New Blank
  |-- Save
  |-- Save as..
  |-- Txt
  |-- Exit


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



Cannot install GWT 2.1 - RC1 Eclipse plugin

2010-10-15 Thread alexoffspring
While I am tryin to install the GWT 2.1 RC1 Eclipse plugin on:
http://google-web-toolkit.googlecode.com/svn/2.1.0.RC1/eclipse/plugin/3.6


I got these two error messages into the "pending.." phase:

HTTP Server 'Gateway Timeout':
http://google-web-toolkit.googlecode.com/svn/2.1.0.RC1/eclipse/plugin/3.6/content.xml
HTTP Server 'Gateway Timeout':
http://google-web-toolkit.googlecode.com/svn/2.1.0.RC1/eclipse/plugin/3.6/content.xml
General connection error with response code=504


Could not find 
http://google-web-toolkit.googlecode.com/svn/2.1.0.RC1/eclipse/plugin/3.6




For all the other features my network works fine. I already have
installed other plugins with this 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.



Problem with smartGWT and GWT

2010-10-12 Thread alexoffspring
i have a problem with a simple GWT project. It is made of two .java
files.
The first just add two same composites ("MainForm") to the Root
Panel.


public class ImageViewer implements EntryPoint {
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();

MainForm mainForm = new MainForm();
rootPanel.add(mainForm, 0, 0);
mainForm.setSize("546px", "223px");

MainForm mainForm_1 = new MainForm();
rootPanel.add(mainForm_1, 0, 245);
mainForm_1.setSize("546px", "223px");
}
}



And the second file describes the "Main Form":

import com.smartgwt.client.widgets.Window;

public class MainForm extends Composite {


public MainForm() {

Window window = new Window();
window.setSize("288px", "206px");
window.setCanDragResize(true);
window.setShowFooter(true);
window.setShowHeader(true);


initWidget(window);
}
}
-
The result is that the first 'Window' is shown correctly onto the web
page,
but the second (which is completely the same) is not. The title, the '
_ ' and the ' x ', are onto the left, and the border of the window is
down-right !?!

Is it because smartGWT is not 100% compatible with GWT?


Thanks in advance for your consideration

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



Problem with Google Chrome - Development Mode

2010-10-12 Thread alexoffspring
Hi everybody
I have a problem running a GWT application in Development Mode, by
using Chrome as a Default Browser, while it works fine in IE8.

I simply downloaded Chrome and installed the plug-in, as i did for
IE8.

The error is:
"Network Access Message: The page cannot be displayed
Explanation: The Web server refused the connection."

I looked for a similar argument in the forum, but i did not find it so
am i doing something 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: Set up of GWT site

2010-10-11 Thread alexoffspring
mumble mumble

..i'm not sure, but i think that the example does not particularly
suit since SimplePanel can have only one Widget; so you can only add
one hyperlynk ("About Me", "about"),  let's say, and not the
("feedback") one, so you cannot switch.
Moreover, if you decide to change panel and use the Vertical one, you
don't have the "setWidget" method.



On 8 Ott, 16:25, Brian  wrote:
> You just 'new' your class and add it where you want to place it.
>
> for instance, as a simple example you'd could have:
>
> SimplePanel mMyPanel;
>
> public void onModuleLoad() {
>  mMyPanel = new SimplePanel();
>  mMyPanel.add(new Hyperlink("About Me", "about"));
>  RootPanel.get().add(mMyPanel);
>
>   History.addValueChangeHandler(this);
>
> }
>
> public void onValueChange(ValueChangeEvent event) {
>
>   if (event.getValue().equals("about")){
>     AboutPage ap = new AboutPage();  // this is your composite, in
> AboutPage.java
>     mMyPanel.clear();  // get rid of whatever was in there
>     mMyPanel.setWidget(ap); // and replace it with your about page
>   } else if (event.getValue().equals("feedback")){
>     FeedbackPage fp = new FeedbackPage(); // this is another of your
> composites
>     mMyPanel.clear();
>     mMyPanel.setWidget(fp);
>   } else {... }
>
> }
>
> None of this will open a new page.  You're just replacing widgets
> already in the DOM with new widgets, based on the history.
>
> -Brian
>
> On Oct 8, 4:54 am, alexoffspring  wrote:
>
>
>
> > Great.
> > And supposing that i have already created my composite widget into a
> > new .java class. How do i call this new page??
> > Window.open(..) ??
>
> > And if i don't want to open a new page, how can i hide the old page
> > components?
>
> > Thanks in advance
>
> > On 6 Ott, 22:10, Brian  wrote:
>
> > > Generally in a gwt app, all links stay within your application (all
> > > within the same html page).  The links are just tokens that are
> > > handled by your single app (which is hosted in one page).
>
> > > In 100% pseudo code, you'd have something like:
>
> > > whenHistoryChanged(token){
> > >  if (token.equals("about")){
> > >     show(about screen);
> > >   } else if (token.equals("feeback")){
> > >     show(feedback screen);
> > >  }
>
> > > }
>
> > > Take a look 
> > > at:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...
>
> > > In the "onValueChange" method, you compare the "event.getValue()" with
> > > your tokens ("about", "feedback" etc) and replace the content with the
> > > content for that page.
>
> > > You would probably create a new 'widget' or composite widget, for each
> > > of your pages.  And yeah, each page would probably be in its own .java
> > > file.
>
> > > On Oct 6, 3:46 pm, nick kov  wrote:
>
> > > > This question is for the developers that are more experienced with
> > > > GWT. I am wondering exactly how you set a site up in terms of
> > > > navigation? For example with HTML I would naturally use links to
> > > > travel between pages, etc. But with GWT, if somebody clicks on a link
> > > > on your site, do you guys just hide() the widgets and load new ones.
> > > > Or do you take them to a different page entirely?
>
> > > > Also I am wondering how the structure of a neat site looks using GWT.
> > > > For example, do I create a new .java file for each page that exists on
> > > > the site? I'm just relatively new to this and need some pointers.
> > > > Thanks!- Nascondi testo citato
>
> > > - Mostra testo citato -- Nascondi testo citato
>
> - Mostra testo citato -

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



Opening Multiple Windows

2010-10-08 Thread alexoffspring
Dear all
I'm a newbie in GWT Designer's world. By now, I worked around the
basic tutorials found around the web, and went by myself experimenting
the various features of the Toolkit. i'd like to ask a question
regarding a problem i encountered during my experiments.

I have cleared in my mind how to create a 'single' window application
which embeds a certain number of widgets and the relative events.
But what if i want to istantiate a new class and load it into a new
window?
This can happen, for example, when we have a menu bar where one of the
menu item opens a new window with different layout and widgets.
How can i manage 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: Set up of GWT site

2010-10-08 Thread alexoffspring
Great.
And supposing that i have already created my composite widget into a
new .java class. How do i call this new page??
Window.open(..) ??

And if i don't want to open a new page, how can i hide the old page
components?


Thanks in advance


On 6 Ott, 22:10, Brian  wrote:
> Generally in a gwt app, all links stay within your application (all
> within the same html page).  The links are just tokens that are
> handled by your single app (which is hosted in one page).
>
> In 100% pseudo code, you'd have something like:
>
> whenHistoryChanged(token){
>  if (token.equals("about")){
>     show(about screen);
>   } else if (token.equals("feeback")){
>     show(feedback screen);
>  }
>
> }
>
> Take a look 
> at:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...
>
> In the "onValueChange" method, you compare the "event.getValue()" with
> your tokens ("about", "feedback" etc) and replace the content with the
> content for that page.
>
> You would probably create a new 'widget' or composite widget, for each
> of your pages.  And yeah, each page would probably be in its own .java
> file.
>
> On Oct 6, 3:46 pm, nick kov  wrote:
>
>
>
> > This question is for the developers that are more experienced with
> > GWT. I am wondering exactly how you set a site up in terms of
> > navigation? For example with HTML I would naturally use links to
> > travel between pages, etc. But with GWT, if somebody clicks on a link
> > on your site, do you guys just hide() the widgets and load new ones.
> > Or do you take them to a different page entirely?
>
> > Also I am wondering how the structure of a neat site looks using GWT.
> > For example, do I create a new .java file for each page that exists on
> > the site? I'm just relatively new to this and need some pointers.
> > Thanks!- Nascondi testo citato
>
> - Mostra testo citato -

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