RE: render() around advice

2007-05-08 Thread Carlos.Fernandez
We are currently using Tapestry 4.0.X, however, moving to 4.1 might be a better option than using a custom LinkRenderer or writing an EnhancementWorker. Thanks. Carlos -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Monday, May 07, 2007 1:51 PM To: Tapestry users

RE: render() around advice

2007-05-08 Thread Carlos.Fernandez
Unfortunately in cases where rendering the link is inappropriate, we don't even want to render the portion of the template the link surrounds. It is my understanding that when the ILinkComponent is disabled the default renderer will output the template. Carlos -Original Message- From: H

render() around advice

2007-05-07 Thread Carlos.Fernandez
Java 5 Tapestry 4.0.x I would like to make runtime checks to determine if a link will render. To avoid configuration tedium we do not want to use custom link renderers. The desired solution would behave like around advice, it would: - intercept the render() call (or some other method with HTML

FormLinkRenderer + ServiceExtensionEncoder - NPE

2007-01-16 Thread Carlos.Fernandez
Tapestry 4 - Java 1.5 - Tomcat 5.5.9 Our app is using the page, direct and service ServiceEncoders for pretty urls. I am using the FormLinkRenderer to bypass the ~2kb url limit in IE. I am running into an NPE on line 154 of the FormLinkRenderer. This occurs because the link returns a null array

contrib unit tests

2007-01-11 Thread Carlos.Fernandez
I just noticed that the code coverage reports show that the contrib library has almost no unit tests in both the 4.1 and 4.0 branches. 4.1 http://tapestry.apache.org/tapestry4.1/tapestry-contrib/cobertura/index. html 4.0 http://tapestry.apache.org/tapestry4/tapestry-contrib/clover/index.html Am

TableFormPages component does use pagesClass property?

2007-01-11 Thread Carlos.Fernandez
Using Tapestry 4.0.2 I can't seem to get the TableFormPages to render the emit the pagesClass. Unlike TablePages, TableFormPages does not wrap its output with a span that includes the inherited pagesClass. JIRA includes a bug that is marked as fixed for 4.0.1 -- http://issues.apache.org/jira/bro

PropertySelection unit test

2006-12-22 Thread Carlos.Fernandez
For an oddball reason I am hunting for the PropertySelection unit test and I can't seem to find it in the source bundles or in svn. Can someone point to the right file/path/url ? Thanks! Carlos - To unsubscribe, e-mail: [EMAIL

RE: Table component

2006-12-20 Thread Carlos.Fernandez
--> Does anyone know where I can find a simple example using the table component with partial results from a database (i.e. getCurrentPageRows,getRowCount, etc.)? Jason, Sorry I just re-read your post . . . The key part I missed was the "example" ;) This is a scrubbed impl of a tableModel we us

RE: Table component

2006-12-20 Thread Carlos.Fernandez
--> Does anyone know where I can find a simple example using the table component with partial results from a database (i.e. getCurrentPageRows, getRowCount, etc.)? The contrib:table source parameter can accept an impl of IBasicTableModel. http://tapestry.apache.org/tapestry4.1/tapestry-contrib

RE: Popup a Tapestry page in a new window?

2006-12-19 Thread Carlos.Fernandez
If you don't need the fine-grained control that 'window.open' offers, you could just use the target attribute in your links. Carlos -Original Message- From: talk.small [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 9:23 AM To: users@tapestry.apache.org Subject: Popup a Tapest

accesing a in code and testing

2006-12-15 Thread Carlos.Fernandez
A page, lets call is PageX, uses a bean with request scope. The beans configuration requires something more complex that what is allowed by the lightweight initialization -- so using the annotation is out. I use the element in the page specification with a series of elements. Now I need to acc

Custom StateObjectFactory

2006-12-13 Thread Carlos.Fernandez
I posted a similar question a few weeks ago -- I decided to post again, because I find myself creating another StateObjectFactory. >From time to time I need to generate an ASO that contains some preconfigured state. It is my understanding that in order to do this I need to use the element in my

Contrib:table - session

2006-12-13 Thread Carlos.Fernandez
Can you use the contrib:table without the use of an httpsession? I am currently mucking around with persisting page/sort state in the client using the table's persist property. However, contrib:TablePages still uses direct links for page navigation. It is my understanding that by default the dir

RE: IBasicTableModel - calling getRowCount() before getCurrentPageRows()

2006-12-11 Thread Carlos.Fernandez
I am not sure if this is considered kosher . . . The ITablePagingState and ITableSortingState will be up to date prior to rendering - they encapsulate all of the data passed into the getCurrentPageRows() method. I could provide these object directly to my custom IBasicTableModel - it will invoke

IBasicTableModel - calling getRowCount() before getCurrentPageRows()

2006-12-11 Thread Carlos.Fernandez
I am using a variant of the contrib:table (it has pagination links above and below the table) to render DB search results. The search service is a proxy to a remote web service and uses Hibernate to prepare, execute and process the SQL query. In its current form the service supports pagination

RE: StateObjectFactory and

2006-11-29 Thread Carlos.Fernandez
I concur, the two StateObjectFactories and the tests that I wrote were very light classes. They essentially just copy/inject their immutable state to the new instance they are generating -- functionality that mimics, in a very inflexible and watered down way, the DI facilities provided by Hivemind

RE: StateObjectFactory and

2006-11-29 Thread Carlos.Fernandez
>> Are you referring to the simplicity of implementing the StateObjectFactory or bypassing >>it? > >Implementing. I concur, the two StateObjectFactories and the tests that I wrote were very light classes. They essentially just copy/inject their immutable state to the new instance they are genera

RE: StateObjectFactory and

2006-11-29 Thread Carlos.Fernandez
--> how simple / easy it is to replace StateObjectFactory itself Are you referring to the simplicity of implementing the StateObjectFactory or bypassing it? Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

StateObjectFactory and

2006-11-28 Thread Carlos.Fernandez
I was wondering why the tapestry.state.StateObjectContribution does not support the use of the more feature rich factory services available in hivemind via the element? Is this to avoid muddling the ASO scope with the service model associated to a service point. Carlos -

RE: MultiplePropertySelection - informal params - best practice

2006-11-21 Thread Carlos.Fernandez
Stepahnos, >>We do have to take you to the woodshed :) I really must be missing something. Maybe we could step out of the woodshed and you could explain this a little more. >>Protected methods are available to all subclasses regardless of package. >>You are confusing them with "package private

RE: MultiplePropertySelection - informal params - best practice

2006-11-21 Thread Carlos.Fernandez
--> renderInformalParameters is the "correct" way to do this. Jesse, You may have to take me out to the "java language spec" woodshed. But: - AbstractComponent.renderInformalParameters() is protected, and - AbstractComponent is in the org.apache.tapestry package. It is my un

RE: MultiplePropertySelection - informal params - best practice

2006-11-21 Thread Carlos.Fernandez
--> Hence the lack of extensibility, at least in the direction you want to go. So far, I think using the MultiplePropertySelection with a custom renderer has been relatively straight forward. I just wanted to see what other avenues others have explored. --> Come to think of it, wouldn't it be

RE: [announce] BeanForm 0.6

2006-11-13 Thread Carlos.Fernandez
Daniel, Why does the POJO used by beanform need to be persisted? As per component reference: The Java bean to be displayed by the component; any old POJO. The bean specified must be marked persistent in the page specification. Carlos -Original Message- From: D&J Gredler [mailto:[EMAIL

IValidationDelegate.clearError() clears user input on form refresh

2006-10-24 Thread Carlos.Fernandez
PAGE SET UP I have a form with an input field and two select fields. The input field has an email validation. This is defaulted to the users email (user object is placed in session by successful login). The first select field has an onchange JS handler that forces the form to refresh. The secon