Re: update a single widget lead to the whole page refresh?

2010-12-01 Thread Jason
Could any one help me? Many thanks! On Nov 11, 3:26 am, Jason wrote: > here is my simplied code. I create a label and a flextable. the label > is updated every 300ms. This page make my computer's CPU go up to > 100%. > > public void onModuleLoad() { > >     final Label dateLabel = new Label(); >

Re: GWTTest case mapping URI to file for testing

2010-12-01 Thread Raphael André Bauer
On Mon, Nov 29, 2010 at 3:54 PM, ep wrote: > have you registered a servlet in your GWT module? > > Hi ep, you were totally right. I was confused with web.xml and the servlets defined in the gwt.xml module. The other confusion came from the way the servlet mapping is made. a translates to

HTMLTable.RowFormatter problem

2010-12-01 Thread Ignasi López
Hello all, i have the following code: else if (Event.ONMOUSEOVER == eventType) { HTMLTable.RowFormatter rf = this.getRowFormatter(); if (fila != 0) { if ((oldRow % 2) != 0) rf.setStyleName(oldRow, "FlexTable-OddRow"); else

Re: Testing RESTful services using GWTTestCase

2010-12-01 Thread Raphael André Bauer
On Mon, Nov 29, 2010 at 5:14 PM, Raphael André Bauer wrote: > Hi folks, > > > what I want to do are two simple things: > 1. Mock a RESTFul Api using a servlet. > 2. Use that mock inside a GWTTestCase that retrieves data from that > servlet and does some meaningful testing. > > I am running here in

Re: GWT and Gmail Drap File attachment??

2010-12-01 Thread marius.andreiana
Hi Alain, May we have it too? Thanks! On Dec 1, 9:30 am, nino ekambi wrote: > Hello, > this is  done using simple JS so you could implement it yourself  for > example through JSNI. > I think  i have the JS Script somewhere > let me know if you need it > Regards, > Alain > > 2010/12/1 Noor > >

Style a ClickableTextCell

2010-12-01 Thread Stephan T
I'm using the new CellTable from GWT 2.1 and have a ClickableTextCell. I want the clickable text to have the same style as an a-element and the cursor should be a pointer when hovering the clickable text. How do I achieve this? -- You received this message because you are subscribed to the Googl

Re: GWT and Gmail Drap File attachment??

2010-12-01 Thread Ignasi López
Not with all browsers, with IE gmail drag file doesn't works 2010/12/1 marius.andreiana > Hi Alain, > > May we have it too? > > Thanks! > > On Dec 1, 9:30 am, nino ekambi wrote: > > Hello, > > this is done using simple JS so you could implement it yourself for > > example through JSNI. > > I

Showing and hiding a ButtonCell in a CellTable

2010-12-01 Thread Stephan T
I have a CellTable and a ButtonCell column. The button for each row should show only when a condition is true. How do I achieve that? This is my code now: Column myColumn = new Column(new ButtonCell()) { @Override public String getValue(Person object) { retu

CalendarUtil - Unusual Calculation

2010-12-01 Thread Ramon Buckland
Hi Before I log a bug, I just want to check I am not missing something regarding the CalendarUtil. I have a simple use case that is proving to show an unexpected result. In Eclipse, open up a Scrapbook page and copy the following code in and run it. java.util.Date calcDate = new java.util.Date(

Re: How to prevent CSRF/XSRF when using RequestFactory

2010-12-01 Thread Sripathi Krishnan
RequestFactory (and GWT RPC as well) automatically adds a custom http header ("X-GWT-Permutation") to each request. See DefaultRequestTransport.java. In mo

Re: CellTable with only div's?

2010-12-01 Thread Ed
Thanks, I also think this is the best option, it's just a bit more work then I thought ;( I a way am I bit suprised that the GWT dev team doesn't have the div- less CellTable On Dec 1, 4:10 am, John LaBanca wrote: > You could extend CellTable and override the protected renderRowValues() > metho

Re: TabLayoutPanel does not listen to width

2010-12-01 Thread Baloe
Hi, Thanks for your suggestion. However, most widgets don't listen to their method-calls. Regarding the uibinder example, I have to put everything in a flowpanel, because uibinder expects to find only one (main) widget. So, we are basicly putting everything in a flowpanel without any layout-based

how to achieve pretty URLs in GWT 2.0 application

2010-12-01 Thread anjan bacchu.dev
Hi All, We have an enterprise app done in GWT 2.0.3 and SmartGWT 2.2 which has a few screens, login and a few CRUD screens. We would like to have nice URLs for the same, one each for all the pages including login. Eg : 1) http://domain.com/appname/login for the login Page 2) http://domain.com/

Re: CalendarUtil - Unusual Calculation

2010-12-01 Thread Ramon Buckland
So the problem won't be inside the CalendarUtil. Simply put, the following show the same result. java.util.Date date = new java.util.Date(2010 -1900,12-1,31); System.out.println(date.toString()); date.setMonth(8); System.out.println(date.toString()); (I am thinking timezones etc etc.. something

Re: Is it possible to pass the value @def to the literal function in CssResource

2010-12-01 Thread Marcin Misiewicz
I found the solution. It is possible to mix literal and @def in the same ccs property so this working fine : background: literal("-webkit-gradient(linear, left top, left bottom, from(") buttonGradientStartColor literal("), to(") buttonGradientEndColor literal("))"); On Nov 30, 5:32 pm, Marcin M

Re: CalendarUtil - Unusual Calculation

2010-12-01 Thread Ramon Buckland
Ignore this thread :-) I found my answer /** * Testing to that if we set the day number to 31 for a month that only has 30 * days in it, that the date rolls over to the first day of the next month in * sequence. On Dec 1, 11:08 am, Ramon Buckland wrote: > So the problem won't be inside

Re: GWT and Gmail Drap File attachment??

2010-12-01 Thread Julien Dramaix
It is in fact a new feature of HTML5. That explain why it doesn't work with IE On Dec 1, 10:59 am, Ignasi López wrote: > Not with all browsers, with IE gmail drag file doesn't works > > 2010/12/1 marius.andreiana > > > > > Hi Alain, > > > May we have it too? > > > Thanks! > > > On Dec 1, 9:30 am

GWT MVP, getting Widgets??

2010-12-01 Thread Noor
Hi, when I am using MVP, i'm getting a problem with some widgets for textbox we use HasValue but to use for listbox,Date Picker?? -- 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...@goog

Re: how to achieve pretty URLs in GWT 2.0 application

2010-12-01 Thread Will
Most GWT applications use the # (hash) to change between states so that they do not have to reload the entire page to change views. In which case, you could change your URLs to the following: 1) domain.com/appname#login 2) domain.com/appname#familyManagement 3) domain.com/appname#userManagement I

Re: GWT and Gmail Drap File attachment??

2010-12-01 Thread Patou
The gmail drag and drop upload attachment didn't use the HTML5 feater but a hack CSS, the input file is put on the top of the drop file's zone, but it's opacity is null. All the explication is here : http://www.thecssninja.com/javascript/gmail-upload On Dec 1, 12:43 pm, Julien Dramaix wrote: >

Re: GWT MVP, getting Widgets??

2010-12-01 Thread Will
that all depends on what ListBox and DatePicker methods you expect to use in your Presenter. Personally, HasValue for DatePicker and possibly HasValueChangeHandler if I needed to execute code when the date changes. ListBox is a bit more tricky, The HasChangeHandlers interface will help you liste

Re: GWT and Gmail Drap File attachment??

2010-12-01 Thread Julien Dramaix
Drag and drop a file from your desktop to your browser is an html5 feature. Gmail uses the file Api (also a html5 feature : http://www.w3.org/TR/FileAPI/) to upload the dropped files under Firefox. Chrome seems not to implement the file api yet and so gmail uses an hidden input file to upload the f

How to load data BEFORE showing view/presenter?

2010-12-01 Thread Matt H
Hi. If you poke around some of Google's GWT apps, you'll find that when you click on anything which requires more data to be loaded, that a 'loading' sign is displayed at the top of the screen, and while loading, it stays on the current view, and then when the data for the next view has been downl

Best practises in automatic test and deployment

2010-12-01 Thread Gambo
Hi, I am using GWT now for half a year now and the project is growing and growing. Now I am looking for some good tools which help me with deploying my application automaticly in a tomcat test server and later on the production server. For now I am doing this with the build artifacts function of I

Accesbilility with GWT / TabLayoutPanel

2010-12-01 Thread Andi Wundsam
we are currently evaluating GWT for an interactive web application that needs to conform to accessibility standards (Screen Reader support etc.). We did a small UI mockup, and ran across the problem that the TabLayoutPanel does not create Links for the Tabs. Instead, it only creates a with an onc

Bug in GWT ?

2010-12-01 Thread Lucian
I've set up a new GWT project in NetBeans 6.9 and created multiple GWT modules I've tried adding them all in the gwt.properties file as follows: # The names of the modules to compile (separated by a space character) gwt.module=com.company.MyModule1 com.company.MyModule2 com.company.MyModule3 I'm

Problem with history in Mozilla browser

2010-12-01 Thread Tomáš Hofhans
I have problems with history items in Mozilla browser. I have a pop-up with file loader. Selecting file cause form submit and close pop-up window. In this moment (on form submit) Firefox add history item which is not accessible and history back button doesn't work. If I want go back in history I mu

CellBrowser not displaying (2.1.0)

2010-12-01 Thread sevendays
I am having trouble getting a CellBrowser component to display in my existing GWT 2.1 project. I have tried both CellBrowserExample1.java and CellBrowserExample2.java, by converting the entry point classes to VerticalPanels, then adding them to my application. For example, this is a modified http:/

BreakPoints Not Triggering

2010-12-01 Thread kiran
Hi, I am using GWT for around 1 and 1/2 years and i am really impressed with the technology.But recently i am facing problem to debug code in java during development mode. My code never stops at breakpoints ,I tried cleaning cache,clean build the projects,removed gwt plugins from the browser and ev

Error using style with UiBinder

2010-12-01 Thread Luis Cabellos
Hi, I'm beggining using UiBinder in my web app, but when I added a Style (only when y add the text styleName='{style.headerList}') I get and error exception and the Web don't load. I'm getting the error using the development mode. http://dl.google.com/gwt/DTD/xhtml.ent";> .head

Best practises in automatic test and deployment

2010-12-01 Thread Mark van Veen
Hi, I am using GWT now for half a year now and the project is growing and growing. Now I am looking for some good tools which help me with deploying my application automaticly in a tomcat test server and later on the production server. For now I am doing this with the build artifacts function of I

OT: Re: how to achieve pretty URLs in GWT 2.0 application

2010-12-01 Thread Kenneth Jacker
> http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHist... > http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd... Does anyone know how to print the above? I tried both Firefox and Chrome, but the printed content is either missing or "garbled". Thanks, -Kenne

Re: OT: Re: how to achieve pretty URLs in GWT 2.0 application

2010-12-01 Thread dominic jansen
hey, try these links: http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html works fine for me best dom 2010/12/1 Kenneth Jacker : >> http://code.google.com/webtoolkit/doc/latest/DevGuid

Re: GWT and Gmail Drap File attachment??

2010-12-01 Thread Norberto
Me too!! Thanks! On Dec 1, 4:30 am, nino ekambi wrote: > Hello, > this is  done using simple JS so you could implement it yourself  for > example through JSNI. > I think  i have the JS Script somewhere > let me know if you need it > Regards, > Alain > > 2010/12/1 Noor > > > > > > > > > Hi, has

Re: Best practises in automatic test and deployment

2010-12-01 Thread Didier Durand
Hi, Did you think about using Google App Engine for your unit testing: it's 1-click deploy (also possible via Ant Task) and no issue in provisioning hardware and software: Google does it for you. That what I do to be as fast as possible in my devs and tests. NB: sql is not usable on GAE but if y

Re: Best practises in automatic test and deployment

2010-12-01 Thread Mark van Veen
Hi Didier, I already thought about that but I cant put our app in the cloud because of our internal company policies :-(. regards, Mark 2010/12/1 Didier Durand > Hi, > > Did you think about using Google App Engine for your unit testing: > it's 1-click deploy (also possible via Ant Task) and no

Re: GWT and Gmail Drap File attachment??

2010-12-01 Thread nino ekambi
Like i said i got the script from the link i provided. :) You can then change the script to meet your need :) Regards, Alain 2010/12/1 Norberto > Me too!! > > Thanks! > > > On Dec 1, 4:30 am, nino ekambi wrote: > > Hello, > > this is done using simple JS so you could implement it yourself for

Re: GWT Designer UiBinder can not accept Arabic text.

2010-12-01 Thread sab...@gmail.com
Thank you Eric, I update to the latest build and it is work fine. Thank you again. On Dec 1, 7:36 am, Eric Clayberg wrote: > 1) Make sure that you are using the latest GWT Designer 8.1 build > >    http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html > > 2) Check the ui.xml pr

Re: CellBrowser not displaying (2.1.0)

2010-12-01 Thread John LaBanca
CellBrowser implements RequiresResize, so it needs an unbroken change of parents that all implement ProvidesResize, up to the RootLayoutPanel (not RootPanel). You can find more documentation about LayoutPanels in the dev guide: http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Lay

Re: Showing and hiding a ButtonCell in a CellTable

2010-12-01 Thread John LaBanca
You can override the render method in Column: @Override public void render(Person object, StringBuffer buffer) { // Only render if showButton is true. if (object != null && object.showButton()) { super.render(object, buffer); } } Thanks, John LaBanca jlaba...@google.com On Wed, Dec 1,

Re: Style a ClickableTextCell

2010-12-01 Thread John LaBanca
The easiest thing to do is to just create your own Cell using ClickableTextCell as an example (or override the render method in ClickableTextCell). We plan to add more Cells in future GWT versions, but they are intended to be easy to create your own. Thanks, John LaBanca jlaba...@google.com On

Re: TabLayoutPanel does not listen to width

2010-12-01 Thread Paul Stockley
Try setting the width on the flowpanel. If this doesn't work, set the width on its parent. On Dec 1, 5:51 am, Baloe wrote: > Hi, > > Thanks for your suggestion. However, most widgets don't listen to > their method-calls. > > Regarding the uibinder example, I have to put everything in a > flowpane

How to use constants in uibinder

2010-12-01 Thread Paul Stockley
Rather than say the following I want to define a constant for the width e.g. Is there a way to do this? -- 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 uns

Re: MVP *without* UiBinder

2010-12-01 Thread Christian Goudreau
> > Also about the java editor highlighting the uifields in the editor You could try to use @UiTemplate annotation to remove them. ** no wyswug viewer & GWT Designer Uh, I was sure they added UiBinder support when Google bough Instanciation. I never tried GWT Designer since my app is usually dec

Re: BreakPoints Not Triggering

2010-12-01 Thread Chris Conroy
Is the gwt.codesvr fragment in your URL? Do you see output in the DevMode console log? (Read: are you sure you're running devmode?) Assuming you are running DevMode correctly, the most obvious cause of this behavior would be having multiple instances of a file in your workspace and trying to set t

Re: Error using style with UiBinder

2010-12-01 Thread Chris Conroy
This is a server side classloader failing to find the class es.ifca.altaweb.server.AltawebServiceImpl. I don't think UIBinder is your problem here. On Wed, Dec 1, 2010 at 5:03 AM, Luis Cabellos wrote: > Hi, > > I'm beggining using UiBinder in my web app, but when I added a > Style (only when

Re: 2.1.1 AutoBeans + Spring 3 REST implementation

2010-12-01 Thread Jeff Larsen
Ugh, I'm an idiot. My problem was I was referencing 127.0.0.1 in code but the URL in the browser was localhost... stupid firebug didn't tell me there was an error with the request/response mechanism. Now things are working as expected. On Nov 30, 4:16 pm, Jeff Larsen wrote: > So I've been poundi

Re: OT: Re: how to achieve pretty URLs in GWT 2.0 application

2010-12-01 Thread Kenneth Jacker
> try these links: > > [ Complete URLs deleted. -khj ] I have tried them. The pages are displayed as expected. I can see the content in my browsers. > works fine for me *Printing* works "fine"? If so, I'm puzzled. Which browser(s) are you using? Thanks for your comments, -Kenneth

To smart GWT or not

2010-12-01 Thread Baloe
Hi all, I wonder, is there anyone using Smart GWT? Or, any other (Sencha) product? We are struggling with the poor widgets included with GWT and it looks like my boss is not going to accept to spend more time on how to get these GWT widgets into place. And we need more advanced widgets as well. T

Re: Client File IO

2010-12-01 Thread khalid
Hey man As I said before I am not sure that images will overload the server , it is just that i am afraid they will. For the current time I will cache them in the server. Now finally about the proxies you have provided thank you , but I am just making my own proxy for fun and not because I need on

Re: TabLayoutPanel does not listen to width

2010-12-01 Thread Jeff Larsen
Anything LayoutPanel wants to be in another layout panel. if you don't want to set the size of FlowPanel, put everything inside a LayoutPanel then make sure that LayoutPanel is attached to RootLayoutPanel. http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html On Dec 1, 9:30 am, Pau

Re: To smart GWT or not

2010-12-01 Thread Travis Camechis
To me the worst part about the third party frameworks is that the widgets can get slow and clunky or they don't follow the GWT ways making it hard to implement MVP. On Wed, Dec 1, 2010 at 11:35 AM, Baloe wrote: > Hi all, > > I wonder, is there anyone using Smart GWT? Or, any other (Sencha) > pro

usage of gwt property with undescrete values not for deferred binding purposes

2010-12-01 Thread ep
hi, I wonder if there is a way to provide dynamic configuration properties to the application? configuration-property does not fit to me, since it is only available during compile time and cannot be provided/overridden neither from HTML (gwt:property meta) nor via URL the "usual" property, which

Re: To smart GWT or not

2010-12-01 Thread nino ekambi
It looks like sencha is planing to go the GWT way in the version 3 of their library http://www.slideshare.net/darrellmeyer/ext-gwt-30 2010/12/1 Travis Camechis > To me the worst part about the third party frameworks is that the widgets > can get slow and clunky or they don't follow the GWT ways

Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
Is it possible to change teh title of an ActionCell based on the contents of the row it's in? It looks like the answer is no, but I figured I'd check here before I gave up. Greg -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to

Re: To smart GWT or not

2010-12-01 Thread Travis Camechis
which would be nice, just a matter of when. They seem to be a little slow with the GWT releases. On Wed, Dec 1, 2010 at 12:29 PM, nino ekambi wrote: > It looks like sencha is planing to go the GWT way in the version 3 of > their library > http://www.slideshare.net/darrellmeyer/ext-gwt-30 > > 20

Re: Best practises in automatic test and deployment

2010-12-01 Thread Hilco Wijbenga
On 30 November 2010 14:45, Gambo wrote: > I am using GWT now for half a year now and the project is growing and > growing. Now I am looking for some good tools which help me with > deploying my application automaticly in a tomcat test server and later > on the production server. For now I am doing

Re: To smart GWT or not

2010-12-01 Thread Ivan Chappel
You do realize that with every release Ext-GWT essentially creates a new product breaking all previous API's. If they're trying to get closer to GWT, then why not use GWT itself. Why pay for a product when you can use GWT for free. By the time they plan on a release, there will be little or no valu

Re: To smart GWT or not

2010-12-01 Thread Travis Camechis
this is true. On Wed, Dec 1, 2010 at 12:43 PM, Ivan Chappel wrote: > You do realize that with every release Ext-GWT essentially creates a new > product breaking all previous API's. If they're trying to get closer to GWT, > then why not use GWT itself. Why pay for a product when you can use GWT fo

Re: How to use constants in uibinder

2010-12-01 Thread Nirmal
You can define constants within your . @def dialogWidth 250px; @def dialogHeight 100px; .tabPanel{ width: dialogWidth; height: dialogHeight; } Regards, Nirma

Re: Error using style with UiBinder

2010-12-01 Thread Nirmal
I think you are missing the mappings in your web.xml Regards, Nirmal On Dec 1, 9:08 pm, Chris Conroy wrote: > This is a server side classloader failing to find the class > es.ifca.altaweb.server.AltawebServiceImpl. > I don't think UIBinder is your problem here. > > > > > > > > On Wed, Dec 1, 201

Re: "Large scale application development and MVP" tutorial / no Places or Activities

2010-12-01 Thread PhilBeaudoin
This conceptual leak between activity, presenters and places has also confused me quite a bit. Now that I understand it (slightly) better I think part of the confusion is caused by the fact that GWT expects you to build your own presenter/view separation and doesn't provide base classes or interfac

Re: How to load data BEFORE showing view/presenter?

2010-12-01 Thread Matt H
Anyone? Surely it's simple enough to do? On Dec 1, 1:27 am, Matt H wrote: > Hi. > > If you poke around some of Google's GWT apps, you'll find that when > you click on anything which requires more data to be loaded, that a > 'loading' sign is displayed at the top of the screen, and while > loading

Re: BreakPoints Not Triggering

2010-12-01 Thread kiran kumar
Hi, I believe this is what you are asking about gwt.codesvr ex:- http://localhost:4942/Search/index.jsp?gwt.codesvr=172.16.26.134:9997 How do we identify we have multiple instances of same file.Do you mean saying i have some temporary files stored in the disk.I did refresh on the entire project.cle

Re: .cache.html file size got double after upgrading to GWT 2.1 from 1.7

2010-12-01 Thread Nirmal
One reason for increase in size of .cache.html files could be the use of inline data: urls... for ClientBundles. Regards, Nirmal On Nov 30, 11:37 pm, Jewel wrote: > I tried GXT 2.2.1 which is for GWT 2.0 (not for GWT 2.1) but I also > tried compiling it with GWT 2.0, which also produce larger sc

Re: Best practises in automatic test and deployment

2010-12-01 Thread Ray Tayek
At 06:10 AM 12/1/2010, you wrote: ... I am looking for some good tools which help me with deploying my application automaticly in a tomcat test server and later on the production server. ... What I am still missing is a automatic way of generating war files which are deployed on the test server(w

Communicating between parent (non-GWT) window and GWT App

2010-12-01 Thread Ben
Hi -- Anyone ever launched a GWT app from a regular HTML page (into a new browser window - e.g., window.open('welcomeGWT.html') ), then communicated with that same new window later from the launching parent window javascript? How would I send the GWT app page a message (e.g., to tell it to display

Re: Changing ActionCell Title

2010-12-01 Thread John LaBanca
You can use a ButtonCell instead. ButtonCell takes a String to display in the Button, but otherwise it looks just like ActionCell. Thanks, John LaBanca jlaba...@google.com On Wed, Dec 1, 2010 at 12:30 PM, Greg Dougherty wrote: > Is it possible to change teh title of an ActionCell based on the

Re: How to prevent CSRF/XSRF when using RequestFactory

2010-12-01 Thread David Chandler
Sri, Thanks for the info on X-GWT-Permutation. However, I want to make it clear that the GWT team doesn't believe this is sufficient protection against XSRF. The current implementation of RemoteServiceServlet checks only for a non-null value.   protected void checkPermutationStrongName() throws S

Re: How to prevent CSRF/XSRF when using RequestFactory

2010-12-01 Thread PhilBeaudoin
On Dec 1, 2:39 am, Sripathi Krishnan wrote: > RequestFactory (and GWT RPC as well) automatically adds a custom http header > ("X-GWT-Permutation") to each request. See > DefaultRequestTransport.java. > In > modern browsers

Re: Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
What, then, do I have to implement so that the button will fire an action when it's clicked. Does this require me to extend ButtonCell? Thanks, Greg On Dec 1, 12:48 pm, John LaBanca wrote: > You can use a ButtonCell instead.  ButtonCell takes a String to display in > the Button, but otherwise i

Re: How to prevent CSRF/XSRF when using RequestFactory

2010-12-01 Thread Sripathi Krishnan
> > This is really interesting and I was not aware of that feature of modern > browsers. Could you clarify how this works or link to a website explaining > it? (In particular, I'm interested to know how a browser can prevent > malicious javascript to insert this header in a request.) Here are som

Re: Changing ActionCell Title

2010-12-01 Thread John LaBanca
ButtonCell triggers a ValueChangeHandler when it is clicked. Add a FieldUpdater to your Column and FieldUpdater#update() will be called. Thanks, John LaBanca jlaba...@google.com On Wed, Dec 1, 2010 at 2:29 PM, Greg Dougherty wrote: > What, then, do I have to implement so that the button will f

Re: How to prevent CSRF/XSRF when using RequestFactory

2010-12-01 Thread Philippe Beaudoin
On Wed, Dec 1, 2010 at 11:30 AM, Sripathi Krishnan wrote: >> This is really interesting and I was not aware of that feature of modern >> browsers. Could you clarify how this works or link to a website explaining >> it? (In particular, I'm interested to know how a browser can prevent >> malicious j

Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !

2010-12-01 Thread metalhammer29a
I am in the similar situation as zixzigma. one of Thomas Broyer ideas, >> make each "workspace" it's own GWT app (if they're sufficiently >>different to deserve it) could you please explain how this would be possible ? by breaking the project into modules and use multiple entry points ? and what

Re: how to achieve pretty URLs in GWT 2.0 application

2010-12-01 Thread Mike
What I do in my apps is to support both hashed and "pretty" urls. So my apps go the same state when launched as http://domain.com/page/1 and as http://domain.com#page/1 When user navigates the app I use the hash urls and History object (as to not reload the pages). However sometimes it's nice/nee

How to create Gmail contextual gadget using GWT?

2010-12-01 Thread Alexander
You can create usual gadget using this http://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted But the Gmail contextual gadgets has several differences from usual gadgets. The main is spec XML file. It should begin like this:

GWT MVP Activities and Places

2010-12-01 Thread metalhammer29a
I am using GWT 2.1 MVP in my project. I have identified 4 display regions (North, West, East, Center), each managed by a corresponding Activity Manager. Each display region also has a corresponding ActivityMapper that maps a place to the appropriate activity. when I don't need a region, I just re

Re: How to prevent CSRF/XSRF when using RequestFactory

2010-12-01 Thread Sripathi Krishnan
> > Thanks for these links and explanation, really useful! So, to > summarize my understanding: > - Requests issued by forms do not allow you to add custom headers > - Javascript (XMLHttpRequest) cannot be used in an XSRF attack due to > same-origin-policy > - Therefore, if you exclude mechanisms b

Re: how to achieve pretty URLs in GWT 2.0 application

2010-12-01 Thread Nick Newman
I used the web.xml to map all the URL's to the same JSP page, had that one page be the standard GWT loading page, and then used the URL (obtained from Window.Location) to put the page (panel) I wanted onto the root panel. Nick On Wed, Dec 1, 2010 at 8:48 AM, Mike wrote: > What I do in my apps i

Re: Communicating between parent (non-GWT) window and GWT App

2010-12-01 Thread ep
hi, everything's possible ;) there is no problem about that, you've just to keep in mind that you're not going to talk against the API you've coded in java. for those purposes you have ability of writing JSNI methods to communicate with JS world directly. If you want to call your GWT code from the

Re: How to load data BEFORE showing view/presenter?

2010-12-01 Thread ep
depends on the MVP framework you use - gwtp for instance, already supports it, if GWT MVP does not, then you can subclass presenter, call it "IndicatingPresenter" and add one more lifecycle state, because the presenter will be lazy loaded and shows a loading indicator until its data is not availabl

Re: Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
Hi John, I'm pretty sure I'm not following you. Here's my understanding: I currently have an ActionCell in an IdentityColumn. You're saying I can replace the ActionCell with a ButtonCell. I need to have a class implement FieldUpdater, and pass that to the IdentityColumn that holds my ButtonCell

Re: GWT MVP Activities and Places

2010-12-01 Thread Brian Reilly
I haven't done this in a real project yet, but I was experimenting with something similar. I think I was able to get this kind of behavior by wrapping the ActivityMapper implementation in a CachingActivityMapper and wrapping that in a FilteredActivityMapper. The idea is that the filtered activity m

Re: how to achieve pretty URLs in GWT 2.0 application

2010-12-01 Thread metalhammer29a
in GWT MVP apps generated by Roo, the way ProxyPlace and ProxyListPlace are implemented, result in oddly looking URLs. aside from the aesthetics, it reveals the underlying business object and full package name. take for example these history tokens : #ProxyPlace:org.springsource.roo.extrack.clien

GWT 2.1 MVP / AppController

2010-12-01 Thread cri
I'm in the process of converting our GWT application from using the "old" MVP architecture (based on "Large scale application development and MVP, Parts I and II) to GWT 2.1 MVP. With some help from this forum I'm making good progress. However, I'm now grappling with the following. Do I still defin

Re: To smart GWT or not

2010-12-01 Thread nino ekambi
I think the EXT-GWT versions are pretty backward compatible(atleast those we use) With version 3 they probably will break a lot but let s wait and see. Dont get me wrong i m not trying to put GXT on top of Smart GWT. But for the type of products that we develop (targeting AIR runtime) Smart GWT

Re: Changing ActionCell Title

2010-12-01 Thread John LaBanca
Everything you said sounds correct. Here is a code snippet that should work: ButtonCell cell = newButtonCell(); // Create a column using the ButtonCell. Column column = new Column(cell) { public String getValue(RowObject object) { return "Show " + object.getListSize(); // Get a String from t

Re: Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
Hi John, Thanks for all your help. I take it I won't be able to disable the button? (Not a big deal if so, it's a "nice to have" not a "must have".) Again, Thanks! Greg On Dec 1, 3:00 pm, John LaBanca wrote: > Everything you said sounds correct. > > Here is a code snippet that should work: >

Re: How to load data BEFORE showing view/presenter?

2010-12-01 Thread Matthew Hill
Sorry, I should've mentioned that I'm using GWT 2.1 Activities + Places. On 1 December 2010 20:22, ep wrote: > depends on the MVP framework you use - gwtp for instance, already > supports it, if GWT MVP does not, then you can subclass presenter, > call it "IndicatingPresenter" and add one more l

Re: GWT 2.1 MVP / AppController

2010-12-01 Thread metalhammer29a
I believe you can use Activity Mapper to map a Place to the corresponding Activity. -- 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, s

StackLayoutPanel has no more place to show the children when there are too many headers ... how I can fix this?

2010-12-01 Thread Jero
My structure is of my program is DockLayoutPanel: East, Wets, Center > ScrollPanel > StackLayoutPanel In the middle I have a StackLayoutPanel, the issue is when i put headers in the stack Many Have No place to open and scroll Does Not updated their size to the son of the header That Open

Re: How to load data BEFORE showing view/presenter?

2010-12-01 Thread metalhammer29a
I do not know the answer to this. and would like to find out as I am in the similar situation. However I have come across this class: com.google.gwt.requestfactory.shared.RequestEvent http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/requestfactory/shared/RequestEvent.html

Re: How to load data BEFORE showing view/presenter?

2010-12-01 Thread metalhammer29a
sorry, I believe I misunderstood your question. -- 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+uns

Re: To smart GWT or not

2010-12-01 Thread aarnott
I've found Smart GWT to have rather poor performance and it comes at the added cost of massive javascript libraries (even when they are gzipped). If you are anything like me, you will probably find that you lose time in the long run by going with Smart GWT because you will want to get rid of it lat

Re: GWT MVP Activities and Places

2010-12-01 Thread Ashton Thomas
Depending on how your app is structured you can implement a Place hierarchy. AppPlace or just Place Type1Place extends AppPlace (or Place) Type2Place extends AppPlace (or Place) Type3Place extends AppPlace (or Place) HomePlace extends Type1Place ContactUsPlace extends Type2Place etc and you

Building GWT from source

2010-12-01 Thread aarnott
I'm investigating a bug I reported (here http://code.google.com/p/google-web-toolkit/issues/detail?id=5669). I'm hoping that I can figure out a fix myself and either post the solution in the bug report or actually figure out how to submit it. * I'm not very experienced with SVN (although I am fami

how to position LargeMapControl on map

2010-12-01 Thread 395taxi
anyone one know how to position the large map control on the top right of the map instead of the default location? map.addControl(new LargeMapControl()); -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to

Re: CellBrowser not displaying (2.1.0)

2010-12-01 Thread sevendays
That's great. I have set an explicit height and width and it is displaying now. So simple! On Dec 2, 1:21 am, John LaBanca wrote: > CellBrowser implements RequiresResize, so it needs an unbroken change of > parents that all implement ProvidesResize, up to the RootLayoutPanel (not > RootPanel).  Y

Re: GWT MVP Activities and Places

2010-12-01 Thread metalhammer29a
Ashton, if you have a List of items in the West Region, and are going to display the details of each item in Center Region (upon selection from the list in west region), do you think we are going to need One Place or Two Places ? how about Activities ? One Activity or Two Activities ? I think we

  1   2   >