Re: call dojo.widget.byId('addGroupDialog').show() directly

2008-02-04 Thread Andreas Andreou
Well, looks like the widget sint available when you're trying to use it... you could delay the execution of your code for a bit... see the setTimeout javascript function for more On Feb 4, 2008 9:51 AM, learner <[EMAIL PROTECTED]> wrote: > i try out code like below and i get "undefined" > > > > >

Re: T5: best practice for a multiple module app

2008-02-04 Thread Angelo Chen
Hi Renat, EJB is not a must, any suggestions for this kind of app as long as front end is Tapestry 5. Renat Zubairov wrote: > > Hello Angelo, > > Main question is do you want to use EJB in your app or not, because > usually > there is no proper way to share state between multiple WAR's deplo

AW: Tapestry[5] - Overriding the form error messages

2008-02-04 Thread Maximilian Weißböck
Pleas fill a Jira issue, I'm also very concernd about accessibility requirements. T5 shold have an esys way to support accessibility requirements! thx, Max > -Ursprüngliche Nachricht- > Von: Adam Zimowski [mailto:[EMAIL PROTECTED] > Gesendet: Samstag, 02. Februar 2008 15:32 > An: Tape

Re: T5: best practice for a multiple module app

2008-02-04 Thread Davor Hrg
Using one persistence layer (I'll talk about Hibernate, but it most likely applies to any other) for more than one web-app is a bit tricky. Simpler part is creating subclasses of TapestryFilter one that loads hibernate and shares it via ServletContext one that loads Tapestry without hibernate an

Re: T5: best practice for a multiple module app

2008-02-04 Thread Renat Zubairov
Hi Angelo, Basically if you have a number of web application, Tap or not Tap :) there are number of problems you need to solve if you want them to look as one application for the user: 1. Authentication - in case you would use propreitary authentication schemes that are based on the HTTP sessions

Re: T5: best practice for a multiple module app

2008-02-04 Thread Angelo Chen
Hi Renat, I think your recommendation of j2ee and ear deployment is a better option, i think again, there is really no need to make the multiple module looks like one, we can have multiple web applications, now this T5 IOC inside EJB part without EJB is interesting, what's the advantage of this

Re: T5: Custom components are not statefull

2008-02-04 Thread Alexander Lamb
No, it extends nothing. Actually, the TextField was put in the loop only to check I was not going crazy... to see the loop was indeed statefull, but not for my custom component. Should a custom component extend some class to benefit from the id increment? Alex Le 4 févr. 08 à 13:44, Mich

Re: Tapestry[5] - Overriding the form error messages

2008-02-04 Thread Adam Zimowski
This doesn't make sense, as there should be no reason to coerce on a single type (org.apache.tapestry.corelib.components.Form). What does your Start class look like? On Feb 4, 2008 9:29 AM, DavidWei <[EMAIL PROTECTED]> wrote: > > I try to run your codes, but got an exception as follows: > An unexp

Re: T5: best practice for a multiple module app

2008-02-04 Thread Anton Gavazuk
It makes Hibernate working as Jboss MBean service, this service is responsible for working with Hibernate sessions. This way leaves you only with JBoss, without any alternative. 2008/2/4, Jonathan Barker <[EMAIL PROTECTED]>: > Angelo, > > Take a look at JBoss .har files. I've never tried it but i

Re: Tapestry[5] - Overriding the form error messages

2008-02-04 Thread DavidWei
I try to run your codes, but got an exception as follows: An unexpected application exception has occurred Failure reading parameter form of component test/Start:errormsg: Could not find a coercion from type org.apache.tapestry.corelib.components.Form to type org.apache.tapestry.corelib.component

Re: T5: HibernateSessionManager

2008-02-04 Thread Davor Hrg
HibernateSessionManager handles session for a request, and does commit at the end. if you want to have more than one commit you should not call it directly on the injected session since it will confuse HibernateSessionManager. Same goes for rollback. Davor Hrg On Feb 4, 2008 3:52 PM, Angelo Che

RE: T5: best practice for a multiple module app

2008-02-04 Thread Jonathan Barker
Angelo, Take a look at JBoss .har files. I've never tried it but it might be a way to share a common Hibernate setup among multiple webapps. Jonathan > -Original Message- > From: Angelo Chen [mailto:[EMAIL PROTECTED] > Sent: Sunday, February 03, 2008 8:28 PM > To: users@tapestry.apache.

Re: frequent out of perm size

2008-02-04 Thread Peter Stavrinides
In what context are you using Tomcat (development, production), what machine are you using, what version of Java, memory errors are context specific, don't assume it relates to specifically tapestry. You may want to get all your info together and post on the Tomcat mailing list you should get w

Re: T5: Custom components are not statefull

2008-02-04 Thread Michael Courcy
Sorry I meant AbstractField Michael Courcy a écrit : Does your enrollmentbenchmarkchart compenent extends AbstractTextField ? Alexander Lamb a écrit : Hello list, It looks like custom components are not statefull. Indeed, I have a loop which contains a graph I generate and a TextField (for

T5: How to handle caching for applications in multi-user environments

2008-02-04 Thread Thomas Zenglein
Hi, we encountered the situation where users authenticate in a web application, then using a web form to send mail to certain e-mail addresses. The T5 app for that resides under the same URI (here: https://some-server/mymailer/start). Certain web form elements (e.g. 1-line input fields) are pr

Re: T5: How to handle caching for applications in multi-user environments

2008-02-04 Thread Robert Zeigler
Hi Thomas, I don't have any issues in T5 like what you describe. How are you storing the request values? I assume you're putting them into page fields? A few things to check: 1) Your page fields need to be private 2) If you're trying to store the values in the httpsession, make sure you're

Re: ClassCastException in CoercingPropertyConduitWrapper

2008-02-04 Thread Howard Lewis Ship
Only page classes should go in the pages package. You should move your implementations elsewhere. Currently, Tapestry is treating those pages as if they are page components and transforming them (they are, after all, in the folder that designates this) ... and that causes some confusion down-strea

Re: T5: Custom components are not statefull

2008-02-04 Thread Davor Hrg
Actions target component so the id used. when your component is rendered multiple times, clientId changes and can be used as identifier. if you want clientId in the action link, send is as context parameter. Davor Hrg On 2/4/08, Alexander Lamb <[EMAIL PROTECTED]> wrote: > Well, getting close, b

Re: T5: Custom components are not statefull

2008-02-04 Thread Alexander Lamb
Well, getting close, but not quite. Indeed, the getClientId works fine, but since my component is actually a graph (JFreeChart) being rendered from an URL, it looks like the clientId is not pushed to the ActionLink created. @SuppressWarnings("unchecked") void beginRender(MarkupWrite

Re: frequent out of perm size

2008-02-04 Thread Kevin Menard
I'm guessing you're using T4 with caching disabled? This is a known "issue" and there's not much you can do about it other than periodically restart Tomcat. The issue is related to cache being disabled, so you won't run into it in production. -- Kevin On 2/4/08 12:39 AM, in article [EMAIL PRO

tapestry and tomcat

2008-02-04 Thread nasirmunir
Tools I am using are: Tapestry 4.x Tomcat 5.5.x Eclipse java europa Situation: I can see tomcat up and running Problem: Now when I am trying to use Tapestry to run Hello World application, I am running into problems. It is perhaps not recognizing the file, as it is showing me page not found error.

Re: T5: Custom components are not statefull

2008-02-04 Thread Michael Courcy
Does your enrollmentbenchmarkchart compenent extends AbstractTextField ? Alexander Lamb a écrit : Hello list, It looks like custom components are not statefull. Indeed, I have a loop which contains a graph I generate and a TextField (for testing purposes), and the generated code looks like t

Re: ClassCastException in CoercingPropertyConduitWrapper

2008-02-04 Thread Moritz Gmelin
For one test case, the Implementations are in the same package as the page itself. For the original problem, the implementations are in a package outside of the WebApplication. The error occurs in both situations. The error does not occur if the page has no "onSubmit" method. But I need t

T5: Custom components are not statefull

2008-02-04 Thread Alexander Lamb
Hello list, It looks like custom components are not statefull. Indeed, I have a loop which contains a graph I generate and a TextField (for testing purposes), and the generated code looks like this: name="textfield_8" type="text" value="ITALY">class="t-error-icon t-invisible" id="textfield

Re: Tapestry[5] - Overriding the form error messages

2008-02-04 Thread Adam Zimowski
https://issues.apache.org/jira/browse/TAPESTRY-2119 On Feb 4, 2008 2:54 AM, Maximilian Weißböck <[EMAIL PROTECTED]> wrote: > Pleas fill a Jira issue, I'm also very concernd about accessibility > requirements. T5 shold have an esys way to support > accessibility requirements! > > thx, Max > > > > -

Re: [T5] Why can't i directly access attributes from my superclass?

2008-02-04 Thread Daniel Jue
Don't worry, you're not the only one who encountered this problem the hard way. ;-) Time to add this to the wiki, since Early T5 adopters will likely run into this. http://wiki.apache.org/tapestry/Tapestry5Caveats On Jan 30, 2008 12:27 PM, Marcelo Lotif <[EMAIL PROTECTED]> wrote: > I'm using 5.

Re: T5: Custom components are not statefull

2008-02-04 Thread Josh Canfield
Ok, I think it's clearer to me what you're trying to do. Your first assertion is correct; Components are not stateful. You can either put something into the action link context or into the session to maintain your state. Take a look at the source for *AbstractTextField*

Re: T5: Custom components are not statefull

2008-02-04 Thread Chris Lewis
Alex, Id generation, as far as I know, does not come for free. If you want to receive an id generated by T5, you have to explicitly request it. You'll find this done in one of the parent classes of the field elements - possibly in AbstractField. I've implemented it the same way in several dif

Re: T5: Custom components are not statefull

2008-02-04 Thread Davor Hrg
maybe it must be inside a form... Davor Hrg On Feb 4, 2008 2:36 PM, Alexander Lamb <[EMAIL PROTECTED]> wrote: > No, it extends nothing. Actually, the TextField was put in the loop > only to check I was not going crazy... to see the loop was indeed > statefull, but not for my custom component. > >

Re: T5: Custom components are not statefull

2008-02-04 Thread Alexander Lamb
Good point. I tried but no change! Le 4 févr. 08 à 15:15, Davor Hrg a écrit : maybe it must be inside a form... Davor Hrg On Feb 4, 2008 2:36 PM, Alexander Lamb <[EMAIL PROTECTED]> wrote: No, it extends nothing. Actually, the TextField was put in the loop only to check I was not going craz

T5: HibernateSessionManager

2008-02-04 Thread Angelo Chen
hi, I have used Session session in my app and it works, I have seen HibernateSessionManager being mentioned many times in the list, what are the advantages of using HibernateSessionManager compared app which does not explicitly use it? Thanks, Angelo -- View this message in context: http://ww

Re: T5: Custom components are not statefull

2008-02-04 Thread Chris Lewis
It's difficult to respond as clearly we're not seeing all of the code, but here one would assume that your custom component, in terms of generated markup, is simply an img element. No action link will have your generated id because you're not creating one in this code. Rather you create and out

Re: T5 tapestry5-acegi salt source not overridable

2008-02-04 Thread Franz Amador
Yup, that works for me, too. Thanks. I didn't know I could do that. According to the JavaDoc for the "Alias" class, however, it looks like I should instead be contributing to the AliasOverrides service, and that does seem to work: "The AliasOverrides service also takes an unordered configurat

Re: ClassCastException in CoercingPropertyConduitWrapper

2008-02-04 Thread Howard Lewis Ship
Please file an issue and I'll look into it in more detail. This should be working, the BeanEditor should operate in terms of the properties defined by the interface. On Feb 4, 2008 12:32 PM, Moritz Gmelin <[EMAIL PROTECTED]> wrote: > Still does not work, even after moving my entities into some ot

Re: ClassCastException in CoercingPropertyConduitWrapper

2008-02-04 Thread Moritz Gmelin
Still does not work, even after moving my entities into some other package. TT1 is the superclasss of TT2 What's also very strange is that after editing TT1, submitting and then hitting the link to edit TT2, the beanform displays a TT1 entities (at least the properties of the beanform are

Re: Tapestry and Article at Theserverside.com

2008-02-04 Thread Filip S. Adamsen
Filip S. Adamsen: +1 (non-binding) ;) Ulrich Stärk skrev: -- /| /| | | ||__|| | Don't feed | / O O\__

T5: Best way to break for paragraphs

2008-02-04 Thread Mark W. Shead
I have a textarea field that users may enter multiple paragraphs. Paragraphs are separated by two carriage returns. Obviously when I show the contents in HTML the paragraphs don't show up. I'm sure can also do some type of regex to add at the end of each line and package it into my own

Re: T5: Best way to break for paragraphs

2008-02-04 Thread Howard Lewis Ship
You can easily write a component to handle this task; something based on OutputText, but using a different Regexp to determine where a paragraph ends. On Feb 4, 2008 8:18 PM, Mark W. Shead <[EMAIL PROTECTED]> wrote: > I have a textarea field that users may enter multiple paragraphs. > Paragraphs a

Re: T5: Best way to break for paragraphs

2008-02-04 Thread Dapeng
here is what i doing ... public String getEscapedBody() { return someString.replace("&", "&") .replace("\r\n", "") .replace("\n", "") .replace(" ", "  "); } Howard Lewis Ship wrote: You can easily write a component to handle this