Yes that is true ,I found this point also, If i want to write tapestry core
component,How to do??

use
@component(parameters={"id=literal:splitPage"})
private Actionlink link1;

getter /setter^^

then I didn't know how to use link1?? how to nest <img src=""/> into it ?



2007/9/10, Davor Hrg <[EMAIL PROTECTED]>:
>
> 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