using DataType annotation for a Grid source object

2010-12-09 Thread Kiss Izolda
Dear Tapestry Users, In my former application using Tapestry 5.1.0.5, I have used a feature, that seems not to work in Tapestry 5.2.4 When setting a list of "Project" objects as a source of a Grid, the return value of the User.toString() is diplayed instead of the User.getName() and the column

Re: TDD with Tapestry 5.2 how to mock Logger and Messages

2010-12-06 Thread Kiss Izolda
Hi Igor, We are using Tapestry's built-in testing facilities and have rendered the page (tester.renderPage("MyPage")) We don't necessary need to mock the org.slf4j.Logger, what we need is to unit test whether the page calls the org.slf4j.Logger or not. thank you, Izolda --

TDD with Tapestry 5.2 how to mock Logger and Messages

2010-12-06 Thread Kiss Izolda
Dear Tapestry Users, we started to use TDD (Test Driven Development) with Tapestry 5.2 in order to observe the rules of TDD we need to mock the following services as well:-org.slf4j.Logger -org.apache.tapestry5.ioc.Messages the @ForComponents annotation had no effect in case of this 2 services is

Re: clientsidevalidation call custom javascript function

2010-07-06 Thread Kiss Izolda
Hi, I solved this problem by preventing the "overlay loading animation" when the client validation finds any error: var validationError = false; frmForm.getElements().each(function(fieldElement) { var fieldEventManagerOfElement = $T(fieldElement).fieldEventManager; if (fieldEventMana

enhanced grid component

2010-06-10 Thread Kiss Izolda
Dear Tapestry Users, The header of the org.apache.tapestry5.corelib.components.Grid component is not suitable for the Client. The title should be aligned to left and the short icon to right... I would like to avoide overriding the header for each column. Could anybody advice me some enhanced grid

Re: How to disable Client-Side-Error-Message-Bubbles

2010-06-02 Thread Kiss Izolda
Hello Dominik, you might need to utilize the validate property, without the error-message-bubbles just keep the validation properties intact and set clientValidation to false Izolda "Dominik Gätjens" írta: >Hello List,> > > > how can i disable the client-side-error-message-bubbles but can kee

Re: problems with client validation Internet Explorer 8 - no background images

2010-05-12 Thread Kiss Izolda
Hi Santiago, I have applied the patch for Tapestry 5.1.0.5 that changes the bundled version of Prototype to version 1.6.1, which is compatible with Internet Explorer 8. http://tapestry.formos.com/nightly/tapx/ http://tapestry.formos.com/nightly/tapx/ It has basically solved the problem, but the

problems with client validation Internet Explorer 8 - no background images

2010-04-06 Thread Kiss Izolda
Hello, I have set the form parameter: clientValidation=true and defined validations for the fields, like this:txtRowsPerPage-required-message=You must provide a value for: rows per page! when the validation fails the following div appears:You must provide a value for: rows per page! Using Intern

Re: using back button with clientValidation from

2010-01-29 Thread Kiss Izolda
Hi Sven, thanks for the sample I find editForm.clearErrors() quite useful. >@Component(parameters = {"value=message:button.value.cancel"})> >private Submit cancelButton;> I have tried the following: @Component(parameters = { "type=message:button" }) private Submit sbtBack; (button was defined as

using back button with clientValidation from

2010-01-29 Thread Kiss Izolda
Hi, I have forms with param clientValidation="true". I need two buttons: one submit and one back. As I havn't found any better solution I have iplemented the back button as org.apache.tapestry5.corelib.components.Sumbit (Java code has to be run before returning to the previous page). The proble