Passing form object

2010-03-28 Thread Vik
Hie

I have a gwt FormPanel component in my onModuleLoad method.

At onSubmitHandler I have to push the data to server. So is there any way to
pass the complete form object or I have to pass all the fields of form
independently?


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.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-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.



Trying a simple Google Web Toolkit app, with no success

2010-03-28 Thread Jeremy R
Hi; I'm trying to evaluate Google Web Toolkit pretty much as an
experiment.  I have the simplest possible demo, a Hello World level
app, that runs happily in devmode on my Windows XP system, as well as
with Tomcat 6 on the same system.

When I upload the same WAR file to MyServer/webapps, it gets
expanded and the initial page is displayed (http://
www.jeremyrussell.lunarpages.com/gwtest2).  Clicking the send button
causes an Error 500, with Firefox/Firebug reporting the following
message:


title500 Servlet Exception/titleh1500 Servlet Exception/
h1codeprejavax.servlet.ServletException: Class
`com.lunarpages.jeremyrussell.server.GreetingServiceImpl'was not found
in classpath.Classes normally belong in /gwtest2/WEB-INF/classes.   at
com.caucho.server.http.Application.instantiateServlet(Application.java:
3198)   at
com.caucho.server.http.Application.createServlet(Application.java:
3104)   at
com.caucho.server.http.Application.loadServlet(Application.java:
3065)   at
com.caucho.server.http.QServletConfig.loadServlet(QServletConfig.java:
435)   at
com.caucho.server.http.Application.getFilterChainServlet(Application.java:
2809)   at
com.caucho.server.http.Application.buildFilterChain(Application.java:
2765)   at com.caucho.server.http.Invocation.service(Invocation.java:
313)   at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:
135)   at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:
346)   at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:
274)   at com.caucho.server.TcpConnection.run(TcpConnection.java:
139)   at java.lang.Thread.run(Thread.java:534)/pre/codehr /
smallResin 2.1.13 (built Thu Apr  1 10:57:42 PST 2004)/small

Via the cPanel file manager, I have confirmed that
com.lunarpages.jeremyrussell.server.GreetingServiceImpl.class is
present in the /public_html/webapps/gwtest2/WEB-INF/classes directory.

Since this application works on the embedded Jetty server provided
with GWT, and the identical WAR file works on Tomcat 6.x and on
GlassFish v2.1 as bundled with Eclipse, I can only think this must be
something caused by Resin.

And there, I come to a complete dead end.

Can anyone make a suggestion as to why this won't run at LunarPages
(on Rigel, FYI)?

Thanks in advance ...

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



Error while lauching GWT module

2010-03-28 Thread thierry LE CONNIAT
HI Everybody,

I am building the tutorial's project simpleExample, which is about GWT
and REST.
I have made a run configuration of type java application (main class :
com.google.gwt.dev.DevMode, arguments :
org.restlet.example.gwt.SimpleExample )

the launcher propose to use for startup url the  file testGWT.html
and when i launch the default brower (chrome) i get :
[ERROR] Unable to find type
'org.restlet.example.gwt.client.SimpleExample'
[ERROR] Hint: Check that the type name
'org.restlet.example.gwt.client.SimpleExample' is really what you
meant
[ERROR] Hint: Check that your classpath includes all required source
roots

i have tried to add source in classpath but not possible in the run
configuration, so i add it in source, but without success.

i dont' see the problem ? some help would be very appreciated .

Bye

-- 
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 can i send an RPC calls from server to client?

2010-03-28 Thread bitliner
Hi,
i would that when on the server i add an istance of MyModel i can
modify all windows that are in the ListWindow and that are on the
client (where window can be also MyWidget).
Do i need an RPC from the client to the server?
Or how can i implementing this situation?
Thanks.

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



RPC not working on linux deployment

2010-03-28 Thread Manish
Hi,
I have an application which works fine on localhost in windows
environment. But when i deploy it on linux server at production, It
gives me error 404 ( Resource not found) .

My Service is :

@RemoteServiceRelativePath(exam)
public interface QuestionService extends RemoteService {
  String enterQuestion(QuestionUnit unit);
}

Corresponding web.xml entry is:
servlet
servlet-namequestionServlet/servlet-name
servlet-classcom.evita.exam.server.QuestionServ/servlet-class
  /servlet

  servlet-mapping
servlet-namequestionServlet/servlet-name
url-pattern/exammaster/exam/url-pattern
  /servlet-mapping
  servlet
My gwt.xml file says:
module rename-to='exammaster'
inherits name='com.google.gwt.user.User'/
 inherits name='com.google.gwt.user.theme.standard.Standard'/
  entry-point class='com.evita.exam.client.ExamMaster'/
 servlet path='/exammaster/exam'
class='com.evita.exam.server.QuestionServ'/

All works fine in windows at localhost. while on linux tomcat at
production it says

404, Resource not found ( /exammaster/exam).

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



Problem in Running GWT NetBeans Tutorial

2010-03-28 Thread yccheok
I am using

GWT4NB 2.6.17
NetBeans 6.7.1
GlassFish v2.1

I try to follow the tutorial 
http://netbeans.org/kb/docs/web/quickstart-webapps-gwt.html#creating

However, when I click run, I get the follow error in HelloGWT (run)
log Windows


...
...
do-gwt-compile-20:
In-place deployment at C:\Projects\HelloGWT\build\web
Start registering the project's server resources
Finished registering server resources
moduleID=HelloGWT
While redeploying, trying to stop the application in target server
failed; Error Flushing ConfigContext
com.sun.enterprise.config.ConfigContext: Url=C:/Sun/AppServer/domains/
domain1\config\domain.xml, ReadOnly=false, ResolvePath=true,
LastModified Timestamp=1250764969788, isChanged=false,
Autocommit=false, isConfigBeanNull=false
C:\Projects\HelloGWT\nbproject\build-impl.xml:568: The module has not
been deployed.
BUILD FAILED (total time: 1 second)


and the following error in GlassFish v2.1 log Windows


...
...
[AutoDeploy] Selecting file C:\Sun\AppServer\lib\install\applications
\MEjbApp.ear for autodeployment.
deployed with moduleid = MEjbApp
ADM0013: A config exception occurred. Details are:
com.sun.enterprise.config.ConfigException: Error Flushing
ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/
AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
ResolvePath=true, LastModified Timestamp=1250764969788,
isChanged=true, Autocommit=false, isConfigBeanNull=false
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
356)
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
372)

...
...

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
;_RequestID=cae5e2be-a0f8-45a8-89bb-4cc70515b085;|DPL8011:
autodeployment failure while deploying the application : Error
Flushing ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/
Sun/AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
ResolvePath=true, LastModified Timestamp=1250764969788,
isChanged=true, Autocommit=false, isConfigBeanNull=false

[AutoDeploy] Autodeploy failed : C:\Sun\AppServer\lib\install
\applications\__ejb_container_timer_app.ear.
[AutoDeploy] Selecting file C:\Sun\AppServer\lib\install\applications
\__JWSappclients.ear for autodeployment.
deployed with moduleid = __JWSappclients
ADM0013: A config exception occurred. Details are:
com.sun.enterprise.config.ConfigException: Error Flushing
ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/
AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
ResolvePath=true, LastModified Timestamp=1250764969788,
isChanged=true, Autocommit=false, isConfigBeanNull=false
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
356)
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
372)

...
...
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
SMGT0007: Self Management Rules service is enabled
JBIFW5002: Failed to write httpsoap configuration file C:/Sun/
AppServer/domains/domain1/jbi\components\sun-http-binding\install_root
\workspace\config.properties : C:\Sun\AppServer\domains\domain1\jbi
\components\sun-http-binding\install_root\workspace\config.properties
(Access is denied)
Application server startup complete.
deployed with moduleid = HelloGWT
ADM0013: A config exception occurred. Details are:
com.sun.enterprise.config.ConfigException: Error Flushing
ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/
AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
ResolvePath=true, LastModified Timestamp=1250764969788,
isChanged=true, Autocommit=false, isConfigBeanNull=false
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
356)
at
com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.java:
372)

...
...
at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:
265)
at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:
116)
Undeployment of component [HelloGWT] failed. Application HelloGWT is
referenced by server and must be referenced by no server instances or
clusters.


Anything I had missed out? Thanks.

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



Re: running gwt visualisation sample

2010-03-28 Thread thierry LE CONNIAT
hi, normaly, right click on the project and choice  run as web
application.

On 26 mar, 18:07, imgnik ytbr...@gmail.com wrote:
 so how do i run the samples of gwt visualisation?

 I am using eclipse.

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



Service per Servlet?

2010-03-28 Thread cetina
Hi im a newbie in GWT and i have a very basic question.

What im doing its create a 1 RPC Service ( GWTService, GWTServiceAsync
and GWTServiceImpl)
 with many methods in GWTService and GWTServiceAsync and in the
GWTServiceImpl i implement all of those methods,
my question is this is correct or if i have to create a service (ex:
GWTService2, GWTServiceAsync2 and GWTServiceImpl2)  per method?

I know that GWTServiceImpl its a servlet do i have to create many
servlets for many services?
Do i have to create a service per method? or i can use the same
service clases   ( GWTService, GWTServiceAsync and GWTServiceImpl) for
all my methods??

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



RPC not working on linux deployment

2010-03-28 Thread Manish Mudgal
Hi,
I have an application which works fine on localhost in windows
environment. But when i deploy it on linux server at production, It
gives me error 404 ( Resource not found) .

My Service is :

@RemoteServiceRelativePath(exam)
public interface QuestionService extends RemoteService {
 String enterQuestion(QuestionUnit unit);
}

Corresponding web.xml entry is:
servlet
   servlet-namequestionServlet/servlet-name
   servlet-classcom.evita.exam.server.QuestionServ/servlet-class
 /servlet

 servlet-mapping
   servlet-namequestionServlet/servlet-name
   url-pattern/exammaster/exam/url-pattern
 /servlet-mapping
 servlet
My gwt.xml file says:
module rename-to='exammaster'
inherits name='com.google.gwt.user.User'/
 inherits name='com.google.gwt.user.theme.standard.Standard'/
 entry-point class='com.evita.exam.client.ExamMaster'/
 servlet path='/exammaster/exam'
class='com.evita.exam.server.QuestionServ'/

All works fine in windows at localhost. while on linux tomcat at
production it says

404, Resource not found ( /exammaster/exam).

Please 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-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.



Problems GWT IE 6 Help...

2010-03-28 Thread Diego Gonzalez
Hey People
 how you doing, always i read this forum, but never was post
something, now i have some issues with GWT , the problem is :

I have 2 enviroments , QA and production, in QA everthing
work perfect , even i can see the gwt appliaction in Chrome , Firefox
and IE 6 ,  in the other enviroment, in production, is when troubles
begins , my application works perfect in FireFox and Chrome but in IE6
is doesn't work , stay keep on the initial loading , is like if the
RPC never come until the client surface , anyway, this appliacation
got it work in IE 6 , because IE6 is the standard declared for my
client , all our applicactions got it works en IE6 ...


Any ideas ??? .. Browser config maybe ???. remember ,
works perfect in Firefox and Chrome



Any help is welcome.

Tks guys..

-- 
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: Problem in Running GWT NetBeans Tutorial

2010-03-28 Thread tim.lebed...@googlemail.com
Hello,

try to undeploy the app (eventually through the administration
console)

--Tim

On 28 Mrz., 09:10, yccheok yancheng.ch...@gmail.com wrote:
 I am using

 GWT4NB 2.6.17
 NetBeans 6.7.1
 GlassFish v2.1

 I try to follow the 
 tutorialhttp://netbeans.org/kb/docs/web/quickstart-webapps-gwt.html#creating

 However, when I click run, I get the follow error in HelloGWT (run)
 log Windows

 ...
 ...
 do-gwt-compile-20:
 In-place deployment at C:\Projects\HelloGWT\build\web
 Start registering the project's server resources
 Finished registering server resources
 moduleID=HelloGWT
 While redeploying, trying to stop the application in target server
 failed; Error Flushing ConfigContext
 com.sun.enterprise.config.ConfigContext: Url=C:/Sun/AppServer/domains/
 domain1\config\domain.xml, ReadOnly=false, ResolvePath=true,
 LastModified Timestamp=1250764969788, isChanged=false,
 Autocommit=false, isConfigBeanNull=false
 C:\Projects\HelloGWT\nbproject\build-impl.xml:568: The module has not
 been deployed.
 BUILD FAILED (total time: 1 second)

 and the following error in GlassFish v2.1 log Windows

 ...
 ...
 [AutoDeploy] Selecting file C:\Sun\AppServer\lib\install\applications
 \MEjbApp.ear for autodeployment.
 deployed with moduleid = MEjbApp
 ADM0013: A config exception occurred. Details are:
 com.sun.enterprise.config.ConfigException: Error Flushing
 ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/
 AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
 ResolvePath=true, LastModified Timestamp=1250764969788,
 isChanged=true, Autocommit=false, isConfigBeanNull=false
         at
 com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.ja 
 va:
 356)
         at
 com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.ja 
 va:
 372)

 ...
 ...

         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
 ;_RequestID=cae5e2be-a0f8-45a8-89bb-4cc70515b085;|DPL8011:
 autodeployment failure while deploying the application : Error
 Flushing ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/
 Sun/AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
 ResolvePath=true, LastModified Timestamp=1250764969788,
 isChanged=true, Autocommit=false, isConfigBeanNull=false
 
 [AutoDeploy] Autodeploy failed : C:\Sun\AppServer\lib\install
 \applications\__ejb_container_timer_app.ear.
 [AutoDeploy] Selecting file C:\Sun\AppServer\lib\install\applications
 \__JWSappclients.ear for autodeployment.
 deployed with moduleid = __JWSappclients
 ADM0013: A config exception occurred. Details are:
 com.sun.enterprise.config.ConfigException: Error Flushing
 ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/
 AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
 ResolvePath=true, LastModified Timestamp=1250764969788,
 isChanged=true, Autocommit=false, isConfigBeanNull=false
         at
 com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.ja 
 va:
 356)
         at
 com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.ja 
 va:
 372)

 ...
 ...
 WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
 SMGT0007: Self Management Rules service is enabled
 JBIFW5002: Failed to write httpsoap configuration file C:/Sun/
 AppServer/domains/domain1/jbi\components\sun-http-binding\install_root
 \workspace\config.properties : C:\Sun\AppServer\domains\domain1\jbi
 \components\sun-http-binding\install_root\workspace\config.properties
 (Access is denied)
 Application server startup complete.
 deployed with moduleid = HelloGWT
 ADM0013: A config exception occurred. Details are:
 com.sun.enterprise.config.ConfigException: Error Flushing
 ConfigContext com.sun.enterprise.config.ConfigContext: Url=C:/Sun/
 AppServer/domains/domain1\config\domain.xml, ReadOnly=false,
 ResolvePath=true, LastModified Timestamp=1250764969788,
 isChanged=true, Autocommit=false, isConfigBeanNull=false
         at
 com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.ja 
 va:
 356)
         at
 com.sun.enterprise.config.impl.ConfigContextImpl.flush(ConfigContextImpl.ja 
 va:
 372)

 ...
 ...
         at
 com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:
 265)
         at
 com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadI 
 mpl.java:
 116)
 Undeployment of component [HelloGWT] failed. Application HelloGWT is
 referenced by server and must be referenced by no server instances or
 clusters.

 Anything I had missed out? Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To 

Re: Trying a simple Google Web Toolkit app, with no success

2010-03-28 Thread bch...@gmail.com
1. Like you said, the problem seems to be Resin. Did you try asking
the Resin forums ?
2. Resin 2 is like built in 2004. Did you try Resin 3 ?

On Mar 26, 11:28 pm, Jeremy R ukdbtrai...@googlemail.com wrote:
 Hi; I'm trying to evaluate Google Web Toolkit pretty much as an
 experiment.  I have the simplest possible demo, a Hello World level
 app, that runs happily in devmode on my Windows XP system, as well as
 with Tomcat 6 on the same system.

 When I upload the same WAR file to MyServer/webapps, it gets
 expanded and the initial page is displayed 
 (http://www.jeremyrussell.lunarpages.com/gwtest2).  Clicking the send button
 causes an Error 500, with Firefox/Firebug reporting the following
 message:

 title500 Servlet Exception/titleh1500 Servlet Exception/
 h1codeprejavax.servlet.ServletException: Class
 `com.lunarpages.jeremyrussell.server.GreetingServiceImpl'was not found
 in classpath.Classes normally belong in /gwtest2/WEB-INF/classes.   at
 com.caucho.server.http.Application.instantiateServlet(Application.java:
 3198)   at
 com.caucho.server.http.Application.createServlet(Application.java:
 3104)   at
 com.caucho.server.http.Application.loadServlet(Application.java:
 3065)   at
 com.caucho.server.http.QServletConfig.loadServlet(QServletConfig.java:
 435)   at
 com.caucho.server.http.Application.getFilterChainServlet(Application.java:
 2809)   at
 com.caucho.server.http.Application.buildFilterChain(Application.java:
 2765)   at com.caucho.server.http.Invocation.service(Invocation.java:
 313)   at
 com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:
 135)   at
 com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:
 346)   at
 com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:
 274)   at com.caucho.server.TcpConnection.run(TcpConnection.java:
 139)   at java.lang.Thread.run(Thread.java:534)/pre/codehr /

 smallResin 2.1.13 (built Thu Apr  1 10:57:42 PST 2004)/small

 Via the cPanel file manager, I have confirmed that
 com.lunarpages.jeremyrussell.server.GreetingServiceImpl.class is
 present in the /public_html/webapps/gwtest2/WEB-INF/classes directory.

 Since this application works on the embedded Jetty server provided
 with GWT, and the identical WAR file works on Tomcat 6.x and on
 GlassFish v2.1 as bundled with Eclipse, I can only think this must be
 something caused by Resin.

 And there, I come to a complete dead end.

 Can anyone make a suggestion as to why this won't run at LunarPages
 (on Rigel, FYI)?

 Thanks in advance ...

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



Re: Service per Servlet?

2010-03-28 Thread Dan
You can have many methods in one service. It works fine for me, and is
certainly less work.

It would be a good idea for the methods in serviceImpl to call other
methods to do the work, so the source for that class doesn't get
unmanageable.

On Mar 26, 1:54 pm, cetina maxtorz...@gmail.com wrote:
 Hi im a newbie in GWT and i have a very basic question.

 What im doing its create a 1 RPC Service ( GWTService, GWTServiceAsync
 and GWTServiceImpl)
  with many methods in GWTService and GWTServiceAsync and in the
 GWTServiceImpl i implement all of those methods,
 my question is this is correct or if i have to create a service (ex:
 GWTService2, GWTServiceAsync2 and GWTServiceImpl2)  per method?

 I know that GWTServiceImpl its a servlet do i have to create many
 servlets for many services?
 Do i have to create a service per method? or i can use the same
 service clases   ( GWTService, GWTServiceAsync and GWTServiceImpl) for
 all my methods??

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



Re: Trying a simple Google Web Toolkit app, with no success

2010-03-28 Thread Jeremy R

Further to my original question, this appears to be a general issue
with JSPs at my hosting co.

More when I get an answer from them.


On Mar 26, 11:28 am, Jeremy R ukdbtrai...@googlemail.com wrote:
 Hi; I'm trying to evaluate Google Web Toolkit pretty much as an
 experiment.  I have the simplest possible demo, a Hello World level
 app, that runs happily in devmode on my Windows XP system, as well as
 with Tomcat 6 on the same system.

 When I upload the same WAR file to MyServer/webapps, it gets
 expanded and the initial page is displayed 
 (http://www.jeremyrussell.lunarpages.com/gwtest2).  Clicking the send button
 causes an Error 500, with Firefox/Firebug reporting the following
 message:

 title500 Servlet Exception/titleh1500 Servlet Exception/
 h1codeprejavax.servlet.ServletException: Class
 `com.lunarpages.jeremyrussell.server.GreetingServiceImpl'was not found
 in classpath.Classes normally belong in /gwtest2/WEB-INF/classes.   at
 com.caucho.server.http.Application.instantiateServlet(Application.java:
 3198)   at
 com.caucho.server.http.Application.createServlet(Application.java:
 3104)   at
 com.caucho.server.http.Application.loadServlet(Application.java:
 3065)   at
 com.caucho.server.http.QServletConfig.loadServlet(QServletConfig.java:
 435)   at
 com.caucho.server.http.Application.getFilterChainServlet(Application.java:
 2809)   at
 com.caucho.server.http.Application.buildFilterChain(Application.java:
 2765)   at com.caucho.server.http.Invocation.service(Invocation.java:
 313)   at
 com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:
 135)   at
 com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:
 346)   at
 com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:
 274)   at com.caucho.server.TcpConnection.run(TcpConnection.java:
 139)   at java.lang.Thread.run(Thread.java:534)/pre/codehr /

 smallResin 2.1.13 (built Thu Apr  1 10:57:42 PST 2004)/small

 Via the cPanel file manager, I have confirmed that
 com.lunarpages.jeremyrussell.server.GreetingServiceImpl.class is
 present in the /public_html/webapps/gwtest2/WEB-INF/classes directory.

 Since this application works on the embedded Jetty server provided
 with GWT, and the identical WAR file works on Tomcat 6.x and on
 GlassFish v2.1 as bundled with Eclipse, I can only think this must be
 something caused by Resin.

 And there, I come to a complete dead end.

 Can anyone make a suggestion as to why this won't run at LunarPages
 (on Rigel, FYI)?

 Thanks in advance ...

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



Re: Getting error $doc.getBoxObjectFor is not a function in Firefox 3.6

2010-03-28 Thread Rich
Is there any further information on how to modify the gwt-user.jar
file?

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



Modifying gwt-user.jar

2010-03-28 Thread Rich
Because of the doc.getBoxObjectFor is not a function problem with
Firefox 3.6 I need to modify a source file in gwt-user.jar.
Unfortunately I can't just upgrate gwt-user.jar to the new version
because it is not supported by my version of IntelliJ IDEA 7.04 and it
would cost me several hundred dollars to upgrade just to fix a menu
issue (due to deprecated code) in my application.

Can anyone indicate how to change and recompile a source file in gwt-
user.jar?

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



Progress indicator

2010-03-28 Thread Vik
Hie

In my gwt app when i hit say submit button in a form it takes a while to get
the response from server.
Currently it seems nothing is happened on clicking the button.

So how to show some kind of indicator showing its in progress?

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.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-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: Progress indicator

2010-03-28 Thread Thomas Broyer


On Mar 28, 6:49 pm, Vik vik@gmail.com wrote:
 Hie

 In my gwt app when i hit say submit button in a form it takes a while to get
 the response from server.
 Currently it seems nothing is happened on clicking the button.

 So how to show some kind of indicator showing its in progress?

You can show something (a label, a popup, an animated GIF image, etc.)
in onSubmit and hide it in onSubmitComplete; but you won't be able to
show progress.

-- 
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: Modifying gwt-user.jar

2010-03-28 Thread kozura
Easy, use SVN to check out the revision of GWT corresponding to the
GWT version you need, make your changes, and recompile.  Full
instructions here:
http://code.google.com/webtoolkit/makinggwtbetter.html#workingoncode

-- 
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: Modifying gwt-user.jar

2010-03-28 Thread Thomas Broyer


On Mar 28, 5:49 pm, Rich rvdown...@gmail.com wrote:
 Because of the doc.getBoxObjectFor is not a function problem with
 Firefox 3.6 I need to modify a source file in gwt-user.jar.
 Unfortunately I can't just upgrate gwt-user.jar to the new version
 because it is not supported by my version of IntelliJ IDEA 7.04 and it
 would cost me several hundred dollars to upgrade just to fix a menu
 issue (due to deprecated code) in my application.

 Can anyone indicate how to change and recompile a source file in gwt-
 user.jar?

It's Java, so putting a class with the very same fully-qualified name
earlier in the classpath is enough to do an override; without even
modifying the JAR.
Or you can also modify the JAR (hint: a JAR is hardly different from a
ZIP), no need to recompile as GWT needs the source (*.java) file, not
the compiled (*.class) one (except in DevMode, but again, it's Java:
you can compile a single java-class, you don't have to compile the
whole project)

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



migration from GWT 1.4 to GWT 1.7 throwing exception content type was text/palin

2010-03-28 Thread pravn
Hi,

 After migrating to GWT 1.7 from GWT 1.4 we are getting an exception
saying  content type was text/plain; Expcted text/x-gwt-rpc.

Can anyone suggest what might be the reason? Is there any
configuration changes required?

We have checked the jar files used and all of them are from GWT 1.7
only.

Appreciate your inputs to resolve this issue.

Thanks and Regards,
Praveen

-- 
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: Dom element returns null after uiBinder bound?

2010-03-28 Thread Thomas Broyer


On Mar 27, 4:08 pm, matttai matt...@hotmail.com wrote:
 Here it is in a quick summary:

 - I have declared a html cell element td Id=unit / in the uibinder
 xml file.

 - In composite widget i then bind the xml via :
 initWidget(binder.createAndBindUi(this));

 - Directly after this i then call : Dom.getElement(unit);

 This returns null. I am curious to know why this is the case?
 I am under the impression that the Dom has been created once the bind
 has taken place.

...but it's not automatically attached to the document (this will only
happen when you add your Composite as a child of another widget).

BTW, why not using ui:field=unit? (instead of id=unit)

-- 
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: Error while lauching GWT module

2010-03-28 Thread kozura
Double check that the src directory is included in the run
configuration under the Classpath tab.  Eclipse can be too smart and
know to find the java files from the Build Path without necessarily
including them in the classpath, but the GWT compiler needs to be able
to find them there.  If you don't see src, you can do Advanced, Add
Folders, and select the Project/src directory.

This should all be handled automatically if you install the Eclipse
plugin.

-- 
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: Developing 2.0 like forms using GWT

2010-03-28 Thread kozura
Vik, my answer to this and your other question is, you may not want to
be using forms, which are more pre-AJAX ways of getting info from the
user, and are included in GWT mostly for compatibility with existing
form-based services.  If you want a truly dynamic application with
validations and the like, build it using the various GUI components
like TextBox, and use RPC calls to communicate with the server.

-- 
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: Modifying gwt-user.jar

2010-03-28 Thread Rich
On Mar 28, 1:11 pm, Thomas Broyer t.bro...@gmail.com wrote:

 It's Java, so putting a class with the very same fully-qualified name
 earlier in the classpath is enough to do an override; without even
 modifying the JAR.
 Or you can also modify the JAR (hint: a JAR is hardly different from a
 ZIP), no need to recompile as GWT needs the source (*.java) file, not
 the compiled (*.class) one (except in DevMode, but again, it's Java:
 you can compile a single java-class, you don't have to compile the
 whole project)

Not sure how to use the same fully-qualified name without the file
being in the same place as the one it is intending to replace.  If it
is in the same place, then it seems I have to remove the old one from
the jar and put the new .java file in the jar and then recompile.  I
haven't compiled a file using java (as opposed to an IDE) in many
years.   I wouldn't know how to set up a project to compile one lonely
java source file.  I guess I could attempt to follow the preceding
response, but I'm not sure it is worth the trouble.

Very few people use my site.  I'll just tell them not to use Firefox.

-- 
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: Trying a simple Google Web Toolkit app, with no success

2010-03-28 Thread Jeremy R


On Mar 28, 9:33 am, bch...@gmail.com bch...@gmail.com wrote:
 1. Like you said, the problem seems to be Resin. Did you try asking
 the Resin forums ?

No - but I will ...

 2. Resin 2 is like built in 2004. Did you try Resin 3 ?

Nope - I don't have that option, since I'm constrained by my web
hosting company.

Thanks ...

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



SVG in UiBinder templates

2010-03-28 Thread Lukas Laag
Hi,
I have just completed a development to let one add SVG to UiBinder
templates. You can instatiate an SVGImage widget, and specify the SVG
either with an SVGResource from a client bundle, or directly inline.
If you use the latter, you can bind variables to any element in the
SVG document, add event handlers declaratively, localize SVG, use
obfuscated styles, and all the cool things UiBinder can do.

I have an online demo for this (go to
http://www.vectomatic.org/gwt/lib-gwt-svg-samples/lib-gwt-svg-samples.html,
then look at the widgets tab), along with an article which discusses
this in more depth (http://www.vectomatic.org/lib-gwt-svg/uibinder-
integration-with-lib-gwt-svg)

-- 
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: Object nog in gwt.rpc file?

2010-03-28 Thread Ed
I have been staring at the rpc.log file which contains something like
this:
---
bla.AdministratorDto
   Serialization status
  Not serializable
   Path
  'bla.AdministratorDto' is reachable as a subtype of type 'class
bla.MemberDto'
  'bla.MemberDto' is reachable from field 'member' of type
'bla.InternetAccountDto'
  'bla.InternetAccountDto' is reachable as a subtype of type
'class bla.InternetAccountDto'
  'bla.InternetAccountDto' is reachable from field
'internetAccount' of type 'bla.MemberDto'
  'bla.MemberDto' is reachable as a subtype of type 'class
bla.MemberDto'
  Started from 'bla.MemberDto'
---

But it doesn't tell me why it's not included in the policy file. What
am I missing ?
I mean: MemberDto is nicely included and the sub class
AdministratorDto isn't :(
And the class looks like this:
---
public class AdministratorDto extends MemberDto {

private AdminAccessDto access;

public AdminAccessDto getAccess() {
return this.access;
}

public void setAccess(final AdminAccessDto access) {
this.access = access;
}
---

The rpc.log is nice to see why something is included by following the
path... But it doesn't tell me why something is not included.. at
least.. I don't understand 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-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: Modifying gwt-user.jar

2010-03-28 Thread kozura
Hi Rich, I believe you'd just need to checkout svn/releases/1.6 1.6
instead of trunk.  I'm not sure it there's something particular to do
to get the proper version of the tools directory to match with that,
but try it and see if it works.

jk

On Mar 28, 1:23 pm, Rich rvdown...@gmail.com wrote:
 On Mar 28, 1:09 pm, kozura koz...@gmail.com wrote:

  Easy, use SVN to check out the revision of GWT corresponding to the
  GWT version you need, make your changes, and recompile.  Full
  instructions 
  here:http://code.google.com/webtoolkit/makinggwtbetter.html#workingoncode

 What would the syntax be to download the source for version 1.4.62?
 The only syntax shown is:

 ~/gwt$ svn checkouthttp://google-web-toolkit.googlecode.com/svn/trunk/
 trunk

 but they show no syntax for specifying a specific version.  Does one
 have to extract the source from the 1.4.62 jar file into the structure
 created by the svn checkout command?

-- 
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: Object nog in gwt.rpc file?

2010-03-28 Thread kozura
Maybe just throw the relevant bits of MemberDto and AdministratorDto
classes up here - all the members and the constructor?

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



load content of directory server side

2010-03-28 Thread sc3sc3 .
hi

i have directory with images im my war file:

/war/images

how can i iterate over the contents of this directory
when my application starts

i have to build: ListString imageNames

thanks for your time
sc3*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-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: load content of directory server side

2010-03-28 Thread Jeff Chimene
On 03/28/2010 11:19 AM, sc3sc3 . wrote:
 hi
 
 i have directory with images im my war file:
 
 /war/images
 
 how can i iterate over the contents of this directory
 when my application starts
 
 i have to build: ListString imageNames
 
 thanks for your time
 sc3*2
 

Can you define the images using a client bundle? See
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.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-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: Modifying gwt-user.jar

2010-03-28 Thread Rich
Well I finally got it but it wasn't nearly as simple as it should have
been.

After modifying the file and recompiling, then recompiling my program
and uploading to my web site I kept getting the same errors.  It seems
that there is a hidden .svn directory containing files which
automatically overwrite, at compile time, any changes one had made.
It took me a while to realize this.  So, I had to make the changes
also to these files after changing the permissions.  What a pain.
Anyway, things now work as expected.

Thanks for the 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-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: Modifying gwt-user.jar

2010-03-28 Thread Thomas Broyer


On Mar 28, 7:46 pm, Rich rvdown...@gmail.com wrote:
 On Mar 28, 1:11 pm, Thomas Broyer t.bro...@gmail.com wrote:

  It's Java, so putting a class with the very same fully-qualified name
  earlier in the classpath is enough to do an override; without even
  modifying the JAR.
  Or you can also modify the JAR (hint: a JAR is hardly different from a
  ZIP), no need to recompile as GWT needs the source (*.java) file, not
  the compiled (*.class) one (except in DevMode, but again, it's Java:
  you can compile a single java-class, you don't have to compile the
  whole project)

 Not sure how to use the same fully-qualified name without the file
 being in the same place as the one it is intending to replace.

Not at all. Think class path.

 If it
 is in the same place, then it seems I have to remove the old one from
 the jar and put the new .java file in the jar and then recompile.  I
 haven't compiled a file using java (as opposed to an IDE) in many
 years.   I wouldn't know how to set up a project to compile one lonely
 java source file.

Assuming you're using Eclipse:
1. Open (double-click) the file from the JAR, Eclipse should show you
the source (as it lives within the JAR). Copy.
2. Create a new class in your project with the same package and class
name. Paste (replacing everything else in the file).
3. Make your change
4. in your project's build path, in the order and export tab, make
sure your source folder comes before the gwt-user.jar (i.e. earlier in
the classpath)

That's 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-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: load content of directory server side Options

2010-03-28 Thread sc3sc3 .
Jeff Chimene wrote:

 On 03/28/2010 11:19 AM, sc3sc3 . wrote:
 hi
 i have directory with images im my war file:
 /war/images
 how can i iterate over the contents of this directory
 when my application starts
 i have to build: ListString imageNames
 thanks for your time
 sc3*2

 Can you define the images using a client bundle? See
 http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html

if i understand it right
using the above i have to manually define all the images

i would prefer reading the content of the directory 'on the fly'
there can be a lot of images

thanks

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



Re: load content of directory server side Options

2010-03-28 Thread Chad
On the server, you can use Java (or whatever else you want). So, make
an RPC call from the client to the server to get the file names. You
could return a string array. On the server, it could be as easy as:

public String[] getImageNames() {
  return new File('images').list();
}

Obviously, you would want to throw in some error checking and such.

HTH,
Chad

On Mar 28, 9:21 pm, sc3sc3 . sc3...@gmail.com wrote:
 Jeff Chimene wrote:
  On 03/28/2010 11:19 AM, sc3sc3 . wrote:
  hi
  i have directory with images im my war file:
  /war/images
  how can i iterate over the contents of this directory
  when my application starts
  i have to build: ListString imageNames
  thanks for your time
  sc3*2

  Can you define the images using a client bundle? See
 http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html

 if i understand it right
 using the above i have to manually define all the images

 i would prefer reading the content of the directory 'on the fly'
 there can be a lot of images

 thanks

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



Re: Developing 2.0 like forms using GWT

2010-03-28 Thread Vik
Hie

yeah i m using formPanel just to  wrap my gwt ui components. So, even after
using gwt components like textbox etc I am not sure
how to build a ajax type validation form.

Please advise

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Sun, Mar 28, 2010 at 10:58 PM, kozura koz...@gmail.com wrote:

 Vik, my answer to this and your other question is, you may not want to
 be using forms, which are more pre-AJAX ways of getting info from the
 user, and are included in GWT mostly for compatibility with existing
 form-based services.  If you want a truly dynamic application with
 validations and the like, build it using the various GUI components
 like TextBox, and use RPC calls to communicate with the server.

 --
 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=en.



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



Session management in GWT

2010-03-28 Thread Vik
Hie

I have a index.html page with a login module (build in gwt) embedded into
it.
Once the user provide authentication details and hit login button
I am redirecting the user to a new page named AdminDashboard.jsp

Now, I will be creating and embedding a dashboard using GWT components on
this page.
The question I have is how do i pass the user details from the login module
to admindashboard.jsp?
Please note that I am
using Window.Location.replace(/ui/page/AdminDashboard.jsp);  to navigate
to dashboard page.

Further, what is used in GWT to store the data in a session and then
validating it before user actions?

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.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-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: Developing 2.0 like forms using GWT

2010-03-28 Thread kozura
So don't use the FormPanel/Submit mechanism.  Instead add handlers to
the widgets for what you are trying to do, ala
http://code.google.com/webtoolkit/doc/latest/DevGuideUiHandlers.html.
For example you can add an Ok button with a ClickHandler that
gathers all the values from the GWT widgets that the user entered,
does error checks, and sends it to your server via RPC (see
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html).
Or you can add an OnBlurHandler or similar to a textArea that does
validation, turns it red as needed, whatever.

On Mar 28, 10:02 pm, Vik vik@gmail.com wrote:
 Hie

 yeah i m using formPanel just to  wrap my gwt ui components. So, even after
 using gwt components like textbox etc I am not sure
 how to build a ajax type validation form.

 Please advise

 Thankx and Regards

 Vik
 Founderwww.sakshum.comwww.sakshum.blogspot.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-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.



Few Openings in UI

2010-03-28 Thread sridevi macherla
Hi,

Few openings in User Interface on Java/J2EE in my organization, anyone
willing to relocate to bangalore and are interested.  Can send me their
resumes at the earliest.

Profile:
Exp 4+
UI: Java/J2EE/Servlets/JSP ( Core Java should be strong).
Location : Bangalore.

Thanks
Sri

-- 
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: Developing 2.0 like forms using GWT

2010-03-28 Thread Vik
hie

Great thanks.. along with this do you have any code example as well to do a
quick start?

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Mon, Mar 29, 2010 at 10:01 AM, kozura koz...@gmail.com wrote:

 So don't use the FormPanel/Submit mechanism.  Instead add handlers to
 the widgets for what you are trying to do, ala
 http://code.google.com/webtoolkit/doc/latest/DevGuideUiHandlers.html.
 For example you can add an Ok button with a ClickHandler that
 gathers all the values from the GWT widgets that the user entered,
 does error checks, and sends it to your server via RPC (see

 http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html
 ).
 Or you can add an OnBlurHandler or similar to a textArea that does
 validation, turns it red as needed, whatever.

 On Mar 28, 10:02 pm, Vik vik@gmail.com wrote:
  Hie
 
  yeah i m using formPanel just to  wrap my gwt ui components. So, even
 after
  using gwt components like textbox etc I am not sure
  how to build a ajax type validation form.
 
  Please advise
 
  Thankx and Regards
 
  Vik
  Founderwww.sakshum.comwww.sakshum.blogspot.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-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=en.



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



Can someone brief out about MVP

2010-03-28 Thread sridevi macherla
Hi,

Can someone brief out about Model View Presenter architecture...

Thanks

Sri

-- 
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: Can someone brief out about MVP

2010-03-28 Thread Prashant Hegde

Here is a good starting point

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

Prashant

On 29-03-2010 11:10, sridevi macherla wrote:

Hi,

Can someone brief out about Model View Presenter architecture...

Thanks

Sri
--
You received this message because you are subscribed to the Google 
Groups Google Web Toolkit group.

To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: [gwt-contrib] Re: Comment on IE8Support in google-web-toolkit

2010-03-28 Thread John LaBanca
You probably need to look into IE8 compatibility view:
http://blogs.msdn.com/ie/archive/2008/08/27/introducing-compatibility-view.aspx

In order to support web pages designed specifically for IE6/7, IE8 includes
a compatibility view feature that will render pages using a different set
of rules.  When you install IE8, you have the option of enabling or
disabling compatibility view.  Its possible that you enabled it on one
system and disabled it on the other, so one system is rendering in IE7 mode
and the other is in IE8 mode.

The link above should provide more details and explain how to fix it on your
system, but you'll want to keep in mind that other people may have
compatibility view disabled.
http://blogs.msdn.com/ie/archive/2008/08/27/introducing-compatibility-view.aspx
Thanks,
John LaBanca
jlaba...@google.com


On Sun, Mar 28, 2010 at 7:42 AM, codesite-nore...@google.com wrote:

 Comment by ckehelly:

 Hi,

 I thought there was only one version of IE8, but if I look at some
 websites, they display differently on my PC as opposed to other PCs.  I both
 a PC in October 09 with IE8 as the default browser, but it displays websites
 slightly differently.  So what I think is happening is that it may be using
 some different settings.  I basically would like to know how I can check
 what settings I may need to change?  Please, I would appreciate a response.

 Hope this is making sense
 Conor
 co...@sugarcube.ie


 For more information:
 http://code.google.com/p/google-web-toolkit/wiki/IE8Support

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

 To unsubscribe from this group, send email to
 google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to
 this email with the words REMOVE ME as the subject.


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this 
email with the words REMOVE ME as the subject.