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 because you are subscribed to the Google Groups "GWT 
Users" 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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 "GWT 
Users" 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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 interfaces and the 
correct onResize method.

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 
http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/server/rpc/AbstractRemoteServiceServlet.html#onAfterRequestDeserialized(com.google.gwt.user.server.rpc.RPCRequest)

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 of LayoutPanels from 
the root to your DataGrid . In the later case you should use a RootLayoutPanel.

James

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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. Despite their name 
I found these to be inflexible!

James 

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 conditional JavaScript 
breakpoints.  Perhaps some documentation would help? 

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 the source code organisation is 
poor. This leaves Chrome. I was using stable - which requested the source maps 
OK - but isn't useful because you can't evaluate any variables at a breakpoint. 
I was using Chrome Canary since 2.6.1 and this was better because it could. 
Since 2.7.0 I can't get Canary to request the sourcemaps. I know it is some 
json file. Can I trigger this manually? Please help as this is most 
frustrating. 

I really think that although  2.7.0 is an improvement in terms of speed but 
this really needs to be sorted. I am having to resort to dev mode which just 
feels like a waste of time. Best of all would be proper IDE integration.

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 the source code organisation is 
poor. This leaves Chrome. I was using stable - which requested the source maps 
OK - but isn't useful because you can't evaluate any variables at a breakpoint. 
I was using Chrome Canary since 2.6.1 and this was better because it could. 
Since 2.7.0 I can't get Canary to request the sourcemaps. I know it is some 
json file. Can I trigger this manually? Please help as this is most 
frustrating. 

I really think that although  2.7.0 is an improvement in terms of speed but 
this really needs to be sorted. I am having to resort to dev mode which just 
feels like a waste of time. Best of all would be proper IDE integration.

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 expand 
to fill the panel . Otherwise it won't appear without explicit sizes. Don't put 
it in a scrollpanel. 
If this is not possible then use a celltable. Put it in a scrollpanel - as you 
have - and set a fixed width and height to the scrollpanel.

Grumble - replying to this in my mobile browser is unreliable.

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 the Maven POM to generate them. However, 
the generated classes are now incompatible with GWT. The classes have 
dependencies which are not emulated by GWT, e.g., java.util.ResourceBundle, 
java.net.URL.

I am considering using a CustomEqualsStrategy but that will still leave the 
org.jvnet.jaxb2_commons.locator.ObjectLocator class. Has anyone got this to 
work?

(I also posted this on StackOverflow.)

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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 cause. While Dev 
mode loads, go and make yourself a cup of tea. 

I heard IE 9 is the quickest for Dev mode. It is still limited becauae Eclipse 
is liable to run out of memory if you make a change and refresh browser. Yes 
you can tinker with its memory settings, but this is tricky.

Superdev is getting better all the time as Chrome debugging tools improve. I am 
looking forward however, to being able to debug in Superdev within Eclipse.

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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  and CSS styles for text you want to format. 
E.g., hi

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


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, with shared/core 
>field definitions, but unique look and feel
>2. User logs in to front-end application, clicks a link and proper 
>form HTML is streamed from server (via RPC) 
>3. Html is added to a FormPanel
>4. User completes the HTML form and clicks submit 
>
> When I use submit with POST and a servlet, the form is submitted as 
> expected and my SubmitCompleteHandler is called. However, if there are 
> other GWT widgets on the page or I move the HTML to a popup then the 
> SubmitCompleteHandler does not get called. More specifically, if the 
> injected HTML is not put into a FormPanel that is defined before any other 
> widgets then the SubmitCompleteHandler does not work. I have read much 
> about SubmitCompleteHandler but couldn't find anything specific to this 
> issue.
>
> So, I would like to either find a way to get this scenario to work, OR, 
> find an alternative (e.g., serve up HTML forms in the same way, but extract 
> data from HTML fragment client side [how?] and then submit to server via 
> RPC).
>
> Any ideas/thoughts are very much appreciated.
>
> Many Thanks,
> Bruce. 
>
>
>

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: SelectionCell with unique list of options for every row

2014-01-24 Thread jaga
I've done something like this before. It will depend upon how many rows you are 
talking about. It goes like this:

1. Create a composite cell which contains the n different single selection 
cells you will need.
2. Populate them with their options when you build the cells columns , as you 
would 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 it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


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 explicitly resized and placed within a layout panel itself 
directly. The flowpanel and flextable are not layout panels.

James

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


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 
"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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


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.

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


DataGrid with SingleSelection

2013-11-25 Thread jaga
The right way to manage selection is using a SelectionManager. Try the 
SingleSelectionManager. 

The keyboard selection is something a little different. I actually think 
keyboard selection in GWT is fairly broken. The boundToSelection setting never 
seemed to be useful to me. In any case if you 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 this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Using DatePicker in CellTable

2013-11-22 Thread jaga
For 1) just override the render() method of the cell or column. If the value is 
null do nothing otherwise render as normal .
For 2) I suggest you look at the cell validation example in the gwt showcase. 
You could also probably just as well ignore the modified value and just call 
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 to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


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 from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Error in superdev mode

2013-10-21 Thread jaga
Hi,

One of our devs has the same problem as you so I am happy to help! I walked 
him through my instructions and we got it to work. But there was one 
important step which I didn't include, however! Explained as follows:

- After you stop, clean and rebuild everything, start up normal dev mode 
and use your app.
- Then start super dev mode.

The trick is in the act of logging in the app in dev mode. The RPC files 
will be generated for you only at this point. Something to do with deferred 
binding? Then when you start super dev mode it can copy the newly generated 
RPCs files over.

HTH.

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 >wrote:
>
>> So until 2.6 you are going to have work around it.
>>
>> Have you tried what I suggested? Stopping and starting the gwt superdev 
>> code server? This will create a new temp folder and copy 'static' files 
>> over. At the moment this will include RPC files.
>>
>> Perhaps the reason some work and some dont 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 from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Error in superdev mode

2013-10-20 Thread jaga
So until 2.6 you are going to have work around it.

Have you tried what I suggested? Stopping and starting the gwt superdev code 
server? This will create a new temp folder and copy 'static' files over. At the 
moment this will include RPC files. 

Perhaps the reason some work and some dont 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 from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Error in superdev mode

2013-10-20 Thread jaga
Hi,

I think the reason for your problem is as Thomas says. He however doesn't 
provide a solution.

I think you should try as follows:

1. Turn off 'Auto build' from Eclipse menu. It is on the 'Project' menu I think.

2. From then on you will have to stop the Eclipse 'devmode' server, clean and 
build the project manually. Then start 'devmode' and restart 'superdev' mode 
server.

This should only be needed when you make a change to the server side code. E.g, 
the RPC methods or any serialised data transfer classes, I.e. classes 
transferring data to and from client to server.

I am 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+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


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 hence the files you 
previously copied to the superdev server are becoming out of date. These are 
the RPC files Thomas talked about.

Solution: to restart superdev after every build. You will have to trigger a 
build. It might only be a problem when you are changing the server side files.

Ja 

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


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] --- maven-datanucleus-plugin:1.1.4:enhance (default) @ web ---
> [WARNING] Could not transfer metadata asm:asm/maven-metadata.xml 
> from/to local.repository (file:../../local.repository/trunk): No connector 
> available to access repository local.repository 
> (file:../../local.repository/trunk) of type legacy using the available 
> factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory
> [WARNING] No files to run DataNucleus tool 
> 'org.datanucleus.enhancer.DataNucleusEnhancer'
> [INFO] 
> [INFO] <<< gwt-maven-plugin:2.5.1:run-codeserver (default-cli) @ web 
> <<<
> [INFO] 
> [INFO] --- gwt-maven-plugin:2.5.1:run-codeserver (default-cli) @ web 
> ---
> [ERROR] java.lang.NoClassDefFoundError: 
> com/google/gwt/core/ext/TreeLogger
> [ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
> [ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
> [ERROR] at java.lang.Class.getMethod0(Class.java:2685)
> [ERROR] at java.lang.Class.getMethod(Class.java:1620)
> [ERROR] at 
> sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:488)
> [ERROR] at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:480)
> [ERROR] Caused by: java.lang.ClassNotFoundException: 
> com.google.gwt.core.ext.TreeLogger
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> [ERROR] at java.security.AccessController.doPrivileged(Native Method)
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
> [ERROR] at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> [ERROR] ... 6 more
> [ERROR] Exception in thread "main" 
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 22.901s 
> [INFO] Finished at: Fri Sep 20 15:33:27 CST 2013
> [INFO] Final Memory: 46M/356M
>
> What could be the problem with this? The GWT version my app uses is 
> `2.5.1` and also with the GWT Maven plugin.
>
> I'm not sure if my app is missing something. 
>

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


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 to allow you to initialise it manually.

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


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 object.
3) if the screen is about to change compare the edited object with its 
copy. I suggest you override Java equals().
4) if there is a difference then display a warning. The Places Activities 
has a mechanism to detect changes.

Best regards,

On Wednesday, 28 August 2013 12:59:00 UTC+1, Gustavo Rodríguez wrote:
>
> Hi BM,
> I am trying pretty much the same thing ... did you find a generic and 
> performant approach to it? I am thinking of exploring the DOM and adding an 
> event handler to every widget ... but well, that might not be good for 
> performance, so i would appreciate your comments if you already dealed with 
> this before.
> Thanks!
>
> On Wednesday, January 30, 2013 1:11:44 AM UTC+1, BM wrote:
>>
>> Thanks Rob for the reply. Point 1 and 2 are really not important. I put 
>> it there as I really don't want to check every field and see if any value 
>> is really actually changed or not. 
>>
>> I haven't used Editor framework though. Not sure how easy it is to 
>> implement existing forms done thru GWT event handling and RPC.
>>
>> I thought about the onBlur Event or onChange Event but what if I have 
>> dynamic implementation of textboxes based on data coming from the server? 
>> Adding a separate ValueChangeEvent handler may require adding an event 
>> handler for every textbox which is not efficient I believe and may use up 
>> memory. Also if I add checkboxes, Radios, ListBoxes, I have to manually 
>> handle all the events and write custom code to manage the isDirty method. 
>>
>> On top of that I use MVP framework with Activities and Places. 
>>
>> With all I had said so far, what I really want to show user pop-up 
>> message if they navigate away from the current form to a different Place 
>>  or different tab within the same place  (Parent Activity and various child 
>> Activities and Parent Activity loads one child Activity at a time which 
>> loads its View accordingly but the place remains same. This is handle with 
>> the variable used inside the Parent place. Example : 
>> AdministrationPlace:addUser, AdministrationPlace:listUser, 
>> AdministrationPlace:assignRoles) 
>>
>> Any help would be appreciated. 
>>
>> On Tuesday, January 29, 2013 4:43:35 PM UTC-6, Rob Whiteside wrote:
>>>
>>> The GWT Editor Framework does stuff with isDirty().  But by default it 
>>> just compares your UI fields to the underlying model.  So that won't cover 
>>> your cases 1 and 2.  You'd need to add some custom code to handle those 
>>> cases.  The only way I can think to do that is by listening for events.
>>>
>>> WIth UIBinder it wouldn't be too too bad... something like:
>>>
>>> @UiHandler(value = {"tbox1", "tbox2", ... "tboxn"})
>>> public void onTextBoxBlur(BlurEvent e) {
>>>   //set dirty flag ...
>>> }
>>>
>>> that would listen for your blur event from all those textboxes.
>>>
>>> Another thought would be to subclass textbox and handle it in there by 
>>> adding an isDirty() flag
>>>
>>> On Tuesday, January 29, 2013 1:26:29 PM UTC-8, BM wrote:

 I have a form in GWT and I want to capture an event similar to 
 dirtyform flag in JQuery. Basically I want to understand if any of the 
 form 
 data has been changed. The requirement is pretty simple here. I am NOT 
 looking for if the data has been actually been modified but just to find 
 out if they touched my form data by any way.

 So let's say if my form has one GWT Textbox and one ListBox. For me the 
 form data is changed with any of the following condition:

 1) If the user changes the value inside Textbox and revert it back to 
 previous original value. 
 2) The user changes the default selection of ListBox to new selection 
 but changes back to default selection.
 3) If the user changes the value inside Textbox to a new value.
 4) The user changes the default selection of ListBox to new selection.

 The form data is not changed if the user just views the form but did 
 not change any of the values in the Widgets at all. 

 One way I thought would be to use onChange event and set a local flag 
 hasDataChanged to true. Once the flag hasDataChanged has been set to true 
 then don't reset it as it means the user touched the form. Based on the 
 value of flag hasDataChanged show an alert message when navigating away 
 from the page. 

 But my problem is that if there are more GWT user interaction widgets 
 (let's say 15 TextBox, 5 ListBox), the UI will fire onChanged Event every 
 time. Plus I have to add onChange event handler to all of my GWT widgets. 

 Perhaps there is a better way to do handle this. May be on view level 
 i

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 screen.
E.g., pseudo code:

tablayoutpanel.setTabIndex(1); 
schedule deferred {
   tablayoutpanel.setTabIndex(0);
}
James

On Wednesday, 24 July 2013 16:02:42 UTC+1, joelus wrote:
>
> Hi, did you manage to find a fix for this? Thanks
>
> On Tuesday, April 30, 2013 6:20:12 AM UTC+2, Magnus wrote:
>>
>> Hi,
>>
>> my app uses a TabLayoutPanel as the center of a DockLayoutPanel.
>> It's all created manually in Java, while the contents of the different 
>> tabs are created with UIBinder.
>> (I don't touch barUnit.)
>>
>> The problem is that the tabs are not visible in IE.
>> (Everything is fine in FF or Chrome).
>>
>> I found an old bug here:
>> https://code.google.com/p/google-web-toolkit/issues/detail?id=6506
>>
>> But this bug report is 2 years old.
>>
>> How can I fix this?
>> (GWT 2.5.1)
>>
>> Thanks
>> Magnus
>>
>

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




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 injection. I used an asynchronous callback to 
get the data and found it easier to redraw the entire table. In the example the 
objects already contain the data. He iterates through a list building a new row 
for each item. 

James 

-- 
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, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




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 ASP.net[2]?

I am considering leaving the GWT Debug module in place for production. In 
any case I will profile my app to make my own measurements on what this 
'overhead' means.

James

[1] http://code.google.com/p/google-web-toolkit/issues/detail?id=1898
[2] 
http://codebetter.com/kylebaley/2011/05/05/tips-for-ui-tests-with-gwt-html-ids-or-how-to-buy-votes/

-- 
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/-/JL6uXsEX_noJ.
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: 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
JavaDoc:http://google-web-toolkit.googlecode.com/svn/javadoc/latest/
com/google/gwt/user/cellview/client/
DataGrid.html#setTableWidth(double,
com.google.gwt.dom.client.Style.Unit)
James
On Oct 23, 3:36 pm, misko237  wrote:
> Yeah, it might be a solution (not so nice and clean, but solution)...
>
> But, look at 
> thishttp://gwt.google.com/samples/Showcase/Showcase.html#!CwDataGrid
>
> They've made GridTable without setting column width (there is no width
> attribute on any element).
>
> On Oct 22, 5:18 pm,jaga wrote:
>
>
>
>
>
>
>
> > 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. List maxes;
> > 3) for each cell column
> > 3.1) set the width to the maximum using the unit EM.
> > Note: this is likely to make the column a little bigger than required.
> > You can also try the Unit EX
>
> > HTH
>
> > On Oct 14, 2:13 pm, misko237  wrote:
>
> > > I have tried with first solution, but I couldn't manage to read real
> > > cell element width. Did you succeed? Second solution is not an option
> > > for me.
>
> > > On Oct 13, 2:57 pm,jaga wrote:
>
> > > > 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  wrote:
>
> > > > > I have a problem with DataGrid in gwt 2.4. I made table with
> > > > > CellTable, and everything worked fine. But I needed fixed header, and
> > > > > then just replaced CellTable with DataGrid. I had problem with .css
> > > > > file, but than has been resolved.
>
> > > > > Now, the problem is that every column have fixed width. I need each
> > > > > column width to be set as the widest cell in entire column.
>
> > > > > Can someone help to make old looking, but with fixed header.
>
> > > > > Thanks!

-- 
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: 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. List maxes;
3) for each cell column
3.1) set the width to the maximum using the unit EM.
Note: this is likely to make the column a little bigger than required.
You can also try the Unit EX

HTH



On Oct 14, 2:13 pm, misko237  wrote:
> I have tried with first solution, but I couldn't manage to read real
> cell element width. Did you succeed? Second solution is not an option
> for me.
>
> On Oct 13, 2:57 pm,jaga wrote:
>
>
>
>
>
>
>
> > 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  wrote:
>
> > > I have a problem with DataGrid in gwt 2.4. I made table with
> > > CellTable, and everything worked fine. But I needed fixed header, and
> > > then just replaced CellTable with DataGrid. I had problem with .css
> > > file, but than has been resolved.
>
> > > Now, the problem is that every column have fixed width. I need each
> > > column width to be set as the widest cell in entire column.
>
> > > Can someone help to make old looking, but with fixed header.
>
> > > Thanks!

-- 
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: 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  wrote:
> I have a problem with DataGrid in gwt 2.4. I made table with
> CellTable, and everything worked fine. But I needed fixed header, and
> then just replaced CellTable with DataGrid. I had problem with .css
> file, but than has been resolved.
>
> Now, the problem is that every column have fixed width. I need each
> column width to be set as the widest cell in entire column.
>
> Can someone help to make old looking, but with fixed header.
>
> Thanks!

-- 
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: 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  wrote:
> Lotus notes ouch!

-- 
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: 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 your existing framework, and deal with its
bugs and idiosyncrasies.

On Feb 10, 7:30 am, Nagin Kothari  wrote:
> Sanjiv,
>
> I know I am reopening this thread,  not to criticise Smart GWT, but want to
> give some feedback.
>
> First of all let me acknowledge that it is very good library with lot of
> cool and fantastic features. I experimented with it and liked it and
> planning to use it in one of my project.But I have some doubts and questions
> , which you I thought you will be best person to answer . Hence this mail.
>
> 1. I am using  GWT and want to use some Smart GWT widgets in that
> application.But it looks like I have to include lot of Smart client JS file
> which size is about 2MB. Client need to download all these JS libs above our
> GWT compiled script. this become very huge download for client, Even I want
> to use  Smart GWT's grid , I realized that I have to include  almost
> everything except few small smart-client JS.So my question is why is so and
> what is work around for it?
>
> 2.Second, smart-client scripts are not in compressed format (like GWT is).
> it is like GWT pretty format. If it is compressed then size of all script
> files will be reduced.
>
> 3. My third question is - Why smart GWT is not written in GWT so that it can
> take advantage of GWT's optimised java script compiler.Smart GWT widget the
> can be extended by user to customize it. Right now Smart GWT widgets are
> just black box for developer.
>
> Theses are few question I had in mind., Over all features provided by smart
> GWT are great.
>
> Thank and regards,
>
> Nagin Kothari
>
>
>
>
>
>
>
> On Fri, Dec 3, 2010 at 9:24 PM, Sanjiv Jivan  wrote:
> > Jaroslav,
> > If you're happy with GWT that’s great but please do not make such vague and
> > baseless claims about Smart GWT. Legitimate bugs reported are fixed really
> > quickly and existing users can attest to this. Smart GWT currently has
> > around 42 open defects with a majority of them being low priority, and 16
> > enhancement requests (http://code.google.com/p/smartgwt/issues/list).
> > Considering the depth and breadth of features provided by the framework this
> > is a pretty low number of defects.
>
> > 3 of the 7 issues that you filed were invalid, and 2 defects that were
> > fixed and the remaining 2 were marked WontFix since they were trivial pieces
> > of functionality that the user could easily implement.
>
> >http://code.google.com/p/smartgwt/issues/list?can=1&q=reporter:jarosl...
>
> > And
> > when you were advised how to implement a warning dialog before record
> > deletion on this issue that you filed  (
> >http://code.google.com/p/smartgwt/issues/detail?id=325), you responded by
> > "you are sad". Nice way to show your appreciation when using a free
> > product.
>
> > Sanjiv
>
> > 2010/12/3 Jaroslav Záruba 
>
> > ...until you run into some SmartGWT magic - like widgets not working
> >> without otherwise completely useless 'final' (have fun trying figure
> >> that out), newly spanned records not appearing in tree, styles not
> >> getting applied until mouseover, etc.
> >> What looks like polished set of awesome widgets might turn into
> >> nightmare which makes you throwing your deadlines out of the window.
>
> >> (Like I said before, this particular experience with SmartGWT is one
> >> year old.)
>
> >> With GWT the start might be slower but you can predict the deadlines +
> >> you're not working with 'black box'.
>
> >> On 3 pro, 00:00, ckendrick  wrote:
> >> > Sorry that's quite absurd: SmartGWT is often introduced to solve
> >> > performance problems, and it solves them.
>
> >> > SmartGWT is intentionally designed to have a one-time-ever download of
> >> > a feature rich runtime in exchange for reducing subsequent server
> >> > requests.  For example, Adaptive Filtering greatly reduces the
> >> > costliest types of database hits:
>
> >>http://www.smartclient.com/smartgwt/showcase/#grid_adaptive_filter_fe...
>
> >> > .. and allows you to introduce an extremely powerful data highlighting
> >> > system with no server load at all:
>
> >> >    http://blog.isomorphic.com/?p=234
>
> >> > If your application is the kind we target - complex enterprise
> >> > applications which are used repeatedly and for significant lengths of
> >> > time - this provides a gigantic performance boost, and once-ever
> >> > download of cachable JavaScript files is a negligible factor.
>
> >> > Look at a deployed SmartGWT application and you've got users humming
> >> > along, ripping through the interface and nothing being downloaded
> >> > anymore because it's all cached.  And everyone is getting fast
> >>

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 ButtonCell event is not fired correctly. Giving the table
something else to do, i.e., with the CheckboxCell, helps the event to
propagate correctly.
For the record I also use the Selection Model's selection change
listener to inform the presenter that a selection has changed.

On Aug 28, 4:17 pm, Thomas Broyer  wrote:
> On 27 août, 21:14, jocke eriksson  wrote:
>
> > I have a column of CheckboxCells. The use case is pretty like the one for
> > gmail, you can check a checkbox without jumping in to the message. So if it
> > is not supported then i think that it should be, or some good workaround at
> > least.
>
> And you are using the SelectionModel to "jump to the message" ? I
> think you'd rather use ClickableTextCell or similar, and "jump" from
> the ValueUpdater instead of SelectionModel (and you'd use 
> aMultiSelectionModelwith the CheckboxCell handling the selection).

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Deselect items in a CellTree with MultiSelectionModel

2010-09-02 Thread jaga
I got this to multiple selection to work properly 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 ButtonCell event is not fired correctly. Giving the table
something else to do, i.e., with the CheckboxCell, helps the event to
propagate correctly.

For the record I also use the Selection Model's selection change
listener to inform the presenter that a selection has changed.

Lastly, you need to make 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  wrote:
> 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, 2:09 pm, rhmoller  wrote:
>
>
>
>
>
>
>
> > I have been digging through the source code for GWT 2.1.0.M2. All
> > click events result in adding to the selection. There is no support
> > for deselecting items in any of the cell widgets.
>
> > I have filed this issue for it:
>
> >http://code.google.com/p/google-web-toolkit/issues/detail?id=5223
>
> > On Aug 19, 1:35 pm, rhmoller  wrote:
>
> > > Hi
>
> > > I am trying to build a component for selecting multiple items from a
> > > tree structure using the cellview widgets from GWT 2.1.0.M2.
>
> > > I have a custom TreeViewModel with a single MultiSelectionModel object
> > > which is shared between all NodeInfo objects. I would like it to
> > > either toggle the selection of items when clicking on them, or support
> > > CTRL-clicking for deselecting items like in a list box.
>
> > > My problem is that I cannotdeselectany of the selected items. What
> > > do I need to do?
>
> > > Best regards
> > > Rene

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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, 2:09 pm, rhmoller  wrote:
> I have been digging through the source code for GWT 2.1.0.M2. All
> click events result in adding to the selection. There is no support
> for deselecting items in any of the cell widgets.
>
> I have filed this issue for it:
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=5223
>
> On Aug 19, 1:35 pm, rhmoller  wrote:
>
>
>
>
>
>
>
> > Hi
>
> > I am trying to build a component for selecting multiple items from a
> > tree structure using the cellview widgets from GWT 2.1.0.M2.
>
> > I have a custom TreeViewModel with a single MultiSelectionModel object
> > which is shared between all NodeInfo objects. I would like it to
> > either toggle the selection of items when clicking on them, or support
> > CTRL-clicking for deselecting items like in a list box.
>
> > My problem is that I cannotdeselectany of the selected items. What
> > do I need to do?
>
> > Best regards
> > Rene

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



scrolling table and RPC data

2010-03-29 Thread jaga
I need a ScrollTable to behave as a PagingScrollTable with regards to
pulling data from a server, but without paging. I thought I could use
ScrollHandler to "hear" when scrolling has stopped. Then I could
request more data from the server from row m to n and add it to my
existing cache. Anyone got 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 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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  wrote:
> Are you sure isn't it the IE8 option "Page ~ Zoom" set to 150% instead
> 100% ?
>
> Cheers!

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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  wrote:
> Hi,
>
> I use tomcat to connect to a variety of webservices. Essentially it
> works as a client to them. I don't deploy to Google AppEngine though.
> But it does work if you control the server that you host the tomcat
> instance on.
>
> On Nov 8, 2:25 am, Sripathi Krishnan 
> wrote:
>
>
>
> > > it dosnt have to be a problem if i want to
> > > deploy the application in a Tomcat Server for example.
>
> > You can do that if you disable Google App Engine. If you are using the GWT
> > Eclipse plugin, there is a setting to disable App Engine.
>
> > --Sri
>
> > 2009/11/7 nacho 
>
> > > The problem is the following.
>
> > > I have an api wich connects to the differents WS and gave me all the
> > > DAOs. But when i try to use the API in the server side, in a
> > > ServiceImpl class i get the followoing error:
>
> > > javax.xml.ws.Service is a restricted class. Please see the Google  App
> > > Engine developer's guide for more details.
>
> > > This problem i think is because this class is not in the Appengine
> > > Whitelist (http://code.google.com/appengine/docs/java/
> > > jrewhitelist.html)
> > > but it dosnt have to be a problem if i want to
> > > deploy the application in a Tomcat Server for example.
>
> > > Buuut because of the above error, my problem is that i can't make
> > > the GWT compiler to get run and compile the js files.
>
> > > How could i do?
>
> > > On Nov 7, 6:22 am, MarcoGT  wrote:
> > > > On Nov 6, 7:43 pm, nacho  wrote:
>
> > > > > Hi, i'm trying to develop an application with GWT in wich one i have
> > > > > to get the data from WS that are hosted on a different server.
>
> > > > > I was googling about that but there not so much examples.
>
> > > > > Does anyone did that?
>
> > > > What do you mean with "different server"?
> > > > I do something like that; I use RequestBuilder classs (I do not use
> > > > RPC and ASyncCallBack) to make request to server; date are sent and
> > > > received in XML format.
>
> > > > Bye
> > > > Marco

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