DualListField :: StackOverflowError
I have one DualListField<BeanModel> Object in my WizardCard.
I get always the following error: java.lang.StackOverflowError
I have tried:
Quote:
You can extend DualFieldList and override initDD for that. You need to set the Operation to COPY instead of MOVE for the droptargets.
http://extjs.com/forum/showthread.php?t=67865
Code:
public class NNNN extends DualListField<BeanModel>{
public NNNN() {
super();
}
@Override
protected void initDND() {
if (getDNDGroup() == null) {
setDNDGroup(getId() + "-group");
}
ListViewDragSource source1 = new ListViewDragSource(fromField.getListView());
ListViewDragSource source2 = new ListViewDragSource(toField.getListView());
source1.setGroup(getDNDGroup());
source2.setGroup(getDNDGroup());
ListViewDropTarget target1 = new ListViewDropTarget(fromField.getListView());
target1.setAutoSelect(true);
ListViewDropTarget target2 = new ListViewDropTarget(toField.getListView());
target2.setAutoSelect(true);
target1.setGroup(getDNDGroup());
target1.setOperation(Operation.COPY);
target2.setGroup(getDNDGroup());
target2.setOperation(Operation.COPY);
if (mode == Mode.INSERT) {
target1.setFeedback(Feedback.INSERT);
target2.setFeedback(Feedback.INSERT);
}
}
}
did not work, the problem is still.
The Problem is into FormPanel.class:
Code:
/**
* Returns the form's valid state by querying all child fields.
*
* @param preventMark true for silent validation (no invalid event and field is not
* marked invalid)
*
* @return true if all fields are valid
*/
public boolean isValid(boolean preventMark) {
boolean valid = true;
for (Field<Object> f : getFields()) {
if (!f.isValid(preventMark)) {
valid = false;
}
}
return valid;
}
how can I solve it? :((
what can I do?
Thanks