Re: UIBinder with code in earlier versions of GWT

2010-04-14 Thread MiSt
On 13 Kwi, 15:30, San wrote: > Hi all, > > Can I use some of the widgets those are written in earlier versions of > GWT2.0 directly in UIBinder classes. > > e.g.can I do something like suppose I am having MyWidget as a old > class and I develop a new class as WidgetContainer with UIBinder and > tr

Re: TabLayoutPanel at 100% height

2010-04-14 Thread Jérôme
Many thanks kozura it indeed solves the problem. CU Jerome On 13 avr, 20:58, kozura wrote: > You need to add it to the RootLayoutPanel vs the RootPanel, as > specified > here:http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#La... > > You may also want to put it inside one of t

Re: UIBinder with code in earlier versions of GWT

2010-04-14 Thread San
Hi, Thanks a lot for your reply? Can you please direct me to any such tutorial and or blog regarding this. Or may be a list of things that I should take care while migrating to declarative UI with the programatic UI from the earlier version of GWT2.0 -Thanks On Apr 14, 12:27 pm, MiSt wrote: >

Exception trace/logging

2010-04-14 Thread dgiscool
Hi, How can I see the exception trace thrown out of the callback method code ? When the web service returns, it throws an exception and onFailure() method is invoked with the exception but how and where can I see the exception trace? I am running this on tomcat, I can't run it on dev hosted mode d

Re: UIBinder with custom widget and having Image as attribute.

2010-04-14 Thread Thomas Broyer
On Apr 13, 12:45 pm, San wrote: > Hi Thomas, > > Thanks for your help. > I think i just did something wrong when I posted above message with > the code snipet in it. > > Actually I am not having UIBinder xml for the MyImageButton class. Did I ever implied it?! -- You received this message bec

Re: UIBinder with custom widget and having Image as attribute.

2010-04-14 Thread San
Hi Thomas, Thanks for reply. Yes you never said that the MyImageButton also should be created using UIBinder or it should have the ui.xml. Please clear me if I am wrong. Does this mean that we can mix both the declarative UI and programmatic Ui code which is written in earlier versions of GWT2.

Re: Expiration of Cookies

2010-04-14 Thread tdk
On 25 Mrz., 19:02, Thomas Broyer wrote: > On Mar 25, 11:39 am, tdk wrote: > > > I would like to set a Cookie on my client which never expires, how do > > I do that? > > Don't. > Expire in a year from now, two eventually, but there's no point in > "never ever expiring". ok, but just out of curios

Gmail like Drag and Drop

2010-04-14 Thread Tapas Adhikary
I have requirement to achieve the drag and drop functionality like gmail has. I have 2 panels. Left side is a group panel which is a list. Right side panel is a user panel which contains check boxes as users. I need to drag and drop the users(check boxes) to the groups(ul , li panel). The same t

Re: Exception trace/logging

2010-04-14 Thread Sripathi Krishnan
In your RPC Servlet, override the doUnexpectedFailure(Throwable t) method and log the stack trace over there. GWT calls this method whenever there is a server side exception. @Override protected void doUnexpectedFailure(Throwable e) { LOGGER.error("Unexpected error while processing RPC", e);

Re: UIBinder with custom widget and having Image as attribute.

2010-04-14 Thread Sripathi Krishnan
> > Does this mean that we can mix both the declarative UI and programmatic Ui > code which is written in earlier versions of GWT2.0. > Yes, you absolutely can. The code you pasted is doing exactly that. MyImageButton is a "pre-GWT2.0 programmatic widget". Its not working because you are not provi

Re: Gmail like Drag and Drop

2010-04-14 Thread Paul Robinson
http://lmgtfy.com/?q=gwt+drag+and+drop&l=1 Tapas Adhikary wrote: > I have requirement to achieve the drag and drop functionality like > gmail has. > I have 2 panels. Left side is a group panel which is a > list. Right side panel is a user panel which contains check boxes as > users. I need to d

Switch RootPanel with RootLayoutPanel

2010-04-14 Thread gadaleta.marco
Hi, I'm trying to switch diinamically RootPanel with RootLayoutPanel and viceversa. But after the switch, the interface seems to be locked. Can you give me an help? Thx, Marco -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to thi

Re: UIBinder and CSS resources obfuscation

2010-04-14 Thread david.herv...@gmail.com
Thanks for the reply but I've already tried this solution but as I have mentionned in my first post, it prefix all css class with the package name in which the css is place. I will have a look in Resources.gwt.xml. On Apr 13, 11:16 pm, Sripathi Krishnan wrote: > See the file Resources.gwt.xml .

Re: Exception trace/logging

2010-04-14 Thread mmoossen
that is a really good hint for debugging RPC calls, until now i was using just a breakpoint there... thanks for sharing Michael On Apr 14, 12:09 pm, Sripathi Krishnan wrote: > In your RPC Servlet, override the doUnexpectedFailure(Throwable t)  method > and log the stack trace over there. GWT cal

configuration properties

2010-04-14 Thread mmoossen
dear all! i just learned this: which takes me to ask the question: is there anywhere a complete list of supported configuration properties? or which configuration properties do you use/know? google (search) could not find much :( thanks Michael -- You received this message because you are su

Re: Gmail like Drag and Drop

2010-04-14 Thread Tapas Adhikary
Thanks paul for sharing the link . Couple of question on this . 1. Is it mandatory to have an Absolute panel at the beneath of the panel I am using currently to achieve drag and drop ? Right now My draggable and droppable elements are in HTML Panel. 2.Can u share any of the working code that works

IE8 problem before the module is started

2010-04-14 Thread Viliam Durina
I developed my application with Firefox, Chrome and IE7, here it works. But when I test with IE8, the page hangs before the module is loaded. In the server log I see 404 error for /myModule/ undefined.cache.html: apparently the hash calculation failed in the "myModule.nocache.js" script. I'm trying

Re: Static and dynamic loading of images

2010-04-14 Thread Viliam Durina
I think you should do: Image w = isCustomizedImage() ? new Image(getCustomUrl()) : new Image(ResourceLoader.INSTANCE.background()); The client bundle must contain only static images that are known at compile time, as this is the time when it creates one composite image. You must use ClientBund

Re: UIBinder with custom widget and having Image as attribute.

2010-04-14 Thread San
Thanks Thomas and Sripathi for you replies. Yes it is working for me now. I followed the second approach i.e. @UiFactory. I will now try with the first and third options. -Thanks On Apr 14, 3:21 pm, Sripathi Krishnan wrote: > > Does this mean that we can mix both the declarative UI and progra

Re: I'm getting error The web.xml file does not exist

2010-04-14 Thread Viliam Durina
The web.xml file is specified in the Java Servlet Specification, it is not a part of GWT. And, as far as I know, it has to reside only in the WEB-INF directory and nowhere else. The WEB-INF directory is special for web applications, similarly as META-INF is special for jar files. Viliam On 13. Ap

Re: Gmail like Drag and Drop

2010-04-14 Thread Paul Robinson
It's probably better to ask on the gwt-dnd group...links to it are on the gwt-dnd project page. Tapas Adhikary wrote: > Thanks paul for sharing the link . Couple of question on this . > 1. Is it mandatory to have an Absolute panel at the beneath of the > panel I am using currently to achieve drag

Help with DockPanelLayout and UIBinder - Not able to bind field names

2010-04-14 Thread amjedonline
Hi, Am trying to create a simple DockPanelLayout for my applicaiton. Layout itself is divided into north, south and center regions. Below is the binding xml:

Re: An implementation of Selection/Cursor for RichTextArea

2010-04-14 Thread kozura
Yeah, I've put in other patches, but for complete new functionality it might be better to go through the incubator first; I can just ask on contributors. But either way, deciding whether others want this functionality to take the time doing up all the test cases and switching to GWT style conventi

Simple test: GWT app with jmeter

2010-04-14 Thread mariyan nenchev
Hi, I want to profile my gwt app. I must use jmeter, but i do not know how to configure http requests with gwt. When i make one, from firebug i can see http://mydomain/bft/client/dispatch And in the Post tab: 5|0|7|http://mydomain/bft/client/|F27383FD996724D45AFA7B3303E23BCD|net.customware.gwt.di

Re: Simple test: GWT app with jmeter

2010-04-14 Thread mariyan nenchev
As you can see i am using gwt-dispatch lib. -- 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+unsubsc

Re: ScrollPanel Problem

2010-04-14 Thread Marco Gadaleta
I've fixed the BUG! 2010/4/7 gadaleta.marco > noone? > > On 6 Apr, 15:03, "gadaleta.marco" wrote: > > Hi, I'm developing an application using gwt and gears and i test it > > on android. > > But if i use a ScrollPanel element, it doesn't run on android. > > > > How i can resolve this problem? >

Re: Static and dynamic loading of images

2010-04-14 Thread Juan Quito
Thank you for the response. The thing is that I want to call something like this: Image w = new Image(ImageResourceLoader.background()); and this resolves everything... (by URL or by static). All the behavior of deciding whether the image is customized or not remains inside the ImageResourceLoader

Re: Can we Integrate reCaptcha with GWT FormPanel

2010-04-14 Thread cretz
IIRC, recaptcha doesn't allow you to retrieve to element name, so it is not handled via a common form submission. If you must, add two hiddens to your panel and add a submit handler. In the submit handler, just populate the hidden widgets with the challenge and response from the recaptcha JS API. I

gwt rpc - Client did not send 199 bytes as expected - RPCServletUtils.readContentAsUtf8

2010-04-14 Thread Simon Botting
Hi, The following exception is thrown for around 5% of the requests that are made through gwt rpc on our production server - the number of bytes changes (in this case its 199) 04/13 21:36:20 ERROR in web.HibernateSessionRequestFilter.doFilter(line:57): Exception while dispatching incoming RPC cal

Enter Key Forces Call to onModuleLoad()

2010-04-14 Thread Daniel Simons
In my app I have a View which implements the KeyUpHandler. Within the view I have a TextBox for which I have added the key up event handler. My view summarized looks something like this: public class View extends Composite implements KeyUpHandler { public View() { textbox.addKeyUpHandler(t

Re: Need to explicitly remove event handlers manually?

2010-04-14 Thread Tsukasa
exactly that is what my workaround was ... on any place change I call unbind() on the active presenter before changing to the new one. But what I intend to have is no need for any unbind() method at all. In my opinion its the eventbusses concern to recognize that the eventHandler should be detached

Re: UIBinder and CSS resources obfuscation

2010-04-14 Thread davidroe
there was a time when I was also looking for this and was unable to find the answer. pls report back to the group if you come across the solution. thanks. On Apr 14, 4:09 am, "david.herv...@gmail.com" wrote: > Thanks for the reply but I've already tried this solution but as I > have mentionned i

Re: UIBinder and CSS resources obfuscation

2010-04-14 Thread Jeff Chimene
On 04/14/2010 01:27 PM, davidroe wrote: > there was a time when I was also looking for this and was unable to > find the answer. pls report back to the group if you come across the > solution. > > thanks. Try using the @external annotation @external gwt-TextBox; .gwt-TextBox { border-col

Re: Can we Integrate reCaptcha with GWT FormPanel

2010-04-14 Thread Carlo
Hi Ankit, Maybe, I can help you. I write below the code than I use to do Captcha check. In the form panel: # FormPanel form = new FormPanel(); VerticalPanel vp = new VerticalPanel(); HorizontalPanel hp = new Horizonta

Re: An implementation of Selection/Cursor for RichTextArea

2010-04-14 Thread Manuel Carrasco Moñino
I remember that GWT guys said that they wont accept new stuff for incubator, but only fixes to existing code, because they are planning to include most useful widgets from incubator to official gwt trunk. So I think incubator is not an option to test this feature. Nevertheless I'll take a look to

Re: ScrollPanel Problem

2010-04-14 Thread Patou
It's not possible to use a scroll Panel in Mobile navigator (Android and Iphone). You can just scroll on all the page (like a zoom tools) but not inside the page. Patrice On Apr 6, 3:03 pm, "gadaleta.marco" wrote: > Hi, I'm developing an application using gwt and gears and i test it > on androi

ELabel and GWT

2010-04-14 Thread ben
Has anyone happened to rewrite ELabel using mapitz or googlemaps api and extending GOverlay? (ELabel - http://econym.org.uk/gmap/elabel.htm) I'm having trouble figuring out how to start. It seems like the ELabel.js file should be able to be ported. But I'm having trouble figuring out the best wa

Re: gwt rpc - Client did not send 199 bytes as expected - RPCServletUtils.readContentAsUtf8

2010-04-14 Thread lineman78
I remember having this problem with IE6 on older versions of GWT, I'm not sure it is fixed as since OOPHM I don't use IE anymore. On Apr 14, 12:25 pm, Simon Botting wrote: > Hi, > > The following exception is thrown for around 5% of the requests that > are made through gwt rpc on our production s

Re: Loading please wait + Animated GIF

2010-04-14 Thread lineman78
I have noticed the same issue. I know that javascript runs single threaded, but I believe that the gif animation should run on a seperate thread. Have you run this experiment on browsers that use a different threading model like the newer version of Chrome (soon coming to FF). Just because javas

Re: -port keeps disappearing

2010-04-14 Thread lineman78
I have had not problems with the following changes to the default settings: Server Tab: Uncheck "Run built-in server" GWT Tab: Change the url to the URL of the html file associated with the module. (http://localhost:8080/ams/index.html) There should be no need to modify the argume

Re: Scrollbars for VerticalPanel?

2010-04-14 Thread lineman78
I don't see why you would need this. Whenever you use RootPanel is adds it directly to the document body. I suggest using firebug to debug this problem and check out the html directly. Make sure you or one of your inherited modules is not calling Window.enableScrolling(false);. RootLayoutPanel

Re: Enter Key Forces Call to onModuleLoad()

2010-04-14 Thread Sripathi Krishnan
Is the textbox a part of a form that has a submit button? When you press enter, the form may be submitting, causing the page to reload (and therefore calling onModuleLoad). --Sri On 15 April 2010 00:04, Daniel Simons wrote: > In my app I have a View which implements the KeyUpHandler. Within

Re: gwt-dispatch, gwt-presenter, mvp4g

2010-04-14 Thread plcoirier
I'll also take this oppurtinity to explain why I created Mvp4g, hopefully this can help. Mvp4g, compared to gwt-presenter, has another approach concerning the event bus. Instead of using GWT HandlerManager and having to create a lot of classes for events, you have only one Java interface. Each met

Re: gwt rpc - Client did not send 199 bytes as expected - RPCServletUtils.readContentAsUtf8

2010-04-14 Thread Sripathi Krishnan
GWT explicitly sets the character encoding as UTF-8, and performs a check on the server side to ensure it. If you look at RPCServletUtils, the method checkCharacterEncoding() performs this check, and only then proceeds to line number 185 where it dies. So it certainly isn't a problem with ISO-8859-

Making a simple 3 column layout?

2010-04-14 Thread markww
Hi, I was hoping to use VerticalPanel and HorizontalPanel instances to make a simple 3 column page layout. Something like: // this is the header (width: 100%, height: 90px) // this is column 1 (width: 30%, height: 100%) // this

Re: Enter Key Forces Call to onModuleLoad()

2010-04-14 Thread Daniel Simons
I'm now using a div rather than form tag to wrap the textbox and it seems to have fixed the problem. Thanks! On Wed, Apr 14, 2010 at 8:28 PM, Sripathi Krishnan < sripathikrish...@gmail.com> wrote: > Is the textbox a part of a form that has a submit button? When you press > enter, the form may be

Reading a local file.

2010-04-14 Thread edarroyo
Is it possible to read a file that resides on the user's computer? My applications does not need a server so all the code would reside on the client side. I want the user to point me to a file on his computer so I can read and calculate some data and then just display with no kinds of calls to the

Immutable object from the business layer

2010-04-14 Thread boz
My current project has been struggling lately with the use of immutable objects and/or properties of objects from the business layer. I wonder how common this is and interested in any recommendations. The project is divided between our group, which makes the UI with GWT (and Ext GWT, aka GXT), and

Re: Reading a local file.

2010-04-14 Thread Lothar Kimmeringer
edarroyo schrieb: > Is it possible to read a file that resides on the user's computer? Isn't it possible to look for messages using a search engine to check if that question has been asked before? http://groups.google.com/group/google-web-toolkit/search?group=google-web-toolkit&q=read+local+file s

Re: ScrollPanel Problem

2010-04-14 Thread Marco Gadaleta
But i have find a solution :-) 2010/4/14 Patou > It's not possible to use a scroll Panel in Mobile navigator (Android > and Iphone). > > You can just scroll on all the page (like a zoom tools) but not inside > the page. > > Patrice > > On Apr 6, 3:03 pm, "gadaleta.marco" wrote: > > Hi, I'm