Dear All,
We started to work on the accordion based GUI part of our application.
Followed the Tutorial, did all the modifications. However, when the
individual panels are loaded, the error message below appears:
javax.script.ScriptException:
sun.org.mozilla.javascript.internal.EvaluatorException: erreur de syntaxe
(<Unknown source>#3) in <Unknown source> at line number 3
accordion.selectedIndex += 1;
}
Here is the code of the PushButton used to advance to the next panel:
<PushButton wtkx:id="nextButton" buttonData="Next"
styles="{minimumAspectRatio:3}">
<buttonPressListeners>
<wtkx:script>
importPackage(org.apache.pivot.wtk);
function buttonPressed(button) {
<!--- var accordion =
button.getAncestor("org.apache.pivot.wtk.Accordion"); -->
accordion.selectedIndex += 1;
}
</wtkx:script>
</buttonPressListeners>
</PushButton>
If the variable declaration line is included, another error message appears.
I uploaded the complete code of one of the panel to show the structure.
http://apache-pivot-users.399431.n3.nabble.com/file/n2010365/cstDelegatorDialogSummary.wtkx
cstDelegatorDialogSummary.wtkx
Can anyone help out what can be the problem?
Thanks for the help,
MSafiri
--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/Script-Problem-Accordion-tp1966316p2010365.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.