Hi! In validation.js [1] , line 31 ;)
The goal of this function is to translate a tapestry validation rule in a jQuery Validation plugin rule. For example, tapestry uses the validator "numericformat" which is translated to "number" for jQuery Validation plugin. Please check the links below for tapestry5 validators [2] and jquery validators [3] list. If you find any bug or if you do any improvement, don't hesitate to fork the repository on Github, make your contribution and then do a pull request Regards, Robin [1] http://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/validation.js [2] http://tapestry.apache.org/tapestry5.1/guide/validation.html [3] http://docs.jquery.com/Plugins/Validation#List_of_built-in_Validation_methods On Mon, Jun 7, 2010 at 3:00 AM, Greg Pagendam-Turner <g...@liftyourgame.com> wrote: > Robin, > > I want to customize the jquery validation in a grid. I've been looking > through the tapestry-jquery code. In validation.js there is reference to a > function called toJSRule. Where is this function defined please? > > Regards, > > Greg. > > > On 3/06/2010 2:23 PM, Greg Pagendam-Turner wrote: >> >> Robin, >> >> I tend to agree about the popups. Do you have any examples please of how >> you've used validation please? Are you using it in a grid at all? Do you >> completely steer clear of the existing Tapestry required validations and >> just code using the jQuery validator direct in your page? >> >> Regards, >> >> Greg. >> >> >> On 1/06/2010 5:48 PM, Robin Komiwes wrote: >>> >>> Validation change is a design choice. >>> Most of the designers of my company (and also myself) have found that >>> ErrorPopups may be too intrusives. >>> You may be interested by this article: >>> http://www.alistapart.com/articles/inline-validation-in-web-forms/ >>> >>> Be reassured, the jQuery plugin used for validation is very, very >>> customizable. Have a look to the demos at the end of the plugin >>> documentation page : http://docs.jquery.com/Plugins/Validation >>> >>> The only cons ATM is that the "jQuery Validation" plugin does not have a >>> built in validator for regular expressions. >>> >>> Regards, >>> >>> Robin >>> >>> >>> >>> On Tue, Jun 1, 2010 at 9:20 AM, Greg Pagendam-Turner >>> <g...@liftyourgame.com>wrote: >>> >>>> Robin, >>>> >>>> Thanks. Looks like the issue with my Dialog is that I still had some >>>> prototype code that was confusing things. The dialogs now come up. >>>> >>>> I've raised an issue for the datefield in AjaxFormLoop. >>>> >>>> How is the validation handled in tapestry jquery? Unlike with prototype >>>> the >>>> error just seems to be inserted inline (without any special formatting) >>>> rather than being shown as a popup when using the prototype >>>> implementation. >>>> >>>> Regards, >>>> >>>> Greg. >>>> >>>> >>>> >>>> On 1/06/2010 5:10 PM, Robin Komiwes wrote: >>>> >>>>> Hi! >>>>> >>>>> Concerning the Dialog component, default is to not show the dialog. >>>>> See autoOpen value in the Dialog component: >>>>> >>>>> >>>>> http://github.com/got5/tapestry5-jquery/blob/master/src/main/java/org/got5/tapestry5/jquery/components/Dialog.java >>>>> >>>>> Concerning the datefield, I'll have a look and try to make a test case. >>>>> >>>>> Please post an issue on Github for both items and we will try to find >>>>> out >>>>> what is not working. >>>>> >>>>> Regards, >>>>> >>>>> Robin >>>>> >>>>> >>>>> On Tue, Jun 1, 2010 at 4:36 AM, liftyourgame<g...@liftyourgame.com> >>>>> wrote: >>>>> >>>>> >>>>> >>>>>> Robin, >>>>>> >>>>>> I've tried to use the JQueryDialog as documented in the sample. >>>>>> >>>>>> I was expecting the dialog to be hidden until the j.querydialoglink >>>>>> was >>>>>> clicked but the dialog comes up as rendered. >>>>>> >>>>>> Am I using the component the right way? Is there a documentation page >>>>>> yet? >>>>>> >>>>>> I've noticed also that the jquery.datetime component does not popup >>>>>> for >>>>>> datetime fields in an AjaxFormLoop when specified by: >>>>>> >>>>>> <tr t:type="AjaxFormLoop" t:source="entityHolders" >>>>>> t:value="entityHolder" >>>>>> t:encoder="encoder"> >>>>>> >>>>>> <t:unless t:test="entityHolder.deleted"> >>>>>> >>>>>> <t:submitnotifier> >>>>>> >>>>>> <td><t:textfield t:id="stepName" class="stepName" >>>>>> validate="required" value="entityHolder.entity.actionName"/></td> >>>>>> >>>>>> <td><t:jquery.datefield t:id="stepTargetDate" >>>>>> class="targetDate" >>>>>> validate="required" size="12" >>>>>> value="entityHolder.entity.targetDate"/></td> >>>>>> >>>>>> <td><t:jquery.datefield t:id="stepActualDate" >>>>>> class="actualDate" >>>>>> size="12" value="entityHolder.entity.actualDate"/></td> >>>>>> >>>>>> <td><t:removerowlink>remove</t:removerowlink></td> >>>>>> >>>>>> </t:submitnotifier> >>>>>> >>>>>> </t:unless> >>>>>> >>>>>> <t:parameter name="addRow"> >>>>>> >>>>>> <td colspan="*" style="text-align: right"> >>>>>> >>>>>> <t:addrowlink>Add a row</t:addrowlink> >>>>>> >>>>>> </td> >>>>>> >>>>>> </t:parameter> >>>>>> </tr> >>>>>> >>>>>> >>>>>> Regards, >>>>>> >>>>>> Greg. >>>>>> >>>>>> >>>>>> >>>>>> Robin K. wrote: >>>>>> >>>>>> >>>>>>> Hi! Just saw your email. >>>>>>> >>>>>>> Dialog component is still under development and will be released with >>>>>>> 1.1.0. >>>>>>> Anyway, there is a test application bundled with this project. Each >>>>>>> component is tested in a custom page which could also be used a >>>>>>> sample. >>>>>>> You may be interested by: >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> http://github.com/got5/tapestry5-jquery/blob/master/src/test/java/org/got5/tapestry5/jquery/test/pages/JQueryDialog.java >>>>>> >>>>>> >>>>>>> >>>>>> >>>>>> http://github.com/got5/tapestry5-jquery/blob/master/src/test/resources/org/got5/tapestry5/jquery/test/pages/JQueryDialog.tml >>>>>> >>>>>> >>>>>>> If you have any suggestion to improve this component please post an >>>>>>> issue >>>>>>> here : http://github.com/got5/tapestry5-jquery/issues >>>>>>> We are very looking forward feedback! >>>>>>> >>>>>>> >>>>>>> On Wed, May 26, 2010 at 5:35 PM, Nikola Milikic >>>>>>> <nikola.mili...@gmail.com>wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> Thanks for the job done on integrating jquery with Tapestry. >>>>>>>> >>>>>>>> I wanted to test it a bit, but I'm not managing to do everything I >>>>>>>> wanted. >>>>>>>> Can anyone plz help me how to use Dialog >>>>>>>> window<http://jqueryui.com/demos/dialog/>(or maybe lightbox style >>>>>>>> dialog)? I can't make it working. >>>>>>>> >>>>>>>> Thanks! >>>>>>>> >>>>>>>> Regards, >>>>>>>> Nikola >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>>> View this message in context: >>>>>> >>>>>> >>>>>> http://old.nabble.com/Re%3A--Announce--Tapestry5-jQuery-integration-and-Tapestry5-ClientResources-tp28682461p28737137.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-mail: users-h...@tapestry.apache.org >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>>> For additional commands, e-mail: users-h...@tapestry.apache.org >>>> >>>> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org