Re: T5: component id, element id

2008-04-10 Thread Chris Lewis
Hi Josh, Indeed t:id does work, but apart from the fact that I'm not entirely sure what T5 does with that value as opposed to the un-namespaced version (id), it doesn't fully work. The reason is because the Any component, like many in the core lib, do not explicitly write a DOM id in the HTML of t

Re: T5 property file for enum

2008-04-10 Thread Michael Gerzabek
Great, Thanks! Robert Zeigler schrieb: You can put the labels in your application's global properties file. See: http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html In particular, note the section on the Application Message Catalog: "Application Message Catalog If th

Re: help in method triger

2008-04-10 Thread Filip S. Adamsen
Hi, If you inject ComponentResources in your page you can use that to generate an action link that you can send to the client. You can then use this link to trigger the event. Something like this in your page class: @Inject private ComponentResources componentResources; public String

help in method triger

2008-04-10 Thread 孟凡振
I am using typestry5 with extjs.. in extjs I can call tayesry method with a tag in *.tml and a OnEvent describing the methon in page class.. Now, for some reason ,I must remove the in *.tml,but method still can be called in extjs. would some warmheart people can give me a answer.. in my

Re: [T5] Override mapped configuration value

2008-04-10 Thread Howard Lewis Ship
Or contribute your own DataTypeAnalyzer ahead of the DefaultDataTypeAnalyzer that specifically recognizes the String type and provides whatever datatype you want. But I suspect Filip's approach is what you want. On Thu, Apr 10, 2008 at 2:43 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi Pet

Re: [T5] Override mapped configuration value

2008-04-10 Thread Filip S. Adamsen
Hi Peter, If you're doing this to provide another property editor for the "text" data type for use in BeanEditor/BeanEditForm you should take a look at the BeanBlockOverrideSource which will let you override the defaults specified in BeanBlockSource. http://tapestry.apache.org/tapestry5/apid

Re: T5.0.11 beanEditForm

2008-04-10 Thread Filip S. Adamsen
This has been fixed in 5.0.12 where you can now add the @Inject annotation to the constructor that Tapestry should use for auto-instantiating your object. -Filip On 2008-04-07 11:09, Natia Gdzelishvili wrote: I am using beanedit form, i have a simple code AddCelebrity.tml AddCelebrity.jav

Re: T5: Add parameter to Grid cell element

2008-04-10 Thread Filip S. Adamsen
Hey, Chris Lewis replied to a similar question today, you can see his reply at http://article.gmane.org/gmane.comp.java.tapestry.user/60471. Hope that helps. -Filip On 2008-04-09 15:01, MoritzGilsdorf wrote: Hi, is there any way of adding custom parameters to the element of a grid cell? I

Re: PropertyEditBlock for a multi-field object

2008-04-10 Thread Bill Holloway
Doh! Naturally :) Bill On Thu, Apr 10, 2008 at 3:44 PM, Peter Beshai <[EMAIL PROTECTED]> wrote: > The way I do it is something like: > > > > > > Where RangeDateEditor is a component you make to handle editing it :-) > > Peter Beshai > > On Thu, Apr 10, 2008 at 4:29 PM, Bill Holloway <[E

RE: T5: beta?

2008-04-10 Thread Jonathan Barker
Rob, We're making headway. So, you acknowledge that Tapestry is a good framework. Your major complaint is the lack of backward compatibility between major releases. I don't think anyone in the community will disagree that this is an annoyance, so it comes down to whether or not it is accept

OgnlContext reuse...

2008-04-10 Thread lachu
Hi, We saw the big performance boost we got by using ognl 2.7.1 with tapestry. In our project we use ognl extensively (directly) and we want to improve the performance by using ognl compilation to get the bytecode enhancement. But we don’t understand something. We have to pass a context and roo

Re: PropertyEditBlock for a multi-field object

2008-04-10 Thread Peter Beshai
The way I do it is something like: Where RangeDateEditor is a component you make to handle editing it :-) Peter Beshai On Thu, Apr 10, 2008 at 4:29 PM, Bill Holloway <[EMAIL PROTECTED]> wrote: > I've got a custom type called RangeDate that consists of an enum (should > be > a select, clie

PropertyEditBlock for a multi-field object

2008-04-10 Thread Bill Holloway
I've got a custom type called RangeDate that consists of an enum (should be a select, client-side) and two java.util.Date fields. I'd like to contribute a property editor block for RangeDate to the bean block source. So far, all I've seen are examples involving simple one-field edit blocks. Is it

Re: T5: How to add DOCTYPE decl and additional attributes to html element?

2008-04-10 Thread Robert Zeigler
Doctype support has been in T5 support for some time now. The simplest thing to do for for situation seems to be to put the DOCTYPE and html w/ attributes into a "Layout" component that you then include on your pages. Or am I missing something? Robert On Apr 10, 2008, at 4/1012:07 PM , Jan

Re: T5 property file for enum

2008-04-10 Thread Robert Zeigler
You can put the labels in your application's global properties file. See: http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html In particular, note the section on the Application Message Catalog: "Application Message Catalog If the file WEB-INF/AppName.properties exists in t

[T5] Override mapped configuration value

2008-04-10 Thread Peter Beshai
TapestryModule contributes to the DefaultDataTypeAnalyzer String.class as "text". Is it possible to override what String.class is mapped to? http://tapestry.apache.org/tapestry5/tapestry-ioc/configuration.html states that: "The keys passed in must be unique. When conflicts occur, Tapestry will log

Re: T5 : session timeout

2008-04-10 Thread Josh Canfield
> One approach is to store this data transiently in an ASO. http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html "With an ASO, the value is automatically stored outside the page; with the default storage strategy, it is stored in the session. " Unless you've built a different A

T5: How to add DOCTYPE decl and additional attributes to html element?

2008-04-10 Thread Jan Vissers
Hi, Using T5.0.11 and each generated HTML should contain: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml";> How can I achieve this? Thank you, -J. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: T5: component id, element id

2008-04-10 Thread Josh Canfield
Hey Chris, t:id="my_div" seems to do what you want. I haven't looked closely at un-namespaced id works in Tapestry, I've just always used the t:id variety... Josh On Thu, Apr 10, 2008 at 5:36 AM, Chris Lewis <[EMAIL PROTECTED]> wrote: > Dear list, > > I decided to throw together an app detailing

Re: ExceptionReport page

2008-04-10 Thread Peter Stavrinides
great thanks Howard Lewis Ship wrote: If you override the ExceptionReport page, that that's it; your apps' ExceptionReport overrrides the core library's ExceptionReport. You should look into overriding the RequestExceptionHandler service; its job is to decide how to report an uncaught exception

T4: Issue with Hibernate Session closes on Custom 404 page render

2008-04-10 Thread Mike Leonardo
Hey, I have a Custom 404 page that uses the hibernate session to render part of the page. If I visit the page explicitly it works fine, but if I set it as the 404 page in web.xml then it throws an exception that the session is closed: org.hibernate.LazyInitializationException : failed to lazily

Re: ExceptionReport page

2008-04-10 Thread Howard Lewis Ship
If you override the ExceptionReport page, that that's it; your apps' ExceptionReport overrrides the core library's ExceptionReport. You should look into overriding the RequestExceptionHandler service; its job is to decide how to report an uncaught exception. You could add a product vs. developmen

Re: T5: beta?

2008-04-10 Thread Davor Hrg
Would you give up already, you are not a tapestry user, tapestry 5 is very well documented, has a great mailing list, has exhaustive unit tests... If I don't like some framework, I don't use it and that's it. Please have some respect to tapestry users and go away already. Davor Hrg On Thu, Apr 1

Re: T5: beta?

2008-04-10 Thread Rob Smeets
Well, I'm not disputing the fact that Tapestry is a good framework but all what I'm saying is the fact that at every major release there must be a whole rewrite from scratch with little or no regard to backward compatibility seems to me not a tool for prime time, or serious stuffs besides a Hello w

Re: T5 : Expanding Messages Catalog for localization from arbitrary source

2008-04-10 Thread Hannes Heijkenskjöld
Hi I have recently wondered about the same, and have now built something that after much trial and error now works. Basically, I have created a Messages implementation that wraps both a tapestry Messages object and our own database messages. If a message is not found in our database, the def

Re: Re: T5 : session timeout

2008-04-10 Thread nille hammer
Hi Peter, having read through your post several times now, I think I misunderstood the point you were referring to. Just to make sure that I did get it right this time, please take a look at the following exampe: @ApplicationState private ShopOrder _order; Object onActivate { if(_order.getC

T5 : Expanding Messages Catalog for localization from arbitrary source

2008-04-10 Thread Michael Capper
Summary: How do I include additional localization-key/values-pairs in my global messages-catalog, originating from some app_.properties or from a database? Hi, I'd like to extend the Hash-Table containing the message-keys and message-values used in my app. The app_en.properties provides the basic

ExceptionReport page

2008-04-10 Thread Peter Stavrinides
Hi all I have implemented an exception page, not unlike: http://wiki.apache.org/tapestry/Tapestry5ExceptionPage , but I haven't found a way to revert to Tapestry's default exception page. It seems to be overridden no matter what I try... does anyone know how can I switch this on and off? T

RE: T5: beta?

2008-04-10 Thread Jonathan Barker
Rob, You may have a point or two. That what you describe as one of the best Internet applications has beta status suggests that some beta code is as good as / better that other production code. I would have to agree. I've had production apps running on Tapestry alpha code for some time. The

Re: Access ASO / ASM directly

2008-04-10 Thread Peter Stavrinides
Not sure what you are trying to do exactly, but it may help to know you should use the @ApplicationState annotation for ASO's and not @Inject. You may only use inject if you have created a service and used the ApplicationStateManager as a service dependency in the construction of the service.

Re: T5 : session timeout

2008-04-10 Thread Peter Stavrinides
Hello Nille I think you are confused here, the check we are referring to is for a data object within an ASO and not for the ASO. nille hammer wrote: Hello Peter, hello Stephane, according to Tapestry manual (http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html) the pref

T5: component id, element id

2008-04-10 Thread Chris Lewis
Dear list, I decided to throw together an app detailing how JS works with T5 (how to connect behavior from a component or mixin, the important inner workings, etc). I created a mixin that attaches behavior (mouse overs) to an HTML element (and doing this requires the DOM id of that element). For a

Re: T5: beta?

2008-04-10 Thread Davor Hrg
Please ignore him (I personaly have hard time doing so), he has not yet had any technical comment or question, he only comes here from time to time to bash on tapestry (reasons unknown). Davor Hrg On Thu, Apr 10, 2008 at 2:22 PM, Joachim Van der Auwera <[EMAIL PROTECTED]> wrote: > Well Rob, that

Re: T5: beta?

2008-04-10 Thread Joachim Van der Auwera
Well Rob, that is your personal opinion. I personally have no problems building applications which require high reliability on tapestry. It is a very nice framework to build applications on. Whether the "beta" or "release" status are important is mostly a political discussion (some companies

Re: @tacos:dojowidget problem

2008-04-10 Thread abhilash
Hi Andreas, thanks for the reply.The problem was with updateComponents. I used to give updateComponents as updateComponents="ognl:adjustmentDialogContent" (AdjustmentDialogContent is my floatingPaneId).Now i changed it to updateComponents="ognl:{'components.AdjustmentDialogContent.clientId'}" . S

Re: T5: beta?

2008-04-10 Thread Chris Lewis
Wow, you are right! I'll consider using gmail as the framework for my next application... Rob Smeets wrote: > Guys, stop the exagerations. Gmail, one of the best Internet application > ever written still has a beta status. Unlike Tapestry, Gmail has had the > beta status for years and would there

Re: T5: beta?

2008-04-10 Thread Rob Smeets
Guys, stop the exagerations. Gmail, one of the best Internet application ever written still has a beta status. Unlike Tapestry, Gmail has had the beta status for years and would therefore trust it more than Tapestry which I personally won't do anything serious with it beyond a little bit more adva

Re: Re: T5 : session timeout

2008-04-10 Thread nille hammer
Hello Peter, hello Stephane, according to Tapestry manual (http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html) the preferred way to check for ASO existence is to provide a boolean variable with the name of the ASO field suffixed Exists alongside with your ASO-variable (e.g

Re: Re: T5 : Event bubbling

2008-04-10 Thread nille hammer
Salut Stephane, in case it does not matter that a particular instance of a Page is returned (and thanks to @Persist and @ApplicationState this seldomly is), I use to return the class Object of the page (e.g. MyPage.class) rather than "this". If I got the manual right, this leaves the decision,

Re: T5 property file for enum

2008-04-10 Thread Michael Gerzabek
sure, how could I forget. Thanks! nille hammer schrieb: Hello Michael, there is an application wide properties file which is accessable by every page and component within your application. It is located in WEB-INF/.properties. depends on the filter name you have chosen for the tapestry fil

Re: T5 : session timeout

2008-04-10 Thread Peter Stavrinides
Hi Stephane One approach is to store this data transiently in an ASO. (This data object needs to be serializable though, but using soft references works great). In your getter method be sure to check if its null and if so reinitialize it)... Inject the ASO in your pages and never worry about

Re: T5 property file for enum

2008-04-10 Thread Thiago HP
On Thu, Apr 10, 2008 at 6:10 AM, Michael Gerzabek <[EMAIL PROTECTED]> wrote: > Is there a way to customize labels for enums in only one file per locale so > that those properties get read whenever the enum is used on a Page? ? In my humble opinion, the best approach is to put all the messages in

Re: T5 property file for enum

2008-04-10 Thread nille hammer
Hello Michael, there is an application wide properties file which is accessable by every page and component within your application. It is located in WEB-INF/.properties. depends on the filter name you have chosen for the tapestry filter. As one usually does not change that, this would be pe

Re: How to know which sub component trigger an action and also be aware of the action parameters?

2008-04-10 Thread Stephane Decleire
If you want to handle your links in start.java, you could use eventlink instead of actionlink and give each link a different event ... Stephane dhning a écrit : Hi, One case: The page start.tml contains component ParentComponent, and template of ParentComponent contains two action links Lin

How to know which sub component trigger an action and also be aware of the action parameters?

2008-04-10 Thread dhning
Hi, One case: The page start.tml contains component ParentComponent, and template of ParentComponent contains two action links LinkA&LinkB, context of LinkA is "a" while LinkB is "b". In start.java, I need to perform some special logic by which link is clicked. In T4, I knew listener binding

Re: T5 : Event bubbling

2008-04-10 Thread Stephane Decleire
Thanks Armand. Returning 'this' works great ! Stephane Francois Armand a écrit : Stephane Decleire wrote: correct behavior of event bubbling in T5 (i mean handlers which returns null values do not catch the event) ? If yes, what is the solution for an handler to both catch the event and show

Re: T5 : Event bubbling

2008-04-10 Thread Francois Armand
Stephane Decleire wrote: correct behavior of event bubbling in T5 (i mean handlers which returns null values do not catch the event) ? If yes, what is the solution for an handler to both catch the event and show the same page to the user ? Returning a non null value is the think to do, see :

T5 : Event bubbling

2008-04-10 Thread Stephane Decleire
Hi, I have several components encompassed in each other : say A encompasses B which encompasses C. When someone trigger an eventlink in C, i try to catch the event in B in a handler like this one : @OnEvent (value="action") Object change() { // ... management of the action ...

T5 property file for enum

2008-04-10 Thread Michael Gerzabek
Hi, I love the new enum support for automagic selects. Thanks for that Howard! I have shifted many constants to enums. The arising question is how to prepare Messages to those enums in most convenient way. At the time I use one property file per Page. When I have an enum display a select on

RE: T5: beta?

2008-04-10 Thread Blower, Andy
The fact that you're using T5 in the real world at this beta stage is very good news for the upcoming release IMO, even if it delays the RC a bit. (not too much though I hope ;-) > -Original Message- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: 09 April 2008 19:32 > To: Ta

Re: Getting Answers on the User List

2008-04-10 Thread Chris Lewis
That's what I'm talkin' about! Francois Armand wrote: > Howard Lewis Ship wrote: >> Just want to say thanks to everyone whose providing answers and >> support on the users list. I'm really impressed by how much Tapestry >> 5 knowledge is out there. >> > Not to forget the irc channel on freenod

Re: 答复: Who can give me some ideas abou t extending grid component

2008-04-10 Thread Chris Lewis
First of all, if you haven't already, digest the documentation on mixins: http://tapestry.apache.org/tapestry5/tapestry-core/guide/mixins.html If you're clear on that, then the only piece you're missing is how to connect JS to the grid. For that your mixin should instantiate a JS object and be pas

Re: Getting Answers on the User List

2008-04-10 Thread Francois Armand
Howard Lewis Ship wrote: Just want to say thanks to everyone whose providing answers and support on the users list. I'm really impressed by how much Tapestry 5 knowledge is out there. Not to forget the irc channel on freenode: #tapestry ;) -- Francois Armand Etudes & Développements J2EE Gro