On Tue, 17 May 2011 11:16:31 -0300, TG <tapestry...@hotmail.com> wrote:

Hi,

Hi!

This is a newbie question so please bear with me :) I used beanedit to
display HTML. So far I like it, but a column that contains hyperlink, the
values does not "become" a hyperlink that I can click to launch an external site.

Local solution: override the property rendering, supposing your URL property is named "url":

<div t:type="BeanEditForm" t:object="object">
        <p:url>
                <a href="${object.url}">Link</a>
        </p:url>
</div>

Global solution: implement a DataTypeAnalyzer and corresponding edition and viewing blocks. The BeanEditForm page in the documentation has one example.

How do I make the values becoming a clickable hyperlink in Tapestry 5?

Just use an <a> element. Tapestry 5 isn't just BeanEditForm.

Is there any easy way? One line code is the best.

BeanEditForm and BeanEditor are meant to be used to get something working quickly, not to be the end-all solution.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to