Re: Using BaseComponentTestCase in Junit

2007-05-26 Thread Daniel Tabuenca
I took a look at the code, ironically the TestBase which I'm using and has all the methods public is the one depending on @AfterMethod invocation. Of course I can just call cleanUpControlSource() in my tearDown() method in junit and achieve the same thing. Sure I can do what Patrick said and copy

Re: Using BaseComponentTestCase in Junit

2007-05-25 Thread Daniel Tabuenca
o do before/after cleanup calls. Either way I could certainly make a lot of the base methods static on some other class so that you can do static imports of them - they will just have to methods not relying on mock objects or state of any kind. (of which there are few) On 5/25/07, Daniel Tab

Using BaseComponentTestCase in Junit

2007-05-25 Thread Daniel Tabuenca
Without getting into a testng vs junit debate, I find the BaseComponentTestCase class in tapestry-test very useful. However, in the project I am working on we are using junit. It would be great if this class could be used as a helper class without needing to extend it, yet all the useful methods a

Re: T5: Best practice for rendering a dynamic component

2007-05-23 Thread Daniel Tabuenca
What I'm trying to do is related to this. It would be very useful to be able to get components from some pool (just like pages). Then I could dynamiclally render any component dynamically on any page using the Delegator. This is useful in dynamic pages where the page structure itself is highly dyn

Re: Latest OGNL 2.7-SNAPSHOT and Tapestry

2007-03-28 Thread Daniel Tabuenca
If I recall, Jesse announced when the dependency on OGNL 2.7 was added that things would be broken for a while. If I recall he even included the particular snapshot version you should use if you wanted to avoid going to the snapshot dependent on 2.7. You have to keep in mind that a snapshot is a s

Re: AJAx request and init script (Tapestry 4.1.1)

2007-03-08 Thread Daniel Tabuenca
I think you need to add to the repository definition On 3/5/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: Sorry Jasse, but I have in my pom: org.apache.tapestry tapestry-framework 4.1.2-SNAPSHOT and apache.snapshots htt

Using EventListener to submit unknown form

2007-02-21 Thread Daniel Tabuenca
I have a component that is meant to be used inside a form. I would like to have an eventListener that submits the enclosing form but I have no way of knowing what the name of the form component will be. Is there any way to have eventListener submit the enclosing form rather than specifying a form

Changing Reset Address?

2007-02-16 Thread Daniel Tabuenca
I'm not very hivemind-savvy and everything I've tried so far hasn't worked. I'm sure this is a trivially simple answer. I use friendly URLs but when it hits the reset service it gets forwarded back to "contextName/app". How do I specify the address to forward after the reset?

Re: My crap development environment

2007-02-15 Thread Daniel Tabuenca
I have nothing against Jetty, but honestly, for most users there is not a terribly significant difference in performance or ease of use between Jetty and Tomcat. Those who tell you that changing from Jetty to Tomcat to any other container out there will make a significant impact on your developm

Re: My crap development environment

2007-02-15 Thread Daniel Tabuenca
now with Discursive's sysdeo-tomcat-plugin it's ah all so nicely automated. Kalle On 2/15/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: > > When using eclipse Web Standard Tools, eclipse sets up a temporary > Tomcat (or other app server) directory with configuration a

Re: My crap development environment

2007-02-15 Thread Daniel Tabuenca
tion is the only thing and occasional re-load of the context when hotswapping fails (like it does with Tomcat most of the time) that should be required. If you do something else, I think you haven't set up your environment correctly for development. Kalle On 2/15/07, Daniel Tabuenca <[EMA

Re: Tap4.1.2 - DirectLink updateComponents & EventListener not supported by Safari?

2007-02-15 Thread Daniel Tabuenca
fari play > nice? :) > > > -Original Message- > From: Daniel Tabuenca [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 15, 2007 2:02 AM > To: Tapestry users > Subject: Re: Tap4.1.2 - DirectLink updateComponents & EventListener not > supported by Safari? > > The

Re: My crap development environment

2007-02-15 Thread Daniel Tabuenca
I really don't think the Jetty plugin is going to solve his performance problems. Jetty might or might not be faster but in any case, not significantly enough to solve his problem. I am willing to bet that his problem is due to an incremental compile issue where his entire project is re-compiled e

Re: Tap4.1.2 - DirectLink updateComponents & EventListener not supported by Safari?

2007-02-15 Thread Daniel Tabuenca
The closest you can get to Safari without a Mac is Konqueror. But why can't Mac people just use Firefox like normal people do? On 2/13/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I've no idea. I don't currently have a mac and couldn't think of a generally good use for one off the top of my

Re: Example tapestry 4.1 with ajax style calls

2007-02-14 Thread Daniel Tabuenca
I think updateComponents needs to be an array. So... updateComponents="ognl:{'orderarea'}" At least that's what I use and it works but I'm not sure if that's a requirement. On 2/14/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: Hi all I hunted for ages and haven't been able to find any si

Re: My crap development environment

2007-02-14 Thread Daniel Tabuenca
Are you by any chance using AspectJ and the AJDT plugin? For me that was the problem with saving files due to a bug that happened in combiantion to Maven. If this is your case let me know and I'll post how to work around it. Publishing should be pretty darn quick on an incremental build (1 second

Re: How to customize the look of Contib TablePages subcomponent

2007-02-09 Thread Daniel Tabuenca
#x27;d like to give them some CSS attributes to make it match the rest of my app. Dan On 2/9/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: > If you want to customize how a cell is rendered. You can use a block > component with the magic id of "column id"+ ColumnValue. So

Re: How to customize the look of Contib TablePages subcomponent

2007-02-09 Thread Daniel Tabuenca
If you want to customize how a cell is rendered. You can use a block component with the magic id of "column id"+ ColumnValue. So if your column definition is something like "myColumn:My Column" then having something like will cause it to be used to render the column.This is described here: ht

Re: Directlink, works in ie thought not firefox?

2007-02-09 Thread Daniel Tabuenca
rsion? Which Tap version are you using? Were you using J 1.5? (have any annotations?) Dan On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: > Strange. When I see errors like this the first thing I typically think > is weird errors in your javascript or non-standard html. I used to

Re: Debugging dojo.js

2007-02-09 Thread Daniel Tabuenca
classpath:/dojo/dojo.js.uncompressed.js Daniel Tabuenca wrote: > Is there a way to make dojo.js more human-readable? I know it's > compressed that way for more efficient network usage, but is there a > way to disable or use the original .js files when we need to debug? > For example, if I

Debugging dojo.js

2007-02-08 Thread Daniel Tabuenca
Is there a way to make dojo.js more human-readable? I know it's compressed that way for more efficient network usage, but is there a way to disable or use the original .js files when we need to debug? For example, if I want to debug tapestry.form code?

Re: Tap 4.1.1 Cancel button not Async?

2007-02-08 Thread Daniel Tabuenca
not understanding the javascript correctly? On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I would look at the functions here: http://tapestry.apache.org/tapestry4.1/javascript/form.html That page also provides handy links to online source views of the files they document so

Re: @EventListener and unrendered components.

2007-02-08 Thread Daniel Tabuenca
rrably in JIRA, most time spent on the list is fun "talking time" whereas actually sitting down and fixing things is reserved for fun "jira time" . ;) ) On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: > Well Simply put... something like... (in pseu

Re: Tapestry 4.1.1 async and RedirectException

2007-02-08 Thread Daniel Tabuenca
that people wouldn't get tripped up when it happened. (myself included ;) ) If it works then consider yourself lucky. (it does work of course, but it's questionable how well the page you get redirected to will be working ) On 2/8/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: >

Re: @EventListener and unrendered components.

2007-02-08 Thread Daniel Tabuenca
the renderComponent() method gets called on it and Tapestry thinks you want it to get updated it'll happen. Need more info on how it's being conditionally rendered. On 2/7/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: > I'm trying out the new Tapestry 4.1.1 @EventListener

Re: Directlink, works in ie thought not firefox?

2007-02-08 Thread Daniel Tabuenca
Strange. When I see errors like this the first thing I typically think is weird errors in your javascript or non-standard html. I used to run into strange bugs before because of doing non-standard html such as writing rather than . Always use firebug or some other development verification tool to

Re: Tap 4.1.1 Cancel button not Async?

2007-02-08 Thread Daniel Tabuenca
async ? (potential bug , not sure) On 2/7/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: > I have a simple form: > > listener="listener:submit" cancel="listener:cancel"> > > with a simple cancel button: > > > > > When it renders the p

Re: Web page refresh problem

2007-02-08 Thread Daniel Tabuenca
Beware, however. never use disable-caching=true in production. Your server will blow up very quickly. I've found even during development, reloading a complex page several times will cause memory problems and incredibly slow speed. I'm not sure if this is still true for 4.1.1. Luckily tapestry

Re: Equivalent of this.form.events.submit() in Tap 4.1.1

2007-02-08 Thread Daniel Tabuenca
and have it submit the form. On 2/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: IComponent.getClientId() works well for every component. You could do something like document.getElementById("") using the value obtained from getClientId(). (or just use dojo.byId("") )

Tapestry 4.1.1 async and RedirectException

2007-02-08 Thread Daniel Tabuenca
Does Tapestry 4.1.1 handle RedirectExceptions in ajax responses? I remember Tacos intercepted them and generate javascript in the response to do the actual re-direction. Is this implemented in Tapestry? How do I do this? - To uns

Re: Tacos-like AJAX effects in Tapestry 4.1

2007-02-08 Thread Daniel Tabuenca
cycle and components. The basis for that will be this module: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/fx.js?view=markup You can go ahead and use it if you're anxious ;) Daniel Tabuenca wrote: > Thanks. I don't need very advanced effects.

Re: Tacos-like AJAX effects in Tapestry 4.1

2007-02-08 Thread Daniel Tabuenca
such effects, i would use http://script.aculo.us/ a neat javascript library which does such things for you... greetings stefan Daniel Tabuenca wrote: > > Is there a way to add rendering effects such as fade in and fade out > with standard Tapestry 4.1 like you could in Tacos with the pre

Re: How to link to another website

2007-02-07 Thread Daniel Tabuenca
server side. and I can't use ognl:weburl to do that. Best wishes, Stony -Original Message- From: Daniel Tabuenca [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 11:53 AM To: Tapestry users Subject: Re: How to link to another website You mean to another non-tapestry websi

Re: How to link to another website

2007-02-07 Thread Daniel Tabuenca
You mean to another non-tapestry website? You just do If you don't want to use a static URL in your template then you could also use the @GenericLink component. On 2/7/07, Stony Zhang <[EMAIL PROTECTED]> wrote: Hello, I want to a link to another website. Anyone can tell me how to do

@EventListener and unrendered components.

2007-02-07 Thread Daniel Tabuenca
I'm trying out the new Tapestry 4.1.1 @EventListener annotation and it works great, except that if the event is on a component that is conditionally rendered, it breaks with the following error: FATAL exception raised: bad srcObj for srcFunc: onclick This is understandable since dojo cannot conn

Tap 4.1.1 Cancel button not Async?

2007-02-07 Thread Daniel Tabuenca
I have a simple form: with a simple cancel button: When it renders the page tapestry generates: However.. this seems to not be donde throuh an asynchronous request and the entire page loads. Any ideas why this could be happening? -

Tacos-like AJAX effects in Tapestry 4.1

2007-02-06 Thread Daniel Tabuenca
Is there a way to add rendering effects such as fade in and fade out with standard Tapestry 4.1 like you could in Tacos with the preEffects and postEffects parameters? If not, where would I find information on how to implement this?

Equivalent of this.form.events.submit() in Tap 4.1.1

2007-02-06 Thread Daniel Tabuenca
I know in tapestry 4.1.1 this API changed and you have to use the tapestry.form.submit(formName) call. What is the easiest most straightforward way of getting the name of the enclosing form so that I can submit it? - To unsubscri

Sorting tables when using render blocks

2007-01-24 Thread Daniel Tabuenca
I really like the contrib:Table component. The content of my table cell is dynamic and needs to be rendered with a link so I use the specially-named render blocks to specify how to render the cells. However, when I do this for the table headers, I loose the ability to sort. I was wondering if anyo

Re: About the table in contrib

2007-01-17 Thread Daniel Tabuenca
I think we could help you better if you could ask a specific question. Have you read all the documentation? Have you looked at the tapestry examples from the source code? What in particular is confusing, or what don't you understand. I'd suggest also getting Kent Tongs excellent tapestry e-book "E

Re: Recommendation...

2007-01-12 Thread Daniel Tabuenca
I am very happy using Tapestry for the WEB portion of my application and Spring 2.0 to wire up and configure my beans and do all the other stuff spring does. I especially like using spring with the Spring Annotations addon. There is some overlap between Tapestry and Spring in that tapestry uses it

Re: Newbie help with For and TextField components

2007-01-10 Thread Daniel Tabuenca
Eventually I'm going to be saving the values in RDF - the values won't have a persistent key, they're just literal values. I'm also keen to avoid using any session persistence but will do if it's necessary. Can tapestry deal with simple values that don't have identity in this way? To understand

Re: Newbie help with For and TextField components

2007-01-10 Thread Daniel Tabuenca
<[EMAIL PROTECTED]> wrote: Hi Daniel, thanks for the help! Daniel Tabuenca wrote: > The Chart example the plotValues property is persisted: > > class="org.apache.tapestry.workbench.chart.ChartPage"> > > > > ... > > > I am ass

Re: Newbie help with For and TextField components

2007-01-10 Thread Daniel Tabuenca
The Chart example the plotValues property is persisted: ... I am assuming you are not persisting since from your logs: 9627410 [btpool0-3] INFO com.example.pages.Home - Begin render. Rewind? true 9627411 [btpool0-3] INFO com.example.pages.Home - Initializing names list The list g

Re: Newbie help with For and TextField components

2007-01-10 Thread Daniel Tabuenca
I don't get it. What are you trying to do? You aren't persisting your list anywhere so at each render or rewind your lists starts off null. so by the time it gets to the @For loop the @For loop has nothing to iterate over. Am I missing something? On 1/9/07, Jim Downing <[EMAIL PROTECTE

Re: ComponentBeginRenderListener?

2007-01-04 Thread Daniel Tabuenca
I haven't done this but just from looking at the IComponent interface you could probably just override the finishLoad() method. Simply do your initialization and then call super.finishLoad(). On 1/4/07, Martin Strand <[EMAIL PROTECTED]> wrote: Hi guys. I want to initialize some stuff before a ce

Re: dynamic ognl expr

2006-12-31 Thread Daniel Tabuenca
Seems like the wrong way to go about things. Remember, it's probably best to avoid complex OGNL expressions. It's often best to add the complexity to the JAVA code. For example you could have a function in your object such that you can do getPropertyByName(columnName). And use that to return the c

Re: Jesse, Howard has removed your comment.[OT]

2006-12-13 Thread Daniel Tabuenca
While we're at it. What's the best platform to run tapestry? Linux, FreeBSD, Windows, or Mac? Intel, AMD, or PowerPC? Should I use Tomcat or Jetty? Postgres or MySql? On 12/13/06, Mark Stang <[EMAIL PROTECTED]> wrote: Before we go ANY further, we must resolve the curly brace alignment issue. M

Re: Tapestry is slow on my machine.

2006-12-07 Thread Daniel Tabuenca
Yes definitely. Disable caching has a HUGE performance hit (more then you'd think). It also eventually causes your program to run out of memory I've found. On 12/7/06, Sam Gendler <[EMAIL PROTECTED]> wrote: Do you have caching disabled? If you do, then tapestry is doing all kinds of extra w

Re: Tapestry and Spring 2.0

2006-12-07 Thread Daniel Tabuenca
I think it should be compatible, but don't quote me on that. In any case I am using Spring 2 with tapestry without using tapestry-spring. I use spring-2.0 @Configurable annotation to allow me to inject my beans into any object including Tapestry pages and Hibernate entities. I also use spring-anno

Re: RE: 4.1 Stability (Hi Jesse! :P)

2006-12-06 Thread Daniel Tabuenca
What about the Contrib components available for 4.0? Will these work with 4.1? On 12/5/06, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: So tacos 4.0 is definetly not compatible with Tapestry 4.1? If so, it would be nice to include old components and forward them to tapestry with a no

Re: RE: 4.1 Stability (Hi Jesse! :P)

2006-12-05 Thread Daniel Tabuenca
true So, i wasn't planning on including tacos:AjaxForm and such in tacos-4.1.0 but perhaps we can ease the migration process by adding them + making them forward to tapestry's ones Daniel Tabuenca wrote: > If I'm currently using 4.0.2+Tacos, can someone tell me if I can > upgrad

Re: RE: 4.1 Stability (Hi Jesse! :P)

2006-12-05 Thread Daniel Tabuenca
If I'm currently using 4.0.2+Tacos, can someone tell me if I can upgrade to 4.1+Tacos and incrmenetally port my pages that use tacos components to the new 4.1 ajax framework? On 12/5/06, Sam Gendler <[EMAIL PROTECTED]> wrote: Given the parameters that you describe for your app, I'd definitely go

Re: DISabling the back button

2006-11-29 Thread Daniel Tabuenca
How does Tacos do it? I see the @DirtyFormWarning won't let you click the back button if you changed the form (It will popup a warning instead). I believe they use javascript with window.onbeforeunload event. Here is a link: http://www.webreference.com/dhtml/diner/beforeunload/bunload4.html An

Re: Multiple browser windows causing session issue

2006-11-29 Thread Daniel Tabuenca
This problem is typical with almost all frameworks. Most frameworks provide scoping data to the request or to the session. In order to handle thee kind of things better you need to have intermediate scopes (called conversations in some frameworks). As you already noticed, turning off cookies uses

Re: Which Tapestry version to use ?

2006-11-24 Thread Daniel Tabuenca
How critical is your project? 4.1 is fairly stable and I would use it if it's not a very critical project. If you aren't going to be using Ajax features then perhaps it's better to stick with 4.0.2. On 11/24/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Hello, Since 3 days I'm discovering Tapestry an

Re: [newbie] Tapestry-Spring

2006-11-22 Thread Daniel Tabuenca
r than xml. It also requires you to weave the spring-aspects.jar using aspectj (or alternatively use spring's support for runtime weaving). Some people might not like the reliance on aspectj to do this. On 11/22/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Daniel Tabuenca a écrit : &g

Re: [newbie] Tapestry-Spring

2006-11-22 Thread Daniel Tabuenca
I think what you read there is not necessarily true. If you are using Spring 2.0 and bean scopes or target sources then spring will give you a proxy and automatically manage the lifecycle for you. Also keep in mind that you can easily use spring itself to inject the beans into a tapestry page by u

Re: Re: [newbie] Spring vs Hivemind

2006-11-22 Thread Daniel Tabuenca
ogether its config from different jars on the classpath like HiveMind does? Or do you still need to have a "master application.xml" and and do manual includes? > -Original Message- > From: Daniel Tabuenca [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 22, 2006 10:18 A

Re: Re: [newbie] Spring vs Hivemind

2006-11-22 Thread Daniel Tabuenca
Spring 2.0 has singleton/prototype/request/session/global session/ and custom scopes. It should be noted that spring's prototype scope is different from hivemind in that an object is created every time a referencing dependency is set or when one requests it directly via a getBean("beanName"). In t

Re: Re: [newbie] Spring vs Hivemind

2006-11-22 Thread Daniel Tabuenca
While we're on the subject, am I correct in my assessment that the only feature that hivemind has that spring does not is the whole configuration point /contribution system? It's been a while since I've really used hivemind so I may be wrong. On 11/22/06, Kalle Korhonen <[EMAIL PROTECTED]> wrote:

Re: [newbie] Spring vs Hivemind

2006-11-21 Thread Daniel Tabuenca
I find spring easier to use. There's not much difference in what the two can do in terms of dependency injection. The one thing that makes hivemind different is the whole configuration point/ contribution idea which makes it easier for things to plug right in by simply dropping a properly configur

Re: Dynamic Validator Parameters

2006-11-17 Thread Daniel Tabuenca
ourProperty(); 2006/11/17, Jesse Kuhnert <[EMAIL PROTECTED]>: > > Define the max validator class as a bean and reference it instead of > max= > (ie validators="validators:maxBean" i think, maybe it's more complicated > than that) > > On 11/16/06, Daniel Tabuenc

Dynamic Validator Parameters

2006-11-16 Thread Daniel Tabuenca
This may be a very easy question, but I've looked around and can't find the right way to do this. All I want to be able to do is set a validator parameter like "max" for example to the value of a page property instead of a hard-coded number. So I kinda want to do like "max=ognl:maxValue". What's

Re: users want to load same page with different entities in parallel. How?

2006-11-08 Thread Daniel Tabuenca
Storing data to the client is always an option but for larger amounts of data this becomes a problem due to large amount of data that needs to be encoded in the urls of every link or in hidden fields of a form. I think what you are looking for is a way to scope the session data so that you can hav

Re: Tapestry-Hibernate

2006-11-05 Thread Daniel Tabuenca
PROTECTED]> wrote: great, thanks , this must be the reason. How do you define it? Like *ajaxdirect.svc* ? - Original Message - From: "Daniel Tabuenca" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Sunday, November 05, 2006 16:35 Subject: Re: Tapestry-Hibern

Re: Tapestry-Hibernate

2006-11-05 Thread Daniel Tabuenca
on the first entity select. If the > version number doesn't match, a warning is raised...if I'm > understanding hibernate properly. > > Cheers, > > Bill > > On 11/4/06, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: >> So do you have some way of locking all obj

Re: Tapestry-Hibernate

2006-11-05 Thread Daniel Tabuenca
at increments on the first entity select. If the version number doesn't match, a warning is raised...if I'm understanding hibernate properly. Cheers, Bill On 11/4/06, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: > So do you have some way of locking all objects to the new session o

Re: Tapestry-Hibernate

2006-11-04 Thread Daniel Tabuenca
So do you have some way of locking all objects to the new session on the subsequent request? Is this automated in some way? My problem with the session-per-request-with-detached-objects is that there needs to be some way to easily identify and re-attach the set of objects that will be used. I've f

Re: Tapestry-Hibernate

2006-11-04 Thread Daniel Tabuenca
I use my own implementation of a session-per-conversation strategy. What I do is I have a conversation manager that stores all conversations for a user betwee requests. I persist the conversation ID to the client using an @Persis("client") annotation. I attach the conversation in the pageValidateL

Re: Tapestry-Hibernate

2006-11-03 Thread Daniel Tabuenca
What exactly are the issues with Tapestry and Lazy Loading? I've been using hibernate and tapestry extensively and have not run into any lazy loading issue. I really don't see anything in Tapestry that would make lazy loading any more of an issue than it is in any other web framework. It all real

Re: One component, multiple templates?

2006-10-30 Thread Daniel Tabuenca
Why not use a paraamter on the MessagePane component? You can then use an @If component in your MessagePane to render the css differently depending on the value of the parameter. Am I not understanding correctly what you are trying to do? On 10/30/06, Shaun <[EMAIL PROTECTED]> wrote: Hello al

Re: Call listener after page appears on screen

2006-10-26 Thread Daniel Tabuenca
Why not just use an @InvokeListener component as the last component in your page? On 10/26/06, Christian Dutaret <[EMAIL PROTECTED]> wrote: I tried to achieve the same thing some time ago, and I couldn't find anything that would work with dojo and EventListeners. As you mentioned, this is proba

Re: Tomcat failover.

2006-10-25 Thread Daniel Tabuenca
I'm not an expert, but you do not need Apache HTTPD server in order to get Tomcat to cluster (although you can certainly use it if you want). As far as tapestry, I don't think there is anything special you need to do other than make sure your session is serializable. On 10/25/06, Leo Sakhvoruk

Re: Reusable Component - which handles FORM/REQUEST values

2006-10-24 Thread Daniel Tabuenca
If I understand correctly, you're question is where to ultimately put the upDate(c);, In your example you put it on the setYear() but that relies on setYear being called last which I don't think is a guarantee. Alternatively you could put it on all of them (but this would be inneficient). I beli

Re: Reusable Component - which handles FORM/REQUEST values

2006-10-24 Thread Daniel Tabuenca
I too, was surprised by the lack of a template-based component inplementation by default in tapestry. Here is my simple implementation based on BaseComponent: import java.util.LinkedList; import java.util.List; import org.apache.tapestry.IMarkupWriter; import org.apache.tapestry.IRender; import

@For and @Directlink context

2006-10-23 Thread Daniel Tabuenca
I've been playing around with breaking down my application into component and one thing has been giving me headache which is how to correctly handle components inside a @For loop. take for example a simple component that lets you display a person in either short or full detail view. I would have