Re: How to deploy GWT application in tomcat

2009-11-26 Thread Tamás Gömbös
I have copied all the required jars to WEB-INF. And my servlets work
properly because they send back data when I call them explicitly. But it
seems that the client doesn't send any request to the server when I start
the application with application_name.html. And again: in hosted mode
everything's fine.

2009/11/18 Rinuz rkozd...@gmail.com

 Do you copy jars to WEB-INF?

 If don't, you must copy db_driver_connector.jar and gwt-servlet.jar.

 On 17 Lis, 12:29, Tamás Gömbös gomb...@gmail.com wrote:
  Well, I was managed to deploy the application but there's another
 problem.
  It seems as the client doesn't call the servlets. They communicate in
 JSON
  format and when I call the servlet explicitly it sends the the data. But
  when I start the application normally, no data is given to the client.
 
  What could be the problem?
 
  2009/11/17 Tamás Gömbös gomb...@gmail.com
 
   Greetings!
 
   I've finished my GWT application and I'd like to deploy it in tomcat.
 I've
   read a bunch of tutorials about this but I can't figure out how to do
 it.
   I've done the following things:
 
   - I compiled my application.
   - In the tomcat/webapps I created a project-name directory.
   - Then I copied the content of the project-name/war directory into
 the
   tomcat/webapps/project-name directory. The project-name/war
 directory
   includes:
   ./images (this contains the resources for the style sheets)
   ./project-name (this contains several .cache.html files etc)
   ./Web-inf (this contains web.xml, classes and lib directories, the lib
   contains the gwt-servler.jar)
   project-name.css and project-name.html
 
   After this I started tomcat and tried the following URL:
   .../project-name/project_name.html and it didn't work.
 
   Please, somebody tell me which is the correct way to create the
 project's
   directory in tomcat/webapps and what is the correct URL to start the
   application.
 
   Thank you!

 --

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




--

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




Re: How to deploy GWT application in tomcat

2009-11-26 Thread Tamás Gömbös
I forgot to mention that when I start the application in hosted mode and
start it in a browser with the Compile/Browse button it also works
properly.

2009/11/26 Tamás Gömbös gomb...@gmail.com

 I have copied all the required jars to WEB-INF. And my servlets work
 properly because they send back data when I call them explicitly. But it
 seems that the client doesn't send any request to the server when I start
 the application with application_name.html. And again: in hosted mode
 everything's fine.

 2009/11/18 Rinuz rkozd...@gmail.com

 Do you copy jars to WEB-INF?

 If don't, you must copy db_driver_connector.jar and gwt-servlet.jar.

 On 17 Lis, 12:29, Tamás Gömbös gomb...@gmail.com wrote:
  Well, I was managed to deploy the application but there's another
 problem.
  It seems as the client doesn't call the servlets. They communicate in
 JSON
  format and when I call the servlet explicitly it sends the the data. But
  when I start the application normally, no data is given to the client.
 
  What could be the problem?
 
  2009/11/17 Tamás Gömbös gomb...@gmail.com
 
   Greetings!
 
   I've finished my GWT application and I'd like to deploy it in tomcat.
 I've
   read a bunch of tutorials about this but I can't figure out how to
 do it.
   I've done the following things:
 
   - I compiled my application.
   - In the tomcat/webapps I created a project-name directory.
   - Then I copied the content of the project-name/war directory into
 the
   tomcat/webapps/project-name directory. The project-name/war
 directory
   includes:
   ./images (this contains the resources for the style sheets)
   ./project-name (this contains several .cache.html files etc)
   ./Web-inf (this contains web.xml, classes and lib directories, the lib
   contains the gwt-servler.jar)
   project-name.css and project-name.html
 
   After this I started tomcat and tried the following URL:
   .../project-name/project_name.html and it didn't work.
 
   Please, somebody tell me which is the correct way to create the
 project's
   directory in tomcat/webapps and what is the correct URL to start the
   application.
 
   Thank you!

 --

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





--

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




How to deploy GWT application in tomcat

2009-11-17 Thread Tamás Gömbös
Greetings!


I've finished my GWT application and I'd like to deploy it in tomcat. I've
read a bunch of tutorials about this but I can't figure out how to do it.
I've done the following things:

- I compiled my application.
- In the tomcat/webapps I created a project-name directory.
- Then I copied the content of the project-name/war directory into the
tomcat/webapps/project-name directory. The project-name/war directory
includes:
./images (this contains the resources for the style sheets)
./project-name (this contains several .cache.html files etc)
./Web-inf (this contains web.xml, classes and lib directories, the lib
contains the gwt-servler.jar)
project-name.css and project-name.html

After this I started tomcat and tried the following URL:
.../project-name/project_name.html and it didn't work.

Please, somebody tell me which is the correct way to create the project's
directory in tomcat/webapps and what is the correct URL to start the
application.

Thank you!

--

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




Re: How to deploy GWT application in tomcat

2009-11-17 Thread Tamás Gömbös
Well, I was managed to deploy the application but there's another problem.
It seems as the client doesn't call the servlets. They communicate in JSON
format and when I call the servlet explicitly it sends the the data. But
when I start the application normally, no data is given to the client.

What could be the problem?

2009/11/17 Tamás Gömbös gomb...@gmail.com

 Greetings!


 I've finished my GWT application and I'd like to deploy it in tomcat. I've
 read a bunch of tutorials about this but I can't figure out how to do it.
 I've done the following things:

 - I compiled my application.
 - In the tomcat/webapps I created a project-name directory.
 - Then I copied the content of the project-name/war directory into the
 tomcat/webapps/project-name directory. The project-name/war directory
 includes:
 ./images (this contains the resources for the style sheets)
 ./project-name (this contains several .cache.html files etc)
 ./Web-inf (this contains web.xml, classes and lib directories, the lib
 contains the gwt-servler.jar)
 project-name.css and project-name.html

 After this I started tomcat and tried the following URL:
 .../project-name/project_name.html and it didn't work.

 Please, somebody tell me which is the correct way to create the project's
 directory in tomcat/webapps and what is the correct URL to start the
 application.

 Thank you!


--

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




Re: I'm new to GWT and I have some questions...

2009-09-14 Thread Tamás Gömbös
Hi,

For example, if you'd like to do something on the right side when you click
on an item of the tree, you should do this:
You create a widget which extends HorizontalSplitPanel and implements the
SelectionHandler interface. You override the onSelection(SelectionEventi
event) method of the SelectionHandler interface. You handle the event in
this method. In addition, you have to add a this panel as a SelectionHandler
to your Tree with the addSelectionHandler(SelectionHandlerI handler)
method (which is declared in the HasSelectionHandlers interface which is
implemented by GWT's Tree widget, so the method is already implemented and
you can use it).

I recommend you this page: http://code.google.com/p/gwt-examples/

I figured out the new event handling from the example of this site.

Cheers!

2009/9/14 PJ pedrojavieror...@gmail.com

 Second, I put the Tree in the left side of the HorizontalSplitPanel,
 and I need it to control the content of the right side, how do i do
 that?


 Thank you, and sorry if this is a stupid question, I'm just new 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: FlowPanel

2009-09-09 Thread Tamás Gömbös
Hi,

Put a HorizontalPanel on each VerticalPanel:

HorizontalPanel hp1 = new HorizontalPanel();
vp1.add(hp1);



To be honest, I don't really understand GWT's layout handling but this works
everytime for me, when I'd like to change the size of a panel in both
horizontal and vertical direction.

Hope this helps!


2009/9/9 Rami Alkhalyleh rkhaly...@gmail.com

 Hi

  Actually I need to use the FlowPanel, I need to list my widgets in a flow
 way horizontally, the vertical panels that I'm trying to add them to the
 flow panel has a width also a height, but it didn't work, also I tried to
 put each vertical panel in a horizontal panel but I got the same result, the
 flow panel list them vertically, also I tried to use a simple panel instead
 of vertical panel then add them to the flow panel but the flow panel list
 them vertically.

 this is a sample code:

 public class MyProject implements EntryPoint {

   private final FlowPanel fp = new FlowPanel();
   private final SimplePanel vp1 = new SimplePanel();
   private final SimplePanel vp2 = new SimplePanel();
   private final SimplePanel vp3 = new SimplePanel();

   public void onModuleLoad() {

 fp.setStyleName(fpTest);
 vp1.setStyleName(vpTest);
 vp2.setStyleName(vpTest);
 vp3.setStyleName(vpTest);
 fp.setWidth(500px);
 fp.setHeight(500px);
 vp1.setWidth(74px);
 vp1.setHeight(80px);
 vp2.setWidth(74px);
 vp2.setHeight(80px);
 vp3.setWidth(74px);
 vp3.setHeight(80px);
 fp.add(vp1);
 fp.add(vp2);
 fp.add(vp3);
 RootPanel.get(divId).add(fp);

   }
 }

 Note: the styles 'fpTest' and 'vpTest' contains just a background color,
 and if you try to use a vertical panel instead of simple panel, the same
 result which is list them vertically.

 thanks a lot

 On Wed, Sep 9, 2009 at 7:18 AM, Saeed Zarinfam zarinfa...@gmail.comwrote:


 Hi
 You must add your vertical panel in a horizontal panel or decrease
 vertical panel width.




 --
 Best Regards
Rami

 


--~--~-~--~~~---~--~~
You received 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: Web Application in Regional Language

2009-09-09 Thread Tamás Gömbös
Hi Sundar,

You develop a web app in your own language in the same way as do it in
another language. You just translate its content to your language, that's
all.

If you are completely new to computer programming then maybe developing a
web application using GWT is not the best point to start. There are plenty
of tutorials for beginners on the internet about Java and about
object-oriented programming in general. Search for them is the best thing to
do in this case, I think.

If you are only new to GWT, I recommend to read the tutorial and create your
own StockWatcher application. There's a chapter about internationalization
too: http://code.google.com/intl/hu-HU/webtoolkit/tutorials/1.6/i18n.html

Best regards,
Tamás

2009/9/9 Sundar sundaravadivelu...@gmail.com


 How to develope web apps in regional language with use of google
 code ?

 I am new to computer programming. I am interested to making web
 applications in tamil language. I am choosing the google code as
 resource. Any one help to me how develop it... It may help to others
 who want develop web apps for his human language...

 I hope very much about i am getting all answers..

 Thank You...

 


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



Re: Listen for click on VerticalPanel?

2009-09-08 Thread Tamás Gömbös
Hi,

Just extend VerticalPanel and implement the HasClickHandlers interface with
this widget. I hope this helps.

bye!

2009/9/8 markww mar...@gmail.com


 Hi,

 Is it possible to listen for a click event on a VerticalPanel? I don't
 see any methods like addClickHandler() for it?

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



Implementing the HasLoadHandlers interface

2009-08-18 Thread Tamás Gömbös
Greetings Everyone!

I am relatively new to web development and I started to use GWT just a few
days ago.

I have the following problem:
The ListBox widget does not implement the HasLoadHandlers interface and I
have a ListBox that I would like to load with some data from a server. I
extended ListBox as class LoadableListBox. I searched for some examples and
created the code below:

public class LoadableListBox extends ListBox implements HasLoadHandlers{

public HandlerRegistration addLoadHandler(LoadHandler handler) {
return addHandler(handler, LoadEvent.getType());
  }

@Override
 public void fireEvent(GwtEvent? event) {

 }

}

I have another class which implements the LoadHandler interface and
overrides its void onLoad(LoadEvent event) method. With the code above, the
LoadableListBox on the page does not load.
What is the correct way of implementing a HasXXXHandlers interface?

Thank you very much for your help,
Tamás Gömbös


P.S.: Alternatively, I tried to load the data into the widget via its
parent's void onLoad() method and it doesn't load the ListBox when I open
the page, only if I reload it. I suppose this is because of the
client-server mechanism or something like that. I don't go into details in
this case, because I think the correct way is the former.

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