Re: T5: 5.0.5 page parent class constructor

2007-09-18 Thread Johan Maasing
Hi, no it was not in the root.base package. I didn't know about that one. Probably explains it, will try later tonight. I guess Tapestrys definition of POJO is a bit different from mine :-) Cheers, Johan On 9/19/07, Josh Canfield <[EMAIL PROTECTED]> wrote: > Hey Johan, > > I haven't had a need to

Re: [T5] render once per request mixing.. ideas?

2007-09-18 Thread Fernando Padilla
I just looked at some code and it's exciting. Is this how we can override the MarkupWriter and the Documents used??? But i wonder, I didn't see right way who puts the PageRenderSupport object in. :) Nick Westgate wrote: > I haven't really used it, but look at Environmental: > http://tapestry.ap

Re: [T5] render once per request mixing.. ideas?

2007-09-18 Thread Fernando Padilla
Wow. That's cool. I'll go look at the code to see what else uses Environment service. Nick Westgate wrote: > I haven't really used it, but look at Environmental: > http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/services/Environment.html > > > Look at some example

Re: [T5] render once per request mixing.. ideas?

2007-09-18 Thread Nick Westgate
I haven't really used it, but look at Environmental: http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/services/Environment.html Look at some example uses like in Form: http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/src-html/org/apache/tapestry/corelib/com

Re: T5: outputRaw

2007-09-18 Thread Nick Westgate
That's the same issue, and as Howard says it has been fixed. To use the fix you have to build T5 or wait for a snapshot. Cheers, Nick. Marcelo Lotif wrote: Righ Howard, but some people wrote this on a recent thread regarding a Loop+expansions problem: On 9/17/07, Michael Gottschalk <[EMAIL P

Re: T5 Momentum

2007-09-18 Thread Angelo Chen
Hi Jon, Maybe you can give a short sample of ajax with T5 just to get started? or just some ideas? thanks. A.C. jglanz wrote: > > unfortunately I don't own the code that 'm working on right > nowthat being said when this project ends; I can definitely toss > some of it together and nee

Re: T5: Render a block or component programatically

2007-09-18 Thread Ted Steen
and that is exactly what I am going to do! thanks! 2007/9/19, Josh Canfield <[EMAIL PROTECTED]>: > I had a similar problem. What I ended up doing was returning Object from the > beginRender method and either returning the block parameter or using the > writer and returning null. > > To simulate lo

Re: T5: Render a block or component programatically

2007-09-18 Thread Josh Canfield
I had a similar problem. What I ended up doing was returning Object from the beginRender method and either returning the block parameter or using the writer and returning null. To simulate looping you can store your tokenizer in a page variable and return st.hasMoreTokens from afterRender, if it's

Re: T5: Render a block or component programatically

2007-09-18 Thread Ted Steen
Im looking for something similar to T4 IComponent.renderBody(IMarkupWriter writer, IRequestCycle cycle) 2007/9/18, Ted Steen <[EMAIL PROTECTED]>: > I would like to do this, > > @BeginRender > final void begin(MarkupWriter writer) > { > StringTokenizer st = new StringTokenizer(

Re: [T4] How to get image using ongl ?

2007-09-18 Thread Kevin Menard
You need to inject the asset on a public abstract method named getMyImage() with a return type of IAsset. -- Kevin On 9/18/07 7:20 PM, in article [EMAIL PROTECTED], "David Yu" <[EMAIL PROTECTED]> wrote: > Hi, > I would like to get image to display and it is not working if I try to get > asset

Re: T5: 5.0.5 page parent class constructor

2007-09-18 Thread Josh Canfield
Hey Johan, I haven't had a need to define a custom constructor in my page classes, or their base classes, I'm just use the default constructor. You mentioned that your base class was in "another package", but is it in the special "base" package next to your "pages" package? http://tapestry.apache

[T4] How to get image using ongl ?

2007-09-18 Thread David Yu
Hi, I would like to get image to display and it is not working if I try to get asset from ognl. Where getMyImage is a method to return a String "fish" public String getMyImage(){ return "fish"; } Thanks

T5: Render a block or component programatically

2007-09-18 Thread Ted Steen
I would like to do this, @BeginRender final void begin(MarkupWriter writer) { StringTokenizer st = new StringTokenizer(template, " "); while(st.hasMoreTokens()) { String token = st.nextToken(); if("TEST".equals(token))

[T5] render once per request mixing.. ideas?

2007-09-18 Thread Fernando Padilla
Hi. I want to write a "SingletonRender" mixin. That will let a component be rendered only once during the request... (even if there are multiple instances of a component, etc ) 1) what is the best way to store state, only during the duration of the render cycle? I would say Request.setAttribute

Re: Submitting Forms with Parameters with Tapestry

2007-09-18 Thread Marcelo C. de Freitas
weird. AFAIK there is no required parameter in @Any component. Are you sure your Any component hasn't been overwritten? Or did I get the error message wrong? 2007/9/18, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Thanks very much for your response. I tried that and got the following > error: > >

Re: Submitting Forms with Parameters with Tapestry

2007-09-18 Thread deborah . mills
Thanks very much for your response. I tried that and got the following error: [9/18/07 13:54:27:503 PDT] 37a21fc3 AbstractEngin I org.apache.tapestry.engine.AbstractEngine TRAS0014I: The following exception was logged org.apache.tapestry.ApplicationRuntimeException: Required parameter element of

T5: 5.0.5 page parent class constructor

2007-09-18 Thread Johan Maasing
I was wondering if the public no-args constructor requirement on page classes also extends to their parent classes. This is my Start.html --- [Index] --- My Index.html contains only static text. My Start.java is an empty POJO. My Index.java looks like this (removed package): --- publ

Re: Select component with Enums

2007-09-18 Thread andyhot
Take a look at LabeledPropertySelectionModel of T4... It can decorate every other Model - it simply adds an entry with a configurable label on top. Robin Helgelin wrote: On 9/18/07, Christoph Jaeger <[EMAIL PROTECTED]> wrote: Now I would like to have the same drop down list, only with an

RE: Select component with Enums

2007-09-18 Thread Mark Stang
That was my solution, but then someone complained that it wasn't really a valid part of the list. Mark J. Stang Software Engineer office: +1 303.468.2900 Ping Identity -Original Message- From: Robin Helgelin [mailto:[EMAIL PROTECTED] Sent: Tue 9/18/2007 2:44 PM To: Tapestry users Subje

Re: Select component with Enums

2007-09-18 Thread Robin Helgelin
On 9/18/07, Christoph Jaeger <[EMAIL PROTECTED]> wrote: > Now I would like to have the same drop down list, only with an "- empty > -" entry as first entry (meaning: no color was selected, > preferredColor==null). Is there an easy way to define this (something like > > t:empty="- empty -"/> > > wo

Select component with Enums

2007-09-18 Thread Christoph Jaeger
Using the select component with an Enum is very convenient: ... ... to display a html drop down list showing all entries defined by the Enum Color. Now I would like to have the same drop down list, only with an "- empty -" entry as first entry (meaning: no color was selected, preferredColor==n

Re: T5: 5.0.5 is there a list of dependecies on the site?

2007-09-18 Thread Robin Helgelin
On 9/18/07, Johan Maasing <[EMAIL PROTECTED]> wrote: > Is there a human readable list somewhere which dependencies I need in > my web-inf/lib for running tapestry 5.0.5? > I tried with: tapestry-core-5.0.5.jar, tapestry-ioc-5.0.5.jar, > javassist-3.0.jar, commons-logging-1.0.4.jar > But then I run

T5: 5.0.5 is there a list of dependecies on the site?

2007-09-18 Thread Johan Maasing
Is there a human readable list somewhere which dependencies I need in my web-inf/lib for running tapestry 5.0.5? I tried with: tapestry-core-5.0.5.jar, tapestry-ioc-5.0.5.jar, javassist-3.0.jar, commons-logging-1.0.4.jar But then I run into problems so I ran the maven archetype and package of the t

Re: Can't build from source

2007-09-18 Thread yunta_gohan
Thanks Paulo, now everything works great. I think you must run maven with the option : -cpu or -U to install the plugins. Daniel Meza escreveu: After run "mvn install" get : "[ERROR] BUILD ERROR [INFO] [INFO]

Re: Submitting Forms with Parameters with Tapestry

2007-09-18 Thread Marcelo C. de Freitas
try using @Any instead of @Insert 2007/9/18, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hi, > I am new to Tapestry. > > I have a requirement that I submit a form with parameters (userid and > password) to Oracle CoreId which is an authentication system. > The submit needs to have userid and passwo

Submitting Forms with Parameters with Tapestry

2007-09-18 Thread deborah . mills
Hi, I am new to Tapestry. I have a requirement that I submit a form with parameters (userid and password) to Oracle CoreId which is an authentication system. The submit needs to have userid and password in the form. My code below will submit the form, but it does not pass the userid and passwor

Re: T5: outputRaw

2007-09-18 Thread Marcelo Lotif
Righ Howard, but some people wrote this on a recent thread regarding a Loop+expansions problem: > On 9/17/07, Michael Gottschalk <[EMAIL PROTECTED]> wrote: > > On Monday 17 September 2007 08:42:46 Davor Hrg wrote: > > > I had no problem using expansions in a loop, (T5.0.5) > > > > > > > > >

Re: T5: outputRaw

2007-09-18 Thread Howard Lewis Ship
This is a known bug, and fixed. When using the ${...} syntax, Tapestry was being over-agressive about caching the result. https://issues.apache.org/jira/browse/TAPESTRY-1667 On 9/15/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi, > I use following code to output a html text, but it works fi

Re: Can't build from source

2007-09-18 Thread Paulo Ramos
I think you must run maven with the option : -cpu or -U to install the plugins. Daniel Meza escreveu: After run "mvn install" get : "[ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-plugin

RE: Can't build from source

2007-09-18 Thread Daniel Meza
After run "mvn install" get : "[ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not exist or no valid version could be found [INFO] --

Re: T5 Momentum

2007-09-18 Thread Paul Cooley
So maybe the real question is when we can get some Tap5 Ajax samples written for the TWiki. Obviously the best possible case would be to more or less transition many of the Ajax components the Tap4 crew have put together, since they work so well and help snap together applications quickly. I know

Re: T5 Momentum

2007-09-18 Thread Jonathan Glanz
unfortunately I don't own the code that 'm working on right nowthat being said when this project ends; I can definitely toss some of it together and needly package it.it all just takes time -Jon On Sep 18, 2007, at 5:20 AM, Paul Cooley wrote: Does this mean you're going to be contri

T5: tapestry-hibernate commits even after an exception

2007-09-18 Thread lasitha
Hello again. While debugging some hibernate exceptions, i've noticed the HibernateSessionManager commits the current transaction even when an exception occurs in the current request. Seems like it should be rolling back instead. Am i missing something? The HibernateSessionManager registers with

T5: HibernateSessionManagerImpl should close session on thread cleanup?

2007-09-18 Thread lasitha
Hello all. Back in June (23rd), Bill Holloway solved an 'illegal attempt to associate a collection with two open sessions' hibernate exception by using merge() after reattaching a detached object: Re: T5 Creating new hibernate persistent entity via beaneditform http://mail-archives.apache.org/mod_

Re: [T5] - looking for simple Layout

2007-09-18 Thread Erik Vullings
Besides the home side (http://tapestry.apache.org/tapestry5/), the link to Howard's tutorials (http://tapestry.apache.org/tapestry5/tutorial1/) and screencasts (http://tapestry.apache.org/tapestry5/screencast.html), the maven archetype that creates an example project ( http://tapestry.apache.org/ta

Re: @InjectPage in library -- Page 'XXX' not found in application namespace.

2007-09-18 Thread andyhot
- Add a JIRA for namespace in ExternalLink AFAICT, it is missing - i can add it soon enough. - Add another one for enhancing the InjectPage annotation to accept a boolean parameter, something like useCurrentNamespace - this too can be done pretty quickly - InjectPageLink and InjectExternallLi

Re: @InjectPage in library -- Page 'XXX' not found in application namespace.

2007-09-18 Thread carlos f
Renat Zubairov wrote: > > Your assumptions are completely correct, you can address anything you want > from the library (e.g. pages) inside the library namespace via > namespace:BlahBlah format. > Renat, thanks for the reply. Unfortunately I thought namespace handling would be a bit more seam

Re: T5 Momentum

2007-09-18 Thread Massimo Lusetti
On 9/18/07, Paul Cooley <[EMAIL PROTECTED]> wrote: > Does this mean you're going to be contributing some Ajax components? ;) I would like to note that AJAX is already possible with T5 and it is also enough easy to be used thanks to the granular approach T5 preach. I think T5 will have AJAX supp

[T5] - looking for simple Layout

2007-09-18 Thread Mohammad Shamsi
Dear friends im new in T5, and i want to create a simple page layout for my project pages. any simple source or example ???/ thanks all -- sincerely yours M. H. Shamsi

Re: T5 Momentum

2007-09-18 Thread Paul Cooley
Does this mean you're going to be contributing some Ajax components? ;) On 9/17/07, Jonathan Glanz <[EMAIL PROTECTED]> wrote: > > I've been using t5 religously on several projects for some massive > conglomerites with great success...as howard stated there are a few pieces > he's trying to comple

Re: [T4] OGNL reference to a class object

2007-09-18 Thread Ognen Ivanovski
On 2007-09-18, at 11:17, Ognen Ivanovski wrote: Just a quick one... How can I refer to a class object in OGNL, if I know the class name itself. In Java I would do 'com.foo.example.ExampleClass.class'. How is this done in OGNL? Found it. The syntax is: @[EMAIL PROTECTED] -

[T4] OGNL reference to a class object

2007-09-18 Thread Ognen Ivanovski
Just a quick one... How can I refer to a class object in OGNL, if I know the class name itself. In Java I would do 'com.foo.example.ExampleClass.class'. How is this done in OGNL? I'm using a component that accepts a Class as a parameter, I need to pass in a specific class. Maybe this i

extends TextField (T4.1.3)

2007-09-18 Thread lolowok
Hi, I do a simple component (only this java class, no specification file): abstract public class UserTextField extends TextField { } And when i use it in a template (@UserTextField), i have this stacktrace: org.apache.tapestry.form.TranslatedFieldSupportImpl.format(TranslatedFieldSuppor

Re: T5: UploadedFile componet is not compatible with UTF-8

2007-09-18 Thread 蝈蝈龙
I ecountered the same problem . I add encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true encodingFilter *.html

Re: T5: UploadedFile componet is not compatible with UTF-8

2007-09-18 Thread Christian Koeberl
> After packaging new package, but occur NullPointer Exception: > because request.getCharacterEncoding() == null You also have to add the UTF-8 filter described in http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding -- Chris