Well, the question needs to be asked.  Why exactly do you *have* to do all
the output in Java if you're rendering HTML?


-----Original Message-----
From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of
Andreas Bulling
Sent: Sunday, April 09, 2006 11:41 AM
To: Tapestry users
Subject: component-writing question

Hi folks,

my questions don't end... ;-)

I'm rewriting a component which formerly used a
html template but I need to do all output in Java,
now.

In the template there was something like:

<span jwcid="@DirectLink" listener="ognl:listeners.tabClicked"
parameters="ognl:tab.id">
   <span jwcid="@Insert" value="ognl:tab.title"/>
</span>

How has the corresponding Java code to look like if I have
a AbstractComponent derived class?

I started with

@Component(type = "DirectLink", bindings = {
        "listener=ognl:listeners.tabClicked", "value=ognl:tab.id" })
public abstract DirectLink getTabLink();

to create a DirectLink component. But how can I "inject" the tab
title and do I only have to call getTabLink().renderBody(...)
in the end?

Thanks for your answers!
Sincerly,
  Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to