Yes I have a single object and here it is
Code:
package model;
import java.util.ArrayList;
import java.util.List;
public class DataTypeEnumerated extends DataType
{
private static final long serialVersionUID = 1L;
private List dataTypeEnumeratedValues = new ArrayList();
public DataTypeEnumerated()
{
super();
}
public void setDataTypeEnumeratedValues(List dataTypeEnumeratedValues)
{
this.dataTypeEnumeratedValues = dataTypeEnumeratedValues;
}
public List getDataTypeEnumeratedValues()
{
return dataTypeEnumeratedValues;
}
}
But how can i access it from 2 controllers? The only way I can think of is HttpSession. On the first form there would be a button 'add value' which will submit first form with action='addValue'. Then, in the DataTypeEnumeratedFormController in processFormSubmission for that action value i would do this:
Code:
return new ModelAndView("dataTypeEnumeratedValueForm","dataTypeEnumeratedValue",value);
And in second controller DataTypeEnumeratedValueFormController in form backing object I would get value from session and use it as a command object.
Does that sound possible?
I'm running out of ideas