Re: How to overridide DoubleTranslator as DoubleTranslator is not localized

2008-06-26 Thread 9902468
I voted and really hope that it will be corrected. I repeat my question here once more if Howard misses it in the Jira: Is there a good reason not to let developers to override the default translators? - 99 Ulrich Stärk wrote: > > I'm having the same issue, see here: > > http://markmail.or

Re: DWR Integration with Tapestry 4.1.5

2008-06-26 Thread Srinivas Yermal
Hi Andreas, Sorry about the delayed response. I wanted to first make it work and then write back. All in all, it didnt work for me. So I am using the back door to both Spring and Visit objects for now. The problem I have with the idea that you mentioned is that DWR normally sends back a json respo

T5: Hibernate and services

2008-06-26 Thread Angelo Chen
Hi, As what I understand now that transaction has to be committed to persist the objects, following is a diapatcher, there is no commit, but the new PageLog got persisted too, any idea? thanks, Angelo public class LoggingDispatcher implements Dispatcher { private final HibernateSessionMan

Re: [T5] Template previewability

2008-06-26 Thread Geoff Callender
(i) Expansions. As the User's Guide section on templates points out: "Tapestry 4 users will note that expansions are a concise, easy replacement for the Insert component, and for the directive." They are indeed. They are also not previewable. And I'm not just talking about the fact that yo

Re: [T5] Passing parameteres to implemention mixins

2008-06-26 Thread Howard Lewis Ship
There isn't currently a way to do this. As a temporary solution, you may want to define an interface that the page should implement; the Mixin can get the page instance and invoke methods on it to retrieve what data it needs. The @Mixin annotation should be extended to allow Mixin parameters to b

Re: [T5] Template previewability

2008-06-26 Thread Howard Lewis Ship
You are correct, previewability isn't quite the same in T5 as in T4. There's some gaps waiting to be filled (not abandoned, just prioritized a bit lower than more urgent bug fixes). On Thu, Jun 26, 2008 at 10:48 AM, Don Ryan <[EMAIL PROTECTED]> wrote: > [I'm picking up where I left off on another

Re: How to inherit or have a dynamic validate

2008-06-26 Thread Martijn Brinkers (List)
Hi Kris, Thanks, I'm nearly there but not yet complete. In my component I'm able to build a FieldValidator but I cannot get it to use the @Validate annotation from the containing class (actually a page). So what I want is this (pseudo code) SomePage { @Component(id="someId") @Validate("requ

[T5] Template previewability

2008-06-26 Thread Don Ryan
[I'm picking up where I left off on another thread here, namely the thread with subject "New website using T5: www.ingamenow.com". My rationale for wanting this is given there.] Does anyone know if there are plans to restore the previewability of T5 templates to something akin to what exist

[T5] Passing parameteres to implemention mixins

2008-06-26 Thread Thiago H. de Paula Figueiredo
Hi! I'm writing a Mixin to be used as an implementation one (i.e not applied to a component in a page, but attached to the page itself). http://tapestry.apache.org/tapestry5/tapestry-core/guide/mixins.html says that I can pass parameters to my mixin through @Component parameters, but that

Re: T5: Services Status Page

2008-06-26 Thread Howard Lewis Ship
Perhaps it should be changed, for security reasons. I kind of think it does no harm. On Thu, Jun 26, 2008 at 7:44 AM, Christian Gorbach <[EMAIL PROTECTED]> wrote: > hi, > it seems that the T5 services status page isn't disabled in production mode. > can anyone confirm this? > ${yourapp}/ServiceSt

Re: T5 : page updated instead of zone on form submit

2008-06-26 Thread Stephane Decleire
OK, solved. I was sending back the zone component itself and not the block to update. Stephane Stephane Decleire a écrit : Hi, When i try to update a zone in a form handler, i get the following warning and the entire page is reloaded : [WARN] ComponentInstanceResultProcessor Component Test

T5 : page updated instead of zone on form submit

2008-06-26 Thread Stephane Decleire
Hi, When i try to update a zone in a form handler, i get the following warning and the entire page is reloaded : [WARN] ComponentInstanceResultProcessor Component Test:accountmanagement.myaccountzone was returned from an event handler method, but is not a page component. The page containing

Re: How to overridide DoubleTranslator as DoubleTranslator is not localized

2008-06-26 Thread Ulrich Stärk
I'm having the same issue, see here: http://markmail.org/message/jtzc7doxqcbn7ac7 I'm working with a patched version of Tapestry, using a patch I provided here: https://issues.apache.org/jira/browse/TAPESTRY-2457 Another workaround could be to provide all of your fields that shouldn't use th

Re: T5:class reloading problem with Tomcat 6

2008-06-26 Thread Howard Lewis Ship
We should capture these notes on the Wiki, or better yet, on the Tomcat deployment notes page. On Wed, Jun 25, 2008 at 7:30 AM, Geoff Callender <[EMAIL PROTECTED]> wrote: > Yep, that's normal. It's an age-old JVM/class-loading issue (try googling > it). Try running with these java options (or e

T5: Services Status Page

2008-06-26 Thread Christian Gorbach
hi, it seems that the T5 services status page isn't disabled in production mode. can anyone confirm this? ${yourapp}/ServiceStatus thx c)hristian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: Javassist exception on deploy time

2008-06-26 Thread Yunhua Sang
Hi Martijn, I guess you are using jdk 6; switching to jdk 5 will solve this problem. Yunhua. On Thu, Jun 26, 2008 at 12:54 AM, Martijn Brinkers (List) <[EMAIL PROTECTED]> wrote: > Hi, > > I get this long Javassist exception when I startup Jetty from within > eclipse. This only happens when I sta

How to overridide DoubleTranslator as DoubleTranslator is not localized

2008-06-26 Thread 9902468
Hi! How can one override the default double translator in Tapestry 5? I want to replace the default altogether, but have found only instructions how to contribute new ones. Why the add method in configurations doesn't replace the existing ones? Now it gives warning and doesn't override the defa

Re: New website using T5: www.ingamenow.com

2008-06-26 Thread Don Ryan
On 25 Jun 2008, at 19:19, Daniel Leffel wrote: We're using Continuum to do continuous builds. Gave the designer access to that too and when he wants to see his changes, he commits and kicks off a manual build. Pretty cool. Very cool. A key aspect of any framework is the extent to which it

Re: loop in a TreeMap

2008-06-26 Thread Antonio Ordoñez
Thank you very much Nille. Yes, now in my class I write: public Collection getAllMenuOption(){ return this.menuOptionMap.values(); //return dataSource.getMenuOptionMap(); } And it works correctly now. Again, thank you. Greetings. nille hammer wrote: Hi Antonio, you can

Re: T5:debug an t5 app under IDEA

2008-06-26 Thread Angelo Chen
Hi, The problem seems fixed after I did the following: 1) upgrade to Diana Preview 2) re-create from pom.xml not sure which one solves the problem, it's gone. Angelo Chen wrote: > > Hi, > > Ny app runs under IDEA very well, but when it is under 'debug', i can > reach the AppModule.java, aft

Re: Streaming files from Tapestry

2008-06-26 Thread Inge Solvoll
Hi! I decided to reply to this old thread, I didn't find any newer ones on this subject. I miss a "vanilla service" that reads a file from the server and streams it to the client. This is a very natural part of a web project, and it's hard for me to understand why there isn't a simple extendible

Re: loop in a TreeMap

2008-06-26 Thread nille hammer
Hi Antonio, you cannot iterate over a Map as it does not implement Collection. Try the Map´s methods .values() or .entrySet() and iterate over their return values. For further information look here: http://java.sun.com/javase/6/docs/api/java/util/Map.html Regards nillehammer - original N

popup window

2008-06-26 Thread raveendra
Hi, Anyone please tell me how to get the values from a pop up window and refresh the grid component in the main page based on the values retrieved from popup.I am using T 5.0.11. Thankyou, ravindra

loop in a TreeMap

2008-06-26 Thread Antonio Ordoñez
Hi all, I'm trying to iterate in a TreeMap in my template t:value="menuOption"> ${menuOption.name} In the class: public TreeMap getAllMenuOption(){ return this.menuOptionM

grid pager replacement

2008-06-26 Thread Udo Abel
Hi, I want to replace them pager of the grid component with some individual design. On nabblem I found the hint "You could use pagerposition="none" and supply your own component to perform the paging. " from Howard. I tried that by copying the GridPager into an own modified component and place

T5: Dynamic zone id

2008-06-26 Thread Lance Java
Consider the following example: Page: FundGraph: edit ... ... I have a page with a few fund graphs and an editZone. Each graph has an edit lin

Re: T5 version 5.0.13 Index page suppressing other servlets?

2008-06-26 Thread kranga
Thiago, I think a better statement would be "Tapestry is behaving exactly as it wants to." I guess this is a very unfortunate side-effect of the way Tapestry uses contexts. The design is fine when the web-app consists only of Tapestry, but that is seldom the case in real-world applications.

Re: how to deploy t5components in existing T5 project?

2008-06-26 Thread Geoff Callender
Not sure if you're using Maven or whatever, but the end deployable result needs to be t5c-commons.jar and t6c-contrib.jar sitting in the WAR file's WEB-INF/lib/, right alongside t5's jars. Then in the .tml just start using it, eg. the Button component can be referenced like this: Quit

Re: T5

2008-06-26 Thread Angelo Chen
i compiled the file manually: javac org/bfe/studio/t5/entities/package-info.java it just compiles, but there is no package-info.class, this is under OS X java 5. If this file is in org/bfe/studio/t5/entities/ then it should work. Uli -- View this message in context: http://www.nabble.com/T

AW: OnActivate and Injected / ASO Objects -> Boom!

2008-06-26 Thread Martin Kersten
Hi all, the boom was related to the naming issue. I accidently imported a Login component rather than the ASO responsible for this. Since I am using 5.11 I am unsure if the feature is allready in, but is it possible to work out these exception and provide a more related exception (or explaina

Re: Unable to resolve 't5components/Accordion' to a component class name

2008-06-26 Thread Tobias Wehrum
That sounds like you doesn't use Maven - since I do, I don't know too sure where the jars have to be situated in other cases, but it sounds good. Why don't you just try it? Tan [EMAIL PROTECTED] schrieb: Yes Tobias, it did show unable to resolve to component class name. is that two t5compone

T5 component java

2008-06-26 Thread Inma
Hi, I'm new in tapestry 5 and I'm trying to make a component that doesn't have tml file, only java. ( using writer.element in the beginRender method) The problem is that in my component I would like to include a propertyEditor component. When I use writer.element("t:propertyEditor",...) the re

Re: Unable to resolve 't5components/Accordion' to a component class name

2008-06-26 Thread Tan [EMAIL PROTECTED]
Yes Tobias, it did show unable to resolve to component class name. is that two t5components.jar physically need to copy to the WEB-INF/lib? On Thu, Jun 26, 2008 at 5:44 PM, Tobias Wehrum <[EMAIL PROTECTED]> wrote: > Hi Cyber, > > in case you use Maven, just include the the dependencies in the P

Re: Unable to resolve 't5components/Accordion' to a component class name

2008-06-26 Thread Tobias Wehrum
Hi Cyber, in case you use Maven, just include the the dependencies in the POM. In case you don't, just include the jars like any other jar via Project->Properties->Java Build Path->Libraries. Did you try including the code shown at the demo page ( http://87.193.218.134:8080/t5c-demo/accordio

OnActivate and Injected / ASO Objects -> Boom!

2008-06-26 Thread Martin Kersten
Hi all, I am struggling with the onActivate method (activate event). Seams like some of my injected components are not available and strange errors occure. I am using the onActivate method to do a redirect if necessary. To decide uppon the redirect I need some ASO (loginStatus of the session

Re: T5

2008-06-26 Thread Ulrich Stärk
If this file is in org/bfe/studio/t5/entities/ then it should work. Uli Am Do, 26.06.2008, 10:21, schrieb Angelo Chen: > > Hi, > > I use javac package-info.java, it does not generate a package-info.class > too, here is my package-info.java: > > package org.bfe.studio.t5.entities; > > > is that co

Re: How to inherit or have a dynamic validate

2008-06-26 Thread Kristian Marinkovic
hi martijn, the validator parameter of the textfield requires a FieldValidator. you can obtain a FieldValidator through the FieldValidatorSource service. take a look at the PropertyEditor and the PropertyEditBlock class to see how FieldValidators are applied programmatically. g, kris "M

Re: T5

2008-06-26 Thread Angelo Chen
Hi, I use javac package-info.java, it does not generate a package-info.class too, here is my package-info.java: package org.bfe.studio.t5.entities; is that correct? only one line. Ulrich Stärk wrote: > > There's your problem. package-info.java should compile into a .class file > and does so

T5:debug an t5 app under IDEA

2008-06-26 Thread Angelo Chen
Hi, Ny app runs under IDEA very well, but when it is under 'debug', i can reach the AppModule.java, after that I can see following in the log: ValidationConstraintGenerator: DEFINED ValidationMessagesSource: DEFINED ValueEncoderSource: DEFINED

Re: T5

2008-06-26 Thread Ulrich Stärk
There's your problem. package-info.java should compile into a .class file and does so in my setup (Eclipse+maven). Uli Am Do, 26.06.2008, 09:59, schrieb Angelo Chen: > > what a fast response! yes I re-do everything under IDEA then run, still > the > same, I noticed package-info.java is not compil

Re: T5

2008-06-26 Thread Angelo Chen
what a fast response! yes I re-do everything under IDEA then run, still the same, I noticed package-info.java is not compiled and in the same directory as other *.class, i copied the package-info.java into the entities directory, still the same, ? Ulrich Stärk wrote: > > Did you recompile and

Re: T5

2008-06-26 Thread Ulrich Stärk
Did you recompile and redeploy / restart your web container? Uli Am Do, 26.06.2008, 09:36, schrieb Angelo Chen: > > hi uli, > > here is what I did: > > put a package-info.java in the entities directory, one line inside the > file:package org.bfe.sample.t5.entities; > > but I still get the warni

Re: T5

2008-06-26 Thread Angelo Chen
hi uli, here is what I did: put a package-info.java in the entities directory, one line inside the file:package org.bfe.sample.t5.entities; but I still get the warning, do I miss something? Thanks, Angelo Ulrich Stärk wrote: > > Or create a file package-info.java in your package directory a

How to inherit or have a dynamic validate

2008-06-26 Thread Martijn Brinkers (List)
I have a component containing a TextField. The TextField should support validation. For example: @Component(id = "field", parameters = {"validate=required,minlength=3"}) private TextField field; But, I would like to make it possible to override the validation. So for example: @Component(id = "f

Re: Unable to resolve 't5components/Accordion' to a component class name

2008-06-26 Thread Sven Homburg
sorry, id dont use eclipse and have realy no know how for eclipse. 2008/6/26 Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > thanks sven, > > I have tried. but still failed. may i know how to deploy t5components > inside a tapestry web project? > or may be can you show me the project files layout.

Re: Igor´s and Renat´s Presentation of Tapestry 5 yesterday evening in Düsseldorf

2008-06-26 Thread Markus Joschko
Hi, I was there as well. It was truly a well prepared presentation. Even some hardcore JSF boys I talked with afterwards where impressed by tapestry. Regards, Markus On Thu, Jun 26, 2008 at 12:03 AM, Geoff Callender <[EMAIL PROTECTED]> wrote: > Just had a look at the slides. Very succinct prese

Re: Unable to resolve 't5components/Accordion' to a component class name

2008-06-26 Thread Tan [EMAIL PROTECTED]
thanks sven, I have tried. but still failed. may i know how to deploy t5components inside a tapestry web project? or may be can you show me the project files layout. where should it be located? THank you. REgards, Cyber On Thu, Jun 26, 2008 at 3:05 PM, Sven Homburg <[EMAIL PROTECTED]> wrote:

Re: Unable to resolve 't5components/Accordion' to a component class name

2008-06-26 Thread Sven Homburg
try t5components/Accordion 2008/6/26 Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > hi all, > > I have a problem to deploy t5components. > even i use t5c/Accordion , Acordion or t5compoents/Accordion also facing > the > same problem. > is there any path wrong? > > Unable to resolve 't5c/Accordion'

Re: T5$B!'(B Hibernate warning

2008-06-26 Thread Ulrich Stärk
Or create a file package-info.java in your package directory and put "package yourpackage;" into it. You can also add package documentation or package-level annotations to it. If you use JavaDoc this file will then be processed instead of package.html. Uli Am Do, 26.06.2008, 06:58, schrieb Daniel