RE: Kickstart 0.2 released

2006-01-17 Thread Schulte Marcus
My goal is not to re-write the n-th transaction interceptor-wrapper. Rather, my first focus is consistent tapestry integration. And treating hibernate sessions the way you used to treat your db-connections is asking for trouble. The key point with hibernate is, that the session and the objects loa

Re: Testing IntelliJ plugin

2006-01-17 Thread Matt Welch
I want to make sure I understand. This plugin is only usable on the EAP versions of Idea? That would be a shame. I strongly discourage anyone on my team from using EAPs. We've just had too many problems in the past. On 1/16/06, Hugo Palma <[EMAIL PROTECTED]> wrote: > > This has been fixed for vers

RE: First page display slowdown in v 4.0

2006-01-17 Thread Yunfeng Hou
Do you start jetty use run or debug mode? It should be in debug mode for eclipse to hot-place the modified java code. And is the JRE used to launch jetty has version > 1.4? Yunfeng Hou --- "Gentry, Michael (Contractor)" <[EMAIL PROTECTED]> wrote: > I'm using Jetty/JettyLauncher with Eclipse o

Re: NumericField for customer Number? etc

2006-01-17 Thread Kent Tong
Paul Ferraro columbia.edu> writes: > If you want to bind your field to a number with 10 digits, you should > not need to write your own validator nor use custom logic in your listener. > Try this: > > > > value="translator:number,pattern=00"/> > value="validators:required

Re: Adding anchor to a form submission

2006-01-17 Thread Kent Tong
Alan Chandler chandlerfamily.org.uk> writes: > > Then I guess you may try to throw a RedirectException and put the > > anchor into the URL. > > How do you add the anchor? The JavaDocs for PageRedirectException don't give > much of a clue I mean RedirectException, not PageRedirectException. Th

[Newbe]Error when starting the tutorial from Eclipse3.1/Tomcat5.5

2006-01-17 Thread ZedroS Schwart
Hi I'm new to Tapestry and I *just* would like to run the HelloWorld demo. First of all, my error is : java.lang.ClassNotFoundException: org.apache.tapestry.ApplicationServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338) at org.apache.ca

Tapestry 3 - dynamic event listener problem

2006-01-17 Thread sean gao
Hi, In our project we use an XML driven menu in Border component menu.xml example: Border.jwc example: Border.html example: Border.java example: public void doLogout(IRequestCycle cycle) { ... } publ

RE: Why is there an engine per locale?

2006-01-17 Thread Skriloff, Nicholas
Is the rewind cycle actually going to be removed in tapestry 4? If so, why? -Original Message- From: Kris Rasmussen [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 6:34 AM To: Howard Lewis Ship; Tapestry users Subject: Re: Why is there an engine per locale? Thank you Howard. I

RE: Spanish characters and Acegi authentication

2006-01-17 Thread Shannon, Andrew
The simple question is what's your charset attribute in the html header meta tag? You want UTF-8 and I believe this will take care of the problem. Buena suerte. -Andrew -Original Message- From: Geoff Longman [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 1:08 PM To: Tapest

Re: Spanish characters and Acegi authentication

2006-01-17 Thread Sergei Dubov
Geoff, That's not Spanish characters, come on... It's just ASCII garbage. :-) -S. Geoff Longman wrote: Ok. looking up the stack in the debugger it is obvious that Acegi is not the culprit. The string is screwed from the get go. Geoff On 1/17/06, Geoff Longman <[EMAIL PROTECTED]> wrote: Thi

pageValidate being called inconveniently

2006-01-17 Thread Javier Molina
I have some public and some protected pages in my application. All pages are based on the same dreamweaver template, with non-editable sections that should be present in all pages. In one of these non-editable sections (and hence in every tapestry page) is a search component (with it's own jwc,

Re: form success and cancel both called?

2006-01-17 Thread jeff emminger
alright i'll give that a shot - does this mean it's a bug? On 1/17/06, Ben Dotte <[EMAIL PROTECTED]> wrote: > We had the same problem and found that using @Button or @Any > type="button" with onclick="javascript:this.form.events.cancel();" > instead of @Submit fixed the problem. > > Ben > > -

Re: Spanish characters and Acegi authentication

2006-01-17 Thread Geoff Longman
Ok. looking up the stack in the debugger it is obvious that Acegi is not the culprit. The string is screwed from the get go. Geoff On 1/17/06, Geoff Longman <[EMAIL PROTECTED]> wrote: > This is the first time I've run into this! > > A login page. The form submits directly into Acegi for authentic

Spanish characters and Acegi authentication

2006-01-17 Thread Geoff Longman
This is the first time I've run into this! A login page. The form submits directly into Acegi for authentication. The username is: aáéÉíóúñÑ¿¡«» (I'm told these are spanish characters :-) But when the string arrives in the DAO that looks up the user it looks like this... aáÃ(c)ÉíóúñÃ'¿¡

Stuck: Is ognl config different for Portal Server?

2006-01-17 Thread eguy66
Can someone tell me how the configuration for ognl resolution differs between a servlet environment and a portlet environment? I am trying to come up to speed with using Tapestry for Websphere Portal 5.1 I am developing using RAD 6. I have successfully deployed the Hello World tutorial as a portl

Re: First page display slowdown in v 4.0

2006-01-17 Thread Bryan Lewis
I hear what you're saying! I prefer the good old compiled-strong-type-checking Java approach... not a fan of perl, haven't tried ruby. I don't even like annotations yet. :-) But I saw some comments on the web that appeared to be promising instant turn-around for simple edits and I wanted it if

Re: Exception Page from Tapestry

2006-01-17 Thread Bryan Lewis
We do a similar thing, intercept activateExceptionPage() in a custom Engine. You can get the same detailed trace that Tapestry displays: ExceptionDescription[] edArray = new ExceptionAnalyzer().analyze(cause); // I'm omitting some code that checks for some trivial exceptions that

RE: form success and cancel both called?

2006-01-17 Thread Ben Dotte
We had the same problem and found that using @Button or @Any type="button" with onclick="javascript:this.form.events.cancel();" instead of @Submit fixed the problem. Ben -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Emminger Sent: Tuesday, January 17, 2006 10:4

Re: NumericField for customer Number? etc

2006-01-17 Thread Paul Ferraro
If you want to bind your field to a number with 10 digits, you should not need to write your own validator nor use custom logic in your listener. Try this: Paul Kent Tong wrote: > spm tapestryforums.com> writes: > > >> Here is what I would like: >> >> >> >> > value="v

cotrib table - change sort links

2006-01-17 Thread yamsterdamer
Hi, Does Anyone know how to access the link that is created in the column heading in contrib table and change its content or attributes? The goal is to make it stateful or add parameters to it. thanks, yael. Ron Piterman wrote: > you could change direct link's stateful parameter to true. I wou

form success and cancel both called?

2006-01-17 Thread Jeff Emminger
it seems from my log output that when i click my Form's cancel button, the success listener is being called after the cancel listener. i have a Form: and in the page template a cancel button: in the .java file: public String onCancel() { log.debug("onCanc

Submitting Form to custom Service

2006-01-17 Thread SECPay Brian Sperryn
Hi, I am using tapestry 3.0.3. Can anyone tell me how to submit a form to a custom service rather than an calling the same page?(default) Thanks and Regards, -- Brian Sperryn Software Developer SECPay Technical Support - To

RE: First page display slowdown in v 4.0

2006-01-17 Thread Gentry, Michael \(Contractor\)
I'm using Jetty/JettyLauncher with Eclipse on OS X and it hot redeploys changes to existing methods (seems to have problems with adding/deleting methods/etc). I didn't do anything special for this to occur (I'm assuming JettyLauncher is doing something under the hood?). I used to use Tomcat for d

Re: re-instantiate components in a loop

2006-01-17 Thread Ron Piterman
you could change direct link's stateful parameter to true. I would expect it will do the same? Stijn Christiaens wrote: Maybe this is also not such a good idea, as ActionLink is depecrated and will be removed in 4.1. I've seen someone ask what the replacement was, but it never saw the answer.

RE: Kickstart 0.2 released

2006-01-17 Thread Konstantin Ignatyev
Session per request is the simplest and most efficient approach in many cases and it does not require Java 5. Please look at the barebone implementation with CGLib alone: http://sandbox.sourcelabs.com/kosta/hibernate-bhw/java/com/sourcelabs/hibernate/bhw/haop/doc/haop.ht

Re: re-instantiate components in a loop

2006-01-17 Thread Stijn Christiaens
Maybe this is also not such a good idea, as ActionLink is depecrated and will be removed in 4.1. I've seen someone ask what the replacement was, but it never saw the answer. The documentation also does not say what you should replace it by. Ciao, Stijn On Tue, 2006-01-17 at 16:37 +0100, Ron Pite

Re: re-instantiate components in a loop

2006-01-17 Thread Ron Piterman
Hallo Yael, I never really used contrib:table but I guess, this happens because the table uses the wrong link type for sorting, I guess the DirectLink, but am not really sure about that - instead you should "convince" the table to use ActionLink - this will make the page rerender (before rende

Re: Kickstart 0.2 released

2006-01-17 Thread Jesse Kuhnert
Yeah, definitely. Marcus's code is very good. It feels like we've found a keeper. I think we can all agree that having an integration point similar to SEAM would be a huge help in dropping the barrier to using tapestry. On 1/17/06, Chris Chiappone <[EMAIL PROTECTED]> wrote: > > Jesse is the tacos

RE: re-instantiate components in a loop

2006-01-17 Thread yamsterdamer
Hi Ron I think you pretty much got it right. For |___Component |___Contrib Table Step 1: the loop is rendering itself 2: in the first iteration a component with current parameters and an id, let's say “myComp” is being created, and renders itself 3: in the second iteration the same comp

RE: NumericField for customer Number? etc

2006-01-17 Thread spm
mike jones wrote: > It return a Number so try something like: > > ((Number) getTranslatedFieldSupport().parse(this, value)).intValue()); > > > Thanks! I would have liked a numeric field which allowed zeros and validated on the client as well. What I have gotten to work is:

Re: NumericField for customer Number? etc

2006-01-17 Thread Kent Tong
spm tapestryforums.com> writes: > Here is what I would like: > > > > value="validators:required,minLength=10,maxLength=10,numeric,omitZero=false"/> > > If your customerNumber is a string, then you may try: If it is a number, then you'll need to write your own validator. -- Author of a

Re: Kickstart 0.2 released

2006-01-17 Thread Chris Chiappone
Jesse is the tacos guy, and I think he meant kickstart vs hivetrans when he was talking about competition. On 1/17/06, Ted Steen <[EMAIL PROTECTED]> wrote: > oups! > just read about the property-persistence-strategy "conversation" > so the cache size would not be a problem. > nice.. > > On 1/17/06

Re: re-instantiate components in a loop

2006-01-17 Thread Ron Piterman
Hallo Yael, you usually don't need to - what do you mean by "after rendering" - If I get this right, you are trying to access a component which is inside a loop from a component / method which is performed after the loop is ended? I still can't figure out what is bothering you or what you are tr

Re: Injecting an ASO into a service

2006-01-17 Thread Christian Haselbach
Hello Dmitry Gusev <[EMAIL PROTECTED]> wrote: > Here is an example of creating ApplicationStateObjectProvider which allows > you to inject ASOs via "aso" prefix, for instance: Thank you very much, that should be exactly what I was looking for. I just thought that getting an ASO object in a servi

Re: Injecting an ASO into a service

2006-01-17 Thread Dmitry Gusev
Here is an example of creating ApplicationStateObjectProvider which allows you to inject ASOs via "aso" prefix, for instance: In order to do this we need to define an "aso" prefix for Application State Objects. We can do it li

RE: re-instantiate components in a loop

2006-01-17 Thread yamsterdamer
The problem is not creating the page in the first time - that goes smoothly. Let me give you a more detailed description of the problem: I have a contrib table within my costume component. The link used to sort the table includes reference to the containing component using its id. But since the

Re: Injecting an ASO into a service

2006-01-17 Thread Christian Haselbach
Hello Quoting Raul Raja Martinez <[EMAIL PROTECTED]>: > I had the inverse problem and I solved using Hiveutils, its > objectbuilder allows you to inject services and objects into POJOS that > then can be used as ASOs. Thanks for the hint, I will have a look at it. Regards, Christian ---

Re: re-instantiate components in a loop

2006-01-17 Thread Ron Piterman
hallo yael, I could not quite figure what the problem is - what are you trying to achieve? basically you should use components binding inside a For loop to make each component render otherwise. In the For, you use the value and index parameter bindings to set the current iteration value/index to

Re: Kickstart 0.2 released

2006-01-17 Thread Ted Steen
oups! just read about the property-persistence-strategy "conversation" so the cache size would not be a problem. nice.. On 1/17/06, Ted Steen <[EMAIL PROTECTED]> wrote: > hi! > > I think the generic data access objects on the hibernate page could be > usefull as they, among other things, support a

Re: Kickstart 0.2 released

2006-01-17 Thread Ted Steen
hi! I think the generic data access objects on the hibernate page could be usefull as they, among other things, support a generic way to specify the id (not only long). One thing that I come to think about regarding the session-per-conversation pattern is that there could be memory issues. the se

Re: Exception Page from Tapestry

2006-01-17 Thread Rudolf Baloun
Hi, you can extends the BaseEngine: public class MyBaseEngine extends BaseEngine { @Override protected void activateExceptionPage(IRequestCycle cycle, Throwable cause) { // do here something! } } Add MyBaseEngine to your configuration-file (here its called blabla.applicati

Re: Exception Page from Tapestry

2006-01-17 Thread Olve Hansen
tir, 17,.01.2006 kl. 21.07 +1100, skrev Lindsay Steele: > Is there anyway to get the exception page that tapestry displays on an > exception. > > At the moment I intercept the exception and display a custom page to > the user. At the same time I have it send me a mail > that the exception occ

Exception Page from Tapestry

2006-01-17 Thread Lindsay Steele
Is there anyway to get the exception page that tapestry displays on an exception. At the moment I intercept the exception and display a custom page to the user. At the same time I have it send me a mail that the exception occurred and use my own code to get the cause and some of the exceptio

RE: Kickstart 0.2 released

2006-01-17 Thread Schulte Marcus
hi ted, thanks for the feedback! > Why do you not use Hivetranse for session/transaction management? > There has already been done alot of work on that. It is a clean > Hivemind contribution. Check it out! > http://hivetranse.sourceforge.net/ > That's a story which went a bit "unlucky". Last summ

re-instantiate components in a loop

2006-01-17 Thread yamsterdamer
> Hi. > I'm using T4, and in some of my pages I create components within a loop. > From what I have seen, seems like tapestry re-initializes the instance of the > component with different parameters in each iteration, instead of > instantiating a new component. > For example, looking at the c

Re: Adding anchor to a form submission

2006-01-17 Thread Alan Chandler
On Tuesday 17 January 2006 01:16, Kent Tong wrote: > Alan Chandler chandlerfamily.org.uk> writes: > > Unfortunately, konqueror doesn't actually jump to the correct place ( and > > was true before) but much worse, firefox seems loop calling the server > > for a new page. > > Then I guess you may tr