Re: setVisible(false) resp. UiBinder directive visible="false" == CSS directive display: none;?

2010-03-09 Thread Chris Lercher
Hi,

the default implementation of setVisible() in the abstract UiObject
class does just that: It sets

elem.style.display = visible ? '' : 'none';

But the setVisible() method is overridden by some classes, in GWT
2.0.3 these are the classes PopupPanel and LazyPanel. PopupPanel
currently sets visibility: hidden; But such an implementation can
change (see e.g. 
http://code.google.com/p/google-web-toolkit/issues/detail?id=4596)

Chris

On Mar 10, 8:33 am, Alexander Orlov  wrote:
> Is the setVisible(false) method of a widget or the UiBinder equivalent
> visible="false" a shortcut for the CSS directive display: none;? Or is
> setting the visible property to FALSE the equivalent to "not loading
> the widget" at all?

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



setVisible(false) resp. UiBinder directive visible="false" == CSS directive display: none;?

2010-03-09 Thread Alexander Orlov
Is the setVisible(false) method of a widget or the UiBinder equivalent
visible="false" a shortcut for the CSS directive display: none;? Or is
setting the visible property to FALSE the equivalent to "not loading
the widget" at all?

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 integrate GWT application with IBM Websphere Portal

2010-03-09 Thread kbalasmile
Hi guys,
I am new to GWT. I have understood that we can create RIA
apps using GWT. Is it possbile to integrate these applications with
Portal? Thanks in advance for your resopnse.

Regards,
Bala

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: HTML tag in GWT

2010-03-09 Thread raj
sorry folk!
i couldn't find the way to add the horizontalpanel into listgridi
surfed through showcase and i tried all possible way except the
correct way,i think.. so friends... could any one help me in
this.(if you could mention the location in the showcase would be
fine and better)
my need is...
i need to have listgrid, having one of the field(and all the rows)
should have textbox (or textitem) and a button
i should be able to right a "click handler" for this button.
i should be able capture the value in the text box

thanks and regards.
Raj.

On Mar 9, 7:09 pm, mariyan nenchev  wrote:
> Use the technique that Pardeep Sood told 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: server side internationalization

2010-03-09 Thread Sebastien
Hi
I extracted the code to a dedicated project:
http://code.google.com/p/gwt-i18n-server/

Now It supports Constants, ConstantsWithLookup, Messages (plural
included).

Regards,
Seb

On 8 fév, 13:42, Lucas de Oliveira  wrote:
> Hi all,
> sorry to bring back the post but I'm having problems while trying to use
> KtrI18N.
> The thing is that I have an Enum class that shouldn't know if the code is
> running on the client or server side. A little code:
>
> public enum Status{
>  OPEN {
>         @Override
>         public String getI18N() {
>             return labels.statusOpen();
>         }
>  },
>  CLOSED {
>
>         @Override
>         public String getI18N() {
>             return labels.statusClosed();
>         }
>
> }
>
>  Labels labels = KtrI18N.createConstants(Labels.class);
>  public abstract String i18n();
>
> }
>
> So this code should run both in client and server. The problem is: it
> doesn't work at the client side. I checked the KtrI18N website and there is
> an eclipse plugin to create the supersource trick for you, but I couldn't
> make it work. Any ideas?
>
> thanks in advance,
> cheers!
>
> --
> Lucas de Oliveira Arantes

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Smart GWT Pro/EE 2.1 released

2010-03-09 Thread ckendrick
Apologies for the second posting.  Some links were mangled, they are
corrected below.


In addition to new client-side features already detailed here:

http://www.jroller.com/sjivan/entry/smart_gwt_2_1_released

New server features:

* New built-in server-side validators
  "isUnique" makes it trivial to enforce common cases like having
a unique user name.
  
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/types/ValidatorType.html#ISUNIQUE
  "hasRelatedRecords" can enforce that inter-record references are
valid
  
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/types/ValidatorType.html#HASRELATEDRECORD

* Declarative custom server validation: use a Velocity expression
or Java method
 
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/widgets/form/validator/Validator.html#setServerCondition(java.lang.String)
  ]http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/
client/docs/serverds/Validator.html#serverObject

* Declarative security settings (zero code integration with JAAS /
J2EE security)
  
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/serverds/DataSource.html#requiresAuthentication
  
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/serverds/OperationBinding.html#requiresRole

* Bulletproof setup guide with troubleshooting section
  
http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/SgwtEESetup.html

To download the free evaluation or read overviews of the
functionality, go here:

 http://forums.smartclient.com/showthread.php?t=4839

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



[ANN] Smart GWT Pro/EE 2.1 released

2010-03-09 Thread ckendrick
In addition to new client-side features already detailed here:

http://www.jroller.com/sjivan/entry/smart_gwt_2_1_released

New server features:

* New built-in server-side validators
  "isUnique" makes it trivial to enforce common cases like having
a unique user name.
  http://www.smartclient.com/smartgwtehtml#ISUNIQUE
  "hasRelatedRecords" can enforce that inter-record references are
valid
  http://www.smartclient.com/smartgwte...SRELATEDRECORD

* Declarative custom server validation: use a Velocity expression
or Java method
  http://www.smartclient.com/smartgwte...lang.String )
  http://www.smartclient.com/smartgwte...l#serverObject

* Declarative security settings (zero code integration with JAAS /
J2EE security)
  http://www.smartclient.com/smartgwte...Authentication
  http://www.smartclient.com/smartgwte...l#requiresRole

* Bulletproof setup guide with troubleshooting section
  http://www.smartclient.com/smartgwte...wtEESetup.html

To download the free evaluation or read overviews of the
functionality, go here:

 http://forums.smartclient.com/showthread.php?t=4839

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 Compilation Failed

2010-03-09 Thread Muthu
Any help with this?? I'm still stuck.. and the actual error is as
follows

 [ERROR] Unable to compile.
java.io.IOException: Cannot run program "java": error=2, No such file
or directory

My project used to compile and deploy to the app engine properly. Then
I separated the GWT project into 3 projects.. one is the main module
and the other two are two sub projects. And after this the deploy to
google app engine stopped working. However the app works locally.

Can anyone let me know the actual issues here?

On Mar 9, 2:01 am, Muthu  wrote:
> Hi,
>
> I'm new to GWT and I get the following error when I do a GWT compile
>
> Compiling module com.p2p.pcwebapp.pcWebApp.Pcwebapp
>    Compiling 15 permutations
>       Compiling permutation 0...
>       Compiling permutation 1...
>       Compiling permutation 2...
>       Compiling permutation 3...
>       Compiling permutation 4...
>       Compiling permutation 5...
>       Compiling permutation 6...
>       Compiling permutation 7...
>       Compiling permutation 8...
>       Compiling permutation 9...
>       Compiling permutation 10...
>       Compiling permutation 11...
>       Compiling permutation 12...
>       Compiling permutation 13...
>       Compiling permutation 14...
>    Compile of permutations succeeded
> Linking into /Users/mlalapet/workspaces/pcwebapp/war/pcwebapp.
>    Invoking Linker Worker Compiler
>       Recursively compiling Worker modules...
>       Executing cmd: "java -Dns.recursed=true -cp /Users/mlalapet/
> workspaces/pcwebapp/src:/Users/mlalapet/workspaces/pcwebapp/war/WEB-
> INF/classes:/Applications/eclipse/plugins/
> com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/
> gwt-user.jar:/Applications/eclipse/plugins/
> com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/
> gwt-dev.jar:/Users/mlalapet/Applications/gwt-maps-1.0.4/gwt-maps.jar:/
> Users/mlalapet/workspaces/pcwebapp/war/WEB-INF/lib/
> com.springsource.org.objectweb.asm-3.1.0.jar:/Users/mlalapet/
> workspaces/pcwebapp/war/WEB-INF/lib/
> org.springframework.web-3.0.1.RELEASE.jar:/Users/mlalapet/workspaces/
> pcwebapp/war/WEB-INF/lib/
> org.springframework.web.servlet-3.0.1.RELEASE.jar:/Users/mlalapet/
> workspaces/pcwebapp/war/WEB-INF/lib/
> org.springframework.context-3.0.1.RELEASE.jar:/Users/mlalapet/
> workspaces/pcwebapp/war/WEB-INF/lib/
> org.springframework.expression-3.0.1.RELEASE.jar:/Users/mlalapet/
> workspaces/pcwebapp/war/WEB-INF/lib/
> org.springframework.beans-3.0.1.RELEASE.jar:/Users/mlalapet/workspaces/
> pcwebapp/war/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE.jar:/
> Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
> 1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/shared/
> appengine-local-runtime-shared.jar:/Applications/eclipse/plugins/
> com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
> appengine-java-sdk-1.3.1/lib/shared/geronimo-el_1.0_spec-1.0.1.jar:/
> Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
> 1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/shared/geronimo-
> jsp_2.1_spec-1.0.1.jar:/Applications/eclipse/plugins/
> com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
> appengine-java-sdk-1.3.1/lib/shared/geronimo-servlet_2.5_spec-1.2.jar:/
> Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
> 1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/shared/jsp/
> repackaged-appengine-ant-1.6.5.jar:/Applications/eclipse/plugins/
> com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
> appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-ant-
> launcher-1.6.5.jar:/Applications/eclipse/plugins/
> com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
> appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-commons-
> el-1.0.jar:/Applications/eclipse/plugins/
> com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
> appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-commons-
> logging-1.1.1.jar:/Applications/eclipse/plugins/
> com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
> appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-jasper-
> compiler-5.0.28.jar:/Applications/eclipse/plugins/
> com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
> appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-jasper-
> runtime-5.0.28.jar:/Applications/eclipse/plugins/
> com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
> appengine-java-sdk-1.3.1/lib/user/appengine-api-1.0-sdk-1.3.1.jar:/
> Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
> 1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/user/appengine-
> api-labs-1.3.1.jar:/Applications/eclipse/plugins/
> com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
> appengine-java-sdk-1.3.1/lib/user/appengine-jsr107cache-1.3.1.jar:/
> Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
> 1.3.1_1

Re: Trivial JSNI scneario results in ClasscastException (hosted mode only)

2010-03-09 Thread Eric
Thanks Thomas.  I tried your suggestion and it worked.  (Sorry if I
missed this in some previous discussion.)

Thanks for the help,

Eric

On Mar 9, 4:09 pm, Thomas Broyer  wrote:
> On 9 mar, 23:13, Eric  wrote:
>
>
>
>
>
> > Host page has this:
>
> > Call JSNI JavaScript function from HTML where function implementation
> > was written in Java. Click here: here > a>
>
> > In EntryPoint, I have this:
> >         public void onModuleLoad() {
> >                 defineGwtJs2();
> >         }
> >         /**
> >          * Define JS function in GWT that will be implemented by GWT Java
> >          */
> >         public native void defineGwtJs2() /*-{
> >                 $wnd.gwtJs2 =
> > th...@com.gwtdesign.interop.play.testui.interopplayentrypoint::callGwtJs2Impleme
> >  ntation();
> >         }-*/;
>
> >         public void callGwtJs2Implementation(){
> >                 Window.alert("Here was clicked");
> >         }
>
> > When I start in hosted mode and click the link, I see the following in
> > the FireBug console:
> > uncaught exception: java.lang.ClassCastException
>
> > If I compile and move the html/js to tomcat, the alert pops up as
> > expected.  Is there a known issue around this?  Or am I doing
> > something that's not supported?
>
> This is a scoping issue in JS, in that the "this" context is lost when
> you assign the function/method. This is just how JS works. The proper
> way is to introduce a "closure":
>
> var that = this;
> $wnd.gwtJs2 = function()
> { 
> th...@com.gwtdesign.interop.play.testui.interopplayentrypoint::callGwtJs2Impleme
> ntation()(); }
>
> (make sure ou call the method on the "that" variable, not on the
> "this" special keyword)- 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: Trivial JSNI scneario results in ClasscastException (hosted mode only)

2010-03-09 Thread Thomas Broyer


On 9 mar, 23:13, Eric  wrote:
> Host page has this:
>
> Call JSNI JavaScript function from HTML where function implementation
> was written in Java. Click here: here a>
>
> In EntryPoint, I have this:
>         public void onModuleLoad() {
>                 defineGwtJs2();
>         }
>         /**
>          * Define JS function in GWT that will be implemented by GWT Java
>          */
>         public native void defineGwtJs2() /*-{
>                 $wnd.gwtJs2 =
> th...@com.gwtdesign.interop.play.testui.interopplayentrypoint::callGwtJs2Impleme
>  ntation();
>         }-*/;
>
>         public void callGwtJs2Implementation(){
>                 Window.alert("Here was clicked");
>         }
>
> When I start in hosted mode and click the link, I see the following in
> the FireBug console:
> uncaught exception: java.lang.ClassCastException
>
> If I compile and move the html/js to tomcat, the alert pops up as
> expected.  Is there a known issue around this?  Or am I doing
> something that's not supported?

This is a scoping issue in JS, in that the "this" context is lost when
you assign the function/method. This is just how JS works. The proper
way is to introduce a "closure":

var that = this;
$wnd.gwtJs2 = function()
{ 
th...@com.gwtdesign.interop.play.testui.interopplayentrypoint::callGwtJs2Impleme
ntation()(); }

(make sure ou call the method on the "that" variable, not on the
"this" special keyword)

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



"New window" like Gmail has now

2010-03-09 Thread Dan
Gmail recently added the new "fast" new window functionality.

See here if you are not familiar:

http://gmailblog.blogspot.com/2010/03/fast-new-windows.html

It doesn't seem that a script is being loaded from the server any
more, it's so fast.

Any way to do this in GWT? (I'm a newbie, have pity on 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.



Setting ClientBundle/CssResource output to human readable

2010-03-09 Thread opn
Hello!
Im using a CssResource in my TestApplication and i am not able to set
the css output to something i can read.

I googled a bit and found this:







and inserted it into my Main.gwt.xml file (where my entrypoint class
is defined and etc.) but it had no effect.

Would be very nice if someone could help me!

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: Equivalent method in GWT?

2010-03-09 Thread mariyan nenchev
See DOM. methods.

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



Trivial JSNI scneario results in ClasscastException (hosted mode only)

2010-03-09 Thread Eric
Host page has this:

Call JSNI JavaScript function from HTML where function implementation
was written in Java. Click here: here

In EntryPoint, I have this:
public void onModuleLoad() {
defineGwtJs2();
}
/**
 * Define JS function in GWT that will be implemented by GWT Java
 */
public native void defineGwtJs2() /*-{
$wnd.gwtJs2 =
th...@com.gwtdesign.interop.play.testui.interopplayentrypoint::callGwtJs2Implementation();
}-*/;

public void callGwtJs2Implementation(){
Window.alert("Here was clicked");
}

When I start in hosted mode and click the link, I see the following in
the FireBug console:
uncaught exception: java.lang.ClassCastException

If I compile and move the html/js to tomcat, the alert pops up as
expected.  Is there a known issue around this?  Or am I doing
something that's not supported?

Thanks,

Eric

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



Re: Contacts MVP Example -- getAssociatedType() override necessary?

2010-03-09 Thread Fabio Kaminski
the client application.. that consumes this events dont really need this
method as like in the example you implement TYPE as static.. e point it to
the EventBus..

but i guess the GWT framework uses it anyway..

suppose that  i provide you a framework and want to obligate you to
implement a method
that i use in the framework logic.. and cant know previously what you will
implement ..
a good way to do it.. its obligate to implement the method.. via interface..
or abstract method

maybe opening the eventhandler source??

(but if you find out its useless, dont forget to let me know) :)

Regards,

Fabio Kaminski


On Mon, Mar 8, 2010 at 7:33 PM, scope  wrote:

>
> Hey there-
>
> I've been slowly going through all the GWT tutorials in an effort to
> understand the capabilities of the tool.
>
> Could someone please explain why the GwtEvent subclasses from the
> MVP article override getAssociatedType()?
>
> The article and code samples can be found here:
>
> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>
> An example from EditContactEvent.java is:
>
>  @Override
>  public Type getAssociatedType() {
>return TYPE;
>  }
>
> Is this necessary?  Since GwtEvent is a template (generic in Java
> terms), won't the default implementation of the method suffice?
>
> Thanks and take care.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google 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: Google Plugin for Eclipse 1.3 Preview is now available

2010-03-09 Thread Fabio Kaminski
Ok Keith!

I did the installation extracting de zip contents in the dropins folder of
eclipse...
in fact i install a newer version of eclipse 3.5 , the 20100218-1602 build
for java EE

it includes WST plugins already... and after extract the file.. looking in
the details..
in the installed plugins .. it lists the google plugin
...as its has been installed successfully..

but i cant see a thing,.. there'is is other plugins dependencies??

im working on an ubuntu linux 64.. (the last one was fedora :))

one more thing.. i have unistalled all google plugins that was installed
before..
and just then, extract the contents of the plugin snapshot you pointed out..

im pretty fine creating projects and tunning things "at hand" ... but if it
works.. it will be a welcome and handy feature..

thanks for your attention,

Fabio Kaminski

On Tue, Mar 9, 2010 at 6:50 AM, olivier nouguier  wrote:

> Hi Keith
>
> On Mon, Mar 8, 2010 at 10:06 PM, Keith Platfoot wrote:
>
>> Hi Olivier,
>>
>>>
>>>  No new issues with this release (eclipse 3.5.1 + maven + sts + aspectj +
>>> wtp).
>>>
>>> * Same classloader (than GEP 1.2) issues with spring namespace handler in
>>> dev mode.
>>>
>>
>> I'm not familiar with this problem.  Is there a bug on the GWT issue
>> tracker I can review to get more details?
>>
>>
>  I've just submitted an issues
> http://code.google.com/p/google-web-toolkit/issues/detail?id=4730
>  With a sample project.
> Tell me if you cannot reproduce the issue.
> HIH
>
> --
> A coward is incapable of exhibiting love; it is the prerogative of the
> brave.
> --
> Mohandas Gandhi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google 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.



The slimbox JS lib is not working

2010-03-09 Thread Petein
Hello.

I want to be able to import the html code of another web page which is
on my web server to my gwt web app. I use this code to download the
content of a html page on my web server: http://codepad.org/aiVlWCt2

.

This is my entry point html (top part) http://codepad.org/k5zMcqJ2


where i load the js libs i want to be able to use.

This http://codepad.org/XiReL6EV

is the html file i import to my gwt
web app by using the RequestBuilder. The contents of that html file
are imported fine, but the js slimbox2 js lib is not working at all.
What can i do to solve this? When I press on one of the images the
slimbox script executes and does the animation as expected. This
behaviour happens when i dont comment out the libs from the imported
html file and I use it to my web app by using a Frame.

I don't want to use a Frame, because it makes my web page looking
nasty even if i set the Frames border equal to none. I don't want to
have java on the server side because i want to be able to find a cheap
hosting service to deploy this web app. I prefer not having a server
side at all to be honest. Please enlighten me to solve this problem.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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.



Unable to see GWT.log messages

2010-03-09 Thread yves
I am using GWT 2.0.3 with Eclipse on W7

I installed the GWT development mode plugin in Chrome to have access
to development mode. I ma

I want so see my GWT.log messages in development mode

When I start my project and paste the URL ending with
"gwt.codesrvr=127.0.0.1:9997" the application works okay, but I still
see no console window in Chrome holding my log messages. The
development mode console displays only the message "module has been
loaded" message.

I see that there is a server listening on port 9997, so perhaps it's
only about how to access the development mode.




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



GWT 2.0 + Hibernate + Gilead

2010-03-09 Thread Olivier
Hello,

I am trying to integrate gilead in my GWT - Hibernate application. I
followed this article to set up my project :
http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hibernate.html.

But at the compilation time I have the following error :

[INFO] Compiling module fr.csie.Application
[INFO]Validating newly compiled units
[INFO]   [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
net/sf/gilead/adapter-core/1.2.3/adapter-core-1.2.3.jar!/net/sf/gilead/
annotations/AnnotationsHelper.java'
[INFO]  [ERROR] Line 3: The import java.beans cannot be
resolved
[INFO]  [ERROR] Line 4: The import java.beans cannot be
resolved
[INFO]  [ERROR] Line 5: The import java.beans cannot be
resolved
[INFO]  [ERROR] Line 6: The import java.beans cannot be
resolved
[INFO]  [ERROR] Line 7: The import java.lang.reflect cannot be
resolved
[INFO]  [ERROR] Line 213: Field cannot be resolved to a type
[INFO]  [ERROR] Line 214: Field cannot be resolved to a type
[INFO]  [ERROR] Line 248: BeanInfo cannot be resolved to a
type
[INFO]  [ERROR] Line 248: Introspector cannot be resolved
[INFO]  [ERROR] Line 249: PropertyDescriptor cannot be
resolved to a type
[INFO]  [ERROR] Line 252: PropertyDescriptor cannot be
resolved to a type
[INFO]  [ERROR] Line 275: IntrospectionException cannot be
resolved to a type
[INFO]   [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
pojo/gwt/LightEntity.java'
[INFO]  [ERROR] Line 104: The return type is incompatible with
ILightEntity.getProxyInformation(String)
[INFO]   [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
pojo/java5/legacy/LightEntity.java'
[INFO]  [ERROR] Line 105: The return type is incompatible with
ILightEntity.getProxyInformation(String)
[INFO]Finding entry point classes
[INFO]   [ERROR] Unable to find type 'fr.csie.client.Application'
[INFO]  [ERROR] Hint: Previous compiler errors may have made
this type unavailable
[INFO]  [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
[INFO]



I am using Maven2 and here are my dependencies for using Gilead :


net.sf.gilead
adapter-core
1.2.3


net.sf.gilead
gilead4gwt
1.3.0
jar


net.sf.gilead
gilead-hibernate
jar
1.3.0


net.sf.gilead
hibernate-util
jar
1.2.3


Could anybody help me to understand why I get that error please ?
Thank you very much !

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 Compilation Failed

2010-03-09 Thread Muthu
Hi,

I'm new to GWT and I get the following error when I do a GWT compile

Compiling module com.p2p.pcwebapp.pcWebApp.Pcwebapp
   Compiling 15 permutations
  Compiling permutation 0...
  Compiling permutation 1...
  Compiling permutation 2...
  Compiling permutation 3...
  Compiling permutation 4...
  Compiling permutation 5...
  Compiling permutation 6...
  Compiling permutation 7...
  Compiling permutation 8...
  Compiling permutation 9...
  Compiling permutation 10...
  Compiling permutation 11...
  Compiling permutation 12...
  Compiling permutation 13...
  Compiling permutation 14...
   Compile of permutations succeeded
Linking into /Users/mlalapet/workspaces/pcwebapp/war/pcwebapp.
   Invoking Linker Worker Compiler
  Recursively compiling Worker modules...
  Executing cmd: "java -Dns.recursed=true -cp /Users/mlalapet/
workspaces/pcwebapp/src:/Users/mlalapet/workspaces/pcwebapp/war/WEB-
INF/classes:/Applications/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/
gwt-user.jar:/Applications/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/
gwt-dev.jar:/Users/mlalapet/Applications/gwt-maps-1.0.4/gwt-maps.jar:/
Users/mlalapet/workspaces/pcwebapp/war/WEB-INF/lib/
com.springsource.org.objectweb.asm-3.1.0.jar:/Users/mlalapet/
workspaces/pcwebapp/war/WEB-INF/lib/
org.springframework.web-3.0.1.RELEASE.jar:/Users/mlalapet/workspaces/
pcwebapp/war/WEB-INF/lib/
org.springframework.web.servlet-3.0.1.RELEASE.jar:/Users/mlalapet/
workspaces/pcwebapp/war/WEB-INF/lib/
org.springframework.context-3.0.1.RELEASE.jar:/Users/mlalapet/
workspaces/pcwebapp/war/WEB-INF/lib/
org.springframework.expression-3.0.1.RELEASE.jar:/Users/mlalapet/
workspaces/pcwebapp/war/WEB-INF/lib/
org.springframework.beans-3.0.1.RELEASE.jar:/Users/mlalapet/workspaces/
pcwebapp/war/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE.jar:/
Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/shared/
appengine-local-runtime-shared.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/shared/geronimo-el_1.0_spec-1.0.1.jar:/
Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/shared/geronimo-
jsp_2.1_spec-1.0.1.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/shared/geronimo-servlet_2.5_spec-1.2.jar:/
Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/shared/jsp/
repackaged-appengine-ant-1.6.5.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-ant-
launcher-1.6.5.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-commons-
el-1.0.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-commons-
logging-1.1.1.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-jasper-
compiler-5.0.28.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-jasper-
runtime-5.0.28.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/user/appengine-api-1.0-sdk-1.3.1.jar:/
Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/user/appengine-
api-labs-1.3.1.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/user/appengine-jsr107cache-1.3.1.jar:/
Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/user/
jsr107cache-1.1.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/user/orm/datanucleus-
appengine-1.0.5.final.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/user/orm/datanucleus-core-1.1.5.jar:/
Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/user/orm/
datanucleus-jpa-1.1.5.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
appengine-java-sdk-1.3.1/lib/user/orm/geronim

Problem with java.lang.Boolean constructor

2010-03-09 Thread Agustín Bartó
I need to check if a variable was defined in javascript and I tried
with the following native method:

private native Boolean isADefined() /*-{
return @java.lang.Boolean::valueOf(Z)($wnd.a != undefined);
}-*/;

but when it is called, the following exception is thrown:

com.google.gwt.dev.shell.HostedModeException: invoke arguments: JS
value of type int, expected boolean
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:65)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:
1713)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
165)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
...

It seems that the boolean expression is evaluated as an integer. Other
than

private native Boolean isADefined() /*-{
if ($wnd.a != undefined) {
return @lava.lang.Boolean::TRUE;
} else {
return @lava.lang.Boolean::FALSE;
}
}-*/;

is there a (more elegant) way to call the boolean constructor with a
javascript boolean expression?

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 application on OC4J

2010-03-09 Thread prash
Hi,
I created a GWT application from eclipse (a simple RPC one) and
deployed it on OC4j container which runs on UNIX box. When I hit the
URL, I get the first page but it is incomplete. It does not display
the text and button field and logs don't have any information about
it.

I am able to get this application up and running on Tomcat installed
on Windows. Please give me some leads to this.

Thanks
Prashanth

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



unable to display a pound sign

2010-03-09 Thread smiffy
Any bright ideas why my GWT app is unable to display the pound sign (U
+00A3) ?

I am using the standard style sheet which I think means my
ToggleButton should use Arial Unicode MS, but in all browsers I have
tried the text on the button appears as the 'Replacement Character' (U
+FFFD - black diamond containing a question mark).

The pound sign is a perfectly legitimate character in Arial - why
doesn't it display ? Am I being dim here ?

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.



GWT writing files on server

2010-03-09 Thread Martin
I'm currently testing a GWT app in development mode. To enable search
in the app, I'm using the Lucene 3.0 library. To update the search
index I have to open the corresponding directory with write access.
Trying this, I get a AccessControlException:
java.security.AccessControlException: access denied
(java.io.FilePermission data/index write)

Can I tell the server in some configuration file that writing these
files is allowed?
I searched the web, but all I found is hints how this can be
established with apache tomcat.
If possible I want to write these files in development mode, since the
debug features are fascninating (at least to me).

Kind regards and many thanks
Martin

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 read/create kml file using java using GWT

2010-03-09 Thread siham

All you need to use all these techniques in your sites is just the
Java and will leave for Eclipse and GWT Ocuadk converted to Javascript
and will leave for the library Ext GWT vaccination great software
interfaces less and less as a professional!.

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



Contacts MVP Example -- getAssociatedType() override necessary?

2010-03-09 Thread scope

Hey there-

I've been slowly going through all the GWT tutorials in an effort to
understand the capabilities of the tool.

Could someone please explain why the GwtEvent subclasses from the
MVP article override getAssociatedType()?

The article and code samples can be found here:

http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html

An example from EditContactEvent.java is:

  @Override
  public Type getAssociatedType() {
return TYPE;
  }

Is this necessary?  Since GwtEvent is a template (generic in Java
terms), won't the default implementation of the method suffice?

Thanks and take care.

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



Unable to see GWT.log messages

2010-03-09 Thread yves
I am using GWT 2.0.3 with Eclipse on W7

I installed the GWT development mode plugin in Chrome to have access
to development mode. I ma

I want so see my GWT.log messages in development mode

When I start my project and paste the URL ending with
"gwt.codesrvr=127.0.0.1:9997" the application works okay, but I still
see no console window in Chrome holding my log messages. The
development mode console displays only the message "module has been
loaded" message.

I see that there is a server listening on port 9997, so perhaps it's
only about how to access the development mode.




-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: AsyncCallback Memory Leak

2010-03-09 Thread dolcra...@gmail.com
public void onModuleLoad() {
  Timer t = new Timer() {
  public void run() {
greetingService.greetServer(
new
AsyncCallback() {
public void
onFailure(Throwable caught) {
//
Show the RPC error message to the user
 
Window.alert("Remote Procedure Call - Failure");
t.schedule(1);
}
@Override
public void
onSuccess(Integer result) {
//
TODO Auto-generated method stub
t.schedule(1);
}
});
  }
};
t.schedule(1);
}
-- Client Side GreetingService Interface --
/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
Integer greetServer() throws IllegalArgumentException;
}

On Mar 7, 5:12 pm, "winhqwebm...@gmail.com" 
wrote:
> I also forgot to mention that I am using Chrome for testing.
>
> On Mar 7, 5:00 pm, "winhqwebm...@gmail.com" 
> wrote:
>
>
>
> > Hello,
>
> > I am developing a small application that requires an AsyncCallback
> > call every second. The following implementation generates a fairly
> > considerable memory leak:
>
> > public void onModuleLoad() {
> >       Timer t = new Timer() {
> >                   public void run() {
> >                                 greetingService.greetServer(
> >                                                 new 
> > AsyncCallback() {
> >                                                         public void 
> > onFailure(Throwable caught) {
> >                                                                 // Show the 
> > RPC error message to the user
> >                                                                 
> > Window.alert("Remote Procedure Call - Failure");
> >                                                         }
>
> >                                                         @Override
> >                                                         public void 
> > onSuccess(Integer result) {
> >                                                                 // TODO 
> > Auto-generated method stub
>
> >                                                         }
>
> >                                                 });
> >                   }
> >                 };
>
> >                 t.scheduleRepeating(1000);
> >         }
>
> > -- Client Side GreetingService Interface --
>
> > /**
> >  * The client side stub for the RPC service.
> >  */
> > @RemoteServiceRelativePath("greet")
> > public interface GreetingService extends RemoteService {
> >         Integer greetServer() throws IllegalArgumentException;
>
> > }
>
> > What could be causing the memory leak? I'm using GWT 2.0.3.
>
> > I'd appreciate any help.
>
> > Thanks,
> > Mike

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



Equivalent method in GWT?

2010-03-09 Thread sean
Hi,

I am currently implementing an application making use of GWT although
I am encountering a problem, i.e. I would like to impelement this line
of code "parent.document.getElementsByTagName" in GWT. I know that I
can make use of the getParent(Element) method, but is there a method
which does not require a parameter as input?

Thanks for your help,
Sean

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



JS slimbox lib doesnt execute

2010-03-09 Thread Petein
Hello.

I want to be able to import the html code of another web page which is
on my web server to my gwt web app. I use this code to download the
content of a html page on my web server: http://codepad.org/aiVlWCt2 .

This is my entry point html (top part) http://codepad.org/k5zMcqJ2
where i load the js libs i want to be able to use.

This http://codepad.org/XiReL6EV is the html file i import to my gwt
web app by using the RequestBuilder. The contents of that html file
are imported fine, but the js slimbox2 js lib is not working at all.
What can i do to solve this? When I press on one of the images the
slimbox script executes and does the animation as expected. This
behaviour happens when i dont comment out the libs from the imported
html file and I use it to my web app by using a Frame.

I don't want to use a Frame, because it makes my web page looking
nasty even if i set the Frames border equal to none. I don't want to
have java on the server side because i want to be able to find a cheap
hosting service to deploy this web app. I prefer not having a server
side at all to be honest. Please enlighten me to solve this problem.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: AsyncCallback Memory Leak

2010-03-09 Thread Thomas Broyer


On 8 mar, 01:05, "dolcra...@gmail.com"  wrote:
> Does it still happen if you define the callback and assign it to a
> final variable and use it that way?

And how about scheduling the timer from the onSuccess/onFailure?

Is the leak also experienced when scheduling every, say, 10 secs?

It could be that the requests are queued (no more than 2 or 6 requests
at a time, so if the request/response takes more than a second...) in
the browser, along with, of course, the AsyncCallback and the Request
object (one is always created even if you don't return a Request from
your RPC 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: Calling the GWT entry module from a servlet

2010-03-09 Thread Robert J. Carr
> Thanks for the response. I however do not understand what you mean by
> "sounds like your gwt is using plain-old html, and not a jsp". The
> redirect I am performing is to the host page (initial html page that
> invokes the GWT application). Can this be a jsp instead of a html?

Sure, your gwt doesn't care what it is embedded in, html, jsp, asp, php, etc.

> Also, the difficulty I am encountering with the sendRedirect or
> request dispatcher approach is that once a user has signed out of the
> application, I have a "login again" link which invokes the same
> AuthenticatorServlet which redirects to the GWT initial html page and
> this redirect fails with a message that the "response has already been
> committed". I am essentially looking for some technique to avoid this
> message upon second login from the user.

This error usually means you've written to the output stream before
you send the redirect.  I'm fairly certain if you avoid that you won't
get this error.

Good luck!

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Calling the GWT entry module from a servlet

2010-03-09 Thread jayanth
Thanks for the response. I however do not understand what you mean by
"sounds like your gwt is using plain-old html, and not a jsp". The
redirect I am performing is to the host page (initial html page that
invokes the GWT application). Can this be a jsp instead of a html?

Also, the difficulty I am encountering with the sendRedirect or
request dispatcher approach is that once a user has signed out of the
application, I have a "login again" link which invokes the same
AuthenticatorServlet which redirects to the GWT initial html page and
this redirect fails with a message that the "response has already been
committed". I am essentially looking for some technique to avoid this
message upon second login from the user.

Thanks.


On Mar 9, 2:28 am, rjcarr  wrote:
> For your situation, I think using the redirect makes the most sense.
> This tells the browser to request another resource (i.e., the gwt
> html).
>
> The other option is to use a request dispatcher.  This is basically a
> servlet calling another servlet, but it sounds like your gwt is using
> plain-old html, and not a jsp, so I think the dispatcher would be over
> kill.
>
> So, in summary, I think you're doing it right! :)
>
> On Mar 8, 1:47 pm, jayanth  wrote:
>
>
>
> > I have an AuthenticatorServlet that among other things displays a page
> > to capture username and password and upon form submission validates
> > credentials against an LDAP server. From this servlet, I would like to
> > invoke the GWT initial html page and am looking for best practices to
> > do this.
>
> > I am currently performing a response.sendRedirect (..) which appears
> > to do the job but fear this may not be the best way to achieve what I
> > am looking for.
>
> > Any help is appreciated. Thanks.- 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: Serializing a List

2010-03-09 Thread Eric


On Mar 9, 2:41 am, mmoossen  wrote:
> i found the problem 
> inhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/...
> line 114:
> TODO: make the unmodifiable collections serializable
>
> so i think i will forget trying to use my server-side beans for client
> code.
> i will just translate the server-side results to client-only beans.
> it is just a lot of work (cpu-time) for nothing, but it would be the
> same to convert them to JSON for other frameworks.

The Google Collections project advertises its ImmutableList class
as being GWT-compatible. You might be able to resort to that project's
Lists.of() method instead of the JDK Collections.unmodifiableList()
method.

Respectfully,
Eric Jablow

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Google Maps V3 use with the GWT (JSNI)

2010-03-09 Thread Joe
Thank's for the fast reply!
The library for Google Maps v3 isn't finished I think and who has to
be the script tag when I want to use the Javascript library with
JSNI?

I tried http://maps.google.com/
maps/api/js?sensor=false">
but that doesn't work?!

Concerning the library for Google Maps v3 it isn'z clear to me, how I
can add all the classes to my existing eclipse-project??

Thanl's and Regards
Joe

On 9 Mrz., 16:59, Eric Ayers  wrote:
> Some folks have started a library for Google Maps v3. You can browse some
> sample cod here:
>
> http://code.google.com/p/gwt-google-maps-v3/source/browse/#hg/src/com...
>
> From what you describe, it looks like your app is not loading the maps API
> before calling this code.
>
> http://code.google.com/apis/maps/documentation/v3/introduction.html
>
> You probably need to add or fix the 

Re: Google Maps V3 use with the GWT (JSNI)

2010-03-09 Thread Eric Ayers
Some folks have started a library for Google Maps v3. You can browse some
sample cod here:

http://code.google.com/p/gwt-google-maps-v3/source/browse/#hg/src/com/google/gwt/maps/client

>From what you describe, it looks like your app is not loading the maps API
before calling this code.

http://code.google.com/apis/maps/documentation/v3/introduction.html

You probably need to add or fix the 

Google Maps V3 use with the GWT (JSNI)

2010-03-09 Thread Joe
Hello everybody!
I try to usethe Google Maps API V3 with the GWT, but it doesn't work.
In a class I have the following method:

public static native JavaScriptObject getMap()/*-{

ar latlng = new google.maps.LatLng(50.940872, 6.937888);
var myOptions = {
zoom: 15,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(div, myOptions);
}-*/;

But I always get the error that "google" isn't known. I new that I ave
to include the script-tag. I tried to put it in the xml-File or the
html-File of my GWT2.0 project, but it doesn't work, Does anyone know
who to setup my project to use the Google Maps API V3 with JSNI???
I hope someone could help me...
Thank's a lot
Regards, Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: Perhaps a clue to the IE layoutPanel blank window issue

2010-03-09 Thread Paul Stockley
Some more weirdness to report. If you have an application that has
some screens that are layoutPanel based and some that use standard
layout added to RootPanel you can get some very strange interactions.
Sometimes if I switch between screens, when I get to a standard layout
screen I cannot type in any fields. The culprit is again the
RootLayoutPanel. If I remove it using the IE Dom browser everything
works. The problem is that once you call RootLayoutPanel.get it lazily
instantiates the RootLayoutPanel. From this point on there is no way
to remove it.

So unless GWT implement a fix, don't mix RootPanel based and
RootLayoutPanel based screens together in the same application.

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: HTML tag in GWT

2010-03-09 Thread mariyan nenchev
Use the technique that Pardeep Sood told 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: GWT Eclipse Hosting mode relative path issue

2010-03-09 Thread San
Thanks, GWT.getHostPageBaseURL helps.

On Mar 9, 4:04 am, Chris Lercher  wrote:
> Hi,
>
> you should be able to use GWT.getModuleBaseURL() or maybe in your case
> GWT.getHostPageBaseURL()
>
> Chris
>
> On Mar 9, 3:29 am, San  wrote:
>
>
>
> > Hello,
>
> > I use Eclipse 3.5 (Galileo) and google plugin to develop my project.
> > I'm having an issue while accessing static files from content root
> > directory in runtime
> > .
>
> > I have placed a xml file - packages.xml under war folder where my
> > module index html file resides. I'm trying to get the xml file from
> > the server in runtime and then need to do some parsing
>
> > RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
> > "packages.xml");
>
> > But, I'm getting 404 when the above file is access in hosting mode,
> > but works fine after compilation. When I use "/" prefixed to the xml
> > file, like "/packages.xml" that works in hosting mode, but it will not
> > work after compilation.  What should I do make it work in hosting mode
> > and after compilation?. Please advise me. 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: Adding the google maps "showMore" button to a Map

2010-03-09 Thread Eric Ayers
You can create custom controls using gwt-maps by extending the CustomControl
class as shown in the custom control demo that is a part of the HelloMaps
application shipped with the source code.

http://gwt.google.com/samples/HelloMaps-1.0.4/HelloMaps.html#Custom%20Map%20Controls

The gmaps-utility library is distributed as an open source library separate
from the Maps API.  There are some GWT bindings for it in a separate
codesite project:

http://code.google.com/p/gwt-maps-utility/

-Eric.

On Sun, Mar 7, 2010 at 2:49 AM, cyclingthealps <
denniswegew...@googlemail.com> wrote:

> Hi there,
>
> I would like to add the showmorebutton to my map (MapWidget object) in
> GWT as is shown in this example:
>
> http://gmaps-utility-library-dev.googlecode.com/svn/trunk/extmaptypecontrol/examples/morebuttonexample.html
>
> Here is the link to the javascript code: "Adding the More... Button"
>
> http://gmaps-utility-library-dev.googlecode.com/svn/trunk/extmaptypecontrol/docs/examples.html
>
> I know that there is no class for the "ExtMapTypeControl"
> functionality available yet. They are working on it
>
> http://groups.google.com/group/gwt-google-apis/browse_thread/thread/47c0221e18592b17/c7e89282730e8044?#c7e89282730e8044
> but it is not yet available in the GWT Bindings for GMaps Utilities.
>
> Anybody has an simple solution to add this showMore button?
>
> I would like to add it to this website http://alpspasses.appspot.com/
>
> Thank you very much.
>
> Cheers
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA
Sign up now for Google I/O 2010: May 19-20, http://code.google.com/io

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: HTML tag in GWT

2010-03-09 Thread Pardeep Sood
Hi,

If I understand your question right, then here is what to do.

Create a HorizontalPanel and add the two widgets to the horizontal
panel. Add the horizontal panel to the table cell.

Thanks.
Pardeep

On Tue, Mar 9, 2010 at 3:43 PM, raj  wrote:
> hi everyone!
>
> i've used ListGrid to create a table and i want a cell to have two
> widgets(a button and textbox)...is it possible?
> and i've a alternate solution with setting a HTML code as value of the
> cell using "Cell formatter" but i don't know how to get the value
> from the textbox which is created by the HTML code.
>
> Can any one help me?
>
> Regards,
> raj.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google 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: Opinions on GWT as a platform for web based development

2010-03-09 Thread mariyan nenchev
Every thing depends on how you develop with gwt.

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



Re: Opinions on GWT as a platform for web based development

2010-03-09 Thread mikedshaf...@gmail.com
My .02...

To Chris's point "or if they're written in JavaScript, you won't have
much lock-in"...true.  But you won't exactly be using GWT to it's
strength.

IMHO the advantage that GWT has over other frameworks is that it's not
really a framework like YUI, Scriptaculous, jquery or whatever.  Those
are Javascript libraries to help you write slicker Javascript for the
web client.  GWT takes a different and wholly unique approach by
nearly eliminating the need for developers to write Javascript in the
first place.  You write GWT in Java, using nearly full powered Java
syntax and let the GWT compiler make the Javascript.  You wouldn't be
limited or locked in, any more than if you crafted your application
around any of the aforementioned Javascript librariesso that means
yes.  Yes you are "locked" in, just as locked in if you developed an
app in YUI and decided to switch to JQuery.  The big, big advantages
to GWT are syntax homogeny (Java for the client, Java for the server),
Java development strategies for web apps (JUnit, true Java classes and
inheritance, etc...) and browser neutral coding (the GWT compiler
handles the various implementations of browser quirks).  Your team
focuses on writing code.

Again, to mirror Chris's point, GWT is a web client based product,
with a limited amount of server side niceness (but I'm a huge lover of
GWTRPC so that makes my statement seem odd...but I digress).  So you
won't see any issues with hibernate, spring and spring security,
because they are server side Java "libraries".  About the only issue
is that you'll have to work with the GWT to Hibernate DTO...since it
all ends up on client as Javascript.  But what we've done is create
pure Java value DTO's that are fully usable on client in GWT and fully
usable on server in Hibernate...same exact classes, no cut and paste
or tweeking.  Try that with a Javascript client language.

You mention PHP.  GWT is compatible with PHP, mostly in the JSON
area...because again, PHP is a server side language and GWT in this
case would be your client side.  I've seen that done a number of
times...

As for the dreaded reuse question:  it is possible to take your
compiled Javascript, which was created by GWT and maintain it.  Sadly,
I've seen it done.  Once you do that, you can't go back.  It's not
unlike someone skilled back in the old days who would hand modify the
compiled out Visual Basic project code and break what the VB IDE could
do for them.  But then I thought I had a good reason to do that
The bottom line is that the resulting Javascript is fairly advanced
and likely to be better than anything somebody would write on their
own, but a hard core Javascript developer with mad spelunking skills
and some time, could maintain the Javascript if you decided to walk
away from GWT for some reason.

All of the above opinions are expressly my own

Later,

Shaffer

On Mar 9, 5:11 am, Chris Lercher  wrote:
> Hi,
>
> I don't have an answer on the portal part of your question, but a few
> thoughts on the other parts:
>
> > Are there limitations to using GWT, for example can you use,
> > hibernate, spring, and spring security?
>
> GWT runs on the client (except for the parts from gwt-servlet.jar,
> which run on the server if you choose to use GWTRPC). So on the
> server, you can use whatever you want - this is not restricted by GWT.
> You just have to make sure, that GWT can handle the objects you
> transfer to the client - remember that everything used on the client
> has to be compiled to JavaScript, so it needs the source code for the
> entire object graph that is used. If you want to minimize these
> dependencies, you're probably best advised to use DTOs and keep the
> objects for the client simple.
>
> > Is there a danger in locking ourselves into GWT for web based
> > application development that we cannot move away from it?
>
> This depends on how much you rely on the Java to JavaScript magic
> (which won't be provided by a lot of other frameworks, I'm afraid). So
> if the complex parts of your application are either executed on the
> server side, or if they're written in JavaScript, you won't have much
> lock-in. But if it's written in Java, and it has to be executed on the
> client-side, you probably will.
>
> HTH
> Chris
>
> On Mar 9, 12:44 pm, Portal Developer 
> wrote:
>
>
>
> > Hi,
> > I would like to get people's opinions around the adoption of GWT as a
> > web application development platform.
>
> > Most of our development is carried out using java / php and we are
> > looking to standardise on a new framework for developing web based
> > applications.  We have a mixture of portal based development and php
> > applications.
> > We would like to maintain our portal based development in java but how
> > well does GWT integrate with portals?
>
> > Is there a danger in locking ourselves into GWT for web based
> > application development that we cannot move away from it?
>
> > Are there limitations to using GWT, for example ca

Re: HTML tag in GWT

2010-03-09 Thread raj
thanks!

But i've surfing through showcase for a week or twicei couldn't
find the page for listgrid-cell having more than one widgets.. if it
all it is possible what'' be the "editortype" of the field or cell?

thanks and regards!

On Mar 9, 5:37 pm, mariyan nenchev  wrote:
> I think by ListGrid he is referring to the Widget from Smart GWT. In that
> widget you may add widgets in the table, there are examples in the showcase.

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Converting GWT Compiled JS to Readable JS

2010-03-09 Thread Mark
Hi Thomas,

Sorry for the late reply; other work caught up.

The link you provided looks very interesting. This is probably what we
need. Will take a detailed look on this.


On Mar 2, 9:38 pm, Thomas Broyer  wrote:
> On Mar 1, 12:35 pm, Mark  wrote:
>
> > Thanks for the replies, guys. Very much helpful. :)
>
> > I've started going around -compileReport and the soyc and it looks
> > like these are what I need! I'm now implementing a crude version of
> > our stack trace converter. :)
>
> > Just one hurdle encountered so far: Stack traces from Chrome and
> > Firefox have different formats. I haven't tried with IE and other
> > browsers yet but they might have their own formats too. Different
> > algorithms will be needed for each browser (or its underlying engine).
>
> > In the future, it would be nice if GWT will have a built-in tool like
> > this.
>
> Something 
> likehttp://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions
> ?
>
> (even though it's not documented, it *is* in GWT 2.x)

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: HTML tag in GWT

2010-03-09 Thread mariyan nenchev
I think by ListGrid he is referring to the Widget from Smart GWT. In that
widget you may add widgets in the table, there are examples in the showcase.

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Opinions on GWT as a platform for web based development

2010-03-09 Thread Chris Lercher
Hi,

I don't have an answer on the portal part of your question, but a few
thoughts on the other parts:

> Are there limitations to using GWT, for example can you use,
> hibernate, spring, and spring security?

GWT runs on the client (except for the parts from gwt-servlet.jar,
which run on the server if you choose to use GWTRPC). So on the
server, you can use whatever you want - this is not restricted by GWT.
You just have to make sure, that GWT can handle the objects you
transfer to the client - remember that everything used on the client
has to be compiled to JavaScript, so it needs the source code for the
entire object graph that is used. If you want to minimize these
dependencies, you're probably best advised to use DTOs and keep the
objects for the client simple.

> Is there a danger in locking ourselves into GWT for web based
> application development that we cannot move away from it?

This depends on how much you rely on the Java to JavaScript magic
(which won't be provided by a lot of other frameworks, I'm afraid). So
if the complex parts of your application are either executed on the
server side, or if they're written in JavaScript, you won't have much
lock-in. But if it's written in Java, and it has to be executed on the
client-side, you probably will.

HTH
Chris

On Mar 9, 12:44 pm, Portal Developer 
wrote:
> Hi,
> I would like to get people's opinions around the adoption of GWT as a
> web application development platform.
>
> Most of our development is carried out using java / php and we are
> looking to standardise on a new framework for developing web based
> applications.  We have a mixture of portal based development and php
> applications.
> We would like to maintain our portal based development in java but how
> well does GWT integrate with portals?
>
> Is there a danger in locking ourselves into GWT for web based
> application development that we cannot move away from it?
>
> Are there limitations to using GWT, for example can you use,
> hibernate, spring, and spring security?
>
> If we decide later that GWT isn't the way to go can we reuse what was
> developed in java for GWT, for example is is it possible to develop
> generic enough classes for GWT that can be used outside of GWT as
> well.
>
> I would be grateful for thoughts and opinions, good and bad.  Both
> sides of the story would be helpful.
>
> 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.



Perhaps a clue to the IE layoutPanel blank window issue

2010-03-09 Thread Paul Stockley
I recently wrote a modal working mask (for use during RPC calls) that
blocks input to all controls and slowly fades in an animated working
message in the middle of the screen. This is implemented in a very
similar way to the glass panel used by PopupPanel using an absolutely
positioned div with opacity set so the widgets underneath show
through.

In hosted mode this worked great even when displayed over the top of
layoutPanel based screens. However, when I compiled my app and ran it
natively, the screen would go blank as soon as the mask was removed.
If I resized the window everything would appear again. This led me to
think it had something to do with the RootLayoutPanel. When I debugged
the native JS, I could see as soon as I removed the mask div from the
document body, the RootLayoutPanel (the div with a zindex of -32767)
would pop to the front for no reason.

I was thinking it was a rendering issue caused by changing the dom
structure at the same level as the RootLayoutPanel so I changed my
code to insert the mask div into the RootLayoutPanel and now
everything works fine.

I think the PopupPanel and DialogBox issues people are having could be
related to my problem. The glassPanel is added to the document body
and even the DialogBox is added there. Adding and removing elements to
the document body while the RootLayoutPanel exists seems to cause
strange unpredictable rendering issues.

Anybody from the GWT team got any thoughts on 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.



Opinions on GWT as a platform for web based development

2010-03-09 Thread Portal Developer
Hi,
I would like to get people's opinions around the adoption of GWT as a
web application development platform.

Most of our development is carried out using java / php and we are
looking to standardise on a new framework for developing web based
applications.  We have a mixture of portal based development and php
applications.
We would like to maintain our portal based development in java but how
well does GWT integrate with portals?

Is there a danger in locking ourselves into GWT for web based
application development that we cannot move away from it?

Are there limitations to using GWT, for example can you use,
hibernate, spring, and spring security?

If we decide later that GWT isn't the way to go can we reuse what was
developed in java for GWT, for example is is it possible to develop
generic enough classes for GWT that can be used outside of GWT as
well.

I would be grateful for thoughts and opinions, good and bad.  Both
sides of the story would be helpful.

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.



standard.css with non-standard CSS

2010-03-09 Thread Chris Lercher
Hi,

the "standard.css" I get by using  in my module XML
contains non-standard CSS attributes like "zoom: 1;" This is clearly
the best way to set "hasLayout" in IE<8, but it's an invalid attribute
for other browsers. I'd like to keep my CSS valid, so I'm wondering,
if standard.css shouldn't be subject to deferred binding?

Thanks
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



HTML tag in GWT

2010-03-09 Thread raj
hi everyone!

i've used ListGrid to create a table and i want a cell to have two
widgets(a button and textbox)...is it possible?
and i've a alternate solution with setting a HTML code as value of the
cell using "Cell formatter" but i don't know how to get the value
from the textbox which is created by the HTML code.

Can any one help me?

Regards,
raj.

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Google Plugin for Eclipse 1.3 Preview is now available

2010-03-09 Thread olivier nouguier
Hi Keith

On Mon, Mar 8, 2010 at 10:06 PM, Keith Platfoot wrote:

> Hi Olivier,
>
>>
>>  No new issues with this release (eclipse 3.5.1 + maven + sts + aspectj +
>> wtp).
>>
>> * Same classloader (than GEP 1.2) issues with spring namespace handler in
>> dev mode.
>>
>
> I'm not familiar with this problem.  Is there a bug on the GWT issue
> tracker I can review to get more details?
>
>
 I've just submitted an issues
http://code.google.com/p/google-web-toolkit/issues/detail?id=4730
 With a sample project.
Tell me if you cannot reproduce the issue.
HIH

-- 
A coward is incapable of exhibiting love; it is the prerogative of the
brave.
--
Mohandas Gandhi

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Performance

2010-03-09 Thread Chris Lercher
Hi Raj,

I think that I _may_ be seeing the same thing - however, I'm still not
sure, if this is really caused by GWT hosted mode, it could be
something else. But it also appears to me, that it usually occurs,
when I leave the GWT development mode (formerly called hosted mode)
running for some time without using it. It slows down Eclipse (from
which I started the GWT development mode server) until it's almost
unusable (trying to move the window splitters for example takes
forever). The problem doesn't stop when stopping the dev mode server,
only when restarting Eclipse. Do you see similar effects? If yes, our
problem could really have something to do with GWT, and we should file
a bug. Are you using Eclipse at all?

Memory and processor speed should really not be the problem here (4GB
RAM, of which >1Gig are free); Core2Duo Mac, Processor usage
practically 0), it rather looks like a problem related to Eclipse's UI
thread.

Chris

GWT 2.0.3, GPE 1.2.0, Eclipse 3.5 Cocoa


On Mar 9, 7:05 am, raj  wrote:
> hi friends!!
>
>      i tried running an GWT application both in hosted and browser
> mode.when i run and i didn't close the GWT hosted window for
> sometime(may be 15 min)..i could see my system is getting very very
> slow. Why? is it problem with my system configuration?(I've 1.5GB
> ram,Intel Pentium[R] 4 CPU).can anyone tell me what would be the
> problem with me
>
> Regards,
> raj

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 1.7 -> GWT 2.0 - compiled size significantly increased

2010-03-09 Thread swxoz
Hi,
After migration form GWT 1.7 to 2.0.1 we've noticed increased size of
result .cache. file.

OBFUSCATED size incresed from 500kB -> 1 MB - almost twice.

GWT 2.0 introduced turned on by default stack traces in web mode

http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions

You can turn it of by setting in module xml (it seems reasonable for
production use).




Greeting
Greg Bugiel

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 Eclipse Hosting mode relative path issue

2010-03-09 Thread Chris Lercher
Hi,

you should be able to use GWT.getModuleBaseURL() or maybe in your case
GWT.getHostPageBaseURL()

Chris

On Mar 9, 3:29 am, San  wrote:
> Hello,
>
> I use Eclipse 3.5 (Galileo) and google plugin to develop my project.
> I'm having an issue while accessing static files from content root
> directory in runtime
> .
>
> I have placed a xml file - packages.xml under war folder where my
> module index html file resides. I'm trying to get the xml file from
> the server in runtime and then need to do some parsing
>
> RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
> "packages.xml");
>
> But, I'm getting 404 when the above file is access in hosting mode,
> but works fine after compilation. When I use "/" prefixed to the xml
> file, like "/packages.xml" that works in hosting mode, but it will not
> work after compilation.  What should I do make it work in hosting mode
> and after compilation?. Please advise me. 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: Calling the GWT entry module from a servlet

2010-03-09 Thread rjcarr
For your situation, I think using the redirect makes the most sense.
This tells the browser to request another resource (i.e., the gwt
html).

The other option is to use a request dispatcher.  This is basically a
servlet calling another servlet, but it sounds like your gwt is using
plain-old html, and not a jsp, so I think the dispatcher would be over
kill.

So, in summary, I think you're doing it right! :)

On Mar 8, 1:47 pm, jayanth  wrote:
> I have an AuthenticatorServlet that among other things displays a page
> to capture username and password and upon form submission validates
> credentials against an LDAP server. From this servlet, I would like to
> invoke the GWT initial html page and am looking for best practices to
> do this.
>
> I am currently performing a response.sendRedirect (..) which appears
> to do the job but fear this may not be the best way to achieve what I
> am looking for.
>
> 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.