I think your problem is in the binding. Component parameter bindings
are, I believe, "literal" by default. To force ognl evaluation, change
your binding to:
<binding name="instance" value="ognl:currentInstance"/>
Note that I've also changed the call from a method call to a property
get (which will translate to your getCurrentInstance method of the page
object.
jeff
-----Original Message-----
From: Daniel Kucharski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 27, 2005 1:56 AM
To: 'Tapestry users'
Subject: RE: Method not invoked
Aargh, I still didn't found it. Anyone a clue how to debug this?
-----Oorspronkelijk bericht-----
Van: Daniel Kucharski [mailto:[EMAIL PROTECTED]
Verzonden: zondag 25 december 2005 10:29
Aan: 'Tapestry users'
Onderwerp: RE: Method not invoked
Off course :)
<p><span jwcid="personDetails">personDetail</span></p>
In Home.html
-----Oorspronkelijk bericht-----
Van: Gunna Satria [mailto:[EMAIL PROTECTED]
Verzonden: zondag 25 december 2005 10:26
Aan: Tapestry users
Onderwerp: Re: Method not invoked
Hi,
I am sorry do you already write/use your component in your html?
regards,
Gunna
Daniel Kucharski <[EMAIL PROTECTED]> wrote:
Hello.
I have a problem when invoking a component.
The component specification:
allow-informal-parameters="no"
class="view.components.SimpleInstanceViewer">
My Home page wants to use this component, so i have:
Start page
The Home.getCurrentInstance method should fail because i've added some
malicious code:
/** Retrieve the current instance */
public Instance getCurrentInstance(){
Instance instance = null;
Concept c = instance.getConcept();
Appearantly, it is not invoking this getCurrentInstance() method, as i
would
then have seen an exception coming up. The question is simple, why
doesn't
it invoke this getCurrentInstance() method? And what is the best way to
debug this kind of problems?
Greetings,
And a happy christmas :)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Yahoo! for Good - Make a difference this year.
---------------------------------------------------------------------
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]