[T5] Message Page Redirect

2007-12-06 Thread Jean-Philippe Steinmetz
Hi All, I'd like to build a component/page that handles a page redirection. An example situation is when a user may try and access page X but due to permissions levels may not be allowed access (or some other reason) so they are presented an intermediate page with some message like "You do not ha

RE: [T5] Obtaining a relative directory path

2007-12-05 Thread Jean-Philippe Steinmetz
your component's Java class file), so > you have to > > specify "context:" to have the path interpreted as relative > to the web > > application root. It seems a little odd when the template file is > > itself in the web root, but I opted for a rule that

RE: [T5] Obtaining a relative directory path

2007-12-04 Thread Jean-Philippe Steinmetz
this... sometimes I need an > absolute url and I prepend that. > > Josh > On Dec 4, 2007 4:45 PM, Jean-Philippe Steinmetz > <[EMAIL PROTECTED]> wrote: > > > Hello all, > > > > I am trying to create a getter that returns the relative >

[T5] Obtaining a relative directory path

2007-12-04 Thread Jean-Philippe Steinmetz
keep getting runtime errors @Inject @Path("context:images") private Asset imagesBase; public Asset getImagesBase() { return imagesBase; } Any help on this would be great. Thanks. Jean-Philippe Steinmetz

RE: [T5] Cannot persist field exception

2007-11-29 Thread Jean-Philippe Steinmetz
So I've finally narrowed it down to the Palette component the page uses. When I remove the Palette it doesn't give errors. When its on screen I get errors. This is the error I now get when I try and submit the form... java.lang.NullPointerException Stack trace * org.apache.tapestry.coreli

RE: [T5] Cannot persist field exception

2007-11-28 Thread Jean-Philippe Steinmetz
No there's definitely a lot more to it. I was just cutting it down to the interesting parts that appeared to be the problem. In reality it looks more like: public class Create extends BasePage { @ApplicationState private User user; private boolean userExists;

RE: [T5] Cannot persist field exception

2007-11-27 Thread Jean-Philippe Steinmetz
> } > > > > and in my template I have > > > > : > > > size="30"/> > > > > So i'm not sure why i'd be getting this error. Does anyone > have ideas? > > I tried setting some default value to username in the setupRen

RE: [T5] Cannot persist field exception

2007-11-21 Thread Jean-Philippe Steinmetz
pestry users > Subject: Re: [T5] Cannot persist field exception > > full stack trace ? > > > On Nov 21, 2007 10:17 PM, Jean-Philippe Steinmetz > <[EMAIL PROTECTED]> wrote: > > > Is there anyone that can help with this problem? Thanks > > > > >

RE: [T5] Cannot persist field exception

2007-11-21 Thread Jean-Philippe Steinmetz
Is there anyone that can help with this problem? Thanks > -Original Message- > From: Jean-Philippe Steinmetz [mailto:[EMAIL PROTECTED] > Sent: Friday, November 16, 2007 1:36 PM > To: 'Tapestry users' > Subject: [T5] Cannot persist field exception > >

[T5] Cannot persist field exception

2007-11-16 Thread Jean-Philippe Steinmetz
rname = username; } and in my template I have : So i'm not sure why i'd be getting this error. Does anyone have ideas? I tried setting some default value to username in the setupRender() function but that doesn't seem to solve the problem. Thanks in advance, Jean-Philippe Steinmetz

RE: Tapestry 5 Roadmap

2007-10-17 Thread Jean-Philippe Steinmetz
-Original Message- > From: kranga [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 17, 2007 5:29 PM > To: Tapestry users > Subject: Re: Tapestry 5 Roadmap > > > Actually, this is one advantage of Tapestry: guaranteed quality. > > That flies in the face of the philosophy of open sour

RE: multiple select dropdown

2007-10-17 Thread Jean-Philippe Steinmetz
How do you do a regular multiple selection box (as a list)? I can't seem to find anything in the component reference. Thanks, Jean-Philippe > -Original Message- > From: Daniel Jue [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 16, 2007 8:31 AM > To: Tapestry users > Subject: Re: mu

RE: T5: Form not saving all elements

2007-10-12 Thread Jean-Philippe Steinmetz
etup render: > > for ( School school : getSchools() ) { > String value = school.getName() + " - " + school.getLocation(); > String key = school.getId().toString(); > _schoolModel.put(key, value); > } > > in your template: > > School: > > I

RE: T5: Form not saving all elements

2007-10-12 Thread Jean-Philippe Steinmetz
ool.getName() + " - " + school.getLocation(); > String key = school.getId().toString(); > _schoolModel.put(key, value); > } > > in your template: > > School: > > I haven't compiled this code, so there might be typos/bugs, > but that's the gist

T5: Form not saving all elements

2007-10-12 Thread Jean-Philippe Steinmetz
Hi all, So I have a form that has several elements. A few of the elements are not done using the tapestry components and use regular HTML because the required steps to make things work as needed with the components is simply not a suitable solution. So how do I get these regular form elements to

RE: T5: Looping list of objects

2007-10-12 Thread Jean-Philippe Steinmetz
"true" to your loop will cause the > loop to not serialize your object. > > http://tapestry.apache.org/tapestry5/tapestry-core/component-p > arameters.html#orgapachetapestrycorelibcomponentsloop > > Josh > > On 10/12/07, Jean-Philippe Steinmetz <[EMAIL PROTEC

T5: Looping list of objects

2007-10-12 Thread Jean-Philippe Steinmetz
or: Error serializing component action for component Classrooms/Modify:loop: School So I take it that I need to serialize the component but if so why does the grid component work with the same list of objects? Is there another way I can accomplish this without serializing the class? Jean-Philippe Steinmetz

RE: [T5] Component Parameters

2007-10-04 Thread Jean-Philippe Steinmetz
literal > > @Parameter(defaultPrefix="literal") > > > The problem with the second method is that you are passing a Block > parameter > and it's getting coerced into a String. Usually I use this for passing > chunks of html into a component. > > Josh >

[T5] Component Parameters

2007-10-04 Thread Jean-Philippe Steinmetz
g wrong? Thanks in advance. Jean-Philippe Steinmetz

RE: Default package file

2007-09-28 Thread Jean-Philippe Steinmetz
That's not a feature currently supported. If interested, add a JIRA issue > (and a patch would be nice). > > On 9/28/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > > > > So part of my app has a series of packages for pages to make URLs (and > > lif

Default package file

2007-09-28 Thread Jean-Philippe Steinmetz
So part of my app has a series of packages for pages to make URLs (and life) easier. My question is how do I create an index-like class for these packages? I have tried creating a new Start.java in each of them and that seems to have not made a difference. Thanks. Jean-Philippe Steinmetz

RE: [T5] Navigation Issue

2007-09-28 Thread Jean-Philippe Steinmetz
So nevermind about this one... I'm an idiot and forgot to set the variable in onActivate. Since I use the variable to pull data it didn't seem obvious at first. Thanks for the help > -Original Message- > From: Jean-Philippe Steinmetz [mailto:[EMAIL PROTECTED] > Sent: F

RE: [T5] Navigation Issue

2007-09-28 Thread Jean-Philippe Steinmetz
Here is a copy of the stdout I am getting when I first request the page and then when I request the following grid page. I do not use a form in my page. It's strictly a detail view. > -Original Message- > From: Marcus [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 27, 2007 6:08 PM

RE: [T5] Navigation Issue

2007-09-27 Thread Jean-Philippe Steinmetz
> Sent: Thursday, September 27, 2007 4:05 PM > To: Tapestry users > Subject: Re: [T5] Navigation Issue > > Interesting; that's a specific case the the activate/passivate stuff is > supposed to address. > > What's the URL for page navigation or sorting look like? > &g

[T5] Navigation Issue

2007-09-27 Thread Jean-Philippe Steinmetz
p on this would be great! Thanks. Jean-Philippe Steinmetz

RE: [T5] Linkable rows with Grid component

2007-09-26 Thread Jean-Philippe Steinmetz
> > Howard Lewis Ship gmail.com> writes: > > > > > You just leverage the ability to override how particular columns are > rendered: > > > > This assumes that your items have a property named label that you want > > to convert into a link. > > > > >

[T5] Linkable rows with Grid component

2007-09-25 Thread Jean-Philippe Steinmetz
I would like to make each of the rows in my grid component output link to some page. For instance have each row link to a detail page about that row. Is this possible with the grid component? If so how can I do it? Thanks Jean-Philippe Steinmetz

RE: [T5] Grid component

2007-09-20 Thread Jean-Philippe Steinmetz
Thanks for your reply. Hmmm... I tried this and nothing shows up. Am I missing something? Seems like an awful lot of work to add one column. Jean-Philippe > -Original Message- > From: Robin Helgelin [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 20, 2007 1:40 PM > To: Tapestry user

[T5] Grid component

2007-09-20 Thread Jean-Philippe Steinmetz
framework that exists outside of tapestry itself. Should I be using a different component? Jean-Philippe Steinmetz --- Webmaster / Developer Information Sciences Institute University of Southern California [EMAIL PROTECTED] 310.448.8471

RE: Context.xml

2007-09-07 Thread Jean-Philippe Steinmetz
at framework are you using to access your database ? > > you need to post more explicit details ... > > > > > > Jean-Philippe Steinmetz-2 wrote: > > > > Btw.... I'm using tapestry 5. > > > >> -Original Message- > >> From:

RE: Input Validation example

2007-09-07 Thread Jean-Philippe Steinmetz
7;s telling you that it can't match components with those id's to > component fields in the Java class. > > So > t:validate="required,minlength=3" size="30"/> > ... > @Component(id = "password") > private PasswordField

RE: Context.xml

2007-09-06 Thread Jean-Philippe Steinmetz
Btw I'm using tapestry 5. > -Original Message- > From: Jean-Philippe Steinmetz [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 06, 2007 4:16 PM > To: 'Tapestry users' > Subject: Context.xml > > I've discovered a new problem o

Context.xml

2007-09-06 Thread Jean-Philippe Steinmetz
when I do a lookup for the resource. Is Tapestry using its own context file I'm not aware of? How do I add my resource to the correct context file so that I can get my database connection? Thanks in advance. Jean-Philippe Steinmetz

RE: Input Validation example

2007-09-06 Thread Jean-Philippe Steinmetz
ne a property with the same name as the field's > id. > > (It's already there if you copied the source.) > > Cheers, > Nick. > > > Jean-Philippe Steinmetz wrote: > > Hello all, > > > > > > > > I'm having some trouble with the i

RE: Template Caching

2007-09-05 Thread Jean-Philippe Steinmetz
ploded > the war and there were both new and old files mixed in there... > > I've had no problems using Jetty for debugging, and I'm considering > replacing Tomcat with Jetty for production. > > Josh > > On 9/5/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]>

Template Caching

2007-09-05 Thread Jean-Philippe Steinmetz
I've noticed that Tapestry seems to be somehow caching my templates even when I rebuild and redeploy my web app. How do I prevent this? It's making it very difficult to make changes while I debug. Jean-Philippe Steinmetz

Input Validation example

2007-09-05 Thread Jean-Philippe Steinmetz
uired for org.apache.tapestry.corelib.components.TextField, but have not been bound. Anyone know why? I'm using Tap 5.0.5 Jean-Philippe Steinmetz --- Webmaster / Developer Information Sciences Institute University of Southern California [EMAIL

Newbie in need of help

2007-08-23 Thread Jean-Philippe Steinmetz
help you can provide. I'm sure this stuff seems obvious but writing web apps in Java is apparently very different from writing web apps in a scripting language model. Jean-Philippe Steinmetz --- Webmaster / Developer Information Sciences Institute University