473,405 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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?
Sep 30 '08 #1
1 2150
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.tapestry.parse.TemplateParseException
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.programmer, 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.toString();
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
Sep 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Nobody | last post by:
This is sort of my first attempt at writing a template container class, just wanted some feedback if everything looks kosher or if there can be any improvements. This is a template class for a...
7
by: Mikhail N. Kupchik | last post by:
Hi All. I have a question regarding Herb Sutter's idiom of implementation of operator= via nonthrowing swap() member function, to guarantee strict exception safety. The idea of the idiom is...
1
by: Aquila Deus | last post by:
Hi all! Is there any tapestry-like page framework built on ASP.NET? I want to be able to write simple page like this: <html> ... <body> Hello, <span insert="User.Name">TestName</span>!
5
by: mast2as | last post by:
Hi guys Here's the class I try to compile (see below). By itself when I have a test.cc file for example that creates an object which is an instance of the class SpectralProfile, it compiles...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.