Re: Hello. New user here!

2009-08-19 Thread P . Stavrinides
> Better than exclude - re-declare the tapestry version in your own > application pom so Maven's "nearest" version resolution can work > properly (that way you don't have to exclude them for each dependency > that declares a specific version of Tapestry). On a side note: Respectfully I disagree wi

Re: request interface doesn't provide supported locales

2009-08-19 Thread Igor Drobiazko
You can add a property of type Locale to your page class and annotate it with @Inject. The locale of the current request will be injected. Отправлено с iPhone 20.08.2009, в 00:23, Sebastian Hennebrueder написал(а): Hello, The Tapestry request interface doesn't provide access to the supp

Re: Your best practice for - list view + detail view

2009-08-19 Thread Marcus Veloso
Hi, /book/ (for search and list) /book/detail/4711 (crud without "c") /book/detail/(create) Marcus

Re: request interface doesn't provide supported locales

2009-08-19 Thread Thiago H. de Paula Figueiredo
Em Wed, 19 Aug 2009 19:23:51 -0300, Sebastian Hennebrueder escreveu: Hello, Hi! My proposal is either to provide a getDelegate method to allow access to the wrapped request or to add the method to the interface and the basic implementation. You can get it by @Inject private HttpServletR

Re: Your best practice for - list view + detail view

2009-08-19 Thread Thiago H. de Paula Figueiredo
Em Wed, 19 Aug 2009 17:32:47 -0300, Sebastian Hennebrueder escreveu: Hello, Hi! I usually create two (or three, depending on the case) pages: /book/list (book.ListBook) /book/edit/id (book.EditBook) /book/view/id (book.ViewBook) (if needed) -- Thiago H. de Paula Figueiredo Independent Ja

request interface doesn't provide supported locales

2009-08-19 Thread Sebastian Hennebrueder
Hello, The Tapestry request interface doesn't provide access to the supported locales. My use case for this, that depending on the supported locales of the browser, I show items in these languages. My proposal is either to provide a getDelegate method to allow access to the wrapped request or t

Re: Intermittent Stax Exception

2009-08-19 Thread martijn.list
Could the NPE be caused by an out-of-memory? A NPE can sometimes be thrown on an out of memory. Martijn zack1403 wrote: The page works fine for ~24 hours before this exception starts to show up. If the user.home property was not set it would probably error out first thing. I am not setting it

Re: Intermittent Stax Exception

2009-08-19 Thread zack1403
Yes martijn.list wrote: > > Is your application the only web application running in the Servlet > container? > > Martijn > > -- View this message in context: http://www.nabble.com/Intermittent-Stax-Exception-tp24648581p25051825.html Sent from the Tapestry - User mailing list archive at N

Re: Intermittent Stax Exception

2009-08-19 Thread martijn.list
Is your application the only web application running in the Servlet container? Martijn zack1403 wrote: The page works fine for ~24 hours before this exception starts to show up. If the user.home property was not set it would probably error out first thing. I am not setting it anywhere else ei

Re: Intermittent Stax Exception

2009-08-19 Thread zack1403
The page works fine for ~24 hours before this exception starts to show up. If the user.home property was not set it would probably error out first thing. I am not setting it anywhere else either. Thanks, Zack martijn.list wrote: > > Afaics resolve only throws a NullPointerException when eithe

Your best practice for - list view + detail view

2009-08-19 Thread Sebastian Hennebrueder
Hello, I frequently have the pattern list or search page to list all for example all books and a detail page book Before I used the following urls /book/list /book/4711 Do you create two pages or a single one? Which naming convention do you use for the pages? -- Best Regards / Viele Grüße Se

Re: Intermittent Stax Exception

2009-08-19 Thread zack1403
Thanks for the points felix. The real issue is that the exception is intermittent. I've closed the bug 2 times only to be opened again when customers start calling. The page is incredibly simple and I can safely say everything is split up as much as possible. Its a simple unsubscribe page very

Re: Intermittent Stax Exception

2009-08-19 Thread martijn.list
zack1403 wrote: This issue is popping up randomly on my production app and I cant relate it to any change. The exception is also deep rooted in tapestry. I can post code if necessary but it is a very simple isolated page and the exception is occurring at line 1 of the tml. Any ideas? Exceptio

Re: Alias names for components and pages (solved thanks)

2009-08-19 Thread Sebastian Hennebrueder
Thiago H. de Paula Figueiredo schrieb: Em Wed, 19 Aug 2009 15:56:08 -0300, Sebastian Hennebrueder escreveu: Hello, Hi! I couldn't find a way to define an alias name for components or pages. Is this just not possible? Tapestry doesn't support this out-of-the-box, but its architecture has

Re: Intermittent Stax Exception

2009-08-19 Thread Felix Gonschorek
hi zack, i'am very sorry to hear that it was'nt possible to find a solution and that you are going to switch the framework. we've had problems too but luckily we were able to solve them all so far. since we are using tapestry we are way more productive than with other frameworks or technolog

Re: Alias names for components and pages

2009-08-19 Thread Thiago H. de Paula Figueiredo
Em Wed, 19 Aug 2009 15:56:08 -0300, Sebastian Hennebrueder escreveu: Hello, Hi! I couldn't find a way to define an alias name for components or pages. Is this just not possible? Tapestry doesn't support this out-of-the-box, but its architecture has some points that can help you: 1)

Alias names for components and pages

2009-08-19 Thread Sebastian Hennebrueder
Hello, I couldn't find a way to define an alias name for components or pages. Is this just not possible? I frequently have domain Foo, page class Foo. This requires to read the package every time. I would like to have a FooPage instead or MessagesComponent instead of Messages to distinguish t

Re: Intermittent Stax Exception

2009-08-19 Thread zack1403
Ummm alright well I guess this is just a bug? We are switching the site slowly back over to a more mature framework without all the bugs. I am having to rewrite this isolated page in php to get it working in the mean time. I guess I bet on the wrong horse with tapestry. Zack -- View this messa

Re: Numeric validator doesn't recognise scientific numbers (5.0.18)

2009-08-19 Thread Thiago H. de Paula Figueiredo
Em Wed, 19 Aug 2009 13:02:15 -0300, Szemere Szemere escreveu: Using the BeanEditForm, my object has a numeric value (e.g. 120,000,000.00) which gets displayed in scientific notation (e.g. 1.2E8). That's fine, except when I try to save the validator complains that 1.2E8 is not a valid numb

Numeric validator doesn't recognise scientific numbers (5.0.18)

2009-08-19 Thread Szemere Szemere
Using the BeanEditForm, my object has a numeric value (e.g. 120,000,000.00) which gets displayed in scientific notation (e.g. 1.2E8). That's fine, except when I try to save the validator complains that 1.2E8 is not a valid number. Is this a known issue (searching the mailing lists proved blank)?

Re: 2 Tapestry apps in same tomcat

2009-08-19 Thread Sebastian Hennebrueder
jose luis sanchez schrieb: Hi all. I've developed two diffent T5 apps ( T5.1.0.5), and have them deployed in the same tomcat server. My question is : Will there be any improvements ( speed, memory consuming ) if i share T5 libs between them both ? ( in tomcat/lib folder ) Thanks. ---

2 Tapestry apps in same tomcat

2009-08-19 Thread jose luis sanchez
Hi all. I've developed two diffent T5 apps ( T5.1.0.5), and have them deployed in the same tomcat server. My question is : Will there be any improvements ( speed, memory consuming ) if i share T5 libs between them both ? ( in tomcat/lib folder ) Thanks. ---

Re: Not working example for BeanDisplay

2009-08-19 Thread Thiago H. de Paula Figueiredo
Em Wed, 19 Aug 2009 05:43:33 -0300, Andrey Larionov escreveu: Thanks. I think documentation should be fixed Please post a documentation JIRA for it. :) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago -

Re: Component LinkSubmit doesn't work

2009-08-19 Thread Borut Bolčina
Maybe with the example code someone can explain this better why the event onSendPin is not called when LinkSubmit is clicked, but it is when the submit button is clicked: TML === http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> linksubmit

Re: Component LinkSubmit doesn't work

2009-08-19 Thread Borut Bolčina
Hi, I am using T 5.0.18 and have problems with LinkSubmit not firing the event. By the way, what is the url of T 5.0.18 and its API? I have two TextField components, one LinkSubmit and one non-tapestry ordinary input submit button. I want to set some variable (varA) in case LinkSubmit is clicke

Re[2]: How to create Ajax request from t:select

2009-08-19 Thread Sergey Kashin
I have saw the solutions but is not the same as @EventListener solution from chenillekit.org is not universal, need javascript programming for every situation and not contain submitForm = "form", validateForm = false more universals http://tinybits.blogspot.com/ with zone update but it much sim

Re: T5: HibernateEntityValueEncoder nullpointerException after Tapestry update

2009-08-19 Thread Britske
I'm not sure if HibernateEntityValueEncoder called PersistentClass.getIdentifierProperty() before (in 5.0.x) when my code worked... getIdentifierProperty() returns an instance of hibernate.mapping.Property which may be a Composite ID (which seems to be the official name for multi-column ids). In

Re: T5: HibernateEntityValueEncoder nullpointerException after Tapestry update

2009-08-19 Thread Ulrich Stärk
This /seems/ to be a Hibernate issue. PersistentClass.getIdentifierProperty() is apparently returning null. On second thought this seems just natural since there is no property representing your Id. Uli On 19.08.2009 12:39 schrieb Britske: I'm in the process of updating from 5.0.17 to 5.1.0.

T5: HibernateEntityValueEncoder nullpointerException after Tapestry update

2009-08-19 Thread Britske
I'm in the process of updating from 5.0.17 to 5.1.0.5 and breaking my head on this one: Getting a NullPointerException in HibernateEntityValueEncoder when trying to loop a hibernate Entity where the entity has a multi-column id. I actually have this with every entity with a multi-column id so

Re: t5: tools to monitor

2009-08-19 Thread Angelo Chen
hi Borut, it looks good, any wiki/tutorial of using it with t5? or a maven thing to make life easier? thanks. bbcooper wrote: > > We also use http://messadmin.sourceforge.net/ > > Cheers, > Borut > > 2009/8/17 Angelo Chen > >> >> Hi, >> Currently I use Tomcat's manager to monitor t5 apps, i

Re: T5 & IT Mill Toolkit ?

2009-08-19 Thread Ivano Luberti
Thiago, sorry to come late at you after you promptly responded to me about this. I guess that the confusion arises because as often every framework web site claims to be "the solution" to every aspect of web site development. So after first reading it I guessed that Vaadin was offering both client

Re: How to create Ajax request from t:select

2009-08-19 Thread Juan E. Maya
This has been asked several times in the last weeks. U can use chenillikit's onEvent mixin: http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/mixins/OnEvent.html or do something like: http://tinybits.blogspot.com/ 2009/8/19 Sergey Kashin : > Hello! > > In tapestry 4

Re: Not working example for BeanDisplay

2009-08-19 Thread Andrey Larionov
Thanks. I think documentation should be fixed On Wed, Aug 19, 2009 at 12:39, Ulrich Stärk wrote: > Replace bean with the name of your property that you want to display. I > guess it's entry? So it would be ${entry.link.toUpperCase()} > > HTH, > > Uli > > On 19.08.2009 10:11 schrieb Andrey Larionov

How to create Ajax request from t:select

2009-08-19 Thread Sergey Kashin
Hello! In tapestry 4.1 I can create ajax request from select component a very simple way: @EventListener(elements = "city", events = "onchange", submitForm = "form", validateForm = false) public void citySelected(IRequestCycle cycle) { . cycle.getResponseBuilder().updateComponent("zip");

Re: Not working example for BeanDisplay

2009-08-19 Thread Ulrich Stärk
Replace bean with the name of your property that you want to display. I guess it's entry? So it would be ${entry.link.toUpperCase()} HTH, Uli On 19.08.2009 10:11 schrieb Andrey Larionov: Example from of parametrizing BeanDisplay component (http://tapestry.apache.org/tapestry5/tapestry-core/re

Re: Not working example for BeanDisplay

2009-08-19 Thread Lance Java
${bean.lastname.toUpperCase()} Should read ${user.lastname.toUpperCase()} 2009/8/19 Andrey Larionov > Example from of parametrizing BeanDisplay component > ( > http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/component

Not working example for BeanDisplay

2009-08-19 Thread Andrey Larionov
Example from of parametrizing BeanDisplay component (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/BeanDisplay.html) dosnt work ${bean.link.toUpperCase()} this block produces exception somthing like Class components.FeedEntryElement does not