Re: Hosting issue

2012-01-28 Thread Nitheesh Chandran
Hello Alen. It seems like you have got what the issue is . Yes you are
right . I tried changing the remote service servlet path. But it did
not help me. For getting a detailed view i will give some more data




Here is the web.xml file








?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
    PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
    http://java.sun.com/dtd/web-app_2_3.dtd;




web-app

  !-- Servlets --
  servlet
    servlet-namegreetServlet/servlet-name
    servlet-classrp.server.GreetingServiceImpl/servlet-class
  /servlet

  servlet-mapping
    servlet-namegreetServlet/servlet-name
    url-pattern/rpctesting/greet/url-pattern
  /servlet-mapping

  !-- Default page to serve --
  welcome-file-list
    welcome-fileRpctesting.html/welcome-file
  /welcome-file-list




/web-app








  here is the gwt.xml file




?xml version=1.0 encoding=UTF-8?
module rename-to='rpctesting'
  !-- Inherit the core Web Toolkit stuff.                        --
  inherits name='com.google.gwt.user.User'/




  !-- Inherit the default GWT style sheet.  You can change       --
  !-- the theme of your GWT application by uncommenting          --
  !-- any one of the following lines.                            --
  inherits name='com.google.gwt.user.theme.clean.Clean'/
  !-- inherits name='com.google.gwt.user.theme.standard.Standard'/
--
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/     --




  !-- Other module inherits                                      --




  !-- Specify the app entry point class.                         --
  entry-point class='rp.client.Rpctesting'/




  !-- Specify the paths for translatable code                    --
  source path='client'/
  source path='shared'/




/module




here is the GreetingService.java  the synchronous file




  package rp.client;




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




/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath(greet)
public interface GreetingService extends RemoteService {
String greetServer(String name) throws IllegalArgumentException;
}












No other changes in the program given by the GWT web application
starter project




I have deployed the files inside the WAR folder to the prism folder of
my server




so that i can access my app by typing www.yellowlemon.in/prism/Rpctesting.html




But the server fails to map my servlet.




can you tell me ,where i have to change ?








url-pattern/rpctesting/greet/url-pattern




You said The url-pattern must be context-relative . I did not get
this line




i think the problem happening on the above line . It works fine on
local machine but not on server




Yes as you said rpctesting is the module name . and in the server log
i am getting error like




 File does not
exist: /home/spectrum/public_html/prism/rpctesting/greet, referer:
http://yellowlemon.in/prism/Rpctesting.html


Hope you can help me on this.



On Jan 27, 7:30 pm, Alan Chaney a...@mechnicality.com wrote:
 The problem is nothing to do with GWT, or really, Tomcat for that
 matter. Somewhere in your code you are making a URL request which has
 the path:

 /home/spectrum/public_html/prism/rpctesting/greet

 which looks an extremely unlikely URL to me.

 The things to check are:

 @RemoteServiceRelativePath in your RPC

 I suspect that it probably looks like:

 @RemoteServiceRelativePath(greet)

 and then the web.xml file for the server should look something like:

    !-- servlets --
    servlet
      servlet-namegreetServlet/servlet-name
         !-- this should be the class of the server-side implementation of 
 your 'Greet Service' which should
                 extend RemoteServiceServlet--
      
 servlet-classcom.mycompany.myproject.server.rpc.GreetServiceImpl/servlet 
 -class
    /servlet

    servlet-mapping
      servlet-namegreetServlet/servlet-name
      url-pattern/XXX/greet/url-pattern
    /servlet-mapping

    !-- Default page to serve --
    welcome-file-list
      welcome-fileXXX.html/welcome-file
    /welcome-file-list

 Where your GWT project is XXX.

 The url-pattern must be context-relative. What is often confusing about this 
 is that the default Jetty implementation in the development
 mode has a context of /, but when you deploy it to tomcat by default the 
 context becomes the name of the war, which is often also
 the project name.

 Consequently the actual request looks something 
 linkwww.myserver.com/XXX/XXX/greet. This is because the context relative path 
 for the JS files which make up your project are, by default, in a folder with 
 the same name as the gwt.xml module, or its 'shorthand' module name. Since 
 its common to make the module name the same as the project, the war ends up 
 with the same name as the module, and the deployed context is the project 
 name. Confused? Maybe this 

How to add a link (anchor) to a CellTable?

2012-01-28 Thread Magnus
Hi,

can I add an anchor object to a cell table?

I just found TextColumn as the only reasonable subclass of Column:

TextColumnEntry col_myCol = new TextColumnEntry()

But I need a type where I can insert an anchor...

And hints?

Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Qr-Yxkc3S88J.
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 requestfactory compile error Deobfuscator.Builder; did you forget to inherit a required module

2012-01-28 Thread Johann
thank you for your reply, 

im using gwt 2.4 with eclipse 3.7 Indigo. 
the containing gwt jars are directly copied from the plugin folder 
e.g requestfactory-server.jar

how can i determine what version im using of this libaries? 

greez

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/gqsCJBc0jZ4J.
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 RequestFactory compile error Deobfuscator.Builder

2012-01-28 Thread Johann
I already suspected that I should use maven build tool. 
ok thanks for ur hint. that make sense.  i will test it

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/gBtqD62ToAoJ.
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.



Themes with SingleScriptLinker

2012-01-28 Thread David Sanders
Hi all,

Is there any reason why themes would fail to load with a GWT app compiled 
using SingleScriptLinker?

Thanks,
David

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/hWT94QjSg2oJ.
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 add a link (anchor) to a CellTable?

2012-01-28 Thread kim young ill
write your own cell  override method render

hth

On Sat, Jan 28, 2012 at 1:46 PM, Magnus alpineblas...@googlemail.comwrote:

 Hi,

 can I add an anchor object to a cell table?

 I just found TextColumn as the only reasonable subclass of Column:

 TextColumnEntry col_myCol = new TextColumnEntry()

 But I need a type where I can insert an anchor...

 And hints?

 Thanks
 Magnus

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Qr-Yxkc3S88J.
 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.


-- 
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 add a link (anchor) to a CellTable?

2012-01-28 Thread Magnus
Thank you, but it is not clear yet:
Could you please mention the class that I should subclass?
And what should I use instead of TextCell?

Thanks!

  TextColumnEntry myCol = new TextColumnEntry()
  {
   @Override
   public String getValue(Entry obj)
   {
return (obj.myAttribute);
   }
  };

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/9DUqdxxtwGsJ.
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 add a link (anchor) to a CellTable?

2012-01-28 Thread Andrea Boscolo
See docs: 
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomCells.html

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/GVWxakQw59sJ.
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 add a link (anchor) to a CellTable?

2012-01-28 Thread Jens
You will use the Column class directly and tell it to use your custom cell:

Column col = new ColumnEntry, String(new YourCustomCell()) {
   @Override
   public String getValue(Entry obj)
   {
return (obj.myAttribute);
   }
}

How to implement a custom cell can be found in the documentation.


If you only need a simple link you could also just use the SafeHtmlCell:

public interface SimpleCellTemplates extends SafeHtmlTemplates {
  @Template(a href=\{0}\{1}/a)
  SafeHtml anchor(SafeUri href, String name);
}


static final SimpleCellTemplates cell = GWT.create(SimpleCellTemplates.class)


Column col = new ColumnEntry, SafeHtml(new SafeHtmlCell()) {
   @Override
   public SafeHtml getValue(Entry obj)
   {
SafeUri href = //construct your href as SafeUri using UriUtils
return cell.anchor(href, obj.getName());
   }
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/c5cjJwKQpC8J.
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 add a link (anchor) to a CellTable?

2012-01-28 Thread kim young ill
check out the gwt-showcase for some examples.

On Sat, Jan 28, 2012 at 4:37 PM, Andrea Boscolo andrew...@gmail.com wrote:

 See docs:
 http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomCells.html

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/GVWxakQw59sJ.

 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.


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



Activity / Place + History.back()

2012-01-28 Thread Adam
I'm having an issue where the History.back() is intermittently not
working.

I'm using Places mapped to each activity in my application and
navigating forward works great.

For instance lets say we start out on #search-#result.  If I
programmatically use History.back() as a button in my application to
return the the #search it occasionally does not load the #search
page even though the url bar reflects the action.

I've debugged the code and have tracked down where the problem is,
just not 100% why.  The PlaceHistoryHandler class listens for
ValueChangeEventString from the browser which is fired when the
History.back() is called.
This in turn calls the PlaceHistoryHandler.handleHistoryToken(...)
method which calls the PlaceController.goTo(Place) method.  THe
PlaceController.goTo(Place) method is doing an if check if where ==
place and if so returns without firing a PlaceChangeEvent.  That if
check is causing the ActivityManager not to fire it's
onPlaceChangeEvent, which in turns makes it so that the previous
activity is not restarted for handling the #search place.

As I said sometimes it works, sometimes it doesn't.  It's all based on
the if check for where == place though as to the outcome.  I know
for a fact by staring at the url bar that there is a change.

So is this a bug that others have see or am I doing something wrong?

Any help would be appreciated.

-Adam

-- 
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: Local data cache when using AsyncDataProvider (CellTable)

2012-01-28 Thread Ümit Seren
Well I have an application in which I display 1.2 million items in a 
CellTable (50 items at a time). 
I solved that by using AsyncDataProvider and doing bulk-requests of around 
2000 items (you can play with that vaue).

I have a SimplePager which displays 50 of them at a time and when the user 
pages through it it won't do any server request until the list of 2000 is 
completed. Then I request the next 2000 items (actually that is 
automatically taken care of by the AsyncDataProvider interface). 

For filtering/searching I implemented a hybrid approach. For example if the 
user types in a string for a name it will first search on the server. Again 
only 2000 items will be sent back from the backend. For each new character 
I will do another server-request. However I also return the number of hits 
(which the search returns). If the number of hits is smaller than 2000 the 
next time the user types in another character it will only search on the 
client side (because I already have the whole search set transfered to the 
client). 

For sorting you can take the same path. 

To be honest I am not sure if it's worth just sending the IDs and then 
replacing it later with a second call with the missing real objects. I 
don't think it will be much of a performance problem even when you have a 
lot of user requests at the same time. You can try to solve that problem on 
the backend (via caching, etc) and if you still have an issue you can 
implement your approach.
Don't forget Knuth famous quote: *Premature optimization is the root of 
all evil*

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/IeGIOrFVgyIJ.
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: Activity / Place + History.back()

2012-01-28 Thread Adam
So I solved my problem.  We'd created a convience method that called
EventBus.fireEvent(new PlaceChangeEvent(Place)) instead of using the
PlaceController.goTo(Place).  This was causing issues because even
though it felt the same it wasn't updating the where Place property
of the PlaceController so when History.back() was called it was
checking against a stale where object.

-Adam

On Jan 28, 12:44 pm, Adam ambr...@gmail.com wrote:
 I'm having an issue where the History.back() is intermittently not
 working.

 I'm using Places mapped to each activity in my application and
 navigating forward works great.

 For instance lets say we start out on #search-#result.  If I
 programmatically use History.back() as a button in my application to
 return the the #search it occasionally does not load the #search
 page even though the url bar reflects the action.

 I've debugged the code and have tracked down where the problem is,
 just not 100% why.  The PlaceHistoryHandler class listens for
 ValueChangeEventString from the browser which is fired when the
 History.back() is called.
 This in turn calls the PlaceHistoryHandler.handleHistoryToken(...)
 method which calls the PlaceController.goTo(Place) method.  THe
 PlaceController.goTo(Place) method is doing an if check if where ==
 place and if so returns without firing a PlaceChangeEvent.  That if
 check is causing the ActivityManager not to fire it's
 onPlaceChangeEvent, which in turns makes it so that the previous
 activity is not restarted for handling the #search place.

 As I said sometimes it works, sometimes it doesn't.  It's all based on
 the if check for where == place though as to the outcome.  I know
 for a fact by staring at the url bar that there is a change.

 So is this a bug that others have see or am I doing something wrong?

 Any help would be appreciated.

 -Adam

-- 
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: Can AutoBeanFactory encode ListBeanObject ???

2012-01-28 Thread Colin Alworth
You are on the right track for this, but you need to wrap each model with 
an autobean: encodeBean.as() is not the same instance as t1, even though it 
is obtained from the autobean that wraps t1. You need to wrap each 
instance, and include the wrapped instance in the eventual tree to be 
encoded.

The list may also have trouble, it has been a while since I tried to build 
something like this out. The approach I've taken, rather than manually wrap 
the whole tree, was to wrap the root object, and use an autobean visitor to 
walk the rest of the properties, wrapping and continuing further down the 
tree. I found the code in 
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.cloneBeanAndCollections(AutoBeanT)
 
to be helpful as a guide when copying autobeans, along with other aspects 
of the internals of RequestFactory, which is based on Autobeans for 
transport.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/-SWzFqhsfYgJ.
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.



Reg. TabLayoutPanel tab header scroll

2012-01-28 Thread Raji
Hi,

As of now there is no scorllbars for TabLayoutPanel header if it goes
exceeds the width(like EXT GWT Advanced tabs). I guess there is an
enhancement issue pending.

Is there any release plan for the above issue? Please update me if
anyone knows.

Thanks,
Raji MS

-- 
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: input in MenuBar implementation

2012-01-28 Thread Jaroslav Záruba
Unfortunately when I set the menu to *position:absolute, top:0, left:0*this 
nasty input does cause troubles: it makes the menu stick 1px over the 
right edge of the page which naturally causes horizontal scroll-bar to be 
dran by the bottom edge of the page. (Setting the input manually to *
position:relative* seems to fix the problem.)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/R1GYSvVskQwJ.
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.