Ok, got it solved. Apparantly the render implementation was not being
instantiated before being returned to the Shell component. So I had to
do this in the template file:
<property-specification name="renderDelegate"
type="RenderImplementation" persistent="yes">
new RenderImplementation()
</property-specification>
Norbert Sándor wrote:
You misunderstood me if you think that I answered your message for fun.
I wanted to help, but your mail contained too few info (at least for me)
----- Original Message ----- From: "Leo Sakhvoruk"
<[EMAIL PROTECTED]>
To: "Norbert Sándor" <[EMAIL PROTECTED]>
Sent: Thursday, June 23, 2005 11:32 PM
Subject: Re: Shell delegate property issue.
Not possible to implement a method in an interface?!?!?!
Norbert Sándor wrote:
Sorry, I don't understand this. (I suspect this is a mispelling, it
is not possible to implement a method in an interface.)
I wrote the example below because it should work, and you can test
it why your implementation ignores the delegate.
If you attach some source code, maybe I (or someone else) may help
you more...
Br,
Norbi
----- Original Message ----- From: "Leo Sakhvoruk"
<[EMAIL PROTECTED]>
To: "Tapestry users" <tapestry-user@jakarta.apache.org>
Sent: Thursday, June 23, 2005 11:06 PM
Subject: Re: Shell delegate property issue.
Why can't I just implement the method inside the interface?
Leo
Norbert Sándor wrote:
Maybe try something like:
<span jwcid="@Shell" delegate="ognl:metaWriter" .....
public IRender getMetaWriter()
{
return new IRender()
{
public void render(.....)
{
write meta tag using the markup writer
}
}
}
Br,
Norbi
----- Original Message ----- From: "Leo Sakhvoruk"
<[EMAIL PROTECTED]>
To: "Tapestry users" <tapestry-user@jakarta.apache.org>
Sent: Thursday, June 23, 2005 10:35 PM
Subject: Shell delegate property issue.
Hi everyone,
I must be doing something wrong here. I need to add a meta tag to
be output on the pages that use the Shell component. Well I
created a class that implements the IRender iterface (the render
method). Inside the method I just do writer.beginEmpty("meta") to
start the tag and then add elements to it. Then I bound that
class as a delegate of the Shell component. The delegate's render
method never seems to get invoked.
What am I doing wrong?
Thanks.
Leo
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]