Hi everyone, I have a tricky binding problem here. It is a bit long winded, so please bear with me. I have component called EntityList which takes a parameter called viewListener as like so:
<parameter name="viewListener" direction="in" required="no" type="org.apache.tapestry.IActionListener" > <description> This is the listener that should be triggered when clicking the link for viewing a particular item </description> </parameter> and then I use it in a direct link like so: <component id="directView" type="DirectLink"> <binding name="listener" expression="viewListener"/> <binding name="parameters" expression="currentItem.id"/> </component> I have many pages which use entity list, passing in a listener from the page to the viewListener binding of the EntityList. However I am having problems when I need to pass the listener from a page to a component and finally to the EntityList. In this case I have a Customer page which passes the listener to the PartyList component. The PartyList's param spec is as follows: <parameter name="viewListener" direction="in" required="yes" type="org.apache.tapestry.IActionListener" /> And the PartyList in turn passes that listener to its EntityList: <component id="entityList" type="EntityList"> ... <binding name="viewListener" expression="viewListener"/> ... </component> But when the directView link is clicked, I get the following: Value for parameter 'listener' in component owner/customerList/partyList.entityList.$DirectLink is null, and a non-null value is required. Now I know for a fact that the listener wasn't null before, because I did an @Insert on "ognl:viewListener" to make sure. The question is why is my viewListener null when I do a directView? Thanks in advance for your help, Bobby --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]