Thank you guys,
the solution works fine without much changes to the component. Only had
generate clientID's dynamically
On Thu, Feb 19, 2015 at 8:34 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Thu, 19 Feb 2015 17:17:01 -0200, Sumanth
> wrote:
>
> Well I can certainly try
On Thu, 19 Feb 2015 17:17:01 -0200, Sumanth
wrote:
Well I can certainly try the way you have suggested, but wouldn't it be
better tif tapestry can handle it? Because, I know that we need to
specify client id for the zone when we use it, so generally a static
client id will be given to the
On Thu, 19 Feb 2015 17:17:01 -0200, Sumanth
wrote:
Hello George, Hello Thiago,
Hi!
Well I can certainly try the way you have suggested, but wouldn't it be
better tif tapestry can handle it? Because, I know that we need to
specify id for the zone when we use it, so generally a static cli
On Thu, 19 Feb 2015 16:45:48 -0200, Sumanth
wrote:
I've tried with zone's with t:async and even zone with ^ but doesnt solve
the problem.
zone="^" wouldn't work because the link is outside the zone. In addition,
for it to work, you'd need to return the object you wanted to be rendered
(
Hello George, Hello Thiago,
Well I can certainly try the way you have suggested, but wouldn't it be
better tif tapestry can handle it? Because, I know that we need to specify
client id for the zone when we use it, so generally a static client id will
be given to these component eg : but if
the zo
On Thu, 19 Feb 2015 16:56:21 -0200, George Christman
wrote:
this should work perfectly for you
public String getZonedId() {
return resources.getId() + "-zone";
}
public void onUpdateCount() {
count++;
System.out.println(getCompId());
ajaxResponseRenderer.ad
On Thu, 19 Feb 2015 16:32:16 -0200, George Christman
wrote:
We should probably clarify that in the docs, it's always been my
assumption you needed to use a component id with zones which you can
can't dynamically set.
t:id is the component id and it's static, not being able to be set
dy
this should work perfectly for you
public String getZonedId() {
return resources.getId() + "-zone";
}
public void onUpdateCount() {
count++;
System.out.println(getCompId());
ajaxResponseRenderer.addRender(getZonedId(), countZone);
}
Count : ${count}
As Thiago pointed out, you need to come up with some sort of dynamic id
generator that can be used to set the id in the tml and the
responseRenderer. I happened to just use the id you used for your
component, but as thiago said, you may want to use that else where and may
want to generate a unique
@Chris
Hi Chris,
I've tried with zone's with t:async and even zone with ^ but doesnt solve
the problem.
shouldn't the component be a black box from my perspective? And like
George Christman has said, the zone's client id's are uniquely generated by
tapestry itself, but some how it is unaware of
We should probably clarify that in the docs, it's always been my assumption
you needed to use a component id with zones which you can can't dynamically
set. Thanks Thiago.
On Thu, Feb 19, 2015 at 1:27 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Thu, 19 Feb 2015 16:19:54 -02
On Thu, 19 Feb 2015 16:19:54 -0200, George Christman
wrote:
Never, never, never ever use ${} expansions when binding Tapestry
parameters. In 100% of the cases, it's either harmless, but
philosophically wrong (as in this case, where the parameter type is
String) or completelywrong
On Thu, 19 Feb 2015 16:13:34 -0200, George Christman
wrote:
I would have thought tapestry would have done this automatically,
It cannot by the reasons I've described in my other e-mail in this thread.
:)
but the problem is your ajaxresponserender is telling the first zone to
update
r
On Thu, 19 Feb 2015 14:14:55 -0200, Chris Poulsen
wrote:
Coul be clash of zone ids in the html? - try generating unique zone id
(client side id, not t:id) e.g using the supplied t:id + something
You've nailed it, Chris. :) When using Zones, in one way of the other you
need to pass Tapestr
Try this
Count : ${count}
Update Count for
Component ${compId}
public class TestComponent {
@Parameter(required = true)
@Property
private int count;
@Inject
private ComponentResources componentResources;
@Inject
private AjaxResponseRender
I would have thought tapestry would have done this automatically, but the
problem is your ajaxresponserender is telling the first zone to update
rather than _0. This will get your second zone updating.
ajaxResponseRenderer.addRender("countZone_0", countZone);
I'm not sure what the best automated
Coul be clash of zone ids in the html? - try generating unique zone id
(client side id, not t:id) e.g using the supplied t:id + something more or
wrap the link in the zone and use zone ^ (may be too simplistic for a real
use).
--
Chris
On Thu, Feb 19, 2015 at 3:49 PM, Sumanth wrote:
> 5.4 Beta
5.4 Beta 22
On Thu, Feb 19, 2015 at 3:46 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Thu, 19 Feb 2015 11:17:57 -0200, Sumanth
> wrote:
>
> Forgot. :)
>>
>
> It happens, and I do that a lot. :P
>
> What beta are you using?
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestr
On Thu, 19 Feb 2015 11:17:57 -0200, Sumanth
wrote:
Forgot. :)
It happens, and I do that a lot. :P
What beta are you using?
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
Forgot. :)
TestPage.tml
TestPage.java
public class TestPage {
@Property
@Persist
private int countForComponentA;
@Property
@Persist
private int countForComponentB;
}
TestComponent.tml
http://tapestry.apache.org/schema/tapestry_5_4.xsd";
xmlns:p="tapestry:parameter">
On Thu, 19 Feb 2015 11:01:13 -0200, Sumanth
wrote:
Hello Users,
Hi!
Please post the code when asking for help. We're not psychics (well, at
least I know I'm not). :)
I am facing a problem with Tapestry components and would like to know if
this is a bug.
I have two components which a
Hello Users,
I am facing a problem with Tapestry components and would like to know if
this is a bug.
I have two components which are the same . They have a count field and a
link to update the count via ajax.
The problem is when you click on the link from the second component then
the count zone
22 matches
Mail list logo