Re: Changing characters form lower to upper case in TextBox

2017-07-06 Thread Juan Carlos
Good Morning In my case, i was resolved this problem with following code: @Ian Bambury also shared this solution TextBox example= new TextBox(); example.addKeyboardListener(new KeyboardListener() { @Override public void onKeyPress(Widget sender, char keyCode, int modifiers

Re: Setting Width of a TextBox inside LayoutPanel

2016-09-21 Thread Chris Odd
My original issue was that for textboxes, the call to pnl.setWidgetLeftWidth(tb, 0, Unit.PCT, 100, Unit.Pct); does not work. Other widgets are fine, but for some reason textbox is different. .LabelledTextBox { -webkit-box-sizing: border-box; -moz-box-sizing: border-box

Re: Setting Width of a TextBox inside LayoutPanel

2016-09-13 Thread Eddy
r texbox = size panel and see what happens. Excuses me for my english but i am french :-) Hope it could help Eddy Le mercredi 20 juillet 2016 00:16:56 UTC+2, Chris Odd a écrit : > > Hello all, > > I have a LayoutPanel with one widget added to it (a TextBox). I want to > make

Setting Width of a TextBox inside LayoutPanel

2016-07-19 Thread Chris Odd
Hello all, I have a LayoutPanel with one widget added to it (a TextBox). I want to make the TextBox's width equal to the LayoutPanel's width. I thought this would work, but it does not (the TextBox is much narrower than the LayoutPanel's width): LayoutPanel pnl = new LayoutPanel(); TextBox

Re: TextBox fails to show updated text

2016-02-09 Thread Jens
> I have tried stepping through the code in debug mode and found that the > code indeed updates the TextBox. But the new value just doesn't show up in > the UI. > I am pretty sure the above code works as expected when creating a demo project. So I guess you have a bug in your c

Re: TextBox fails to show updated text

2016-02-09 Thread Velusamy Velu
; I have a UiBinder with the content > > xmlns:g="urn:import:com.google.gwt.user.client.ui"> > > > > > > > > and a snippet of the corresponding Java code: > > > @UiField > TextBox messageTextBox; > > public UserContent() {

TextBox fails to show updated text

2016-02-08 Thread Velusamy Velu
and focus on the crux of the issue I simplified the code as below. I have a UiBinder with the content and a snippet of the corresponding Java code: @UiField TextBox messageTextBox; public UserContent() { initWidget(uiBinder.createAndBindUi(this)); messageTextBox.setText("Message to user

Re: TextBox in text

2015-09-14 Thread Pothireddi Dhinakar Reddy
This is either you need to fragment the text in to different labels and put a textbox accordingly else you can add as some HTML content On Mon, Sep 14, 2015 at 5:09 PM, Maksim <noname@gmail.com> wrote: > Hello all ! > > i need paste text box in text. Like as: > > Some lo

Re: TextBox in text

2015-09-14 Thread Jens
Maecenas sed diam eget risus varius blandit sit amet non magna. If the text is not static you can wrap it using elements use -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails

TextBox in text

2015-09-14 Thread Maksim
Hello all ! i need paste text box in text. Like as: Some long text... [ text box ] ...continue text. Graphically: I use UiBinder: As expected i get:

Re: TextBox in text

2015-09-14 Thread Maksim
Nice! It is what I need. ty! понедельник, 14 сентября 2015 г., 15:32:12 UTC+3 пользователь Jens написал: > > > Maecenas sed diam eget risus varius blandit sit amet non magna. > > > If the text is not static you can wrap it using elements use > > > -- J. > -- You received this message

IE9 textbox color problem

2015-07-09 Thread Meryem Alay
I have a problem where I'm trying to change the background and text color of a GWT( GWT 2.4) TextBox. In Firefox , this works just fine. In IE9, it takes the background color setting of the CSS but not the foreground color. So, my code looks like: input[type=text] { width: 140px; font

Re: IE9 textbox color problem

2015-07-09 Thread Meryem Alay
Is there some sort of workaround for this? I want the color attribute to apply to my TextBox. 9 Temmuz 2015 Perşembe 15:16:00 UTC+3 tarihinde Meryem Alay yazdı: I have a problem where I'm trying to change the background and text color of a GWT( GWT 2.4) TextBox. In Firefox , this works

Re: IE9 textbox color problem

2015-07-09 Thread Meryem Alay
Is there some sort of workaround for this? I want the color attribute to apply to my TextBox. -- 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

Textbox wraps in FocusPanel, the focuspanel lost focus when the textbox is clicked

2014-12-12 Thread 'Leung' via Google Web Toolkit
Hi, I intend to build a focus panel wrapped with a few textbox. When the user clicks somewhere other than the focus panel, blur event will be triggered and the focus panel will be hided. However, when I try to click and place the cursor on the textbox to type, the focus panel lost focus. What

Re: SuggestBox and the underlying TextBox

2014-11-28 Thread Thomas Broyer
of the TextBox 2. SelectionEvent with the selected Value My Problem is, that my Validation will validate the SearchTerm in the ValueChangeEvent (Which may be wrong). In the following SelectionEvent, I get the correct Value. But in this case, I have already shown a warning Display

Re: SuggestBox and the underlying TextBox

2014-11-28 Thread ckuetbach
Thanks for the anwser, I will take a look at the arcbee-project. I think I found another trick to make the Suggestbox do what I want (There is no need for timer or delays):

SuggestBox and the underlying TextBox

2014-11-27 Thread ckuetbach
) If I enter a Text into the SuggestBox and select one of the Selection, I get two Events in this Order: 1. ValueChangeEvent with the SearchTerm of the TextBox 2. SelectionEvent with the selected Value My Problem is, that my Validation will validate the SearchTerm in the ValueChangeEvent (Which may

Re: Default value in empty TextBox

2014-08-07 Thread Ismael Hasan
, Is there anything built into GWT to display a value in a TextBox if the field is emtpy? This value would disappear once the user clicked in the field and started typing. I have seen this functionality on several Google web pages (i.e. the Contacts page in GMail) but I can't find anything

Re: Textbox Does Not Display Correctly When Using Chrome

2014-04-06 Thread Andrei
Your problems are not related to GWT. It may be something very basic, like a font or a font size not being set in your CSS, or a font not being available in one of the browsers. Check which CSS styles are applied to your elements in each browser. -- You received this message because you are

Re: Textbox Does Not Display Correctly When Using Chrome

2014-04-05 Thread Jens
Check your CSS. Maybe you have conditional CSS rules that screw things up. If you are sure it is correct then check your browser settings. Every browser allows the user to configure font settings for web pages. In Chrome for example you can go to settings - advanced settings - web content -

Re: Textbox Does Not Display Correctly When Using Chrome

2014-04-04 Thread KGD
overlooking or misunderstanding about GWT and any additional insight would be appreciated. Thanks, KGD On Saturday, February 8, 2014 11:19:57 PM UTC-5, Jim Douglas wrote: The GWT TextBox isn't much more than a very thin veneer around an HTML input type=text element. It's one of the most commonly

catch the Click Event on the TextBox draggable

2014-04-03 Thread paolamontorio
I'm developing with the dnd library 3.3.0 and my goal is to catch the click event on the text box draggable. I create the textBox draggable : 8-8 private Widget createDraggableTextBox() { ClickTextBox textBox = new

Re: Insert Image into Textbox

2014-02-11 Thread Craig Mitchell
wrote: Hi, I know the textbox widget sets String to show. But I want to put and image instead of the String. The image is not a specific one and changes dynamically. Is there a way to do so? How? Should I use different widget? Which one? Thanks, Matan -- You received

Re: Insert Image into Textbox

2014-02-11 Thread Craig Mitchell
However, sounds like you actually want to use the Image widget. On Sunday, March 16, 2008 8:07:05 AM UTC+11, MB wrote: Hi, I know the textbox widget sets String to show. But I want to put and image instead of the String. The image is not a specific one and changes dynamically

Re: Textbox Does Not Display Correctly When Using Chrome

2014-02-09 Thread Wayne Rasmuss
If you're using css to layout these boxes there are some differences between chrome and pretty much every other browser in how it handles sizing text boxes and did other input controls. I don't recall exactly what the issue was, but I know I fixed it by using calc in css to make chrome do the

Re: Textbox Does Not Display Correctly When Using Chrome

2014-02-09 Thread Wayne Rasmuss
Below is a CSS example that does what I was talking about. This css is used as a css resource in GWT so I had to wrap the calc in a literal. The left and right properties used by some browsers and the width with the calc is used in others. .form-input-line-cell { /* !!! This class

Textbox Does Not Display Correctly When Using Chrome

2014-02-08 Thread KGD
In the app that I've built, I've noticed that items such as TextBoxes, ComboBoxes and the like do not display the same in Chrome as in IE and Safari. Specifically, a textbox positioned on a panel displays correctly (i.e. maintains its position based on the development and allows the user

Re: Textbox Does Not Display Correctly When Using Chrome

2014-02-08 Thread Jim Douglas
The GWT TextBox isn't much more than a very thin veneer around an HTML input type=text element. It's one of the most commonly used GWT Widgets; you should start with the assumption that it works fine in all standard browsers. You can open this page in Chrome to see a sample GWT TextBox: http

Re: Textbox width according to the characters present in the textbox.

2013-12-17 Thread Andrei
You can only approximate. (1) Users may not have a specified font. Browsers will try to substitute this font, and the width of characters maybe different for a substitute font. (2) Users can zoom in or out, changing the font size from the one you set. I need to set the size of the text box

Textbox width according to the characters present in the textbox.

2013-12-16 Thread P
Hi, I need to set the size of the text box according to the length of the text inside that box, it may contain localized characters like Chinese. Is any we can calculate the length in pixels for this? Thank you, Parag -- You received this message because you are subscribed to the Google

Re: Default value in empty TextBox

2013-11-27 Thread Zied Hamdi
for the code. Here's my extension of it: public class DefaultTextBox extends TextBox implements FocusListener { String defaultText; boolean defaultTextMode = false; public DefaultTextBox(String defaultText) { setDefaultText(defaultText

Re: Default value in empty TextBox

2013-11-27 Thread Moutellou
in a TextBox if the field is emtpy? This value would disappear once the user clicked in the field and started typing. I have seen this functionality on several Google web pages (i.e. the Contacts page in GMail) but I can't find anything in the documentation or samples about it. Thanks, Brock

[gwt-contrib] Change in gwt[master]: Removes delegation of event from TextBox event handler insid...

2013-06-04 Thread Goktug Gokdogan
Goktug Gokdogan has posted comments on this change. Change subject: Removes delegation of event from TextBox event handler inside SuggestBox. .. Patch Set 2: (1 comment

[gwt-contrib] Change in gwt[master]: Removes delegation of event from TextBox event handler insid...

2013-06-04 Thread Goktug Gokdogan
Hello Leeroy Jenkins, Thomas Broyer, Patrick Tucker, I'd like you to reexamine a change. Please visit https://gwt-review.googlesource.com/3141 to look at the new patch set (#3). Change subject: Removes delegation of event from TextBox event handler inside SuggestBox

[gwt-contrib] Change in gwt[master]: Removes delegation of event from TextBox event handler insid...

2013-06-04 Thread Goktug Gokdogan
Goktug Gokdogan has submitted this change and it was merged. Change subject: Removes delegation of event from TextBox event handler inside SuggestBox. .. Removes delegation of event from TextBox event handler inside

[gwt-contrib] Change in gwt[master]: Removes delegation of event from TextBox event handler insid...

2013-06-04 Thread Goktug Gokdogan
Goktug Gokdogan has posted comments on this change. Change subject: Removes delegation of event from TextBox event handler inside SuggestBox. .. Patch Set 3: Code-Review+2 (Just added a reference to issue after last patch

[gwt-contrib] Change in gwt[master]: Removes delegation of event from TextBox event handler insid...

2013-06-01 Thread Thomas Broyer
Thomas Broyer has posted comments on this change. Change subject: Removes delegation of event from TextBox event handler inside SuggestBox. .. Patch Set 2: Code-Review+2 (1 comment

[gwt-contrib] Change in gwt[master]: Removes delegation of event from TextBox event handler insid...

2013-05-31 Thread Patrick Tucker
Patrick Tucker has posted comments on this change. Change subject: Removes delegation of event from TextBox event handler inside SuggestBox. .. Patch Set 1: Code-Review+1 Cool thanks for transferring this one over

[gwt-contrib] Change in gwt[master]: Removes delegation of event from TextBox event handler insid...

2013-05-31 Thread Thomas Broyer
Thomas Broyer has posted comments on this change. Change subject: Removes delegation of event from TextBox event handler inside SuggestBox. .. Patch Set 1: Code-Review+2 Should we add a test for it? (dispatch an event

[gwt-contrib] Change in gwt[master]: Removes delegation of event from TextBox event handler insid...

2013-05-31 Thread Goktug Gokdogan
Hello Leeroy Jenkins, Thomas Broyer, Patrick Tucker, I'd like you to reexamine a change. Please visit https://gwt-review.googlesource.com/3141 to look at the new patch set (#2). Change subject: Removes delegation of event from TextBox event handler inside SuggestBox

[gwt-contrib] Change in gwt[master]: Removes delegation of event from TextBox event handler insid...

2013-05-30 Thread Goktug Gokdogan
Goktug Gokdogan has uploaded a new change for review. https://gwt-review.googlesource.com/3141 Change subject: Removes delegation of event from TextBox event handler inside SuggestBox. .. Removes delegation of event from

Re: Trigger button on ENTER inside a TextBox?

2013-03-14 Thread Kody
Thanks Jens. Yes I use uibinder, did not know I can register more than one widget to the same handler method. Will go for this approach. 2013/3/14 K vfdsdfbsdb kazuoh...@gmail.com sure you must add keyListener for all TextBox . But if you create one method,it 's smart. example for private

Trigger button on ENTER inside a TextBox?

2013-03-13 Thread membersound
Hi, I have a popup with a bunch of TextBox and TextArea fields. Also 3 Buttons like Save, Cancel, Reset. For the TextBoxes I would like to trigger the Save action if ENTER is hit while inside a TextBox (not for the TextAreas). Would I have to register a KeyDownHandler for all the TextBoxes

Re: Trigger button on ENTER inside a TextBox?

2013-03-13 Thread Jens
maybeTriggerSaveOnKeyUp = new KeyUpHanlder() { .. }; box1.addKeyUpHandler(maybeTriggerSaveOnKeyUp); box2.addKeyUpHandler(...) If you instantiate the TextBoxes yourself you could replace new TextBox() with createTextBox() and add the key handler inside that method. Alternatively you could listen for Key

Re: Trigger button on ENTER inside a TextBox?

2013-03-13 Thread K vfdsdfbsdb
sure you must add keyListener for all TextBox . But if you create one method,it 's smart. example for private void addListeners(ListTextBox textboxs ,Listener listener){ for(int i=0;itextboxs.size;i++){ textboxs.get(i).addKeyListener(listener); } } 2013/03/14 7:02 membersound kodyreco

Re: PopupPanel.hide() steals focus from TextBox?

2013-02-28 Thread Kody
Tried this but does not work for me. Only what helps is disabling the animation... 2013/2/27 rjfl...@gmail.com I had a similar problem with a DialogBox setModal(false) fixed it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

CssResource RTLsupport, textBox issue

2013-02-28 Thread Liam McGregor
Currently when injecting a style using a ClientBundle interface like this*TasklistResourceBundle.INSTANCE.style().ensureInjected(); * If we set the locale *?locale=ar_iq* to arabic everything is moved to the RHS which is fine, however when typing into textBoxes the cursor is positioned on

Re: PopupPanel.hide() steals focus from TextBox?

2013-02-26 Thread rjfleck
I had a similar problem with a DialogBox setModal(false) fixed it. -- 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

Re: PopupPanel.hide() steals focus from TextBox?

2013-02-24 Thread membersound
I found out this is cause by popupPanel.setAnimationEnabled(true); Using false would work as expected. Is there any way to fix it and though use animation? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and

Re: TextBox - cannot select text with mouse?

2013-02-23 Thread Kody
to select text on any textbox available in your app. My best guess is that you have canceled certain native events by mistake. -- J. -- 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

TextBox - cannot select text with mouse?

2013-02-22 Thread membersound
Hi, can anyone confirm that it is not possible to select the content of a TextBox using Mouse only? I found this isse from 2011 (http://code.google.com/p/google-web-toolkit/issues/detail?id=6468), but as there are no other complains, maybe I could be missing something? Do I have to set some

PopupPanel.hide() steals focus from TextBox?

2013-02-22 Thread membersound
Hi, I have a TextBox, and a PopupPanel. Inside the PopupPanel I have a MenuItem, which on click should set the focus into the TextBox. Now, if I do not hide the popup everything works fine (except that the popup is still showing). But if I do PopupPanel.hide(), the focus gets lost from TextBox

Re: TextBox - cannot select text with mouse?

2013-02-22 Thread membersound
Thanks, that's very strange. Could I somehow have *disabled *mouse interaction on a input field globally?? I just added a TextBox upmost of my application, and the behaviour is the same: neither mouse selection nor POS1 or END keys work. g:SplitLayoutPanel g:north size='40' g:TextBox / Am

Re: TextBox - cannot select text with mouse?

2013-02-22 Thread Manuel
membersound: Thanks, that's very strange. Could I somehow have *disabled *mouse interaction on a input field globally?? I just added a TextBox upmost of my application, and the behaviour is the same: neither mouse selection nor POS1 or END keys work. g:SplitLayoutPanel g:north size='40

Re: TextBox - cannot select text with mouse?

2013-02-22 Thread Kody
looked like the non selected... so maybe its just something in your css? Regards, Manuel Am Freitag, 22. Februar 2013 18:52:24 UTC+1 schrieb membersound: Thanks, that's very strange. Could I somehow have *disabled *mouse interaction on a input field globally?? I just added a TextBox upmost

Re: TextBox - cannot select text with mouse?

2013-02-22 Thread membersound
, but not by Mouse Clicks. Tried this from different machines and different browsers, so it must be within my application. That's very strange that this behaviour is the same vor all available input fields. Wether they come from a TextBox or are inside a CellTable es EditableTextCell, they just don't care

Re: TextBox - cannot select text with mouse?

2013-02-22 Thread Jens
on any textbox available in your app. My best guess is that you have canceled certain native events by mistake. -- J. -- 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

Re: No Textbox can take the focus by mouse clicking in IE8

2013-01-21 Thread Alex Ph
that I can reproduce only with IE8 (Windows XP). I use a TabPanel with IFrames in the tabs. When I close a tab which has an element with focus no TextBox in other tabs can take the focus by mouse clicking (but only by Tab-Key). If the closed tab did not have a focused element the problem does

Re: How to validate TextBox fields?

2013-01-08 Thread membersound
I was not aware of the editor framework. This looks very promising! -- 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/-/9qGf8hGJ1ZwJ. To post to this

Re: How to only allow digits to be entered in a textbox?

2013-01-08 Thread RyanZA
Grab this code from stackoverflow, should do what you want http://stackoverflow.com/questions/2865647/solution-for-numeric-text-field-in-gwt On Monday, January 7, 2013 4:55:44 PM UTC+2, membersound wrote: Hi, I have a textbox where I want to user to only enter digits. Moreover I want

How to validate TextBox fields?

2013-01-07 Thread membersound
; } } class MyForm { @UiField TextBox name; @UiHandler void onClick(saveButton) { new Person(name); //... } } What do I have to do in order to validate the field now, and show the error message from the annotation on the page? -- You received this message because you

Re: How to validate TextBox fields?

2013-01-07 Thread Jens
Take a look at: https://developers.google.com/web-toolkit/doc/latest/DevGuideValidation The GWT SDK also contains a small validation example project that validates a Person before sending it to the server. -- J. -- You received this message because you are subscribed to the Google Groups

Re: How to validate TextBox fields?

2013-01-07 Thread membersound
an annotation error message beneath a textbox Could you help me out? -- 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/-/xC7Y9XCSE48J. To post to this group

How to only allow digits to be entered in a textbox?

2013-01-07 Thread membersound
Hi, I have a textbox where I want to user to only enter digits. Moreover I want to prevent him entering other characters. This is what I tried but it does not work: @UiHandler(textbox) void onInputsKeyPress(KeyPressEvent event) { if (!Character.isDigit(event.getCharCode

Re: How to validate TextBox fields?

2013-01-07 Thread Jens
a textbox Create a error message label that you can show/hide/update based on the ConstraintViolation you get from validating your class. If Person.name has a validation violation then constraintViolation.getPropertyPath() should be name. In the validation example, all messages are appended

Re: How to validate TextBox fields?

2013-01-07 Thread Thomas Broyer
before creating the Person object, but there's no such things in GWT proper. That being said, creating a Person object shouldn't be that expensive that you want to avoid it a all costs. - how to display an annotation error message beneath a textbox Well, use an Image widget? or a Label widget

Re: How to validate TextBox fields?

2013-01-07 Thread Nick Chalko
On Mon, Jan 7, 2013 at 7:42 AM, Thomas Broyer t.bro...@gmail.com wrote: On Monday, January 7, 2013 3:45:53 PM UTC+1, membersound wrote: Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of

Re: How to validate TextBox fields?

2013-01-07 Thread Thomas Broyer
On Monday, January 7, 2013 4:50:03 PM UTC+1, Nick Chalko wrote: On Mon, Jan 7, 2013 at 7:42 AM, Thomas Broyer t.br...@gmail.comjavascript: wrote: On Monday, January 7, 2013 3:45:53 PM UTC+1, membersound wrote: Yes I know this side. But it still does not tell me: - how to validate

Re: No Textbox can take the focus by mouse clicking in IE8

2013-01-03 Thread Daniel Girtler
a problem in GWT 2.0.4 that I can reproduce only with IE8 (Windows XP). I use a TabPanel with IFrames in the tabs. When I close a tab which has an element with focus no TextBox in other tabs can take the focus by mouse clicking (but only by Tab-Key). If the closed tab did not have a focused

different gwt-textbox height in IE9 and FF13

2013-01-01 Thread tong123123
I found that for gwt-textbox (without modify any of its css attribute), when render in IE9, the height is 22px but NOT including padding-top, padding-bottom, border-top-width, border-bottom-width, so in IE, the gwt-textbox is in fact 22+1+1+1+1 = 26px; but in FF13, the height 22px is including

Re: GWT textbox.

2012-12-19 Thread Jonathan
Any news on *'Even i cannot be able to select the text by dragging the mouse over the text.*'? I have the same issue in IE9. Is this already fixed? Other solutions? Gr Op donderdag 30 augustus 2012 23:21:44 UTC+2 schreef Bobby het volgende: onFocus of any of the textboxes in my GWT

Re: TextBox with pre-filled suggestion

2012-12-06 Thread Drew Spencer
! On Wednesday, December 5, 2012 9:33:35 AM UTC+1, dcheeky77 wrote: Wow, thank you very much, I'll definitely give it a try!!! On Wednesday, December 5, 2012 8:04:33 AM UTC+1, Igor Knyazev wrote: You can use HTML 5 input placeholder attribute to achive that. TextBox textBox = new TextBox

Re: TextBox with pre-filled suggestion

2012-12-06 Thread Jens
Well if you want it in IE 10 you still need JS to do so. Simply read the placeholder attribute through JS and set the value into the Textbox if the textbox is empty and not focused. On focus clear the textbox if it contains the placeholder text. -- J. Am Donnerstag, 6. Dezember 2012 13:56:33

Re: TextBox with pre-filled suggestion

2012-12-05 Thread dcheeky77
Wow, thank you very much, I'll definitely give it a try!!! On Wednesday, December 5, 2012 8:04:33 AM UTC+1, Igor Knyazev wrote: You can use HTML 5 input placeholder attribute to achive that. TextBox textBox = new TextBox(); textBox.getElement().setAttribute(placeholder, some text); check

Re: TextBox with pre-filled suggestion

2012-12-05 Thread dcheeky77
attribute to achive that. TextBox textBox = new TextBox(); textBox.getElement().setAttribute(placeholder, some text); check browser support of this attribute here http://www.w3schools.com/html5/att_input_placeholder.asp For rounded borders just add styleName to TextBox with border

TextBox with pre-filled suggestion

2012-12-04 Thread dcheeky77
Hello! I need to use a TextBox to enter some data, but the label which explains the field's purpose must be of the kind inside the TextBox itself, which disappears when the user clicks on the field (I hope I've let you understand what I'm talking about ;) ) I'm using GWT 2.4: is there any

Re: TextBox with pre-filled suggestion

2012-12-04 Thread Igor Knyazev
You can use HTML 5 input placeholder attribute to achive that. TextBox textBox = new TextBox(); textBox.getElement().setAttribute(placeholder, some text); check browser support of this attribute here http://www.w3schools.com/html5/att_input_placeholder.asp For rounded borders just add

Re: Required solution for all Textbox on value change event - generic way

2012-11-22 Thread Oliver Krylow
implementations) 4. We are having many such screens with all screen will have textbox in it and all screen presenter will extends Base Presenter. -- My requirement is to fire and catch generic event when user changes any textbox in any screen. -- I dont want to define event for each

How to write / capture generic Value change event for all the textbox in my application

2012-11-21 Thread Dharanipathi D
Hi all, In my application we are using 1. Screen are designed using UIBinder with a view class to bind 2. Presenter as controller and model. 3. We do have Base Presenter (abstract with few generic implementations) 4. We are having many such screens with all screen will have textbox

textbox focus is not working as expected on IE8

2012-10-08 Thread Miroslav Genov
Hello, It seems that focus is not working as expected on IE8. Does anyone has an idea why FocusImpl is using FocusImplIE6 when ie8 when FocusImplStandard seens more reasonable as described in: http://stackoverflow.com/questions/1326993/jquery-focus-sometimes-not-working-in-ie8 -- You

[gwt-contrib] Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread t . broyer
My preferred option, with one small adjustment to make it a non-breaking change. https://codereview.appspot.com/6492092/diff/1/user/src/com/google/gwt/user/client/ui/SuggestBox.java File user/src/com/google/gwt/user/client/ui/SuggestBox.java (right):

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread jat
BTW: you should create code reviews at http://gwt-code-reviews.appspot.com/ instead. There is a also a TODO to support SafeHtml here. I'm not entirely sure what that means in this case (Doesn't TextBox already ensure the string is uninterpreted? Does changing to a ValueBoxBase mean you might

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread t . broyer
On 2012/09/10 12:03:20, jtamplin wrote: BTW: you should create code reviews at http://gwt-code-reviews.appspot.com/ instead. There is a also a TODO to support SafeHtml here. I'm not entirely sure what that means in this case (Doesn't TextBox already ensure the string is uninterpreted

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread jat
LGTM https://codereview.appspot.com/6492092/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread jat
https://codereview.appspot.com/6492092/diff/5001/user/src/com/google/gwt/user/client/ui/SuggestBox.java File user/src/com/google/gwt/user/client/ui/SuggestBox.java (right): https://codereview.appspot.com/6492092/diff/5001/user/src/com/google/gwt/user/client/ui/SuggestBox.java#newcode878

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread t . broyer
LGTM https://codereview.appspot.com/6492092/diff/5001/user/src/com/google/gwt/user/client/ui/SuggestBox.java File user/src/com/google/gwt/user/client/ui/SuggestBox.java (right): https://codereview.appspot.com/6492092/diff/5001/user/src/com/google/gwt/user/client/ui/SuggestBox.java#newcode878

[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread skybrian
LGTM. I'll commit this soon. https://codereview.appspot.com/6492092/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

TextBox not working in FireFox

2012-09-07 Thread rohit s kumar
Hi I am using gwt 2.4.0. jar. I have a problem with text box setFocus() in Firefox 15. I researched about the topic and I have find out a lot of solution using Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand () { public void execute ()

GWT textbox.

2012-09-03 Thread Bobby
onFocus of any of the textboxes in my GWT application the cursor is going back to the starting of the text. I tried to set the cursor position but still didnt work. Even i cannot be able to select the text by dragging the mouse over the text. This happens only in IE ,works fine in Chrome.

[gwt-contrib] Re: Add role=presentation into textbox of FocusPanel. (issue1803804)

2012-08-14 Thread skybrian
I'm not familiar with FocusPanel, but it looks like it's used by a variety of subclasses that need to accept keyboard input for various reasons. So I don't think this is a good idea in all cases. Perhaps FocusPanel needs a way to set the ARIA role and you should do this only for your app?

[gwt-contrib] Re: Add role=presentation into textbox of FocusPanel. (issue1803804)

2012-08-14 Thread skybrian
LGTM http://gwt-code-reviews.appspot.com/1803804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

newbie question: what return type to use for TextBox?

2012-08-12 Thread wuziq
This might be a loaded question. I am using mvp4g. I have a view with a TextBox. In my presenter, I want to do 2 things with the TextBox: // in one part of the presenter view.getMyTextBox().setFocus( true ); // in another part of the same presenter String myText = view.getMyTextBox().getText

Re: newbie question: what return type to use for TextBox?

2012-08-12 Thread Jens
extends Focusable HasText T getTextBox() { return (T) textbox; *//unchecked cast!* } which will allow you to access methods from both interfaces when calling view.getTextBox().someMethod() but I dont recommend it because the downsides are: - you don't get a compile time error if textbox does

Re: No Textbox can take the focus by mouse clicking in IE8

2012-08-02 Thread Patrick Duffy
an element with focus no TextBox in other tabs can take the focus by mouse clicking (but only by Tab-Key). If the closed tab did not have a focused element the problem does not occur. I tried to use TabLayoutPanel but it did not help. What can cause such behavior in the web browser? -- You

How to send data from gwt TextBox to PhP server via JSON

2012-08-02 Thread Godel83
Hi, I'm trying to send login datato php script, when click on submit button. I want to send data as Post for php script, via JSON. This is my code on java file (piece of the form): final TextBox mioUsername = new TextBox(); final PasswordTextBox miaPassword = new PasswordTextBox(); Button

Re: How to send data from gwt TextBox to PhP server via JSON

2012-08-02 Thread Joseph Lust
// username and password sent from form $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword']; You will need to json_decode() the request before you can access the variables within. Further the incoming request JSON should be assigned to a variable (i.e. msg=JSON) so that

max allowed text length in textbox

2012-07-10 Thread Dan
Hi, There is a limit for the lenght of string in textbox? We are facing some problems, strings with length 4849 chars are being truncated. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion

Invoking Value Change Event via JS on TextBox

2012-07-06 Thread pragati
I have a requirement where via javascript, a value is copied into the GWT TextBox widget and the Value Change Event should get fired so that i know i have to do something. Is there a way to achieve this? It works via JSNI, which actually does a call to TextBox.setValue(value, true) But i

Re: Invoking Value Change Event via JS on TextBox

2012-07-06 Thread Thomas Broyer
On Friday, July 6, 2012 3:00:12 PM UTC+2, pragati wrote: I have a requirement where via javascript, a value is copied into the GWT TextBox widget and the Value Change Event should get fired so that i know i have to do something. Is there a way to achieve this? It works via JSNI, which

  1   2   3   4   >