Re: How to overridide DoubleTranslator as DoubleTranslator is not localized
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.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 the default translators with your own one. You'll have to > instantiate these custom translators on every page where you need them > with the user's current locale. This is cumbersome but right now the > only way I see. > If you want to use the BeanEditForm with your own translators you'll > have to overwrite the editors for the respective properties. See the > "Property Editor Overrides" section here: > http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html > > Maybe Howard will include my patch or fix this in some other way if > enough people vote for the issue so you might consider voting for it. > > Uli > > 9902468 schrieb: >> 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 default ones. >> >> And why the default double translator doesn't use numberformat and >> Tapestry's locale to output the number correctly? (And parse for that >> matter?) >> >> This is a flaw in otherwise nicely localized application, any thoughts? >> >> - 99 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-overridide-DoubleTranslator-as-DoubleTranslator-is-not-localized-tp18133977p18148964.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DWR Integration with Tapestry 4.1.5
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 response and does a whole bunch of things which I have no clue about. If I have to wrap that in a IEngine service call, I have to dig deep for which time is a constraint right now. But I guess that could still be done. Regards, Srini. On Fri, Jun 20, 2008 at 2:36 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote: > Just an (ugly) idea... > > If you can send the DWR requests to a Tapestry service that will then > forward or include the normal DWR servlet output, it should work. > > http://wiki.apache.org/tapestry/TapestryFasttrackForStrutsProgrammers > has some code that creates a component that can include jsps, servlets, > e.t.c. > > So, try building an IEngineService that uses that... > > BTW, how does the dwr creator for hivemind look like? is it possible > that it finds its > way into the tapestry wiki? > > On Thu, Jun 19, 2008 at 8:13 PM, Srinivas Yermal <[EMAIL PROTECTED]> > wrote: > > Hi All, > > > > I am creating a huge dojo widget which needs to access some data on the > > server side as objects and I am trying to use DWR for remoting some of my > > calls. Pardon my ignorance, but I am not sure whether this is allowed in > the > > tapestry world. So I set forth to try to integrate DWR into my tapestry > app. > > > > My need is to have access to the visit object and other application state > > objects from within the DWR created objects. So I extended the tapestry > > ApplicationServlet in order to get access to the hivemind Registry and > > stored it into the servlet context. Next I wrote a separate DWR creator > for > > hivemind and within the creator I am accessing the registry to get to the > > hivemind service. Everything works well until here. I get the service > from > > the registry and the ApplicationStateManager is set into the service. Now > > within the service when I try to access the visit object using > > (Visit)appStateManager.get("visit"); - I get the following exception. > > > > java.lang.NullPointerException: Property 'webRequest' of > > tapestry.globals.RequestGlobals(org.apache.tapestry.services.RequestGlobals)> > > is null. > >at > > > $WebRequest_11aa1b3d84b._targetServiceProperty($WebRequest_11aa1b3d84b.java) > >at $WebRequest_11aa1b3d84b.getSession($WebRequest_11aa1b3d84b.java) > >at $WebRequest_11aa1b3d82f.getSession($WebRequest_11aa1b3d82f.java) > >at > > > org.apache.tapestry.engine.state.SessionScopeManager.getSession(SessionScopeManager.java:48) > >at > > > org.apache.tapestry.engine.state.SessionScopeManager.get(SessionScopeManager.java:64) > >at > > > $StateObjectPersistenceManager_11aa1b3d845.get($StateObjectPersistenceManager_11aa1b3d845.java) > >at > > > org.apache.tapestry.engine.state.StateObjectManagerImpl.get(StateObjectManagerImpl.java:50) > >at > > > org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60) > >at > > > $ApplicationStateManager_11aa1b3d807.get($ApplicationStateManager_11aa1b3d807.java) > >at > > > $ApplicationStateManager_11aa1b3d808.get($ApplicationStateManager_11aa1b3d808.java) > >at > > > com.eureka.engine.dwrtest.DWRTestService.getVisitObject(DWRTestService.java:24) > >at > > > com.eureka.engine.dwrtest.DWRTestService.doSomething(DWRTestService.java:28) > > > > I guess the reason may be that the tapestry servlet doesnot get to bless > the > > request and create tapestry specific webrequest, but I am at a loss of > what > > I should do going forward. Any light on this would be greatly > appreciated. > > > > Regards, > > Srini. > > > > > > -- > Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr > Tapestry / Tacos developer > Open Source / JEE Consulting > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://www.indygosoft.com
T5: Hibernate and services
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 HibernateSessionManager sessionManager; public LoggingDispatcher(ApplicationStateManager asm, RequestGlobals requests, HibernateSessionManager sessionManager, IPLookup ipLookup) { this.sessionManager = sessionManager; } public boolean dispatch(Request request, Response response) throws IOException { PageLog log = new PageLog(); sessionManager.getSession().save(log); return false; } -- View this message in context: http://www.nabble.com/T5%3A-Hibernate-and-services-tp18147187p18147187.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Template previewability
(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 you'll have an expression-like string instead of a sample-text string. If, for example, you had a column in a table for the grade achieved by a student, the values in this column will be single letters (A, B, etc.). Almost any expression used in the expansion is likely to be much longer than this and will probably throw the alignment of the (carefully designed) table way off. Also, is there a previewable way to internationalize a template in core T5 at the moment? (I haven't spotted one myself, but that doesn't mean it doesn't exist.) Are you sure? What about... A (ii) An equivalent of jwcid="$remove$". Yes, you can use t5components/Remove or write your own Remove that short-circuits at beginRender(), but conceptually a component shouldn't be instantiated at all in this case. The parser should just be discarding such template sections. A designer cannot design a repeating construct without seeing several of them stacked on top of each other. If that's to survive in the template, some such mechanism is needed. Also, it's worth pointing out that the move to initiate a T5 FAQ led to discussions that were in large part about things like $content$ and $remove$, discussions which subsequently trailed off inconclusively. So there does seem to be some confusion about where T5 is ultimately headed on this. Agreed. Should be a directive so that it doesn't have to obey the matching tags rules. (iii) A key aspect of previewability is the ability to provide a static attribute value in the template and have it overwritten at runtime. T5, in my experience, has taken a step back in this regard. For example, I wanted to make a CSS class attribute dynamic, so I put in a static value (to make the template look right) and an informal parameter to overwrite it: This didn't work. The static value remained, regardless of the value of the cssClass property. Once I deleted the static value from the template, it worked. However, doing so clearly diminishes previewability. (iv) [This one isn't a showstopper, but I'll mention it anyway.] The Tapestry 5 documentation introduces the term "invisible instrumentation", but this is clearly a misnomer. The real dichotomy in instrumenting a Tapestry template is between (a) Using Tapestry elements (b) Attributing standard HTML elements Tapestry elements are typically invisible in a rendered browser view of the template (just as much as namespaced attributes are) so it's not a good way of attempting to characterize the distinction between the two approaches to label one of them as "invisible instrumentation". It would seem to me that this will only cause confusion to newcomers. Really there are 3 styles and I think the doco has slipped up on them. Weren't these the terms being used a while back... - Components as elements, eg. Home - Embedded components, eg. href="#">Home - Invisible instrumentation, eg. Home with @Component(id = "index", parameters = {"page=Index"}) @SuppressWarnings("unused") private PageLink _index; In relation to the T4-style attributing of HTML elements, some things have fallen back a little, specifically on the conciseness front. For example, in T4, I would typically avoid introducing extraneous levels of nesting in a template by attributing an existing tag whenever possible. So if the content of a table cell was conditional, I could attribute the element to be an If component: Should only appear sometimes I could then control whether or not the tag itself rendered by using the renderTags parameter to the If component. With the T5 If component, this is not possible, so the simplest thing is to just wrap the contents of the cell either in a or a t:type="if">. Not a big deal but it is an extra level of nesting than was previously required. And conciseness is one of the reasons that some people (myself included) find the attributing of HTML elements approach to be so appealing. Lastly, anyone that replies to say "I don't miss previewability" is missing the point. If your work practices dictate that it's not something you miss, good for you. For others, it's a big deal. It would seem to me that with a small amount of work, previewability could be restored to roughly where it was in T3/T4, which would be of great benefit to people whose work practices were greatly facilitated by said previewability. This is ground that Tapestry helped pioneer. It seems unnecessary to me to cede it to other frameworks. Regards, Don. This message has been scanned for content and viruses by the DIT Information Services E-Mail Sc
Re: [T5] Passing parameteres to implemention mixins
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 be set. On Thu, Jun 26, 2008 at 10:44 AM, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > 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's not my case. > > How could I pass parameters to my page mixin? > > Thanks in advance. > > Thiago > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Template previewability
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 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 existed in T3 and T4? Some of the gaps > can be tackled by writing your own components, but that doesn't get you all > the way there and I'd prefer not to litter my stuff with custom components > if there are going to be core components and other mechanisms added > subsequently to cater for this. Specifically, I'm thinking of things like > the following. > > (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 you'll have an expression-like string instead of a sample-text > string. If, for example, you had a column in a table for the grade achieved > by a student, the values in this column will be single letters (A, B, etc.). > Almost any expression used in the expansion is likely to be much longer than > this and will probably throw the alignment of the (carefully designed) table > way off. Also, is there a previewable way to internationalize a template in > core T5 at the moment? (I haven't spotted one myself, but that doesn't mean > it doesn't exist.) There's a tension between having the framework include every possible thing, and letting people roll thier own custom solutions. If you want to use T4 style, how about: public class Output { @Parameter (required=true) private String value; boolean beginRender(MarkupWriter writer) { if (value != null) writer.write(value); return false; // skip body } } This could be dressed up a bit to emulated an element and informal parameters pretty easily. In terms of localization, you can use: ${message:localized-key} or > > (ii) An equivalent of jwcid="$remove$". Yes, you can use t5components/Remove > or write your own Remove that short-circuits at beginRender(), but > conceptually a component shouldn't be instantiated at all in this case. The > parser should just be discarding such template sections. A designer cannot > design a repeating construct without seeing several of them stacked on top > of each other. If that's to survive in the template, some such mechanism is > needed. Also, it's worth pointing out that the move to initiate a T5 FAQ led > to discussions that were in large part about things like $content$ and > $remove$, discussions which subsequently trailed off inconclusively. So > there does seem to be some confusion about where T5 is ultimately headed on > this. > > (iii) A key aspect of previewability is the ability to provide a static > attribute value in the template and have it overwritten at runtime. T5, in > my experience, has taken a step back in this regard. For example, I wanted > to make a CSS class attribute dynamic, so I put in a static value (to make > the template look right) and an informal parameter to overwrite it: > > This didn't work. The static value remained, regardless of the value of the > cssClass property. Once I deleted the static value from the template, it > worked. However, doing so clearly diminishes previewability. Interesting idea; we could change it so that attributes in the Tapestry namespace override other attributes with the same name (case insensitive). > > (iv) [This one isn't a showstopper, but I'll mention it anyway.] The > Tapestry 5 documentation introduces the term "invisible instrumentation", > but this is clearly a misnomer. The real dichotomy in instrumenting a > Tapestry template is between > (a) Using Tapestry elements > (b) Attributing standard HTML elements > Tapestry elements are typically invisible in a rendered browser view of the > template (just as much as namespaced attributes are) so it's not a good way > of attempting to characterize the distinction between the two approaches to > label one of them as "invisible instrumentation". It would seem to me that > this will only cause confusion to newcomers. > In relation to the T4-style attributing of HTML elements, some things have > fallen back a little, specifically on the conciseness front. For example, in > T4, I would typically avoid introducing extraneous levels of nesting in a > template by attributing an existing tag whenever possible. So if the content > of a table cell was conditional, I could attribute the element to be an > If component: > Should only appear sometimes > I could then control whether or not the tag itself render
Re: How to inherit or have a dynamic validate
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("required") <- how can I use this annotation from my component?? private MyComponent myComponent; } MyComponent { @Parameter(defaultPrefix = BindingConstants.VALIDATE) @Property private FieldValidator fieldValidator; @Component(id = "field", parameters = {"validate=prop:fieldValidator"}) private TextField field; } When I build the FieldValidator I need to give it a AnnotationProvider that is going to 'find' the @Validate annotation but how can I get access to the @Validate annotation from the parent (ie the page)? As a workaround I have created a FieldValidator builder that builds a FieldValidator using a string so I can set the validator in my page like: SomePage { @Component(id="someId", parameters = {"validate=required,minlength=4"}) private MyComponent myComponent; } But that's a bit clumsy. Any idea? Martijn On Thu, 2008-06-26 at 10:28 +0200, Kristian Marinkovic wrote: > 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 > > > > > > "Martijn Brinkers (List)" <[EMAIL PROTECTED]> > 26.06.2008 09:16 > Bitte antworten an > "Tapestry users" > > > An > Tapestry users > Kopie > > Thema > How to inherit or have a dynamic validate > > > > > > > > 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 = "field", parameters = > {"validate=prop:getTheValidationValue"}) > > or from the tml file > > disabled="checked" t:validate="inherit:validate"/> > > But I have not yet succeeded. > > Any tips? > > Martijn > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] Template previewability
[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 existed in T3 and T4? Some of the gaps can be tackled by writing your own components, but that doesn't get you all the way there and I'd prefer not to litter my stuff with custom components if there are going to be core components and other mechanisms added subsequently to cater for this. Specifically, I'm thinking of things like the following. (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 you'll have an expression-like string instead of a sample-text string. If, for example, you had a column in a table for the grade achieved by a student, the values in this column will be single letters (A, B, etc.). Almost any expression used in the expansion is likely to be much longer than this and will probably throw the alignment of the (carefully designed) table way off. Also, is there a previewable way to internationalize a template in core T5 at the moment? (I haven't spotted one myself, but that doesn't mean it doesn't exist.) (ii) An equivalent of jwcid="$remove$". Yes, you can use t5components/ Remove or write your own Remove that short-circuits at beginRender(), but conceptually a component shouldn't be instantiated at all in this case. The parser should just be discarding such template sections. A designer cannot design a repeating construct without seeing several of them stacked on top of each other. If that's to survive in the template, some such mechanism is needed. Also, it's worth pointing out that the move to initiate a T5 FAQ led to discussions that were in large part about things like $content$ and $remove$, discussions which subsequently trailed off inconclusively. So there does seem to be some confusion about where T5 is ultimately headed on this. (iii) A key aspect of previewability is the ability to provide a static attribute value in the template and have it overwritten at runtime. T5, in my experience, has taken a step back in this regard. For example, I wanted to make a CSS class attribute dynamic, so I put in a static value (to make the template look right) and an informal parameter to overwrite it: This didn't work. The static value remained, regardless of the value of the cssClass property. Once I deleted the static value from the template, it worked. However, doing so clearly diminishes previewability. (iv) [This one isn't a showstopper, but I'll mention it anyway.] The Tapestry 5 documentation introduces the term "invisible instrumentation", but this is clearly a misnomer. The real dichotomy in instrumenting a Tapestry template is between (a) Using Tapestry elements (b) Attributing standard HTML elements Tapestry elements are typically invisible in a rendered browser view of the template (just as much as namespaced attributes are) so it's not a good way of attempting to characterize the distinction between the two approaches to label one of them as "invisible instrumentation". It would seem to me that this will only cause confusion to newcomers. In relation to the T4-style attributing of HTML elements, some things have fallen back a little, specifically on the conciseness front. For example, in T4, I would typically avoid introducing extraneous levels of nesting in a template by attributing an existing tag whenever possible. So if the content of a table cell was conditional, I could attribute the element to be an If component: Should only appear sometimes I could then control whether or not the tag itself rendered by using the renderTags parameter to the If component. With the T5 If component, this is not possible, so the simplest thing is to just wrap the contents of the cell either in a or a t:type="if">. Not a big deal but it is an extra level of nesting than was previously required. And conciseness is one of the reasons that some people (myself included) find the attributing of HTML elements approach to be so appealing. Lastly, anyone that replies to say "I don't miss previewability" is missing the point. If your work practices dictate that it's not something you miss, good for you. For others, it's a big deal. It would seem to me that with a small amount of work, previewability could be restored to roughly where it was in T3/T4, which would be of great benefit to people whose work practices were greatly facilitated by said previewability. This is ground that Tapestry helped pioneer. It seems unnecessary to me to cede it to
[T5] Passing parameteres to implemention mixins
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's not my case. How could I pass parameters to my page mixin? Thanks in advance. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Services Status Page
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}/ServiceStatus > > thx > c)hristian > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 : page updated instead of zone on form submit
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:accountmanagement.myaccountzone was returned from an event handler method, but is not a page component. The page containing the component will render the client response. Any idea ? Stephane
T5 : page updated instead of zone on form submit
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 the component will render the client response. Any idea ? Stephane
Re: How to overridide DoubleTranslator as DoubleTranslator is not localized
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 the default translators with your own one. You'll have to instantiate these custom translators on every page where you need them with the user's current locale. This is cumbersome but right now the only way I see. If you want to use the BeanEditForm with your own translators you'll have to overwrite the editors for the respective properties. See the "Property Editor Overrides" section here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html Maybe Howard will include my patch or fix this in some other way if enough people vote for the issue so you might consider voting for it. Uli 9902468 schrieb: 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 default ones. And why the default double translator doesn't use numberformat and Tapestry's locale to output the number correctly? (And parse for that matter?) This is a flaw in otherwise nicely localized application, any thoughts? - 99 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5:class reloading problem with Tomcat 6
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 even bigger numbers if you > have the memory): -XX:MaxNewSize=96m -XX:MaxPermSize=96m. > > On 25/06/2008, at 11:31 PM, Angelo Chen wrote: > >> >> hi, >> >> althought reloadable="true" works, but i have memory problems now which >> not >> there before: >> >> Exception in thread "Timer-5" java.lang.OutOfMemoryError: PermGen space >> [ERROR] RequestExceptionHandler Processing of request failed with uncaught >> exception: PermGen space >> java.lang.OutOfMemoryError: PermGen space >>at java.lang.ClassLoader.defineClass1(Native Method) >>at java.lang.ClassLoader.defineClass(ClassLoader.java:620) >>at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >>at >> >> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819) >>at >> >> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) >>at >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327) >>at >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) >>at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>at java.lang.ClassLoader.defineClass1(Native Method) >>at java.lang.ClassLoader.defineClass(ClassLoader.java:620) >>at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >>at >> >> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819) >>at >> >> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) >>at >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327) >>at >> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206) >>at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >>at >> >> org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:224) >>at >> >> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) >>at >> >> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) >>at >> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77) >> >> >> Geoff Callender-2 wrote: >>> >>> Does setting reloadable="true" in the Context element of context.xml >>> fix it? >>> >>> On 25/06/2008, at 6:58 PM, Angelo Chen wrote: >>> Hi, I use tomcat 6 and IDEA IDE, in the IDEA I set the project's exploded directory to: /Users/abc/myapp/ROOT and the above directory is mapped as an entry under $CATALINA_HOME. in the IDEA i did not run or debug, just compile/build, the T5 picks up any changes I made to the template file, but not the page classes, I checked the above directory and can see the java class has been compiled and placed in the correct directory, just the changes are not reflected until I re- boot the server, any idea why? Thanks. Angelo -- View this message in context: http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18112541.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: Services Status Page
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: [EMAIL PROTECTED]
Re: Javassist exception on deploy time
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 start Jetty with the Tapestry projects > as a dependend project. > > Any idea? > > Martijn > > > HTTP ERROR: 500 > java.lang.ClassNotFoundException: caught an exception while obtaining a class > file for org.apache.tapestry5.corelib.components.Loop > > > Caused by: > org.apache.tapestry5.ioc.internal.util.TapestryException: > java.lang.ClassNotFoundException: caught an exception while obtaining a class > file for org.apache.tapestry5.corelib.components.Loop [at > classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml, line 27, > column 91] >at > org.apache.tapestry5.internal.services.PageElementFactoryImpl.newComponentElement(PageElementFactoryImpl.java:234) >at > $PageElementFactory_11ac3363bd8.newComponentElement($PageElementFactory_11ac3363bd8.java) >at > org.apache.tapestry5.internal.services.PageLoaderProcessor.startComponent(PageLoaderProcessor.java:656) >at > org.apache.tapestry5.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:501) >at > org.apache.tapestry5.internal.services.PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:808) >at > org.apache.tapestry5.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:393) >at > org.apache.tapestry5.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:59) >at $PageLoader_11ac3363bd6.loadPage($PageLoader_11ac3363bd6.java) >at > org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) >at > org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:107) >at $PagePool_11ac3363bd5.checkout($PagePool_11ac3363bd5.java) >at > org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:43) >at > $RequestPageCache_11ac3363bd4.get($RequestPageCache_11ac3363bd4.java) >at > $RequestPageCache_11ac3363bcc.get($RequestPageCache_11ac3363bcc.java) >at > org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:47) >at > $RequestExceptionHandler_11ac3363bba.handleRequestException($RequestExceptionHandler_11ac3363bba.java) >at > org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42) >at > $RequestHandler_11ac3363bbc.service($RequestHandler_11ac3363bbc.java) >at > org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79) >at > $RequestHandler_11ac3363bbc.service($RequestHandler_11ac3363bbc.java) >at > org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) >at > org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:1) >at > org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:75) >at > org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) >at > $RequestHandler_11ac3363bbc.service($RequestHandler_11ac3363bbc.java) >at > $RequestHandler_11ac3363bb4.service($RequestHandler_11ac3363bb4.java) >at > org.apache.tapestry5.services.TapestryModule$11.service(TapestryModule.java:918) >at > org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) >at > $HttpServletRequestFilter_11ac3363bb3.service($HttpServletRequestFilter_11ac3363bb3.java) >at > $HttpServletRequestHandler_11ac3363bb5.service($HttpServletRequestHandler_11ac3363bb5.java) >at > $HttpServletRequestHandler_11ac3363bb2.service($HttpServletRequestHandler_11ac3363bb2.java) >at > org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:168) >at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) >at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) >at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) >at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) >at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) >at org.mortbay.jetty.Server.handle(Server.java:324) >at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) >at > org.mortbay.jett
How to overridide DoubleTranslator as DoubleTranslator is not localized
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 default ones. And why the default double translator doesn't use numberformat and Tapestry's locale to output the number correctly? (And parse for that matter?) This is a flaw in otherwise nicely localized application, any thoughts? - 99 -- View this message in context: http://www.nabble.com/How-to-overridide-DoubleTranslator-as-DoubleTranslator-is-not-localized-tp18133977p18133977.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New website using T5: www.ingamenow.com
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 facilitates collaboration between team members with disparate skillsets. In fact, I think that in practice, these things often hugely outweigh any more technical considerations that might make a programmer's life easier in the short-term. However, I think Tapestry could be even better in this regard. Requiring a continuous build system would set the bar very high. Howard described his picture of a more informal "pair programming" type setup. Again, this is a pretty cool way of working, but it doesn't cover the entire space of the way people work. Teams are sometimes geographically separated, contributing at different times of the day and (shudder) individual team members often have to work offline for periods. Earlier versions of Tapestry had a real ace in the hole in this regard, namely fully previewable templates. Obviously there were trade-offs involved in maintaining previewability past the first iteration, and for some project teams, it wasn't worth the effort. But for others, it was pure gold. I worked on a T4 project where the designer could revise the current templates offline and then check the revised templates into version control, confident that he hadn't stepped on any programmatic aspects of the system. It's not that easy with T5. I'm not sure whether there are technical reasons for that or if it's just a natural consequence of Howard's imagining of the collaboration as pair programming. (A scenario in which previewability is naturally less important.) Some of it you can work around with your own components, but nothing beats having it all there in the core framework. I should probably start a separate thread to discuss this as it's not directly related to www.ingamenow.com. Don. This message has been scanned for content and viruses by the DIT Information Services E-Mail Scanning Service, and is believed to be clean. http://www.dit.ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: loop in a TreeMap
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 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 Nachricht Betreff: loop in a TreeMap Gesendet: Do, 26. Jun 2008 Von: Antonio Ordoñez<[EMAIL PROTECTED]> 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.menuOptionMap; } And I obtain the following mistake: Property 'menuOption' of class com.packtpub.celebrities.components.Menu (within property expression 'menuOption.name') is not readable (it has no read accessor method). Could anybody explain to me how must I iterate in a TreeMap. It works correctly if I try to iterate in a List but not with a TreeMap. Thank you very much. Greetings. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- original Nachricht Ende - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5:debug an t5 app under IDEA
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, after that I can see following in the log: > > > -- View this message in context: http://www.nabble.com/T5%EF%BC%9Adebug-an-t5-app-under-IDEA-tp18128682p18133108.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Streaming files from Tapestry
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 default for this built into the newer version of Tapestry. Does anyone have a simple code sample with java and configuration for a file download service available? Thanks Inge On Mon, Jul 31, 2006 at 10:20 AM, Peter Svensson <[EMAIL PROTECTED]> wrote: > I agree with Murray that Tapestry should provide a vanilla service for > downloading files such as images. It one of the first things you want to do > as a newbie and the learning curve is unnecessary steep, especially at that > early point. > > I would not be surprised if that's the place where many newbies give up and > become .net n00bs instead. > > It would cost so little to put it in, preferrably with an easy to grok > callback for dynamic stuff. > > It would make people more happy, kick less newbies in the shins and > generally ease the natural process of Tapestry world dominance. Wadda ya > say? :) > > Cheers, > PS > > > On 7/30/06, Murray Collingwood <[EMAIL PROTECTED]> wrote: > >> >> Hi Ezra >> >> You asked: >> >> > I don't see how it relates to Tapestry. >> >> It relates to Tapestry because it appears on your faq. >> >> Option: >> >> a) Remove it from the faq (pretend people are asking this question, or >> that they are only >> misguided fools like myself) >> >> b) Fix the faq by providing a recommended solution. >> >> This of course was my original posting I'll stop going around in >> circles now that I hope >> everybody understands the issue. >> >> Cheers >> mc >> >> >> FOCUS Computing - web design >> Mob: 0415 24 26 24 >> [EMAIL PROTECTED] >> http://www.focus-computing.com.au >> >> >> >> >> -- >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.1.394 / Virus Database: 268.10.5/403 - Release Date: 28/07/2006 >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >>
Re: loop in a TreeMap
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 Nachricht Betreff: loop in a TreeMap Gesendet: Do, 26. Jun 2008 Von: Antonio Ordoñez<[EMAIL PROTECTED]> > 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.menuOptionMap; > } > > And I obtain the following mistake: > Property 'menuOption' of class com.packtpub.celebrities.components.Menu > (within property expression 'menuOption.name') is not readable (it has > no read accessor method). > > Could anybody explain to me how must I iterate in a TreeMap. > > It works correctly if I try to iterate in a List but not with a TreeMap. > > Thank you very much. > > Greetings. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- original Nachricht Ende - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
popup window
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
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.menuOptionMap; } And I obtain the following mistake: Property 'menuOption' of class com.packtpub.celebrities.components.Menu (within property expression 'menuOption.name') is not readable (it has no read accessor method). Could anybody explain to me how must I iterate in a TreeMap. It works correctly if I try to iterate in a List but not with a TreeMap. Thank you very much. Greetings. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
grid pager replacement
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 that on the page below the grid. (I can't place it in the grid unless I also use an own implementation of Grid, right?) But then: how can the pager communicate with the grid? I'm wondering btw. how the pager insde the grid does this trick because its onAction handler just updates its own currentPage property... I can mimic the action links of my pager to target the grid, and in fact the grid updates its contents then, but my pager does not, of course. Tanks for any hints. Udo. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: Dynamic zone id
Consider the following example: Page: FundGraph: edit ... ... I have a page with a few fund graphs and an editZone. Each graph has an edit link which causes a form to appear in the editZone. Each graph also has a viewZone which will be updated once it's form is submitted. Tapestry sees that I am including more than one "editZone" and magically calls the zones "editZone", "editZone_1" etc Therefore, when any form is submitted, the first graph is updated with the reasult. I would like to give the zone a dynamic id, something like "prop:viewZoneId" which I calculate at runtime but tapestry is erroring stating: "Component ids must be valid Java identifiers: start with a letter, and consist of letters, numbers and underscores." Any suggestions? Cheers, Lance.
Re: T5 version 5.0.13 Index page suppressing other servlets?
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. This still doesn't explain why I don't see this behavior when using a Start page. Can a start page not have activation context? - Original Message - From: "Thiago H. de Paula Figueiredo" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Wednesday, June 25, 2008 10:49 AM Subject: Re: T5 version 5.0.13 Index page suppressing other servlets? Em Wed, 25 Jun 2008 11:32:05 -0300, kranga <[EMAIL PROTECTED]> escreveu: I have Index.tml setup in my app root for the home page. I also have a servlet defined that listens to requests to /broker. There is no folder by the name of /broker. I find that Tapestry takes over the /broker request and serves up the home page! Unless there is a /broker folder with some file Tapestry takes over! Why is the Tapestry servlet over-reaching and is there any configuration to prevent it from doing so? NOTE: This behavior is not present when I use Start.tml as my home page. Tapestry is behaving exactly as it should. For any request, the Tapestry servlet filter (it is not a servlet), checks if the request can be handled by it. If it cannot, it just ignores it, giving a chance to other servlet filters and servlets to process the request. Having an Index page, Tapestry receives a request to /broker and thinks that "broker" is the activation context for the Index page. You can leave your Index page and tell Tapestry to ignore requests to /broker adding this lines to you AppModule: public static void contributeIgnoredPathsFilter(UnorderedCollection configuration) { configuration.add("/broker/.*"); } More details at the end of http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to deploy t5components in existing T5 project?
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 or like this: Quit Cheers, Geoff On 26/06/2008, at 2:41 PM, Tan [EMAIL PROTECTED] wrote: Hi, May i know how to deploy t5components in existing T5 project? there are not really many documentation to guide how to deploy it in T5 project. Thank you. Regards, CYberTAn
Re: T5
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/T5%EF%BC%9A-Hibernate-warning-tp18125776p18131018.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: OnActivate and Injected / ASO Objects -> Boom!
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 explaination?). Since the error is related to the fact that some packages (like components in this case) are managed and so the magic of javassist kicks in and alters the class in ways not obvious by the orgininal class. I thought it is best to simply forbid tapestry managed classes being used as ASO instances first place (with a nifty exception of cause). Its the second time Tapestry let fool myself this way. Cheers, Martin (Kersten) -Ursprüngliche Nachricht- Von: Martin Kersten [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 26. Juni 2008 11:34 An: Tapestry users Betreff: OnActivate and Injected / ASO Objects -> Boom! 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) and some injected methods. Currently it blows on the ASO. It is not available and throws the Following exceptions: 008-06-26 10:49:34,685 ERROR RequestExceptionHandler: Processing of request failed with uncaught exception: Error invoking constructor com.mercateo.bpm.web.components.Login(InternalComponentResources, UserService, ApplicationStateManager, Class) (for service 'ApplicationStateManager'): No service implements the interface org.apache.tapestry.internal.InternalComponentResources. org.apache.tapestry.runtime.ComponentEventException: Error invoking constructor com.mercateo.bpm.web.components.Login(InternalComponentResources, UserService, ApplicationStateManager, Class) (for service 'ApplicationStateManager'): No service implements the interface org.apache.tapestry.internal.InternalComponentResources. at org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerC ontextEvent(ComponentPageElementImpl.java:1021) at org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handl e(PageRenderRequestHandlerImpl.java:52) at org.apache.tapestry.services.TapestryModule$29.handle(TapestryModule.jav a:1607) at $PageRenderRequestHandler_11ac4056fba.handle($PageRenderRequestHandler_1 1ac4056fba.java) at $PageRenderRequestHandler_11ac4056faf.handle($PageRenderRequestHandler_1 1ac4056faf.java) at org.apache.tapestry.internal.services.PageRenderDispatcher.process(PageR enderDispatcher.java:97) at org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch(Page RenderDispatcher.java:73) at $Dispatcher_11ac4056fb6.dispatch($Dispatcher_11ac4056fb6.java) at $Dispatcher_11ac4056fa8.dispatch($Dispatcher_11ac4056fa8.java) at org.apache.tapestry.services.TapestryModule$13.service(TapestryModule.ja va:944) at org.apache.tapestry.internal.services.LocalizationFilter.service(Localiz ationFilter.java:42) at $RequestHandler_11ac4056fa9.service($RequestHandler_11ac4056fa9.java) at org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.jav a:553) at $RequestHandler_11ac4056fa9.service($RequestHandler_11ac4056fa9.java) at org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.jav a:520) at $RequestHandler_11ac4056fa9.service($RequestHandler_11ac4056fa9.java) at org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFi lesFilter.java:79) at $RequestHandler_11ac4056fa9.service($RequestHandler_11ac4056fa9.java) at org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Che ckForUpdatesFilter.java:93) at org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Che ckForUpdatesFilter.java:84) at org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(Concurr entBarrier.java:77) at org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(Chec kForUpdatesFilter.java:106) at $RequestHandler_11ac4056fa9.service($RequestHandler_11ac4056fa9.java) at $RequestHandler_11ac4056fa1.service($RequestHandler_11ac4056fa1.java) at org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.ja va:924) at org.apache.tapestry.internal.services.IgnoredPathsFilter.service(Ignored PathsFilter.java:62) at $HttpServletRequestFilter_11ac4056fa0.service($HttpServletRequestFilter_ 11ac4056fa0.java) at $HttpServletRequestHandler_11ac4056fa2.service($HttpServletRequestHandle r_11ac4056fa2.java) at $HttpServletRequestHandler_11ac4056f9f.service($HttpServletRequestHandle r_11ac4056f9f.java) at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:168) at org.apa
Re: Unable to resolve 't5components/Accordion' to a component class name
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 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 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/accordionpage )? Does it still say that it is "unable to resolve" it to component class name? - Tobias Tan [EMAIL PROTECTED] schrieb: 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: 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' to a component class name. Available component types: ActionLink, AddRowLink, AjaxFormLoop, Any, BeanDisplay, BeanEditForm, BeanEditor, Checkbox, DateField, Delegate, Errors, EventLink, ExceptionDisplay, Form, FormFragment, FormInjector, Grid, GridCell, GridColumns, GridPager, GridRows, If, Label, Loop, Output, OutputRaw, PageLink, Palette, PasswordField, PropertyDisplay, PropertyEditor, Radio, RadioGroup, RemoveRowLink, RenderObject, Select, Submit, SubmitNotifier, TextArea, TextField, TextOutput, Unless, Zone, dojocomponent. Thank you. Regards, TanMH -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 component java
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 rendered page doesn't recognize the and it doesn't show it (I can see it in source code only) I found that with a ComponentResources variable it's possible to add ActionLink and PageLink (with resources.createActionLink() resources.createPageLink()) Is it posible to write a PropertyEditor component from the java file? (Tapestry 5.0.13) Thanks in advance This is the code: @BeginRender void beginRender(MarkupWriter writer) { ... ... ... for (int i=0; ihttp://www.nabble.com/T5-component--java-tp18130533p18130533.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to resolve 't5components/Accordion' to a component class name
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 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/accordionpage )? Does it still say > that it is "unable to resolve" it to component class name? > > - Tobias > > Tan [EMAIL PROTECTED] schrieb: > > 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: >> >> >> >>> 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' to a component class name. Available component types: ActionLink, AddRowLink, AjaxFormLoop, Any, BeanDisplay, BeanEditForm, BeanEditor, Checkbox, DateField, Delegate, Errors, >>> EventLink, >>> >>> ExceptionDisplay, Form, FormFragment, FormInjector, Grid, GridCell, GridColumns, GridPager, GridRows, If, Label, Loop, Output, OutputRaw, PageLink, Palette, PasswordField, PropertyDisplay, PropertyEditor, Radio, RadioGroup, RemoveRowLink, RenderObject, Select, Submit, SubmitNotifier, TextArea, TextField, TextOutput, Unless, Zone, dojocomponent. Thank you. Regards, TanMH >>> >>> -- >>> with regards >>> Sven Homburg >>> http://tapestry5-components.googlecode.com >>> http://chenillekit.googlecode.com >>> >>> >>> >> >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Unable to resolve 't5components/Accordion' to a component class name
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/accordionpage )? Does it still say that it is "unable to resolve" it to component class name? - Tobias Tan [EMAIL PROTECTED] schrieb: 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: 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' to a component class name. Available component types: ActionLink, AddRowLink, AjaxFormLoop, Any, BeanDisplay, BeanEditForm, BeanEditor, Checkbox, DateField, Delegate, Errors, EventLink, ExceptionDisplay, Form, FormFragment, FormInjector, Grid, GridCell, GridColumns, GridPager, GridRows, If, Label, Loop, Output, OutputRaw, PageLink, Palette, PasswordField, PropertyDisplay, PropertyEditor, Radio, RadioGroup, RemoveRowLink, RenderObject, Select, Submit, SubmitNotifier, TextArea, TextField, TextOutput, Unless, Zone, dojocomponent. Thank you. Regards, TanMH -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OnActivate and Injected / ASO Objects -> Boom!
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) and some injected methods. Currently it blows on the ASO. It is not available and throws the Following exceptions: 008-06-26 10:49:34,685 ERROR RequestExceptionHandler: Processing of request failed with uncaught exception: Error invoking constructor com.mercateo.bpm.web.components.Login(InternalComponentResources, UserService, ApplicationStateManager, Class) (for service 'ApplicationStateManager'): No service implements the interface org.apache.tapestry.internal.InternalComponentResources. org.apache.tapestry.runtime.ComponentEventException: Error invoking constructor com.mercateo.bpm.web.components.Login(InternalComponentResources, UserService, ApplicationStateManager, Class) (for service 'ApplicationStateManager'): No service implements the interface org.apache.tapestry.internal.InternalComponentResources. at org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerC ontextEvent(ComponentPageElementImpl.java:1021) at org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handl e(PageRenderRequestHandlerImpl.java:52) at org.apache.tapestry.services.TapestryModule$29.handle(TapestryModule.jav a:1607) at $PageRenderRequestHandler_11ac4056fba.handle($PageRenderRequestHandler_1 1ac4056fba.java) at $PageRenderRequestHandler_11ac4056faf.handle($PageRenderRequestHandler_1 1ac4056faf.java) at org.apache.tapestry.internal.services.PageRenderDispatcher.process(PageR enderDispatcher.java:97) at org.apache.tapestry.internal.services.PageRenderDispatcher.dispatch(Page RenderDispatcher.java:73) at $Dispatcher_11ac4056fb6.dispatch($Dispatcher_11ac4056fb6.java) at $Dispatcher_11ac4056fa8.dispatch($Dispatcher_11ac4056fa8.java) at org.apache.tapestry.services.TapestryModule$13.service(TapestryModule.ja va:944) at org.apache.tapestry.internal.services.LocalizationFilter.service(Localiz ationFilter.java:42) at $RequestHandler_11ac4056fa9.service($RequestHandler_11ac4056fa9.java) at org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.jav a:553) at $RequestHandler_11ac4056fa9.service($RequestHandler_11ac4056fa9.java) at org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.jav a:520) at $RequestHandler_11ac4056fa9.service($RequestHandler_11ac4056fa9.java) at org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFi lesFilter.java:79) at $RequestHandler_11ac4056fa9.service($RequestHandler_11ac4056fa9.java) at org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Che ckForUpdatesFilter.java:93) at org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(Che ckForUpdatesFilter.java:84) at org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(Concurr entBarrier.java:77) at org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(Chec kForUpdatesFilter.java:106) at $RequestHandler_11ac4056fa9.service($RequestHandler_11ac4056fa9.java) at $RequestHandler_11ac4056fa1.service($RequestHandler_11ac4056fa1.java) at org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.ja va:924) at org.apache.tapestry.internal.services.IgnoredPathsFilter.service(Ignored PathsFilter.java:62) at $HttpServletRequestFilter_11ac4056fa0.service($HttpServletRequestFilter_ 11ac4056fa0.java) at $HttpServletRequestHandler_11ac4056fa2.service($HttpServletRequestHandle r_11ac4056fa2.java) at $HttpServletRequestHandler_11ac4056f9f.service($HttpServletRequestHandle r_11ac4056f9f.java) at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:168) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2 86) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84 4) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( Http11Protocol.java:583)
Re: T5
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 correct? only one line. > > > Ulrich Stärk wrote: >> >> 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 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 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 warning, do I miss something? Thanks, > > Angelo > > > Ulrich StÃÂärk wrote: >> >> 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 Jue: >>> It's just a warning, not an error, you can safely ignore this one. >>> =) >>> >>> >>> On Wed, Jun 25, 2008 at 11:13 PM, Angelo Chen >>> <[EMAIL PROTECTED]> >>> wrote: >>> Hi, This is an old problem that I was not able to fix, applications runs, but always get this error [WARN] AnnotationBinder Package not found or wo package-info.java: org.bfe.sample.t5.entities I do have a hibernate.cfg.xml as follow and it works well: >>> name="hibernate.connection.driver_class">com.mysql.jdbc.Driver I do remember that somebody suggests putting a package-info.java in the entitiies directory, but what needed to be listed? Thanks, Angelo -- View this message in context: http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18125776.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128153.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128473.html >>> Sent from the Tapestry - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128817.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ---
Re: How to inherit or have a dynamic validate
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 "Martijn Brinkers (List)" <[EMAIL PROTECTED]> 26.06.2008 09:16 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema How to inherit or have a dynamic validate 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 = "field", parameters = {"validate=prop:getTheValidationValue"}) or from the tml file But I have not yet succeeded. Any tips? Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5
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 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 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 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 warning, do I miss something? Thanks, Angelo Ulrich Stärk wrote: > > 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 Jue: >> It's just a warning, not an error, you can safely ignore this one. >> =) >> >> >> On Wed, Jun 25, 2008 at 11:13 PM, Angelo Chen >> <[EMAIL PROTECTED]> >> wrote: >> >>> >>> Hi, >>> >>> This is an old problem that I was not able to fix, applications >>> runs, >>> but >>> always get this error >>> >>> [WARN] AnnotationBinder Package not found or wo package-info.java: >>> org.bfe.sample.t5.entities >>> >>> I do have a hibernate.cfg.xml as follow and it works well: >>> >>> >>> >>>>> name="hibernate.connection.driver_class">com.mysql.jdbc.Driver >>> >>> >>> >>> >>> >>> >>> >>> I do remember that somebody suggests putting a package-info.java in >>> the >>> entitiies directory, but what needed to be listed? >>> >>> Thanks, >>> >>> Angelo >>> -- >>> View this message in context: >>> http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18125776.html >>> Sent from the Tapestry - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128153.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128473.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128817.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5:debug an t5 app under IDEA
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 86.39% unrealized services (127/147) Jun 26, 2008 3:12:33 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jun 26, 2008 3:12:33 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jun 26, 2008 3:12:33 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/30 config=null Jun 26, 2008 3:12:33 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Jun 26, 2008 3:12:33 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 17865 ms Connected to server then that's the end, i can't open the page in the browser. If i run the app, I can see more info in the log: un 26, 2008 3:20:08 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2360 ms Connected to server [INFO] TimingFilter Request time: 1632 ms [WARN] AnnotationBinder Package not found or wo package-info.java: org.bfe.studio.t5.entities [INFO] TimingFilter Request time: 2991 ms [INFO] TimingFilter Request time: 1 ms [INFO] TimingFilter Request time: 95 ms [INFO] TimingFilter Request time: 1 ms [INFO] TimingFilter Request time: 138 ms [INFO] TimingFilter Request time: 2 ms Looks like somewhere the app stops responding in the debug mode, any idea? I tried this app in 5.0.11 and 13,tomcat 5 and 6, got the same problem. Angelo -- View this message in context: http://www.nabble.com/T5%EF%BC%9Adebug-an-t5-app-under-IDEA-tp18128682p18128682.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5
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 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 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 warning, do I miss something? Thanks, >>> >>> Angelo >>> >>> >>> Ulrich Stärk wrote: 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 Jue: > It's just a warning, not an error, you can safely ignore this one. > =) > > > On Wed, Jun 25, 2008 at 11:13 PM, Angelo Chen > <[EMAIL PROTECTED]> > wrote: > >> >> Hi, >> >> This is an old problem that I was not able to fix, applications >> runs, >> but >> always get this error >> >> [WARN] AnnotationBinder Package not found or wo package-info.java: >> org.bfe.sample.t5.entities >> >> I do have a hibernate.cfg.xml as follow and it works well: >> >> >> >>> name="hibernate.connection.driver_class">com.mysql.jdbc.Driver >> >> >> >> >> >> >> >> I do remember that somebody suggests putting a package-info.java in >> the >> entitiies directory, but what needed to be listed? >> >> Thanks, >> >> Angelo >> -- >> View this message in context: >> http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18125776.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128153.html >>> Sent from the Tapestry - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128473.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5
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 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 warning, do I miss something? Thanks, >> >> Angelo >> >> >> Ulrich Stärk wrote: >>> >>> 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 Jue: It's just a warning, not an error, you can safely ignore this one. =) On Wed, Jun 25, 2008 at 11:13 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > This is an old problem that I was not able to fix, applications runs, > but > always get this error > > [WARN] AnnotationBinder Package not found or wo package-info.java: > org.bfe.sample.t5.entities > > I do have a hibernate.cfg.xml as follow and it works well: > > > > name="hibernate.connection.driver_class">com.mysql.jdbc.Driver > > > > > > > > I do remember that somebody suggests putting a package-info.java in > the > entitiies directory, but what needed to be listed? > > Thanks, > > Angelo > -- > View this message in context: > http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18125776.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128153.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128473.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5
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 warning, do I miss something? Thanks, > > Angelo > > > Ulrich Stärk wrote: >> >> 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 Jue: >>> It's just a warning, not an error, you can safely ignore this one. >>> =) >>> >>> >>> On Wed, Jun 25, 2008 at 11:13 PM, Angelo Chen >>> <[EMAIL PROTECTED]> >>> wrote: >>> Hi, This is an old problem that I was not able to fix, applications runs, but always get this error [WARN] AnnotationBinder Package not found or wo package-info.java: org.bfe.sample.t5.entities I do have a hibernate.cfg.xml as follow and it works well: >>> name="hibernate.connection.driver_class">com.mysql.jdbc.Driver I do remember that somebody suggests putting a package-info.java in the entitiies directory, but what needed to be listed? Thanks, Angelo -- View this message in context: http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18125776.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128153.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5
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 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 Jue: >> It's just a warning, not an error, you can safely ignore this one. >> =) >> >> >> On Wed, Jun 25, 2008 at 11:13 PM, Angelo Chen >> <[EMAIL PROTECTED]> >> wrote: >> >>> >>> Hi, >>> >>> This is an old problem that I was not able to fix, applications runs, >>> but >>> always get this error >>> >>> [WARN] AnnotationBinder Package not found or wo package-info.java: >>> org.bfe.sample.t5.entities >>> >>> I do have a hibernate.cfg.xml as follow and it works well: >>> >>> >>> >>>>> name="hibernate.connection.driver_class">com.mysql.jdbc.Driver >>> >>> >>> >>> >>> >>> >>> >>> I do remember that somebody suggests putting a package-info.java in the >>> entitiies directory, but what needed to be listed? >>> >>> Thanks, >>> >>> Angelo >>> -- >>> View this message in context: >>> http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18125776.html >>> Sent from the Tapestry - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18128153.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to inherit or have a dynamic validate
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 = "field", parameters = {"validate=prop:getTheValidationValue"}) or from the tml file But I have not yet succeeded. Any tips? Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to resolve 't5components/Accordion' to a component class name
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. where should it be > located? > THank you. > > REgards, > Cyber > > On Thu, Jun 26, 2008 at 3:05 PM, Sven Homburg <[EMAIL PROTECTED]> > wrote: > > > 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' to a component class name. Available > > > component types: ActionLink, AddRowLink, AjaxFormLoop, Any, > BeanDisplay, > > > BeanEditForm, BeanEditor, Checkbox, DateField, Delegate, Errors, > > EventLink, > > > ExceptionDisplay, Form, FormFragment, FormInjector, Grid, GridCell, > > > GridColumns, GridPager, GridRows, If, Label, Loop, Output, OutputRaw, > > > PageLink, Palette, PasswordField, PropertyDisplay, PropertyEditor, > Radio, > > > RadioGroup, RemoveRowLink, RenderObject, Select, Submit, > SubmitNotifier, > > > TextArea, TextField, TextOutput, Unless, Zone, dojocomponent. > > > > > > > > > Thank you. > > > > > > Regards, > > > TanMH > > > > > > > > > > > -- > > with regards > > Sven Homburg > > http://tapestry5-components.googlecode.com > > http://chenillekit.googlecode.com > > > -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: Igor´s and Renat´s Presentation of Tapestry 5 yesterday evening in Düsseldorf
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 presentation. Nice work. > > Geoff > > On 26/06/2008, at 6:12 AM, Renat Zubairov wrote: > >> Thanks Nils! >> >> I've just put our slides online and since they were written in English >> everyone may also have a look inside :) >> >> Indeed, we skipped allot of interesting staff, e.g. Tapestry IOC, Testing, >> etc. >> On the day before presentation we reduced the slideset from 65 to 35 >> slides. >> (basically we just moved the last "Questions" slide in the middle so >> you still will be able to see them) >> >> I've published PDF on the google-code project of the >> Tapestry4Nontbelievers article here: >> >> >> http://code.google.com/p/tapestry4nonbelievers/downloads/detail?name=Tapestry%205.pdf >> >> Photos will be online soon. >> >> BR >> Renat >> >> 2008/6/25 nille hammer <[EMAIL PROTECTED]>: >>> >>> Hi all, >>> >>> I wanted to know whether anyone else from this list had the opportunity >>> to be in Düsseldorf yesterday. >>> >>> Igor and Renat did a really good job showing how quickly and easily you >>> get an application running with Tapestry 5. They have been given a hard time >>> by the audience asking loads of questions. They have passed that with flying >>> colours (I looked this up in a dictionary). They have left no question >>> unanswered (well, maybe one or two ;-) ). >>> >>> The only downside (as often with this kind of events) was the lack of >>> time. A lot of topics had to be left uncovered. And could not be covered >>> either in the session after the presentation. I personally would like them >>> to follow up with events focussing on particular topics like Tapestry-IOC or >>> the Contribution concept. Especially the latter one still is a bit obscure >>> to me. >>> >>> All in all I enjoyed the opportunity to meet some fellows from this list >>> and even some open source celebrities personally. And free beer is allways a >>> bonus. I hope to see some photos online soon. You guys get a vote +1 >>> (non-binding) from me! >>> >>> Regards nillehammer >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> Best regards, >> Renat Zubairov > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to resolve 't5components/Accordion' to a component class name
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: > 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' to a component class name. Available > > component types: ActionLink, AddRowLink, AjaxFormLoop, Any, BeanDisplay, > > BeanEditForm, BeanEditor, Checkbox, DateField, Delegate, Errors, > EventLink, > > ExceptionDisplay, Form, FormFragment, FormInjector, Grid, GridCell, > > GridColumns, GridPager, GridRows, If, Label, Loop, Output, OutputRaw, > > PageLink, Palette, PasswordField, PropertyDisplay, PropertyEditor, Radio, > > RadioGroup, RemoveRowLink, RenderObject, Select, Submit, SubmitNotifier, > > TextArea, TextField, TextOutput, Unless, Zone, dojocomponent. > > > > > > Thank you. > > > > Regards, > > TanMH > > > > > > -- > with regards > Sven Homburg > http://tapestry5-components.googlecode.com > http://chenillekit.googlecode.com >
Re: Unable to resolve 't5components/Accordion' to a component class name
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' to a component class name. Available > component types: ActionLink, AddRowLink, AjaxFormLoop, Any, BeanDisplay, > BeanEditForm, BeanEditor, Checkbox, DateField, Delegate, Errors, EventLink, > ExceptionDisplay, Form, FormFragment, FormInjector, Grid, GridCell, > GridColumns, GridPager, GridRows, If, Label, Loop, Output, OutputRaw, > PageLink, Palette, PasswordField, PropertyDisplay, PropertyEditor, Radio, > RadioGroup, RemoveRowLink, RenderObject, Select, Submit, SubmitNotifier, > TextArea, TextField, TextOutput, Unless, Zone, dojocomponent. > > > Thank you. > > Regards, > TanMH > -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: T5$B!'(B Hibernate warning
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 Jue: > It's just a warning, not an error, you can safely ignore this one. > =) > > > On Wed, Jun 25, 2008 at 11:13 PM, Angelo Chen <[EMAIL PROTECTED]> > wrote: > >> >> Hi, >> >> This is an old problem that I was not able to fix, applications runs, >> but >> always get this error >> >> [WARN] AnnotationBinder Package not found or wo package-info.java: >> org.bfe.sample.t5.entities >> >> I do have a hibernate.cfg.xml as follow and it works well: >> >> >> >>> name="hibernate.connection.driver_class">com.mysql.jdbc.Driver >> >> >> >> >> >> >> >> I do remember that somebody suggests putting a package-info.java in the >> entitiies directory, but what needed to be listed? >> >> Thanks, >> >> Angelo >> -- >> View this message in context: >> http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18125776.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]