Hi,

I've looked everywhere for a solution to this but I can't seem to find
anything except for this,
http://mail-archives.apache.org/mod_mbox/tapestry-users/201204.mbox/%3CCANQh_Dsoxef0tDb4S6RK3-wQyR=mJLhdRvOmE_7A=8vyxed...@mail.gmail.com%3E,
 
which unfortunately isn't working for me. 

I have the same problem, a buttonpress should update a zone with the
selected information.
The zone gets updated, although not with the  but the blackbird console
appears with the message "Client exception processing response: TypeError:
func is undefined"

I've located this to here:

 show: function(content)
{
this.updateElement.update(content);
var func = this.element.visible() ? this.updateFunc : this.showFunc;
func.call(this, this.element);
this.element.fire(Tapestry.ZONE_UPDATED_EVENT);
}, 

this.updateFunc and this.showFunc are undefined for my target zone, despite
having delared them in the zone tag.


Cart.tml
<t:zone t:id="cartZone" t:update="updatecart" id="cartZone" t:show="show">

cart.js
updatecart: function(element)
        {
                Effect.ScrollTo('headercontent',{duration: 0.5,  queue: 'end'});
                return new Effect.Pulsate('cartZone',{pulses: 2, duration: 1,  
queue:
'end' });
        }

Article.tml
<t:eventlink t:zone="buttonZone" t:event="switchBoardEvent"
t:context="switchBoardContext">${label}</t:eventlink>

Switchboard
public Object onSwitchBoardEvent(String action, Map<String,Object> context)

        {
                _logger.debug("Event dispatch: " + action);
                
                List<ActionReceiver> actionReceivers = 
getMatchingActionReceivers(action);
                for(ActionReceiver actionReceiver: actionReceivers)
                {
                        _logger.debug("Invoking " + actionReceiver);
                        actionReceiver.invoke(context);
                }
                
                List<ZoneActionReference> zoneRefs = 
getMatchingZoneRefs(action);
                MultiZoneUpdate update = null;

                for(ZoneActionReference zoneRef: zoneRefs)
                {
                        String zoneId = zoneRef.getZoneId();
                        Zone renderer = (Zone)zoneRef.getZone();
                        
                        if(update == null)
                                update = new MultiZoneUpdate(zoneId, renderer);
                        else
                                update.add(zoneId, renderer);
                }
                if(!_request.isXHR())
                        return null;
                return update;

If I can just prevent the blackbird console from showing the error that's
fine. Anyone with a solution to this?

Thanks.





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-1-0-5-Eventlink-Zone-Blackbird-Error-tp5719172.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to