I'm trying to pass a listener into a block via getParameter but when it's
called it get the following exception

Method "getParameter" failed for object
[EMAIL PROTECTED]:MgList/MgList]

The Block looks like this

<span jwcid="[EMAIL PROTECTED]">
<span jwcid="@AcuVigilComponent:MgList"
    selectListener='ognl:components.MgList.getParameter("selectListener")'
    objectList='ognl:components.MgList.getParameter("list")' />
</span>

and the RenderBlock like this
<span jwcid="@RenderBlock" block="ognl:components.MgList"
    list="ognl:MgList"
    selectListener="listener:selectListener">
</span>

The listener is bound to a DirectLink like this
<parameter name="selectListener"/>
<component id="View" type="DirectLink">
<binding name="listener" value="selectListener"/>
<binding name="parameters" value="components.Mg.tableRow"/>
</component>

The list passes in just fine but the selectListener does not. My guess is
when the link is clicked the View component is found and it tries to look up
the listener, but the Block is not wrapped by the RenderBlock at that time
so getParameter fails.

Is that what's going on and if so is it a bug or a feature? I'm running
Tapestry 4.0 beta 12

Reply via email to