Re: T5: integer input box query

2009-03-26 Thread tapestryphoto
Hi Thiago, Thanks for your suggestion. Yes, the CSS is included correctly. The problem goes away when I use an Integer rather than an int. p. Quoting "Thiago H. de Paula Figueiredo" : Check if the Tapestry CSS file is being correctly included in your pages, because that's the one who hides

Re: T5: auto class reloading no longer works

2009-03-26 Thread tapestryphoto
Quoting Borut BolĨina : First, calm down :-) :-) Try with fresh maven tapestry 5 project. Thanks, although everything in my project is working and I'd rather understand how the class reloading works and how I can fix my non-working version than start from scratch. Perhaps http://

T5: integer input box query

2009-03-26 Thread tapestryphoto
I have an input box that accepts an int. It is enabled/disabled by a selection from a combobox. Whenever it is enabled it shows a red border and red X next to it, even though the value in the box is correct (and is initialised with a value when the page is initially shown). Here is my m

T5: auto class reloading no longer works

2009-03-26 Thread tapestryphoto
A while ago I had a problem with Maven deciding to wreck my Eclipse environment. I managed to fix all the problems, but I noticed class reloading no longer works. It's beginning to drive me insane, having to restart Jetty all the time... Where abouts should I look to get class reloading wo

Re: Partly OT: problems with Eclipse / T5 (solved)

2009-03-18 Thread tapestryphoto
Please ignore previous posting. Problem (2) was caused by further problems courtesy of Maven screwing up my Eclipse environment. All fixed now. Apologies! p. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.or

Re: Partly OT: problems with Eclipse / T5

2009-03-18 Thread tapestryphoto
0) at org.apache.tapestry5.corelib.components.Form.onAction(Form.java) Quoting Andy Pahne : Sounds interesting somehow. Do you have some code to see? tapestryphoto schrieb: Hi, I'm using Jetty/T5/Eclipse. Earlier this-afternoon I made the mistake of doing a Maven &qu

Partly OT: problems with Eclipse / T5

2009-03-17 Thread tapestryphoto
Hi, I'm using Jetty/T5/Eclipse. Earlier this-afternoon I made the mistake of doing a Maven "Update Project Configuration" and Maven anihilated my build setup. I have set the classpath back to what it was and everything compiles and the application works as expected EXCEPT: 1) I no longe

Re: T5: timeout exception when using Grid - Solved, but query

2009-01-30 Thread tapestryphoto
nType"); model.add("parentOrganization"); } public BeanModel getModel() { return model; } - Ville tapestryphoto wrote: My grid data required a model. In copying this in from an example I had: @SuppressWarnings("unchecked") @Property

Re: T5: timeout exception when using Grid - Solved, but query

2009-01-29 Thread tapestryphoto
ain rather than @Persist, where should I be initialising my model? thanks, p. Quoting tapestryphoto : Further investigation reveals this is happening due to the page timing out and being returned to the pool by the timeout specified by the configuration option: tapestry.page-pool.active

Re: T5: timeout exception when using Grid

2009-01-29 Thread tapestryphoto
pool. Unfortunately I'm not very knowledgable about this - even after reading the relevant info on page lifecycles. Can someone please shed some light on this? p. Quoting tapestryphoto : Hi! I have a form and a grid component on one of my pages (the grid is outside the form). Al

T5: timeout exception when using Grid

2009-01-28 Thread tapestryphoto
Hi! I have a form and a grid component on one of my pages (the grid is outside the form). All operates normally (using Jetty) unless I leave it for 10 minutes. If I then attempt to perform a submit I get the Null Pointer Exception listed below. It only happens on pages with the grid comp

T5: how to invalidate session on logout?

2009-01-23 Thread tapestryphoto
I need to be able to reset everything when the user logs out. Currently @Persist objects are still available if the user logs in again with the same browser instance. This isn't very optimal. I have searched the mail archive and found some comments on this issue made at the end of 2007. I'm

How to specify onUnload in ?

2009-01-15 Thread tapestryphoto
Hi, I have a template component that is used by all my pages. I'd like to be able to specify for one of those pages. Unfortunately it doesn't seem to matter what way I try I cannot get it to work. I can't include a in the page because then there will be two such tags (Firefox doesn'

Re: [T5]: query regarding streaming data

2008-12-16 Thread tapestryphoto
public InputStream getStream() throws IOException { return new ByteArrayInputStream(pdf); } public void prepareResponse(Response response) { } } TestPage.tml: Open a PDF J On Dec 15, 2008, at 7:59 AM, tapestryphoto wrote: Thanks Olle, However, reading the docs I see that t

Re: [T5]: query regarding streaming data

2008-12-15 Thread tapestryphoto
eamResponse applies to Components only. Hmmm. ! p. Quoting Olle Hallin : Yes, there is. Let your handler method return a StreamResponse object. See http://tapestry.apache.org/tapestry5/guide/pagenav.html and http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/StreamRespo

[T5]: query regarding streaming data

2008-12-15 Thread tapestryphoto
Hi, possibly not Tapestry specific and I'm not knowledgable enough on this subject, so apologies. I would like to be able to display a PDF that I obtain from a database using Hibernate via Tapestry. Is there a way to stream the data? thanks, p.

Re: T5: how to detect session timeout?

2008-12-03 Thread tapestryphoto
se visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. - Original Message - From: "tapestryphoto" <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Wednesday, 3 December, 2008 1:42:53 PM GMT +02:00 Athens, Beirut, Bucharest, Ista

T5: how to detect session timeout?

2008-12-03 Thread tapestryphoto
Hi, I am trying to deal with session timeouts in T5. Rather than extend a base class I was hoping I might be able to use an Annotation. However, I find that when the user activates a link or presses a button on a timed-out session that the dispatcher is not being called early enough to det

T5:Pages now broken under 17

2008-11-26 Thread tapestryphoto
Hi, I've just moved from 5.0.15 to 5.0.17. I now find I get this: Render queue error in BeginRender[Administration:pagelink_1]: Error persisting field SearchMetadata:allKeywords: Persistent fields may not be updated until after the page has finished loading. This may be due to a persisten

Re: Tapestry 5, WAR files and deployment

2008-11-07 Thread tapestryphoto
maven on my laptop simply by extracting it into a directory as my user, then adding the bin directory to my user's path.. tapestryphoto wrote: Quoting Olle Hallin <[EMAIL PROTECTED]>: Does it work from the command line? Olle I tried mvn war:war from the project directory. Biza

Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread tapestryphoto
Quoting Olle Hallin <[EMAIL PROTECTED]>: Does it work from the command line? Olle I tried mvn war:war from the project directory. Bizarrely it gives even more problems. I find Maven very frustrating... [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.maven:maven-archi

Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread tapestryphoto
ot familiar with Jetty): http://markmail.org/message/csnnytlurso7b3ut --James -----Original Message- From: tapestryphoto [mailto:[EMAIL PROTECTED] Sent: November-06-08 10:19 AM To: users@tapestry.apache.org Subject: Tapestry 5, WAR files and deployment Hi, Having gone through the Tapestry t

Tapestry 5, WAR files and deployment

2008-11-06 Thread tapestryphoto
Hi, Having gone through the Tapestry tutorials, got to grips with it, developed a small application and have got it running well I'd like to actually deploy it. I notice there are no documents, examples or tutorials (as far as I can see) that address how to do this. Even the "Tapestry 5"

Re: T5: cannot use Grid's rowIndex in page class

2008-10-28 Thread tapestryphoto
By chance I used one for the first time this-morning. I have: t:rowIndex="rowIndex" t:empty="There are currently no search results" t:model="mymodel" t:row="listItem"> ... >

Re: T5: help required: Context and PageLink

2008-10-28 Thread tapestryphoto
-- viewMetadata.tml More on Assets: http://tapestry.apache.org/tapestry5/guide/assets.html - Tobias tapestryphoto schrieb: I have a PageLink thus: > and code thus: public void onActivate(long

T5: help required: Context and PageLink

2008-10-27 Thread tapestryphoto
I have a PageLink thus: > and code thus: public void onActivate(long metadataId) { System.out.println("METADATA ID = "+metadataId); this.metadata = repository.getMetaDataById(metadataId); } Although every time I click on the link I get taken to the correc

Re: T5: Grid bug - Grid is not collection type aware

2008-10-24 Thread tapestryphoto
Ok, after some experimentation I can see that I can do this by providing a BeanModel. p. Quoting tapestryphoto <[EMAIL PROTECTED]>: If the source for a grid is a collection which has a generic type of an abstract class and the list contains concrete classes which are not all of th

Re: [T5] editing a looped list of objects' properties in a form

2008-10-24 Thread tapestryphoto
Quoting Andy Pahne <[EMAIL PROTECTED]>: tapestryphoto schrieb: I think you might find (as I did - see my 2nd original posting on this issue) that the objects being updated in the loop are different instances to the ones that are specified. It seems to be a serialization proble

T5: Grid bug - Grid is not collection type aware

2008-10-24 Thread tapestryphoto
If the source for a grid is a collection which has a generic type of an abstract class and the list contains concrete classes which are not all of the same subclass then it throws: Render queue error in BeginRender[SearchByTag:grid_0.rows.gridcell]: ConcreteB cannot be cast to ConcreteA

Re: [T5] editing a looped list of objects' properties in a form

2008-10-24 Thread tapestryphoto
Quoting Andy Pahne <[EMAIL PROTECTED]>: That were our web designers. But it worked that way in many other form components. So I did not think about it any further. Anyway, I tried . There's no difference in the behaviour, regardless of which type of Submit is used. I think you might find (

Re: [T5] editing a looped list of objects' properties in a form

2008-10-23 Thread tapestryphoto
form control element components (TextField, etc.) work inside loops. However, some additional configuration is needed to make this work efficiently. " Unfortunatly it does not say what "additional configuration" is needed to make that work. Andy tapestryphoto wrote: This looks s

Re: [T5] editing a looped list of objects' properties in a form

2008-10-23 Thread tapestryphoto
This looks similar to my problem (see both of my posts from a day or so ago). It appears Loops in a Form do not update the properties. Perhaps this is broken in Tapestry. I guess it must be a bug. Unfortunately I'm not knowledgeable enough about Tapestry to provide an answer and I await so

T5: Query about BeanModel

2008-10-22 Thread tapestryphoto
Am I correct in thinking that the default BeanModel only recognises the standard property types (String, double, etc, etc)? I have a bean with several properties, one of which is one of my own types. When I attempt to use this bean in Grid I am unable to specify the property in the includ

Re: T5: looping in form not updating values

2008-10-21 Thread tapestryphoto
must be being created by the serialization mechanism. Any further thoughts appreciated as this has me stumped. p. Quoting tapestryphoto <[EMAIL PROTECTED]>: Hi, Bit of a simple query. I'm not sure what I'm doing wrong as I've followed the example given in the T5 component

T5: looping in form not updating values

2008-10-21 Thread tapestryphoto
Hi, Bit of a simple query. I'm not sure what I'm doing wrong as I've followed the example given in the T5 component reference (bar using an encoder - my values are strings so I don't see why I should need one). I'm trying to implement a dynamic form where a user can add extra keyword fie