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
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
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
>
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
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
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;
> }
> >
> > 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
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
> >
> > >
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
>
>
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
-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
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
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
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
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
"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
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
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
>
g wrong? Thanks in advance.
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
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
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
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
> 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
p
on this would be great! Thanks.
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.
> >
> >
>
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
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
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
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:
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
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
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
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
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]>
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
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
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
38 matches
Mail list logo