Datagrid. Keep scroll position after repopulating

2015-12-10 Thread jaga
Hi, I achieved this. To summarise:- you must get access to the table's inner scroll panel for the central table. Once you have this you should cache its position everytime it changes. Now when new data is pushed you reset its position to cached position. - -- You received this message

Re: GWT DataGrid does not display, CellTable does

2015-10-02 Thread jaga
I'd try placing each widget in its own container and showing hiding the containers rather than the tables. If you use a layoutpanel as a container for each container then you can call LayoutPanel.setWidgetVisible(). -- You received this message because you are subscribed to the Google Groups

How to resize the layer of a DeckLayoutPanel when showing the layer after it has been hidden

2015-07-25 Thread jaga
Try onResize or forceLayout. The problem might be that u are using a flow type widget within the layout panel. In that case try setting width height to 100%. Also, if you are using a LayoutPanel for your child widget then you could inherit from ResizeComposite. That will give u the required

Re: GWT-RPC: hacked attempt on request payload.

2015-07-24 Thread jaga
The module approach looks interesting. An alternative is to override the method on the rpc servlet which handles this part. Then trap the error and return a string of your choice. The method will be the one which handles the deserialisation in the RemoteServiceServlet. Possibly

FlexTable with static THEAD and TFOOT?

2015-07-22 Thread jaga
And another thing to add re DataGrid. One gotcha is you must be careful about setting the height. The best solution is to use LayoutPanels. Give the DataGrid an explicit height. Place the DataGrid in a LayoutPanel with a width and height of 100%. Alternatively ensure you have an unbroken chain

FlexTable with static THEAD and TFOOT?

2015-07-22 Thread jaga
Hi, Your implementation looks fairly old school. I think what you are looking for is a DataGrid. Please refer to the gwt showcase. It is a Cell widget. There will be a learning curve and the code will need a rewrite. I expect the finished result will be a good improvement over a FlexTable.

Re: How to do smooth scrolling on browser back/next button on same-page navigation?

2015-05-11 Thread jaga
Is it possible for you to use LayoutPanels? If you can the. You get animation for free. You can easily do smooth scrolling using this. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails

Re: How to do smooth scrolling on browser back/next button on same-page navigation?

2015-05-11 Thread jaga
Is it possible for you to use LayoutPanels? If you can then you get animation for free. You can easily do smooth scrolling using this. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails

Re: source maps unreliable in 2.7.0

2014-12-16 Thread jaga
On stable Chrome versions I couldn't inspect the variable values. How do you do it? When I attempt to evaluate a variable it just gives an error. Unfortunately Canary is the only way I had of viewing the values at runtime which is a good enough reason to use it. I don't know how to use

source maps unreliable in 2.7.0

2014-12-15 Thread jaga
Hi, I am being frustrated because I cannot get sourcemaps to show up in Chrome in 2.7.0. I have tried SDBG but it didn't work. I had an error saying it couldn't find chrome. Then once working it didn't stop at breakpoints. Firefox - forget it - it gets the source maps but it hangs often and

source maps not reliable on 2.7.0

2014-12-15 Thread jaga
Hi, I am being frustrated because I cannot get sourcemaps to show up in Chrome in 2.7.0. I have tried SDBG but it didn't work. I had an error saying it couldn't find chrome. Then once working it didn't stop at breakpoints. Firefox - forget it - it gets the source maps but it hangs often and

CellTable gets cut off at bottom of browser window; vertical scroll unavailable

2014-11-30 Thread jaga
Please try a DataGrid. Make sure you put it inside a layoutpanel. That layoutpanel should itself be placed in a layoutpanel. And so on until the rootlayoutpanel is reached. Also use a ResizeComposite and not Composite. If you do this it will appear without you having to give it a size. It will

GWT and JAXB Basics Runtime

2014-11-26 Thread jaga
I am using CXF JAXB generated classes in a GWT application. I would like equals() and hashCode() to be added to the generated classes. I have successfully used the JAXB2 Basics Plugins (http://confluence.highsource.org/display/J2B/JAXB2+Basics+Plugins) and the JAXB2 Basics Runtime with CXF in

Re: GWT 2.7.0 is here

2014-11-24 Thread jaga
Yes. I noticed it needs double the memory. Also the -port parameter does not seem to work in Eclipse. Finally, and most importantly, I could not get the source maps to work. They don't appear in chrome dev tools. I had it all working in 2.6.1. -- You received this message because you are

Re: Google Chrome 35 GWT plugin incompatibility

2014-05-24 Thread jaga
I think you need both a Dev mode and a Super dev mode environment for effective debugging. I use Chrome for Superdev and have a VM with IE 9 for Dev mode. Sometimes you get exceptions without a stack trace in the browser console under Superdev. You then need Eclipse and Dev mode to discover the

Re: Only subset of HTML supported by HTML class?

2014-03-28 Thread jaga
Hi, it is better to use CSS to format the text in HTML. I expect it would work if you did that. Try using span and CSS styles for text you want to format. E.g., span style=font-weight: bold;hi/span -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

Re: SubmitCompleteHandler not always called

2014-02-19 Thread jaga
Hi, You might need to set the response type in servlet to txt/html. E.g. content-type = 'text/html' jaga On Tuesday, 18 February 2014 00:22:10 UTC, Bruce Grant wrote: I am interested in implementing the following using GWT... 1. Create client-specific form variants in HTML

Re: SelectionCell with unique list of options for every row

2014-01-24 Thread jaga
normally. 3. Add a flag to the model data structure you are using to tell the column which selection cell to render. HTH Jaga. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from

Re: How can I set correct size of widgets in a SplitLayoutPanel ?

2014-01-13 Thread jaga
While perhaps not directly related to your issue I feel it might be worth pointing out some issues regarding layout panels. Please make sure you read up on layout panels. See the gwt web site for an article. Also note that the DataGrid is a fussy widget which may not display unless it is both

Re: New article on using Cell Widgets for every day GWT development

2013-12-14 Thread jaga
Hi, admittedly I haven't studied the article but still wanted to comment on something I noticed. The use of tables for screen layout is not best practise. It is far better to use divs (FlowPanel) and CSS. Jaga -- You received this message because you are subscribed to the Google Groups

DataGrid with SingleSelection

2013-11-25 Thread jaga
enable keyboard selection the cells and rows have an annoying 'third' state. This makes styling difficult when attempting clearly illustrate a row's selection state. Jaga -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from

Re: Using DatePicker in CellTable

2013-11-25 Thread jaga
Perhaps you can override the DatePickerCell's FieldUpdater() method? I realised I hadn't been crystal clear in my answer to 2). Of course once the user has picked a date the cell's value has changed. You may have too store the old value and manually update the DateCellpPicker's value. --

Using DatePicker in CellTable

2013-11-22 Thread jaga
CellTable.redraw() or refresh your data provider. Jaga -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post

Re: SuggestBox and HasBlurHandlers

2013-11-03 Thread jaga
How about extending the popup interface SuggestDisplay? You can then handle the callbacks which get fired when the popup is hidden. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails

Re: Error in superdev mode

2013-10-21 Thread jaga
. jaga On Sunday, 20 October 2013 19:04:32 UTC+1, NK wrote: Thanks Jaga for your responses. Yes, I tried as what you said. But I still see same result. On Sun, Oct 20, 2013 at 7:51 PM, jaga j.ann...@gmail.com javascript:wrote: So until 2.6 you are going to have work around it. Have you

Re: Error in superdev mode

2013-10-20 Thread jaga
assuming that you are hosting your pages for 'superdev' using the standard 'devmode'. HTH Jaga -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit

Re: Error in superdev mode

2013-10-20 Thread jaga
is that only some are being recompiled. Eclipse will automatically build the project when there has been a change. It will update the jetty war files as part of that process. Jaga -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe

Re: Error in superdev mode

2013-10-20 Thread jaga
Also try Ctrl F5 in your browser! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group,

Re: Error in superdev mode

2013-10-20 Thread jaga
Also try Ctrl F5 in your browser! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group,

Re: Error in superdev mode

2013-10-19 Thread jaga
Hi, There is an option in eclipse for automatic building. If you turn this off you may solve your problem. The problem is that the files used by the superdev mode are becoming out of date. This happens every time you are changing code in eclipse. Changing the code will trigger the build and

Re: Running GWT in SuperDevMode (Maven)

2013-09-21 Thread jaga
Best thing to do is to post your pom.xml here. We can then see what you are doing. On Friday, 20 September 2013 20:01:23 UTC+1, Xybrek wrote: Running $`mvn gwt:run-codeserver` throws this error: [INFO] Webapp assembled in [1255 msecs] [INFO] [INFO] ---

DateBox with months and years only ?

2013-09-17 Thread jaga
The main ingredient will be a DateTimeFormat. http://www.gwtproject.org/javadoc/latest/com/google/gwt/i18n/client/DateTimeFormat.html Initialise your datebox with a correctly configured DateTimeFormat. Create a uibinder class using gwt eclipse plugin. Add a date box to it. Use provided=true

Re: Dirty Form Flag in GWT or basically how to identify if in the form if there are any unsaved changes

2013-08-29 Thread jaga
Hi, I think a good way to achieve this is to compare the model objects. I will explain the approach as follows: 1) on starting the screen make a copy of the object to be edited - I presume this is downloaded via an RPC or similar. 2) edit the object. Every time a field changes update the

Re: TabLayoutPanel not visible in IE - old bug still unsolved?

2013-07-25 Thread jaga
Firstly make sure you use nested layout panels. This should be from the root all the way to the tablayoutpanel. Then if the problem remains the way I fixed this is to programmatically switch between the tabs. You should do this after you have done everything else in code for setting up the

Build tree table with GWT CellTableBuilder

2013-05-22 Thread jaga
Hi, I managed this. I followed the example given on the latest GWT showcase for the custom data grid http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCellTable Key is new TableRowBuilder. You can inject rows into the table. Use a Click event on a cell to trigger the

Quantify GWT Debug module overhead

2012-03-30 Thread jaga
Hi, According to the literature adding the GWT Debug module to your project and add onEnsureDebugID to your widgets adds overhead[1]. Can someone be more specific on what this overhead is? Also why does GWT completely remove ids anyway? Does it have anything to do with experience of

Re: DataGrid auto-set column width

2011-10-24 Thread jaga
Hi, Had a quick look at this:1) they set dataGrid.setWidth(100%) - but this just scales it to the width of the screen. 2) they do set fixed column widths - have a look at initTableColumns() They are some useful calls available. Have a look at the

Re: DataGrid auto-set column width

2011-10-22 Thread jaga
Okay - for the first solution I did as follows: 1) for each row of data 1.1) for each field 1.1.1) count the number of characters 1.1.2) keep a running maximum 2) finally you have an array of maximum sizes where each index corresponds to a column, e.g. ListInteger maxes; 3) for each cell column

Re: DataGrid auto-set column width

2011-10-13 Thread jaga
I have the same problem. For me there are two solutions: 1) calculate the maximum field width at runtime by inspecting the row data. Then set the field header size. 2) leave as stock and listen for a mouse click or similar on each field header and then resize it. On Oct 10, 2:49 pm, misko237

Re: Odg.: Re: How to speed up Hosted mode

2011-04-19 Thread jaga
I noticed that if the temp directory wasn't cleared Eclipse took longer and longer to start up. Up to 10 minutes. I wrote a simple script which runs every boot to clear out the offending files. I am not sure if this affects the compilation performance or not. On Apr 18, 9:24 pm, Jeff Larsen

Re: To smart GWT or not

2011-02-10 Thread jaga
One problem with GWT is it's lack of styling. The default style is un- styled and doesn't work for our application. SmartGWT on the other- hand provides an attractive uniform styling. The blocker for me is that now you are using another 3rd party library: you have to learn its ways, integrate with

Re: Deselect items in a CellTree with MultiSelectionModel

2010-09-02 Thread jaga
sure your model implements Comparable. The compareTo, equals, and hashCode have to be well implemented for the selection model to work ok. On Aug 26, 9:32 am, jaga j.annes...@gmail.com wrote: I suppose this is relevant for a CellTable too? The code which does the selection is in model object

Re: CellTable and CeckboxCell

2010-09-02 Thread jaga
I got the multiple selection to work as I and Jocke want by adding a ButtonCell adjacent to the CheckboxCell. The code is in Bike Shed. The ButtonCell is also bound to the Selection Model. This takes care of what seem to be two bugs: 1) the CheckboxCell is not firing a setFieldUpdater event 2) the

Re: Deselect items in a CellTree with MultiSelectionModel

2010-08-26 Thread jaga
I suppose this is relevant for a CellTable too? The code which does the selection is in model object. The object'implements Comparable and the equals, compareTo and hashCode. Is it possible to pass in a flag which says whether the row is selected, then return false for the equals? On Aug 20,

scrolling table and RPC data

2010-03-29 Thread jaga
any neat ways of doing this in GWT or knows any existing code they could point me to. If it works like the PagingScrollTable with it's RPC request callbacks and Cache that would be even better. Best regards, Jaga -- You received this message because you are subscribed to the Google Groups Google

Re: How to correct IE font size problem?

2010-03-10 Thread jaga
Hi, I solved this by setting the XML Doc Type to Standards mode. GWT sets this to quirks mode by default. A quick fix but may have far reaching consequences to how your app's look and feel. Look in your application's HTML file and set this at the top. Cheers, Jaga On Mar 4, 8:57 pm, Sorinel C

Re: Does anyone worked with GWT connecting to Web Services in the server side?

2009-11-10 Thread jaga
I use Axis 2 to communicate with web services on the server. The ServiceImpl and RPC gives the results to and from the GWT client. James On Nov 9, 4:32 pm, doopa niallhas...@googlemail.com wrote: Hi, I use tomcat to connect to a variety of webservices. Essentially it works as a client to