Re: Problem with parameters of a custom component (Tapestry 4.01)

2006-08-03 Thread Ron Piterman
:) Tapestry uses a pool to store page instances. While rendering it is safe to use instance variables but you have to make sure they are reset, preferrably in either pageDetached or pageAttached events. If you don't reset them, information can be shared between many users of your site, but not

Re: Problem with parameters of a custom component (Tapestry 4.01)

2006-08-03 Thread Brian Doherty
Sorry. What I mean by does not work is that getLocationOfStore() in my component is null after the component renders. When I use the updated code below the storeLocation is passed through to the component and getLocationOfStore() contains the location I passed in from the page. It does not like

Re: Problem with parameters of a custom component (Tapestry 4.01)

2006-08-03 Thread Ron Piterman
Brian Doherty wrote: Hi, I am having problems binding a property on my page to a parameter in my component. The following does not work can you be more specific. "Does not work" is somehow general... I have a CategoryListComponent as follows On my CategoryList.java I have pub

Problem with parameters of a custom component (Tapestry 4.01)

2006-08-03 Thread Brian Doherty
Hi, I am having problems binding a property on my page to a parameter in my component. The following does not work I have a CategoryListComponent as follows On my CategoryList.java I have public abstract void setStoreLocation(Location storeLocation); public abstract Location getS

[3.0]: custom component in contrib:table sorting

2006-06-09 Thread Ido M. Tamir
Hi, I revived an old tapestry app (3.0). Now I realized that my custom component does not get updated correctly within an contrib:table. This means: when I sort the table, the values of the @PropertySelection which are contained within the component do not get updated, but still get their values

RE: Custom component validation - two fields

2006-06-04 Thread Mark Stang
Ryan, Glad you figured out your problem. regards, Mark -Original Message- From: Ryan Cuprak [mailto:[EMAIL PROTECTED] Sent: Sat 6/3/2006 10:34 PM To: Tapestry users Subject: Re: Custom component validation - two fields Hello, I think figured out my problem - I needed to render

Re: Custom component validation - two fields

2006-06-03 Thread Ryan Cuprak
template I yanked code out of the BaseComponent class. In the end, I want my custom component to display a checkbox and a textfield (possibly a PropertySelection as well). When the form is submitted, if the checkbox is checked but no content is contained in the textfield I want to decorate it and

RE: Custom component validation - two fields

2006-06-03 Thread Ryan Cuprak
new form component re-using other form components - right? To read the template I yanked code out of the BaseComponent class. In the end, I want my custom component to display a checkbox and a textfield (possibly a PropertySelection as well). When the form is submitted, if the checkbox is

RE: Custom component validation - two fields

2006-06-02 Thread Mark Stang
goes away. Basically, it is done via a Conditional or Choose Component. hth, Mark -Original Message- From: Ryan Cuprak [mailto:[EMAIL PROTECTED] Sent: Fri 6/2/2006 12:38 PM To: users@tapestry.apache.org Subject: Custom component validation - two fields Hello, We are trying to

Custom component validation - two fields

2006-06-02 Thread Ryan Cuprak
Hello, We are trying to implement a rather simple custom form component for a search page and perform validation on it. The custom component has a checkbox and a text field. If the checkbox is checked then a value must be provided in the text field. If not, the field must be decorated and a

Re: Creating a custom component

2006-05-12 Thread Bryan Lewis
It looks like something unrelated to your custom component or to Tapestry at all. The stack trace is entirely inside the Tomcat code. I'd try a clean rebuild of the app and restarting Tomcat, deleting the old webapps and work trees to make sure it's starting with a clean slate. If t

Re: Creating a custom component

2006-05-12 Thread Rui Pacheco
> Hi all again > > I am trying to create a custom component for my menu, header and > footer. I > created a Menu.html whose content is a simple html table. > I created a .jwc file in my WEB-INF directory with the following > content: > > allow-body="no" a

Re: Creating a custom component

2006-05-12 Thread Paul Cantrell
A complete stack track trace might help; "NullPointerException" by itself doesn't say much On May 12, 2006, at 10:31 AM, Rui Pacheco wrote: Hi all again I am trying to create a custom component for my menu, header and footer. I created a Menu.html whose content is a si

Creating a custom component

2006-05-12 Thread Rui Pacheco
Hi all again I am trying to create a custom component for my menu, header and footer. I created a Menu.html whose content is a simple html table. I created a .jwc file in my WEB-INF directory with the following content: But when I deploy my application, Tomcat starts dumping this error in an

<    1   2   3