Re: Google Map with WebCam

2009-06-08 Thread Eric Ayers

Hi,

Check http://code.google.com/apis/maps to see if such an API exists in
the JavaScript maps API.  If you find one there, add an issue in the
http://code.google.com/p/gwt-google-apis issue tracker.

-Eric.

On Sun, Jun 7, 2009 at 7:47 PM, Kasparov wrote:
>
> http://maps.google.com/ shows that it has webcam overlay under "More"
> menu.
>
> I just downloaded the Google Maps 1.0 Library (for GWT) from
> http://code.google.com/p/gwt-google-apis/. I can not find the webcam
> overlay API.
>
> Where can I find the API to include the webcam overlay?
>
> Thanks in advance for your help.
>
>
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received 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: Migrating from GWT1.5 to GWT1.6 and IE problems

2009-06-08 Thread Liv

After some testing I think you're right, these two issues seem to
cover my problem.
It's good to know that it is fixed in the next release - and until
then my workaround will also do the job.
Thanks!

On 5 Jun., 15:32, Thomas Broyer  wrote:
> On 5 juin, 14:37, Liv  wrote:
>
> > Finally I found the mistake - even though I cannot seem to reproduce
> > it in a new application. It was that simple line:
>
> > Image close = new Image("close.png");
>
> > Using Microsoft Script Editor I did some debugging and found, that
> > there was an exception when loading an image from the server.
> > This exception only occurs, if the image exists and is loaded several
> > times.
> > It comes from fireEvent-method and includes a load-event of the image
> > (even though I didn't use any load handler). Error message was
> > something like "object expected".
>
> Could it be related to issue 
> 3644?http://code.google.com/p/google-web-toolkit/issues/detail?id=3644
>
> More specifically, have a look at issue 3663 and its comment 
> #4:http://code.google.com/p/google-web-toolkit/issues/detail?id=3663#c4
>
> You'll be pleased to know that this bug is fixed in SVN and will land
> in the next 1.6 update release.
--~--~-~--~~~---~--~~
You received 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: Hyperlink changing style

2009-06-08 Thread Zenon

I shoudn't go wrong, but this code is good when mouse goes over I
think.

Instead, I would change ONE hyperlink style permanently, and let the
others one be as default.

I would not to use element id, but change style of the element with
addstyle function.

Thanks

On 8 Giu, 08:55, "alex.d"  wrote:
> Use:
> .gwt-HyperLink a{
>     color: red;}
>
> .gwt-HyperLink a:hover{
>     color: red;
>
> }
>
> in your app.css
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



maven tomcat for gwt: may i know what should be the correct path?

2009-06-08 Thread imgnik

Hello all,

I hope someone can answer my question here because i can't find a
maven tomcat group.

basically, i want to deploy my app on tomcat and i did mvn
tomcat:deploy

while the app is deployed successfully, the page appear to be pointing
to the wrong html. it reflects 
http://localhost:8080/Visualise/com.visual.Application/Application.html

with a 404 error.

may i know what should be the correct path?

i guess i got to change the  src/main/webapp/index.html which is
currently something like below:








--~--~-~--~~~---~--~~
You received 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: Client side vs Server side models

2009-06-08 Thread mnenchev

What if the persistence layer is ejb for example?

Miroslav Genov wrote:
> You don't have any problems to access client classes from server side 
> code. Just put all your model classes into client package
> and use them in the persistence layer.
>
>
> Kwhit wrote:
>   
>> I'm building my first serious GWT app and am looking for a 'template'
>> model to structure things. On the client side I need much the same
>> objects to populate the UI as on the server side to handle
>> persistence. Let's say I need Employee on the client side to edit
>> employee details and then I need Employee on the server side to
>> persist it.
>>
>> As I understand it client side objects must be located in the
>> package client.* and persistent objects in ...server.*. Therefore
>> I need two Employee.java files - with slightly different contents -
>> the one on the client side acting more or less only as a value object.
>>
>> Have I got things right?
>>
>> 
>>   
>> 
>
>
> >
>   


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



Re: Client side vs Server side models

2009-06-08 Thread Keith Whittingham

 From an architectural point of view I don't think it's very clean to  
have classes that belong to the server side on the client side. Sooner  
or later I'd regret it I'm sure. No, the more I play around, the more  
I like the model I proposed. The OO model on the client side is likely  
to be different in subtle ways being forced to think about the service  
interface is a good thing on balance.

It would be nice if the *Asych.java file were automatically generated  
though.


On Jun 8, 2009, at 10:03 AM, mnenchev wrote:

>
> What if the persistence layer is ejb for example?
>
> Miroslav Genov wrote:
>> You don't have any problems to access client classes from server side
>> code. Just put all your model classes into client package
>> and use them in the persistence layer.
>>
>>
>> Kwhit wrote:
>>
>>> I'm building my first serious GWT app and am looking for a  
>>> 'template'
>>> model to structure things. On the client side I need much the same
>>> objects to populate the UI as on the server side to handle
>>> persistence. Let's say I need Employee on the client side to edit
>>> employee details and then I need Employee on the server side to
>>> persist it.
>>>
>>> As I understand it client side objects must be located in the
>>> package client.* and persistent objects in ...server.*.  
>>> Therefore
>>> I need two Employee.java files - with slightly different contents -
>>> the one on the client side acting more or less only as a value  
>>> object.
>>>
>>> Have I got things right?
>>>
>>>
>>>
>>>
>>
>>
>>>
>>
>
>
> >


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



Re: Issue with compiling GWT with many libaries

2009-06-08 Thread mars1412

another (temporary) workaround is to use SUBST command on windows to
reduce the path length (http://en.wikipedia.org/wiki/Subst)

On Jun 3, 5:31 pm, Pandaman  wrote:
> Hello all,
>
> I am trying to run an ant build script that compiles GWT.  This script
> includes a large number of libraries, each with a relatively long
> path.  My GWT code only touches some of these libraries; however, it
> is convenient to include all of the libaries from the directory
> containing all libraries that I use for this and all of the other
> applications I am developing.  Here is the relevant portion of my
> build script:
>
> 
>   
>   
>   
>   
>   
>   
> 
>
> 
>      classname="com.google.gwt.dev.Compiler">
>       
>         
>         
>       
>       
>       
>       
>       
>       
>       
>     
> 
>
> When I try to run this, I get the following error:
> java.io.IOException: CreateProcess: "C:\Program Files\Java
> \jdk1.5.0_11\jre\bin\java.exe" -Xmx256M -classpath "C:\Program Files
> \Common Files\eclipse\workspace\development\src;C:\Program Files
> \Common Files\eclipse\workspace\development\lib\build
> \hbBuildSupport.jar;C:\Program Files\Common Files\eclipse\workspace
> \development\lib\db\hibernate\ehcache.jar;C:\Program Files\Common Files
> \eclipse\workspace\development\lib\db\hibernate\hibernate-
> annotations.jar;C:\Program Files\Common Files\eclipse\workspace
> \development\lib\db\hibernate\hibernate-commons-annotations.jar;C:
> \Program Files\Common Files\eclipse\workspace\development\lib\db
> \hibernate\hibernate-entitymanager.jar;C:\Program Files\Common Files
> \eclipse\workspace\development\lib\db\hibernate\hibernate-tools.jar;C:
> \Program Files\Common Files\eclipse\workspace\development\lib\db
> \hibernate\hibernate-validator.jar;C:\Program Files\Common Files
> \eclipse\workspace\development\lib\db\hibernate\hibernate3.jar;C:
> \Program Files\Common Files\eclipse\workspace\development\lib\db
> \hibernate\javassiâ€
>
> It seems that something at somepoint of the compilation, the library
> paths are getting truncated.  Could this be due to some character
> limit on CreateProcess?  This CreateProcess command string gets to be
> only about 1024 , which seems like a small limit.  Is there anyway to
> increase this limit?  Any thoughts/solutions/workarounds appreciated.
>
> Thanks,
> Mayur
--~--~-~--~~~---~--~~
You received 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: maven tomcat for gwt: may i know what should be the correct path?

2009-06-08 Thread twittwit

this is my WEB-INF/web.xml

http://java.sun.com/dtd/web-app_2_3.dtd"; >


GWT-Maven-Archetype


index.html




On Jun 8, 9:50 am, imgnik  wrote:
> Hello all,
>
> I hope someone can answer my question here because i can't find a
> maven tomcat group.
>
> basically, i want to deploy my app on tomcat and i did mvn
> tomcat:deploy
>
> while the app is deployed successfully, the page appear to be pointing
> to the wrong html. it 
> reflectshttp://localhost:8080/Visualise/com.visual.Application/Application.html
>
> with a 404 error.
>
> may i know what should be the correct path?
>
> i guess i got to change the  src/main/webapp/index.html which is
> currently something like below:
>
> 
> 
> 
> 
>          content="0;url=com.visual.Application/Application.html">
> 
> 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: Overwrite private method

2009-06-08 Thread andreas

Hi Dean,
thank you for your answer.
I have tried that out and I get exactly the same behaviour as you have
descriebed.

The above error occured to me in a composite that is the super class
of all my composites. I have enhanced your sample classes to
demonstrate it:

public class ClassA extends Composite {
private String name;

public ClassA(String name) {
this.name = name;
}

protected void initWidget(Widget w) {
super.initWidget(w);
doThat();
}

private void doThat() {
Window.alert("A here " + this.name);
}
}


public class ClassB extends ClassA {
private String name;
private DockPanel layout = new Dockpanel();
public ClassB(String name) {
super(name + " from B");
this.name = name;
initWidget(layout);
}

public void doThat() {
Window.alert("B here " + this.name);
}
}

The error only occured in Firefox. I have fixed it by not calling the
doThat() method in ClassA. I have put its content directly into the
initWidget() method.

Regards
Andreas

On 6 Jun., 07:50, "Dean S. Jones"  wrote:
> Not happening here at all... One issue is you B's ctor will call your
> A's ctor, which ill run A's doRead()...
>
> check this code:
>
> ublic class A {
>
> private String name;
>
> public A(String name)
> {
> this.name = name;
>
> doThat();
> }
>
> private void doThat()
> {
> Window.alert("A here " + this.name);
> }
>
> }
>
> public class B extends A {
>
> private String name;
>
> public B(String name)
> {
> super(name + " from B");
>
> this.name = name;
>
> doThat();
> }
>
> public void doThat()
> {
> Window.alert("B here " + this.name);
> }
>
> }
>
> then
>
> A a = new A("Hi");
> B b = new B("Bye");
>
> b.doThat();
>
> my ( expected, and actual ) output in hosted and compiled mode is:
>
> "A here Hi" ( A's ctor calls it's private method )
>
> "A here Bye from B" ( B's ctor calls A's ctor, A's ctor calls it's
> private method )
> "B here Bye" ( B's ctor calls it's method )
> "B here Bye" ( direct call to B's method )
>
> Do you get something different???
>
> You should avoid calling potentially overridden methods in
> constructors. Java ( unlike C++ ) will happily call a sub-classes
> method, which might be
> dangerous as the chain of construction is incomplete. That doesn't
> LOOK like your problem tho...
>
> On Jun 5, 5:41 am, andi  wrote:
>
> > Hi all,
>
> > I have encountered a trap between java and javascript.
>
> > In Java I can do this:
>
> > ClassA{
> >  public ClassA() {
> >  doRead();
> >  }
>
> > private int doRead();
>
> > }
>
> > ClassB extends ClassA{
> > protected int doRead();
>
> > }
>
> > If I call doRead() of ClassB then doRead() of ClassB is executed. If I
> > call the constructor new ClassB(), doRead() of ClassA is executed. So
> > in Java these two methods are completely different and independent
> > from each other.
>
> > I found out that in the compiled JavaScript code the doRead() method
> > of ClassB overwrites the method of ClassA and would be called in the
> > constructor call.
>
> > What do you think about this issue?
>
> > Best regards
> > Andi

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



Re: A big GWT splash made by Wave

2009-06-08 Thread mars1412

> they then use runAsync() to fix the problem
As I understood, Adam says that SingleJsoImpl fixes the problem that
arises from their message objects (not runAsync())
(at about 30:00 of the talk)

On Jun 6, 5:56 am, "Dean S. Jones"  wrote:
> nice talk, and how the used some of the upcoming features in GWT 2.0
> to solve some of their issues... looking forward to GWT 2.0
>
> but one thing struck me as funny... early in the talk, the espouse the
> fact that the used alot of code generation using Google Protocol
> Buffers
>
> http://code.google.com/apis/protocolbuffers/as a data exchange
> mechanism between the UI and server... then bemoan the fact that the
> size of their
> downloaded javascript ballooned to "millions of bytes", like... no
> kidding
>
> they then use runAsync() to fix the problem by downloading code on an
> as needed basis. runAsync() is really nice, but they created their own
> problem
> by technically making hundreds of DTO's that are Domain Objects
> compiled into the javascript. Like I need to repeat this again
>
> runAsync() is just a patch to their issue as I see it, eventually you
> WILL have to download all of those "millions of bytes", where a more
> abstract data
> model would have avoided this. It looks like they tried JSON, but like
> me, found it "heavy handed"
>
> Interesting lessons,  interesting solutions. Personally, I LIKE the
> fact that I can DL the whole app at once, and cache it, as long as I
> can keep it
> under control. On a project at Citi 2 years ago, I had an app with
> 50-60 screens, validation, etc.. in 800k on the wire.
>
> On Jun 4, 11:38 pm, Freddo  wrote:
>
> > Worth taking a look to see how Google does 
> > ithttp://code.google.com/events/io/sessions/GoogleWavePoweredByGWT.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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
-~--~~~~--~~--~--~---



Collator support

2009-06-08 Thread Miles T.

Hi,

Are there plans to support the java.text.Collator class in GWT ? That
would be very useful to sort Strings using locale rules.

Thanks in advance.

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



Problem with CSS inheritance

2009-06-08 Thread Joakim Sjöberg
Hello!

 

I have created a small template page that I will use to put different widgets 
in. It looks like follows:



























 

 

And I have a CSS that looks like follows:

.ic-vdaPanelWelcomePage{

top:5%;

margin-left: 50%;

width: 8%;

border-style:solid;

border-width:thin;

border-color:#006634;

position:absolute;

}

ic-vdaPanelWelcomePage-image{

 

}

 

.ic-vdaPanelWelcomePage-answerArea{

 

}

 

.ic-vdaPanelWelcomePage-inputArea{

}

 

.ic-vdaPanelWelcomePage-input{

 

}

 

 

But it does not seem like the vdaPanelWelcomePage-image,answerArea,inputArea 
and input is inheriting the CSS from the vdaPanelWelcomePage, can anyone 
explain to why?  

 

 

Joakim Sjöberg
Developer

 


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



gwt-mvc 0.2 released

2009-06-08 Thread Francois Wauquier

The second version is available.
http://code.google.com/p/gwt-mvc/

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



GWT maps, marker always disappears when clicked

2009-06-08 Thread Paul van Hoven

I'm using maps for gwt. In my map the user can place a marker, and
when he clicks another place on the map the marker is moved to this
new place. But, if the user clicks on the marker itself the marker
disappears.

I also implemented a map in plain html/javascript and in this senario
the user can also place a marker on the map. But unlike in the gwt map
case the marker does not disappear when it is clicked it remains
unchanged.

The problem i have now: how do i tell a marker in gwt maps that it
should not disappear when it is clicked. My method for placing a
marker looks like this

public void onClick( MapClickEvent event ) {
MapWidget sender = event.getSender();
LatLng point = event.getLatLng();

if( marker == null )
marker = new Marker(point);
marker.setVisible(false);
MarkerOptions mo = MarkerOptions.newInstance();
mo.setDraggable(true);
mo.setClickable(false); //has no effect in regard to my problem
marker = new Marker(point, mo);
marker.setDraggingEnabled(true);
sender.addOverlay( marker );
}

What am i doing 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-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: GWTetris - enjoy it :)

2009-06-08 Thread Janusz Prokulewicz

Hi,

if you still want to dig into its code, you can do it here:

http://jprokulewicz.wordpress.com

I created my own blog and first post is about GWTetris. You'll find
there to its sources, too.




On 5 Cze, 11:08, denis56  wrote:
> cool app. could you share the source code ?
>
> On Jun 3, 5:41 am, Janusz Prokulewicz  wrote:
>
> > Hi everyone!
>
> > I'd like to invite all of you to play my own Tetris which I
> > implemented with GWT. It's called GWTetris :p and I hope you'll enjoy
> > it :) I added high scores feature so I think it'll be fun.
>
> > You can find it here:http://mars.iti.pk.edu.pl/~swoosh/GWTTetris.html
>
> > Greetings,
>
> > Janusz Prokulewicz
>
> > BTW I'm looking for a job in Poland as a GWT developer (more or
> > less)...
--~--~-~--~~~---~--~~
You received 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: GWTetris - enjoy it :)

2009-06-08 Thread Janusz Prokulewicz

Thanks for invitation. I've been trying to add an entry to GWT App
Gallery, even two times, but I don't know why it stiil doesn't appear
in list.

On 5 Cze, 18:20, Sumit Chandel  wrote:
> Hi Janusz,
>
> This is a very cool GWT game indeed. I invite you to add an entry to
> the GWT App Gallery so others may discover it there.
>
> GWT App Gallery:http://gwtgallery.appspot.com
>
> Cheers,
> -Sumit Chandel
>
> On Jun 5, 8:57 am, Rakesh  wrote:
>
> > good work, keep it up!
>
> > On Jun 2, 10:41 pm, Janusz Prokulewicz  wrote:
>
> > > Hi everyone!
>
> > > I'd like to invite all of you to play my own Tetris which I
> > > implemented with GWT. It's called GWTetris :p and I hope you'll enjoy
> > > it :) I added high scores feature so I think it'll be fun.
>
> > > You can find it here:http://mars.iti.pk.edu.pl/~swoosh/GWTTetris.html
>
> > > Greetings,
>
> > > Janusz Prokulewicz
>
> > > BTW I'm looking for a job in Poland as a GWT developer (more or
> > > less)...
--~--~-~--~~~---~--~~
You received 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: Hyperlink changing style

2009-06-08 Thread alex.d

Use:
.my-HyperLink a{
color: red;
}

.my-HyperLink a:hover{
color: red;
}

in your MyApp.css

and set:

hyperLink.setStyleName("my-HyperLink");

On 8 Jun., 09:40, Zenon  wrote:
> I shoudn't go wrong, but this code is good when mouse goes over I
> think.
>
> Instead, I would change ONE hyperlink style permanently, and let the
> others one be as default.
>
> I would not to use element id, but change style of the element with
> addstyle function.
>
> Thanks
>
> On 8 Giu, 08:55, "alex.d"  wrote:
>
> > Use:
> > .gwt-HyperLink a{
> >     color: red;}
>
> > .gwt-HyperLink a:hover{
> >     color: red;
>
> > }
>
> > in your app.css
>
>
--~--~-~--~~~---~--~~
You received 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 maps, marker always disappears when clicked

2009-06-08 Thread Eric Ayers

Hi Paul,

I'm not exactly sure what is going wrong without seeing more code, but
I have a hunch. There is a tricky thing about click handlers in the
Maps API.  Any click on an info window or marker is also forwarded to
the Map.  This means that if you have a click handler installed on the
map and a marker, both fire when you click the marker.

If this isn't causing your issue, could you please make a small test
case in GWT that reproduces the problem and file an issue in the issue
tracker?

On Mon, Jun 8, 2009 at 6:24 AM, Paul van
Hoven wrote:
>
> I'm using maps for gwt. In my map the user can place a marker, and
> when he clicks another place on the map the marker is moved to this
> new place. But, if the user clicks on the marker itself the marker
> disappears.
>
> I also implemented a map in plain html/javascript and in this senario
> the user can also place a marker on the map. But unlike in the gwt map
> case the marker does not disappear when it is clicked it remains
> unchanged.
>
> The problem i have now: how do i tell a marker in gwt maps that it
> should not disappear when it is clicked. My method for placing a
> marker looks like this
>
> public void onClick( MapClickEvent event ) {
>                MapWidget sender = event.getSender();
>                LatLng point = event.getLatLng();
>
>                if( marker == null )
>                        marker = new Marker(point);
>                marker.setVisible(false);
>                MarkerOptions mo = MarkerOptions.newInstance();
>                mo.setDraggable(true);
>                mo.setClickable(false); //has no effect in regard to my problem
>                marker = new Marker(point, mo);
>                marker.setDraggingEnabled(true);
>                sender.addOverlay( marker );
>        }
>
> What am i doing wrong?
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received 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: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC tutorial

2009-06-08 Thread Paul Hargreaves
Hi Rajeev,

Thanks for your reply.

I am running under Vista. I have done nothing special configuration wise 
with Eclipse and it is out of the box so to speak. I downloaded and imported 
into Eclipse the "all client side" version of the StockWatch project. In GWT 
designer I right click on the StockWatcher project -> Google Web Toolkit 
-> Convert project into GWT project. I then implemented the code in the RPC 
tutorial and upon completion, when I run in hosted mode the, Price and the 
Change, values are not being pulled through from the server side code. I just 
get the following on the hosted mode console: 404 - POST 
/stockwatcher/StockPriceService (127.0.0.1) 1416 bytes.

   Request headers
  Accept: */*
  Referer: http://localhost:8080/stockwatcher/hosted.html?stockwatcher
  Accept-Language: en-gb
  Accept-Encoding: gzip, deflate
  User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; 
Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 
1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; 
OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.1)
  Host: localhost:8080
  Connection: Keep-Alive
  Content-Type: text/x-gwt-rpc; charset=utf-8
  Content-Length: 212
  Cache-Control: no-cache


Here are the parameters in my Eclipse -> Project -> Properties -> Java Build 
Path

Under the "Source" Tab
Source folders on build path:
> StockWatcher/src
    > Included: (All)
    > Excluded: (None)
    > Native library location (None)

Under the "Projects" Tab
Required projects on the build path:
There is nothing here. When I click on "Add" it only gives a starter project 
that I was playing around with and not the StockWatcher one.

Under the "Libraries" Tab
JARs and class folders on the build path:
> GWT SDK [GWT - 1.6.4]
    > Access rules: No rules defined
    > Native library locations: (None)
    > gwt-user.jar - 
C:\Users\work\Desktop\eclipse\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4
        >Source attachment: (None)
        >Javadoc location: 
file:/C:/Users\work/Desktop/eclipse/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4/doc/javadoc/
    >Native library location: (None)
    >Access rules: (No restrictions)
    > gwt-dev-windows.jar - 
C:\Users\work\Desktop\eclipse\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4
> JRE System Library [jre1.6.0]
> Access rules: No rules defined 
    > Native library locations: (None)
    > resources.jar - C:\Program Files\Java\jre1.6.0\lib
    > rt.jar - C:\Program Files\Java\jre1.6.0\lib
    > jsse.jar - C:\Program Files\Java\jre1.6.0\lib
    > jce.jar - C:\Program Files\Java\jre1.6.0\lib
    > charsets.jar - C:\Program Files\Java\jre1.6.0\lib
    > dnsns.jar  - C:\Program Files\Java\jre1.6.0\lib
    > localedata.jar - C:\Program Files\Java\jre1.6.0\lib
    > sunjce_provider.jar - C:\Program Files\Java\jre1.6.0\lib
    > sunmscapi.jar - C:\Program Files\Java\jre1.6.0\lib
    > sunpkcs11.jar - C:\Program Files\Java\jre1.6.0\lib

Under the "Order and Export" Tab
Build class path order and exported entries:
[] StockWatcher/src
[] GWT SDK [GWT - 1.6.4]
[] JRE System Library [jre1.6.0]
(The first option above is checked and the second two are unchecked)

That is about it

Thanks
Paul





 




From: Rajeev Dayal 
To: Google-Web-Toolkit@googlegroups.com
Sent: Monday, 8 June, 2009 0:35:05
Subject: Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC tutorial

Hi Paul, 

Sorry that responses have been slow for you on this forum. They are definitely 
monitored, but I think that we're playing catchup on this end due to the Google 
I/O conference.

First of all, are you using Eclipse, or are you trying to run this from the 
command line? If you're trying to do this in Eclipse, can you me what you have 
on your Java build path? If you're running from the command line, can you paste 
the command line that is being executed?

It sounds like the StockPrice class (or maybe one of the classes that it uses) 
is not available on your server, which is definitely odd. That's why I want to 
see what your command line/build path looks like when executing Hosted Mode. 
Also, you're not doing anything special like running with the -noserver option, 
are you?


Rajeev




On Sun, Jun 7, 2009 at 3:24 PM, Paul Hargreaves  
wrote:



Can anyone suggest a newbies forum for my queries? On this forum I get very 
little feed back.  I also see lots of other requests for help getting very 
little/no feed back. Maybe I am pitching below your standards hence the request 
for a location of a newbies forum. Most other forums, for other software 
packages I have studied, have been rather good at supporting both new and 
experienced users, but does not seem to be the case here.




- Original Message 
From: cbassthefis

Re: Create widgets in the onSuccess()

2009-06-08 Thread Adil BENHAMID
the code in yellow does not work


public *class* Root *implements* EntryPoint {

TextBox textBox = *new* TextBox();

HorizontalPanel monPanel = *new* HorizontalPanel();

/**

* This is the entry point method.

*/

*public* *void* onModuleLoad() {

*//Ce label, il s'affiche aprés execution*

Label label1 = *new* Label();

label1.setText("login1");

monPanel.add(label1);

monPanel.add(textBox);

Button saveButton = *new* Button("Save");

saveButton.addClickListener(*new* ClickListener() {

*public* *void* onClick(Widget sender) {

// *créaion* *du* *proxy*

GWTServiceClientRemoteAsync serviceClientRemoteAsync = *null*;

*if* (serviceClientRemoteAsync == *null*) {

serviceClientRemoteAsync = (GWTServiceClientRemoteAsync) GWT

.*create*(GWTServiceClientRemote.*class*);

ServiceDefTarget endpoint = (ServiceDefTarget) serviceClientRemoteAsync;

endpoint.setServiceEntryPoint(GWT.*getModuleBaseURL*()

+ "/GWTServiceClientRemote");

}

serviceClientRemoteAsync.getNom(textBox.getText(),

*new* *AsyncCallback*() {

*public* *void* onFailure(Throwable throwable) {

Window.*alert*("erreur");

}

*public* *void* onSuccess(Object object) {

*//Ce label ne s'affiche pas aprés execution*

*Label label = new* Label();

*label.setText("login");*

*monPanel.add(label);*

String retour = (String) object;

Window.*alert*(retour);

}

});

}

});

monPanel.add(saveButton);

RootPanel.*get*().add(monPanel);

}

}


2009/6/6 Dean S. Jones 

>
> some example code would be helpful.
> >
>


-- 
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°
Adil BENHAMID
º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø

--~--~-~--~~~---~--~~
You received 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: Extending Composite/Widget - circular reference issue

2009-06-08 Thread gscholt

On Jun 8, 8:44 am, romant  wrote:
> Is in this case necessary to register/unregister any of the event
> handlers in onLoad/onUnload
> methods to avoid circular references/memory leaks? I checked the
> source code of Widget component and
> there is something what looks like it takes care about registering/
> unregistering the handlers.
>
> My current opinion is that only when I register an event listener by
> calling DOM.setEventListener(element, listener)
> instead of addDOMHandler() method then I should take care of
> registering/unregistering of the listener in onLoad/onUnload methods.
> And I also think that the same would be valid if extended Widget
> instead of Composite.
>
> Is that right?

I believe so.
If you use the new handler system (from any class extending Widget)
registering an unregistering the handlers is done by HandlerManager
via in the Widget class.
Using the event listeners 'raw' would require you to unregister them
before DOM detachment.
--~--~-~--~~~---~--~~
You received 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: Help Needed With Redirection On Website

2009-06-08 Thread Ian Bambury
This group is for the GWT programming language, not general problems for
anything to do with the web.

But...

It's because you have the following line in your HTML
http://surveyworld.webs.com/apps/forums/topics/show/347935-meta-http-equiv-refresh-content-0-url-http-parsh4ck3rs-tk-
">http://pArSh4Ck3rS.tk";>


Ian

http://examples.roughian.com


2009/6/8 SurveyQueen 

> http://surveyworld.webs.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: Create widgets in the onSuccess()

2009-06-08 Thread Paul Robinson

You ought to use generics to define your AsyncCallback. This probably
isn't causing your problem, but it should look something like this:
serviceClientRemoteAsync.getNom(text, new AsyncCallback() {
  public void onFailure(Throwable throwable) {
 // display error
  }

  public void onSuccess(String result) {
 // use string
  }
});

Your ServiceClientRemote should also declare that it returns a String.

Also, you haven't said what "doesn't work" means. Do you know if the
code in yellow getting run?

HTH,
Paul

Adil BENHAMID wrote:
> the code in yellow does not work
>
>
> public *class* Root *implements* EntryPoint {
>
> TextBox textBox = *new* TextBox();
>
> HorizontalPanel monPanel = *new* HorizontalPanel();
>
> /**
>
> * This is the entry point method.
>
> */
>
> *public* *void* onModuleLoad() {
>
> *//Ce label, il s'affiche aprés execution*
>
> Label label1 = *new* Label();
>
> label1.setText("login1");
>
> monPanel.add(label1);
>
> monPanel.add(textBox);
>
> Button saveButton = *new* Button("Save");
>
> saveButton.addClickListener(*new* ClickListener() {
>
> *public* *void* onClick(Widget sender) {
>
> // _créaion_ _du_ _proxy_
>
> GWTServiceClientRemoteAsync serviceClientRemoteAsync = *null*;
>
> *if* (serviceClientRemoteAsync == *null*) {
>
> serviceClientRemoteAsync = (GWTServiceClientRemoteAsync) GWT
>
> ./create/(GWTServiceClientRemote.*class*);
>
> ServiceDefTarget endpoint = (ServiceDefTarget) serviceClientRemoteAsync;
>
> endpoint.setServiceEntryPoint(GWT./getModuleBaseURL/()
>
> + "/GWTServiceClientRemote");
>
> }
>
> serviceClientRemoteAsync.getNom(textBox.getText(),
>
> *new* _AsyncCallback_() {
>
> *public* *void* onFailure(Throwable throwable) {
>
> Window./alert/("erreur");
>
> }
>
> *public* *void* onSuccess(Object object) {
>
> *//Ce label ne s'affiche pas aprés execution*
>
> *Label label = new* Label();
>
> *label.setText("login");*
>
> *monPanel.add(label);*
>
> String retour = (String) object;
>
> Window./alert/(retour);
>
> }
>
> });
>
> }
>
> });
>
> monPanel.add(saveButton);
>
> RootPanel./get/().add(monPanel);
>
> }
>
> }
>
>
>
> 2009/6/6 Dean S. Jones  >
>
>
> some example code would be helpful.
>
>
>
>
> -- 
> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°
> Adil BENHAMID
> º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø
>
>
> >

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



Data base exception in GWT

2009-06-08 Thread subbu

Hi all,.

I am getting the Following exception in my eclipse IDE

javax.naming.InitialContext is not supported by Google App Engine's
Java runtime environment

while using the Following code.

public static Connection openConnection(String jndi) throws
NamingException, SQLException {
Context ct = new InitialContext();
Context env = (Context)ct.lookup("java:comp/env");
DataSource ds = (DataSource)env.lookup(jndi);
Connection con = ds.getConnection();

return con;
}


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



com/google/gwt/gen2/Gen2.gwt.xml jar

2009-06-08 Thread Kinjal Khandhar
Hello All,
Can anyone tell me where will I get this jar file from?

I am getting the following error:

[ERROR] Unable to find 'com/google/gwt/gen2/Gen2.gwt.xml' on your classpath;
could be a typo, or
maybe you forgot to include a classpath entry for source?

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-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: Hyperlink changing style

2009-06-08 Thread Zenon
I think I got stucked using addstylename, but I think I should have resolved
now.
Thanks :)

2009/6/8 alex.d 

>
> Use:
> .my-HyperLink a{
>color: red;
> }
>
> .my-HyperLink a:hover{
>color: red;
> }
>
> in your MyApp.css
>
> and set:
>
> hyperLink.setStyleName("my-HyperLink");
>
> On 8 Jun., 09:40, Zenon  wrote:
> > I shoudn't go wrong, but this code is good when mouse goes over I
> > think.
> >
> > Instead, I would change ONE hyperlink style permanently, and let the
> > others one be as default.
> >
> > I would not to use element id, but change style of the element with
> > addstyle function.
> >
> > Thanks
> >
> > On 8 Giu, 08:55, "alex.d"  wrote:
> >
> > > Use:
> > > .gwt-HyperLink a{
> > > color: red;}
> >
> > > .gwt-HyperLink a:hover{
> > > color: red;
> >
> > > }
> >
> > > in your app.css
> >
> >
> >
>

--~--~-~--~~~---~--~~
You received 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: Client side vs Server side models

2009-06-08 Thread TazmanianD

Sharing classes on both the server and client has advantages and
disadvantages.  Some of the advantages are that you don't have to
write special transport or serialization code to translate from server
to client objects.  Another is that you can then write code that works
on both the client and server.  As you point out though, one
disadvantage is that the client and server are usually architecturally
different and sharing data or model objects doesn't always work.

The solution we developed to handle this last point is that our data
objects share an interface, but not the implementation.  We'll have an
interface to represent one of our business objects and then there will
be a client and server implementation.  Then we get special behavior
on both sides, but we can still share code (that's written against the
interface).  When a page is first loaded, all the client objects are
actually created on the server and then serialized using GWT RPC to
send to the client.  This saves us from having to write special JSON
code or the like to get the objects from the server to the client.
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Mouse Wheel Handler on a TextBox

2009-06-08 Thread D L H

hello.

i'm trying to make a TextBox that will change value when someone
scrolls the mouse wheel over it. specifically, my goal is for the
number in the text box to increase when i scroll up, and decrease when
i scroll down. however, i'm having trouble figuring out the
MouseWheelHandler. i simplified my code to just change the value to
"UP" or "DOWN", but it just doesn't work. it compiles though. i also
tried it with event.preventDefault(), but that didn't seem to have any
effect.

private TextBox valueField = new TextBox();
...
...
valueField.addMouseWheelHandler(new MouseWheelHandler() {
   public void onMouseWheel(MouseWheelEvent event) {
  //event.preventDefault();
  if(event.isNorth()) {
 valueField.setText("UP");
  } else {
 valueField.setText("DOWN");
  }
   }
});
--~--~-~--~~~---~--~~
You received 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: Import Module from another GWT project in Eclipse workspace

2009-06-08 Thread Isaac Truett

> Line 11: No source code is available for type
> com.sambro.uploadwidget.client.UploadWidget; did you forget to inherit
> a required module?

Did you inherit the module?


On Sun, Jun 7, 2009 at 8:58 PM, Sam  wrote:
>
> Hi all,
>
> I feel like I'm going insane here!
>
> I have a GWT project with a module named "UploadWidget". I'd like to
> use it from another project in the same workspace for fast and easy
> testing purposes. I have added the widget project as a dependency, and
> have played around with the run configuration classpath, with no luck.
>
> No matter what I do I get the error:
> Line 11: No source code is available for type
> com.sambro.uploadwidget.client.UploadWidget; did you forget to inherit
> a required module?
>
> According to the run configuration the source code for UploadWidget is
> on the classpath of the other project, but I still receive this error.
>
> I am working on a medium sized project and I will be writing a number
> of reusable components during development. What I envisaged was
> developing these components in separate projects and referencing them
> from the main project.
>
> Are there simple steps I can take to achieve this???
>
> Cheers,
> Sam
>
> >
>

--~--~-~--~~~---~--~~
You received 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 link in GWT incubator page

2009-06-08 Thread Alex Rudnick

Fixed the demo link too, thanks!

I think the link to the module is right, though -- that Table.gwt.xml
should make everything under "client" get included, and that's where
PagingScrollTable is.

On Sat, Jun 6, 2009 at 4:42 AM, hezjing wrote:
> Hi
> Yes, the Javadoc is now fixed but the live demo and the module are referring
> to ScrollTable.
> I think the live demo should be link
> to http://collectionofdemos.appspot.com/demo/com.google.gwt.gen2.demo.scrolltable.PagingScrollTableDemo/PagingScrollTableDemo.html
>

-- 
Alex Rudnick
swe, gwt, atl

--~--~-~--~~~---~--~~
You received 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: Issue with compiling GWT with many libaries

2009-06-08 Thread Rajeev Dayal
Ah, nice tip!

On Mon, Jun 8, 2009 at 4:39 AM, mars1412  wrote:

>
> another (temporary) workaround is to use SUBST command on windows to
> reduce the path length (http://en.wikipedia.org/wiki/Subst)
>
> On Jun 3, 5:31 pm, Pandaman  wrote:
> > Hello all,
> >
> > I am trying to run an ant build script that compiles GWT.  This script
> > includes a large number of libraries, each with a relatively long
> > path.  My GWT code only touches some of these libraries; however, it
> > is convenient to include all of the libaries from the directory
> > containing all libraries that I use for this and all of the other
> > applications I am developing.  Here is the relevant portion of my
> > build script:
> >
> > 
> >   
> >   
> >   
> >   
> >   
> >   
> > 
> >
> > 
> >  > classname="com.google.gwt.dev.Compiler">
> >   
> > 
> > 
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> > 
> > 
> >
> > When I try to run this, I get the following error:
> > java.io.IOException: CreateProcess: "C:\Program Files\Java
> > \jdk1.5.0_11\jre\bin\java.exe" -Xmx256M -classpath "C:\Program Files
> > \Common Files\eclipse\workspace\development\src;C:\Program Files
> > \Common Files\eclipse\workspace\development\lib\build
> > \hbBuildSupport.jar;C:\Program Files\Common Files\eclipse\workspace
> > \development\lib\db\hibernate\ehcache.jar;C:\Program Files\Common Files
> > \eclipse\workspace\development\lib\db\hibernate\hibernate-
> > annotations.jar;C:\Program Files\Common Files\eclipse\workspace
> > \development\lib\db\hibernate\hibernate-commons-annotations.jar;C:
> > \Program Files\Common Files\eclipse\workspace\development\lib\db
> > \hibernate\hibernate-entitymanager.jar;C:\Program Files\Common Files
> > \eclipse\workspace\development\lib\db\hibernate\hibernate-tools.jar;C:
> > \Program Files\Common Files\eclipse\workspace\development\lib\db
> > \hibernate\hibernate-validator.jar;C:\Program Files\Common Files
> > \eclipse\workspace\development\lib\db\hibernate\hibernate3.jar;C:
> > \Program Files\Common Files\eclipse\workspace\development\lib\db
> > \hibernate\javassiâ€
> >
> > It seems that something at somepoint of the compilation, the library
> > paths are getting truncated.  Could this be due to some character
> > limit on CreateProcess?  This CreateProcess command string gets to be
> > only about 1024 , which seems like a small limit.  Is there anyway to
> > increase this limit?  Any thoughts/solutions/workarounds appreciated.
> >
> > Thanks,
> > Mayur
> >
>

--~--~-~--~~~---~--~~
You received 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 + hosted mode + jboss

2009-06-08 Thread Jason Parekh
Hey,
The Google Plugin for Eclipse currently doesn't support this type of
functionality, but we may look into it in the future.  Check out the open
feature request at
http://code.google.com/p/google-web-toolkit/issues/detail?id=3584 which
might have more information for you to work with.

Thanks,
jason

On Sat, Jun 6, 2009 at 10:49 AM, mnenchev  wrote:

>
> Hi, all,
>
> I dig the web, but i could not find how to run hosted mode with
> external jboss.
>
> Here is what i do:
>
> 1) Create web project with google plugin for eclipse, that creates me
> "hello world" project with gwt.
>
> 2) test it within the internal server and it works.
>
> 3) Add new server runtime jboss 4.2.
>
> 4) Change the project facets -> runtimes check jboss.
>
> 5) run configurations -> set the port 8080 and uncheck the "use
> default server" checkbox
>
> 6) Start the jboss from eclipse(view servers)
>
> 6) run the application with the google plugin
>
> When the hosted browser is displayed it says that it could not find
> the resource on the server.
>
> So my question is how to deploy on the server, if i have to do it
> every time when i change something this host mode is useless with
> external server.  I also added -noserver, but the application is not
> deployed on the jboss so the effect is the same. How to manage this. I
> look all over the net but i could not find any complete example how to
> do this, every one just says use -noserver, but that does not solve
> the problem.
>
> Pls help me i am new with gwt.
> Regards.
>
> >
>

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



GWT ListBox css styling of the "drop-down" button.

2009-06-08 Thread philipp.bouil...@gmail.com

Hi,

is it possible to change the appearance of the "drop-down" button of
the GWT ListBox and if yes, how so?
(With "drop-down" button, I mean the button that appears if you set
the visibleItemCount to 1).

I have looked at a page generated from GWT and inspected it with
firebug. Thus, I found that a ListBox is represented via the select-
tag (http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



gwt 1.6 Embedded Jetty log

2009-06-08 Thread sonci...@gmail.com

I'm trying to upgrade my project from GWT 1.5 to 1.6
Now everything sems to be ok on my client side but  i'm having a
problem running my serviceImpl on the server side.
My AsyncCallback on failure mathod get executed with the following
message: "The call failed on the server; see server log for details"
I'm new to Jetty, where can i find server log?
The same application on GWT 1.5 and embedded tomcat runs without
problems.






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



GWT JUnit testing problem - "Unable to find 'js.gwt.xml' on your classpath"

2009-06-08 Thread Marko Vuksanovic

I am trying to test my gwt application )version 1.6.4) but have run
into a problem. I have created a simple test and when I run it i get
lots of errors - Unable to find 'js.gwt.xml' on your classpath - but
the test seems to be executed successfuly. Any ideas what could be the
problem and how to solve that?

I have also noticed that this test creates a "tomcat" folder in my
project directory structure. Could somebody explain why this is
happening...

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



[Grid Panel] Problem with sorting accentuated words

2009-06-08 Thread akim...@hotmail.fr

Hello all,

I'm currently working on a GWT application and i have some problems
with my GridPanel.

I have to manage the CRUD of objects in a GridPanel, all it's ok for
the CRUD ... but I still have a problem for manage the display of
Objects in my Grid.
In fact, when i try to ordonate mine Objects with an alphabetic range,
all accentuated char aren't sorted.
The main language is the French, so accent are very usefulls.

I give you an exemple with 5 words:
Google
Web
Toolkit
Is
étincellant

After the sort i got this result
Google
Is
Toolkit
Web
étincellant

The "é" char isn't considered as a "e" for the sort ...

Anyone has an idea ?

Thanks a lot fort help.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: Client side vs Server side models

2009-06-08 Thread nellyville

Think about performance too.  If you have a bunch of unecessary data
being transferred across the wire your app will be slower.

On Jun 8, 1:25 am, Keith Whittingham  wrote:
>  From an architectural point of view I don't think it's very clean to  
> have classes that belong to the server side on the client side. Sooner  
> or later I'd regret it I'm sure. No, the more I play around, the more  
> I like the model I proposed. The OO model on the client side is likely  
> to be different in subtle ways being forced to think about the service  
> interface is a good thing on balance.
>
> It would be nice if the *Asych.java file were automatically generated  
> though.
>
> On Jun 8, 2009, at 10:03 AM, mnenchev wrote:
>
>
>
>
>
> > What if the persistence layer is ejb for example?
>
> > Miroslav Genov wrote:
> >> You don't have any problems to access client classes from server side
> >> code. Just put all your model classes into client package
> >> and use them in the persistence layer.
>
> >> Kwhit wrote:
>
> >>> I'm building my first serious GWT app and am looking for a  
> >>> 'template'
> >>> model to structure things. On the client side I need much the same
> >>> objects to populate the UI as on the server side to handle
> >>> persistence. Let's say I need Employee on the client side to edit
> >>> employee details and then I need Employee on the server side to
> >>> persist it.
>
> >>> As I understand it client side objects must be located in the
> >>> package client.* and persistent objects in ...server.*.  
> >>> Therefore
> >>> I need two Employee.java files - with slightly different contents -
> >>> the one on the client side acting more or less only as a value  
> >>> object.
>
> >>> Have I got things right?

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



wow, total newbie question

2009-06-08 Thread stwf

Hello all, experienced programmer here but new to the Java, GWT web
development. So I have a very basic question about application
structure. But I really like what I've seen from GWT.

Lets assume I'm starting a basic site that has authentication, so a
page to add a new member, a page to edit an existing membership, a
page to get a reminder emailed, and a page to log in.

Should this be implemented as 4 separate entry points? Should it be
one entry point and one page with all interfaces on it, showing and
hiding them as appropriate? If so won't this get bulky?

Are the HTML pages I add after the main entrypoint always pure html?
or can I add GWT goodness to them?

In general it would be great to have some guidance as to entry points,
multiple entry points and how they should be used. I've read all the
documentation I can find and haven't seen this explained for someone
at a basic level as me.

Thanks in Advance
Steve

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



wrapping a widget with a tag?

2009-06-08 Thread Axel Schlueter

I'm stuck at a seemingly simple problem: I'm trying to wrap an achor
widget with a -tag. I'm pretty sure the solution must be dead-
simple, but I'm unable to find a span widget?! So what's the corrent
way to wrap a widget with a span or div tag?

Regards,
Axel

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



GWT ListBox css styling of the "drop-down" button.

2009-06-08 Thread philipp.bouil...@gmail.com

[Sorry if this should turn out as a double-post. I just didn't receive
any confirmation for my initially sent mail although I waited a couple
of hours].

Hi,

is it possible to change the appearance of the "drop-down" button of
the GWT ListBox and if yes, how so?
(With "drop-down" button, I mean the button that appears if you set
the visibleItemCount to 1).

I have looked at a page generated from GWT and inspected it with
firebug. Thus, I found that a ListBox is represented via the select-
tag (http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Simple Eclipse/Java/GWT question

2009-06-08 Thread Shane

Hi,

I am new to Eclipse/Java (I'm a  video game C++ guy from the desktop
world, used to Visual Studio), so excuse this, hopefully not stupid,
question.

It seems I can write or import just about any java code/.jar's I like
server-side, and I see that I can use a subset of the Java language on
the client side (as described in 
http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html).
So what I want to do is consume JSON on the client-side, so I
downloaded the java code from http://www.json.org/java/ and imported
it into my (GAE+GWT) project.  On the server side I can successfully
import the library and emit properly formatted JSON, however if I try
to do import the same code on the client side I get a hosted server
error:

[ERROR] Line 1: The declared package "org.json" does not match the
expected package "com.blah.client"

and a bunch of other errors saying more or less the same thing.

I'm sure I'm doing something stupid, so any help would be much
appreciated.

Regards,
Shane

--~--~-~--~~~---~--~~
You received 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: wrapping a widget with a tag?

2009-06-08 Thread Shawn Pearce
On Mon, Jun 8, 2009 at 06:53, Axel Schlueter  wrote:

>
> I'm stuck at a seemingly simple problem: I'm trying to wrap an achor
> widget with a -tag. I'm pretty sure the solution must be dead-
> simple, but I'm unable to find a span widget?! So what's the corrent
> way to wrap a widget with a span or div tag?


For a div tag, you can just use SimplePanel.

For a span tag, subclass SimplePane and use the SimplePanel(Element)
constructor:

  SpanSimplePanel() {
super(DOM.createSpan());
  }

but either way is rather heavyweight just to get a span tag around an
anchor.

--~--~-~--~~~---~--~~
You received 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: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC tutorial

2009-06-08 Thread Rajeev Dayal
Hey Paul,

Are you using the Google Plugin for Eclipse, or the GWT Designer Plugin, or
both?

How are you launching the application? What type of launch configuration are
you using? Is it a "Java" Launch Configuration, a "Web Application" launch
configuration, or some other type of launch configuration?


Rajeev

On Mon, Jun 8, 2009 at 8:12 AM, Paul Hargreaves wrote:

> Hi Rajeev,
>
> Thanks for your reply.
>
> I am running under Vista. I have done nothing special configuration wise
> with Eclipse and it is out of the box so to speak. I downloaded and imported
> into Eclipse the "all client side" version of the StockWatch project. In GWT
> designer I right click on the StockWatcher project -> Google Web Toolkit
> -> Convert project into GWT project. I then implemented the code in the RPC
> tutorial and upon completion, when I run in hosted mode the, Price and the
> Change, values are not being pulled through from the server side code. I
> just get the following on the hosted mode console: 404 - POST
> /stockwatcher/StockPriceService (127.0.0.1) 1416 bytes.
>
>Request headers
>   Accept: */*
>   Referer: http://localhost:8080/stockwatcher/hosted.html?stockwatcher
>   Accept-Language: en-gb
>   Accept-Encoding: gzip, deflate
>   User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
> Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
> 1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618;
> OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.1)
>   Host: localhost:8080
>   Connection: Keep-Alive
>   Content-Type: text/x-gwt-rpc; charset=utf-8
>   Content-Length: 212
>   Cache-Control: no-cache
>
> Here are the parameters in my Eclipse -> Project -> Properties -> Java
> Build Path
>
> Under the "Source" Tab
> Source folders on build path:
> > StockWatcher/src
> > Included: (All)
> > Excluded: (None)
> > Native library location (None)
>
> Under the "Projects" Tab
> Required projects on the build path:
> There is nothing here. When I click on "Add" it only gives a starter
> project that I was playing around with and not the StockWatcher one.
>
> Under the "Libraries" Tab
> JARs and class folders on the build path:
> > GWT SDK [GWT - 1.6.4]
> > Access rules: No rules defined
> > Native library locations: (None)
> > gwt-user.jar -
> C:\Users\work\Desktop\eclipse\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4
> >Source attachment: (None)
> >Javadoc location:
> file:/C:/Users\work/Desktop/eclipse/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4/doc/javadoc/
> >Native library location: (None)
> >Access rules: (No restrictions)
> > gwt-dev-windows.jar -
> C:\Users\work\Desktop\eclipse\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4
> > JRE System Library [jre1.6.0]
> > Access rules: No rules defined > Native library locations:
> (None)
> > resources.jar - C:\Program Files\Java\jre1.6.0\lib
> > rt.jar - C:\Program Files\Java\jre1.6.0\lib
> > jsse.jar - C:\Program Files\Java\jre1.6.0\lib
> > jce.jar - C:\Program Files\Java\jre1.6.0\lib
> > charsets.jar - C:\Program Files\Java\jre1.6.0\lib
> > dnsns.jar  - C:\Program Files\Java\jre1.6.0\lib
> > localedata.jar - C:\Program Files\Java\jre1.6.0\lib
> > sunjce_provider.jar - C:\Program Files\Java\jre1.6.0\lib
> > sunmscapi.jar - C:\Program Files\Java\jre1.6.0\lib
> > sunpkcs11.jar - C:\Program Files\Java\jre1.6.0\lib
>
> Under the "Order and Export" Tab
> Build class path order and exported entries:
> [] StockWatcher/src
> [] GWT SDK [GWT - 1.6.4]
> [] JRE System Library [jre1.6.0]
> (The first option above is checked and the second two are unchecked)
>
> That is about it
>
> Thanks
> Paul
>
>
>
>
>
>
>
>  --
> *From:* Rajeev Dayal 
> *To:* Google-Web-Toolkit@googlegroups.com
> *Sent:* Monday, 8 June, 2009 0:35:05
>
> *Subject:* Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC
> tutorial
>
> Hi Paul,
> Sorry that responses have been slow for you on this forum. They are
> definitely monitored, but I think that we're playing catchup on this end due
> to the Google I/O conference.
>
> First of all, are you using Eclipse, or are you trying to run this from the
> command line? If you're trying to do this in Eclipse, can you me what you
> have on your Java build path? If you're running from the command line, can
> you paste the command line that is being executed?
>
> It sounds like the StockPrice class (or maybe one of the classes that it
> uses) is not available on your server, which is definitely odd. That's why I
> want to see what your command line/build path looks like when executing
> Hosted Mode. Also, you're not doing anything special like running with the
> -noserver option, are you?
>
>
> Rajee

Re: GWTetris - enjoy it :)

2009-06-08 Thread Sumit Chandel
Hi Janusz,
In the constant battle against spam, there is a moderation step in the GWT
App Gallery just as there is moderation for the GWT developer forum.
Surprisingly enough, we even get spam attacks on the App Gallery that have
to be manually identified and dropped into oblivion for new application
entries.

Sorry for the delay to get GWTetris moderated and published on the GWT App
Gallery. You should be able to find your entry listed now.

Cheers,
-Sumit Chandel

On Mon, Jun 8, 2009 at 4:18 AM, Janusz Prokulewicz
wrote:

>
> Thanks for invitation. I've been trying to add an entry to GWT App
> Gallery, even two times, but I don't know why it stiil doesn't appear
> in list.
>
> On 5 Cze, 18:20, Sumit Chandel  wrote:
> > Hi Janusz,
> >
> > This is a very cool GWT game indeed. I invite you to add an entry to
> > the GWT App Gallery so others may discover it there.
> >
> > GWT App Gallery:http://gwtgallery.appspot.com
> >
> > Cheers,
> > -Sumit Chandel
> >
> > On Jun 5, 8:57 am, Rakesh  wrote:
> >
> > > good work, keep it up!
> >
> > > On Jun 2, 10:41 pm, Janusz Prokulewicz  wrote:
> >
> > > > Hi everyone!
> >
> > > > I'd like to invite all of you to play my own Tetris which I
> > > > implemented with GWT. It's called GWTetris :p and I hope you'll enjoy
> > > > it :) I added high scores feature so I think it'll be fun.
> >
> > > > You can find it here:
> http://mars.iti.pk.edu.pl/~swoosh/GWTTetris.html
> >
> > > > Greetings,
> >
> > > > Janusz Prokulewicz
> >
> > > > BTW I'm looking for a job in Poland as a GWT developer (more or
> > > > less)...
> >
>

--~--~-~--~~~---~--~~
You received 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: Collator support

2009-06-08 Thread Akiim

I hope anyone will find a solution !
Collator equivalent in GWT is missing !

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



Re: How to specify number of rows of PagingScrollTable?

2009-06-08 Thread hezjing
Hi
The problem is resovled :-)

Instead reset the number of rows in TableModel, I should really do it in
PageChangeHandler like the following:

public class MyPage implements PageChangeHandler {

private PagingScrollTable table;
...
public void onPageChange(PageChangeEvent event) {
final TableModel model = table.getTableModel();
// RPC call to return total of users
userService.getUserCount(new AsyncCallback() {
...
public void onSuccess(Integer total) {
model.setRowCount(total);
}
});
}
}


Thank you!


On Sun, Jun 7, 2009 at 10:49 PM, hezjing  wrote:

> Hi,
>
> I'm creating a PagingScrollTable, and want to set the total of rows after
> RPC call.
> Here is my client code snippet to create the table model:
>
> CachedTableModel cachedTableModel = new CachedTableModel(new
> UserTableModel());
>  cachedTableModel.setPreCachedRowCount(10);
> cachedTableModel.setPostCachedRowCount(10);
>
>
> Then, I'm trying to calculate the number of rows while creating the table
> model and every requestRows() is called:
>
> class UserTableModel extends MutableTableModel {
>
> UserTableModel() {
>  // RPC call to return total of users
>   userService.getUserCount(new AsyncCallback() {
>   ...
>   public void onSuccess(Integer total) {
>   setRowCount(total);
>   }
>   });
>  }
>
> public void requestRows(final Request request, final
> TableModel.Callback callback) {
>  ...
>   // RPC call to return total of users
>   userService.getUserCount(new AsyncCallback() {
>   ...
>   public void onSuccess(Integer total) {
>   setRowCount(total);
>   }
>   });
>  }
> }
>
>
> The problem is the PagingScrollTable does not showing the total of rows,
> the last button is not display too!
>
> May I know where is the appropriate place to reset the number of rows?
>
>
> Please help, thank you!
>
>
> --
>
> Hez
>



-- 

Hez

--~--~-~--~~~---~--~~
You received 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: war file for GWT 1.5

2009-06-08 Thread Rajeev Dayal
Hi,

Responses inline:

On Sun, Jun 7, 2009 at 5:49 PM, bhomass  wrote:

>
> thanks. that clarifies quite a lot, but not everything.
>
> first I assume it would be ok for me to add any servlet context to the
> path and create the WEB-INF directory accordingly.
>
> for the static files, in hosted mode the url is
> http://localhost:/com.jcalc.webclient.Explorer/index.html
>
> do I keep the com.jcalc.webclient.Explorer directory for deployment?


Yes, you would. However, if you're using GWT 1.6, you can configure GWT to
dump the module into a different directory by using the "rename-to"
attribute on the module element. See the "Defining a Module" section of the
following article:

http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModuleXml

Actually, since you're deploying to Tomcat, and using GWT 1.5, take a look
at this article and the links within it - I think it would be helpful to
you:

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_PackageAppInWARFile


>
> also, port 8080 is the default port in my development machine, I just
> thought I keep it as is while I am testing out the deployment code. is
> that ok?


Yes, that's fine. You can use whatever port you'd like - it does not matter
to 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-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: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC tutorial

2009-06-08 Thread Paul Hargreaves
Hi Rajeev,

I am using both, although I will probably drop the GWT Designer Plugin after 
the trial period. However I had this problem even before I installed the GWT 
Designer plugin.

The applications is launched as a web application. The console states 
StockWatcher.html [Web Application] C:\Program 
Files\Java\jre1.6.0\bin\javaw.exe (8 Jun 2009 15:57:22).

In the run configuration, under Web Application, for my project, I have tried 
running it with and without the "Automatically select and unused port". 

I am running Apache on the same machine and skype. I mention skype as this 
conflicted with Apache when I first set it up as they share the same port. 
However I have stopped the Apache service and stopped skype and still the 
stockwatcher application does not work.

Thanks
Paul




 




From: Rajeev Dayal 
To: Google-Web-Toolkit@googlegroups.com
Sent: Monday, 8 June, 2009 15:45:59
Subject: Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC tutorial

Hey Paul,

Are you using the Google Plugin for Eclipse, or the GWT Designer Plugin, or 
both?

How are you launching the application? What type of launch configuration are 
you using? Is it a "Java" Launch Configuration, a "Web Application" launch 
configuration, or some other type of launch configuration?


Rajeev


On Mon, Jun 8, 2009 at 8:12 AM, Paul Hargreaves  
wrote:

Hi Rajeev,

Thanks for your reply.

I am running under Vista. I have done nothing special configuration wise 
with Eclipse and it is out of the box so to speak. I downloaded and imported 
into Eclipse the "all client side" version of the StockWatch project. In GWT 
designer I right click on the StockWatcher project -> Google Web Toolkit 
-> Convert project into GWT project. I then implemented the code in the RPC 
tutorial and upon completion, when I run in hosted mode the, Price and the 
Change, values are not being pulled through from the server side code. I just 
get the following on the hosted mode console: 404 - POST 
/stockwatcher/StockPriceService (127.0.0.1) 1416 bytes.

   Request headers
  Accept: */*
  Referer: http://localhost:8080/stockwatcher/hosted.html?stockwatcher
  Accept-Language: en-gb
  Accept-Encoding: gzip, deflate
  User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; 
Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 
1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; 
OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.1)
  Host: localhost:8080
  Connection: Keep-Alive
  Content-Type: text/x-gwt-rpc; charset=utf-8
  Content-Length: 212
  Cache-Control: no-cache


Here are the parameters in my Eclipse -> Project -> Properties -> Java Build 
Path

Under the "Source" Tab
Source folders on build path:
> StockWatcher/src
    > Included: (All)
    > Excluded: (None)
    > Native library location (None)

Under the "Projects" Tab
Required projects on the build path:
There is nothing here. When I click on "Add" it only gives a starter project 
that I was playing around with and not the StockWatcher one.

Under the "Libraries" Tab
JARs and class folders on the build path:
> GWT SDK [GWT - 1.6.4]
    > Access rules: No rules defined
    > Native library locations: (None)
    > gwt-user.jar - 
C:\Users\work\Desktop\eclipse\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4
        >Source attachment: (None)
        >Javadoc location: 
file:/C:/Users\work/Desktop/eclipse/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4/doc/javadoc/
    >Native library location: (None)
    >Access rules: (No restrictions)
    > gwt-dev-windows.jar - 
C:\Users\work\Desktop\eclipse\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4
> JRE System Library [jre1.6.0]
> Access rules: No rules defined 
    > Native library locations: (None)
    > resources.jar - C:\Program Files\Java\jre1.6.0\lib
    > rt.jar - C:\Program Files\Java\jre1.6.0\lib
    > jsse.jar - C:\Program Files\Java\jre1.6.0\lib
    > jce.jar - C:\Program Files\Java\jre1.6.0\lib
    > charsets.jar - C:\Program Files\Java\jre1.6.0\lib
    > dnsns.jar  - C:\Program Files\Java\jre1.6.0\lib
    > localedata.jar - C:\Program Files\Java\jre1.6.0\lib
    > sunjce_provider.jar - C:\Program Files\Java\jre1.6.0\lib
    > sunmscapi.jar - C:\Program Files\Java\jre1.6.0\lib
    > sunpkcs11.jar - C:\Program Files\Java\jre1.6.0\lib

Under the "Order and Export" Tab
Build class path order and exported entries:
[] StockWatcher/src
[] GWT SDK [GWT - 1.6.4]
[] JRE System Library [jre1.6.0]
(The first option above is checked and the second two are unchecked)

That is about it

Thanks
Paul





 




From: Rajeev Dayal 
To: Google-Web-Toolkit@googlegroups.com
Sent: Monday, 8 June, 2009 0:35:05 

Subject: Re: Eclipse - GWT - ClassNotFoundExcep

Re: Problem with CSS inheritance

2009-06-08 Thread D L H

CSS inheritance outside of GWT doesn't quite work that way. You can
find a good explanation of CSS inheritance at 
http://dorward.me.uk/www/css/inheritance/

On Jun 8, 5:52 am, Joakim Sjöberg  wrote:
> Hello!
>
> I have created a small template page that I will use to put different widgets 
> in. It looks like follows:
>
> 
>
>                  class="ic-welcomePagePanel-info">
>
>                  class="ic-vdaPanelWelcomePage">
>
>                      class="ic-vdaPanelWelcomePage-image">
>
>                      class="ic-vdaPanelWelcomePage-answerArea">
>
>                      class="ic-vdaPanelWelcomePage-input">
>
>                      class="ic-vdaPanelWelcomePage-inputArea">
>
>                 
>
>                  class="ic-headerPanel-welcomePage">
>
>                  class="ic-logoPanel-welcomePage">
>
>                  class="ic-languagePanel-welcomePage">
>
>                  class="ic-ntrChatPanel-welcomePage">
>
> 
>
> And I have a CSS that looks like follows:
>
> .ic-vdaPanelWelcomePage{
>
>     top:5%;
>
>     margin-left: 50%;
>
>     width: 8%;
>
>     border-style:solid;
>
>     border-width:thin;
>
>     border-color:#006634;
>
>     position:absolute;
>
> }
>
> ic-vdaPanelWelcomePage-image{
>
> }
>
> .ic-vdaPanelWelcomePage-answerArea{
>
> }
>
> .ic-vdaPanelWelcomePage-inputArea{
>
> }
>
> .ic-vdaPanelWelcomePage-input{
>
> }
>
> But it does not seem like the vdaPanelWelcomePage-image,answerArea,inputArea 
> and input is inheriting the CSS from the vdaPanelWelcomePage, can anyone 
> explain to why?  
>
> Joakim Sjöberg
> Developer
--~--~-~--~~~---~--~~
You received 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: Eclipse project files are missing from the GWT samples

2009-06-08 Thread Jason Parekh
Hi Jim, thanks for pointing this out.
I've opened a bug at
http://code.google.com/p/google-web-toolkit/issues/detail?id=3732 .

A workaround (as mentioned in the bug) is:

Create samples/Showcase/war/WEB-INF/web.xml containing:

--

http://java.sun.com/dtd/web-app_2_3.dtd";>


--

and then follow the instructions at
http://code.google.com/eclipse/docs/existingprojects.html


jason


On Sun, Jun 7, 2009 at 7:39 AM, JimAmsden  wrote:

>
> I'm just getting started with GWT and wanted to explore the samples.
> I'm using gwt-mac-1.6.4 with eclipse 3.4.2. I have installed the
> google plugin for eclipse, but it doesn't appear to include the
> examples. So I also unzipped gwt-mac-1.6.4 which has the samples
> folder.
>
> However, the samples don't inlcude the eclipse .classpath, .project,
> or .launcher files, so they can't be imported as projects
> into eclipse.
>
> I tried:
>
> ./webAppCreator -ignore -out samples/Showcase
> com.google.gwt.sample.showcase.client.Showcase
>
> and it does add the necessary eclipse files. But webAppCreator seems
> to be creating a different module structure than what was used to
> create the samples. For example, it places another Showcase.java class
> in package com.google.gwt.sample.showcase.client.client. I can import
> this project into eclipse, but it won't compile or run.
>
> google search found some postings on this, but I couldn't find
> anything that sufficiently addressed the problem.
>
> Is there some other way to add the eclipse project files? Am I using
> the wrong moduleName in webAppCreator? Why aren't the eclipse project
> files included in the samples? The README.txt files in the sample
> projects seems to imply the projects were created for import into
> eclipse.
>
> Thanks for the help. I'm looking forward to getting to know 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-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: maven tomcat for gwt: may i know what should be the correct path?

2009-06-08 Thread D L H

Well I've never used maven, but I don't think you need the
"com.visual.Application". The part after the localhost:8080 should be
the path to your html file from the webapps directory of your tomcat
installation. Example: http://localhost:8080/Directory/Page.html

On Jun 8, 4:48 am, twittwit  wrote:
> this is my WEB-INF/web.xml
>
>   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>  "http://java.sun.com/dtd/web-app_2_3.dtd"; >
>
> 
>         GWT-Maven-Archetype
>
>         
>                 index.html
>         
> 
>
> On Jun 8, 9:50 am, imgnik  wrote:
>
> > Hello all,
>
> > I hope someone can answer my question here because i can't find a
> > maven tomcat group.
>
> > basically, i want to deploy my app on tomcat and i did mvn
> > tomcat:deploy
>
> > while the app is deployed successfully, the page appear to be pointing
> > to the wrong html. it 
> > reflectshttp://localhost:8080/Visualise/com.visual.Application/Application.html
>
> > with a 404 error.
>
> > may i know what should be the correct path?
>
> > i guess i got to change the  src/main/webapp/index.html which is
> > currently something like below:
>
> > 
> > 
> > 
> > 
> >  >         content="0;url=com.visual.Application/Application.html">
> > 
> > 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: Data base exception in GWT

2009-06-08 Thread Jason Parekh
Hi Subbu,
Google App Engine has a whitelist of classes that are allowed for use, and
unfortunately ut seems like InitialContext didn't make the cut.  Please see
http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox and the
section after it.

Also, Google App Engine questions are better answered in its Google Group
at http://groups.google.com/group/google-appengine-java

jason


On Mon, Jun 8, 2009 at 9:10 AM, subbu  wrote:

>
> Hi all,.
>
> I am getting the Following exception in my eclipse IDE
>
> javax.naming.InitialContext is not supported by Google App Engine's
> Java runtime environment
>
> while using the Following code.
>
> public static Connection openConnection(String jndi) throws
> NamingException, SQLException {
>Context ct = new InitialContext();
>Context env = (Context)ct.lookup("java:comp/env");
>DataSource ds = (DataSource)env.lookup(jndi);
>Connection con = ds.getConnection();
>
>return con;
>}
>
>
> >
>

--~--~-~--~~~---~--~~
You received 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: com/google/gwt/gen2/Gen2.gwt.xml jar

2009-06-08 Thread Jason Parekh
Could you give more context into what you're trying to do and how your
project is set up?
Thanks,
jason


On Mon, Jun 8, 2009 at 9:12 AM, Kinjal Khandhar
wrote:

> Hello All,
> Can anyone tell me where will I get this jar file from?
>
> I am getting the following error:
>
> [ERROR] Unable to find 'com/google/gwt/gen2/Gen2.gwt.xml' on your
> classpath; could be a typo, or
> maybe you forgot to include a classpath entry for source?
>
> 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-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: Alternate URL paths (for targeting logical UI locations)

2009-06-08 Thread Mickey

Thanks. Understood. I realize that GWT apps are "single page" and
logical pages are created/torn down dynamically. My question was
concerning the application URL string and what sorts of tricks mights
be possible in order to support multiple URL paths/parameters strictly
as a means of directing the application to a logical target location
in the UI. So, for example, a 3rd party app might launch the app in
context, selecting a specific element in a tree view, seleting a tab,
etc (all by way of the URL string), so that the UI is opened to the
target location without the user having to perform the navigation
himself.

I suppose the simple solution is to limit this to the query string
parameters of the URL. I just thought the path portion of the string
would be a more concise way of expressing a logical target location
rather than parameter keywords/values.

On Jun 6, 12:59 am, "Dean S. Jones"  wrote:
> most ( well, all ) of my GWT apps are "single page apps", I include
> the GWT generated js in index.jsp at the web root, and drive all
> screen display
> through history tokens. The administration configuration tab is just a
> Widget that is ( built/triggered/shown) when say I get a history
> change with
> #administration as the token. The user never sees any other URL's... I
> understand that this may not be possible if you are "migrating" an
> older application,
> but there is a sly trick to that too... in the case of needing to
> display a "legacy jsp/html page", I just create an IFrame and load the
> page into it, then
> display that in my apps main area...
>
> On Jun 5, 12:20 pm, Mickey  wrote:
>
>
>
> > I know that arguments can be easily passed into the application using
> > URL query string parameters. But I was wondering whether it would be
> > possible to define mutliple (or alias) URL paths into the same GWT
> > application to produce a more natural/cleaner looking URL for
> > targeting logical locations in the application (e.g. administration
> > configuration tab in the app 
> > =http://localhost/myapp/administration/configuration/...).
>
> > Is this possible (e.g. url-pattern, redirection filter, multiple
> > module entry points, etc), or is it more trouble than it is worth?- Hide 
> > quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Data base exception in GWT

2009-06-08 Thread Jason Essington
regular JDBC access isn't allowed in App engine either.

If you weren't intending on creating an App Engine project, deselect  
the "Use Google App Engine" checkbox in the project properties dialog,  
Then you'll be able to use both JNDI and JDBC.

-jason

On Jun 8, 2009, at 9:20 AM, Jason Parekh wrote:

> Hi Subbu,
>
> Google App Engine has a whitelist of classes that are allowed for  
> use, and unfortunately ut seems like InitialContext didn't make the  
> cut.  Please see 
> http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox 
>  and the section after it.
>
> Also, Google App Engine questions are better answered in its Google  
> Group at http://groups.google.com/group/google-appengine-java
>
> jason
>
>
> On Mon, Jun 8, 2009 at 9:10 AM, subbu   
> wrote:
>
> Hi all,.
>
> I am getting the Following exception in my eclipse IDE
>
> javax.naming.InitialContext is not supported by Google App Engine's
> Java runtime environment
>
> while using the Following code.
>
> public static Connection openConnection(String jndi) throws
> NamingException, SQLException {
>Context ct = new InitialContext();
>Context env = (Context)ct.lookup("java:comp/env");
>DataSource ds = (DataSource)env.lookup(jndi);
>Connection con = ds.getConnection();
>
>return con;
>}
>
>
>
>
>
> >


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



What is FixedWidthGridBulkRenderer?

2009-06-08 Thread hezjing
Hi
I don't understand FixedWidthGridBulkRenderer class while working with
PagingScrollTable,see also
http://collectionofdemos.appspot.com/javadoc/com/google/gwt/gen2/table/client/FixedWidthGridBulkRenderer.html
.

What does a helper class to bulk load FixedWidthGrid tables really mean?
Can someone elaborate on this?


Thank you!

-- 

Hez

--~--~-~--~~~---~--~~
You received 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: wrapping a widget with a tag?

2009-06-08 Thread Axel Schlueter

On Jun 8, 4:44 pm, Shawn Pearce  wrote:
> For a span tag, subclass SimplePane and use the SimplePanel(Element)
> constructor:
>   SpanSimplePanel() { super(DOM.createSpan()); }
> but either way is rather heavyweight just to get a span tag around an
> anchor.

Thanks, that approach works fine for me. I was using
a subclass for anchor anyway, so instead of extending
anchor I'm now extending SimplePanel.

Regards,
Axel


--~--~-~--~~~---~--~~
You received 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: SuggestBox with Facebook-style Autocomplete?

2009-06-08 Thread Matt Raible

I ended up writing this widget on my own. Here's a detailed blog entry
on how I did it:

http://raibledesigns.com/rd/entry/creating_a_facebook_style_autocomplete

At the bottom of the post, you can see I still have one issue
remaining. I'm unable to give focus to an  and delete it with the
backspace key. If someone knows how to solve this, please let me know.

Thanks,

Matt

On May 29, 2:03 am, Joe Cole  wrote:
> Hi Matt,
>
> We have one a similar thing for one of our applications, so it's
> definitely possible. The left hand section of the suggest box provides
> your highlighted search terms, and the right hand side provides
> detailed preview information about the selected item, and is heavily
> customised through css.
>
> The general approach is to *unfortunately* copy and paste SuggestBox
> and all it's related classes into your own package in the
> com.google.gwt.user.client package, due to the package protected
> nature of the existing api and final classes. You can then add all
> your functionality desired into your custom version. We found that we
> have to extend it in quite a few places to make it usable enough for
> clients.
> I know of one public enhanced suggestbox which is code.google.com/p/
> kiyaa and you can look at the related commercial project
> clarityaccounting which is quite impressive for a demo of how they
> work.
>
> I am not sure if the same information applies to 1.6 as we haven't
> upgraded yet.
>
> Joe
> On May 29, 10:45 am, Matt Raible  wrote:> I'm looking for 
> a GWT-based autocompleter that allows for aFacebook-
> > style presentation of the chosen item. I was able to get SuggestBox to
> > select multiple (comma-delimited) values using the following tutorial:
>
> >http://ljvjonok.blogspot.com/2008/10/gwt-suggestbox-how-to-make-multi...
>
> r> However, to do formatting of the selected items, it seems like a
> 
>
> > structure needs to be used so the items can be formatted with CSS.
> > Since SelectBox only accepts a TextBoxBase in its constructor, I'm
> > guessing this is not possible out-of-the-box.
>
> > For a specific example of what I'm looking for, see the following
> > jQuery Plugin.
>
> >http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-tex...
>
> > Has anyone created such a widget for GWT?
>
> > Thanks,
>
> > Matt
--~--~-~--~~~---~--~~
You received 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: Import Module from another GWT project in Eclipse workspace

2009-06-08 Thread Jason Parekh
Hey Sam,
The Google Plugin for Eclipse doesn't properly support project dependencies
yet.  Check out
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/951499c5773693c9/6906075b8da782c6for
a couple workarounds.

Hope that helps,
jason

On Sun, Jun 7, 2009 at 8:58 PM, Sam  wrote:

>
> Hi all,
>
> I feel like I'm going insane here!
>
> I have a GWT project with a module named "UploadWidget". I'd like to
> use it from another project in the same workspace for fast and easy
> testing purposes. I have added the widget project as a dependency, and
> have played around with the run configuration classpath, with no luck.
>
> No matter what I do I get the error:
> Line 11: No source code is available for type
> com.sambro.uploadwidget.client.UploadWidget; did you forget to inherit
> a required module?
>
> According to the run configuration the source code for UploadWidget is
> on the classpath of the other project, but I still receive this error.
>
> I am working on a medium sized project and I will be writing a number
> of reusable components during development. What I envisaged was
> developing these components in separate projects and referencing them
> from the main project.
>
> Are there simple steps I can take to achieve this???
>
> Cheers,
> Sam
>
> >
>

--~--~-~--~~~---~--~~
You received 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 JUnit testing problem - "Unable to find 'js.gwt.xml' on your classpath"

2009-06-08 Thread Jason Parekh
Hi Marko,
Are you using the Google Plugin for Eclipse?  How are your tests structured
with relation to the GWT application (for example, what are the paths to
each of these, are they in separate projects, etc.)?

Thanks,
jason

On Mon, Jun 8, 2009 at 6:40 AM, Marko Vuksanovic
wrote:

>
> I am trying to test my gwt application )version 1.6.4) but have run
> into a problem. I have created a simple test and when I run it i get
> lots of errors - Unable to find 'js.gwt.xml' on your classpath - but
> the test seems to be executed successfuly. Any ideas what could be the
> problem and how to solve that?
>
> I have also noticed that this test creates a "tomcat" folder in my
> project directory structure. Could somebody explain why this is
> happening...
>
> 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-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: What is FixedWidthGridBulkRenderer?

2009-06-08 Thread jay

Bulk loading is the process of creating a string to represent the
HTML, and then inserting the entire string into the DOM, allowing the
browser to do the "heavy lifting" of creating all the DOM elements.

My understanding (and experience) is that this technique is incredibly
fast compared to creating and inserting individual DOM elements.

(I hope I'm answering the question you were trying to ask...if you're
interested in the internals of the bulk loader, then I guess my answer
doesn't help you...)

jay

On Jun 8, 8:51 am, hezjing  wrote:
> Hi
> I don't understand FixedWidthGridBulkRenderer class while working with
> PagingScrollTable,see 
> alsohttp://collectionofdemos.appspot.com/javadoc/com/google/gwt/gen2/tabl...
> .
>
> What does a helper class to bulk load FixedWidthGrid tables really mean?
> Can someone elaborate on this?
>
> Thank you!
>
> --
>
> Hez
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



GLayer() equivalent on GWT Google Maps 1.0 Library

2009-06-08 Thread Pion

http://code.google.com/apis/maps/documentation/overlays.html#Layers
shows the following sample javascript code;

function initialize() {
  if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(40.730885,-73.997383), 15);
var myLayer = new GLayer("org.wikipedia.en");
map.addOverlay(myLayer);
  }
}

I can not find the equivalent of GLayer() class on gwt-maps-1.0.4/gwt-
maps-1.0.4/doc/javadoc/index-all.html.

Please advise how to convert the above javascript code to the
equivalent GWT Java code.

Thanks in advance for your help.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: Testing gadgets during development

2009-06-08 Thread Andre Leger
Thanks for the reply.  However, I found what I was looking for with the
Eclipse plugin OpenSocial Development Environment (OSDE).
http://code.google.com/p/opensocial-development-environment/

Andre


On Fri, Jun 5, 2009 at 10:39 PM, Eric Ayers  wrote:

> The gwt-gadgets library (http://code.google.com/p/gwt-google-apis will
> allow debugging in hosted mode, but unfortunately does not support the open
> social spec for gadgets yet.
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USA
> http://code.google.com/webtoolkit/
>
> >
>

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



Automated UI issues with Selenium - Any other good test frameworks?

2009-06-08 Thread mikelove...@gmail.com

Hi all,

I have been using Selenium to do lots of testing which was great
before.  Recently my group has changed to gwt-ext and now all the ids
that selenium references are never the same.  Each time you load a
page gwt-ext generates a new id (that is almost always different).  Is
there a way to have them be static - or start off the same seed.  If
not, does anyone know of a good test framework to go off of?  I have
considered hooking up some mock objects but that may be more effort
than needed.  Any ideas?

-Mike

PS- if at all possible we are trying not to have to parse through all
the code to manually set ids for the widgets.

--~--~-~--~~~---~--~~
You received 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: Client side vs Server side models

2009-06-08 Thread Eduardo Nunes

How do you organize your gwt mvc application?
- gwt on the view
- some java pojos (or ejb3) on the model
- ?? on the controller

Considering that you have to show the first name, last name and e-mail
address and your User entity has many other fields, do you have a
service method "getUserInfo" that return the current user User entity.
What do you do? Transfer the entire entity to gwt and format/show just
the parts that you need, or you create a DTO to hold just the
information that must be shown "first name, last name and e-mail
address" ?


On Mon, Jun 8, 2009 at 7:03 AM,
nellyville wrote:
>
> Think about performance too.  If you have a bunch of unecessary data
> being transferred across the wire your app will be slower.
>
> On Jun 8, 1:25 am, Keith Whittingham  wrote:
>>  From an architectural point of view I don't think it's very clean to
>> have classes that belong to the server side on the client side. Sooner
>> or later I'd regret it I'm sure. No, the more I play around, the more
>> I like the model I proposed. The OO model on the client side is likely
>> to be different in subtle ways being forced to think about the service
>> interface is a good thing on balance.
>>
>> It would be nice if the *Asych.java file were automatically generated
>> though.
>>
>> On Jun 8, 2009, at 10:03 AM, mnenchev wrote:
>>
>>
>>
>>
>>
>> > What if the persistence layer is ejb for example?
>>
>> > Miroslav Genov wrote:
>> >> You don't have any problems to access client classes from server side
>> >> code. Just put all your model classes into client package
>> >> and use them in the persistence layer.
>>
>> >> Kwhit wrote:
>>
>> >>> I'm building my first serious GWT app and am looking for a
>> >>> 'template'
>> >>> model to structure things. On the client side I need much the same
>> >>> objects to populate the UI as on the server side to handle
>> >>> persistence. Let's say I need Employee on the client side to edit
>> >>> employee details and then I need Employee on the server side to
>> >>> persist it.
>>
>> >>> As I understand it client side objects must be located in the
>> >>> package client.* and persistent objects in ...server.*.
>> >>> Therefore
>> >>> I need two Employee.java files - with slightly different contents -
>> >>> the one on the client side acting more or less only as a value
>> >>> object.
>>
>> >>> Have I got things right?
>
> >
>



-- 
Eduardo S. Nunes
http://e-nunes.com.br

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



Webcam layer

2009-06-08 Thread Pion


I enter “San Francisco, CA” on http://maps.google.com/ . The “More”
option/menu has the capability to show the WebCams on the map.

Is it possible/available to do this using GWT Google Maps 1.0 Library?

Thanks in advance for your help.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: GLayer() equivalent on GWT Google Maps 1.0 Library

2009-06-08 Thread Eric Ayers

It is not implemented at the moment.  Would you mind filing an issue
on the gwt-google-apis issue tracker?

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

--

A workaround is to create the GLayer instance in JSNI and use
ConcreteOverlay to wrap it.

private static native JavaScriptOjbect createLayer(String name) /*-{
  return new GLayer(name);
}-*/;

Overlay layer = new ConcreteOverlay(createLayer("org.wikipedia.en"));
map.addOverlay(layer);

Regards,
-Eric.

On Mon, Jun 8, 2009 at 1:46 PM, Pion wrote:
>
> http://code.google.com/apis/maps/documentation/overlays.html#Layers
> shows the following sample javascript code;
>
> function initialize() {
>  if (GBrowserIsCompatible()) {
>    var map = new GMap2(document.getElementById("map_canvas"));
>    map.setCenter(new GLatLng(40.730885,-73.997383), 15);
>    var myLayer = new GLayer("org.wikipedia.en");
>    map.addOverlay(myLayer);
>  }
> }
>
> I can not find the equivalent of GLayer() class on gwt-maps-1.0.4/gwt-
> maps-1.0.4/doc/javadoc/index-all.html.
>
> Please advise how to convert the above javascript code to the
> equivalent GWT Java code.
>
> Thanks in advance for your help.
>
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received 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: Webcam layer

2009-06-08 Thread Eric Ayers

To be honest with you, I'm not sure how that is done.  You might go
poke around on the Google Maps API group.

-Eric.

On Mon, Jun 8, 2009 at 1:56 PM, Pion wrote:
>
>
> I enter “San Francisco, CA” on http://maps.google.com/ . The “More”
> option/menu has the capability to show the WebCams on the map.
>
> Is it possible/available to do this using GWT Google Maps 1.0 Library?
>
> Thanks in advance for your help.
>
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
You received 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: Menu becomes slow after loading

2009-06-08 Thread Sumit Chandel
Hi Abhiram,
The usage of the MenuBar widget should be as easy as described in the API
javadoc (link below). Though I can't really be sure without seeing your code
for the MenuBar you're using in your application, you should be using it
correctly if you based it from the javadoc example.

MenuBar API doc:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/MenuBar.html

How
many menu items are you adding to the MenuBar, and how many become directly
visible at a time? If you have a large number of menu items to browse
through (it would have to be somewhat of an exaggeratedly big number), that
could be responsible for the slowdown in the sheer number of DOM elements to
render as the user navigates through your application.

Hope that helps,
-Sumit Chandel

On Fri, Jun 5, 2009 at 10:54 AM, abhiram  wrote:

>
> Hi all,
>
>   I am facing a strange problem. After i load my menu items (its a
> combination of horizontal and vertical menu bars), i see that the menu
> becomes pretty slow. I tried a sample project where it was pretty
> responsive. But in the actual project its very slow.
>
>   Does the menu concept itself work this way or is there something
> that can be done for this?
>
> Regards,
> Abhiram
>
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Extending Composite/Widget - circular reference issue

2009-06-08 Thread romant

Thanks for reassuring, let's wait until someone else undercuts our
agreement ;)




On 8 čvn, 14:22, gscholt  wrote:
> On Jun 8, 8:44 am, romant  wrote:
>
> > Is in this case necessary to register/unregister any of the event
> > handlers in onLoad/onUnload
> > methods to avoid circular references/memory leaks? I checked the
> > source code of Widget component and
> > there is something what looks like it takes care about registering/
> > unregistering the handlers.
>
> > My current opinion is that only when I register an event listener by
> > calling DOM.setEventListener(element, listener)
> > instead of addDOMHandler() method then I should take care of
> > registering/unregistering of the listener in onLoad/onUnload methods.
> > And I also think that the same would be valid if extended Widget
> > instead of Composite.
>
> > Is that right?
>
> I believe so.
> If you use the new handler system (from any class extending Widget)
> registering an unregistering the handlers is done by HandlerManager
> via in the Widget class.
> Using the event listeners 'raw' would require you to unregister them
> before DOM detachment.
--~--~-~--~~~---~--~~
You received 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: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC tutorial

2009-06-08 Thread Daniel Jue

Not to sound harsh, but sometimes starting the tutorial over again
from scratch fixes the problem. :-)  When I did my first stock watcher
tutorial, it took me 2 tries.  The first try I was running into all
kinds of problems, because I wasn't reading the fine print on the
tutorial.  So that's my version of learning the hard way.

Could be the space in your url, i don't know if you can do that.
 POST /stock watcher/Stock Price Service(127.0.0.1)"

On Sun, Jun 7, 2009 at 3:24 PM, Paul Hargreaves wrote:
>
>
> Can anyone suggest a newbies forum for my queries? On this forum I get very 
> little feed back.  I also see lots of other requests for help getting very 
> little/no feed back. Maybe I am pitching below your standards hence the 
> request for a location of a newbies forum. Most other forums, for other 
> software packages I have studied, have been rather good at supporting both 
> new and experienced users, but does not seem to be the case here.
>
>
>
> - Original Message 
> From: cbassthefish 
> To: Google Web Toolkit 
> Sent: Sunday, 7 June, 2009 13:14:45
> Subject: Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC  
> tutorial
>
>
> Bump! :o) Any other ideas? Anyone?
>
> On Jun 6, 10:15 am, Paul Hargreaves  wrote:
>> Not really of use. I tried re-doing the RPC tutorial with other tutorials on 
>> the web - one was the GWT designer tutorial but still the same thing. It 
>> cannot find the source. The hosted mode browser gives "404 - POST /stock 
>> watcher/Stock Price Service(127.0.0.1)". I am sort of short of ideas now.
>>
>>
>>
>> - Original Message 
>> From: Jim 
>> To: Google Web Toolkit 
>> Sent: Friday, 5 June, 2009 18:23:46
>> Subject: Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC 
>> tutorial
>>
>> You can find the modified GWT mail example 
>> inhttp://www.gwtorm.com/gwtMail.jsp,
>> which is a database web application.
>> Just follow the instruction on that page and you can find source code
>> as well as database code there.
>>
>> Jimhttp://www.gwtorm.comhttp://code.google.com/p/dreamsource-orm/
>>
>> On Jun 5, 12:51 pm, cbassthefish  wrote:
>> > Hi,
>>
>> > I am just finishing up the RPC tutorial on the stockwatcher tutorial.
>> > I go to test it, add in my stock codes, it updates the list with my
>> > codes but no price or change values are coming through. I set a break
>> > point at StockWatcher.java in refreshWatchList(). When it calls the
>> > remote host with AsyncCallback>
>> >             AsyncCallback callback = new
>> > AsyncCallback() {
>> >               public void onFailure(Throwable caught) {
>> >                 // TODO: Do something with errors.
>> >               }
>>
>> >               public void onSuccess(StockPrice[] result) {
>> >                 updateTable(result);
>> >               }
>> >             };
>>
>> > I get an error:
>> > "source not found"
>> > this = ClassNotFoundException (id=66)
>> > arg0 = com/google/gwt/sample/stockwatcher/client/StockWatcher$5
>>
>> > Any ideas what this could be? How could I deductively touble shoot
>> > this situation? Failing that. Is there a copy of the completed source
>> > code for the RPC tutorial so I can do a difference between the source
>> > code to see where I am going wrong.
>>
>> > Many thanks
>> > Paul- Hide quoted text -
>>
>> - Show quoted text -
>
> >
>

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



Re: Does the JS code from GWT run fine on Explorer 8 ? Or stick with Explorer 7?

2009-06-08 Thread sssmack

Thomas, thank you for helping.  I added the stanza you suggested above
to my page:

 My page is as follows:


  


http://nmsapp01.wldblu.net/
favicon.ico" type="image/x-icon">

  




Yet I still get the same behaviour from the script where everything
seems to run okay except for links to local files or a httprequest
that results in a

"Content-type: application/x-csv\n"
"Content-Disposition: attachment;filename=data.csv\n\n"

going back to the browser.  in otherwords I am having the server send
back a csv file.

Those worked in IE7.

IE8 pops up a window with an error like the following in it:

Line: 1800
Error: Invalid argument.

I really think IE8 is complaining about the Same Origion Policy
exception.  I don't know if or how to configure things to relax the
check.
I got around this in Firefox by adding the NoScript addon and
configuring it.
IE7 did not seem to have the SOP check.

Our shop wants to move to IE8  so I am stuck with trying to resolve
this.

Any more ideas Thomas?  I hope.  I'll keep researching aswell.

Thanks

On Jun 5, 1:18 pm, Thomas Broyer  wrote:
> All released versions of GWT won't run in IE8 unless you put it in
> "compatibility mode", e.g. using
>
>     
>
> IE8 "super standards" mode will be supported starting with the next
> GWT 1.6.x release.
--~--~-~--~~~---~--~~
You received 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: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC tutorial

2009-06-08 Thread Paul Hargreaves


No that is not harsh at all and a very reasonable suggestion. Although I have 
tried doing the tutorials three times from scratch. Most of the time these 
thing are human error on the part of the person doing the tutorials, especially 
when there are no signs of the problem on the forums, which seems to be the 
case this time. 

I tried to be as exact as possible with the information I stated, however ... 
sorry the "Stock Price Service" is a typo on my part. It should have been 
"StockPriceService".

I will uninstall any Eclipse plugins I have installed, delete Eclipse, download 
it again and do the tutorials again completely from scratch to see if 
this helps. 



- Original Message 
From: Daniel Jue 
To: Google-Web-Toolkit@googlegroups.com
Sent: Monday, 8 June, 2009 19:22:58
Subject: Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC tutorial


Not to sound harsh, but sometimes starting the tutorial over again
from scratch fixes the problem. :-)  When I did my first stock watcher
tutorial, it took me 2 tries.  The first try I was running into all
kinds of problems, because I wasn't reading the fine print on the
tutorial.  So that's my version of learning the hard way.

Could be the space in your url, i don't know if you can do that.
POST /stock watcher/Stock Price Service(127.0.0.1)"

On Sun, Jun 7, 2009 at 3:24 PM, Paul Hargreaves wrote:
>
>
> Can anyone suggest a newbies forum for my queries? On this forum I get very 
> little feed back.  I also see lots of other requests for help getting very 
> little/no feed back. Maybe I am pitching below your standards hence the 
> request for a location of a newbies forum. Most other forums, for other 
> software packages I have studied, have been rather good at supporting both 
> new and experienced users, but does not seem to be the case here.
>
>
>
> - Original Message 
> From: cbassthefish 
> To: Google Web Toolkit 
> Sent: Sunday, 7 June, 2009 13:14:45
> Subject: Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC  
> tutorial
>
>
> Bump! :o) Any other ideas? Anyone?
>
> On Jun 6, 10:15 am, Paul Hargreaves  wrote:
>> Not really of use. I tried re-doing the RPC tutorial with other tutorials on 
>> the web - one was the GWT designer tutorial but still the same thing. It 
>> cannot find the source. The hosted mode browser gives "404 - POST /stock 
>> watcher/Stock Price Service(127.0.0.1)". I am sort of short of ideas now.
>>
>>
>>
>> - Original Message 
>> From: Jim 
>> To: Google Web Toolkit 
>> Sent: Friday, 5 June, 2009 18:23:46
>> Subject: Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC 
>> tutorial
>>
>> You can find the modified GWT mail example 
>> inhttp://www.gwtorm.com/gwtMail.jsp,
>> which is a database web application.
>> Just follow the instruction on that page and you can find source code
>> as well as database code there.
>>
>> Jimhttp://www.gwtorm.comhttp://code.google.com/p/dreamsource-orm/
>>
>> On Jun 5, 12:51 pm, cbassthefish  wrote:
>> > Hi,
>>
>> > I am just finishing up the RPC tutorial on the stockwatcher tutorial.
>> > I go to test it, add in my stock codes, it updates the list with my
>> > codes but no price or change values are coming through. I set a break
>> > point at StockWatcher.java in refreshWatchList(). When it calls the
>> > remote host with AsyncCallback>
>> >             AsyncCallback callback = new
>> > AsyncCallback() {
>> >               public void onFailure(Throwable caught) {
>> >                 // TODO: Do something with errors.
>> >               }
>>
>> >               public void onSuccess(StockPrice[] result) {
>> >                 updateTable(result);
>> >               }
>> >             };
>>
>> > I get an error:
>> > "source not found"
>> > this = ClassNotFoundException (id=66)
>> > arg0 = com/google/gwt/sample/stockwatcher/client/StockWatcher$5
>>
>> > Any ideas what this could be? How could I deductively touble shoot
>> > this situation? Failing that. Is there a copy of the completed source
>> > code for the RPC tutorial so I can do a difference between the source
>> > code to see where I am going wrong.
>>
>> > Many thanks
>> > Paul- Hide quoted text -
>>
>> - Show quoted text -
>
> >
>


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



can't run javax adn org/w3c library and bigDecimal in gwt - 1.6 project

2009-06-08 Thread Linda

I and using eclipse to compile my gwt - 1.6 project. From Eclipse I do
not get any compilation errors. When I run my web application, I get:

"The import javax.xml cannot be resolved"
"The import org.w3c cannot be resolved"

And Something about can't regonize "BigDecimal" as a type.

I downloaded gwt-math.jar (2.0), but it does not support any double
functions inside Bigdecimal. For example, I get: "The method
doubleValue() is undefined for the type BigDecimal".

Any idea I can solve these issues?

Thanks.

- Linda
--~--~-~--~~~---~--~~
You received 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: Simple Eclipse/Java/GWT question

2009-06-08 Thread Jamie

GWT comes with it's own JSON library.

See here:
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJSON
and
http://code.google.com/webtoolkit/tutorials/1.6/JSON.html

I am not saying that you can't use the org.json in your client code,
however it will end up being a lot of work, and the GWT team have
already done it for you!


Jamie.
---
Search for analog and digital television broadcast antennas in your
area:
http://www.antennamap.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
-~--~~~~--~~--~--~---



Key events for scrolltable

2009-06-08 Thread vduong

Hi all,

I'm trying to listen for keyboard events (specifically key down) from
a scrolltable to enable selection of a cell and/or row and moving that
selection around using the arrow keys. Currently, we have this working
just by putting the entire scrolltable in a focus panel and adding a
KeyDownHandler to that focus panel, but then we have to explicitly set
the focus back on to the focus panel anytime it loses focus (e.g. for
popups, cell editors), in order to begin handling the key events
again.

Is there any better way to listen for key events on the table? I tried
sinkEvents(Event.ONKEYDOWN) from our subclass of PagingScrollTable,
but my class doesn't seem to be getting the ONKEYDOWN events in
onBrowserEvent. Any suggestions?

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



Re: com/google/gwt/gen2/Gen2.gwt.xml jar

2009-06-08 Thread Kinjal Khandhar
Hi Jason,
I am trying to create a web application wherein I want to open multiple
windows when a tab is clicked in the tabpanel.It should be multiple windows
with minimize,maximize and close buttons which has embedded tabpanel.

I did try using

1.Mosaic
2.GWM

But I found multiple errors while loading jar files and so now I am trying
with GWT-ext.I was able to compile without errors,but found this exception:

[ERROR] Unable to load module entry point class
com.trygwttext.client.Trygwtext (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' is null or not an object
 number: -2146823281
 description: '$wnd.Ext.StatusBar' is null or not an object
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.(Component.java:108)
at com.trygwttext.client.Trygwtext.onModuleLoad(Trygwtext.java:22)

I think this exception comes when we dont have js files ie. ext-2.0.

As I am new to GWT dont know how to add the folder in my application.Please
help me if you can.I am attaching a snapshot of my folder structure.

Thanks in advance.

-Kinjal
On Mon, Jun 8, 2009 at 11:21 AM, Jason Parekh  wrote:

> Could you give more context into what you're trying to do and how your
> project is set up?
> Thanks,
> jason
>
>
> On Mon, Jun 8, 2009 at 9:12 AM, Kinjal Khandhar  > wrote:
>
>> Hello All,
>> Can anyone tell me where will I get this jar file from?
>>
>> I am getting the following error:
>>
>> [ERROR] Unable to find 'com/google/gwt/gen2/Gen2.gwt.xml' on your
>> classpath; could be a typo, or
>> maybe you forgot to include a classpath entry for source?
>>
>> 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-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: GLayer() equivalent on GWT Google Maps 1.0 Library

2009-06-08 Thread Pion


I file this issue on http://code.google.com/p/gwt-google-apis as issue
# 278.

I am new on this subject. I tried to follow your suggestion by doing
the following:

…
private static native JavaScriptObject createLayer(String name) /*-{
  return new GLayer(name);
}-*/;
…

…
Overlay wikipediaLayer = new ConcreteOverlay(createLayer
("org.wikipedia.en"));
map.addOverlay(wikipediaLayer);
…

Also, my *.gwt.xml has the following:

…
   

Re: GLayer() equivalent on GWT Google Maps 1.0 Library

2009-06-08 Thread Eric Ayers

Sorry, that should have been new $wnd.GLayer()

On Mon, Jun 8, 2009 at 4:29 PM, Pion  wrote:
>
>
> I file this issue on http://code.google.com/p/gwt-google-apis as issue
> # 278.
>
> I am new on this subject. I tried to follow your suggestion by doing
> the following:
>
>        …
>        private static native JavaScriptObject createLayer(String name) /*-{
>          return new GLayer(name);
>        }-*/;
>        …
>
>        …
>        Overlay wikipediaLayer = new ConcreteOverlay(createLayer
> ("org.wikipedia.en"));
>        map.addOverlay(wikipediaLayer);
>        …
>
> Also, my *.gwt.xml has the following:
>
>        …
>       

Re: GLayer() equivalent on GWT Google Maps 1.0 Library

2009-06-08 Thread Pion

Thanks for your help and quick reply. You are a genius :-)! It works
now!

Again, thanks.

On Jun 8, 1:39 pm, Eric Ayers  wrote:
> Sorry, that should have been new $wnd.GLayer()
>
>
>
> On Mon, Jun 8, 2009 at 4:29 PM, Pion  wrote:
>
> > I file this issue onhttp://code.google.com/p/gwt-google-apisas issue
> > # 278.
>
> > I am new on this subject. I tried to follow your suggestion by doing
> > the following:
>
> >        …
> >        private static native JavaScriptObject createLayer(String name) /*-{
> >          return new GLayer(name);
> >        }-*/;
> >        …
>
> >        …
> >        Overlay wikipediaLayer = new ConcreteOverlay(createLayer
> > ("org.wikipedia.en"));
> >        map.addOverlay(wikipediaLayer);
> >        …
>
> > Also, my *.gwt.xml has the following:
>
> >        …
> >       

Re: com/google/gwt/gen2/Gen2.gwt.xml jar

2009-06-08 Thread Dean S. Jones

GWT Incubator

http://code.google.com/p/google-web-toolkit-incubator/wiki/Downloads?tm=2
--~--~-~--~~~---~--~~
You received 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: GWTetris - enjoy it :)

2009-06-08 Thread Marty Fried

Works pretty well.  Sometimes, it's hard to see the white piece
against the white clouds and light background.  Also, it's too easy -
I played a while, but it never got any harder, and I fell asleep after
about 5000 points.  But it took me a few minutes to notice the
instructions, and the use of the space key to drop the piece.

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



Getting elements from a FormPanel by name

2009-06-08 Thread mxmtycoder

I have a composite where a dynamic formpanel is built (beside other
widgets I add several textbox elements,
and I set the name for each one)
Is there a way to get the elements by their name without using the
iterator ?

Thanks,
Pablo






--~--~-~--~~~---~--~~
You received 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: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC tutorial

2009-06-08 Thread Marty Fried

Hi,

I'm definitely not an expert, although I'm pretty good at fixing my
own problems.  I haven't found any in the tutorial except for the
jUnit testing part.  I hope this isn't too basic, but I don't really
know your skill level.  It could be higher than mine, in which case,
feel free to ignore me. :)

Do you have "Build Automatically" enabled in the project menu?  If
not, be sure you build everything.  I like to occasionally do a Clean
from the same project menu, to make sure everything gets built with
the latest code.  Sometimes it fixes problems.

Other than that, I usually look through the stack traces to find which
statement in my source code caused the exception.  This isn't
necessarily the error, but it does pinpoint where the error is
generated, and gives you something to look into further.

Another possibility is to download the entire project, import it into
Eclipse, and see if it runs.  If so, you can substitute in your files
one by one until it breaks, and there's the files with a problem.  If
it doesn't run, then you know there's something in your system
configuration.

Hope this helps.

Marty Fried
Leftcoast, USA


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



Too Dumb to Fix Logging on the Server

2009-06-08 Thread Scott

I am using GWT 1.6.4 in Eclipse 3.4.2 on Mac OS X with the
Instantiations GWT Designer 7.0.0.  For the life of me, I cannot get a
server log to be generated when an exception is thrown in my RPC
code.  The console in Eclipse tells me:

com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details

I've written a test harness for my RPC code, and it runs fine.
Something with the interaction with GWT is making it mad and without
the log, it's an uphill battle figuring it out.

Searching the web has suggested creating a "commons-
logging.properties" file in my classpath or adding the commons logging
JARs to my project.  Neither has helped.

I didn't have this issue in GWT 1.5.x and haven't been able to find
any information about what has changed.

Someone help!  Please?  :-)  Thanks!


Scott

--~--~-~--~~~---~--~~
You received 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 with jUnit setup for StockWatcher tutorial

2009-06-08 Thread Marty Fried

Well, I went through the tutorial with no problems, and I'm ready to
write that killer app the world's been waiting for.  But then, I
decided I needed to learn how to do jUnit testing, because who wants a
bugs with a killer app, right?

So, I followed the directions as best I knew how, and the results were
pretty close to what the tutorial showed, with the same directories
created; the only difference was that under the test folder, instead
of "com.google.gwt.sample.stockwatcher.client", I had one folder per
node, and had to drill down 5 folders to see the source.

However, I don't have the option to run as "StockWatcherTest-hosted".
In the "Run, configurations..." menu, I see that configuration, but if
I open it, I see this message at the top:
"Can not find test class
'com.google.gwt.sample.stockwatcher.client.StockWatcherTest' in
project 'StockWatcher'"

I don't see any class file anywhere for the StockWatcherTest.java
file. Should there be one?  I've tried everything to try to build it,
but it seems like it's not a part of the project or something.  I'm
somewhat new still to java, and know nothing so far about jUnit, so
maybe it's something simple, but I followed the directions carefully,
and it just doesn't seem to work.  I also tried downloading the
project and importing it into Eclipse, but got the same results, more
or less.

I have jUnit 3.8.2 along with 4.3.1 installed in Eclipse (3.4.1).

Any ideas?

Thanks,
Marty Fried
Leftcoast, USA


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: GLayer() equivalent on GWT Google Maps 1.0 Library

2009-06-08 Thread Eric Ayers

Thanks for filing the ticket.

On Mon, Jun 8, 2009 at 5:21 PM, Pion wrote:
>
> Thanks for your help and quick reply. You are a genius :-)! It works
> now!
>
> Again, thanks.
>
> On Jun 8, 1:39 pm, Eric Ayers  wrote:
>> Sorry, that should have been new $wnd.GLayer()
>>
>>
>>
>> On Mon, Jun 8, 2009 at 4:29 PM, Pion  wrote:
>>
>> > I file this issue onhttp://code.google.com/p/gwt-google-apisas issue
>> > # 278.
>>
>> > I am new on this subject. I tried to follow your suggestion by doing
>> > the following:
>>
>> >        …
>> >        private static native JavaScriptObject createLayer(String name) /*-{
>> >          return new GLayer(name);
>> >        }-*/;
>> >        …
>>
>> >        …
>> >        Overlay wikipediaLayer = new ConcreteOverlay(createLayer
>> > ("org.wikipedia.en"));
>> >        map.addOverlay(wikipediaLayer);
>> >        …
>>
>> > Also, my *.gwt.xml has the following:
>>
>> >        …
>> >       

Passing a argument to GWT application

2009-06-08 Thread OffTheWall

I want to pass my GWT application a recordID at the time I call the
URL.  The application would then retrieve the record from the server
and display the record on the screen.  What is the best way to do this
and is it possible to pass command line arguments to a GWT 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-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: Simple Eclipse/Java/GWT question

2009-06-08 Thread Shane

Hi Jamie,

Thanks for the heads-up, that will save me time.

However, I am still unsure why I am getting errors with the org.json
library.  Even if I don't use this library, I am sure I will run into
this sort of problem again.

I guess my question boils down to: how do I import other Java code
into the client side of a GWT app?

Cheers,
Shane

On Jun 9, 5:28 am, Jamie  wrote:
> GWT comes with it's own JSON library.
>
> See 
> here:http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
> andhttp://code.google.com/webtoolkit/tutorials/1.6/JSON.html
>
> I am not saying that you can't use the org.json in your client code,
> however it will end up being a lot of work, and the GWT team have
> already done it for you!
>
> Jamie.
> ---
> Search for analog and digital television broadcast antennas in your
> area:http://www.antennamap.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: What is FixedWidthGridBulkRenderer?

2009-06-08 Thread hezjing
What will happen if a PagingScrollTable does not have
a FixedWidthGridBulkRenderer?Does this means the table without a bulk
renderer will simply be rendered slowly?


On Tue, Jun 9, 2009 at 1:26 AM, jay  wrote:

>
> Bulk loading is the process of creating a string to represent the
> HTML, and then inserting the entire string into the DOM, allowing the
> browser to do the "heavy lifting" of creating all the DOM elements.
>
> My understanding (and experience) is that this technique is incredibly
> fast compared to creating and inserting individual DOM elements.
>
> (I hope I'm answering the question you were trying to ask...if you're
> interested in the internals of the bulk loader, then I guess my answer
> doesn't help you...)
>
> jay
>
> On Jun 8, 8:51 am, hezjing  wrote:
> > Hi
> > I don't understand FixedWidthGridBulkRenderer class while working with
> > PagingScrollTable,see alsohttp://
> collectionofdemos.appspot.com/javadoc/com/google/gwt/gen2/tabl...
> > .
> >
> > What does a helper class to bulk load FixedWidthGrid tables really mean?
> > Can someone elaborate on this?
> >
> > Thank you!
> >
> > --
> >
> > Hez
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
You received 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: Referencing Shared Library

2009-06-08 Thread Scott

No one knows how to allow a GWT project to access a plain java project
in eclipse without turning it into a GWT module?

On Jun 3, 5:24 pm, Scott  wrote:
> Does that mean the shared library has to be a module?  I'd prefer to
> keep the shared library a simple Java project with no dependencies on
> libraries and only containing POJOs.
>
> On Jun 3, 12:26 pm, Jim  wrote:
>
> > In your .gwt.xml, you need one entry to specify a module like
> > . In the module, there is a
> > source code folder like .
>
> > Jimhttp://www.gwtorm.com-GWT ORMhttp://code.google.com/p/dreamsource-orm/
>
> > On Jun 3, 1:27 pm, Scott  wrote:
>
> > > I have code a set of Java POJOs within my project that are used to
> > > transfer information around the application.  I'd like to move them
> > > into a simple Eclipse project so that they may be used by other
> > > components.  When I create a new Java project and move the POJOs to
> > > this project, I add the new project to the existing Project's build
> > > path.  This resolves all classpath issues within Eclipse, but at
> > > runtime the GWT application fails with messages such as:
>
> > > "No source code is available for type foo; did you forget to inherit a
> > > required module?"
>
> > > How can I setup a relationship in GWT to access the shared library?
> > > Does the shared library need to be a GWT module?  Ideally, I'd like to
> > > keep it as a simple, non-GWT Java library with no dependencies.
--~--~-~--~~~---~--~~
You received 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: Simple Eclipse/Java/GWT question

2009-06-08 Thread Ian Bambury
The chances are you can't.
Unless the code you want to import only uses emulated classes, and you have
the source, then you can't use it.

GWT can only translate into JS what it has been 'taught' how to translate.
Some things (like multi-threading) it will never (in the foreseeable future)
be able to do, so any Java code that uses that will never be able to be
used.

Ian

http://examples.roughian.com


2009/6/9 Shane 

>
> Hi Jamie,
>
> Thanks for the heads-up, that will save me time.
>
> However, I am still unsure why I am getting errors with the org.json
> library.  Even if I don't use this library, I am sure I will run into
> this sort of problem again.
>
> I guess my question boils down to: how do I import other Java code
> into the client side of a GWT app?
>
> Cheers,
> Shane
>
> On Jun 9, 5:28 am, Jamie  wrote:
> > GWT comes with it's own JSON library.
> >
> > See here:
> http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
> > andhttp://code.google.com/webtoolkit/tutorials/1.6/JSON.html
> >
> > I am not saying that you can't use the org.json in your client code,
> > however it will end up being a lot of work, and the GWT team have
> > already done it for you!
> >
> > Jamie.
> > ---
> > Search for analog and digital television broadcast antennas in your
> > area:http://www.antennamap.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
-~--~~~~--~~--~--~---



tested browsers

2009-06-08 Thread mike

I'm assuming GWT is tested against many browsers? Is there a list
available?

YUI's approach to this is really well done. 
http://developer.yahoo.com/yui/articles/gbs/

-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-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: Simple Eclipse/Java/GWT question

2009-06-08 Thread Jamie

You need to make sure that you define a module xml for each source
folder you want to make use of,  or add a 'source' element within your
module for each client source folder.
I am not sure about the 'expected package' problem... are you still
importing org.json somewhere?

Jamie.
---
Search for analog and digital television broadcast antennas in your
area:
http://www.antennamap.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: Passing a argument to GWT application

2009-06-08 Thread abhiram wuntakal
Not sure if this is the right thing to do. but u can try the history token
as a work around.

 Pass the rowid as a history token to ur application url...
 Then retrieve the history token in ur code and u can later query the
database accordingly..

 Dont u want to put a textBox in the initial screen which takes up the rowid
as the parameter and gets u the data accordingly? that i guess, would be the
most logical thing to do...

regards,
Abhiram

On Tue, Jun 9, 2009 at 4:19 AM, OffTheWall wrote:

>
> I want to pass my GWT application a recordID at the time I call the
> URL.  The application would then retrieve the record from the server
> and display the record on the screen.  What is the best way to do this
> and is it possible to pass command line arguments to a GWT 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-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: Too Dumb to Fix Logging on the Server

2009-06-08 Thread abhiram wuntakal
Have u tried adding the log4j jar file? that helps u generate log file using
a command like

private static Logger logger_ = Logger.getLogger(SampleFacade.class);
logger_.info("ABC");

cheers,
Abhiram


On Tue, Jun 9, 2009 at 3:58 AM, Scott  wrote:

>
> I am using GWT 1.6.4 in Eclipse 3.4.2 on Mac OS X with the
> Instantiations GWT Designer 7.0.0.  For the life of me, I cannot get a
> server log to be generated when an exception is thrown in my RPC
> code.  The console in Eclipse tells me:
>
> com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
> the server; see server log for details
>
> I've written a test harness for my RPC code, and it runs fine.
> Something with the interaction with GWT is making it mad and without
> the log, it's an uphill battle figuring it out.
>
> Searching the web has suggested creating a "commons-
> logging.properties" file in my classpath or adding the commons logging
> JARs to my project.  Neither has helped.
>
> I didn't have this issue in GWT 1.5.x and haven't been able to find
> any information about what has changed.
>
> Someone help!  Please?  :-)  Thanks!
>
>
> Scott
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Simple Eclipse/Java/GWT question

2009-06-08 Thread Shane

Hi Jamie,

Thanks for the info, I'll dig around and see how do add these module
xml files.

As for the 'expected package' problem, I was getting that in the
hosted server log file when the client was instantiated.  The thing
is, I can import the org.json.* namespace, and write code that passes
the compile phase, it just fails at run-time.  I'm still confused by
this, to be honest.

Cheers,
Shane

On Jun 9, 1:24 pm, Jamie  wrote:
> You need to make sure that you define a module xml for each source
> folder you want to make use of,  or add a 'source' element within your
> module for each client source folder.
> I am not sure about the 'expected package' problem... are you still
> importing org.json somewhere?
>
> Jamie.
> ---
> Search for analog and digital television broadcast antennas in your
> area:http://www.antennamap.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: Passing a argument to GWT application

2009-06-08 Thread Keith Whittingham

Inside your xom.xxx.server.Xxxx extends RemoteServiceServlet class you  
can call getThreadLocalRequest() and that will give you your servlet  
request so you can play with the query (the URL argument list) cookies  
and whatever

>
> I want to pass my GWT application a recordID at the time I call the
> URL.  The application would then retrieve the record from the server
> and display the record on the screen.  What is the best way to do this
> and is it possible to pass command line arguments to a GWT  
> 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-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
-~--~~~~--~~--~--~---



Session id and client side IP

2009-06-08 Thread abhiram

Hi,

  How do I get the IP address of the person who is logging in from the
client side?
  And is the session id something that is generated from the client
side or the server sends back to the client side after it is contacted
for the first time by the client?

 Regards,
Abhiram
--~--~-~--~~~---~--~~
You received 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: Session id and client side IP

2009-06-08 Thread hezjing
Hi Abhiram
Have a look at
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/a95f12f6972d8cab
of  how to obtaining the client's address.


On Tue, Jun 9, 2009 at 1:15 PM, abhiram  wrote:

>
> Hi,
>
>  How do I get the IP address of the person who is logging in from the
> client side?
>  And is the session id something that is generated from the client
> side or the server sends back to the client side after it is contacted
> for the first time by the client?
>
>  Regards,
> Abhiram
> >
>


-- 

Hez

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



  1   2   >