Tapestry template exception



Im working on an application that uses Tapestry and DOJO.
I added some javascript logic to existing HTML and it fails to run
when deployed, javascript executes fine otherwise.
org.apache.tapestry.parse.TemplateParseException
Tag <curTime)){> on line 127 contains more than one 'days' attribute.
context:/WEB-INF/html/Schedule.html, line 127
122 var startMonth = start.substring(0,2);
123 var endMonth = end.substring(0,2);
124 var startDate = startMonth + startDay;
125 var endDate = endMonth +endDay;
126 if(days < 10){
127 days = '0'+days.toString();
128 }
129 if(scheduleName==""){
130 FailureDialog_show("The following error occurred during the
schedule creation:", "You must specify a schedule name.");
131 return false;
132 } else if((startDay > 0 && endDay > 0 && day != 0) ){
here issue is whenever a var is assigned a value again, it issues
this
exception, if this value is assigned to a new varibale, it works
fine.
Anybody knows why this behaviour happens?
.



Relevant Pages

  • Re: Tepestry Template exception
    ... 122 var startMonth = start.substring; ... 123 var endMonth = end.substring; ... 124 var startDate = startMonth + startDay; ...
    (comp.lang.java.programmer)
  • Re: Tepestry Template exception
    ... when deployed, javascript executes fine otherwise. ... 123 var endMonth = end.substring; ... 124 var startDate = startMonth + startDay; ...
    (comp.lang.java.programmer)
  • Re: Speed up creation of combo box options
    ... var startDate = new Date; ... Anyhow, if the document is re-loaded between each run, the innerHTML method took about 1/3 the time the DOM methods took in Firefox and Safari. ...
    (comp.lang.javascript)
  • Tepestry Template exception
    ... 122 var startMonth = start.substring; ... 123 var endMonth = end.substring; ... 124 var startDate = startMonth + startDay; ...
    (comp.lang.java.programmer)
  • Tapestry Template Exception
    ... 122 var startMonth = start.substring; ... 123 var endMonth = end.substring; ... 124 var startDate = startMonth + startDay; ...
    (comp.lang.java.help)