Re: Combo box in GWT2.4?
We need a editable listbox i.e. combo box. Is there a attribute which can make the listbox editable? On May 18, 12:23 pm, Dimitrijević Ivan dim...@gmail.com wrote: *com.google.gwt.user.client.ui.ListBox* http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/g... On Friday, May 18, 2012 6:47:44 AM UTC+2, ALB-PSP-DV1 wrote: We need to display data using combo box in our application. 1) Is there a combo box widget in GWT2.4? 2) If not is there a workaround to achieve the same? Any help much appreciated. Thanks in advance. -- 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: Combo box in GWT2.4?
We need a combination of a drop-down list or list box and a single- line textbox, allowing the user to either type a value directly into the control or choose from the list of existing options(not suggestbox though). On May 18, 5:06 pm, Dimitrijević Ivan dim...@gmail.com wrote: What do you meen by editable? You can use setVisibleItemCount(1) method to make combobox. If visibleItemCount is bigger that this control is displayed as a listbox. On Friday, May 18, 2012 1:29:12 PM UTC+2, ALB-PSP-DV1 wrote: We need a editable listbox i.e. combo box. Is there a attribute which can make the listbox editable? On May 18, 12:23 pm, Dimitrijević Ivan dim...@gmail.com wrote: *com.google.gwt.user.client.ui.ListBox* http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/g... On Friday, May 18, 2012 6:47:44 AM UTC+2, ALB-PSP-DV1 wrote: We need to display data using combo box in our application. 1) Is there a combo box widget in GWT2.4? 2) If not is there a workaround to achieve the same? Any help much appreciated. Thanks in advance. -- 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.
Combo box in GWT2.4?
We need to display data using combo box in our application. 1) Is there a combo box widget in GWT2.4? 2) If not is there a workaround to achieve the same? Any help much appreciated. Thanks in advance. -- 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.
Suggestbox suggestions not displayed when navigating using arrow keys
We have a suggestbox with approx. 50 suggestions. We are displaying a scrollbar for the suggestbox using the following css .suggestPopupContent{ height:auto; width:auto !important; max-width:400px; max-height: 165px; overflow-y: auto; padding-right:18px; } Now when the user tries to navigate through the suggestions using the Up/Down arrow key, the suggestions not within the current visible area are not displayed. Thanks in advance. -- 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: Suggestbox suggestions not displayed when navigating using arrow keys
Any help is appreciated. On May 2, 11:39 am, ALB-PSP-DV1 albpsp...@gmail.com wrote: We have asuggestboxwith approx. 50suggestions. We are displaying a scrollbar for thesuggestboxusingthe following css .suggestPopupContent{ height:auto; width:auto !important; max-width:400px; max-height: 165px; overflow-y: auto; padding-right:18px; } Now when the user tries to navigate through thesuggestionsusingthe Up/Downarrowkey, thesuggestionsnotwithin the current visible area arenotdisplayed. Thanks in advance. -- 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: Preventing selection event propagation
Thank you for your suggestions. I tried the solution suggested by Jens. I have a confirmation window to be first displayed on tab selection, and only on click of No button in the confirmation window the tab selection should be cancelled. Currently both BeforeSelectionEvent and SelectionEvent are invoked since I can perform event cancel() on No button. On Apr 27, 6:02 pm, Jens jens.nehlme...@gmail.com wrote: Tab(Layout)Panel's SelectionEvent is a GwtEvent and not a DomEvent, so its only a logical event fired by GWT and not a native event fired by the browser. Thats why you don't have a stopPropagation() / preventDefault() method. But TabPanel and TabLayoutPanel have an addBeforeSelectionHandler() and the BeforeSelectionEvent contains a cancel() method which should cancel the upcoming selection. This should help you to solve your problem. -- J. Am Freitag, 27. April 2012 13:45:19 UTC+2 schrieb ALB-PSP-DV1: Our application has two tabs. On selecting the tabs we have to display a confirmation window(dialog box). Depending on whether user clicks Yes or No button in the confirmation window, the tab selection event should proceed or stop. I know we have event.stopPropagation() method for click event. However there is no such method for selection event. Is there any work around to stop the propagation of the selection event. Any help is much appreciated. Thanks in advance. -- 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: Preventing selection event propagation
On Apr 27, 4:45 pm, ALB-PSP-DV1 albpsp...@gmail.com wrote: Our application has two tabs. On selecting the tabs we have to display a confirmation window(dialog box). Depending on whether user clicks Yes or No button in the confirmation window, the tab selection event should proceed or stop. I know we have event.stopPropagation() method for click event. However there is no such method for selection event. Is there any work around to stop the propagation of the selection event. Any help is much appreciated. Thanks in advance. -- 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: Preventing selection event propagation
I have done a workaround in the BeforeSelectionEvent . I'm cancelling the event at the start of the event and then reselecting the tab if the user clicks No button in the confirmation window. With this workaround everything seems to be working as expected. Thanks Ashwin and Jens. On Apr 29, 1:51 pm, ALB-PSP-DV1 albpsp...@gmail.com wrote: Thank you for your suggestions. I tried the solution suggested by Jens. I have a confirmation window to be first displayed on tabselection, and only on click of No button in the confirmation window the tabselectionshould be cancelled. Currently both BeforeSelectionEvent and SelectionEvent are invoked since I can performeventcancel() on No button. On Apr 27, 6:02 pm, Jens jens.nehlme...@gmail.com wrote: Tab(Layout)Panel's SelectionEvent is a GwtEvent and not a DomEvent, so its only a logicaleventfired by GWT and not a nativeeventfired by the browser. Thats why you don't have a stopPropagation() / preventDefault() method. But TabPanel and TabLayoutPanel have an addBeforeSelectionHandler() and the BeforeSelectionEvent contains a cancel() method which should cancel the upcomingselection. This should help you to solve your problem. -- J. Am Freitag, 27. April 2012 13:45:19 UTC+2 schrieb ALB-PSP-DV1: Our application has two tabs. On selecting the tabs we have to display a confirmation window(dialog box). Depending on whether user clicks Yes or No button in the confirmation window, the tabselection eventshould proceed or stop. I know we haveevent.stopPropagation() method for clickevent. However there is no such method forselectionevent. Is there any work around to stop the propagation of theselection event. Any help is much appreciated. Thanks in advance. -- 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: Preventing selection event propagation
I have done a workaround in the BeforeSelectionEvent . I'm cancelling the event at the start of the onBeforeSelection() and then reselecting the same tab if the user clicks Yes button in the confirmation window. With this workaround everything seems to be working as expected. Thanks Ashwin and Jens. On Apr 29, 1:51 pm, ALB-PSP-DV1 albpsp...@gmail.com wrote: Thank you for your suggestions. I tried the solution suggested by Jens. I have a confirmation window to be first displayed on tabselection, and only on click of No button in the confirmation window the tabselectionshould be cancelled. Currently both BeforeSelectionEvent and SelectionEvent are invoked since I can performeventcancel() on No button. On Apr 27, 6:02 pm, Jens jens.nehlme...@gmail.com wrote: Tab(Layout)Panel's SelectionEvent is a GwtEvent and not a DomEvent, so its only a logicaleventfired by GWT and not a nativeeventfired by the browser. Thats why you don't have a stopPropagation() / preventDefault() method. But TabPanel and TabLayoutPanel have an addBeforeSelectionHandler() and the BeforeSelectionEvent contains a cancel() method which should cancel the upcomingselection. This should help you to solve your problem. -- J. Am Freitag, 27. April 2012 13:45:19 UTC+2 schrieb ALB-PSP-DV1: Our application has two tabs. On selecting the tabs we have to display a confirmation window(dialog box). Depending on whether user clicks Yes or No button in the confirmation window, the tabselection eventshould proceed or stop. I know we haveevent.stopPropagation() method for clickevent. However there is no such method forselectionevent. Is there any work around to stop the propagation of theselection event. Any help is much appreciated. Thanks in advance. -- 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.
Preventing selection event propagation
Our application has two tabs. On selecting the tabs we have to display a confirmation window(dialog box). Depending on whether user clicks Yes or No button in the confirmation window, the tab selection event should proceed or stop. I know we have event.stopPropagation() method for click event. However there is no such method for selection event. Is there any work around to stop the propagation of the selection event. Any help is much appreciated. Thanks in advance. -- 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: TabLayoutPanel SelectionHandler invoked multiple times
That was exactly the problem. I had put it inside a function which was invoked every time a tab is created. Due to this, selection handler was getting added multiple times.I moved it to the constructor and now it is invoked just once. Thanks a lot for the guidance. On Dec 29, 7:25 am, Patrick Tucker tucker...@gmail.com wrote: That Is how you added the handler, I'm wondering where. If you are adding it in the constructor, onLoad(), ... If you are adding it in onLoad or some function that is calledmultipletime, that will explain why it is firingmultipletimes. Add a print statement before the add and check the output. On Dec 28, 1:08 am, ALB-PSP-DV1 albpsp...@gmail.com wrote: I'm adding the selection handler to theTabLayoutPanel. fareDisplayPanel.addSelectionHandler(newSelectionHandlerInteger() { } On Dec 28, 8:56 am, Patrick Tucker tucker...@gmail.com wrote: Where are you adding theSelectionHandler? On Dec 27, 7:47 am, ALB-PSP-DV1 albpsp...@gmail.com wrote: Hi, I have aTabLayoutPanel with 3 tabs. I have added a selection handler to it to change the color of the selected/unselected tabs. However theselectionHandlerseems to beinvoked3timesinstead of once when I select a tab. i.e.SelectionHandlerinvocation = Total number of tabs in TabLayoutPanel @UiField TabLayoutPanelfareDisplayPanel; fareDisplayPanel.addSelectionHandler(newSelectionHandlerInteger() { @Override public void onSelection(final SelectionEventInteger event) { -- code for styling selected/unselected tabs-- } }); Can someone please point out the mistake that I'm doing. Thanks in advance. -- 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.
TabLayoutPanel SelectionHandler invoked multiple times
Hi, I have a TabLayoutPanel with 3 tabs. I have added a selection handler to it to change the color of the selected/unselected tabs. However the selectionHandler seems to be invoked 3 times instead of once when I select a tab. i.e. SelectionHandler invocation = Total number of tabs in TabLayoutPanel @UiField TabLayoutPanel fareDisplayPanel; fareDisplayPanel.addSelectionHandler(new SelectionHandlerInteger() { @Override public void onSelection(final SelectionEventInteger event) { -- code for styling selected/unselected tabs-- } }); Can someone please point out the mistake that I'm doing. Thanks in advance. -- 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: TabLayoutPanel SelectionHandler invoked multiple times
I'm adding the selection handler to the TabLayoutPanel. fareDisplayPanel.addSelectionHandler(new SelectionHandlerInteger() { } On Dec 28, 8:56 am, Patrick Tucker tucker...@gmail.com wrote: Where are you adding theSelectionHandler? On Dec 27, 7:47 am, ALB-PSP-DV1 albpsp...@gmail.com wrote: Hi, I have aTabLayoutPanel with 3 tabs. I have added a selection handler to it to change the color of the selected/unselected tabs. However theselectionHandlerseems to beinvoked3timesinstead of once when I select a tab. i.e.SelectionHandlerinvocation = Total number of tabs in TabLayoutPanel @UiField TabLayoutPanelfareDisplayPanel; fareDisplayPanel.addSelectionHandler(newSelectionHandlerInteger() { @Override public void onSelection(final SelectionEventInteger event) { -- code for styling selected/unselected tabs-- } }); Can someone please point out the mistake that I'm doing. Thanks in advance. -- 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.
VerticalPanel with Celltable cell.
I have a requirement to display a celltable in the below manner __ | S.no |Data | -- |1|Data1 (image) | | |Data2 (image) | | |Data3 (image) | | |Data4 (image) | -- |2|Data5 (image) | | |Data6 (image) | -- |3|Data7 (image) | -- |4|Data8 (image) | -- I can use TextCell for the first column(S.no). For the second column I thought of using a verticalPanel which contains multiple horizontalPanel and each horizontalPanel consists of a text and an image. However I'm not able to find any component(like TextCell) for verticalPanel or horizontalPanel. Can we add directly a verticalPanel within celltable? Or Is there any other approach for the display of second column(Data)? -- 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: Disabling certain dates in datepicker failing
Thank you the solution worked. It disables the date in the datepicker. However the user can still enter the date manually in textbox. I handled it by displaying a error message conditionally on addValueChangeHandler. -- 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.
Disabling certain dates in datepicker failing
I'm new to GWT. I'm using GWT 2.1.1. I have requirement to disable certain dates in the datepicker (disable dates before 15Aug2010 and after 15Aug2011). The dates are however not disabled in datepicker, the user is able to select 16Aug2011, 17Aug2011 etc for the first time. Only after selecting this date they are disabled. Kindly let me know the mistake I'm doing. Code: class CustomDateFormat extends DateBox.DefaultFormat { public CustomDateFormat(DateTimeFormat dateTimeFormat){ super(dateTimeFormat); } @Override public Date parse(final DateBox dateBox, final String dateText, boolean reportError) { Date date = null; try { if (dateText.length() 0) { date = getDateTimeFormat().parse(dateText); } } catch (IllegalArgumentException exception) { try { date = new Date(dateText); } catch (IllegalArgumentException e) { if (reportError) { dateBox.addStyleName(dateBoxFormatError); } } } final Date selDate = date; dateBox.getDatePicker().addShowRangeHandlerAndFire(new ShowRangeHandlerDate() { @Override public void onShowRange(ShowRangeEventDate event) { if (selDate != null){ Date minDate = getDateTimeFormat().parseStrict(15Aug2010); Date maxDate = getDateTimeFormat().parseStrict(15Aug2011); if (selDate .before(minDate) || selDate .after(maxDate)) { dateBox.getDatePicker().setTransientEnabledOnDates(false,date); } } } }); return date; } } //set the format to be used by date picker dateBox.setFormat(new CustomDateFormat(DateTimeFormat.getFormat(ddMMMyy))); -- 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.
How to make DateBox as mandatory?
Hi, I am using GWT 2.1.1 . I hava a requirement using Datebox with popup datepicker. I want to make that field as mandatory. ie I cannot submit with empty value. However, if i validate on submit, If it is null, i observed that the value is set to previous selection. My code as as follows final DateBox dateBox = new DateBox(); dateBox.setValue(new Date()); dateBox.setFormat(new DateBox.DefaultFormat(DateTimeFormat.getFormat(ddMMMyy))); Can anyone help me out on this issue? Thanks in advance. Regards, Raji -- 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.
DateBox : Null value not identified
I have to do mandatory check for a date fieldWhen the user doesn't any date in the datebox input Code: final DateBox dateBox = new DateBox(); dateBox.setValue(new Date()); dateBox.setFormat(new DateBox.DefaultFormat(DateTimeFormat.getFormat(ddMMMyy))); //capture the change event of date picker dateBox.addValueChangeHandler(new ValueChangeHandlerDate() { @Override public void onValueChange(final ValueChangeEventDate event) { if (event.getValue() == null) { Window.alert(Date cannot be null); validationFailed = true; } } }); -- 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: DateBox : Null value not identified
Sorry I submitted the incomplete query by mistake. Here's my question: I have to do mandatory check for a date field when the user doesn't enter any date in the datebox input, however I'm always getting the last set value for the date field instead of null when user doesn't enter any data. Kindly help. My code: final DateBox dateBox = new DateBox(); dateBox.setValue(new Date()); dateBox.setFormat(new DateBox.DefaultFormat(DateTimeFormat.getFormat(ddMMMyy))); //capture the change event of date picker dateBox.addValueChangeHandler(new ValueChangeHandlerDate() { @Override public void onValueChange(final ValueChangeEventDate event) { if (event.getValue() == null) { Window.alert(Date cannot be null); } } } Window.alert(Date : +dateBox.getValue() ); -- 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.
Any component like SplitLayoutPanel with percentage support
I'm new to GWT. I have used SplitLayoutPanel to create draggable splitter between child widgets. However since this component supports only px, it is not serving my purpose. I need the divided regions and child widgets to resize to any browser dimensions onload as well as on window resize. Is there any component like SplitLayoutPanel which has draggable splitter concept along with size in %. (or) Is there any way to dynamically set the size of SplitLayoutPanel onload and on window resize. Thanks in advance. -- 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.