This will work, even if the Block is rendered in a different page!

<span jwcid="[EMAIL PROTECTED]">
<span jwcid="@AcuVigilComponent:MgList"
   
selectListener='ognl:components.MgList.inserter.bindings["selectListener"].object'
   objectList='ognl:components.MgList.inserter.bindings["list"].object'' />
</span>

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

Although the ognl expression is brittle as bindings["list"].object
will fail with an NPE if bindings["list"] is null.

could implement in java:

public Object getBindingObject(IBinding binding) {
  if (binding == null)
     return null;
  return binding.getObject();
}

and change the expressions above to something like this:

'ognl:getBindingObject(components.MgList.inserter.bindings["selectListener"])'

Geoff


On 12/1/05, Barry Books <[EMAIL PROTECTED]> wrote:
> > I believe this is what is happening. When the direct link is clicked,
> > the Block is not rendered so getParameter() will fail. Are there any
> > reasons why you don't write the block like this:
>
> That what I think is happening also. The reason I passed in the parameters
> is the RenderBlock is not always in the the same Page as the block. After
> messing around with it I don't think it's possible pass a listener from the
> page you are on into a block on another page. I would be nice if you could
> but I think I can work around it by passing another parameter that tells the
> listener what to do.
>
> >
> >
> >
>
>


--
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to