Hosted mode console log output not scrolling

2009-07-14 Thread waf

Hi there,

Is there a way to force the hosted mode console output log to
automatically scroll to latest log messages instead of it staying
where it was left at last log inspection?

--
waf
--~--~-~--~~~---~--~~
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: RPC not working in web mode

2009-07-13 Thread waf

Hi,

As a matter of fact each GWT entry point module is placed in a
separate
subdirectory of your app war directory (i.e. in a separate
subdirectory
of server root or your application context after app deployment).
If you want to move module startup html and css it's a matter of
changing the src of module bootstrap JS moduleA.nocache.js
instead of moduleA/moduleA.nocache.js

As for the RPC just configure servlet mapping in your web.xml
to suite your needs.

--
waf

--~--~-~--~~~---~--~~
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: RPC not working in web mode

2009-07-13 Thread waf


Try to check the compatibility of your RemoteService client
(interface)
and the RemoteService server/servlet methods.

--
waf
--~--~-~--~~~---~--~~
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: Current Row index in FlexTable

2009-07-13 Thread waf

Hi,

FlexTable is a subclass of HTMLTable which has addClickHandler and
getCellForEvent methods.

--
waf
--~--~-~--~~~---~--~~
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: Image Links

2009-07-13 Thread waf

Hi,

Say you have Image in image (rather not from ImageBundle, because
that doesn't work in IE)

Anchor anchor= new Anchor(image.getElement().getString(), true, url);

should do the trick.

--
waf

--~--~-~--~~~---~--~~
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: Current Row index in FlexTable

2009-07-11 Thread waf

Hi

You should add ClickHandler to your table and then use
getCellForEvent from which you can get the row and col
indexes

Somewhere inside onClick:

YourTable table= (YourTable)event.getSource();
Cell cell= table.getCellForEvent(event);
use cell.getRowIndex() and/or cell.getCellIndex()

--
waf

--~--~-~--~~~---~--~~
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: Multi paging or Multi module

2009-07-11 Thread waf

On 10 Lip, 23:03, Bhayat baki.hayat.c...@gmail.com wrote:
 I have been trying about gwt tecnology for 2 weeks,and i try to create
 a web site but,i have some problems.this is start with trying to add
 new page to my application.for example i have a page that is created
 with full gwt and when user enter username and password ,according to
 these information user page or admin page will open but i have no idea
 about opening new pages(i am planing to create these pages with gwt)
 from my main application.

With GWT it's better not to think in terms of pages (html pages),
but panels or screens, i.e. in terms used in desktop applications.
Most of the time, your GWT application would be hosted in a single
page but the content of this page will change like a window of a
deskotop application.

So for example when the user logs into a desktop application, you
would
not send him to another application when he is admin user and
still another when he is noadmin user. You just show appropriate
panels/menus/widgets in the same window.

That's what you should do in GWT app. When you are back from
the server where your user was successfuly authenticated and
server returns the type of user all you have to do is show appropriate
part of the application.

Somewhere in the authentication callback:

if(authentication successful) {
   RootPanel.get(...).clear();
   if(user is admin)
  RootPanel.get(...).add(new AdminAppPanel());
   else
  RootPanel.get(...).add(new UserAppPanel());
}

But if you still want to load another page you can do it,
with native $doc.location= new page.

For example you can have three entry point modules in your
application, each with it's own html page.
In your Login.html/GWT app you can login the user and decide
which new page to load.

public native void loadModule(String url) /*-{
   $doc.location = url;
}-*/;

Somewhere in the Login.html/GWT app:

if(admin user)
   loadModule(Admin.html);  // load admin GWT module
else
   loadModule(User.html);  // load user GWT module

But here you must deal somehow with the communication between
Login and User/Admin modules.

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



OOPHM breakpoints don't stop

2009-07-06 Thread waf

Hi All,

I try to use OOPHM and can't get the breakpoints to stop app
execution.
I've checked out latest trunk, built it, added gwt-dev-oophm.jar to
the classpath before GWT jars, installed FF plugin/IE dll.

When I run debug with some breakpoints set, the GWT Hosted Mode
console starts,
and application runs without any problems except that breakpoints
don't
stop the execution. I'm running debug mode (have no problems with
1.6.4 hosted mode).
Have th same problem on Ubuntu/Eclipse,Ganymede/JDK 1.6.0_13/FF3.0.11
and Windows XP/Eclipse/JDK 1.6.0_13/FF.3.5,IE7

What I'm doing wrong?

--
waf

--~--~-~--~~~---~--~~
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: OOPHM breakpoints don't stop

2009-07-06 Thread waf


My fault, it's working.

--
waf

--~--~-~--~~~---~--~~
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: javascript in war folder not included after building war file

2009-07-04 Thread waf

Hi,

Try to use relative paths to your resources.

--
waf

On 4 Lip, 17:35, Marko Vuksanovic markovuksano...@gmail.com wrote:
 I have copied ext-js library into war folder of my gwt project. Then I
 have included it in my project.gwt.xml file as follows:

         stylesheet src=/js/ext/resources/css/ext-all.css /
         stylesheet src=/js/ext/resources/css/xtheme-slate.css /
         script src=/js/ext/adapter/ext/ext-base.js /
         script src=/js/ext/ext-all.js /
         script src=/js/gridsearch/ext-ux-grid-search.js /
         script src=/js/livegrid/livegrid-all.js /
         script src=/js/livegrid/BufferedStore.js /
         script src=/js/mif/ext-ux-miframe.js /

 after building the project, using the ant script that was created by
 the gwt sdk command line tool, the ext folder is not included in the
 modulename\js\ folder (nor in the modulename).

 There is also one more problem that I encountered - When I deploy the
 war file onto a server- when I typehttp://localhost:8080/project
 (which is the name of the war file as well as the gwt project itself)
 the application looks for the javascript files 
 athttp://localhost:8080/js/ext..
 and it should be looking for them athttp://localhost:8080/project/js/ext.

 Any help on this issue would be greatly appreciated.
--~--~-~--~~~---~--~~
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: dom manipulation works in IE but not in FF

2009-07-03 Thread waf

Hi,

I've checked this and it seems to work fine (as expected)
in web mode (IE7, Chrome, FF 3.0.11/3.5) but it breaks in
hosted mode on linux/firefox with the following exception

[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError):
this.removeChild is not a function
 fileName: jar:file:/home/wlodek/gwt/trunk/build/staging/gwt-
linux-0.0.0/gwt-user.jar!/com/google/gwt/dom/client/Node.java
 lineNumber: 285
 stack: ([object
HTMLFormElement])@jar:file:/home/wlodek/gwt/trunk/build/staging/gwt-
linux-0.0.0/gwt-user.jar!/com/google/gwt/dom/client/Node.java:285
static void com.google.gwt.user.client.DOM.dispatchEvent
(com.google.gwt.user.client.Event,com.google.gwt.user.client.Element,com.google.gwt.user.client.EventListener)
([object
Event],[object HTMLButtonElement],[object gwt_nativewrapper_class])@:0
([object Event])@jar:file:/home/wlodek/gwt/trunk/build/staging/gwt-
linux-0.0.0/gwt-user.jar!/com/google/gwt/user/client/impl/
DOMImplStandard.java:169
@:0

   at com.google.gwt.dom.client.Node$.removeChild$(Native Method)
   at pl.waf.test.client.Form.removeForm(Form.java:59)
   at pl.waf.test.client.Form.access$0(Form.java:50)
   at pl.waf.test.client.Form$1.onClick(Form.java:44)
   at com.google.gwt.event.dom.client.ClickEvent.dispatch
(ClickEvent.java:54)
   at com.google.gwt.event.dom.client.ClickEvent.dispatch
(ClickEvent.java:1)
   at com.google.gwt.event.shared.HandlerManager
$HandlerRegistry.fireEvent(HandlerManager.java:65)
   at com.google.gwt.event.shared.HandlerManager
$HandlerRegistry.access$1(HandlerManager.java:53)
   at com.google.gwt.event.shared.HandlerManager.fireEvent
(HandlerManager.java:178)
   at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:
52)
   at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent
(DomEvent.java:116)
   at com.google.gwt.user.client.ui.Widget.onBrowserEvent
(Widget.java:90)
   at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:
1320)
   at com.google.gwt.user.client.DOM.dispatchEventAndCatch
(DOM.java:1299)
   at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262)

--
waf
--~--~-~--~~~---~--~~
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: dom manipulation works in IE but not in FF

2009-07-03 Thread waf


For me it looks like you are not creating this form using GWT,
because if you did and because FormPanel is a SimplePanel you will
end up with a single panel/table inside Form without any text nodes.
That's the way it looks like in my example.
But if you are creating this form some other way I would say
it is normal that you will have extra text nodes,
because any whitespace will result in a text node.
As far as I know you shouldn't have those text nodes
if form/table opening and closing tags are written like this

form ...table ...
...
/table/form

--
waf

--~--~-~--~~~---~--~~
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: use java.sql.Blob with GWT

2009-07-02 Thread waf

Hi

Don't use java.sql.Blob on the client side.
Move it to the server side of your application.

--
waf

On 2 Lip, 16:50, Vatcharaphun Rajsiri netty...@gmail.com wrote:
 Hi all,

 I'd like to store a XML file in database. So, I use java.sql.Blob class.
 When I compile I get the following error:

 No source code is available for type *java.sql.Blob*; did you forget to
 inherit a required module?

 I have no idea what should I have to do, please help me.

 Thanks,

 Netty
--~--~-~--~~~---~--~~
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-generated Webpage fails to display on IE

2009-07-01 Thread waf

Hi

Which line is IE reporting the error now and what do you
have on this line and in the neiberhood?

--
waf

--~--~-~--~~~---~--~~
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-generated Webpage fails to display on IE

2009-07-01 Thread waf


Are you sure you are looking at the right file, ie. that the
error occures in the bootstrap code and not in you module?
This is from the verenweb.nocache.js which is pretty
generic. I would rather expect the problem in appropriate
hash.cache.html file.

--
waf

--~--~-~--~~~---~--~~
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 load a url in a panel?

2009-06-30 Thread waf

Hi

This is not correct.

formPanel.setHtml(htmltext);

is called when the request is send and then htmltext is null or
whatever value it has.

It is set to the response text when the request is finished and
that's some time later. You should setHtml in onResponseReceived.

--
waf


--~--~-~--~~~---~--~~
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: unable to find xml file

2009-06-30 Thread waf

Hi

The module XML file should be located at the parent of your client
package/directory, eg. if your client files are at org.gwtbook.client
then your module XML file should be located at org.gwtbook.

How was your project created, are you using any IDE?
Have you renamed the file after project was created?

--
waf

On 30 Cze, 18:23, thesheff dsheff...@gmail.com wrote:
 I'm very new to the GWT and have been reading GWT in Action.  I'm
 trying to follow the examples and I'm getthing this error:

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

 I have Dashboard.gwt.xml file but I'm not sure where to even try to
 fix this because of the case?  I'm guessing this is getting auto
 generated by the:

 script type=text/javascript language=javascript src=dashboard/
 dashboard.nocache.js/script

 but isn't this file auto generated by the GWT?  Please point me in the
 right direction if possible.  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: GWT-generated Webpage fails to display on IE

2009-06-30 Thread waf

Hi there,

The problem is at some other place.
This 'undefined' property is correct javascript construct.
When trying to pinpoint a problem like this it is better to
compile with the output style 'Pretty'. This way you can
find more accurate location where the problem occured.

--
waf
--~--~-~--~~~---~--~~
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 upload file

2009-06-23 Thread waf

Hi,

As far a I know, you can't get server exceptions at FileUpload/
FormPanel
because here you are using regular http/post.
There can sit anything on the server that such form/post will talk
to,
not just java servlet.

You can catch the exception in servlet and return http status
code that fits the situation, or you can provide more information
in the response, but that will be your custom solution.

You get server exceptions on the client when using gwt-rpc only
I suppose.

--
waf

--~--~-~--~~~---~--~~
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: compile gwt svn from source

2009-06-22 Thread waf

I had similar problem and the following helped
http://code.google.com/p/google-web-toolkit/issues/detail?id=3556

--
waf

--~--~-~--~~~---~--~~
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: loading variable from native method

2009-06-22 Thread waf

Hi daim

You are not taking into account the asynchronious
nature of the request that you use to initialize the
Databank.dataArray. When the constructor returns
dataArray is null until request completes so
prepature access to the dataArray gives you null.

--
waf

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

2009-06-22 Thread waf

Petein,

Try to change form.add(vPanel);  with vPanel.add(form);
maybe that helps a little.

--
waf

--~--~-~--~~~---~--~~
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: The requested URL was not allowed

2009-06-22 Thread waf

That's cleared.
AppEngine application I was deploying the app
was configured with Authentication Options
restricted to the Google Apps domain and I tried
to use it on appspot.com. When used on the
designated domain it works fine.
--
waf
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Retrieving JSON Data tutorial bug

2009-06-21 Thread waf

Hi All !

It looks like there is a problem in Retrieving JSON Data GWT
tutorial.
The JsonStockData servlet that generates random stock data
appends extra comma sign after the last StockData object
[ {...}, {...}, {...}, ]
which results in javascript error on IE7 while processing data in

private void updateTable(StockPrice price)
{
if(!stocks.contains(price.getSymbol()))
return;
int row= stocks.indexOf(price.getSymbol())+1;
...
}

It seams that IE is creating extra array element, which in
this case is not a correct object.
Needless to say that breaks other things, for example
the Last updated label doesn't show.

So avoid this extra comma sign in JSON arrays.

--
WAF

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



The requested URL was not allowed

2009-06-21 Thread waf

Hi All !

I try to follow GWT Getting Started Tutorial and everthing was fine
until the
3. Personalize the application with the User Service from
GWT and Google App Engine part.

Trying to use User Service on AppEngine deployed app I get

32.82.27.183 - - [20/Jun/2009:14:09:07 -0700] POST /stockwatcher/
login HTTP/1.1 500 113 http://MYAPPID.appspot.com/stockwatcher/
F2BA1EC2336108C70EFD27BB520BF7D5.cache.html Mozilla/5.0 (Windows; U;
Windows NT 5.1; pl; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11,gzip
(gfe) MYAPPID.appspot.com

javax.servlet.ServletContext log: Exception while dispatching incoming
RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract pl.waf.stockwatcher.client.LoginInfo
pl.waf.stockwatcher.client.LoginService.login(java.lang.String)' threw
an unexpected exception: java.lang.IllegalArgumentException: The
requested URL was not allowed: http://MYAPPID.appspot.com/
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java:360)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:546)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

I have:

1. Login Service interface

package pl.waf.stockwatcher.client;

import com.google.gwt.user.client.rpc.RemoteService;

public interface LoginService extends RemoteService
{
public LoginInfo login(String requestUri);
}

2. LoginService implementation

package pl.waf.stockwatcher.server;

import pl.waf.stockwatcher.client.LoginInfo;
import pl.waf.stockwatcher.client.LoginService;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class LoginServiceImpl extends RemoteServiceServlet implements
LoginService {

@Override
public LoginInfo login(String requestUri)
{
UserService userService= UserServiceFactory.getUserService();
User user= userService.getCurrentUser();
LoginInfo loginInfo= new LoginInfo();

if(user!=null)
{
loginInfo.setLoggedIn(true);
loginInfo.setEmailAddress(user.getEmail());
loginInfo.setNickname(user.getNickname());

loginInfo.setLogoutUrl(userService.createLogoutURL(requestUri));
}
else
{
loginInfo.setLoggedIn(false);

loginInfo.setLoginUrl(userService.createLoginURL(requestUri));
}
return loginInfo;
}
}

3. and login service call

  LoginServiceAsync loginService= GWT.create(LoginService.class);
  loginService.login(GWT.getHostPageBaseURL(), new
AsyncCallbackLoginInfo() {

@Override
public void onFailure(Throwable caught) {
handleError(caught);
}

@Override
public void onSuccess(LoginInfo result) {
loginInfo= result;
if(loginInfo.isLoggedIn())
loadStockWatcher();
else
loadLogin();
}
  });

Why is userService.createLoginURL(requestUri) failing with requested
URL not allowed?
Are there any restrictions on request URI?
Everything is working fine in the development environment.

--
Wlodek

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