Re: Tapestry query on URLs and Memcached

2008-08-26 Thread codetester
Thanks Toby and others! Toby, is there a difference in using Servlet v/s tapestry filter for caching the page response? As in, is one of the method more preferred? Because, in my case, I want to cache the response on certain pages like www.myhost.com/category/cat1/ and not www.myhost.com/category

Re: tapestry ASO

2008-08-26 Thread Alex Kotchnev
Wang, did you get a chance to review http://tapestry.apache.org/tapestry5/guide/appstate.html ? It seems to address some of your questions: > First, we use ASO object as well as HttpSession object, so is this the > reason that new ASO object be produced. I'm not sure what you mean by us

Re: T5 : The book - next steps

2008-08-26 Thread Thiago H. de Paula Figueiredo
Em Tue, 26 Aug 2008 23:30:41 -0300, Alex Kotchnev <[EMAIL PROTECTED]> escreveu: Here are a couple of the next steps that I think would be useful in moving the effort forward: Nice! I was thinking of posting a similar set of questions here . . . :) 1. Post a rough outline of the table of c

Re: T5 : Let's write a book !

2008-08-26 Thread Thiago H. de Paula Figueiredo
To begin with: I'll go with the majority and change my vote from XHTML/CSS to DocBook (specifically to the simplified version, as DocBook has mny tags :) and its tools and publishing advantages. From this line of this message on, this is just a suggestion for anyone that needs to wr

T5 : The book - next steps

2008-08-26 Thread Alex Kotchnev
Here are a couple of the next steps that I think would be useful in moving the effort forward: 1. Post a rough outline of the table of contents in the book (initially, probably on the wiki). I have a couple of ideas in mind, I think that a good starting point would be the same/similar chapters as

Re: T5 : Let's write a book !

2008-08-26 Thread Alex Kotchnev
I myself lean a little bit towards using DocBook for such an effort. Here are a couple of reasons I think it might be the right tool for the job: 1. As it was mentioned before, the multiple formats export option is extremely useful, as generally, I want to write content, and not necessarily spend

Re: Invalid requests - best practice?

2008-08-26 Thread Howard Lewis Ship
Don't forget about the "exception" event that allows a page to handle its own exceptions before they are passed off to the RequestExceptionHandler service. On Tue, Aug 26, 2008 at 3:12 PM, Geoff Callender <[EMAIL PROTECTED]> wrote: > I'm looking for thoughts on the best way to handle this situatio

Re: Tapestry query on URLs and Memcached

2008-08-26 Thread Toby Hobson
Tapestry 5 supports the url structure you mentioned using the "activation context". I'm not familiar with memcached but it is certainly possible to cache the entire page response using either a servlet or tapestry filter (i'm currently using a servlet filter for some high-load pages e.g. the home p

Re: Tapestry query on URLs and Memcached

2008-08-26 Thread Josh Canfield
The short answer is yes. There are hooks for doing both of those. The first is pretty standard look at the docs. For the second, while caching like this is not directly supported, you can add a hook in your code that can conditionally cache your entire page response. Take a look at PageRenderReques

Re: Tapestry query on URLs and Memcached

2008-08-26 Thread Fernando Padilla
A caching filter should have nothing to do with Tapestry, as long as you set the Expires headers properly. To that end, I don't believe tapestry has any support for caching built in. Though there is no general caching filter backed by memcache, you could look at Ehcache's implementation of ca

Invalid requests - best practice?

2008-08-26 Thread Geoff Callender
I'm looking for thoughts on the best way to handle this situation that almost every page has to deal with. Let's say the user chose http://myhost/myapp/products/123, so the Products page tries to get product 123 in onActivate. What if the product doesn't exist, or the user is not authorise

Tapestry query on URLs and Memcached

2008-08-26 Thread codetester
Hi, I am new to Tapestry and trying to evaluate it for a personal project ( I am current using struts2). Could someone help me in the following queries? 1) Is it possible to support the following URL structures out of the box? www.myhost.com/ www.myhost.com/category/ www.myhost.com/category/cat

Re: T5 : Let's write a book !

2008-08-26 Thread Carl Crowder
I'd be keen to help out, whatever the format used to write it. I assume there would be an editor to order it once it's written? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5 : Let's write a book !

2008-08-26 Thread Thiago H. de Paula Figueiredo
Em Tue, 26 Aug 2008 15:05:19 -0300, Chris Lewis <[EMAIL PROTECTED]> escreveu: As far as tools go, the reason I'd side with DocBook is that there is a plethora of processing tools available already, that can generate the book in a myriad of formats (PDF, HTML ..). We could probably do the same

T5: Handle session time out error on ExceptionReport

2008-08-26 Thread ronaldlee
Hi all, How to inform end users that the session has expired? Can I do it in the ExceptionReport page? Currently, when session expired and user try to submit a form or something (user has logged a while ago, and I use acegi), the server side will just throw a generic exception which will cause t

Re: T5 : Let's write a book !

2008-08-26 Thread Chris Lewis
I think I could contribute some content. I've written several wiki articles (several of which need updating by now) and have a few more I want to write. If this open book effort materializes, I would gladly shift my focus. For the sake of quality and manageability I think it be good to consider hav

[T4] Problems picking up .application file for portlets application

2008-08-26 Thread Zinger, Robert CTR DTIC A
Hello, I am trying to access the contrib library components from within my portlet. While all the classess and jars are there, the library does not seem to be getting loaded. I get the following exception: org.apache.hivemind.ApplicationRuntimeException Library 'Contrib' not found in applicatio

T5:Service defined in jar file not available

2008-08-26 Thread Dude.Checkitout
I need help in creating common set of services available for all of our T5 projects. I followed the rules for creating my own component library. In service package of this library, I created a "XXmodule" class and binded services that I want to expose to all other projects. binder.bind(MySer

Re: T5: Query regarding .tml file location

2008-08-26 Thread Howard Lewis Ship
Case is important in this one area of Tapestry: "Index.tml" will be found, "index.tml" will not. On Tue, Aug 26, 2008 at 7:53 AM, <[EMAIL PROTECTED]> wrote: > Thanks Howard. > > My environment is that which is provided when Maven pulls in the files when > doing the tutorial. I'm trying this in a

Re: T5 : Let's write a book !

2008-08-26 Thread SergeEby
I'll be happy to participate! /Serge Thiago H. de Paula Figueiredo wrote: > > Em Mon, 25 Aug 2008 18:56:52 -0300, Hugo Palma <[EMAIL PROTECTED]> > escreveu: > >> 2. I definitely think that this would have to be something new. Like you >> say, they have different purposes and it should be ke

Re: T5 : Let's write a book !

2008-08-26 Thread Thiago H. de Paula Figueiredo
Em Mon, 25 Aug 2008 18:56:52 -0300, Hugo Palma <[EMAIL PROTECTED]> escreveu: 2. I definitely think that this would have to be something new. Like you say, they have different purposes and it should be kept that way. +1 4. Like i suggested before, if we could find somewhere to host a Docboo

Re: T5 : Expanding Messages Catalog for localization from arbitrary source

2008-08-26 Thread Thiago H. de Paula Figueiredo
Em Mon, 25 Aug 2008 18:40:27 -0300, Inge Solvoll <[EMAIL PROTECTED]> escreveu: Ok, thanks, I'll try that! I already tried the following in my class that extends AbstractMessages: @Inject private HttpServletRequest request; @ApplicationState private User user; Which didn't work, both were nu

Re: T5: Query regarding .tml file location

2008-08-26 Thread photos
Thanks Howard. My environment is that which is provided when Maven pulls in the files when doing the tutorial. I'm trying this in a "bare bones" Tapestry application. p. Quoting Howard Lewis Ship <[EMAIL PROTECTED]>: It probably means that your build is not deploying the .tml file with

Re: T5: Query regarding .tml file location

2008-08-26 Thread Howard Lewis Ship
It probably means that your build is not deploying the .tml file with the rest of the web application. We need more information about your environment. On Tue, Aug 26, 2008 at 6:58 AM, <[EMAIL PROTECTED]> wrote: > The Tapestry website says: > > > - > Under a typical Maven director

tapestry ASO

2008-08-26 Thread wang_chunlin
Dear sir I write this letter to ask you some questions. As you know, we have use tapestry5.0.11 in our project, but it happened that the ASO object will disappeared some times and new ASO object will be created so that the data with the old ASO disappeared

RE: Tapestry 5, problem with foreign field

2008-08-26 Thread Jonathan Barker
Skipped right over the Comparable... I've always had to explicitly columns for related entities. In the cases where you have had success without "add", have you implemented Property Editor Overrides, or anything similar such that Tapestry would know how to wire it up correctly? > -Origina

RE: Tapestry 5, problem with foreign field

2008-08-26 Thread Artur_eol
Yes, I understand that, this is my QuestionType Class: package org.cimlvin.domain.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id;

T5: Query regarding .tml file location

2008-08-26 Thread photos
The Tapestry website says: - Under a typical Maven directory structure, the Java class for a component might be src/main/java/org/example/myapp/components/MyComponent.java. The corresponding template will be src/main/resources/org/example/myapp/components/MyComponent.tml.

RE: Tapestry 5, problem with foreign field

2008-08-26 Thread Jonathan Barker
You will need to explicitly add that field to your model. You should be able to just use add="questionType", or you can provide your own model. If you want your column to be sortable, then supply your own model, and have QuestionType implement Comparable. > -Original Message- > From: Ar

Tapestry 5, problem with foreign field

2008-08-26 Thread Artur_eol
Hello everybody, I hava problem with foreign key - field. This is my Java class: package org.cimlvin.domain.model; import java.io.Serializable; import java.sql.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchT

Re: LazyInitializationException

2008-08-26 Thread moritzgilsdorf
Thanks a lot Davor. Its working now. Davor Hrg wrote: > > remove @Persist from: > > @Persist >private Gene gene; > > and your onActivate method seems strange > perhaps if you return null instead of GeneDetails.class; > > the session is closed after renderring, not before > the renderri

Re: LazyInitializationException

2008-08-26 Thread Davor Hrg
remove @Persist from: @Persist private Gene gene; and your onActivate method seems strange perhaps if you return null instead of GeneDetails.class; the session is closed after renderring, not before the renderring is part of the request, but you chose to persist the Gene and redirect to your

Re: LazyInitializationException

2008-08-26 Thread moritzgilsdorf
I pass the Id of the Object to Detailspage and use onActivate() to query for the object I want to show in detail. My Details Page: public class GeneDetails { ... @Persist private Gene gene; @Inject private GeneDAO geneDAO; ... Object onActivate(Long id){ i

Antwort: Re: T5+EJB3

2008-08-26 Thread Kristian Marinkovic
you have to download it to see the examples (code):) "Natia Gdzelishvili" <[EMAIL PROTECTED]> 26.08.2008 10:47 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: T5+EJB3 can you give me an example of integration t5 ejb, in jumpstart i could not found On Tue

Re: T5+EJB3

2008-08-26 Thread Natia Gdzelishvili
I've found some thing thanks On Tue, Aug 26, 2008 at 12:47 PM, Natia Gdzelishvili < [EMAIL PROTECTED]> wrote: > can you give me an example of integration t5 ejb, in jumpstart i could not > found > > On Tue, Aug 26, 2008 at 12:36 PM, Kristian Marinkovic < > [EMAIL PROTECTED]> wrote: > >> you canno

Re: LazyInitializationException

2008-08-26 Thread Davor Hrg
you should post some code, but the most likely scenario is that you are persisting Entities in your page this is not good because every request has a different session, and the session that loaded the collection was closed in a previous request, you should remember your search parameters instea

Re: T5+EJB3

2008-08-26 Thread Natia Gdzelishvili
can you give me an example of integration t5 ejb, in jumpstart i could not found On Tue, Aug 26, 2008 at 12:36 PM, Kristian Marinkovic < [EMAIL PROTECTED]> wrote: > you cannot use ejb annotation in tapestry pages > > please take a look at > http://files.doublenegative.com.au/jumpstart/home.html >

Re: T5+EJB3

2008-08-26 Thread Kristian Marinkovic
you cannot use ejb annotation in tapestry pages please take a look at http://files.doublenegative.com.au/jumpstart/home.html for a EJB integration g, kris "Natia Gdzelishvili" <[EMAIL PROTECTED]> 26.08.2008 10:31 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re:

LazyInitializationException

2008-08-26 Thread moritzgilsdorf
Hi, I have a Problem with lazy loading. In my App I query a Database using Hibernate. The workflow is the following: Searchpage -> Resultspage -> Detailspage search by keyword -> Results in Grid -> Details

Re: T5+EJB3

2008-08-26 Thread Natia Gdzelishvili
can anyone help me... On Mon, Aug 25, 2008 at 5:00 PM, Natia Gdzelishvili <[EMAIL PROTECTED] > wrote: > Hello > I have a stateful session bean > UserCreatorBean which implements UserCreatorLocale > on a tapestry page when submit is done I want to call UserLocaleBeans's > some method, I am injec

Re: T5 : Expanding Messages Catalog for localization from arbitrary source

2008-08-26 Thread Inge Solvoll
Ahhh!! That was the missing part. Thank you so much, Hannes, I could never have figured this out myself. I still don't fully understand the code I just wrote :) I nice little bridge between tapestry and my custom messages system though! Inge On Tue, Aug 26, 2008 at 9:04 AM, Hannes Heijkenskjöld

Re: [T4.1] Interacting with Tap form from separate widget

2008-08-26 Thread Andreas Andreou
Hi, see http://tapestry.apache.org/tapestry4.1/components/form/hidden.html and the encode parameter - you want it to be false On Tue, Aug 26, 2008 at 1:47 AM, Jim <[EMAIL PROTECTED]> wrote: > Hello, > > I have a complex JavaScript input-widget, and I want to tie its value into a > Tapestry form.

Re: T5 : Expanding Messages Catalog for localization from arbitrary source

2008-08-26 Thread Hannes Heijkenskjöld
It has been a while since I worked with that code, so I don't remember the exact reason. But when customizing some parts of tapestry it seems that ordinary injects don't work. We did manual injects, by providing getters and setters and doing this in the AppModule: // Method for instantiating a