I belive writer only writes elements
it doesn't handle template syntax
t:id and t:type belong to the template

Davor Hrg

On 9/10/07, Doublel <[EMAIL PROTECTED]> wrote:
>
> I write a custom componnet page ,in beginRender method  I want to get a
> image link ,so the code is :
> writer.element("a",
>                          "t:type","ActionLink"
>                         ,"context",totalPage,"t:id","splitPage");
>                 writer.element("img", "src",this.getLast02());
>                 writer.end();
>                 writer.end();
>
> generate html code is :
> <a t:type='ActionLink'  t:id="splitPage" context=2><img
> src="/T505PJBlog/assets/ImagesPath/last01.gif"></a>
> It is not work.
>
> the correct html code is :
> <a href="/T505PJBlog/default.pages.splitPage/1" id="splitPage">1</a>
>
> Is anybody give me some tips? or I did not understand this page
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html
> need your help;
> thanks in advance.
>
> --
> 得与失都是生活
>

Reply via email to