The documentation says you have to annotate the page class with 
@Import(stack='jquery')

Regards
Taha 

On Jul 28, 2011, at 8:54 PM, dick_hu <dickan...@gmail.com> wrote:

> when I use the ioko-tapestry-commons's mixins Overlay there is exception
> occur
> 
> Exception invoking function Tapestry.Initializer.overlayMixinLoad with
> parameters [{"isForm": "false", "exposeColour": "#333333", "overlayId":
> "overlay", "containerId": "test"}]: ReferenceError: jQuery is not defined
> 
> My code is 
> 
> package uk.co.ioko.tapestry.mixins.pages;
> 
> import org.apache.tapestry5.Block;
> import org.apache.tapestry5.ioc.annotations.Inject;
> 
> OverlayTest.java
> public class OverlayTest {
> 
>    @Inject
>    private Block showBlock;
> 
>    Object onActionFromTest() {
>        return showBlock;
>    }
> }
> 
> OverlayTest.tml
> &lt;!DOCTYPE HTML PUBLIC
>  &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
>  &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>    <body>
>        <t:actionlink t:id="test"
>            t:mixins="ioko/overlay"
>            zone="myZone"
>            overlay.zone="myZone">
>            adfsdf
>        </t:actionlink>
>        <t:zone t:id="myZone">
>            <t:block t:id="showBlock">
>                1212121212sdfsf
>            </t:block>
>        </t:zone>
>    </body>
> </html>
> 
> 
> below is the html in brower
> 
> &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
> &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<html
> xmlns="http://www.w3.org/1999/xhtml";><head><link type="text/css"
> rel="stylesheet"
> href="/ioko/assets/c09776c4686bb196/tapestry/default.css"></link><link
> type="text/css" rel="stylesheet"
> href="/ioko/assets/c09776c4686bb196/tapestry/tapestry-console.css"></link><link
> type="text/css" rel="stylesheet"
> href="/ioko/assets/c09776c4686bb196/ioko/mixins/overlay.css"></link><meta
> content="Apache Tapestry Framework (version UNKNOWN)"
> name="generator"></meta></head><body> /ioko/overlay.test 
> adfsdf
> <div id="overlay" class="overlay"><div id="myZone"></div></div><div
> class="t-zone" id="myZone"></div></body></html>
> 
> Any one can help me
> Thanks a lot
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/ioko-tapestry-commons-problem-tp4643132p4643132.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to