GWT 2.3 and roadmap

2011-04-05 Thread Hasan Turksoy
Hi,

As already known, 2.3-Beta is out. Does anyone know when the 2.3 will
be released?
btw; i couldn't find a global roadmap page. anyone know of a link to,
or info about, the roadmap?

Regards,

Hasan.

-- 
You received 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-RPC-MAIL

2010-01-21 Thread Hasan Turksoy

you can use this[1] code... server side mail service from one of my
applications.

[1] 
http://code.google.com/p/apiks2/source/browse/trunk/src/edu/hacettepe/bote/server/service/MailServiceImpl.java

Hasan
http://www.jroller.com/hasant

On Jan 20, 9:38 pm, Florentine3D artem.boro...@gmail.com wrote:
 I realized GWT-RPC. Everything works. When I click on the button I get
 a message from the server and print on the web browser.
 Question: How do I send mail using JavaMail with that simple button? I
 do not know how to write code.

 On the Internet I found only bits of how to do it and do not
 understand. Tell me, please.
-- 
You received 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: Building a Calendar Widget like Google Calendar with GWT advisable?

2010-01-21 Thread Hasan Turksoy

i don't know much about it but there is a component library including
calendar here: http://code.google.com/p/ftr-gwt-library/

you can see the demo from here: 
http://www.future-earth.eu/gwt/calendar/MainDemoApp.html

hope it helps,

Hasan...

On Jan 21, 2:24 pm, mstu...@googlemail.com mstu...@googlemail.com
wrote:
 Hi All,

 I am quite new to GWT and currently evaluating this technology. For a
 project I need to build an application containing a calendar such as
 Google Calendar where the user can create and move events around. The
 SmartGWT lib contains a Calendar Widget but I want to build my own due
 to several reasons. However, when using the SmartGwt Calendar widget,
 it seems very slow. Of course, it doesn't necessarily mean that
 building such kind of widgets with GWT will be slow. However, the
 alternative to using GWT would be implenenting it in pure JavaScript
 and using some of the libs such as Prototype, Dojo, etc. I am pretty
 familiar with.

 Has anyone build a Calendar in GWT or something similar and is willing
 to share some experience?

 Thanks very much!

 Scholle
-- 
You received 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: Timer in GWT?

2009-12-14 Thread Hasan Turksoy

you should use import com.google.gwt.user.client.Timer;...
see StockWatcher tutorial for a sample :
http://code.google.com/webtoolkit/doc/latest/tutorial/codeclient.html

Hasan

On Dec 14, 1:21 pm, Dennis Madsen den...@demaweb.dk wrote:
 I'm trying to have a Java Timer in my EntryPoint:

                 Timer timer = new Timer();
                 timer.schedule(
                         new TimerTask() {
                     public void run() {
                         //some code
                     }
                 }
                         , 5000);

 But when trying to compile this I got:
 No source code is available for type java.util.Timer; did you forget
 to inherit a required module?
 No source code is available for type java.util.TimerTask; did you
 forget to inherit a required module?

 What to do?

--

You received 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: Session Management

2009-08-31 Thread Hasan Turksoy
my suggestion for session management:
http://developerlife.com/tutorials/?p=230

Hasan

On Mon, Aug 31, 2009 at 11:23 AM, tolga ozdemir tka...@gmail.com wrote:


 Hi folks!

 I am looking for a good solution for session management in GWT web
 applications. Do you have any idea? or do you suggest a good article
 for this?

 ** Cookies
 ** HttpSession
 ** Variables or what?


 Regards,

 Tolga


 


--~--~-~--~~~---~--~~
You received 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: prerequisities of GWT to develop JPA

2009-08-12 Thread Hasan Turksoy
my code is a simplest form of JPA-GWT integration... it is a demo app in a
GWT presentation to achieve the fastest startup... don't expect it to apply
complex patterns :)

BTW, as Rakesh's suggested tutorial states, you can use DTO pattern to play
with not-too-complex domain models. In fact, i have used this pattern
before in a project [1], which includes class referencing and list type
members, and working not by accident ;) I didn't use lazy, so i didn't need
any external complexity. Just made my domain objects serializable by using
Dozer. that's all

Project at [1] uses a light but relational domain model in which some
hibernate specific types like PersistentList and PersistentSet is being
generated at runtime. But as the above tutorial points, you can make your
objects seralizable easily by using an API like Dozer as implemented in the
project [2].

My suggestion is the same as the above tutorial. If you are not using a very
complex domain model and lazy ability, don't make your application too
complex and go on with DTO pattern+Dozer... It is really simple and fast...
But, on the other hand, if you want to use advanced techniques like lazy
loading, you should try some more complex solutions.

[1]
http://code.google.com/p/apiks/source/browse/#svn/trunk/src/edu/hacettepe/bote/client/model
[2]
http://code.google.com/p/apiks/source/browse/trunk/src/edu/hacettepe/bote/server/service/ApiksServiceImpl.java

Regards,

Hasan


On Wed, Aug 12, 2009 at 9:19 AM, Alexandros Papadakis alpa...@gmail.comwrote:

 Read the tutorial Rakesh suggested. Hasan's sample has only one domain
 class and it works by accident. If you have a more complex domain model,
 classes referencing one another, then this approach will not work as is.
 ORM libraries add proxies, which GWT serializer can not handle.




 On Tue, Aug 11, 2009 at 11:50 PM, tolga ozdemir tka...@gmail.com wrote:


 And.. may something be wrong in GWT eclipse plugin?

 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: prerequisities of GWT to develop JPA

2009-08-11 Thread Hasan Turksoy
Hi Tolga,

Below is a simple demo [1] from one of my GWT presentations implementing
GWT-JPA integration. It's configured as to connect HSQLDB but you can find a
commented configuration to connect to MySQL as well (see [2])...

you can check it out and run using GWT Eclipse Plugin - you don't need any
extra tool:
svn checkout
http://faculty-gwt.googlecode.com/svn/trunk/examples/hellogwtwithjpa-addwidgetshellogwtwithjpa

[1]
http://code.google.com/p/faculty-gwt/source/browse/#svn/trunk/examples/hellogwtwithjpa-addwidgets
[2]
http://code.google.com/p/faculty-gwt/source/browse/trunk/examples/hellogwtwithjpa-addwidgets/src/META-INF/persistence.xml

hope it helps,

Hasan...
http://www.jroller.com/hasant


On Tue, Aug 11, 2009 at 10:04 AM, tolga ozdemir tka...@gmail.com wrote:


 Hi everybody,

 I am starting to learn GWT stuff for a while. I am really getting
 enjoy it. Now, I am considering to use JPA to access my database.. I
 read a lot of articles about this.. (took a look at GWT 1.4 and GWT
 1.5 samples also)

 But guys, I have not succeeded yet.. Any help about this would be
 great.. Bu my question is different..

 Would you jote down a list what we need to use JPA with GWT

 JDK? (I have Java SE 1.6 JDK)
 Server? (I use hosted mode, I love it)
 Database (I can use MySQL and MsSql)
 GWT SDK (1.7)
 Google App SDK (1.2.2)
 Hibernate api
 Any more tools do we need to develop???

 please write a simple list to me, maybe I missing the point right
 there.. My tools are enough??

 Thank you,

 Tolga
 


--~--~-~--~~~---~--~~
You received 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 send Post/Get Method by Using GWT?..

2009-07-09 Thread Hasan Turksoy
use FormPanel... add your widgets into it... then call FormPanel.submit();
method inside onClick method of your button..

Hasan...



On Thu, Jul 9, 2009 at 5:09 PM, Leonardo Carreira 
leonardo.carre...@yahoo.com.sg wrote:


 Sorry i forgot.. What i mean is..
 i want to send POST Method to any Servlet..
 and then Servlet get All data which already sent by use
 request.getParameter()..
 Then the user do save data or etc..

 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: File Upload error 404

2009-07-09 Thread Hasan Turksoy
set the url-pattern as url-pattern
/upload_0.2/UploadFileServlet/url-pattern
Hasan...

On Thu, Jul 9, 2009 at 7:11 PM, ghita ghita.benkir...@gmail.com wrote:


 Hello,

 I'm a newbie to gwt, I have a simple application that I use to upload
 file to server, but keeps giving the following error. I read that it
 may be because of the mapping of the servlet, here is my web.xml.
 any suggestions?

 h1HTTP Status 404 - /upload_0.2/UploadFileServlet/h1
 hr size=1 noshade=noshadep
 btype/b Status report/ppbmessage/b
  u/upload_0.2/UploadFileServlet/u/p
 pbdescription/b
  uThe requested resource (/upload_0.2/UploadFileServlet) is not
 available./u/p
 hr size=1 noshade=noshadeh3Apache Tomcat/5.5.27/h3


 web.xml

display-name
UploadFile/display-name
servlet
servlet-nameUploadFile/servlet-name

  servlet-classuploadfile.server.UploadFileServlet/servlet-class
/servlet
servlet-mapping
servlet-nameUploadFile/servlet-name
url-pattern/UploadFileServlet/url-pattern
/servlet-mapping




 


--~--~-~--~~~---~--~~
You received 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 native GWT chart library?

2009-04-22 Thread Hasan Turksoy
Hi,

Tatami http://code.google.com/p/tatami/ project wraps the dojo framework
in GWT... it's open source.

Regards,

Hasan...


On Wed, Apr 22, 2009 at 6:38 AM, Ben FS ben.su...@gmail.com wrote:


  Thanks all for your help.
 You're welcome!

  Ben, I looked at the links you gave me, a lot of interesting things
  but no client-site library that fits my need.
 For what it's worth, I too would really like a client-side library -
 mainly so that I can do lots of quick, small updates without much
 latency. The quality just wasn't adequate for the client-side
 libraries that I tried, so I switched back to a server-side library.
 In my case, so far there has been no noticeable increase in latency:
 you may wish to reconsider your need for a client-side solution, and
 at least try it with an easy server-side solution (aka Google Chart
 API or Eastwood) and see what your results are. Maybe you've already
 tried this, or have other good reasons for a client-side solution.

  So I think I'm gonna end up doing a wrapper for dojo chart.
 Sounds like a great project, and one that would be useful to many
 (including me). If you make progress on this, would you consider
 establishing a Google Code project?

 Best of luck,
 Ben.


 
  On Apr 21, 9:47 am, Flemming Boller flemming.bol...@gmail.com wrote:
 
 
 
   Hi
 
   I currently use the GWTCanvas, for creating pies. It works very well.
 
   The code I can just copy paste from swing/awt code examples because
 the
   GWTCanvas
   api is very much like the normal jdk canvas. And you can your self
 attach
   mouse listeners etc on the pie so it becomes interactive, with the rest
 of
   the page.
 
   So for pies it is well suited.
 
   However I have not cracked the nutt with respect to drawing  text in
 the
   canvas, last time I checked the versiondid not support drawString(...)
   method, so that was a no go.
 
   /Flemming
 
   ps: if you want I can attach the code.
 
   On Tue, Apr 21, 2009 at 2:48 AM, Thomas Broyer t.bro...@gmail.com
 wrote:
 
On 20 avr, 23:54, plcoirier plcoir...@gmail.com wrote:
 Hi,
 
 I'm looking for a native GWT chart library. I would like to be able
 to
 draw all different kinds of chart (line chart, bart chart, area
 chart,
 pie chart...). I also would like a client solution.
 I unfortunately can't use Google Visualization bc it's for an
 intranet
 website and users may not have access to google servers. Flash
 solutions aren't an option either :(
 
 I saw gchart but I need pie charts that are completely filled.
 
 Any other ideas of library?
 
Huh! no flash?! Which browser(s) are you targetting?
If you only plan on supporting relatively modern browsers and/or IE,
then you could use SVG or canvas (for the formers) and VML for the
latter (I guess silverlight or java applets aren't an option
 either?).
There are a few GWT projects for charting based on canvas but they
don't seem maintained... (for examplehttp://code.google.com/p/glotr/
)
You can eventually use the GWTCanvas widget from the GWT Incubator
 and
do the plotting/charting by yourself:
   http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas
 
Unfortunately, Chronoscope doesn't meet your criterias as it doesn't
do pies (it's oriented towards time-based data...), otherwise, it's a
very well-thought-out project from one of the best GWT user/
contributor out there!
   http://timepedia.org/chronoscope/-Hide quoted text -
 
   - Show quoted text -- Hide quoted text -
 
  - Show quoted text -
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: [Ask] Simple Form login with GWT

2009-04-09 Thread Hasan Turksoy
this document will give you necessary info:
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ

in addition, this project inludes a login implementation which has extra
utilities like remember me : http://code.google.com/p/gwt-stuff/
project's login module:
http://code.google.com/p/gwt-stuff/wiki/GwtStuffLogin
also, take a look at the login implementation of gwt-stuff project from its
source code:
http://code.google.com/p/gwt-stuff/source/browse/trunk#trunk/src/org/mcarthur/sandy/gwt/login

Hasan...


On Thu, Apr 9, 2009 at 3:25 AM, Leonardo Carreira 
leonardo.carre...@yahoo.com.sg wrote:


 Dear All..

 this is my first question in GWT forum..

 i just have an simple question, how to make a simple form login with
 GWT?..
 could you give me a link for tutorial GWT step by step?..

 thank's

 


--~--~-~--~~~---~--~~
You received 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: Validation Framework

2009-03-05 Thread Hasan Turksoy
i didn't try it but you can take a look at the
gwt-validationhttp://code.google.com/p/gwt-validation/project...

Hasan...


On Thu, Mar 5, 2009 at 7:37 AM, Pete pete.s...@gmail.com wrote:


 Has anyone found a simple and still supported validation framework for
 gwt yet?

 Cheers

 Pete

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: application (with custom shell servlet) is not working at external tomcat

2009-01-30 Thread Hasan Turksoy
Thanks superkruger,

I've successfully deployed my module after app. Below are my notes;

- though my war file seems not renamed module path, i have renamed my module
name to lowercase as you suggested,
- created a new war by using tomcat war
builderhttp://code.google.com/p/gwt-examples/wiki/gwtTomcatWarBuilder
project,
- check the web.xml to include same servlet mappings with my module xml

Thanks again for your precious help...

Hasan...
http://www.jroller.com/hasant


On Fri, Jan 30, 2009 at 2:42 PM, superkruger superkru...@gmail.com wrote:


 Hi Hasan,

 The problem is most probably a 404 in tomcat.
 Have a look at the headers (using something like the LiveHTTPHeaders
 firefox plugin)
 You'll probably find that the ...nocache.js file is not found.

 If you packaged it into a war file or something, you'll see the whole
 'edu.hacettepe.bote.ApiksApp' path has been renamed to
 'edu.hacettepe.bote.apiksApp'.
 That's the root of the problem.
 The easiest solution would be to rename your module to something
 starting with a *lowercase* letter.
 Or just edit your module xml file...

 Hope it helps


 On Jan 15, 9:26 am, Hasan Turksoy hturk...@gmail.com wrote:
  Hi all,
 
  i've implemented a custom servlet (which is extending from
 GWTShellServlet)
  only to response my main gwt page requests, otherwise, will call
 super.doGet
  or super.doPost. it is like this;
 
  /**
   * Custom servlet which extends GWT's one to make it possible to use
 other
   * formats(like JSP, FreeMarker) as application main page.
   *
   * @author Hasan
   */
  public class CustomShellServlet extends GWTShellServlet {
  @Override
  protected void doGet(final HttpServletRequest request, final
  HttpServletResponse response) throws ServletException, IOException {
  if (processIfMyCustomRequest(request, response))
  return;
  super.doGet(request, response);
  }
 
  @Override
  protected void doPost(HttpServletRequest request, HttpServletResponse
  response) throws ServletException, IOException {
  if (processIfMyCustomRequest(request, response))
  return;
  super.doPost(request, response);
  }
  ...
 
  }
 
  this is working at hosted mode but not working when i want to deploy my
 app
  to an external tomcat instance. When i made my custom request (in fact,
  which will generate the main gwt html file with some additional script
  codes), it is entering my custom servlet, responding main application
 html
  normally but i see an empty screen whose html source (view source) seems
  normal - as below;
 
  request:http://localhost:8080/apiks/ApiksApp.do
  response:
 
  html
head
  meta http-equiv=content-type content=text/html; charset=UTF-8
  meta name=gwt:property content=locale=tr
  !--   --
 
  !-- Any title is fine --
  !--   --
  titleApiksApp/title
 
  script type=text/javascript language=javascript
  var parameters = {
  action: ,
  id: 
  };
  /script
 
  !--   --
  !-- This script loads your compiled module.   --
  !-- If you add any GWT meta tags, they must   --
  !-- be added before this line.--
 
  !--   --
  script type=text/javascript language=javascript
  src=edu.hacettepe.bote.ApiksApp.nocache.js/script
/head
 
!--   --
!-- The body can have arbitrary html, or  --
!-- you can leave the body empty if you want  --
!-- to create a completely dynamic UI.--
!--   --
 
body
 
  !-- OPTIONAL: include this if you want history support --
  iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
  style=position:absolute;width:0;height:0;border:0/iframe
 
/body
  /html
 
  result: empty screen!
 
  web.xml content:
 
  !-- custom servlet extending from GWTShellServlet --
  servlet
  servlet-nameshell/servlet-name
 
 
 servlet-classedu.hacettepe.bote.server.servlet.CustomShellServlet/servle
 t-class
  /servlet
 
  servlet-mapping
  servlet-nameshell/servlet-name
  url-pattern/*/url-pattern
  /servlet-mapping
 
  !-- servlet class to implement RPC calls--
  servlet
  servlet-nameApiksService/servlet-name
 
 
 servlet-classedu.hacettepe.bote.server.service.ApiksServiceImpl/servlet-
 class
  /servlet
 
  servlet-mapping
  servlet-nameApiksService/servlet-name
  url-pattern/ApiksService/url-pattern
  /servlet-mapping
 
 ---
 ---
 
  seems it's not loading gwt script file... or something i can not see...
  anybody knows? what may be the problem?
 
  Thanks in advance

Re: how to listen to ESC key for popup

2009-01-22 Thread Hasan Turksoy
In general, this occurs when another widget other than dialog (which is
listening Enter and Esc keys) has got the focus...

On Fri, Jan 23, 2009 at 6:40 AM, sagar sagar5...@gmail.com wrote:

 hey thanks Hasan
 it works.
 However it is working only for ESC and not for ENTER even though i have
 used the above lines in my code.


 On Thu, Jan 15, 2009 at 2:57 PM, Hasan Turksoy hturk...@gmail.com wrote:


 you can override the PopupPanel#onKeydownPreview method like below;

 @Override
 public boolean onKeyDownPreview(char key, int modifiers) {
 // Use the popup's key preview hooks to close the dialog when
 either
 // enter or escape is pressed.
 switch (key) {
 case KeyboardListener.KEY_ENTER:
 case KeyboardListener.KEY_ESCAPE:
 hide();
 break;
 }

 return true;
 }


 Hasan...
 http://www.jroller.com/hasant



 On Thu, Jan 15, 2009 at 11:17 AM, aragorn sagar5...@gmail.com wrote:


 My application displays a popup whenevr a particular button is
 clicked. Now i can hide the popup whenever the user clicks the mouse
 outside of it using the default popup-panel property provided by GWT.
 Apart from that I also need to listen to keyboard so that if the user
 hits ESC on the keyboard my popup should disappear from the screen.
 Any idea how to implement in 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
-~--~~~~--~~--~--~---



application (with custom shell servlet) is not working at external tomcat

2009-01-15 Thread Hasan Turksoy
Hi all,

i've implemented a custom servlet (which is extending from GWTShellServlet)
only to response my main gwt page requests, otherwise, will call super.doGet
or super.doPost. it is like this;

/**
 * Custom servlet which extends GWT's one to make it possible to use other
 * formats(like JSP, FreeMarker) as application main page.
 *
 * @author Hasan
 */
public class CustomShellServlet extends GWTShellServlet {
@Override
protected void doGet(final HttpServletRequest request, final
HttpServletResponse response) throws ServletException, IOException {
if (processIfMyCustomRequest(request, response))
return;
super.doGet(request, response);
}

@Override
protected void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
if (processIfMyCustomRequest(request, response))
return;
super.doPost(request, response);
}
...
}

this is working at hosted mode but not working when i want to deploy my app
to an external tomcat instance. When i made my custom request (in fact,
which will generate the main gwt html file with some additional script
codes), it is entering my custom servlet, responding main application html
normally but i see an empty screen whose html source (view source) seems
normal - as below;

request: http://localhost:8080/apiks/ApiksApp.do
response:

html
  head
meta http-equiv=content-type content=text/html; charset=UTF-8
meta name=gwt:property content=locale=tr
!--   --

!-- Any title is fine --
!--   --
titleApiksApp/title

script type=text/javascript language=javascript
var parameters = {
action: ,
id: 
};
/script

!--   --
!-- This script loads your compiled module.   --
!-- If you add any GWT meta tags, they must   --
!-- be added before this line.--

!--   --
script type=text/javascript language=javascript
src=edu.hacettepe.bote.ApiksApp.nocache.js/script
  /head

  !--   --
  !-- The body can have arbitrary html, or  --
  !-- you can leave the body empty if you want  --
  !-- to create a completely dynamic UI.--
  !--   --

  body

!-- OPTIONAL: include this if you want history support --
iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
style=position:absolute;width:0;height:0;border:0/iframe

  /body
/html

result: empty screen!

web.xml content:

!-- custom servlet extending from GWTShellServlet --
servlet
servlet-nameshell/servlet-name

servlet-classedu.hacettepe.bote.server.servlet.CustomShellServlet/servlet-class
/servlet

servlet-mapping
servlet-nameshell/servlet-name
url-pattern/*/url-pattern
/servlet-mapping

!-- servlet class to implement RPC calls--
servlet
servlet-nameApiksService/servlet-name

servlet-classedu.hacettepe.bote.server.service.ApiksServiceImpl/servlet-class
/servlet

servlet-mapping
servlet-nameApiksService/servlet-name
url-pattern/ApiksService/url-pattern
/servlet-mapping
--

seems it's not loading gwt script file... or something i can not see...
anybody knows? what may be the problem?

Thanks in advance,

Hasan...

--~--~-~--~~~---~--~~
You received 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 listen to ESC key for popup

2009-01-15 Thread Hasan Turksoy
you can override the PopupPanel#onKeydownPreview method like below;

@Override
public boolean onKeyDownPreview(char key, int modifiers) {
// Use the popup's key preview hooks to close the dialog when either
// enter or escape is pressed.
switch (key) {
case KeyboardListener.KEY_ENTER:
case KeyboardListener.KEY_ESCAPE:
hide();
break;
}

return true;
}


Hasan...
http://www.jroller.com/hasant


On Thu, Jan 15, 2009 at 11:17 AM, aragorn sagar5...@gmail.com wrote:


 My application displays a popup whenevr a particular button is
 clicked. Now i can hide the popup whenever the user clicks the mouse
 outside of it using the default popup-panel property provided by GWT.
 Apart from that I also need to listen to keyboard so that if the user
 hits ESC on the keyboard my popup should disappear from the screen.
 Any idea how to implement in 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: jsp + javascript code not working. why?

2009-01-02 Thread Hasan Turksoy
@Reinier; yes, it's a normal jsp page... but not working on GWT's tomcat
instance...
@Joe; Thanks, it worked by your suggested solution...

BTW, does anybody know the reason why GWT's internal tomcat not working with
a valid jsp code which is working on normal tomcat instances? I'd be
appreciated if a GWT tomcat implementor, watching this thread, explains...

Regards,

Hasan...

On Fri, Jan 2, 2009 at 6:47 AM, Joe Cole profilercorporat...@gmail.comwrote:


 See my post:

 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4d7c77f94de90529

 It should help. You'll need to override the gwtshellservlet and make
 sure that you process the html files as the generated servlets.
 Not sure if anyone has done it, but it would be a great addition to
 gwt itself.

 On Jan 2, 11:07 am, Hasan Turksoy hturk...@gmail.com wrote:
  Hi all,
 
  i want to change my main html page to a jsp page - to get some request
  parameters to process in gwt code. But its not working... Below is a
 simple
  test code which is working on tomcat but not working on shell...
 
  
  script language=javascript
  % String str = TEST; %
  var s=%=str%;
  alert(s);
  /script
  
 
  Anybody knows the reason?
 
  Thanks and regards,
 
  Hasan...
 


--~--~-~--~~~---~--~~
You received 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: jsp + javascript code not working. why?

2009-01-02 Thread Hasan Turksoy
sorry for forgotting a point;

in addition, i'm reading those request parameters at my GWT EntryPoint class
as below;

Dictionary params = Dictionary.getDictionary(parameters);
String action = params.get(action);
String id = params.get(id);

Hasan...

On Fri, Jan 2, 2009 at 4:18 PM, Hasan Turksoy hturk...@gmail.com wrote:


 of course;

 - my custom servlet which is extending from GWTShellServlet:
 CustomShellServlet.javahttp://code.google.com/p/apiks/source/browse/trunk/src/edu/hacettepe/bote/server/servlet/CustomShellServlet.java
 - my FreeMarker template to generate application entry page (by custom
 servlet above): 
 ApiksApp.ftlhttp://code.google.com/p/apiks/source/browse/trunk/src/edu/hacettepe/bote/server/freemarker/templates/ApiksApp.ftl
 - plus; changed the web.xml (from
 gwt-dev-windows.jar\com\google\gwt\dev\etc\tomcat\webapps\ROOT\WEB-INF) to
 point to my custom servlet...

 in summary: i'm catching my target request (at servlet), getting necessary
 request parameters,
 and generating my main page by using a FreeMarker template.

 tried it... working as expected... ;)

 Hasan...



 On Fri, Jan 2, 2009 at 3:10 PM, Joe Cole profilercorporat...@gmail.comwrote:


 Hasan,

 Can you post how you got it working?

 On Jan 2, 10:50 pm, Hasan Turksoy hturk...@gmail.com wrote:
  @Reinier; yes, it's a normal jsp page... but not working on GWT's tomcat
  instance...
  @Joe; Thanks, it worked by your suggested solution...
 
  BTW, does anybody know the reason why GWT's internal tomcat not working
 with
  a valid jsp code which is working on normal tomcat instances? I'd be
  appreciated if a GWT tomcat implementor, watching this thread,
 explains...
 
  Regards,
 
  Hasan...
 
  On Fri, Jan 2, 2009 at 6:47 AM, Joe Cole profilercorporat...@gmail.com
 wrote:
 
 
 
   See my post:
 
  http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa.
 ..
 
   It should help. You'll need to override the gwtshellservlet and make
   sure that you process the html files as the generated servlets.
   Not sure if anyone has done it, but it would be a great addition to
   gwt itself.
 
   On Jan 2, 11:07 am, Hasan Turksoy hturk...@gmail.com wrote:
Hi all,
 
i want to change my main html page to a jsp page - to get some
 request
parameters to process in gwt code. But its not working... Below is a
   simple
test code which is working on tomcat but not working on shell...
 

script language=javascript
% String str = TEST; %
var s=%=str%;
alert(s);
/script

 
Anybody knows the reason?
 
Thanks and regards,
 
Hasan...
 



--~--~-~--~~~---~--~~
You received 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 change the name of the host html page in project

2008-12-29 Thread Hasan Turksoy
this entry may help you...
http://java.dzone.com/tips/getting-rid-package-based-gwt-

Hasan

On Mon, Dec 29, 2008 at 3:23 PM, giannisdag pascoua...@gmail.com wrote:


 Hi,
 I can' t figure out the solution to a simple problem. I want to rename
 my first html page to index.html. I am using eclipse. I have renamed
 the html page and the corresponding java class file to index.htm. Also
 i have changed the entry point of the settings xml file to
 entry-point class='com.xel.gwt.client.index'/
 But when i am running in host mode, i keep getting the following
 error.
 [WARN] Resource not found: villaView.html; (could a file be missing
 from the public path or a servlet tag misconfigured in module
 com.xel.gwt.villaView.gwt.xml ?)
 [TRACE] The development shell servlet received a request for
 'villaView.html' in module 'com.xel.gwt.villaView.gwt.xml'
 How can I change the development shell servlet to fix the problem?
 


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



reloading pagingscrolltable's listed data

2008-12-11 Thread Hasan Turksoy


Hi all,

i have a pagingscrolltable which shows search results according to
some user entered search criterias.

How can i change the listed data of pagingscrolltable?

seems i can change the listed data if i change the tablemodel - right?
if so, how can i change the tablemodel of a pagingscrolltable? (since
it seems readonly).

Thanks in advance,

Hasan Turksoy
http://www.jroller.com/hasant
--~--~-~--~~~---~--~~
You received 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's the caching solution for immutable tablemodels?

2008-12-10 Thread Hasan Turksoy

Hi all,

Env; GWT-1.5.3, GWTIncubator-compiled code from latest incubator src

it seems CachedTableModel will be available only for
MutableTableModels (from the latest incubator src). Anybody knows the
reason behind this?

I want to use a paging scroll table with a custom immutable model
(extends from TableModel). I don't want to make RPC's for every page
change. So what should i do to somehow enable a caching mechanism for
this?

my usage is like this;
--
public class MyTableModel extends TableModelMyType { ... }
final PagingScrollTableMyType scrollTable = new
PagingScrollTableMyType(new MyTableModel(), ...);
--

I didn't extend from MutableTableModel since my list will be
readonly... (any misusage here?)

Thanks,

Hasan Turksoy
http://www.jroller.com/hasant

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---