Thanks for the reply. I have changed the body tag from the html <body> to
the tapestry Body component. But I still haven't got it fixed.
This is what I have now:
In Home.htm I have included a component of type AlertsTable which I have
defined.
<span jwcid="shell">
<body jwcid="@Body">
<span jwcid="alerts" />
</body>
</span>
Home.page
<component id="alerts" type="AlertsTable" />
In AlertsTable I have a form table. This table has a column for the popup
linkas as follows:
AlertsTable.html
<td>
<a jwcid="popupLink">Call Details</a>
</td>
AlertsTable.page
<component id="popupLink" type="contrib:PopupLink">
<static-binding name="href"
value="http://localhost:8080/TryTableAgain/app?service=page/CDRPopup" />
</component>
Now, the exception that I get is:
org.apache.tapestry.ApplicationRuntimeException
Unable to parse script
classpath:/org/apache/tapestry/contrib/popup/popup.script.
component:
[EMAIL PROTECTED]/alerts.popupLink.popoutScript]
location: classpath:/org/apache/tapestry/contrib/popup/PopupLink.jwc, line
28, column 34
org.apache.tapestry.ApplicationRuntimeException
Unable to parse script
classpath:/org/apache/tapestry/contrib/popup/popup.script.
org.apache.tapestry.util.xml.DocumentParseException
Unable to parse jar:file:/C:/Program Files/Apache Software
Foundation/Tomcat
5.5/shared/lib/tapestry-contrib-3.0.3.jar!/org/apache/tapestry/contrib/pop
up/popup.script:
URI was not reported to parser for entity [document] document
Location: classpath:/org/apache/tapestry/contrib/popup/popup.script
org.xml.sax.SAXParseException
URI was not reported to parser for entity [document]
Any idea whatz the issue now?
Thanks And Regards,
Shubhra
Shing Hing Man <[EMAIL PROTECTED]>
05/30/2005 03:47 PM
Please respond to "Tapestry users"
To: Tapestry users <[email protected]>
cc:
Subject: Re: PopupLink in contrib:Table
> Script components must be contained within a Body
> component.
> component:
>
As the error message points out, instead of using
the usual html <body>, you must use the tapestry body
component.
http://jakarta.apache.org/tapestry/doc/ComponentReference/Body.html
Shing
--- [EMAIL PROTECTED] wrote:
> Hi everybody..
>
> I'm building a contrib:Table component. In one of
> the columns, I need to
> embed a link which would popup another window to
> give some further details
> pertaining to that row. I know of the
> contrib:PopupLink that could be used here.
>
> I have the .html file having:
> <td><span jwcid="popupLink"/></td>
>
> and the corresponding .page file:
> <component id="popupLink" type="contrib:PopupLink">
> <binding name="href" expression="CDRPopup.html"
> />
> </component>
>
> But I get an ApplicationRuntimeException saying:
>
> Script components must be contained within a Body
> component.
> component:
>
[EMAIL PROTECTED]/alerts.popupLink.popoutScript]
>
>
>
> Guess I have missed out some thing here.. Could
> someone help me out
> please?
>
> Thanks And Regards,
> Shubhra
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]