Re: hashCode() fails for Text nodes on IE

2011-04-25 Thread kozura
Beh IE quirks... It's this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4086 On Apr 25, 4:57 pm, kozura wrote: > I'm trying to store the Javascript objects for DOM Text nodes as keys > in a hashmap.  However, only on IE, they don't seem to have &qu

hashCode() fails for Text nodes on IE

2011-04-25 Thread kozura
I'm trying to store the Javascript objects for DOM Text nodes as keys in a hashmap. However, only on IE, they don't seem to have "hashCode" implemented, so I get an error like "Object doesn't support this property or method", in both hosted and deployed mode. Other JSO types, like Elements, seem

A library for getting/setting Selection and Cursor in RichTextEditor

2011-03-30 Thread kozura
I've created a project gwt-selection with cross-browser functionality for manipulating Selection/Cursor location, including in a RichTextEditor: http://code.google.com/p/gwt-selection/ This library has actually been around awhile, just attached as a jar to http://code.google.com/p/google-web-tool

Re: 1 layout - 3 browsers - 3 results?

2010-06-08 Thread kozura
Not sure how many times this has been stated, but if you use the Layout panels as it seems you are, you must use standards mode by adding to the top of your html file. Else your results are gonna be very problematic. On Jun 8, 9:33 am, Magnus wrote: > Hello, > > after struggeling with the posit

Re: Calculation of widget size during onModuleLoad() => move to DeferredCommand?

2010-06-07 Thread kozura
Yes, this is fine and there is no race condition; I do this all the time. The deferred command is guaranteed to run after all other processing of the current event stack is completed, which includes all rendering that determines final sizing. On Jun 6, 1:58 pm, Chris Lercher wrote: > Hi, > > I w

Re: GWT 2.0 and JDK 1.4

2010-06-07 Thread kozura
Nope, and the alternate plan won't work either; since GWT1.5 the code has made full use of the generics and other features available in Java 1.5. To use java 1.4 you'd have to go back to GWT 1.4, and I don't believe the RPC formats are compatible such that you could do the server in 1.4 and the cl

Re: Object serialization (again)

2010-06-07 Thread kozura
Most normal classes are serializable. Do you have a 0-arg constructor? Here are the requirements on serializable classes: http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes On Jun 7, 6:35 am, raj wrote: > I had a trawl through the forum and

Re: can not set breakpoint (2)

2010-06-04 Thread kozura
Maybe try Debug As instead of Run As, also make sure the ? gwt.codesvr=... parameter is in your browser's url On Jun 4, 12:45 pm, yves wrote: > Hi Everybody, > > In GWT 2 Dev Mode, I can't make the breakpoints work in eclipse : > client app doesn't stop on any breakpoint. > My config is: GWT 2.0.

Re: HttpSession Expiration Notice?

2010-06-02 Thread kozura
Probably much easier is to just do a client-side timeout using a Timer, not likely worth it to set up server push just for this. Of course any calls to the server should also check whether the timeout has been surpassed, and if so return a response that also times out the page. On Jun 2, 7:09 pm,

Re: refresh page in GWT

2010-06-02 Thread kozura
Literally 2 seconds of search turns up: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/429cbf743328c9a9/938fb8df06bf9cd5 On May 31, 1:30 pm, ahmed saleh wrote: > hello- > i have a big GWT application have more than  50 composites ,i have > big issue when customer, refresh

Re: JSNI Methode call does not work...

2010-06-02 Thread kozura
Your method signature doesn't match your class (String x3). Also, use int and I for signature instead of the Integer class. On May 31, 2:53 pm, Go2one wrote: > Hi, > > I've the following Class: > > public class Designer { >  private final native JavaScriptObject addNode() /*-{ >    alert("Pre JS

Re: Calling JSNI function or Java function to handle onClick event

2010-06-02 Thread kozura
Java functions are translated into obfuscated (ie renamed) javascript, so will not be available to call from an element. You can create a javascript function, perhaps attached to wnd, which could then call a java function. On Jun 2, 1:46 pm, DK wrote: > I have an anchor element with an onClick="

Re: Chunking File Upload

2010-06-02 Thread kozura
Sorry, GWT doesn't provide any particular magic over javascript, which due to its architecture to avoid security risks cannot access client files except by sending them to the server with the user's consent. You could run a separate server to process these, try a flash solution, or presumably upgra

Re: Date Serialization in RPC

2010-06-02 Thread kozura
Or, if all you really want is the actual date entered by the user and don't care about the time, you can simply send mm dd, either as a separate object or parameters to an RPC, and avoid custom serializers, interpreting Universal Date against timezones, or recompiling GWT. Why make sh*t compli

Re: nested layout issues

2010-06-02 Thread kozura
Did you figure out the problem with the outer-most DockLayoutPanel? Not knowing the intended design of your app, a LayoutPanel can create a centered region of a particular size, either relative with percentages or fixed. But, without some gymnastics it won't center something based on the final si

Re: nested layout issues

2010-06-01 Thread kozura
The DockLayoutPanel should take up the entire browser window when added to the RootLayoutPanel, regardless of its contents or the setSize 100% call. Did you make sure that your html document has at the top to put it into standards mode? I don't offhand see anything problematic in this code, alth

Re: GWT Design Problem

2010-06-01 Thread kozura
I recommend you use a single widget with a method to change the data showing in it (user profile, whatever). You have to be able to populate it anyway, so that's no extra code. Caching panels is generally a bad idea and a lot of overhead. As for limiting server calls, you can cache the data retu

Re: How can I prevent from reloading the page when the reload button on browser is clicked?

2010-06-01 Thread kozura
Everyone is of course correct about not trying to circumvent reload/ refresh, and using history tokens to track the current document and any state. If your app displays one or a few "documents" like emails, and has an easily enumerable set of display configurations, this works great. Just wanted

Re: Calling Methode using JSNI failed

2010-05-31 Thread kozura
Maybe try with int x and use I instead of the Integer class. Also even as is, your Integer method signature isn't quite right: land- >lang. On May 31, 3:15 pm, malibubu wrote: > Hi, > > I've the following class: > > package de.test; > public class Designer { > > public native void addNode() { >

Re: An implementation of Selection/Cursor for RichTextArea

2010-05-31 Thread kozura
FYI in lieu of getting it into GWT, I posted a standalone library to the issue mentioned above, with some caveats of a few cases that still need addressed. On May 31, 3:55 am, Yanick wrote: > If there is a selectAll(); method in the RichTextArea's formatter, > having a getSelection(); and a setSe

Re: Persisting web pages locally

2010-05-31 Thread kozura
Well this is the idea behind Google Gears, allowing you to locally persist data in a little lightweight db. Normal js won't allow this due to the myriad security issues; with gears the user installs it and allows client side code to access it. But the status of gears going forward is a little unc

Re: eclipse: using external jar library -> "No source code is available for type ; did you forget to inherit a required module?"

2010-05-30 Thread kozura
Search the forum for the literally dozens of answers to this... http://groups.google.com/group/google-web-toolkit/search?group=google-web-toolkit&q=No+source+code+is+available&qt_g=Search+this+group Not all java can be use in the client code (see JRE emulation) and any external library code must i

Re: About GWT poject Deployment

2010-05-29 Thread kozura
You need a tomcat/jetty/similar server to run the actual java servlet with your server-side code, apache won't run that for you. Sortof discussed here, or you can google either of those: http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html#DevGuideDeployingServletContainerUsingRPC

Re: how to center a panel within another panel?

2010-05-29 Thread kozura
You can place equal sized panels in the left/right (and/or top/bottom, not sure how you're trying to center) of the DockLayoutPanel, before adding the center panel. The center panel will then be centered between them. But note with the layout panel methodology, the center panel will take the full

Re: Menubar - retrieving the selected menu item within the Command object?

2010-05-29 Thread kozura
No, but you can do something close: m.addItem("Login", new MenuCmd(1)); m.addItem("Logout", new MenuCmd(2)); class MenuCmd implements Cmd { private int whichCmd; public MenuCmd(int which) {whichCmd = which;} public execute() { switch(whichCmd)... } } On May 29, 8:08 a

Re: real gwt serialization

2010-05-28 Thread kozura
Sounds like you just want a constant, can you just create the objects as static finals in your client code? No serialization or any such needed, just comes as part of the code. On May 28, 4:38 pm, rjcarr wrote: > So I understand gwt's rpc serialization and I've been using it for > quite some tim

Re: Profiling memory usage

2010-05-28 Thread kozura
> Could it have a link betwwen the size of the js file and the memory > took by the browser ? > > On May 28, 8:22 pm, kozura wrote: > > > You might want to generate a compile report and check memory size for > > the compiled > > code:http://code.google.com/webtoolki

Re: Profiling memory usage

2010-05-28 Thread kozura
You might want to generate a compile report and check memory size for the compiled code: http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html. As for the actual data, any javascript profiler will work, you will want to compile with the -pretty option to get legible function nam

Re: How to add an Element object into a Widget.

2010-05-28 Thread kozura
Any particular reason not to just use the Grid widget? The overhead is negligible and the code a lot simpler.. On May 28, 5:08 am, Rizen wrote: > Hello, > > For my project, I would like to create a table in HTML by means of the > DOM tree. > For this, I'm just using the functions DOM.createTable

Re: how to use one panel for the whole browser window?

2010-05-27 Thread kozura
Use one of the Layout Panels in a RootLayoutPanel. Read here: http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#LayoutPanels On May 27, 7:49 pm, Magnus wrote: > Hello, > > I would like to build my GUI within one panel that fills the whole > browser window. > > What do I have to

Re: GWT List box help

2010-05-27 Thread kozura
You're incrementing i while removing items, so always skip checking an item right after one gets removed. You can just traverse the selected items directly: int i; while ((i = source.getSelectedItem()) >= 0) ... On May 27, 1:31 am, Pinzine wrote: > Hi, > > I am having issue with GWT List box. I

Re: How to create a large table?

2010-05-27 Thread kozura
Wow seems you're doing this the really hard way.. Grid grid = new Grid(50, 4); for (int row = 0; row < 50; row++) { for (int col = 0; col < 4; col++) { grid.setWidget(row, col, new Label(row + " x " + col)); } } On May 27, 2:28 am, csaba wrote: > Hello there, > > I'm guessing this is a

Re: Do all classes in the a project need to be under a specific folder?

2010-05-27 Thread kozura
All client side code, including any imported classes, must either reside in the "client" directory below the Project.gwt.xml file, or in other paths indicated in that file using the directive . Importantly, all client code must adhere to the restrictions of the GWT compiler, such as only using JRE

Re: How to parse CSS

2010-05-27 Thread kozura
Yup, fairly heavily documented here: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResource On May 27, 3:45 am, Amine Ouahman wrote: > Thanks for your answer :) > > Does the CssResource feature allow me to get access to a property > value of a selector in the CSS?? > E

Re: New to java: where do i put new classes?

2010-05-26 Thread kozura
Ok, this is just a simple GWT setup issue. When you start GWT, the main argument is the module you're running, in your case com.mycomp.foo.bar.bar. This isn't a java class, but an xml file that has the metadata to tell GWT about your client app, and potentially any servlet you want run, discussed

Re: How to share code between Server and Client with DateTimeFormat

2010-05-26 Thread kozura
Make a generic interface for the methods you need and a factory; on the client side set the factory to create a DateTimeFormat version of the interface, and on the server a SimpleDateFormat version, in the initialization code for the client (onModuleLoad) and server (HttpServlet). On May 25, 6:16 

Re: New to java: where do i put new classes?

2010-05-26 Thread kozura
Nothing should be preventing you from creating non-client classes anywhere in the hierarchy, AFAIK. The gwt.xml file is just some meta- data used by the GWT compiler to build the client-side js code; includes of other modules, pointers to the client code etc. There should be no restrictions on se

Re: compile gwt into seperate core and app module

2010-05-26 Thread kozura
Have you looked at code splitting? I'm not sure exactly what you are trying to accomplish, but this allows you to build an "in-house" app with independent modules that depend on a core api, and only get loaded on demand. It doesn't allow for externally created plugin modules, as gwt requires a mo

Re: IE7,IE8 clicking #fragmented links does not call the history listener

2010-05-26 Thread kozura
Only those with # will call the history listener, unless that was a typo. Infact you should just be able to make the link be "#tokens..." without the site htm name. Otherwise these work fine across all browsers for me.. On May 24, 11:39 pm, Rares wrote: > Hello everyone, > I have a burning prob

Re: How to get notified after a widget has been completely rendered?

2010-05-26 Thread kozura
FYI, running a DeferredCommand as suggested by Stefan will guarantee everything is rendered. This runs immediately after all pending browser UI work and events are complete. But yes for your goal you should just use the original panel widgets. I think they may be marked deprecated in UIBinder bec

Re: Will we ever see a scrolling CellTable?

2010-05-24 Thread kozura
Also the ability to fix one or more columns from scrolling, for instance like you might see in a spreadsheet. Simplest is a single column "header", but the more complete general solution is to allow any number of fixed row/column header/footers to be specified, and of course row(/column)-spanning.

Re: How to remove last cell spacing from a Grid

2010-05-24 Thread kozura
Try setting the styling of the images to include "display: block;". Images are default display: inline which leaves extra space for text footers and such. On May 24, 4:03 am, outsource lucas wrote: > solved it partly by this: > >                 Grid grid = new Grid(3,3); >                 grid.s

Re: RPC callback fails: status code 0

2010-05-24 Thread kozura
Not sure what you mean by status code 0, does your onFailure callback get called, and what is the exception sent to it? Also be sure to check both the Jetty console and the client-particular console for any errors that show up there. On May 23, 9:49 pm, Sky wrote: > Hi all. > > I did the Stockwa

Re: History mechanism

2010-05-23 Thread kozura
The URL token can also refer to an object that captures state locally on the client. I do this as I have no simple state token which can represent what is showing on the screen. This works great for history, however the link is of course not transferable to another browser session. For that, eve

Re: DockLayoutPanel Sample Code No Style Issue

2010-05-21 Thread kozura
You have at the top of your HTML file to set the browser to standards mode? On May 21, 10:01 am, Matt wrote: > I tried the DockLayoutCode which is presented in the > Javadoc:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... > DockLayoutPanel p = new DockLayoutPanel(Unit.E

Re: resize-able panels like in google wave

2010-05-21 Thread kozura
source lucas > wrote: > > > > > great! i thought i had to make them myself! (sorry i'm new to GWT) > >   On Thu, May 20, 2010 at 9:03 PM, kozura wrote: > > >> Or the new SplitLayoutPanel which does arbitrary resizable panels. > > >> On May 20

Re: Problems w/ Switching Off App Engine

2010-05-20 Thread kozura
Not a thing you'd be switching back and forth on frequently - either you're using GAE as your backend or not. In any case having the jars there shouldn't cause any problem, more likely something wasn't recompiled when switched - maybe try a clean build after turning off GAE. On May 20, 4:51 pm,

Re: LayoutPanel

2010-05-20 Thread kozura
Be sure to read fully through http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html for various caveats and restrictions. In particular, if a layout panel is not directly parented by a widget that implements ProvidesResize, you must explicitly set its size (see "Using a LayoutPanel w

Re: resize-able panels like in google wave

2010-05-20 Thread kozura
Or the new SplitLayoutPanel which does arbitrary resizable panels. On May 20, 1:00 pm, Sean wrote: > I haven't used Google Wave, but it sounds like you're talking about > HorizontalSplitPanel which is built into GWT. There's also a > VerticalSplitPanel. > > On May 20, 7:38 am, outsource lucas wr

Re: How can I clone an object in GWT?

2010-05-20 Thread kozura
Well of course there's no need to send the state to the server, just capture it and maintain it on the client (of course the user can't copy the link to send to someone else, just use it locally). Just mentioning that if you already do send the data to the server for other reasons, you already hav

Re: How can I clone an object in GWT?

2010-05-20 Thread kozura
In general, trying to store the application state by storing the widget itself is a bad idea, would be very expensive and of course with no deep clone doesn't even work. Better is to extract just the data needed to reconstruct the widget state and store that, then reconstruct the state on history

Re: Huge XXXXXXX.cache.html file

2010-05-19 Thread kozura
169k is fairly small and normal size, esp with compression enabled; detailed compilations shouldn't generally be deployed and are more for debugging. This page details how to check the amount of space various components take up: http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.h

Re: Global key binding

2010-05-19 Thread kozura
Event.addNativePreviewHandler can be used to capture events like key presses globally. Cut/Copy/paste are not possible due to security issues (unauthorized grabbing of what may be sensitive data in the user's copy buffer), although some browsers do allow it after asking. Thus GWT doesn't provide

Re: TabLayoutPanel ie problem

2010-05-18 Thread kozura
Might be this bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=4694&can=5 The workaround should work for you. On May 18, 12:28 pm, ailinykh wrote: > Hello, >  everybody! > I try to create layout with two  TabLayoutPanel widgets. (One's tab is > the parent for another) > This is

Re: GWT and telnet connections

2010-05-17 Thread kozura
Sure, no reason why not. Client can just send user input to the server which forwards it on to the telnet session. You'd probably need to implement a form of server push to send any output of the telnet on to the client when it becomes available; look up "server push" and/or Comet. On May 17, 7:

Re: Synchronous Calls with RPC??

2010-05-17 Thread kozura
Many languages restrict what you can do when that thing is practically never a good idea given their design model - Java doesn't let you access pointers so developers can stick their scissors in the proverbial pointer-arithmetic electrical outlet. Even your issue had nothing to do with the async n

Re: Setting up a fixed left and right panel

2010-05-16 Thread kozura
Try the new DockLayoutPanel, it's made to do exactly this sort of layout. http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#LayoutPanels Be sure to follow the instructions carefully wrt RootLayoutPanel and standards mode. On May 14, 8:57 pm, Michael wrote: > I want to set up th

Re: Adding source code to GWT project from other projects

2010-05-15 Thread kozura
You need to add an "inherit" statement to the main project's xml to inherit the xml modules from the other projects, and of course ensure that source java files from them are in the main project's classpath. Here's some doc on modules: http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizin

Re: detect a mouseup when mouse is off the browser

2010-05-14 Thread kozura
No, you need to detect the MouseOut event and deal with it there; after that all bets are off of what mouse events you can get depending on browser and OS. On May 13, 4:52 pm, Adam D wrote: > Dear all, > > I am trying to create a table similar to the one in google > spreadsheet, where the user ca

Re: Target element of an event?

2010-05-14 Thread kozura
Widget target = (Widget)event.getSource() On May 13, 10:02 am, CJ Bilkins wrote: > How do I get the target of a clickevent in 2.0?  From what I can tell, > this is impossible?  But that can't be... so I must just be missing > something. > > I've found: > > event.getNativeEvent().getEventTarget()

Re: Let users build a user interface in the browser

2010-05-14 Thread kozura
You might look at gwt-designer; I don't know what their latest stuff does but it's exacrly this. On May 14, 3:25 am, linuxdogm wrote: > Hello, > > I already read about the GWT UiBinder which lets developers easy build > user interfaces from XML files. What I want is letting the users build > user

Re: XML binding/mapping and GWT-RPC

2010-05-14 Thread kozura
Server-side translation and sending through serialized classes is a fine way to go. I do it using xmlbeans, but then do a trivial conversion to some POJO classes that are much simpler and more compact for use on the client side, and of course work through RPC. I didn't actually try seeing if the

Re: Synchronous Calls with RPC??

2010-05-14 Thread kozura
For all those instinctively pushing for synchronous RPC whenever somebody "needs" it, please! This is exactly a case where synchronous network calls would be very bad, and just providing them because it's "easier to understand" or whatever would mean people would design very poor applications that

Re: How do you handle threading issues in development mode?

2010-05-12 Thread kozura
It is not multi-threaded. Most iterators don't allow modification of the list (except iterator.remove()) while iterating over it, regardless of threading. Either make a separate list of additions and add it at the end, or iterate with an index and add items in a way that won't affect your iterati

Re: DialogBox opens an DialogBox

2010-05-12 Thread kozura
Use dialog.hide() to get rid of the dialog. On May 8, 8:53 am, Animatrix wrote: > Hello ! > > I have a DialogBox with : > - Label(s) > - TextBox(es) > - A Button "OK" > > If something is wrong with one of the TextBox(es), I open an other > dialogbox explaining the problem. > Then I setVisible(fal

Re: GWT 1.7 to 2.0 upgrading problem: no longer working: GWTCanvas, gwt-diagrams2

2010-05-12 Thread kozura
4:54 am, Navigateur wrote: > Dear kozura, after some testing, some essential mouseovers and > mouseclicks stop happening in Firefox quirks mode, while they all > happen fine in standards mode (despite gwt-diagrams2 and GWTCanvas not > working in standards mode). Is this a known is

Re: help for sending e-mail using rpc / gwt

2010-05-11 Thread kozura
What have you tried? For example, have you looked at the plentiful example code included with GWT, which includes examples of how to do RPC: http://code.google.com/webtoolkit/examples/ And of course the RPC documentation with example code: http://code.google.com/webtoolkit/doc/latest/DevGuideSe

Re: GWT 1.7 to 2.0 upgrading problem: no longer working: GWTCanvas, gwt-diagrams2

2010-05-11 Thread kozura
The indicates that the browser should be running in standards mode, which is required for GWT 2.0's new LayoutPanel type of layout. However just using the original layout panels (FlowPanel, HorizontalPanel, etc) still works the same as ever, in quirks mode. So if a library you want to use doesn't

Re: Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file

2010-05-11 Thread kozura
You don't have to wait for the server to download the entire file to give a response, you can get it right away and send back an error immediately; just the cost of a quick round trip to the server. As suggested in many similar posts, gwt-upload is a pretty good solution for file uploads in GWT: h

Re: ant hosted not working on my machine ...debugging is very tedious

2010-05-09 Thread kozura
Why not install a later version of firefox? ff 1.5 is pretty old.. You can also just take the same URL and paste it into your Opera (or any other browser) On May 9, 5:21 am, Sid wrote: > Hello, >       I am unable to develop in hosted mode because of which I am > unable to > debug the code in Ja

Re: Grid component spacing question.

2010-05-08 Thread kozura
Style it with display: block;. Images by default are inline which leaves space for text footers. Yeah that makes no sense.. On May 8, 3:41 pm, Julio Faerman wrote: > I have a undesired white space in my grid cell between the image > bottom and the cell border. > > This simple code shows the pro

Re: dynamically load GWT module

2010-05-06 Thread kozura
Not knowing your reasoning for wanting to load two modules in a page, multiple modules can work as: - Separate pages, so loading second module completely takes over from the first - Within an iframe, same idea but can be loaded from within the first page - Code splitting, probably the best way to

Re: How to determine if running on client or server?

2010-05-05 Thread kozura
Make a factory, in the client code initialize to a client- implementation creating factory, and on the server to a server factory. Note that to pass it through RPC you'll need to use/convert to the client side class. On May 5, 8:59 am, stingermn wrote: > I have an interface, XYZ, which is implem

Re: Can I access a specific class by using module xml file

2010-05-04 Thread kozura
com.lightspeed.web error vs com.light.web code? If you are trying to use "web" as a library, you need to make sure you're inheriting the xml file. Is your xml file for "web" called "weblib.gwt.xml", as this is what the inherit statement is looking for. On May 4, 6:56 am, pragupt wrote: > Hi, >

Re: RadioButton group handling

2010-05-04 Thread kozura
Create one single ValueChangeHandler and add it to all the radiobuttons, and have it save which one got pressed. There's no GWT functionality which does this for you. On May 4, 6:40 am, Stephan T wrote: > I have ten radio buttons which is a group. Is there a way to ask the > group of it's curren

Re: Having problems with Gilead and hibernate integration in gwt

2010-05-04 Thread kozura
Sounds like you're using server-side code on the client side: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9f70241aa6e7ef17/207f54eb2f82a1f9 On May 4, 2:21 am, efsiken wrote: > Hi, >      I'm still new to gwt and so permit me if I speak what is not > right. I started up

Re: SplitLayoutPanel, Resizing

2010-05-01 Thread kozura
As much as it tries to abstract, GWT is still bound underneath to html elements and thus you must tinker with styling/CSS to get layout right. And unlike most layout systems out there, there is no great child-type independent layout containers that work perfectly. LayoutPanels try, but still not p

Re: Ray Ryan, best practices and embracing asynchronicity

2010-05-01 Thread kozura
Doing this well depends on some form of centralized data retrieve dispatch/caching. You make calls to this centralized service to get the objects by id that you are interested in. It either finds them in cache and can return them immediately, or adds them to a queue of objects to retrieve. Afte

Re: Object Type (typeId$) different for two of the same type: java.util.Date

2010-04-30 Thread kozura
Used to be RPC would just not allow these types and you'd get a serialization error, now they work but maybe was better to get the error and deal with it upfront.. Anyways I find it best just to always translate everything that might get sent back to Date as it comes out of your database calls, me

Re: error javax.mail

2010-04-30 Thread kozura
I think you're missing the gist of the above replies - you can't use this library on the client (browser) side of GWT. Only libraries that use the limited set of the JRE emulated by GWT, listed here: http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html, can be used in client side code

Re: KeyPressHandler tips with keys canceling

2010-04-30 Thread kozura
Yeah, as this covers all cases (typing, pasting) quite simply. I do this with a textbox extension where I pass it the set of legal characters, all others are just filtered out upon user actions that change the text. On Apr 30, 8:54 am, mariyan nenchev wrote: > Pasting non-digits is handled corre

Re: Serialization exception in RPC call when overiding method of serialized object in GWT 2.0.3

2010-04-30 Thread kozura
I would guess that this is due to the serializer not including this anonymous class in its list of things to be serialized. Even though you haven't changed the members of the class, it'll see it as different. Try the same but as a full separate class. On Apr 30, 7:04 am, Flueras Bogdan wrote: >

Re: KeyPressHandler tips with keys canceling

2010-04-30 Thread kozura
Seems it'd be much easier to just validate the values in the textbox after key/mouse events or whatnot, rather than try to fiddle with the keys they're allowed to press. For example this wouldn't stop someone from pasting non-digits into the dialog.. -- You received this message because you are

Re: GWT 2 works in oc4j at the OAS 9?

2010-04-30 Thread kozura
You can pretty much use anything you want on the server side, so no reason this wouldn't work. On Apr 29, 6:46 pm, luciocamilo wrote: > I wanna use GWT 2 at my company, but I didnt test yet if will it work > at oc4j, specifically at Oracle Application Server 10.1.3? > -- You received this messa

Re: Object Type (typeId$) different for two of the same type: java.util.Date

2010-04-28 Thread kozura
Any chance the RPC transmitted type is java.sql.Date? On Apr 28, 4:24 pm, javaunixsolaris wrote: > I have a BUG that only manifests while in JavaScript, I couldn't > recreate it in HostedMode or even -Dgwt.args="-prod" mode (supposed to > run javascript right? but I digress). > > So I hit the app

Re: Register Labels to listen for combo box events

2010-04-28 Thread kozura
Not sure what "combobox" you're using, but all GWT widget events can have multiple handlers. Each label wanting to listen to a widget for change can add its own via addChangeHandler, vs having a single handler on the widget itself. On Apr 28, 9:17 am, StrongSteve wrote: > Hello Everybody! > > I

Re: How to download files to the client?

2010-04-27 Thread kozura
The wonders of search.. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/ff0efb4eb33bea9d/41baea555290965f The sol'n indicated there seems to work. On Apr 27, 10:09 am, nacho wrote: > Hi, i have a Button that calls a service, makes a zip in the server > and when it finishe

Re: Why no getCursorPos() in RichTextArea

2010-04-27 Thread kozura
Step 1 is trying to get this included in GWT. Numerous people have agreed this should be a feature of GWT, so I'm seeing if I can get the code accepted, as indicated in the post and issue links above. So far no response, we'll see. If it doesn't happen, I may just release a little library with i

Re: How to notify the client browser that the new build is deployed on the server

2010-04-27 Thread kozura
Check out the very bottom of this page, it describes the settings to use for apache to properly manage caching: http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html jk On Apr 26, 7:35 am, jchittoda wrote: > Hi, > > We are creating GWT based application. We used to dep

Re: how to change method add(String) in MultiWordSuggestOracle to add(htmlString)

2010-04-27 Thread kozura
Seems you could just extend MultiWordSuggestOracle to override isDisplayStringHtml() to return true. On Apr 27, 1:59 am, "jamshid.asatillayev" wrote: > how to change method add(String) in MultiWordSuggestOracle   to > add(htmlString) > in this code: > # MultiWordSuggestOracle oracleSurveys = new

Re: GWT Module not loaded on app engine

2010-04-27 Thread kozura
You need to give more info about the problem and what you've done to try to debug. There's many things that have to work to get a deployed app to work, and many more that can go wrong. You say your app works in Dev mode, but not when deployed to GAE? Just off the top of my head (and not being a

Re: Why no getCursorPos() in RichTextArea

2010-04-26 Thread kozura
Yes, the selection API along with the existing DOM API should let you do pretty much any of these manipulations based on cursor position, and probably more easily and robustly than what it sounds like you're describing using text strings. Also allows proper preservation of the cursor position - if

Re: Update Progress Pop Up

2010-04-26 Thread kozura
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b6f045a1e5b7496c/d8b9f6a97b17eb98 On Apr 26, 1:40 pm, Harsh Yadav wrote: > Hi, > > I want a way to show an update progress panel, when any of the RPC is still > in progress. > > I could use a dialog on RPC call, and hide it on

Re: Why no getCursorPos() in RichTextArea

2010-04-26 Thread kozura
Sure, those sorts of functionality are what this covers, but it's not terribly useful for what you're saying to get the cursor relative to the basic getText() string. Sure, you can check the words in the string, but how do you then change the actual DOM document without affecting other markup? Wi

Re: Session Timeout Popup

2010-04-26 Thread kozura
Easiest is probably to just create an exception for session timeout, and throw it on the server side after you check for session validity. Then put a standard method in your onFailure call to popup the error when that exception is received. On Apr 26, 8:25 am, StrongSteve wrote: > Hi Everbody, >

Re: Use external jar files in gwt web application--error-help--

2010-04-26 Thread kozura
The library you are trying to use is intended for running in a java VM, not a browser's javascript engine. You need either a javascript library to wrap with JSNI, or a java library that meets the requirements below. Google openid gwt and you'll see how people have been able to use openid with gwt

Re: TabBar

2010-04-26 Thread kozura
TabPanel is not deprecated. However, if you are using tabs inside a LayoutPanel type of layout, vs the traditional panels, and/or using Standards mode, you need to use TabLayoutPanel instead. Questioner seems to be using the original GWT panels for layout, so can stick with TabPanel. Useful as L

Re: Importing Apache Tomcat Library / Unable to find classpath

2010-04-26 Thread kozura
Also, the eclipse build path, which is used by eclipse and for doing things like auto-completion, doesn't necessarily make it to the classpath seen by java, which needs to be configured under the Run Configuration to be seen by the GWT compiler. And finally, as Shrisha mentions, the GWT compiler u

Re: An implementation of Selection/Cursor for RichTextArea

2010-04-26 Thread kozura
I've posted onto the existing issue at http://code.google.com/p/google-web-toolkit/issues/detail?id=1127, but so far no response from the GWT team. I'll post to contributors and see what comes of it. Don't want to spend the time to make it gwt compatible if it's not going to go into gwt. Even if

Re: Prerendering GWT UI - avoiding white blank screen before UI is generated?

2010-04-25 Thread kozura
At the very least it's pretty easy to add some tags to the html page for each, for instance a waiting animation/message, or even a barebones outline of your app. When your GWT module loads it can just remove those elements and create the display - or even keep them and fill itself in using them as

  1   2   3   >