We've made a change which should address this issue. Please try the next nightly build dated March 27 or above
Regards
Isomorphic Software
Announcement
Collapse
No announcement yet.
X
-
We see the problem and will update here when we have a solution.
Leave a comment:
-
Retried the same example again using the latest power version and issue remains.
Leave a comment:
-
Please try the most recent available patched build (see smartclient.com/builds). In the future, always try the latest patched build before posting an issue.
Leave a comment:
-
DateRangeItem looses focus on enddate
We have a smartclient power license and have issues with the DateRangeItem object.
We use smartgwt version: com.isomorphic.smartgwt.power.smartgwt-power.6.1-p20180705
When testing the example without using the skins the focus is not lost. Although when using the power skins that are provided in the smartgwt-power.6.1-p20180705 jar file it looses the focus when entering the second digit of the year.
It will loose the focus for example 22/03/2019 when the '0' is entered of 2019.
The example files can be found in attachment.
========================================================================================
gwt.xml
========================================================================================
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.0//EN"
"http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-source/core/src/gwt-module.dtd">
<module rename-to="MySampleApplication">
<inherits name="com.google.gwt.user.User"/>
<inherits name="com.smartgwtpower.SmartGwtPowerNoScript"/>
<inherits name="com.smartgwtpower.SmartGwtPowerNoTheme"/>
<inherits name="com.smartclient.theme.tahoe.Tahoe"/>
<inherits name="com.smartgwt.Drawing"/>
<inherits name="com.smartgwt.Charts"/>
<inherits name="com.smartgwtee.tools.Tools"/>
<inherits name="com.smartgwt.SyntaxHiliter"/>
<!-- Specify the app entry point class. -->
<entry-point class='com.mySampleApplication.client.MySampleApplication'/>
</module>
========================================================================================
java client code
========================================================================================
public void onModuleLoad() {
// Assume that the host HTML has elements defined whose
// IDs are "slot1", "slot2". In a real app, you probably would not want
// to hard-code IDs. Instead, you could, for example, search for all
// elements with a particular CSS class and replace them with widgets.
//
RootPanel.get("slot1").add(addTestElement());
}
public VLayout addTestElement() {
VLayout layout = new VLayout(8);
layout.setHeight100();
layout.setWidth100();
layout.setMembersMargin(10);
final DateRangeItem rangeItem2 = new DateRangeItem("independence2");
rangeItem2.setWidth("*");
rangeItem2.setShowTitle(false);
rangeItem2.setAllowRelativeDates(true);
rangeItem2.setValidateOnChange(Boolean.FALSE);
rangeItem2.setValidateCriteria(Boolean.FALSE);
rangeItem2.setValidateOnExit(Boolean.FALSE);
DateRange dateRange2 = new DateRange();
dateRange2.setRelativeStartDate(new RelativeDate("-1200m"));
dateRange2.setRelativeEndDate(new RelativeDate("-1000m"));
rangeItem2.setValue(dateRange2);
rangeItem2.setDisplayFormat(DateDisplayFormat.TOEUROPEANSHORTDATETIME);
rangeItem2.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATETIME);
ButtonItem searchButtonItem = new ButtonItem("Filter");
searchButtonItem.setAutoFit(true);
searchButtonItem.addClickHandler(new com.smartgwt.client.widgets.form.fields.events.ClickHandler() {
@Override
public void onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent event) {
Criterion criteria = rangeItem2.getCriterion();
//Log.info("Clicked the search button....");
}
});
DynamicForm form = new DynamicForm();
form.setWidth(500);
form.setTitleOrientation(TitleOrientation.TOP);
form.setItems(rangeItem2, searchButtonItem);
form.setValidateOnChange(Boolean.FALSE);
form.setSuppressValidationErrorCallback(Boolean.TRUE);
form.setValidateOnExit(Boolean.FALSE);
Canvas canvas = new Canvas();
canvas.setWidth100();
canvas.setHeight100();
//Log.info("After Canvas viewpanel");
//Logger logger = Logger.getLogger(MiniDateRangeItemVito.class.getName());
SpacerItem spacerItem = new SpacerItem();
spacerItem.setWidth(100);
spacerItem.setHeight(1);
form.setNumCols(6);
form.setColWidths(75, 100, 50, 100, 10, '*');
form.setWidth100();
form.setWrapItemTitles(false);
layout.setMembers(form);
layout.draw();
return layout;
}
========================================================================================
pom dependencies
========================================================================================
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt</artifactId>
<version>2.8.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.isomorphic.smartgwt.power</groupId>
<artifactId>smartgwt-power</artifactId>
<version>6.1-p20180705</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.8.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
Tags: None
Leave a comment: