Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note the use of remote div is now through the dojo plugin taglib sx. Other ui tags are also no longer available through the /struts-tags taglib but only through the /struts-dojo-tags taglib: datetimepicker and autocompleter.

User-defined converter (subclassing StrutsTypeConverter) will no longer be needed when using datetimepicker:

Problem Symptom: You needed to implement a custom implementation of StrutsTypeConverter e.g. StringToDateConverter to be able to parse and convert to Date the String posted from a datetimepicker control into the action. In version 2.0.x datetimepicker was posting a String formatted as specified in the "displayFormat" field e.g.

Code Block

<%@ taglib prefix="s" uri="/struts-tags"%>

<s:datetimepicker label="Begin Date" name="beginDate" displayFormat="yyyy.MM.dd">

In version 2.1.x datetimepicker will post a String Date in RFC 3339 format, you can define your setter to receive a Date directly e.g.

Code Block

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<sx:datetimepicker label="Begin Date" name="beginDate" displayFormat="yyyy.MM.dd">

Need to disable struts.devMode. This is not really a migration issue but rather seems a bug in 2.1.x:

...