Re: ClassCastException after upgrading to 5.1.0.5

2009-07-30 Thread Mario Udina
Hello! I put the following lines in the AppModule sine no other solution would work for me on Weblogic 9.2: System.setProperty("javax.xml.stream.XMLInputFactory", "com.ctc.wstx.stax.WstxInputFactory"); System.setProperty("javax.xml.stream.XMLOutputFactory",

RE : t5: determine page's locale?

2009-07-30 Thread Komiwes Robin
Try using the ThreadLocale service. http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/ioc/services/ThreadLocale.html Regards, Robin K, -- Atos Worldline De : Angelo Chen [angelochen...@yahoo.com.hk] Date d'envoi : vendredi 31 juillet 20

How to fetch Form from within "afterSubmit" handler?

2009-07-30 Thread Vjeran Marcinko
Hello, I have created multi-form-field component (eg, DateRangeEditor component that has two DatePickers inside that are used to set "start" and "end" dates for DateRange domain class). When Form that contains this DateRangeEditor component submits, the component gets notified about this via "

GridSortModel

2009-07-30 Thread ppetrou
I am using a Grid component to display the fields of a User and when clicking on the USERNAME column header the default behavior is to sort a the users by name(case sensitive). However, I want the sorting to take place in a non-case sensitive manner. I tried to do this with the GridSortModel but I

t5: determine page's locale?

2009-07-30 Thread Angelo Chen
Hi, I'd like to determine locale of a page, using the following code, it always returns 'en' even I have use different URLS like: http://localhost:8080/en http://localhost:8080/zh any ideas? Angelo @Inject private RequestGlobals requ

t5: using Messages in a service

2009-07-30 Thread Angelo Chen
Hi, I try use constructor injection to inject the Messages into my service, but I always get a error that: Caused by: java.lang.RuntimeException: No service implements the interface org.apache.tapestry5.ioc.Messages. at org.apache.tapestry5.ioc.internal.RegistryImpl.getService(RegistryImp

Re: Live class reloading and annotations in page classes

2009-07-30 Thread Robert Zeigler
On Jul 29, 2009, at 7/297:00 PM , Thiago H. de Paula Figueiredo wrote: Hi! I'm working on a security package for Tapestry (to be open-sourced soon) and I'm following the typical Dispatcher-based approach. Now I need to check if the requested page has a given annotation and read its value

Re: Tapestry 4.1 How to protect from "malicious" change on parameters?

2009-07-30 Thread Adriana B
Hi Jonathan, Thanks for talking the time! Yes, an application error page is displayed on most of the attacks. I'm thinking on implement an input validation, where I can "catch" and "filter" the malicious values that trigger the error. I don't know if there is a generic way that Tapestry 4.1 can

Re: [T5] Create audit annotation

2009-07-30 Thread Thiago H. de Paula Figueiredo
Em Thu, 30 Jul 2009 15:34:33 -0300, jose luis sanchez escreveu: Is there any way i can send dynamic parameters to an annotation ? You just can't. They're computed at compiling time. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachin

Re: [T5] Create audit annotation

2009-07-30 Thread jose luis sanchez
Wow .. great .. thanks for your help ( everybody ) Now, i've doneit ... amazing how powerfull annotations are :-) But ... Is there any way i can send dynamic parameters to an annotation ? private String userName; Like @Audit (user="+userName+") or something like that ... or a way i can retri

Autocomplete provide list of completions onfocus

2009-07-30 Thread Jesse Wells
Hi all, I am using the ajax autocomplete mixin for Tapestry 5.1.0.5. I have it working so that when text is typed into the input it provides completions. Does anyone know of an easy way provide a list of completions as soon as the user puts focus on the text input and before anything is typed?

Re: [T5] Create audit annotation

2009-07-30 Thread jose luis sanchez
Yeah,sure .. i was looking for Tapestry annotations howto .. and realized that are java5 related, not 5. Lately, T5 is solving so many problems i'm start to think everything is related to it :-) Em Thu, 30 Jul 2009 14:01:05 -0300, jose luis sanchez escreveu: Hi all. Hi! But i can't f

RE: [T5] Create audit annotation

2009-07-30 Thread Komiwes Robin
Annotations are just "special" java interfaces. They are providing some Meta data. Maybe you will want to have a look on : http://java.sun.com/docs/books/tutorial/java/javaOO/annotations.html http://www.oracle.com/technology/pub/articles/hunter_meta_2.html You should find some annotations declar

Re: [T5] Create audit annotation

2009-07-30 Thread Thiago H. de Paula Figueiredo
Em Thu, 30 Jul 2009 14:01:05 -0300, jose luis sanchez escreveu: Hi all. Hi! But i can't find any info on how to make an annotation .. any idea ? The first Google result for 'java annotation tutorial' is http://java.sun.com/docs/books/tutorial/java/javaOO/annotations.html, not very u

[T5] Create audit annotation

2009-07-30 Thread jose luis sanchez
Hi all. I'm trying to create an annotation for auditing methods in my application, in order to log to a file who is doing what. The use of the annotation should be like this ... @Audit(user=user, what=method) private void storingAccount(.) where user and method should be parameters ...

Spring contextConfigLocation versus ApplicationContextCustomizer : barrier to Tapestry way (... where things Just Work)

2009-07-30 Thread Komiwes Robin
Dear Tapestry and Spring users, I'm currently coding a lot of libraries/JARs using Spring stuff. With Tapestry Spring module, I found a very nice feature which is ApplicationContextCustomizer. I used that feature to automatically add a Spring context configuration XML from the classpath of

Re: t5: putting a text in the same line as grid's pager

2009-07-30 Thread Thiago H. de Paula Figueiredo
Em Thu, 30 Jul 2009 11:33:34 -0300, Angelo Chen escreveu: Hi, Hi! One good way is to do it is to write a mixin and rewrite the DOM generated by Grid. You can find examples in the mailing list archives. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instruc

t5: putting a text in the same line as grid's pager

2009-07-30 Thread Angelo Chen
Hi, I have a t:grid that has a pager, I'd like to move the display of pager to the right, then in the left I'd put a text: here is my text 1 2 3 4 5 to move the display of pager to the right, I use: .t-data-grid-pager {font-size:1.2em; text-align:right;} but now h

Re: How to start with Tapestry5

2009-07-30 Thread Thiago H. de Paula Figueiredo
Em Thu, 30 Jul 2009 10:36:42 -0300, Prajesh Kacha escreveu: Hello Friends, Hi! I want to use Tapestry5 but not getting how to start, I can't find document that tells me how to configure tapestry5 with tomcat5. can any one help me to solve these problem. AFAIK, no special configuration

How to start with Tapestry5

2009-07-30 Thread Prajesh Kacha
Hello Friends, I Have used Tapestry4 for web development, it works fine with apache-tomcat5. I want to use Tapestry5 but not getting how to start, I can't find document that tells me how to configure tapestry5 with tomcat5. can any one help me to solve these problem. -- Regards, Prajesh J. Kach

Re: ClassCastException after upgrading to 5.1.0.5

2009-07-30 Thread Kristian Marinkovic
i had the same problem with websphere... i had to add following JVM parameter -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory with another version i had to drop the stax2 jar into a shared folder because the classloader wouldn't respect my parameter g, kris raucha

ClassCastException after upgrading to 5.1.0.5

2009-07-30 Thread raucha
After upgrading from 5.0.18 to 5.1.0.5 my application fails to start when deployed on a weblogic server. I think this has to do with the usage of Stax in the TemplateParser. I have tried to override the implementation in my weblogic-application.xml with javax.xml.stream.XMLInputFactory com.

combine-scripts issue

2009-07-30 Thread Henning Petersen
Hi everybody, I am experiencing seemingly random problems when I use combined scripts under IE7 and IE8. It seems that sometimes, these browsers are unable to fully load the combined script. In IE8, I see a permanent loading spinner, and the page remains completely unresponsive to user input due t

"No service implements the interface org.springframework.context.ApplicationContext." when trying tutorial #1

2009-07-30 Thread 潘军彪
Hi, When I try the tutorial #1 from the tapestry website, I get an error about the ApplicationContext. Could you please help me resolve the problem? Thanks a lot! With Best Regards, James Pan The log file: tutorial1# mvn jetty:run [INFO] Scanning for projects.

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-30 Thread Juan E. Maya
yep, i just checked and FLOT uses jQuery so that's the problem for sure. On Thu, Jul 30, 2009 at 10:53 AM, Ciaran Wood wrote: > I think the problem here is that the javascript that FLOT is expecting is > clashing with the prototype javascript library that tapestry imports. When > you use prototype

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-30 Thread Ciaran Wood
I think the problem here is that the javascript that FLOT is expecting is clashing with the prototype javascript library that tapestry imports. When you use prototype, $ evaluates to a function that expects either a DOM element or the id of a DOM element. Does FLOT use jquery prehaps? If so, you mi

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-30 Thread Juan E. Maya
Ignacio that's nothing related with tapestry. U should understand what u r trying to achieve with ur javascript and do it. do u know what does the $ symbol means before a function and why should that be used? The problem is not related tapestry. 2009/7/30 Ignacio González Arboleya : > Now I can s