Re: T5: FileUpload and time out(revisited)

2008-07-16 Thread Angelo Chen
Hi Robert, Thanks for your suggestion, will give it a try. I notice that this time out problem is like this: in the development machine(Macbook pro) with Firefox3, everything works. in the production machine(Ubuntu) with firefox3, time out error occurs from time to time. now I change to Firefox

Re: question about inject annotation.

2008-07-16 Thread luna_guo
oh,i've got it. i put the wrong hibernate version. Filip S. Adamsen-2 wrote: > > Hi, > > What error message do you get? > > -Filip > > On 2008-07-16 16:37, luna_guo wrote: >> in tapestry 5.0.5 >> use tapestry-hibernate,to inject to Session,i write >> @org.apache.tapestry.annotations.Inject >

Re: question about inject annotation.

2008-07-16 Thread luna_guo
The error log is: [ERROR] 50:47(RecursiveServiceCreationCheckWrapper.java:createObject:64) Construction of service HibernateSessionSource failed: Error invoking service builder method org.apache.tapestry5.hibernate.HibernateModule.build(Logger, List, RegistryShutdownHub) (at HibernateModule.java:1

Re: question about inject annotation.

2008-07-16 Thread luna_guo
The Error Page is: Render queue error in Expansion[PropBinding[expansion Start(hello)]]: Error invoking service builder method org.apache.tapestry5.hibernate.HibernateModule.build(HibernateSessionSource, PerthreadManager) (at HibernateModule.java:78) (for service 'HibernateSessionManager'): Except

Re: T5: Stop Receiving Request

2008-07-16 Thread Angelo Chen
Hi Josh, This is interesting, is there a way to know before the file is sent the size of coming upload? this will be very handy to warn the user for a long file uploading operation or just simply rejects the upload as the file size is beyond the allowable size. Angelo joshcanfield wrote: > >

T4 Parent / Child Page Layout

2008-07-16 Thread Norman Franke
I'm wondering what's the best (and easiest!) way to design an editor for a bean with a list of other objects as attributes. In my case, I have a record that will define an SQL query and I want to allow the user to edit the SQL and all that, but also add parameters as a list. I want the user

Re: T5: Stop Receiving Request

2008-07-16 Thread Josh Canfield
By the time you are checking the file size the whole stream has already been read in by the MultipartServletRequestFilter. The default is to have unlimited upload size. You can add configuration to change the limit. I believe this will work, but I have not tested it. public static void contributeA

Re: T5 - T5Components - Loop Binding Error

2008-07-16 Thread Josh Canfield
try: the ${var:step} step On Tue, Jul 15, 2008 at 10:53 PM, Antonio Fernández - STAR Málaga < [EMAIL PROTECTED]> wrote: > > 1) I´m trying with a basic example of the loop binding: > > ... the template ...@ > > > the ${step} step > > > > > 2) I´m getting the following error: > > Could

Re: question about inject annotation.

2008-07-16 Thread Filip S. Adamsen
Hi, What error message do you get? -Filip On 2008-07-16 16:37, luna_guo wrote: in tapestry 5.0.5 use tapestry-hibernate,to inject to Session,i write @org.apache.tapestry.annotations.Inject Session _session; It works well. then i change to 5.0.13, the inject annotation changed. @org.apache.tape

updating a zone "manually"

2008-07-16 Thread Moritz Gmelin
Hi, I have a page that contains a zone (from an InPlace grid) that I'd like to update manually from within a javascript function. I can already call a function of the grid (subclass of the grid) that returns the script that should do this updating. The response Looks something like this {"

question about inject annotation.

2008-07-16 Thread luna_guo
in tapestry 5.0.5 use tapestry-hibernate,to inject to Session,i write @org.apache.tapestry.annotations.Inject Session _session; It works well. then i change to 5.0.13, the inject annotation changed. @org.apache.tapestry5.ioc.annotations.Inject Session _session; and i get a error message. can anyon

RE: Using HashMap with Tapestry 5

2008-07-16 Thread Yeeswara Nadapana (HCL Financial Services)
Thanks Jonathan, I have tried ${ognl:results.get('key')} and it works... -Original Message- From: Yeeswara Nadapana (HCL Financial Services) Sent: Wednesday, July 16, 2008 7:39 PM To: Tapestry users Subject: RE: Using HashMap with Tapestry 5 I couldn't exactly understand how t

RE: Using HashMap with Tapestry 5

2008-07-16 Thread Yeeswara Nadapana (HCL Financial Services)
I couldn't exactly understand how to do it. I am new to Tapestry. Can anyone help me further on this. -Original Message- From: Jonathan Barker [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 6:08 PM To: 'Tapestry users' Subject: RE: Using HashMap with Tapestry 5 I don't think t

Re: T5: FileUpload and time out(revisited)

2008-07-16 Thread Robert R. Sanders
One other thing to look into is www.swfupload.org (I think there may be one or two other similar projects). Its a Flash 'applet' that can be used to do HTTP uploads; its got pluses and minuses, but at least it has a little better feedback than the standard web browser upload. Angelo Chen wrot

Re: [T5] Testing body's value

2008-07-16 Thread Martin Papy
I don't want to test if the tag "body" of the html template has something, but I want to know if the is empty or not in the case of the Layout pattern : http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/layout.html Regards, Martin kristian.marinkovic wrote: > > hi martin, > >

RE: Using HashMap with Tapestry 5

2008-07-16 Thread Jonathan Barker
I don't think that functionality is available within the prop: binding. Check out the ognl: binding available through the tapestry5-components library. http://code.google.com/p/tapestry5-components/ > -Original Message- > From: Yeeswara Nadapana (HCL Financial Services) > [mailto:[EMAIL

Using HashMap with Tapestry 5

2008-07-16 Thread Yeeswara Nadapana (HCL Financial Services)
Hi, I have a HashMap with some values on my page class. How can I display the desired value (map.get("key")) on my page template. Can anyone help with the syntax? Regards, Yeeswar DISCLAIMER: ---

Re: [T4] simple types and client side validation /overriding validation profiles

2008-07-16 Thread Nils Preusker
Hi all, as a quick follow up on the client side validation issue in T 4.1.1 I posted earlier, I've just upgraded to T 4.1.5, which seems to have solved the problem. Nils On Mon, Jul 14, 2008 at 3:17 PM, Nils Preusker <[EMAIL PROTECTED]> wrote: > Hi all, I ran into a strange problem with client

Re: [T5] Testing body's value

2008-07-16 Thread Kristian Marinkovic
hi martin, T5 uses a simplified DOM tree to render the template. therefore you can access the root element and check via a simplified XPath query whether a certain part of the HTML template was rendered i'd to this check during the cleanupRender event of my page. The MarkupWriter will return the

Re: [T5] Testing body's value

2008-07-16 Thread Martin Papy
Nobody has an ideas about this ? Martin Martin Papy wrote: > > Hello everyone, > > I was wondering if there is a way to test if the will render > something or not. > > In my case, I use the Layout pattern for rendering my pages, but depending > on the situation, sometimes the body of the la

[T5] BeanEditForm how to add to (decorate) the default renderer of a field?

2008-07-16 Thread Michael Capper
Hi, i want to decorate some fields of a BeanEditForm in use. With decorate i mean keep the old but wrap some html around it (e.g. a , or wrap it in a ) like ... Consider the as a placeholder for whatever would render the original data. How would this be done? The field in

T5: Stop Receiving Request

2008-07-16 Thread Martin Kersten
Hi User-Group, I expirence the following Problem: Using Tapestry + GWT I send a UploadRequest to a Tapestry Page. Once the Upload is processed the HTTP-Page containing 'OK' is returned, otherwise the Name of the Exception/Reason. On the server side the T5-page checks the size of the reques

Re: [T5] BeanEditForm: Howto include complex properties?

2008-07-16 Thread Kristian Marinkovic
it is necessary to contribute your Address type to the DefaultDataTypeAnalyzer (it's not explicitly mentioned in that ticket :)): public void contributeDefaultDataTypeAnalyzer(MappedConfiguration configuration) { configuration.add(Address.class, "address") } Kristian Marinkovic <[E

Re: [T5] BeanEditForm: Howto include complex properties?

2008-07-16 Thread Kristian Marinkovic
hi Andy, take a look at https://issues.apache.org/jira/browse/TAPESTRY-2460 there is a working example in the comments. g, kris Andy Pahne <[EMAIL PROTECTED]> 16.07.2008 12:17 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema [T5] BeanEditForm: Howto include complex prop

[T5] BeanEditForm: Howto include complex properties?

2008-07-16 Thread Andy Pahne
Hi, I have a bean Customer: class Customer{ pribate Address address; // getter and setter omitted } Address is defined like that: class Address{ private String line1; private String line2; ... // getter and setter omitted } How can I make the BeanEditForm co

Re: [Possible SPAM Low] Different Assets depending on server name

2008-07-16 Thread Kristian Marinkovic
hi, you could provide an own binding for resolving your assets eg. ${serverasset:style.css} it think it was discussed some time ago on this mailing list . also take a look at http://wiki.apache.org/tapestry/Tapestry5HowTos g, kris ciaranw <[EMAIL PROTECTED]> 15.07.2008 17:27 Bitte antworte

tapestry-hibernate problem

2008-07-16 Thread luna_guo
i've tested the hibernate.cfg.xml and the mapping files. when i put them under classpath root. i get a exception page:do i need more configuration when use tapestry-hibernate? Render queue error in Expansion[PropBinding[expansion Start(hello)]]: Error invoking service builder method org.apache.t

Re: [T5] Create a new SymbolSource service

2008-07-16 Thread Julien Giovaresco
Thanks Filip ! I didn't see the alias override functionnality of Tapestry. It's working now ! Julien Filip S. Adamsen a écrit : Hi, Sounds like you need to provide an alias override. See http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html for information on how to do that