So I was able to get everything working without an issue. I created a method
on the backend which allowed me to pass back my field and then append a
sequence number to the field label.
t:clientId="prop:getGenerateFieldId(orgKey)"
In order to get the ValidationTracker to record the input properly
Excellent, Thanks Nourredine. I think I have enough now to finish figuring
this out.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/AjaxFormLoop-validation-not-working-properly-tp5718326p5718345.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
The ValidationTracker stores also the value (see
ValidationTrackerImpl#recordInput() and ValidationTrackerImpl#getInput()).
Again, the key used to store the field's input is based on the
"controlName". That's why the value is not rendered after the first
submission (the key used to store the input
So last question, where is the field value stored? example I put alpha in a
numeric field and a validation error occurs, the field should return
decorated but with the alpha character still within it. I'm able to return a
decorated field, but the field is returned blank. I'm not sure if the value
i
Hi George,
The "t:id" is a server-side id (used when you @InjectComponent the field in
your class) while the "t:clientId" is used by the TextField component to
generate its client-side id. They are not interdependent.
Also, the TextField 's "controlName" is used by the "ValidationTracker" to
stor
Hi Nourredine, Thanks for the explanation, makes perfect sense.
I'm a little confused with the id generation sample your using though. Is
the field suppose to read the t:id="label" and append the id from
t:clientId="prop:row.id" ? I'm not sure I follow this logic just yet. Would
you mind elaborat
On Tue, 27 Nov 2012 14:14:54 -0200, Nourredine
wrote:
yes, I saw that, but don't know how to make it visible in the mailing
list from nabble (I edited my previous post to add a link to nabble).
As a general suggestion, I'd say don't post from Nabble. And don't forget
that editing posts i
Code eaten by Nabble :
your page :
@Persist(PersistenceConstants.FLASH)
@Property(read=false)
private ValidationFieldTracker myTracker;
public ValidationFieldTracker getMyTracker() {
if (myTracker == null) {
myTracker = new ValidationFieldTracker(new ValidationTrackerIm
yes, I saw that, but don't know how to make it visible in the mailing list
from nabble (I edited my previous post to add a link to nabble).
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/AjaxFormLoop-validation-not-working-properly-tp5718326p5718334.html
Sent from the Ta
Nabble ate your code.
On Nov 27, 2012, at 10:54 AM, Nourredine wrote:
> Hi,
>
> It is a side effect of the zone refresh and IdAllocator. Ajax requests use
> IdAllocator to generate unique ids. but when the page is rendered after
> submission, the original ids are used. While the ValidationTrac
Hi,
It is a side effect of the zone refresh and IdAllocator. Ajax requests use
IdAllocator to generate unique ids. but when the page is rendered after
submission, the original ids are used. While the ValidationTracker stores
the "ajaxified" ids.
as a workaround, you will have to implement your ow
Just a guess but have you specified t:id for your new row?
On Nov 27, 2012, at 10:44 AM, George Christman wrote:
> Another update, I'm thinking I'm getting closer to understanding the problem,
> but not sure of the cause.
>
> What I'm finding is when I add a new row, tapestry generates an id f
Another update, I'm thinking I'm getting closer to understanding the problem,
but not sure of the cause.
What I'm finding is when I add a new row, tapestry generates an id for my
fields,
example
quantity_13b4286fcf5
When I submit the form and it returns with a validation error, I'm noticing
th
I'd also like to add I'm applying my field validation within the tml using
t:validate="...".
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/AjaxFormLoop-validation-not-working-properly-tp5718326p5718327.html
Sent from the Tapestry - User mailing list archive at Nabble.co
14 matches
Mail list logo