Re: ioko-tapestry-commons problem

2011-07-28 Thread dick_hu
I  have try it yet,but it also occur this exception,
I am sad 
@Import(stack="Jquery")
public class OverlayTest {

@Inject
private Block showBlock;

Object onActionFromTest() {
return showBlock;
}
}

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ioko-tapestry-commons-problem-tp4643132p4644780.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



Re: ioko-tapestry-commons problem

2011-07-28 Thread Taha Tapestry
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  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": "#33", "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
> <!DOCTYPE HTML PUBLIC
>  "-//W3C//DTD HTML 4.01 Transitional//EN"
>  "http://www.w3.org/TR/html4/loose.dtd">;
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>
>t:mixins="ioko/overlay"
>zone="myZone"
>overlay.zone="myZone">
>adfsdf
>
>
>
>1212121212sdfsf
>
>
>
> 
> 
> 
> below is the html in brower
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">; xmlns="http://www.w3.org/1999/xhtml";> rel="stylesheet"
> href="/ioko/assets/c09776c4686bb196/tapestry/default.css"> type="text/css" rel="stylesheet"
> href="/ioko/assets/c09776c4686bb196/tapestry/tapestry-console.css"> type="text/css" rel="stylesheet"
> href="/ioko/assets/c09776c4686bb196/ioko/mixins/overlay.css"> content="Apache Tapestry Framework (version UNKNOWN)"
> name="generator"> /ioko/overlay.test 
> adfsdf
>  class="t-zone" id="myZone">
> 
> 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



ioko-tapestry-commons problem

2011-07-28 Thread dick_hu
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": "#33", "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
<!DOCTYPE HTML PUBLIC
  "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">;
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>


adfsdf



1212121212sdfsf






below is the html in brower

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">;http://www.w3.org/1999/xhtml";> /ioko/overlay.test 
adfsdf


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