Re: T5.1 Question regarding BeanModel and BeanModelSource

2009-06-08 Thread Andy Huhn
Two separate beans--you create one bean on your view page (to be passed into BeanDisplay), another bean on your edit page (to be passed into BeanEditForm). They can have completely distinct sets of properties. On Mon, Jun 8, 2009 at 11:38 AM, Michael Gerzabek wrote: > Hi, > > BeanModelSource no

Re: any ideas why the APPCATALOG resource being injected would not be getting resolved?..

2009-05-27 Thread Andy Huhn
For what it's worth... I had a similar issue (different error message, but caused mismatched versions of the jars in my classpath). I discovered that in my pom.xml, I had a dependency on tapestry-hibernate, but I didn't have any dependency on tapestry-core. It was pulling in 5.1.0.5 of tapestry-h

Re: T5/Jetty: disabling jsessionid?

2009-01-27 Thread Andy Huhn
ion id issue, since for the stateless pages, a session won't even > be created. Have you thought about that? > > hth, > > Lutz > > > On Tue, Dec 30, 2008 at 5:13 PM, Andy Huhn wrote: > > Hello, > > > > I'm having issues with the way my app is

T5/Jetty: disabling jsessionid?

2008-12-30 Thread Andy Huhn
Hello, I'm having issues with the way my app is being crawled by search engines. A jsessionid parameter is being added to the URL of each request, making the link obtained by the search engine useless. I'm running Jetty 6. I know from perusing the web that this jsessionid is being added by Jett

TabSet inside a zone?

2008-11-11 Thread Andy Huhn
I'm pulling my hair out trying to get a t5components/TabSet to work inside a zone, and I'm hoping someone can put their finger on the problem. I think my TabSet is pretty straightforward, very similar to the sample code at http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry

Re: need help setting up FCKEditor component

2008-10-17 Thread Andy Huhn
Gabriel, Do you have FCKEditor in your classpath? (If you use Maven, you must have this repository on your pom.xml: t5components T5Components Maven Repository http://87.193.218.134:8080/t5components/maven-repository And this dependency in the same file:

Re: Book : Enjoying Web Development with Tapestry - First Edition

2008-10-15 Thread Andy Huhn
Hi Steven, http://www.agileskills2.org/EWDT/ has a link to the first edition. Thanks, Andy On Wed, 2008-10-15 at 02:59 -0700, StevenF wrote: > Hi, > > I've joined a project that uses Tapestry 3. (yes old version) and I have > read good things about the book 'Enjoying Web Development with Tapest

Re: Grid component and available rows number

2008-10-14 Thread Andy Huhn
On Tue, 2008-10-14 at 01:52 -0700, shymon wrote: > > > Andy Huhn-3 wrote: > > > > Hi Shymon, > > > > If you don't want the pager to show up at all on the grid component, you > > can set > > > > pagerPosition="none" > >

Re: Grid component and available rows number

2008-10-14 Thread Andy Huhn
Hi Shymon, If you don't want the pager to show up at all on the grid component, you can set pagerPosition="none" on the grid. This might prevent the row count from being generated at all. Andy On Tue, 2008-10-14 at 00:50 -0700, shymon wrote: > > > Renat Zubairov wrote: > > > > Hello > >

Re: T5: Quartz and the IoC Registry?

2008-10-12 Thread Andy Huhn
void run(); > > public JobDataMap getJobDataMap() { > return _jobDataMap; > } > > public Logger getLogger() { > return _logger; > } > > public Session getSn() { > return _sn; > } > > } > > Good luck! >

Re: T5: Quartz and the IoC Registry?

2008-10-11 Thread Andy Huhn
Andy On Sat, 2008-10-11 at 02:40 -0700, Angelo Chen wrote: > Hi Andy, > > Any sample code for this? Thanks. > > Angelo > > > Andy Huhn wrote: > > > > Thanks, Howard...ServiceResources did the trick! > > > > On Sat, 2007-12-15 at 06:53 -0800,

Re: T5 blueprints application?

2008-10-08 Thread Andy Huhn
Hi Janos, I'd love to take credit for this...but Geoff has put probably hundreds of hours into that project...he deserves the credit. :o) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: T5 blueprints application?

2008-10-06 Thread Andy Huhn
Hi, See Jumpstart: http://files.doublenegative.com.au/jumpstart/home.html On Mon, 6 Oct 2008 12:05:50 +0200, "János Jarecsni" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm learning T5 and like it quite much. Is there something like a > blueprints > application? I found examples which all focus on a

Re: 5.0.15 date / application lockups with IE6

2008-09-06 Thread Andy Huhn
2008-09-04 at 13:36 -0700, Howard Lewis Ship wrote: > A thread core dump would be very useful in seeing if this is the same > deadlock that's (hopefully) been addressed in 5.0.15. > > On Thu, Sep 4, 2008 at 4:13 AM, Andy Huhn <[EMAIL PROTECTED]> wrote: > > Hello, > >

Re: 5.0.15 date / application lockups with IE6

2008-09-04 Thread Andy Huhn
Answered my own question...thanks, Steven Wooley (http://www.nabble.com/-jira--Created:-(TAPESTRY-2561)-Deadlock-when-double-clicking-a-pagelink-td18877508.html). I'll get a core dump to you as soon as I can. Thanks, Andy On Thu, 2008-09-04 at 20:16 -0400, Andy Huhn wrote: >

Re: 5.0.15 date / application lockups with IE6

2008-09-04 Thread Andy Huhn
A thread core dump would be very useful in seeing if this is the same > deadlock that's (hopefully) been addressed in 5.0.15. > > On Thu, Sep 4, 2008 at 4:13 AM, Andy Huhn <[EMAIL PROTECTED]> wrote: > > Hello, > > > > In production (T5.0.14), my app seems to de

5.0.15 date / application lockups with IE6

2008-09-04 Thread Andy Huhn
Hello, In production (T5.0.14), my app seems to deadlock every time IE 6 is used to render a page that has several FCKEditor instances on it (using the Editor component from t5components). You can imagine I would like to get this fixed ASAP...and I'm desperately hoping that 5.0.15 will fix this i

Re: t5: forwarding page but no change in the url?

2008-08-15 Thread Andy Huhn
Hi Angelo, You can accomplish this by using Delegates. Put a Delegate on your index page, and in your Index.java, put a getter for that delegate. The delegate may return a block from one of any number of other pages. See http://wiki.apache.org/tapestry/Tapestry5HowToCreateATabPanel . Andy On

Re: [T5]: Change in asset location?

2008-08-12 Thread Andy Huhn
Thanks, Filip & Sven. I'll start digging around in Jetty. Thanks, Andy On Tue, 12 Aug 2008 12:43:21 +0200, "Sven Homburg" <[EMAIL PROTECTED]> wrote: > its look like taht you IDE dont move the resources in your war file or > servlet container directory at compil

[T5]: Change in asset location?

2008-08-12 Thread Andy Huhn
Hello, I just switched to 5.0.14, and now my app can't seem to find my CSS file. Any ideas? Here is the .tml I've been using: Here is the corresponding .java: @Inject @Path("context:assets/styles/hen_styles.css") private Asset _henStyleSheet; And here is the location of

Re: Tapestry 5.0.14-SNAPSHOT

2008-08-02 Thread Andy Huhn
Hi Angelo, What is this bug? Does it only affect debugging, or might it also affect production? Is there a JIRA for it? Thanks, Andy (on 5.0.13 in production, and worried) On Fri, 2008-08-01 at 18:37 -0700, Angelo Chen wrote: > I strongly recommend to release this 5.0.14-SNAPSHOT as soon as po

Re: T5: Working with BeanModel

2008-07-08 Thread Andy Huhn
dataTypeAnalyzer On Wed, 2008-07-02 at 03:34 -0400, Andy Huhn wrote: > Hello, > > I have a class defined (MyClass) that has a String property pstlCode, > with a getter and a setter. > > If I use BeanModelSource to create a BeanModel for MyClass, the > BeanModel has a property

T5: Working with BeanModel

2008-07-02 Thread Andy Huhn
Hello, I have a class defined (MyClass) that has a String property pstlCode, with a getter and a setter. If I use BeanModelSource to create a BeanModel for MyClass, the BeanModel has a property pstlCode that can be used to access the pstlCode. However, if I exclude the pstlCode property, and the

T5: Clearing BeanModel properties and adding them back

2008-07-01 Thread Andy Huhn
Hello, It seems that if I create a BeanModel using BeanModel toReturn = _beanModelSrc.create( MyObject.class, false, _cmpntRsrcs ); Things work as they should - I can then use the properties in the BeanModel, as I expect to. But, if I first clear all properties from the BeanModel, an

T5: clearing BeanModel properties

2008-06-24 Thread Andy Huhn
Hello, It seems that if I create a BeanModel using BeanModel toReturn = _beanModelSrc.create( MyObject.class, false, _cmpntRsrcs ); Things work as they should - I can then use the properties in the BeanModel, as I expect to. But, if I first clear all properties from the BeanModel, and then

[T5]: Persistent bean for BeanEditForm?

2008-05-02 Thread Andy Huhn
Hello, I have a page that uses a BeanEditForm to allow the user to edit a bean. I'm using the @Validate annotation on various fields in the bean to mark them as required, or to assign a minimum length, etc. My problem is that if the validation fails and the page redisplays, all of the user's chan

Re: page activation + components

2008-04-29 Thread Andy Huhn
Hello, You can define the scope of each service...you can set that particular service to be tied to only one session. See http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html, and search for "perthread". Thanks, Andy On Tue, 29 Apr 2008 18:02:52 +0200, "János Jarecsni" <[EMAIL PROTEC

Re: [T5]: javax.mail from Tapestry

2008-04-23 Thread Andy Huhn
ght get a better idea of why the mail > isn't working... if it works in development then chances are you are > missing a host entry or something small like that, which will pop up in > the logs. > > Andy Huhn wrote: > > Hello, > > > > In my dev environment (ru

Re: [T5]: javax.mail from Tapestry

2008-04-23 Thread Andy Huhn
Hi Andy, > > If exceptions aren't being thrown from the services/pages that use the > mail classes, then the javax.mail is present. Is it possible that your > server (or it's network) is blocking outbound smtp connections? > > chris > > Andy Huhn wrote: > &

[T5]: javax.mail from Tapestry

2008-04-23 Thread Andy Huhn
Hello, In my dev environment (running jetty6 from inside Eclipse), I'm able to use javax.mail classes and successfully connect to my mail server to send a message. But when I migrate the code to my production server (jetty6 also), everything seems to work correctly except that the app doesn't con

Re: Component reloading is not working

2008-04-12 Thread Andy Huhn
'm dealing with the same issue you are. :o) Perhaps one of the other folks on the list might have some better ideas. Andy On Sat, 2008-04-12 at 19:26 +0200, Jakob Keres wrote: > Am Samstag, den 12.04.2008, 11:28 -0400 schrieb Andy Huhn: > > Hi Jakob, > > > > Also,

Re: [T5] enum/BeanEditForm issue

2008-04-12 Thread Andy Huhn
Well, fortunately and unfortunately, that was it. Thanks again, Peter, for finding my mistake. And sorry again for cluttering up the list with my poor proofreading skills. Andy On Fri, 2008-04-11 at 12:41 -0400, Andy Huhn wrote: > Oh, brother. If that's it, take my keyboard away from

Re: Component reloading is not working

2008-04-12 Thread Andy Huhn
Hi Jakob, Also, which version of Jetty are you using? I don't believe there's a way to get component reloading working yet with Eclipse + Jetty6, although there is with Eclipse + Jetty5. Andy On Sat, 2008-04-12 at 13:46 +0200, Jakob Keres wrote: > Hi. > > I'm quite new to tapestry so it's mayb

Re: [T5] enum/BeanEditForm issue

2008-04-11 Thread Andy Huhn
t; private String _name; > > public void setName(String name) > { > this._name = _name; > } > > Peter Beshai > > On Fri, Apr 11, 2008 at 10:06 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > >> That's odd. >> >> What does your

[T5] enum/BeanEditForm issue

2008-04-11 Thread Andy Huhn
Hello, I have what I thought was a fairly straightforward piece of code, but I can't seem to get it working. I have an enum defined as: public enum AgeRange { K6, MiddleSchool, HighSchool, K12, MiddleHighSchool } I reference this enum in one of my POJOs:

Re: [T5]: CSS question? But having to do with default.css (Tapestry CSS)

2008-04-05 Thread Andy Huhn
I think I solved my own question. For the sake of anyone else facing this same issue, I added this to my stylesheet: DIV.t-beandisplay DIV.t-beandisplay-value { display: block; float: left; clear: right; } Thanks, Andy On Sat, 2008-04-05 at 22:27 -0400, Andy Huhn wrote: >

[T5]: CSS question? But having to do with default.css (Tapestry CSS)

2008-04-05 Thread Andy Huhn
All, I hope this isn't too off-topic, but I'm posting here since default.css is generated by Tapestry, and I'm hoping that someone else on the list has solved the same problem. I have a BeanDisplayForm. I have something like this in my CSS: div.t-beandisplay-label{ width: 80px; } (I don't

RE: [T5]: Default TextField size?

2008-04-05 Thread Andy Huhn
Sorry, Kristian. I think I was looking at something else while I was typing. :o) Thank you, Kristian! On Sat, 2008-04-05 at 22:20 -0400, Andy Huhn wrote: > Thank you, Kevin! That was the direction I needed. > > On Fri, 2008-04-04 at 11:11 +0200, Kristian Marinkovic wrote: > &g

RE: [T5]: Default TextField size?

2008-04-05 Thread Andy Huhn
Thank you, Kevin! That was the direction I needed. On Fri, 2008-04-04 at 11:11 +0200, Kristian Marinkovic wrote: > i use CSS to set the VISUAL size of my input fields :) > > g, > kris > > > > Andy Huhn <[EMAIL PROTECTED]> > 04.04.2008 11:03 >

RE: [T5]: Default TextField size?

2008-04-04 Thread Andy Huhn
>@Property >private String s; > } > > g,kris > > > > > > Andy Huhn <[EMAIL PROTECTED]> > 04.04.2008 09:31 > Bitte antworten an > "Tapestry users" > > > An > Tapestry users > Kopie > > Thema > [

[T5]: Default TextField size?

2008-04-04 Thread Andy Huhn
Hello, Is there a way to configure the default size parameter that will be generated for TextFields? Thanks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [T5]: label in properties file

2008-04-03 Thread Andy Huhn
FindCoops.tml FindCoops.properties Andy On Thu, 2008-04-03 at 14:25 +0200, Filip S. Adamsen wrote: > Hi, > > Try putting it in src/main/resources/com/companyname/pages/coops. > > -Filip > > On 2008-04-03 14:23, Andy Huhn wrote: > > Thanks

Re: [T5]: label in properties file

2008-04-03 Thread Andy Huhn
02:14 -0700, Petros Petrou wrote: > I think you need to move your FindCoops.properties file to be next to your > .tml file and not the .java file. > > Petros > > > Andy Huhn-2 wrote: > > > > OK, this is driving me crazy. > > > > I have a .tml named

[T5]: label in properties file

2008-04-02 Thread Andy Huhn
OK, this is driving me crazy. I have a .tml named FindCoops.tml that contains the following fragment: In the same directory as the corresponding .java page file, I have a file named FindCoops.properties that contains the following: userPstlCodeField-label=ZIP Yet when the input is rendered,

Re: T5: OutputRaw filtering?

2008-03-24 Thread Andy Huhn
e/guide/templates.html. > > -Filip > > Andy Huhn skrev: > > Hello, > > > > I have the following in my .tml file: > > > > > > > > I expected this to generate "©" in the HTML being sent to the > > browser. But instead, Tapest

T5: OutputRaw filtering?

2008-03-22 Thread Andy Huhn
Hello, I have the following in my .tml file: I expected this to generate "©" in the HTML being sent to the browser. But instead, Tapestry gives me an error message: [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: Failure parsing template classpath:com/hom

Re: File generation

2008-02-29 Thread Andy Huhn
Joel, I ran across this component that wraps a template engine: http://213.160.23.119:8080/t5components/t5c-contrib/howto_freemarkerservice.html Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [T5]: Issues deploying in jetty

2008-02-23 Thread Andy Huhn
or components > > after it is unpacked, you may want to manualy copy pages > and components there > > pages in webapp directly, > and components in WEB-INF/classes > > copy all from $yourProject/src/main/resources > to $webapp/WEB-INF/classes > > > Davor Hrg > &g

[T5]: Issues deploying in jetty

2008-02-23 Thread Andy Huhn
Hello, I'm trying to set up my production server for the first time. I don't know anything about Jetty, so I may be missing something obvious. I can start up Jetty without problems, and receive no errors in the log. It seems to unpack my WAR, again without errors. However, when I attempt to ac

Re: What does "Render time" hidden in comment actually mean?

2008-02-20 Thread Andy Huhn
Hey John, I had a similar issue in my development environment. It turned out that I had enabled an "experimental" feature in Firefox (pipelining, I believe? I can't remember what it was called) that was supposed to increase the number of simultaneous connections my browser made to the web server

Re: T5: Hibernate and threaded service

2008-02-06 Thread Andy Huhn
Hi Angelo, The MyCreate service creates a new record, but doesn't commit until after MyThread is started. The MyThread service automatically gets a different Hibernate Session, and thus can't see the record that hasn't been committed yet by the other session. I'm not that familiar with MySQL, bu

RE: Tapestry 5 book

2008-01-28 Thread Andy Huhn
I guess I'll be the first to mention...my copy of the book arrived last week! (Thursday) I've already read a good chunk of it, and skimmed what I didn't read. Excellent! Even though I've been plowing my way through learning Tapestry for the past few months, I found the book to be an excellent,

Re: T5: Service and thread

2008-01-24 Thread Andy Huhn
Angelo, Additionally, if you have a job that you want to schedule to do this download, you could use a scheduler such as Quartz to kick off the job without any intervention. Andy On Thu, 2008-01-24 at 01:45 -0800, Angelo Chen wrote: > Hi, > > I have a service which does some file download that

Re: T5 naming and case peculiarities

2008-01-12 Thread Andy Huhn
Josh, I've been looking for that! Thanks for the tip! Andy > This is configurable in Eclipse. Under Window | Preferences look at Java | > Code Style there is a "Conventions for variable names" section where you can > tell eclipse what your prefix/suffix preferences are... Then it will make > ni

Re: Tapestry 5 book update

2008-01-11 Thread Andy Huhn
Thanks for the update, Alexander...and thanks for ensuring quality. I look forward to seeing the finished product! Andy On Fri, 2008-01-11 at 08:39 +, Kolesnikov, Alexander GNI wrote: > I was informed by the publisher that the book is going to be "uploaded > for printing" this week. However,

Re: [T5] 5.0.7 - Help with log4j.properties file

2008-01-07 Thread Andy Huhn
Hi Buckofive, Here are a couple of relevant lines from my log4j.properties file. My file is in src/main/resources: log4j.logger.org.hibernate=info ### log HQL query parser activity #log4j.logger.org.hibernate.hql.ast.AST=info ### log just the SQL log4j.logger.org.hibernate.SQL=debug This seem

Re: [ANN] Tapestry 5 book is available for pre-order

2008-01-03 Thread Andy Huhn
Hi Alexander, I know this is out of your control...but I thought you may have some insight into the status. Do you know how soon this book will be available? I've pre-ordered, and I'm very much looking forward to getting my copy! Andy On Wed, 2007-11-14 at 09:45 +, Kolesnikov, Alexander GN

Re: T5: Getting the logical name of a page

2008-01-02 Thread Andy Huhn
ageClassNameToPageName(); > canonicalizePageName(); > > I'm still back on 5.0.6, so no guarantees that this still works in 5.0.7. > > Josh > > On Jan 2, 2008 8:34 PM, Andy Huhn <[EMAIL PROTECTED]> wrote: > > > All, > > > > Short version of the question: > &g

T5: Getting the logical name of a page

2008-01-02 Thread Andy Huhn
All, Short version of the question: Is there a method somewhere in Tapestry that will return "messages/Contact" if I pass it a class com.blahblahblah.pages.messages.Contact? I'm trying to pass a page name to ComponentResources.createPageLink, and I don't want to hardcode the page name...I'd like

Re: Maven: archetype.xml descriptor cannot be found

2007-12-20 Thread Andy Huhn
Martin, I agree with you...I think I initially tried gcj, but quickly gave up and switched to sun's jdk. I've used jdk 1.5 and 1.6 both, and haven't noticed issues with either one. Andy On Thu, 2007-12-20 at 17:39 +0100, Martin Ågren wrote: > > I'm on Debian Lenny also, and I haven't had any i

Re: Maven: archetype.xml descriptor cannot be found

2007-12-19 Thread Andy Huhn
Hi Martin, I'm on Debian Lenny also, and I haven't had any issues. Although I believe I was on T5.0.5 when I installed the quickstart, not 5.0.6. Andy On Wed, 2007-12-19 at 17:38 +0100, Martin Ågren wrote: > Hi, > > It surprises me not having heard about this yet, so I might be doing > someth

Re: T5: using a filter to manage virtual hosts

2007-12-18 Thread Andy Huhn
ishing this? thanks, > > A.C. > > > Andy Huhn wrote: > > > > All, > > > > I'm writing an app that will make use of virtual hosts (so that > > domain1.com, domain2.org, etc. will all point to the same application). > > The sticky piece is that e

Re: T5: Quartz and the IoC Registry?

2007-12-18 Thread Andy Huhn
obs; the ScheduledJob was a wrapper around > some scheduling information and a Runnable object. Dependencies were > injected into the contribute method(s) and packaged up as Runnable's > that are part of the configuration. The JobRunner was @EagerLoad. > > On Dec 14, 2007 9:22

T5: Quartz and the IoC Registry?

2007-12-14 Thread Andy Huhn
All, I'd like to use Quartz with tapestry. As such, I'd like to get a reference to the Registry and pass it into a Tapestry service (so that I can use it in my Quartz jobs to instantiate all of my DAOs and Hibernate Sessions). I saw some discussion here on the list a few days ago about the Regis

Re: T5: GridDataSource - descending by default

2007-12-13 Thread Andy Huhn
Hi Ronald, Grid.setSortAscending( false ); http://tapestry.apache.org/tapestry5/apidocs/index.html?org/apache/tapestry/corelib/components/Grid.html Andy On Wed, 2007-12-12 at 16:19 -0800, ronaldlee wrote: > Hi, > > Does anyone know how to set the default sorting order of Grid to be > descendin

Re: Tapestry 6

2007-12-06 Thread Andy Huhn
I'm curious, Emmanuel...how much have you contributed to Tapestry? On Thu, 2007-12-06 at 21:35 +0100, Emmanuel Sowah wrote: > -- Forwarded message -- > From: Emmanuel Sowah <[EMAIL PROTECTED]> > Date: Dec 6, 2007 4:53 PM > Subject: Re: T5: Anyone using PageTester? > To: Tapestry us

Re: T5: Grid queries partial data

2007-12-03 Thread Andy Huhn
Ronald, This is a bug in the Grid implementation. See http://issues.apache.org/jira/browse/TAPESTRY-1901 Thanks, Andy On Mon, 2007-12-03 at 15:09 -0800, ronaldlee wrote: > Thanks! > > I can get it to work, kind of. > > I am encountering a situation where in the "prepare" function, the > "st

Re: T5 - Stream source output to text file

2007-12-03 Thread Andy Huhn
It's not elegant, but you could use a command-line tool like "wget". Andy On Mon, 2007-12-03 at 08:41 -0800, patrick whalen wrote: > Could anyone give me any pointers or directions on how to stream the html > output that Tapestry generates out to a text file, which would be stored in > a specific

T5: fixed-width Grid?

2007-12-01 Thread Andy Huhn
All, Is there a way to make a Grid fixed-width? That is, if it's more than x number of pixels, a scroll bar is rendered attached to the HTML table? (Not attached to the entire viewport). Thanks, Andy - To unsubscribe, e-mail: [

Re: possible bug: onActivate/onDeactivate and ComponentActions

2007-12-01 Thread Andy Huhn
I think console warnings are a great thing, and I hope you're not thinking about doing away with them! Maybe it's just because I'm a newbie, but I comb through those logs looking for problems if I get any unexpected behavior. Thanks, Andy On Sat, 2007-12-01 at 11:54 -0800, Howard Lewis Ship wrot

Re: Dynamic pages (or: arguments to pages)

2007-11-26 Thread Andy Huhn
Kaspar, If you're using T5, see http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html Especially the section titled "Page activation". Andy On Mon, 2007-11-26 at 19:49 +0100, Kaspar Fischer wrote: > Hi All, > > I am new to Tapestry and would be glad to receive a hint on how to

Re: T5: onActivate woes

2007-11-26 Thread Andy Huhn
ject[] context) > { > ... > } > > And check the context count explicitly, and convert the context values > explicitly, if you are on 5.0.5. > > On Nov 24, 2007 11:37 AM, Andy Huhn <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I'm having a

Re: T5: onActivate woes

2007-11-24 Thread Andy Huhn
Object onActivate(Object[] context) > { > ... > } > > And check the context count explicitly, and convert the context values > explicitly, if you are on 5.0.5. > > On Nov 24, 2007 11:37 AM, Andy Huhn <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I'm

Re: [ANN] Tapestry 5 book is available for pre-order

2007-11-24 Thread Andy Huhn
Alexander, This link appears to have been taken down. Is the book still on schedule? Thanks, Andy On Wed, 2007-11-14 at 09:45 +, Kolesnikov, Alexander GNI wrote: > It can be pre-ordered from the publisher's website: > > http://www.packtpub.com/tapestry5/book > > Cheers, > > Alexander >

T5: onActivate woes

2007-11-24 Thread Andy Huhn
Hello, I'm having a problem with onActivate(). Here are my questions: 1) Why is onActivate() called when a context variable is included in the URL? 2) Is there a way to prevent onActivate() from being called until AFTER onActivate(Integer prmPrimaryKey) is called? Here's my dilemma: I want to us

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-11-24 Thread Andy Huhn
Hi Lasitha, Here is how I handle this. Again, I'm not sure if it's best practice, I'd be interested in comments: 1) In @PageAttached, I NULL out entity. 2) In OnActivate() (which is executed a few times), I set entity to a new, empty Entity (useful if this page was called with no primary key, t

Re: T5: using a filter to manage virtual hosts

2007-11-21 Thread Andy Huhn
ght have to be > a requestGlobals.getHttpServletRequest() object, depending on what's > available in the api... > > > Andy Huhn wrote: > > All, > > > > I'm writing an app that will make use of virtual hosts (so that > > domain1.com, domain2.org, e

T5: using a filter to manage virtual hosts

2007-11-21 Thread Andy Huhn
All, I'm writing an app that will make use of virtual hosts (so that domain1.com, domain2.org, etc. will all point to the same application). The sticky piece is that each page will need to know the hostname by which it was referenced--the data displayed on the page will be different for each virtu

T5: Grid component calls prepare() and getRowValue() with incorrect values

2007-11-10 Thread Andy Huhn
All, I just entered a JIRA: https://issues.apache.org/jira/browse/TAPESTRY-1901 I'm posting the details here in case anyone monitoring the list has the same issue. I believe there's a workaround. I have a grid defined with rowsPerPage = 2. When there are 3 elements in the GridDataSource, the u

Re: Feedback wanted on IoC documentation

2007-11-09 Thread Andy Huhn
Howard, Excellent documentation! I'm a newbie to the world of Tapestry, IoC, and front-end development in general (my background is ETL development--large batch loads of data between different systems). I've struggled for weeks to piece concepts together from the documentation and examples I cou

Re: T5: Intercepting the body of a component

2007-11-09 Thread Andy Huhn
f it would be > possible to hook an existing XPath engine up to it? > > > On Nov 8, 2007 5:55 PM, Andy Huhn <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I'm trying to write a component that allows Tapestry to render its body > > into the MarkupWr

T5: Intercepting the body of a component

2007-11-08 Thread Andy Huhn
Hello, I'm trying to write a component that allows Tapestry to render its body into the MarkupWriter, and then it performs string substitutions on the MarkupWriter to "transform" the output before it is sent back to the client. Any ideas? I've looked through a bunch of the source code, and I can

RE: T5: Preparing a pristine object for re-use

2007-11-07 Thread Andy Huhn
d into a "singleton" scoped > service and tapestry will take care of it. > > please see the documentation and search the > mailinglist. there was a very good thread a week > ago > > e.g. > http://www.nabble.com/T5%3A-%27wrapping%27-hibernate-DAOs-as-services-tf471

T5: Preparing a pristine object for re-use

2007-11-06 Thread Andy Huhn
Hello, I have a DAO that I want to re-initialize every time it is injected (that is, the DAO has state that I want to reset to make it pristine). I thought I could do it in the constructor for the DAO, since I am defining the service as follows in my AppModule: public static AccountDAO buildAccou

Re: [Fwd: T5: basic CRUD pattern]

2007-11-06 Thread Andy Huhn
Thank you, Cesar! My hair was saved just in the nick of time. Andy On Mon, 2007-11-05 at 22:50 -0600, César Lesc wrote: > may be this post can help your hair. > > http://article.gmane.org/gmane.comp.java.tapestry.user/45921 > > Cesar. > > --

[Fwd: T5: basic CRUD pattern]

2007-11-05 Thread Andy Huhn
Wanted to mention: 1) Thanks, Angelo and Davor, for the excellent Wiki page I referenced earlier. That definitely filled a few gaps for me. (Although I'm still looking for a page like I described below). 2) I've also seen Howard's reference on Page Navigation (http://tapestry.apache.org/tapestr

T5: basic CRUD pattern

2007-11-05 Thread Andy Huhn
Hello, I know I'm going to show myself as a newbie...but I've been pulling my hair out for hours (and I don't have a whole lot left to pull out!), and I need some help. Is there an example of a basic T5 CRUD app out there with Hibernate integration? I've seen the wiki page (http://wiki.apache.or

Re: T5: Issues contributing a coercion?

2007-10-30 Thread Andy Huhn
class loader issues, the EditPgaeModelImpl class known to > your services layer is literally not the same class as the one > Tapestry uses to instantiate your page (once it gets down rewriting it > to fit in with Tapestry's runtime model). > > On 10/29/07, Andy Huhn <[EMAI

T5: Issues contributing a coercion?

2007-10-29 Thread Andy Huhn
Hello, I'm attempting to contribute a coercion. This is the first time I've attempted to , so I could be missing something obvious...but the error message I receive makes me think there's something else going on. As you can see below, I'm attempting to coerce from com.homeed.pages.EditPageModelI

Re: T5: Null date displayed in a Grid raises error

2007-10-29 Thread Andy Huhn
http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber > > and you use it inside your grid like this: > > > format="literal:date(dd/MM/yyyy)" /> > > > > > 2007/10/26, Andy Huhn <[EMAIL PROTECTED]>: > > > >

T5: Null date displayed in a Grid raises error

2007-10-26 Thread Andy Huhn
Hello, I upgraded to 5.0.6, and since then, if I try to display a Grid that contains a Date column whose value is NULL, I receive the following exception. Should I file a JIRA, or am I doing something wrong? Here's the error: org.apache.tapestry.ioc.internal.util.TapestryException Cannot forma

Re: T5: Grid component with SQL-based paging/sorting

2007-10-21 Thread Andy Huhn
you connect the source > parameter of the Grid component to an actual GridDataSource, you can have > fine control over sorting and otherwise efficiently providing data to the > Grid. > > On 10/20/07, Andy Huhn <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > >

T5: Grid component with SQL-based paging/sorting

2007-10-20 Thread Andy Huhn
Hello, I'm a newbie, trying to learn T5. I have a grid component, but I don't want Tapestry to do the work of sorting/paging data in the grid component; I'd like to push that off to the database. (The source of the data is a database accessed via Hibernate). How can I do this? I know that in T