t5: component render multiple elements?

2009-07-31 Thread Angelo Chen
Hi, Below is a source code of a component that renders: I'd like to do now is, a component that can render multiple tags like: < div> < span style="s1">text 1 < span style="s2">text 2 < /div> any idea how to achieve this? Thanks, boolean beginRender(MarkupWriter writer)

Re: How to fetch Form from within "afterSubmit" handler?

2009-07-31 Thread Vjeran Marcinko
I took a look at Select component and found the way to record error from within "afterSubmit" handler. I don't have to fetch Form component (though it's the way shown in documentation), but I can also inject ValidationTracker via Environmental and record error there. BTW, thanx for the tips bu

Re: GridSortModel

2009-07-31 Thread ppetrou
Thanks Jonathan, That fixed the problem. Here is my code t:grid rowsPerPage="20" pagerPosition="top" source="searchResultsList" row="auxUser" add="userselect" inPlace="true" lean="true" empty="." reorder="userselect, id, username, email, firstNameUppercase, lastName" t:parameter name="first

Re: [Tapestry 5]Upload component

2009-07-31 Thread Thiago H. de Paula Figueiredo
Em Fri, 31 Jul 2009 18:53:16 -0300, b...@umd escreveu: input t:type="upload" t:id="uploaded" value="uploadedValue" /> @Property private UploadedFile uploaded; @Property private String UploadedValue; Try input t:type="upload" t:id="uploaded" value="

[Tapestry 5]Upload component

2009-07-31 Thread b...@umd
I got this trouble while developing my tapestry-based web application. I do not understand why the component property "uploaded" is always null after submitting my form. Can you help ? .tml : input t:type="upload" t:id="uploaded" value="uploadedValue" /> .java : @Property private

Re: [Tapestry 5]FileUplaod component

2009-07-31 Thread b...@umd
Problem solved by using the tapestry-upload library. b...@umd wrote: > > I am trying to add a FileUpload component, on my tapestry-based web > application. So I retrieve this library : > http://commons.apache.org/fileupload/ > http://commons.apache.org/fileupload/ > > I found this component

[Tapestry 5]FileUplaod component

2009-07-31 Thread b...@umd
I am trying to add a FileUpload component, on my tapestry-based web application. So I retrieve this library : http://commons.apache.org/fileupload/ http://commons.apache.org/fileupload/ I found this component in the "commons-fileupload-1.2.1.jar" library. So I had it my maven dependencies. Here

Re: Tapestry 4.1 How to protect from "malicious" change on parameters?

2009-07-31 Thread Jonathan Barker
Adriana, I guess the bottom line is that you can never trust what comes from the client. That's why Tapestry validates fields server-side even when client side validation is enabled. That's also why you have to be very careful about using raw Inserts if you will be outputting data supplied by us

Re: Live class reloading and annotations in page classes

2009-07-31 Thread Howard Lewis Ship
If you have a ComponentClassTransformWorker that converts the annotation into meta-data on the ComponentModel, then you can just get the correct ComponentModel without loading the page itself. On Thu, Jul 30, 2009 at 1:35 PM, Robert Zeigler wrote: > > On Jul 29, 2009, at 7/297:00 PM , Thiago H. de

Re: How to fetch Form from within "afterSubmit" handler?

2009-07-31 Thread Thiago H. de Paula Figueiredo
Em Fri, 31 Jul 2009 12:04:32 -0300, Vjeran Marcinko escreveu: Actually you mentioned something that interested me before and is generalization of the problem I described below. :) There are frequent cases when I want to create some "edit" component for some domain class which on the web

Re: How to fetch Form from within "afterSubmit" handler?

2009-07-31 Thread Vjeran Marcinko
Actually you mentioned something that interested me before and is generalization of the problem I described below. There are frequent cases when I want to create some "edit" component for some domain class which on the web page requires more than one HTML form field. I noticed this AbstractFie

Re: How to fetch Form from within "afterSubmit" handler?

2009-07-31 Thread Thiago H. de Paula Figueiredo
Em Fri, 31 Jul 2009 02:13:14 -0300, Vjeran Marcinko escreveu: Hello, Hi! I have created multi-form-field component (eg, DateRangeEditor component that has two DatePickers inside that are used to set "start" and "end" dates for DateRange domain class). Why don't you subclass AbstractF

Re: [T5] Create audit annotation

2009-07-31 Thread Thiago H. de Paula Figueiredo
Em Fri, 31 Jul 2009 04:56:08 -0300, jose luis sanchez escreveu: It should be like that .. but i believe the @Persist tag stores the value of the field at runtime, so it should get the field value .. but looking at the tapestry source code i can't get HOW to do it .. do you think i'm righ

Re: How to fetch Form from within "afterSubmit" handler?

2009-07-31 Thread Vjeran Marcinko
Yes, but problem is that my component doesn't contain Form because Form is contained in one of "parent" components, so there is nothing to inject... - Original Message - From: "Bryan Lewis" To: "Tapestry users" Sent: Friday, July 31, 2009 3:51 PM Subject: Re: How to fetch Form from w

Re: How to fetch Form from within "afterSubmit" handler?

2009-07-31 Thread Bryan Lewis
This might help: http://tapestry.apache.org/tapestry5/guide/validation.html You can access your form and input components by injection, and then do form.recordError(field, ...). 2009/7/31 Vjeran Marcinko > Hello, > > I have created multi-form-field component (eg, DateRangeEditor component >

Re: somebody using ioko-tapestry-commons?

2009-07-31 Thread Ben Gidley
Ah scrub that - I just had a look and it is probably because I have ended with 2 copies of commons-logging in the path - 1 is the slf4j override (as below) and the other is commons-logging from ehcache. I have just commited a fix by excluding it. If you add co

Re: Testify injection only works once per test

2009-07-31 Thread Paul Field
Paul Field wrote on 28/07/2009 09:35:05: > rolfst wrote on 27/07/2009 14:13:51: > > Yes there are three groups involved in the suite. > > How ever no other test from other groups are available. > > It seems that when I remove the reference to groups in my testng.xml it > > works fine. > > > >

Re: Have a Master Checkbox For T5 Grid Component

2009-07-31 Thread sandeepraj singh
Thanks for your replies Robin and Shing, @Robin, Your answer did the trick. I created a master checkbox and added slave checkboxes too. I think a simple javascript would help me get check/uncheck and get master slave checkbox relations. Although i expected Tapestry to do that bit too for me(too

Re: how to use tapestry5

2009-07-31 Thread Peter Stavrinides
This is a good place to start: http://tapestry.apache.org/tapestry5.1/tutorial1/ Kind regards, Peter - Original Message - From: "Eldred Mullany" To: "Tapestry users" Sent: Friday, 31 July, 2009 15:04:58 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: RE: how to use tapestry5 I

Re: [T5.1] change style of client side validation

2009-07-31 Thread Robin K.
I already made that. We were trying to change the popup position , style and associated event. You just have to create a news JS that will override some of the existing Tapestry.js class and method. Look the Tapestry.ErrorPopup class in particular. You will need some Prototype functions: - Obje

RE: how to use tapestry5

2009-07-31 Thread Eldred Mullany
Its just been updated to the latest framework. It's a good place to start. http://jumpstart.doublenegative.com.au/home.html -Original Message- From: Prajesh Kacha [mailto:prajesh.ka...@coriolis.co.in] Sent: Friday, July 31, 2009 1:51 PM To: users@tapestry.apache.org Subject: how to use t

how to use tapestry5

2009-07-31 Thread Prajesh Kacha
Hello, I have used tapestry4, but I don't know how to start with tapestry5. Please can any one help me for this. -- Regards, Prajesh J. Kacha. Coriolis Technologies Pvt Ltd.

[T5.1] change style of client side validation

2009-07-31 Thread Michał Jedynak
Hello! Is there an easy way to change style of client side validation? I would like to have the same look as in server side (not a bubble), but I don't want to turn it off (by setting ' clientValidation="false" '). -- Michał -- View this message in context: http://www.nabble.com/-T5.1--chang

Re: somebody using ioko-tapestry-commons?

2009-07-31 Thread Ben Gidley
Aargh this is my mistake - all our poms have a dependency on jcl-over-slf4j. If you add the following in your pom that should fix it. Regarding the module file - I will fix that - we tend to include using @Submodule so probably wouldn't have noticed... org.slf4j jcl-over-slf4j 1.5.8 Ben Gidley

Re: GridSortModel

2009-07-31 Thread Jonathan O'Connor
Hi, in your tml file, provide an override for the usernamecell. You will need to provide 2 attributes, username and usernameUppercase. Or you can modify the DataSourceModel and add a usernameUppercase. The trick is to tell the grid to use the usernameUppercase as the column data, but then in t

Re: Have a Master Checkbox For T5 Grid Component

2009-07-31 Thread Inge Solvoll
http://tapestry.formos.com/nightly/ioko-tapestry-commons/tapestry-mixins/ On Fri, Jul 31, 2009 at 11:13 AM, Shing Hing Man wrote: > > In case you have not tried the following. > > I have a ControlCB component and a mixin ControlledCheckbox which turns a > standard Checkbox component to be a cont

somebody using ioko-tapestry-commons?

2009-07-31 Thread Lionell_Hutz
Hello. I'm Trying to use Tapestry Caching from ioko. First run I became a deployment-error with: uk.co.ioko.tapestry.caching.uk.co.ioko.tapestry.jquery.services.CacheModule Can this be right? I think 'No'. So I changed the Manifest-file and it deploys. Now I'm getting: # Error invoking constr

AjaxFormLoop: property changes have no effect

2009-07-31 Thread Andy Pahne
I am using an AjaxFormLoop component. There is no database involved, so the code should be simple. The add operation in onAddRowFromVehicles() works. I can see that because the list of vehicles has alwas the correct size. But Properties of Vehicle (like vehicle.model) are never updated, no m

Re: Have a Master Checkbox For T5 Grid Component

2009-07-31 Thread Shing Hing Man
In case you have not tried the following. I have a ControlCB component and a mixin ControlledCheckbox which turns a standard Checkbox component to be a controlled checkbox. There is an online demo (with source code of the demo) at http://lombok.demon.co.uk/tapestry5Demo/test/components/checkbox

Re: Have a Master Checkbox For T5 Grid Component

2009-07-31 Thread Robin K.
Hi Sandeep, You may try to use the tag to customize the display of your grid header cell. Here is a small quote for the official documentation: "The header for a column may be overridden in the same way, using a parameter name of propertyheader . The parameter block will provide the content ins

Re: combine-scripts issue

2009-07-31 Thread Sergey Didenko
Yes, please, see (and vote for) https://issues.apache.org/jira/browse/TAP5-712 P.S. I have another thought what can be the reason. I will investigate this. On Thu, Jul 30, 2009 at 2:49 PM, Henning Petersen < henning.peter...@daenen4.de> wrote: > > I am experiencing seemingly random problems when

Re: [T5] Create audit annotation

2009-07-31 Thread jose luis sanchez
It should be like that .. but i believe the @Persist tag stores the value of the field at runtime, so it should get the field value .. but looking at the tapestry source code i can't get HOW to do it .. do you think i'm right ? Em Thu, 30 Jul 2009 15:34:33 -0300, jose luis sanchez escreveu:

Re: t5: determine page's locale?

2009-07-31 Thread jose luis sanchez
As easy as @Inject private Locale currentLocale; localeLabel = currentLocale.getDisplayName(currentLocale); if (currentLocale.equals(Locale.FRENCH)) { } If i understood well what u need is the PersistentLocale. That's the one that takes the local from the url U can see more det

Have a Master Checkbox For T5 Grid Component

2009-07-31 Thread sandeepraj singh
Hi Guys, I wanted to have a master CheckBox while using the Grid Component. That CheckBox would be present at the Header Row of Grid Components, and allow to check the CheckBoxes below to be checked or unchecked. Is there any way else to do it except for Copying the entire Grid Component Source

Re: t5: using Messages in a service

2009-07-31 Thread Peter Stavrinides
What you could probably use in a service is ComponentSource: ie: ComponentSource.getPage(getByClass()).getComponentResources().getMessages(); Peter - Original Message - From: "Komiwes Robin" To: "Tapestry users" Sent: Friday, 31 July, 2009 10:13:10 GMT +02:00 Athens, Beirut, Bucharest,

Re: t5: determine page's locale?

2009-07-31 Thread Juan E. Maya
If i understood well what u need is the PersistentLocale. That's the one that takes the local from the url U can see more details here: http://tapestry.apache.org/tapestry5/guide/localization.html On Fri, Jul 31, 2009 at 5:36 AM, Angelo Chen wrote: > > Hi, > >        I'd like to determine locale

RE: t5: using Messages in a service

2009-07-31 Thread Komiwes Robin
This is because Messages is not a service. It can be injected into pages thanks to InjectWorker / InjectionProvider / CommonResourcesInjectionProvider which will call the ComponentResources of the current component/page. That's why, in fact, you can only inject Messages into a page or a component

Re: t5: using Messages in a service

2009-07-31 Thread P . Stavrinides
Hi Angelo, I don't think you can use Messages as a service dependency as Messages is based around a ResourceBundle, for which the lookup is usually provided by your page/component Class, kind of similar to ComponentResources in a way. Unless someone is aware of a workaround, you may be better o