That is right, I just want to show validation errors. I do not need to add
dynamic fields to the form.
-Original Message-
From: Lance Java [mailto:lance.j...@googlemail.com]
Sent: Tuesday, September 16, 2014 14:46
To: Tapestry users
Subject: Re: Server-side validation without submit
It's no different to a normal zone update (eg via EventLink)
I was assuming he was just wanting to show validation errors in zones. This
shouldn't cause any problems. If he wants to add dynamic fields to the
form, he'll need to use the FormInjector instead.
On 16 Sep 2014 13:40, "Geoff Callender"
Lance, wouldn't that require updating zones within the Form. Doesn't that cause
problems?
On 16 Sep 2014, at 10:09 pm, Lance Java wrote:
> You could use the observe mixin here:
> http://tapestry-stitch.uklance.cloudbees.net/observedemo
> You could use the observe mixin here:
> http://tapestry-stitch.uklance.cloudbees.net/observedemo
Thanks a lot, it looks great, I'll definitely try to use it.
Cheers
You could use the observe mixin here:
http://tapestry-stitch.uklance.cloudbees.net/observedemo
need to do this server-side validation without submitting
the form is that I have to integrate into my Tapestry application a 3rd party
JavaScript component that shows groups of input fields in different steps but
uses only one big form to contain the fields for all the steps, and submits the
form
e in context:
http://tapestry.1045711.n5.nabble.com/Form-server-side-validation-in-zone-tp5718026p5718136.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache
nabble.com/Form-server-side-validation-in-zone-tp5718026p5718135.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands,
nabble.com/Form-server-side-validation-in-zone-tp5718026p5718134.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-mai
Can you give me a bit of explanation of what to do?
Thanks Nathan
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Form-server-side-validation-in-zone-tp5718026p5718131.html
Sent from the Tapestry - User mailing list archive
over the hidden zone and
copy/move any interesting attributes from the hidden zone to the visible
form.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Form-server-side-validation-in-zone-tp5718026p5718033.html
Sent from the Tapestry - User mailing list archive at
On Thu, 15 Nov 2012 09:55:15 -0200, nquirynen
wrote:
- More client side validation feeling
- avoid unnecessary rerendering, database queries, etc.
- some elements in the zone that were visually altered with javascript
get reset to their initial state
- ...
In this case, you're going beyo
rs() which returns just a
List of the error messages. So I have no clue how to get a list of
the needed fields to get their id's.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Form-server-side-validation-in-zone-tp5718026p5718030.html
Sent from the Tapestry - Us
Although I'm sure it can be done... it sounds like a lot of effort for not
much gain. Why don't you want update the full zone?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Form-server-side-validation-in-zone-tp5718026p5718027.html
Sent from the Tapestry - Us
Hi,
I have a form where I do some server side validation on submit. This form is
in a zone and gets submitted with ajax. Now if I want the fields with errors
to be decorated accordingly, I have to update this zone.
If I don't want to update the full zone, but just decorate these fields
rsisted data to the new session.
>>>
>>>
>>> void onActivate() {
>>> System.out.println("onActivate " + this.pr);
>>>
>>> if (this.pr == null) {
>>> this.pr = prPersist !=
sist = null;
> > }
> >
> >}
> >
> >Class onActivate(Long prId) {
> >
> >PurchaseRequest purchaseRequest = prPersist != null ? prPersist :
> > (PurchaseRequest) session.get(PurchaseRequest.class, prId);
> >}
> >
> > If
> (PurchaseRequest) session.get(PurchaseRequest.class, prId);
>}
>
> If you have any better solutions, please feel free to share.
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p
PurchaseRequest.class, prId);
}
If you have any better solutions, please feel free to share.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5586509.html
Sent from the Tapestr
;m using the prPersist to extract and
> populate my current lineItem objects before immediately disregarding. Be
> sure to implement the value encoder in a similar fashion.
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Server-Side-V
urrent lineItem objects before immediately disregarding. Be
sure to implement the value encoder in a similar fashion.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5578227.html
Sent from the Tapestry - User mailing
lineItem == null ? new LineItem() : lineItem;
>
>if (!request.isXHR()) {
>lineItem.setPurchaseRequest(pr);
>pr.getLineItems().add(lineItem);
>}
>
>return lineItem;
>}
>};
>}
>
&g
}
};
}
Hope this helps.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5577886.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
create a work around for my post related to
> server side validation with form loop.
>
> So my questions is whether or not tapestry persist any of the form data
> before returning a validation error or is tapestry relying on the browser
> cache to store the values?
>
> I logge
Hello everyone, I'm trying to create a work around for my post related to
server side validation with form loop.
So my questions is whether or not tapestry persist any of the form data
before returning a validation error or is tapestry relying on the browser
cache to store the values?
I l
ption stating the
other table couldn't be eager fetched.
Does anybody know how to update a session object with data from a persisted
object without getting the hibernate exception? Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax
Hi David, I created a jira issue related to this bug.
https://issues.apache.org/jira/browse/TAP5-1875
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5565297.html
Sent from the Tapestry - User mailing list archive at
tp?type=node&node=5548672&i=0>>
>
>
> > Sounds good to me. Do you want to file the jira issue, or would you like
> me
> > to?
> >
> > --
> > View this message in context:
> >
> http://tapestry.1045711.n5.nabble.com/S
; Sounds good to me. Do you want to file the jira issue, or would you like me
> to?
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5540927.html
> Sent from the Tapestry - User mailing
Sounds good to me. Do you want to file the jira issue, or would you like me
to?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5540927.html
Sent from the Tapestry - User mailing list archive at Nabble.com
would be nice to get
> server side working properly.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5487493.html
> Sent from th
David have you figured out how to get around this issue? I'm using clientside
validation to over come it for the short term, but it would be nice to get
server side working properly.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form
you ever had a chance to look at this issue
> again?
> Thanks
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5451139.html
> Sent from the Tapestry - User mailing li
Hi Geoff, just curious if you ever had a chance to look at this issue again?
Thanks
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5451139.html
Sent from the Tapestry - User mailing list archive at Nabble.com
Hi Geoff, Implemented your suggestion with the same set of results. My pr
object seems to be returned null resulting in the loss of data.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5125845.html
Sent from the
lineItem = (LineItem) session.get(LineItem.class, id);
>}
>
>// AjaxFormLoop will overwrite several fields of the obj
> returned.
>// AjaxFormLoop can't handle null obj, so if null we return
> a new empty obj.
&
= lineItem == null ? new LineItem() : lineItem;
lineItem.setPurchaseRequest(pr);
return lineItem;
}
};
}
Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp51205
p of the form
>
> -Original Message-
> From: Jorge Saridis [mailto:jsari...@gmail.com]
> Sent: Wednesday, March 25, 2009 7:28 AM
> To: users@tapestry.apache.org
> Subject: server side validation
>
> Hello, I have a problem with validations when I set
> "clie
Place a component at the top of the form
-Original Message-
From: Jorge Saridis [mailto:jsari...@gmail.com]
Sent: Wednesday, March 25, 2009 7:28 AM
To: users@tapestry.apache.org
Subject: server side validation
Hello, I have a problem with validations when I set
"clientValidation=
No, because Tapestry never ignores server-side validation.
On Wed, Mar 25, 2009 at 5:27 AM, Jorge Saridis wrote:
> Hello, I have a problem with validations when I set
> "clientValidation=false"
> Tapestry 5.0.18 ignores validations.
> Has anyone got any suggestions?
>
Hello, I have a problem with validations when I set
"clientValidation=false"
Tapestry 5.0.18 ignores validations.
Has anyone got any suggestions?
Jorge
I have had some time to revisit the form fragment today. It seems that for a
hidden form fragment section to bypass server side validation client side
validation MUST be enabled.
Is there any way to get a hidden form fragment with required fields to
bypass server side validation on submit?
It
having
an ajax request fired after a blur on the amount field and then if the
threshold is breached the server will respond with a JSON update that will
set the form fragment to visible.
So when the form fragment section is hidden I dont want server side
validation for any of its fields but when the
Maybe telling us a bit more about your use case would help.
Generally, if you have t:validate="required", it would be safe to
assume that you /want/ server-side validation, since relying on client-
side validation is insecure. But maybe you're trying to write a
cancel butt
I am having trouble getting FormFragment to skip server side validation for a
simple example I created. The FormFragment is not visible and it has one
textfield that has a required validator. eg.
test field
Is there something simple im missing? I tired with both
Thanks for the response
But, to decorate the bad field, i still have to declare it explicitly
on the tml (of course, now i understand)
I think that would be nice if BEF resolves the field on the fly by
it's name or something, since it's intention is to write less than
usual...
Anyway, thank you f
Inject the Form object and invoke the recordError() method.
On Thu, Jun 19, 2008 at 7:47 AM, Marcelo Lotif <[EMAIL PROTECTED]> wrote:
> Ok, but how can i return the error to the page with onValidateForm?
> With the field validation method, i can throw a ValidationException in
> case of failure, an
Ok, but how can i return the error to the page with onValidateForm?
With the field validation method, i can throw a ValidationException in
case of failure, and then tapestry puts the error message on the top
of the form and decorates the bad field. But with onValidateForm i can
not do this. I tried
Em Thu, 19 Jun 2008 10:43:49 -0300, Marcelo Lotif <[EMAIL PROTECTED]>
escreveu:
I was using a tricky field by field validation on the server side(not
cross-validation) inside the BeanEditForm and i realize that to use
onValidateFromXXX you have to declare explicitly the id of the field
wrappin
Hi all,
I was using a tricky field by field validation on the server side(not
cross-validation) inside the BeanEditForm and i realize that to use
onValidateFromXXX you have to declare explicitly the id of the field
wrapping it with a parameter tag. I think this is a little verbose,
since i didn't
Thanks! I'm stupid!;)
--
View this message in context:
http://www.nabble.com/Tapestry-5-server-side-validation-tp17680152p17687166.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscri
Hi ice,
> public Object onSubmit()
> {
> return Start.class;
> }
Rename the method to onSuccess(). That should solve the problem.
Regards, nillehammer
- original Nachricht
Betreff: Tapestry 5 server side validation
Gesendet: Do, 05. Jun 2008
Von: ice96<[
Just to prove this is live:
After disabling java script validation stop working. Some times after page
refresh I can see validatio messanges, but not after click submit button. I
have tested on firefox 3 and opera (in linux)
--
View this message in context:
http://www.nabble.com/Tapes
+1
I would find this functionality extremely useful. Server-side validation
onBlur has so many applications. At the moment the solution I have come up
with is:
1) Use the T5Components OnEvent annotation, and attach a blur event to the
field.
2) Do my server side validation (in this case
I have the following simple FormFragment which is
inside a form component with server side validation.
Married ?
There are two problems.
1) Checked
d this is fired from the client and from the
>> server!). I'd suggest T5 move to such a design.
>>
>> - Original Message -
>> From: "Bill Holloway" <[EMAIL PROTECTED]>
>> To: "Tapestry users"
>> Sent: Wednesday, May 16, 2007
Very good. For completeness for anyone else reading this, I did the
following:
Added to the java class
@Component
private BeanEditForm _form;
public BeanEditForm getForm()
{
return _form;
}
and changed template to ( notice the
Thanks!
Filip S. Adamsen wrote:
> Hi Chris,
>
> Simply inj
Hi Chris,
Simply inject the BeanEditForm into your page class and use that to
record the errors. You'll need to give the BeanEditForm an id in your
template and then use the @Component annotation to inject it.
Details are here:
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/
Simple question from a noob: Following form example, mostly works
well. Now I want to do some cross validation server side, and can do
that, however I cannot figure out how to set the error message on
the form.
My class has:
@Inject
private BeanModelSource _beanModelSource;
@Inject
priva
+1 for this.
I thought you'd missed it, and was going to bring it up on the dev list.
But a week later ... GMail "star" to the rescue? ;-)
Any thoughts from others on this?
Cheers,
Nick.
Howard Lewis Ship wrote:
I agree:
- onblur vs. onform submit
- option to validate via server-round trip (
Original Message -
From: "Bill Holloway" <[EMAIL PROTECTED]>
To: "Tapestry users"
Sent: Wednesday, May 16, 2007 2:27 PM
Subject: Re: T5: New Validators and server side validation
> That's got it, Ben. Thanks. Wish I knew more about javascript
> prototy
27 PM
Subject: Re: T5: New Validators and server side validation
That's got it, Ben. Thanks. Wish I knew more about javascript
prototyping. Too much technology to stay familiar with.
Bill
On 5/16/07, Ben Sommerville <[EMAIL PROTECTED]> wrote:
Bill,
This
> pageRenderSupport.addS
Add a script include to your border/page (to load your validation
function)
and change the render method to use MyProject.Field.email and you are good
to go
cheers.
--
Ben Sommerville
> -Original Message-
> From: Bill Holloway [mailto:[EMAIL PROTECTED]
> Sent: Wed
This "weird" problem was being caused because my integration with ACEGI.
On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote:
I think i am starting to be annoying but i found out that inside a
component the first form will not execute server side validation.
In the follow
> -Original Message-
> From: Bill Holloway [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 16 May 2007 4:33 PM
> To: Tapestry users
> Subject: Re: T5: New Validators and server side validation
>
> In implementing an e-mail validator myself, one thing I notice in all
>
ion
configuration){
configuration.add(Email.NAME, new Email());
}
The validators work for me perfectly when i use them in a page but when i
use them in a Component the server side validation only works in the second
form. I would really appreciate if u can test to use the validators insid
return formatter.format(field.getLabel());
}
}
add in AppModule.java
public static void
contributeFieldValidatorSource(MappedConfiguration
configuration){
configuration.add(Email.NAME, new Email());
}
The validators work for me perfectly when i use them in a page but when i
use them i
Juan,
I'm trying, but having a lot of compilation errors.
If you post all code added to AppModule.java and Email class, maybe i can
help you.
Marcus
I think i am starting to be annoying but i found out that inside a
component the first form will not execute server side validation.
In the following code the the validators will be executed fine.
However the validators will not be executed if i change the code
t; wrote:
>
> But none of the basic implementors are executing server side validation.
> (i
> tried required and minLength)
>
> On 5/15/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> >
> > Yes, but the magic is built into the validator implementation.
&g
Hi Marcus. I am doing exactly the same but using a tapestry validator
so it handles server and client validation. the code is something
like:
public class Email implements Validator {
public void validate(Field field, Void constraintValue,
MessageFormatter formatter, Object value) throws Validat
Hi Juan,
If u do it, may u share the code with us?
On server side, we're using this regular expression.
import java.util.regex.Pattern;
public class EmailValid {
public static boolean isValid(String email)
{
return Pattern.matches(
"([A-Za-z0-9]+[._-]*)+[A-Za-z0-9]+@([A-Za-z0-9-]+\\
It doesn't work for me. I am using tapestry 5.0.4.
On 5/15/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
Really? That's a surprise and a bug if true.
On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote:
>
> But none of the basic implementors are executing server s
Really? That's a surprise and a bug if true.
On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote:
But none of the basic implementors are executing server side validation.
(i
tried required and minLength)
On 5/15/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
>
> Yes,
But none of the basic implementors are executing server side validation. (i
tried required and minLength)
On 5/15/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
Yes, but the magic is built into the validator implementation.
On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote:
Yes, but the magic is built into the validator implementation.
On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote:
I Howard,
Thank u for the answer. That was what i did. I followed the pattern but i
didn't see how to add easily new Javascript. I could modify tapestry.js
but
i think that's not th
I Howard,
Thank u for the answer. That was what i did. I followed the pattern but i
didn't see how to add easily new Javascript. I could modify tapestry.js but
i think that's not the best way to do it.
I thought the validators were able to execute server and client side
validation. According to
On 5/14/07, Juan Maya <[EMAIL PROTECTED]> wrote:
Hi all,
I am trying to contribute a new Email Validator that would check if an
email is valid or not.
To do it i created a class Email that implements Validator.
Then i contributed the Validator in My AppModule:
public static void
contributeFiel
Hi all,
I am trying to contribute a new Email Validator that would check if an
email is valid or not.
To do it i created a class Email that implements Validator.
Then i contributed the Validator in My AppModule:
public static void
contributeFieldValidatorSource(MappedConfiguration
configuration)
79 matches
Mail list logo