Additional FacesConversionService constructor
Add the inherited constructor allowing a delegate ConversionService to be used Issue: SWF-1562
This commit is contained in:
@@ -14,19 +14,19 @@ package org.springframework.faces.model.converter;
|
||||
|
||||
import javax.faces.model.DataModel;
|
||||
|
||||
import org.springframework.binding.convert.ConversionService;
|
||||
import org.springframework.binding.convert.service.DefaultConversionService;
|
||||
import org.springframework.core.convert.ConversionService;
|
||||
import org.springframework.faces.model.OneSelectionTrackingListDataModel;
|
||||
|
||||
/**
|
||||
* Convenient {@link ConversionService} implementation for JSF that composes JSF-specific converters with the standard
|
||||
* Web Flow converters.
|
||||
*
|
||||
* Convenient {@link org.springframework.binding.convert.ConversionService} implementation for JSF that composes
|
||||
* JSF-specific converters with the standard Web Flow converters.
|
||||
*
|
||||
* <p>
|
||||
* In addition to the standard Web Flow conversion, this service provide conversion from a list into a
|
||||
* {@link OneSelectionTrackingListDataModel} using a "dataModel" alias for the type.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @author Jeremy Grelle
|
||||
*/
|
||||
public class FacesConversionService extends DefaultConversionService {
|
||||
@@ -35,6 +35,10 @@ public class FacesConversionService extends DefaultConversionService {
|
||||
addFacesConverters();
|
||||
}
|
||||
|
||||
public FacesConversionService(ConversionService delegateConversionService) {
|
||||
super(delegateConversionService);
|
||||
}
|
||||
|
||||
protected void addFacesConverters() {
|
||||
addConverter(new DataModelConverter());
|
||||
addAlias("dataModel", DataModel.class);
|
||||
|
||||
Reference in New Issue
Block a user