-
8 May 2009 2:40 PM #41
Would be useful to be able to add cards after the object is created.
Remove would be useful too.Code:public void addCard(WizardCard card) { this.cards.add(card); } public void addCard(int index, WizardCard card) { this.cards.add(index, card); } public void addCards(ArrayList<WizardCard> cards) { this.cards.addall(cards); } public void addCards(int index, ArrayList<WizardCard> cards) { this.cards.addall(index, cards); }
(above is all untested)Code:public void removeCard(int index) { this.cards.remove(index); }
-
19 May 2009 12:39 AM #42
DualListField :: StackOverflowError
DualListField :: StackOverflowError
I have one DualListField<BeanModel> Object in my WizardCard.
I get always the following error: java.lang.StackOverflowError
I have tried:http://extjs.com/forum/showthread.php?t=67865
You can extend DualFieldList and override initDD for that. You need to set the Operation to COPY instead of MOVE for the droptargets.
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:
how can I solve it?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; }
what can I do?
Thanks
-
20 May 2009 2:11 AM #43
GWT is complaining about line 68 when using BaseEvent(). Basically you don't have a default constructor for BaseEvent(), you gotta give it an object.
What could we do to overcome this problem ?
Did anyone else get the same problem ?
-
9 Jun 2009 8:22 AM #44
-
16 Jun 2009 5:37 AM #45
the author of this wizard did not answer to that question for the last 2 month, so do it by yourself, it's pretty easy to fix that.
-
29 Jun 2009 1:58 PM #46
Does the last version works fine in GXT 2.0?

-
28 Oct 2009 8:08 AM #47
Hello,
I tweaked the code so that it works with the latest version of GXT.
http://www.extjs.com/forum/showthread.php?t=83995


Reply With Quote