Why don't you switch to v5 ? I rarely fine anyone getting answers to T4
quesitions, besides, T5 is unbelievable !
On Tue, Dec 18, 2012 at 8:38 AM, SAMPY wrote:
> Any Solutions?
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Validation-issue-with-Tapestry-4-tp
Any Solutions?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Validation-issue-with-Tapestry-4-tp5718593p5718801.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe,
On Wed, 15 Sep 2010 02:45:53 -0300, Stephan Windmüller
wrote:
On 14.09.2010 18:30, Josh Canfield wrote:
Flash persistence is good for getting data between the action and
render requests. Tapestry does redirect after every event so you'd
generally set the value in an action request so you ca
On 14.09.2010 18:30, Josh Canfield wrote:
> Flash persistence is good for getting data between the action and
> render requests. Tapestry does redirect after every event so you'd
> generally set the value in an action request so you can use it in the
> render request, or vice versa I suppose.
Yes
Flash persistence is good for getting data between the action and
render requests. Tapestry does redirect after every event so you'd
generally set the value in an action request so you can use it in the
render request, or vice versa I suppose.
It took some considering to come up with why you might
On 14.09.2010 15:14, Thiago H. de Paula Figueiredo wrote:
> I think your component shouldn't extend AbstractField.
Okay, but in either case the data is not set correctly.
In the surrounding page I defined the "users" object as a List with
flash persistence. In the onPrepare method I check if it
On Tue, 14 Sep 2010 09:29:13 -0300, Stephan Windmüller
wrote:
On 14.09.2010 13:28, Thiago H. de Paula Figueiredo wrote:
The added values inside the component are not stored in form fields but
in a mapped Java class with Flash Persistence. Is it possible to
retrieve these values, too?
In th
On 14.09.2010 13:28, Thiago H. de Paula Figueiredo wrote:
>> The added values inside the component are not stored in form fields but
>> in a mapped Java class with Flash Persistence. Is it possible to
>> retrieve these values, too?
> In this case, your component does not represent a form field and
On Tue, 14 Sep 2010 04:44:29 -0300, Stephan Windmüller
wrote:
On 13.09.2010 17:01, Thiago H. de Paula Figueiredo wrote:
The line
String submittedValue = request.getParameter(elementName);
produces "null" every time.
You'll have to generate the id and name of the HTML form fields
On 13.09.2010 17:01, Thiago H. de Paula Figueiredo wrote:
>> The line
>>> String submittedValue = request.getParameter(elementName);
>> produces "null" every time.
> You'll have to generate the id and name of the HTML form fields in a way
> that you can get them back when the form is su
On Mon, 13 Sep 2010 11:56:17 -0300, Stephan Windmüller
wrote:
The line
String submittedValue = request.getParameter(elementName);
produces "null" every time.
You'll have to generate the id and name of the HTML form fields in a way
that you can get them back when the form is su
On 13.09.2010 16:21, Thiago H. de Paula Figueiredo wrote:
> It doesn't require much background knowledge. Just take a look at this
> method implementation in the Select component:
Thanks for the hint. I tried it, but it does not work.
I do not know if this has to do with my problem but submitt
On Mon, 13 Sep 2010 10:26:51 -0300, Stephan Windmüller
wrote:
tracker.recordError(...);
If one of this components creates form fields, a good approach is to
make> the component an AbstractField sublclass.
That requires an implementation of processSubmission and this in turn
requires some
On 13.09.2010 14:47, Thiago H. de Paula Figueiredo wrote:
>> Is it possible to send validation errors to the outer form in which a
>> component is used?
> @Environmental
> private ValidationTracker tracker;
That works, thanks for the quick reply!
> tracker.recordError(...);
> If one of this comp
On Mon, 13 Sep 2010 09:36:40 -0300, Stephan Windmüller
wrote:
Hi!
Hi!
Is it possible to send validation errors to the outer form in which a
component is used?
@Environmental
private ValidationTracker tracker;
tracker.recordError(...);
If one of this components creates form fields, a g
Issue created:
https://issues.apache.org/jira/browse/TAP5-1212
--
View this message in context:
http://tapestry-users.832.n2.nabble.com/Validation-in-component-using-onValidate-method-tp5315887p5317888.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---
Thiago H. de Paula Figueiredo wrote:
>
>> But one suggestion. Maybe tapestry should log on warn level if someone
>> creates onValidate method with no parameters, else someone may be as
>> confused as I was. I don't see any purpose of onValidate without
>> parameters.
>
> That's a very good id
On Tue, 20 Jul 2010 10:02:41 -0300, Michal Gruca
wrote:
I'm just blind or dumb. My code was almost same as example I provided,
with onValidate metod without any value. That's why I didn't saw any
value. That solves the problem, thanks.
This happens. :)
But one suggestion. Maybe tapestr
Thiago H. de Paula Figueiredo wrote:
>
> Hi!
> This way, the developer can prevent the setter method of being invoked
> with an invalid value.
>
Ok, I get it now. First I wanted to ask how are You supposed to get that
value, but example I wanted to use (from bottom of this page
http://tapestr
On Tue, 20 Jul 2010 06:23:26 -0300, Michal Gruca
wrote:
Hi all,
Hi!
I'm using tapestry for some time but for first time I cannot find correct
solution by myself. My problem is with validation in onValidate method. I
get that onValidate is called for every component inside form and
onValid
Thanks Christophe. Its working :)
One more doubt, When I don't want to add validation, I am returning null, in
this case page is not getting rendered.
Should I need to create a new validator "Optional", make this as default
validator;
Regards,
Jagadesh
On Thu, Mar 18, 2010 at 1:01 PM, Christoph
@Inject
private FieldValidatorSource source;
@InjectComponent
private Field yourField;
public FieldValidator getDynamicConstraints() {
return source.createValidators(yourField, "required", null);
}
Note that this is how we generally use Tapestry Services by injecting them.
Have a look at the A
Hi Christophe,
Could you please give me a sample implementation.
Regards,
Jagadesh
On Thu, Mar 18, 2010 at 12:39 PM, Christophe Cordenier <
christophe.corden...@gmail.com> wrote:
> Hi
>
> Try with fielvalidtorsource service to build your conditional constraints.
>
> Regards
> Christophe cordeni
Hi
Try with fielvalidtorsource service to build your conditional
constraints.
Regards
Christophe cordenier
Le 18 mars 2010 à 06:59, Jagadesh Paladugula m> a écrit :
Hi Everyone,
I have a form which is getting generated dynamically based on some
values in
database. I want to add validat
Hello again,
I'm extremely happy to close this one off. I _finally_ found the source
of the problem today.
As it turns out, the lightbox solution I was using was including its own
version of effects.js which was quite old - and conflicting with the one
already provided by Tapestry.
Once I remove
I've taken a look and it's definitely within a form element. The problem
appears to be that tapestry.js isn't adding that function to the
element, IE6/7 complains thus:
Error: Object doesn't support this property or method
Interestingly, IE8 was making the exact same complaint until I upg
That seems very odd, as Tapestry (i.e., tapestry.js) will create the
Tapestry.FormEventManager object if it does not already exist. Could
it be because the field in question is not contained within a form?
On Mon, Nov 23, 2009 at 4:45 AM, Andrew Miller wrote:
> I've done a bit more digging on thi
I've done a bit more digging on this and I made a mistake in my original
assumption:
> The failure occurs during the Tapestry.init function. I've traced the
> javascript execution through and I've found the exact line it's failing
> on - during the call to the Tapestry.Initializer.validate functio
Thanks for the explanations, much appreciated to all.
Peter
- Original Message -
From: "cordenier christophe"
To: "Tapestry users"
Sent: Wednesday, 7 October, 2009 15:07:52 GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re: Validation question - at whic
Hi
The solutions suggested by Dirk and Urlich sounds good to me.
Actually, in the submission process the target variable set with 'value'
attribute is modified only if validation succeeds. This is why your code
doesn't work.
Christophe.
Anybody?
- Original Message -
From: "Peter Stavrinides"
To: "Tapestry Mailing List"
Sent: Tuesday, 6 October, 2009 10:07:53 GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Validation question - at which point are property values set before
post
Hi everyone,
I came across what
Does anyone have any further thoughts on this? There must be a way to do
this - and if there isn't then perhaps there should be?
-Original Message-
From: Newham, Cameron [mailto:cameron.new...@bl.uk]
Sent: 25 September 2009 10:08
To: Tapestry users
Subject: RE: Validation on textf
gmail.com]
Sent: 24 September 2009 14:52
To: Tapestry users
Subject: Re: Validation on textfields in a grid?
Em Thu, 24 Sep 2009 10:46:10 -0300, Newham, Cameron
escreveu:
> Thanks again Thiago.
>
> Yes, my fault for not saying exactly what I wanted to achieve.
>
> I agree that one
Em Thu, 24 Sep 2009 10:46:10 -0300, Newham, Cameron
escreveu:
Thanks again Thiago.
Yes, my fault for not saying exactly what I wanted to achieve.
I agree that one can iterate over the values in the source and check
them, but I need to mark the field/fields which fail validation on the
form
. de Paula Figueiredo [mailto:thiag...@gmail.com]
Sent: 24 September 2009 14:25
To: Tapestry users
Subject: Re: Validation on textfields in a grid?
Em Thu, 24 Sep 2009 10:19:37 -0300, Newham, Cameron
escreveu:
> Hi Thiago,
Hi!
> The row parameter is only accessing my data from the source
Em Thu, 24 Sep 2009 10:19:37 -0300, Newham, Cameron
escreveu:
Hi Thiago,
Hi!
The row parameter is only accessing my data from the source parameter,
not the components themselves.
I just remembered that Grids inside Forms typically only work when you use
the row parameter.
Also, I a
bject: Re: Validation on textfields in a grid?
Try accessing the Grid elements using the row parameter and use the
validation done by the validate parameter instead of doing it yourself.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Try accessing the Grid elements using the row parameter and use the
validation done by the validate parameter instead of doing it yourself.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
--
Not currently supported, sorry. If you don't care about the contents
of the fields, you can just use an ActionLink instead of a Submit.
On Tue, Oct 28, 2008 at 4:01 AM, peibel <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I need to choose validate or not validate in the same form depending on
> which bu
yes, from 5.0.10 to 5.0.11
On 22/04/2008, Joshua Jackson <[EMAIL PROTECTED]> wrote:
>
> On 4/22/08, János Jarecsni <[EMAIL PROTECTED]> wrote:
> > in deed :) it is much neater than the previous version (with all errors
> > cumulated in one place).
> >
> > On 22/04/2008, Joshua Jackson <[EMAIL PROTE
On 4/22/08, János Jarecsni <[EMAIL PROTECTED]> wrote:
> in deed :) it is much neater than the previous version (with all errors
> cumulated in one place).
>
> On 22/04/2008, Joshua Jackson <[EMAIL PROTECTED]> wrote:
> >
> > You mean the event bubbling?
That feature has been around quite along time
in deed :) it is much neater than the previous version (with all errors
cumulated in one place).
On 22/04/2008, Joshua Jackson <[EMAIL PROTECTED]> wrote:
>
> You mean the event bubbling?
>
>
> On 4/22/08, János Jarecsni <[EMAIL PROTECTED]> wrote:
> > Just want to say I love the way the validation
You mean the event bubbling?
On 4/22/08, János Jarecsni <[EMAIL PROTECTED]> wrote:
> Just want to say I love the way the validation errors are shown now: IT IS
> BEAUTIFUL!!!
> :)
>
> cheers
> janos
>
--
Let's show the world what we've got.
Blog: http://joshuajava.wordpress.com/
-
I discovered (by pure luck) that the following "validators" binding was
causing the problem:
When I removed the "validators" binding, everything works. Is Dojo's
client-side validation incapable of handling elements?
Thanks,
Matt
mraible wrote:
I've got a new (and very strange) issue with client-side validation. When I
click on a submit button in a form, I get a blank popup with no messages in
it. If I disable JavaScript, the form submits without any validation errors.
Any idea why there's a popup when no validation errors exist?
Thank
Just the snapshot - release was scheduled for 15-20 Aug but 1-2 more weeks
are still needed.
On 8/27/07, mraible <[EMAIL PROTECTED]> wrote:
>
>
> Is there a released version of Tacos that supports 4.1.x? I only see a
> 4.1.0-SNAPSHOT.
>
> Thanks,
>
> Matt
>
>
> andyhot wrote:
> >
> > Css is suppos
Is there a released version of Tacos that supports 4.1.x? I only see a
4.1.0-SNAPSHOT.
Thanks,
Matt
andyhot wrote:
>
> Css is supposed to be auto-included only for the exception page
>
> Regarding toaster - it's really cool... If you get tacos [1]
> you use the dojo:Widget component [2] by:
Css is supposed to be auto-included only for the exception page
Regarding toaster - it's really cool... If you get tacos [1]
you use the dojo:Widget component [2] by:
and then, in an ajax listener:
cycle.getResponseBuilder().addStatusMessage(null, "info", "My custom status
message");
[1]
The style related css stuff you want might be helped by looking here:
http://tapestry.apache.org/tapestry4.1/usersguide/clientside-validation.html
(i thought that Andy had made the css style for that stuff inlined
automatically though, maybe there is some other weird collision
happening)
For cu
I've seen this too; please add a bug to JIRA (preferably with a patch to
default.css).
I develop on Mac using Firefox; it's looking like I need to set up a virtual
PC so I can check up on the Bastard Child.
On 5/19/07, Allen Guo <[EMAIL PROTECTED]> wrote:
Hi All,
Has anyone tried the validati
it looks fine for me. What kind of problem do u have?
On 5/19/07, Allen Guo <[EMAIL PROTECTED]> wrote:
Hi All,
Has anyone tried the validation message display in IE
I found the validation message display in IE is not good, but it's fine
in FireFox.
The test is based on Tapestry5.0.4 or Tapest
Forms use a validationDelegate to keep track of validation errors, e.t.c.
and
also decorate fields, e.t.c. You can specify your own in a form, otherwise
Tapestry uses the default implementation.
Take a look at
http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/valid/Validat
If you are using Tap 4.0,
the contributed component Xtile might be useful.
http://tapestry.apache.org/tapestry4/tapestry-contrib/ComponentReference/XTile.html
Or take a look at
Tacos AjaxEventSubmit
http://tacos.sourceforge.net/components/AjaxEventSubmit.html
In Tap 4.1.2, it should be quite
Yes - you can do much with the delegate :)
BTW - consider using CSS for this instead of adding elements , it might
be more elegant and easier to maintain...
Cheers,
Ron
Reto Hotz wrote:
> Hi,
>
> On 10/10/06, Ron Piterman <[EMAIL PROTECTED]> wrote:
>> Dave Rathnow wrote:
>> > Also, is there an e
Hi,
On 10/10/06, Ron Piterman <[EMAIL PROTECTED]> wrote:
Dave Rathnow wrote:
> Also, is there an easy way to get the individual error messages from the
> validation delegate?
In such a case you need to create your own class, extending the standard
validation delegate. There are methods which al
Dave Rathnow wrote:
> I have written a component that contains text fields that need to be validated
> when a page is submitted but I can't figure out how component validation
> hooks into Tapestry's validation framework. I can access my validation
> delegate
> in my page component but how can I
Never mind, I'm using commons-validator for that. I really would like
to see a way of bypassing validation on the table component
navigation, clearing the delegate for the form after the component
finish rendering??? I wonder if it is a validation request for a JIRA
enhancement?
Regards
On 10/2/
this is how tapestry works. field-level validations of one field are not
known to other fields.
we have a similar situation where we wanted to avoid DTOs and use Domain
Objects (the exposed domain pattern). we find that the underlying objects
can get dirtied in a number of ways. validation is j
Thanks a lot for your answer.
I actually figured out the behavior you explain here (after a short
night sleep and a lot of debugging;-), and found a solution to my problem.
What I actually do is force the component name to the appropriate client
ID before I record my error. I do this in my custo
Oops! Forgotten the custom validation delegate.
public class MyDelegate extends ValidationDelegate {
private static final long serialVersionUID =
-7297508746898486393L;
private List clientIds = new
ArrayList();
public void addClientsId(String id) {
clien
When you use a component in a loop, only one instance
of it is used.
The problem is that in the java code of your page, you
can not, as you said,
reference the second,say, 'component' in the loop.
Each 'copy' of the component in the loop can be
uniquely identified by
getClientId().
Example : .p
.phil-taylor.com/fvalidate/
fvalidate is a really good javascript validation library, providing
loads of flexible validators.
Jim
-Original Message-
From: ZedroS Schwart [mailto:[EMAIL PROTECTED]
Sent: 16 May 2006 12:17
To: Tapestry users
Subject: Re: Validation BEFORE submit
> For instance,
For instance, the page can
easily provide it's own validation that is not easily doable with normal
validators (eg making sure 2 password fields are equal).
It looks like something many tapestry developpers could use... Is there a
possibility of seeing the code/putting in the wiki ?
Thanks in a
We did something similar by wrapping @Form with a component that can
provided multiple levels of validation. For instance, the page can
easily provide it's own validation that is not easily doable with normal
validators (eg making sure 2 password fields are equal). This has worked
well for us as a
More to the point, I've only been using Tapestry for a couple of
months, and both Howard's book and Kent's book helped me enormously.
So I take every opportunity to recommend that all tap newbies read
them, as they are far and away the best documentation we have,
especially for folks still in the
-prototype/
- Original Message -
From: "Pedro Viegas" <[EMAIL PROTECTED]>
To: "Tapestry users"
Sent: Wednesday, May 10, 2006 8:08 PM
Subject: Re: Validation on Tapestry 4
Hi Rui,
I feel a bit sad reading your comments.
I have been browsing this list since a good fri
Hi Rui,
I feel a bit sad reading your comments.
I have been browsing this list since a good friend of mine pointed it out to
me like mandatory for a tapestry developer.
I have been blessed with precious help from common folks like you and me,
Tapestry gurus that do regular consulting work on Tap,
I was not talking about specific cases, like my problem with validation
which was admittedly my fault.
What I want to say is that its not very friendly to send the URL of a book.
It gives the impression that "I dont care". Sometimes, all we need is a
holding hand.
Dont want to start a flame war,
On 5/10/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:
Well, first, you reference it as Kent's book. Most people come to Tapestry
because a project landed on their laps and they need to get up to speed
quickly. Referencing a book as "Kent's" is somewhat vague.
Second, most of the time we just want q
Well, first, you reference it as Kent's book. Most people come to Tapestry
because a project landed on their laps and they need to get up to speed
quickly. Referencing a book as "Kent's" is somewhat vague.
Second, most of the time we just want quick answers. I know I didnt need the
book, I just n
More telling, I think, is the fact that the folks who answer questions
around here often reference it, and many of the folks asking questions
haven't read it yet. It certainly gave me a baseline of Tapestry
knowledge very rapidly. I still have a ton to learn, but it got me
started.
--sam
On 5
If anybody has doubts of what Sam is saying about this book...
if anyone thinks it's just a book he, me, and a few others liked...
Do make a search on this forum for quotes on this book... it's not that old
and you will see the results!
Garanteed! It's a must have. ;-)
On 5/10/06, Sam Gendler <[E
Now that's something I have not thought of before!
Nice catch, that must be handy sometimes!
Nice tip Martin... thanks for sharing. :-D
On 5/10/06, Martin Strand <[EMAIL PROTECTED]> wrote:
Yep. I mostly use it to generate CSS classes dynamically:
On Wed, 10 May 2006 21:40:20 +0300, Sam Gendle
Yep. I mostly use it to generate CSS classes dynamically:
On Wed, 10 May 2006 21:40:20 +0300, Sam Gendler
<[EMAIL PROTECTED]> wrote:
On 5/10/06, Martin Strand <[EMAIL PROTECTED]> wrote:
I often put informal parameters in my .page file, it seems to work fine.
Hmph. I guess I should have
On 5/10/06, Martin Strand <[EMAIL PROTECTED]> wrote:
I often put informal parameters in my .page file, it seems to work fine.
Hmph. I guess I should have tried it. You just create a 'binding'
tag with a parameter that isn't declared for the component?
--sam
-
I often put informal parameters in my .page file, it seems to work fine.
Sam Gendler wrote:
On 5/10/06, Martijn Hinten <[EMAIL PROTECTED]> wrote:
The only thing I hate is when informal parameters are important to the
function of the component, since, as far as I know, they must appear
in the htm
On 5/10/06, Martijn Hinten <[EMAIL PROTECTED]> wrote:
I have been wondering this for some time now: Is it the general consensus
to get rid of .page files and do all binding in the html (and injection via
annotations in the java classes)?
I think it depends on the size of your team and complex
Again, "Enjoy Web Development with Tapestry" (the pdf book about tap4)
covers validation in detail. I highly recommend it. See the Tap home
page for details.
--sam
On 5/9/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:
You might not believe me, but I only saw the "validators" attribute now. And
I
I have been wondering this for some time now: Is it the general
consensus to get rid of .page files and do all binding in the html (and
injection via annotations in the java classes)?
Rui Pacheco wrote:
I was just wondering if I was going to have to write .page
files for every
.html page th
Sounds simpler to me.
The only problem is, there is going to be a break between the implementation
and the documentation generally available on the web, which is almost all
related to Tapestry 3.0
If you do get rid of the .page files, there should be an effort to start
spreading through the web n
Tapestry is helping me avoid a lot of pain
On 5/10/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
:-D
No pain no gain!
On 5/10/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:
>
> I was just wondering if I was going to have to write .page files for
every
> .html page that required validation.
> No
:-D
No pain no gain!
On 5/10/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:
I was just wondering if I was going to have to write .page files for every
.html page that required validation.
Now that my blindness has been healed, I am happily adding validators=""
to
all tags on all my .html pages :D
You might not believe me, but I only saw the "validators" attribute now. And
I've been looking at that page for the past 2 hours.
On 5/10/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
http://jakarta.apache.org/tapestry/UsersGuide/validation.html
On 5/9/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:
I was just wondering if I was going to have to write .page files for every
.html page that required validation.
Now that my blindness has been healed, I am happily adding validators="" to
all tags on all my .html pages :D
On 5/10/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
If you do all the bin
If you do all the binding in the .html template, and the class to page
binding in the .application you don't need the .page in Tap4.
Be more specific if this was not the answer you were looking for.
Regards,
On 5/9/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:
Hi all
In Tapestry 4 when doing val
There are a few validators that come with Tapestry:
http://jakarta.apache.org/tapestry/UsersGuide/validation.html#validation.fields
You can also define your own via the configuration point
"tapestry.form.validator.Validators".
Martin
On Wed, 10 May 2006 02:22:07 +0300, Rui Pacheco <[EMAIL
Hi Rui,
Yes it is possible to do it inline.
Something like:
You can see more examples in:
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/ValidField.html
Although this link if for Tap3's ValidField, the validator and translator
attributes are available in TextField in Tap4.
Re
http://jakarta.apache.org/tapestry/UsersGuide/validation.html
On 5/9/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:
Anyone, someone... Could you provide me with an example of validation in
Tapestry 4? Is it possible to do it inline in the html, something like
?
I have been searching on the net, b
88 matches
Mail list logo