On Sun, 12 Aug 2012 11:41:34 -0300, Angelo C.
wrote:
the template is here:
< a t:type="eventLink" t:parameters="prop:{'mode':${current}}"
t:id="UpdateOff" >Turn it off< /a>
As Dusko already said, without a zone parameter in EventLink, the request
won't be an AJAX one.
--
On Sun, 12 Aug 2012 11:40:31 -0300, Angelo C.
wrote:
I use only '@Inject Block block1, block2', then define Zone in the
template to fold a block, what's the difference '@InjectComponent
private Zone
zone1'?
Block is not a component, Zone is, so their inject is done with different
anno
the template is here:
< a t:type="eventLink" t:parameters="prop:{'mode':${current}}"
t:id="UpdateOff" >Turn it off< /a>
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/AjaxResponseRenderer-help-tp5715295p5715307.html
Sent from the Tapestry - User mailing li
I use only '@Inject Block block1, block2', then define Zone in the template
to fold a block, what's the difference '@InjectComponent private Zone
zone1'?
Taha Hafeez wrote
>
> You can't. You can specify one and then use AjaxResponseRenderer to add
> more zones to it.
>
> Refresh
>
> @InjectC
That works, now, I'd like to put this eventLink in a loop:
Turn it off
but got:
Component Test123 already contains a child component with id 'UpdateOff'.
Embedded component ids must be unique (excluding case, which is ignored).
any fix to this?
Angelo
--
View this message in context
You can't. You can specify one and then use AjaxResponseRenderer to add more
zones to it.
Refresh
@InjectComponent
private Zone zone1;
@InjectComponent
private Zone zone2;
@Inject
private AjaxResponseRenderer ajaxResponseRenderer;
onSomeEvent(){
ajaxResponseRenderer.addRender("zone2", zone
@Component(parameters = { "event=ModeUpdate", "zone=zone1" })
private EventLink UpdateOff;
This should do the trick.
On Sun, Aug 12, 2012 at 3:30 PM, Angelo C. wrote:
> How to specify two zones in a event link?
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/A
How to specify two zones in a event link?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/AjaxResponseRenderer-help-tp5715295p5715301.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
You are missing the zone parameter on your eventLink component.
On Sun, Aug 12, 2012 at 2:31 PM, Angelo C. wrote:
> Hi,
>
> I am trying out AjaxResponseRenderer to update multiple zones in a page,
> here is the code:
>
> java:
>
> @Inject
> private AjaxResponseRenderer ajaxResponseRenderer;
>
>