RE: List loaded twice from DB

2006-05-31 Thread Schulte Marcus
Hi Mark, the rationale behind "initialising" after use is aiming for minimal response time, I think: When a page is needed for a request it's always ready, properly initialised. Then, after the response is rendered, and the user is happily watching it, the cleanup is done in the background - thus

RE: Cleanup when the session expires

2006-05-31 Thread Schulte Marcus
you can use javax.servlet.http.HttpSessionAttributeListener instead. You have to register the class in web.xml hth, Marcus > -Original Message- > From: Christian Surlykke [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 30, 2006 10:52 AM > To: tapestry-user@jakarta.apache.org > Subject: Clea

Re: List loaded twice from DB

2006-05-31 Thread Nick Westgate
Hi Mark. Confusion over initial-value used to be a regular topic here for Tapestry beginners, but bot so much now. Resetting the property to null is the default behaviour, so there should be no need to do this. As for the "attach-value" idea, I haven't seen it discussed, but I suspect it may hav

Re: Directly requesting a page

2006-05-31 Thread Paul `Order in Chaos` Cantrell
You're off on the right foot, but you are missing the "enable friendly URLs" half of James's advice. See: http://jakarta.apache.org/tapestry/UsersGuide/friendly-urls.html On May 31, 2006, at 1:45 PM, Ryan Cuprak wrote: Yup, I am using version 4. That returns the page unprocessed - jwcid

PageRedirectException problem inside the service() method.

2006-05-31 Thread Leo Sakhvoruk
I'm working on getting a service working which provides a page with a link to an audio file. When the link is clicked the service() method connects to the audio url on another server and basically pipes the data stream to the requesting page. The service is also supposed to display an error on

Re: HTML editor for tapestry

2006-05-31 Thread Paul Cantrell
It is worth pointing out that neither of these works in Safari, the default browser on the Mac. FCK blames Safari: http://www.fckeditor.net/safari.html ...but the bottom line is, it's probably not a good idea to use these for a public site. Of course, if you're doing an internal app, i

[ANN] TapIDEA 0.4

2006-05-31 Thread Hugo Palma
Hey Tapestry community, TapIDEA 0.4 release is out. This is the first release that only works with IDEA Demetra(6.0), so you'll need to download that to use TapIDEA. The good news is that Demetra is actually quite usable right now so you won't have many unpleasant surprises. You can find a c

Problem with @Persist

2006-05-31 Thread Jean-Eric Cuendet (RPT)
Hi, I have 2 pages, one with a list of Users (UsersPage) and another with Details for a given User (DetailsPage). In UsersPage, I have a onEditUser() listener, which do: page = getDetailsPage() // <= With @InjectPage page.setUserId(selectedId); return page; And in DetailsPage, I have:

Re: HTML editor for tapestry

2006-05-31 Thread Alan Chaney
The best documentaiton on the dojo editor that I have found appears to be: http://dojotoolkit.org/docs/rich_text.html which you can find by clicking on a rather obscure link 3 levels down from the top page in the 'Manual' somewhere. My biggest gripe with dojo at the moment is that they spend

NullPointerException when using WML component @Go

2006-05-31 Thread Emil Jönsson
Hi all, I'm implementing a WAP interface for a project using Tapestry's WML components. The only code example I've found is one from the 3.0.4 component reference. I've modified this example a bit, but I can't get it working. When using the Go component, I get a NullPointerException (see below).

Re: Directly requesting a page

2006-05-31 Thread Ryan Holmes
That blog entry is about a year and a half old and doesn't apply to Tap 4. Try this: http://jakarta.apache.org/tapestry/UsersGuide/friendly-urls.html -Ryan Ryan Cuprak wrote: Yup, I am using version 4. That returns the page unprocessed - jwcid and everything. From the blog (http://howardle

Re: Issues with Label Components with Tapestry 4.0

2006-05-31 Thread Ryan Holmes
Your problem getting the span tag where you want it is due to how the FieldLabel component renders itself. Here's the relevant part of FieldLabel.renderComponent(): delegate.writeLabelPrefix(field, writer, cycle); writer.begin("label"); if (id != null) writer.att

RE: Loading resources from classpath in components

2006-05-31 Thread James Carman
Could you try using the thread context classloader? -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 3:39 PM To: Tapestry users Subject: Loading resources from classpath in components How do you load resources from classpath within a component? I

RE: Loading resources from classpath in components

2006-05-31 Thread James Carman
I think you're right. The ClassLoader that's assigned to the class generated by Javassist might not support that method. Print out the type of the classloader to make sure. -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 3:39 PM To: Tapestry us

Loading resources from classpath in components

2006-05-31 Thread Dan Adams
How do you load resources from classpath within a component? If I do: this.getClass().getClassLoader().getResourcesAsStream(path); then it returns null but if I do: writer.getClass().getClassLoader().getResourcesAsStream(path); then it returns the resource fine. I'm guesssing it has to do with

Re: RE: Does Tapestry work with XHTML?

2006-05-31 Thread Jesse Kuhnert
I agree completely that tapestry - as a web application framework - should definitely strive to be compliant with various standards whenever possible. The article I referenced was more to present a counter argument for anyone that is spending a lot of time making their app w3c compliant when they

Re: HTML editor for tapestry

2006-05-31 Thread Jesse Kuhnert
I think tacos also has an editor component that is based on the dojo Editor, which is used in the wiki system at http://jot.com. There doesn't appear to be a current published documentation set for this component on the tacos website but I know it's in there. (Sorry, I'm not working on tacos as m

RE: Directly requesting a page

2006-05-31 Thread Ryan Cuprak
Yup, I am using version 4. That returns the page unprocessed - jwcid and everything. From the blog (http://howardlewisship.com/blog/2004/12/tapestry-urls-half-way-there.html) I added the following to my web.xml: app *.html However, I then get the login page for the application- s

Re: Directly requesting a page

2006-05-31 Thread Shing Hing Man
If you are using Tap4, try http://127.0.0.1:8080/app?page=test&service=page Shing --- Ryan Cuprak <[EMAIL PROTECTED]> wrote: > Hello, > How do I directly invoke a page using the page > service? I have a test page at the root of the > application which I want to invoke. From the Manning > book

RE: Directly requesting a page

2006-05-31 Thread James Carman
Are you in tap4? If so, enable Friendly URLs and you can invoke the page by doing: http://localhost:8080/test.html -Original Message- From: Ryan Cuprak [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 2:33 PM To: users@tapestry.apache.org Subject: Directly requesting a page He

Directly requesting a page

2006-05-31 Thread Ryan Cuprak
Hello, How do I directly invoke a page using the page service? I have a test page at the root of the application which I want to invoke. From the Manning book I thought the url would look like: http://127.0.0.1:8080/app?service=page/test This is just a page for tinkering... was trying to tes

Re: HTML editor for tapestry

2006-05-31 Thread Shing Hing Man
There are a couple (FCKEditor and JSEditor) in tassle http://equalitylearning.org/Tassel/app Both of them have online demos at the following respectively. http://www.hannebauer.org/jseditordemo/ http://lombok.demon.co.uk/tapestry4Demo/app Shing --- Carl Pelletier <[EMAIL PROTECTED]> wr

HTML editor for tapestry

2006-05-31 Thread Carl Pelletier
Hi everyone, I looking for a HTML editor component. Someone can point me on where I can find that information ? I search on google and found that somebody have port FCK Editor to Tapestry, but The link doesnt work anymore. Thanks for any help ! Carl Pelletier

Re: List loaded twice from DB

2006-05-31 Thread Mark
Hi Nick, thanks for this response. The next question is probably to be decided by the Tapestry developers, but maybe somebody else has some insights on this or knows if this has been discussed before: Would it not make more sense to be able to specify a "attach-value" and a "detach-value" in

Re: List loaded twice from DB

2006-05-31 Thread Mark
Hi Marcus, Ok, I start to understand now. Are you sure that under production settings (with cache turned on) it will re-initialize the property when the page is put back in the pool, and not when it is checked out of the pool? I understand the thing about "putting a pristine instance of the p

Re: How to implement a 'application property with persistence strategy client:app' ?

2006-05-31 Thread Gerald Schöffel
Well, this is bad news :( I redesigned a part of my application to use only one 'flag' and implemented a strategy which is able to persist this flag in application scope (adding a simple '?myflag=myvalue' key/value pair to the url). I can control the lifecycle of the flag from inside the stra

Contributed ControlCheckbox, ControlledCheckboxes with given CheckboxGroup

2006-05-31 Thread Shing Hing Man
I have been trying out the contributed CheckboxGroup, ControlCheckbox and ControlledCheckbox. Everyhing is fine when the ControlCheckbox, ControlledCheckboxes are enclosed by a CheckboxGroup. However, I have problem when my CheckboxGroup does not enclose the ControlledCheckbox and ControlledChe

RE: Locale switching question

2006-05-31 Thread Schulte Marcus
Overriding the engine's setupForRequest does it for me: class YourEngine extends BaseEngine { protected void setupForRequest( RequestContext context ) { super.setupForRequest( context ); String lang = context.getParameter("lang"); if (lang!=null) setLocale( ne

Re: Tapestry 3.0.4 and Friendly URLs patch problem

2006-05-31 Thread Bernard Lange
Bernard Lange wrote: 'http://localhost:8080/edu-high/oswiata/?sp=logo.gif&sp=MDSUMGOESHERE' Correction. The link goes of course as: 'http://localhost:8080/edu-high/oswiata/asset.do?sp=logo.gif&sp=MDSUMGOESHERE' - To unsubscrib

Tapestry 3.0.4 and Friendly URLs patch problem

2006-05-31 Thread Bernard Lange
Hello all, I'm trying to set our Tapestry 3.0.4-based system to work with FURLs. I've followed information from the tutorial - applied patch and created Link and services implementations. So far so good. It seems to ALMOST work if I set up my se

RE: Tapernate Moved (finally)...

2006-05-31 Thread James Carman
It hasn't been published yet to Howard's maven repository. It's in mine. I don't have permission to publish to Howard's. -Original Message- From: 罗天 [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 5:07 AM To: Tapestry users Subject: Re: Tapernate Moved (finally)... Hi James,

RE: RE: Does Tapestry work with XHTML?

2006-05-31 Thread Kristian Marinkovic
+1 for XHTML and standards. btw. there is a firefox extension for validating pages "on the fly": HTML Validator: https://addons.mozilla.org/firefox/249/ IMHO every web developer should use it :) best regards, kris

Locale switching question

2006-05-31 Thread Bondarenko, Oleg
Hello folks, please share your experience. What is he best way to implement locale switching in Tapestry applications? Say, your application supports English and German and there is a link to switch from one language to another. The problem is: if you just change the engine's locale in the link

RE: Does Tapestry work with XHTML?

2006-05-31 Thread Townson, Chris
Please don't give up on the XHTML thing. Alex Russell is completely wrong in the article Jesse referred to. His condemnation of so-called "academics" (Alex's label) smacks of narrow-mindedness, lack of forethought and wilful unawareness of the very history of web development he briefly covers (

Re: Tapernate Moved (finally)...

2006-05-31 Thread 罗天
Hi James, But there isn't a tapernate folder under http://howardlewisship.com/repository/com/javaforge/tapestry/ 2006/5/29, James Carman <[EMAIL PROTECTED]>: Hugo, I just checked in a version of the ePluribus application that has been "Tapernatized." It's in a branch: http://svn.javaforg