T5: appending additional information during http redirect?

2007-11-03 Thread Angelo Chen
Hi, I have codes like this: @InjectPage private Feedback feedback; Object onActionFromDelete(Long id) { feedback.setid(id); return feedback; } public Long onPassivate() { return currentUser.getId();} This generates this http request: http://192.168.254

Re: binding id to a property (not a liteal)

2007-11-03 Thread Marc A. Donis
Thanks, but when I put: in the template, the generated html then looks like this: Again, I can't seem to prevent it from interpreting the id as a literal string. However, if i put: in the template, the generated html then looks like this: So... it really seems that id is special. T

Typo in the documentation

2007-11-03 Thread Michael Courcy
Hi I'm new to tapestry so I'm not sure that's the right place to speak about that but there's a small typo in the documentation : http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html In the usage of the count component : Ho! Where actually it should be Ho! Michae

Re: Typo in the documentation

2007-11-03 Thread Howard Lewis Ship
Thanks! On Nov 3, 2007 6:55 AM, Michael Courcy <[EMAIL PROTECTED]> wrote: > Hi > > I'm new to tapestry so I'm not sure that's the right place to speak > about that but there's a small typo in the documentation : > > http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html > > In th

get property from .app file

2007-11-03 Thread cometta
may i know how to set a property in .app file and read it into our page. for instance, i have to create a property "applicationurl" in app and read that in my page. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: get property from .app file

2007-11-03 Thread Jesse Kuhnert
I think you can use the app-property: prefix to do that (or meta: ) : http://tapestry.apache.org/tapestry4.1/usersguide/hivemind.html On Nov 3, 2007 11:17 AM, cometta <[EMAIL PROTECTED]> wrote: > may i know how to set a property in .app file and read it into our page. > for instance, i have to cr

T5: Contributing a custom PageTemplateLocator, did I find a bug?

2007-11-03 Thread Mike Lake
I'm trying to create my own resource type in addition to the ClasspathResource (for returning a URL of "classpath:") and the ContextResource(for returning a URL of "context:") What I'm trying to achieve is to add a third resource type which I'm calling HttpResource(so I can return a URL of

Re: get property from .app file

2007-11-03 Thread cometta
thanks jesse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

example code having checkbox on tableview

2007-11-03 Thread cometta
can anyone give me an example on displaying a checkbox on each row of tableview and action i can check which checkbox is checked ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

tapestry-hibernate conflicts hibernate-search

2007-11-03 Thread T. Papke
Hi, in my project, i currently use hibernate 3.2.5 (and hibernate-search 3.0.0) together with tapestry 5.0.6 (and tapestry-hibernate module). The "normal" Hiberate works as excpeted, but the hibernate fulltext-search runs against an exception - i think because of wrong init of the hibernate s

Initialize objects - like in HttpServlet's init()

2007-11-03 Thread llonely
Hi all, I am new on Tapestry and try to become familiar with it, mostly through this forum and the official site. I am trying to migrate a simple servlet into tapestry. I find myself search for days for tasks that seem simple. Currently I am trying to achieve the following: a) Load some init pa

T5.0.6 : How to format a number in a TextField

2007-11-03 Thread Shing Hing Man
In Tap 4, I can use translator:number,pattern=0.# (which used NumberTranslator.java) to format the numeric value in a TextField component. How can this be done in T5.0.6 ? I have checked the T5.0.6 API, it looks as though T5.0.6 has no NumberTranslator.java . Must I implement a NumberTranslat

Re: T5.0.6 : How to format a number in a TextField

2007-11-03 Thread Marcus
Hi Shing, Try this http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5.0.6 : How to format a number in a TextField

2007-11-03 Thread Marcus
Sorry, this is to output, not used in Textfield - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

T5 how to control login state

2007-11-03 Thread lyifan
I am a 100% new user for tapestry. Currently I'm working on 5.0.5, but I got stuck from the just beginning. I want to implement a kind of user access controller. All the pages, excepts for the login page, can be accessed by authenticated users only. users who hasn't passed the authentication will

Re: T5 how to control login state

2007-11-03 Thread Marcus
HI lyifan, Your first code should work, as Start.java extends BasePage. just try: ... public Object onActivate() ... Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5 how to control login state

2007-11-03 Thread Marcus
Add getters and setters ASO. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Initialize objects - like in HttpServlet's init()

2007-11-03 Thread Ulrich Stärk
T5 hast its own IoC container incorporated for which you could write a new service and have it injected into your page classes using the @Inject annotation. For more information consult the Tapestry IoC documentation at http://tapestry.apache.org/tapestry5/tapestry-ioc/. Uli llonely schrieb:

Re: T5 how to control login state

2007-11-03 Thread lyifan
Thank you Marcus. But I can't understand where to add getters and setters. Do you mean put getters and setters to ASO class or to a certain class where declares an ASO? Marcus-11 wrote: > > Add getters and setters ASO. > > - >

T5.0.6 I'm lost after upgrade T5

2007-11-03 Thread Michael Bernagou
Everything worked perfectly, but since I upgraded to T5.0.6, it fails for an understandable reason! I replaced my html by tml and placed them in the right place. I upgrade log4j to get the latest and add the new logging api (to avoid runtime error). The thing is really strange... My Start.tml ht

T5.0.6 - How to use GridRows

2007-11-03 Thread CarstenM
Hello! Still quite new to Tapestry. After my first steps I had a break because of job load. So still not really familiar with it. I used a grid already for an overview table but now I would like to create a form. Looking for a way to create a form which contains a table/grid. The table row (Grid

Re: T5 how to control login state

2007-11-03 Thread lyifan
It still doesn't work, Marcus I've changed the onActivate method to public Marcus-11 wrote: > > Add getters and setters ASO. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED

Re: tapestry-hibernate conflicts hibernate-search

2007-11-03 Thread Ted Steen
This happens because the session becomes a proxy when you make a service of it. I guess you have a thread scope on the hibernate session? well, then tapestry-ioc will wrap the session in a proxy that will give you a new session per request. Actually its neither a tapestry-hibernate nor hibernate-s

Re: T5.0.6 I'm lost after upgrade T5

2007-11-03 Thread Josh Canfield
> > @InjectPage > private Home home; > The error message seems a little strange, but the code above is injecting a page called Home. Does that page load correctly if accessed directly? Josh On 11/3/07, Michael Bernagou <[EMAIL PROTECTED]> wrote: > > Everything worked perfectly, but since I u

Re: T5 how to control login state

2007-11-03 Thread Josh Canfield
Your BasePage class should be in /src/main/java//base/ Your Start class should be in /src/main/java//pages/ and extend BasePage Try adding a breakpoint in your BasePage's onActivate, and your Start's onActivate to make sure they are getting called. Josh On 11/3/07, lyifan <[EMAIL PROTECTED]> wr

tapestry cache and naming problem

2007-11-03 Thread Neo Anderson
I have a project which consists of web and ejb modules. The web module exploits Tapestry 4.0.2 and ejb is version 3. The EJB runs on Jboss 4.2.2. The Operating System is Gnu/ Linux with kernel 2.6.16. My first questions is, according to the document, I am able to disable tapestry cache in

Re: T5.0.6 I'm lost after upgrade T5

2007-11-03 Thread Nick Westgate
Try adding setters to your fields. Cheers, Nick. Josh Canfield wrote: @InjectPage private Home home; The error message seems a little strange, but the code above is injecting a page called Home. Does that page load correctly if accessed directly? Josh On 11/3/07, Michael Bernagou <[EM

Re: T5 how to control login state

2007-11-03 Thread Nick Westgate
You've had the misfortune to run into this bug quicker than most. Follow the advice here: http://wiki.apache.org/tapestry/Tapestry5RootPathEmptyResponse And everyone, please vote for this bug! Cheers, Nick. Josh Canfield wrote: Your BasePage class should be in /src/main/java//base/ Your Star

RequestPageCache null during onActivate()

2007-11-03 Thread Ted Steen
I need the RequestPageCache in onActivate() but its null, is there any other way to get a page during that phase? -- /ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: RequestPageCache null during onActivate()

2007-11-03 Thread Ted Steen
Sorry, its not null. my bad.. 2007/11/4, Ted Steen <[EMAIL PROTECTED]>: > I need the RequestPageCache in onActivate() but its null, is there any > other way to get a page during that phase? > > > -- > /ted > -- /ted - To unsub

Re: T5 how to control login state

2007-11-03 Thread Marcus
HI lyifan, Rename page Login to Start, /src/main/java//base/ProtectedPage.java public class ProtectedPage { @ApplicationState private Visit _visit; // getters and setters of _visit public Object onActivate() { if (!_visit.isLogged())

Re: tapestry cache and naming problem

2007-11-03 Thread Neo Anderson
I found out how to solve these problems. For the first problem, that is because the password field requires one more attribute to be set in the .page configuration file. The textField needs to the property of hidden set to be true to enable the start sign on the screen.