Re: UiBinder fails after upgrading to gwt 2.1.0

2010-11-21 Thread squix
I can confirm that upgrade to xercesImpl.jar 2.9.1 solved the problem Thank you for this solutions, you saved me hours of debugging On Nov 19, 1:48 pm, Herwig Henseler goo...@herwig-henseler.de wrote: Hi, I'm also stuck here and can't migrate to GWT 2.1. I replaced my old xercesImpl-2.6.2

vertical alignment inside a FlowPanel

2010-11-21 Thread Magnus
Hi, how can a FlowPanel align its contents at the bottom? I tried: myPanel.getElement().getStyle().setVerticalAlign(VerticalAlign.BOTTOM); But the contents (SimplePanels) are aligned at the top. Thanks Magnus -- You received this message because you are subscribed to the Google Groups

setFocus for TextBox does not work?

2010-11-21 Thread Magnus
Hi, I am using a DialogBox as a login box and I would like the user field to get the focus automatically. I tried txt_User.setFocus (true), but without success. How can I do that? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group.

RequestFactory service stub

2010-11-21 Thread hezjing
Hi May I know if the interface defined in the RequestFactory service stub like EmployeeRequest must be corresponding to a method defined in the entity? Imagine that I already have a JPA entity class like the following, which has a named query instead of a findAllEmployees() @Entity

Re: Problems selecting a Cell in a CellTree

2010-11-21 Thread dleins
John, thanks for the idea, but the goal is to identify a particular cell to permit the change of a whole set of parameters when a particular cell is selected, not just the text in the cell. I don't want to show all the parameters in the tree, just the label for them. The goal would be to pop a

Re: Request order

2010-11-21 Thread Stefan Bachert
Hi Jeff, Here's what I'm still not sure of: are you looking to undo/redo at the attribute level, the entity level, transaction (multiple entities) level? I do no more looking for undo/redo, I solved it at the latter level. However, the reason for this thread was that I figured out, that

Re: RequestFactory service stub

2010-11-21 Thread Thomas Broyer
On 21 nov, 13:48, hezjing hezj...@gmail.com wrote: Hi May I know if the interface defined in the RequestFactory service stub like EmployeeRequest must be corresponding to a method defined in the entity? Imagine that I already have a JPA entity class like the following, which has a named

Re: setFocus for TextBox does not work?

2010-11-21 Thread Thomas Broyer
On 21 nov, 10:52, Magnus alpineblas...@googlemail.com wrote: Hi, I am using a DialogBox as a login box and I would like the user field to get the focus automatically. I tried txt_User.setFocus (true), but without success. How can I do that? You might have to call setFocus from a

Re: How to highlight word under mouse in TextArea?

2010-11-21 Thread Gaurav Vaish
IMHO, there's no Javascript API to select only a part of text in text- area... would be happy to be proven wrong. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 20, 11:20 am, Yu yfan...@gmail.com wrote: Hi, I'd like to highlight the word under the mouse as the mouse

Re: How to highlight word under mouse in TextArea?

2010-11-21 Thread Nicolas Antoniazzi
I do not know the low level functions for doing this, but it is possible. We use a tool called CodeMirror on our project. It is a rich text area with code parser and syntax highlight. There are methods it the api to select portion of text. http://codemirror.net/ http://codemirror.net/

Re: How to show the contents from a checkbox in a separate panel

2010-11-21 Thread Gaurav Vaish
Hi Samuel, Here's an outline of solution that can you may want to use (frankly speaking, I haven't gone in depth of your code): 1. Create an ArrayListCheckbox of all checkboxes 2. Add a ValueChangeChandler (if interested in only value) or ClickHandler (if you want instance reference as well).

Re: How to highlight word under mouse in TextArea?

2010-11-21 Thread Gaurav Vaish
Hi Nicolas, Fantastic reference. And look at http://codemirror.net/jstest.html (search for var and it's great). Looking into the code, I found something of interest in js/editor.js file. -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 21, 7:49 pm, Nicolas Antoniazzi

Re: How to highlight word under mouse in TextArea?

2010-11-21 Thread Thomas Broyer
On 21 nov, 15:44, Gaurav Vaish gaurav.va...@gmail.com wrote: IMHO, there's no Javascript API to select only a part of text in text- area... would be happy to be proven wrong. setSelectionRange?

Re: setFocus for TextBox does not work?

2010-11-21 Thread Jeff Schwartz
The simplest way is to create a public method in the dialog box and call it after the dialog box is created and rendered to set the focus to the user field. On Sun, Nov 21, 2010 at 9:16 AM, Thomas Broyer t.bro...@gmail.com wrote: On 21 nov, 10:52, Magnus alpineblas...@googlemail.com wrote:

Re: Volunteers???

2010-11-21 Thread Isuru
On 08/25/2010 09:17 PM, dolcra...@gmail.com wrote: Why not natively port YUI to GWT? Yeah exposing the api/library can make it easier if you're writing code that needs to be accessible from external javascript, but if you wrote it as a native/pure gwt library you would be able to benefit from

Re: How to show the contents from a checkbox in a separate panel

2010-11-21 Thread joelsamuel
Thanks Gauray for your response, I am very new to coding, could you show me an example or do you have any code you could provide to get this done based on my code? Thanks again I appreciate it as I am still in the learning phases. On Nov 21, 9:58 am, Gaurav Vaish gaurav.va...@gmail.com wrote: Hi

Web Security General questions

2010-11-21 Thread Jeff Larsen
I realize that this isn't necessarily a GWT specific question, but I am curious as to what are some good resources for managing and maintaining secure web-apps, and specifically in a GWT environment. I've read http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications

Re: Web Security General questions

2010-11-21 Thread Brett Thomas
Id love to hear answers too. I try to listen to a great podcast every week, Security Now - www.grc.com/securitynow On Nov 21, 2010 11:20 AM, Jeff Larsen larse...@gmail.com wrote: I realize that this isn't necessarily a GWT specific question, but I am curious as to what are some good resources

Re: How to highlight word under mouse in TextArea?

2010-11-21 Thread Gaurav Vaish
A very ugly way (last resort) is to put each and every word under a separate div. Duh me! -- Happy Hacking, Gaurav Vaish http://www.mastergaurav.com On Nov 21, 8:19 pm, Thomas Broyer t.bro...@gmail.com wrote: On 21 nov, 15:44, Gaurav Vaish gaurav.va...@gmail.com wrote: IMHO, there's no

Re: setFocus for TextBox does not work?

2010-11-21 Thread steveb
I found that using a Timer works. I don't understand why but it does the job. On Nov 21, 8:52 pm, Magnus alpineblas...@googlemail.com wrote: Hi, I am using a DialogBox as a login box and I would like the user field to get the focus automatically. I tried txt_User.setFocus (true), but

Re: How to keep row selected after pagination grid refresh?

2010-11-21 Thread Ahmed Shoeib
i don't use gwt-ext i use gwt how can refresh selected Row ?? On Nov 21, 1:35 am, Blagoja Chavkoski baze...@gmail.com wrote: This question is for ext gwt forum, but i had implemented some code close to this one, and I had the same problem!! Its interesting that I notised the problem is on

Re: setFocus for TextBox does not work?

2010-11-21 Thread Nick Newman
I think in similar situations I've found that the text box has not actually been displayed on the page (that is, not attached to the root panel) at the time that I ask for it to receive focus. Perhaps that was the case with you? Might be worth checking. Nick On Sun, Nov 21, 2010 at 2:05 PM,

Re: setFocus for TextBox does not work?

2010-11-21 Thread Subhrajyoti Moitra
Use a DeferredCommand or a ScheduledCommand (GWT2.1) TextBox textBox=new TextBox(); Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { textBox.setFocus(true); } }); I think u might have already

Re: setFocus for TextBox does not work?

2010-11-21 Thread John LaBanca
The TextBox needs to be attached to the page before you can focus it. So, the following *should* fail: TextBox textBox = new TextBox(); textBox.setFocus(true); // Fail: not attached to the DOM RootPanel.get().add(textBox); And the following *should* work: TextBox textBox = new TextBox();

Re: How to keep row selected after pagination grid refresh?

2010-11-21 Thread John LaBanca
@ahmedelsayed.shoeib - Are you using a CellTable? If so, you can push new data into a row to refresh it: myCellTable.setRowData(rowIndexToRefresh, Collections.singletonList(valueToRefresh)); Thanks, John LaBanca jlaba...@google.com On Sun, Nov 21, 2010 at 3:19 PM, Ahmed Shoeib

Re: Problems selecting a Cell in a CellTree

2010-11-21 Thread David Pinn
Have a look at the implementation of DatePickerCell. On Nov 22, 12:18 am, dleins dle...@gmail.com wrote: John, thanks for the idea, but the goal is to identify a particular cell to permit the change of a whole set of parameters when a particular cell is selected, not just the text in the cell.

Re: How to kill a GWT request which has not yet completed

2010-11-21 Thread Sunit Katkar
Thank you - Sunit Katkar http://sunitkatkar.blogspot.com/ On Sat, Nov 20, 2010 at 3:10 PM, Thomas Broyer t.bro...@gmail.com wrote: On 20 nov, 23:23, Sunit Katkar sunitkat...@gmail.com wrote: But if I return a Request as the return, then what about the data that is supposed to come

Re: setFocus for TextBox does not work?

2010-11-21 Thread Magnus
Hi, thank you very much, these explanations are great. But it still does not work! :-/ I found that I never explicitely attach the DialogBox to the RootPanel. Remember, it is of class DialogBox, which appears right after creating it and calling center. So I always concluded that the attachment

Re: Web Security General questions

2010-11-21 Thread Didier Durand
Hi, I would recommend the book Ajax Security by Billy Hoffmann regards didier On Nov 21, 6:17 pm, Brett Thomas brettptho...@gmail.com wrote: Id love to hear answers too. I try to listen to a great podcast every week, Security Now -www.grc.com/securitynow On Nov 21, 2010 11:20 AM, Jeff Larsen

GWT Designer Code Generation Problem

2010-11-21 Thread Noor
Hello, I am new to GWT but I've been using java object orientation programming for quite a long. The problem is that when gwt designer generates the code for the user interface. It defines the components directly in the construction which is problem when we try to access the component outside

Re: webappcreator with -maven and Eclipse: output directories don't match

2010-11-21 Thread Manuel Carrasco Moñino
When using maven in eclipse, it is better to let maven to produce the eclipse stuff instead of webAppCreator using the undocumented option -XnoEclipse, and use the google eclipse plugin to launch the app in dev mode: 1.- webAppCreator -noant -maven -XnoEclipse com.example.MyApp 2.- You can use

[gwt-contrib] Tweak for @UiChild javadoc (issue1132801)

2010-11-21 Thread Konstantin . Scheglov
Reviewers: rjrjr, rice, Description: JavaDoc does not show example. http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/uibinder/client/UiChild.html Changes in this (trivial) patch. 1. Left angle bracket should be quoted. 2. Fix for indentation. Please review this at

[gwt-contrib] Enum Ordinalization Optimization (revised) (issue1133801)

2010-11-21 Thread jbrosenberg
Reviewers: cromwellian, Description: Enum Ordinalization Optimization (revised) Please review this at http://gwt-code-reviews.appspot.com/1133801/show Affected files: M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java M

[gwt-contrib] Re: Add support for RpcTokens, which, if set, are sent with each RPCRequest to (issue1107801)

2010-11-21 Thread meder
http://gwt-code-reviews.appspot.com/1107801/diff/3001/4005 File user/src/com/google/gwt/user/client/rpc/ServiceDefTarget.java (right): http://gwt-code-reviews.appspot.com/1107801/diff/3001/4005#newcode43 user/src/com/google/gwt/user/client/rpc/ServiceDefTarget.java:43: RpcToken getRpcToken();

[gwt-contrib] Re: Add support for RpcTokens, which, if set, are sent with each RPCRequest to (issue1107801)

2010-11-21 Thread meder
http://gwt-code-reviews.appspot.com/1107801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors