I have a form :--public class Schedule{public Long desiredInstances;
public Long desiredCapacity;
public TimeParam startTime;
public TimeParam stopTime;}TimeParam is another class:public class TimeParam {
public List<String> minute = new ArrayList<String>();
public List<String> hour = new ArrayList<String>();
public List<String> month = new ArrayList<String>();
public String expression;
}'Schedule' is a play form which accepts the values in entered in the form. When the other values are null, they are not the part of form data while sending. While if TimeParam.expression is null, then it is sending it in the data as:data: {"desiredInstances" :10,"startTime": {"minute": ["55"], "hour": ["5"], "month": ["*"], "expression": null },"stopTime": {"minute": ["55"], "hour": ["5"], "month": ["*"], "expression": null }
}
I am not getting why it is happening. All the my validation checks are in Schedule class.
Please help me to find the solution.
Thanks
You received this message because you are subscribed to the Google Groups "Play framework dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.