Hello.

I have a problem when invoking a component.

The component specification:

<component-specification allow-body="no"
    allow-informal-parameters="no"
    class="view.components.SimpleInstanceViewer">
    <parameter name="instance" required="yes"/>
</component-specification>

My Home page wants to use this component, so i have:

<page-specification class="view.Home">
    <description>
        Start page
    </description>
    <component id="personDetails" type="SimpleInstanceViewer">
        <binding name="instance" value="getCurrentInstance()"/>
    </component>  
</page-specification>


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]

Reply via email to