Re: Datepicker don't closes after picking same date GWT

2017-11-13 Thread Ameen Malhans
There is no error in browser console

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Datepicker don't closes after picking same date GWT

2017-11-13 Thread Ameen Malhans
no errors in browser console


On Monday, November 13, 2017 at 12:24:43 PM UTC-5, Jens wrote:
>
> Any errors on the browser console?
>
> private native void attachInternal() /*-{ 
>   $wnd.jQuery("div.datePickerDay.datePickerDayIsValue").on( "Click", 
> function() {
> *this.*
> @com.xi.admin.client.common.ui.text.DateFormatter::uiDatePickerPopup.hide()();
> console.log("OK");
>   });
> }-*/;
>
> In your JSNI method "this" is probably not of type DateFormatter but the 
> div element that has been clicked on. Try
>
> private native void attachInternal() /*-{ 
>   var that = this;
>   $wnd.jQuery("div.datePickerDay.datePickerDayIsValue").on( "Click", 
> function() {
> 
> th...@com.xi.admin.client.common.ui.text.DateFormatter::uiDatePickerPopup.hide()();
> console.log("OK");
>   });
> }-*/;
>
>
> -- 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 from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Datepicker don't closes after picking same date GWT

2017-11-13 Thread Ameen Malhans


down votefavorite 


I am calling java from java-script to close the date picker pop Up using 
following method.


 private native void attachInternal() /*-{+  

$wnd.jQuery("div.datePickerDay.datePickerDayIsValue").on( "Click", 
function() {
   
th...@com.xi.admin.client.common.ui.text.DateFormatter::uiDatePickerPopup.hide()();

  console.log("OK");
});
}-*/;


this method is again called in the method attached.

The problem is that date picker doesn't closes after selecting same date 
which is already selected, but on value change it closes.I want to close it 
even after selecting same date as earlier. The attach method is following

 public void attach() {

attachInternal();

datePickerValueChangeRegistration = uiDatePicker.addValueChangeHandler(new 
ValueChangeHandler() {
@Override
public void onValueChange(ValueChangeEvent event) {
uiDatePickerPopup.hide();
uiTextDate.setErrorVisible(false);

uiTextDate.setTextNoFormat(Moment.moment(event.getValue()).format("L"));
}
});

textDateClickRegistration = uiTextDate.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
//if (uiTextDate.isReadOnly())
//  return;
if (!uiTextDate.isEnabled())
return;
showPopup();

}
});




-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Element may only contain a single child element, but found (:3)

2017-10-30 Thread Ameen Malhans
http://dl.google.com/gwt/DTD/xhtml.ent;>






.title {
padding-top: 30px;
padding-bottom: 20px;
padding-left: 80px;
padding-right: 80px;
color: #55;
text-align: center;
font-weight: 700;
font-size: 30px;
font-family: 'Titillium Web', sans-serif;
padding-bottom: 20px;
}
.scroll {
max-height: 280px;
overflow-x: hidden;
overflow-y: auto;
}
.options {
width: 100%;
color: #55;
text-align: center;
font-weight: 400;
font-size: 24px;
font-family: 'Titillium Web', sans-serif;
margin-left: auto;
margin-right: auto;
padding-left: 40px;
padding-right: 40px;
padding-bottom: 20px;
}
.options li {
text-align: left;
}
.options>div {
text-align: center;
padding-bottom: 40px;
}
.option-divider {
position: relative;
display: inline-block;
height: 20px;
top: 15px;
border-left: 1px solid rgba(0, 0, 0, 0.15);
}
.image {
width: 60px;
height: 60px;
margin: 10px;
margin-right: 20px;
}
.dialog {
width: 620px;
height: 300px;
min-height: 300px;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
}
.content {
padding: 0px !important;
}





Welcome Tutorial



Getting Started



Appointment Management



Client Mangement



Staff Management



Integration Setup



Technical Setup




Get Help Online



Send Feedback



 



I while running this got following error

Compile with -strict or with -logLevel set to TRACE or DEBUG to see all 
errors.
 Computing all possible rebind results for 
'com.booxi.client.presenters.main.common.dialog.HelpDialog.HelpDialogViewUiBinder'
Rebinding 
com.booxi.client.presenters.main.common.dialog.HelpDialog.HelpDialogViewUiBinder
   Invoking generator 
com.google.gwt.uibinder.rebind.UiBinderGenerator
  [ERROR] Element may only contain a single child element, 
but found  and .:  (:3)
 [ERROR] Errors in 
'com/booxi/client/presenters/main/common/dialog/HelpDialog.java'
[ERROR] Line 45: Failed to resolve 
'com.booxi.client.presenters.main.common.dialog.HelpDialog.HelpDialogViewUiBinder'
 
via deferred binding
 [WARN] For the following type(s), generated source was never 
committed (did you forget to call commit()?)
[WARN] 
com.booxi.client.presenters.main.common.dialog.HelpDialog_HelpDialogViewUiBinderImpl
 Unification traversed 465 fields and methods and 286 types. 5 are 
considered part of the current module and 5 had all of their fields and 
methods traversed.
 [WARN] Some stale types 
([com.booxi.client.presenters.main.common.dialog.HelpDialog_HelpDialogViewUiBinderImpl_GenBundle_en_InlineClientBundleGenerator$styleInitializer,
 
com.booxi.client.presenters.main.common.dialog.HelpDialog_HelpDialogViewUiBinderImpl$Widgets,
 
com.booxi.client.presenters.main.common.dialog.HelpDialog_HelpDialogViewUiBinderImpl_GenBundle_en_InlineClientBundleGenerator$1,
 
com.booxi.client.presenters.main.common.dialog.HelpDialog_HelpDialogViewUiBinderImpl_GenCss_style,
 
com.booxi.client.presenters.main.common.dialog.HelpDialog_HelpDialogViewUiBinderImpl_GenBundle,
 
com.booxi.client.presenters.main.common.dialog.HelpDialog_HelpDialogViewUiBinderImpl,
 
com.booxi.client.presenters.main.common.dialog.HelpDialog_HelpDialogViewUiBinderImpl_GenBundle_en_InlineClientBundleGenerator])
 
were not reprocessed as was expected. This is either a compiler bug or a 
Generator has legitimately stopped creating these types.
  [ERROR] Compiler returned false
  [WARN] recompile failed
  [WARN] continuing to serve previous version


why it says  Element may only contain a single child element, but found 
 and .:  (:3)?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.