Tapestry template exception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • [FX] Tarandeep singh

    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.tape stry.parse.Temp lateParseExcept ion
    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.toStri ng();
    128 }
    129 if(scheduleName ==""){
    130 FailureDialog_s how("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?
  • Conrad Lender

    #2
    Re: Tapestry template exception

    On 2008-09-30 11:18, [FX] Tarandeep singh wrote:
    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.tape stry.parse.Temp lateParseExcept ion
    Tag <curTime)){on line 127 contains more than one 'days' attribute.
    context:/WEB-INF/html/Schedule.html, line 127
    First of all, this looks more like a Tapestry related problem, and
    should probably be discussed on their mailing list. Second, if you think
    you *have* to post in more than one newsgroup, it's considered polite to
    at least say so. (the same post appeared in c.l.java.progra mmer, where
    it's already being discussed)
    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.toStri ng();
    128 }
    ...
    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.
    Where did 'days' come from? If you think that assigning to it is a
    problem, you need to show us the relevant passage. The exception also
    mentions a "tag" having two "attributes ", this looks like an error in
    the XML structure. Where's that tag?


    - Conrad

    Comment

    Working...