Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-09-23 Thread Peter Stavrinides
Hi Massimo, One comment: You are still using javassist 3.7.GA instead of 3.9.GA, if you want to make ChenilleKit completely compatible with Tapestry 5.1 and Java 6 you need the newer jar. Kind regards, Peter - Original Message - From: "deian" To: users@tapestry.apache.org Sent: Tues

Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-09-23 Thread Sven Homburg
Hi Peter, that is not complete correctly. we use the 3.9GA but have missed to disable the using of the 3.7GA that comes with the hibernate package. we will remove this conflict by excluding the older version from hibernate's maven package with regards Sven Homburg Founder of the Chenille Kit Pro

Re: New Tapestry Website - Final review

2009-09-23 Thread Sebastian Hennebrueder
The idea is nice but I think technically it is not possible. If you click to any page from the sitemap the menu would appear again. But your proposal points me to another idea. I think that a new user would benefit from the sliding menu as it is simpler to oversee the different areas. We cou

Re: T5:how to inject slf4j service?

2009-09-23 Thread cleverpig
hi,Alfonso! please show me what's in your AppModule..let me get the reality... 2009/9/23 Alfonso Quiroga : > Is your logging working now? I didn't do anything in AppModule, just > drop the jars and logging works, if you still have problems, I can > show you my project configuration, good luck > >

Proceeding after failed authorization checks

2009-09-23 Thread dirk . lattermann
Hi! I want to protect some pages based on the user groups the user is a member of. I have some partial success using http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess For the annotation @Private used there, I defined a parameter indicating the user group that is allowed to access the

T5:why I got this exception-"hibernate.LazyInitializationException"?

2009-09-23 Thread cleverpig
I wrote a simple query in ListView page,there is a select component in the page bottom,which will load category list from DB by Hibernate. the ListView.tml will provider query parameter(selectCat) to the ListView class. when i running them,i got this exception: 2009-09-23 17:45:41 http-8080-2 DEB

Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-09-23 Thread Massimo Lusetti
On Tue, Sep 22, 2009 at 10:19 PM, deian wrote: > > Hi Massimo, > > I have a question : how to download that release? without maven > > Thank you in advance for your time. I browsed the site but I cannot see any > download section nor instructions. As i said in the announce we failed to have a "d

Re: Proceeding after failed authorization checks

2009-09-23 Thread Thiago H. de Paula Figueiredo
Em Wed, 23 Sep 2009 06:54:09 -0300, escreveu: Hi! Hi! In the howto, if a user that is not logged in tries to access a private page, the login page is shown (which may or may not be a sufficient solution there), using response.sendRedirect(). In my case, the user may be logged in but not as

Re: T5:why I got this exception-"hibernate.LazyInitializationException"?

2009-09-23 Thread Thiago H. de Paula Figueiredo
Em Wed, 23 Sep 2009 07:10:29 -0300, cleverpig escreveu: org.hibernate.LazyInitializationException: could not initialize proxy This is a Hibernate issue, not a Tapestry one. By the way, understanding this exception is basic Hibernate knowledge. Your solution is in the manual. ;) -- Thi

Re: T5:why I got this exception-"hibernate.LazyInitializationException"?

2009-09-23 Thread cleverpig
Ho! I found the answer,it's just not a hibernate issue,just since it was a wrong way to write ValueEncoder implementation. At first.it's my old CategoryEncoder class: public class CategoryEncoder implements ValueEncoder{ private CategoryService catService; public CategoryEncoder(Cat

Tapestry 5- a very nice web framework

2009-09-23 Thread Banchi Liko
For some weeks now I have been playing with Tapestry. I think it is one of the best in the industry. Kudos to Howard Lewis Ship. I have a question. How do you rate the support of Ajax in Tapestry. We are shortly going to start a project that would be heavily Ajax based. Would be a pain for us if we

t5: redirect to a normal page in ExceptionReport

2009-09-23 Thread Angelo Chen
Hi, I use an ExceptionReporter to catch error: public class ExceptionReport implements ExceptionReporter { //; } Is there a way to just redirect or forward to a normal page in the class above? Thanks, A.C. -- View this message in context: http://www.nabble.com/t5%3A-redirect-to-a-normal-page-

Re: t5: redirect to a normal page in ExceptionReport

2009-09-23 Thread Thiago H. de Paula Figueiredo
Em Wed, 23 Sep 2009 11:57:15 -0300, Angelo Chen escreveu: Hi, Hi! Is there a way to just redirect or forward to a normal page in the class above? Thanks, Return something in its onActivate() method. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor

T5:select component's label doesn't work

2009-09-23 Thread cleverpig
my tapestry's version is Tapestry5.1.05. i read this from select component manual: Component Parameters: ... label String NOT Allow Null literal The user presentable label for the field. If not provided, a reasonable label is generated from the component's id, first by lookin

T5:tapestry should add a package-level localization feature

2009-09-23 Thread cleverpig
just like struts2 had done in Localization:http://struts.apache.org/2.1.6/docs/localization.html -- cleverpig(Dan) Location: Beijing Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China Zipcode: 100031 MSN: great_liu...@hotmail.com QQ: 149291732 Skype: cleverpigatmatrix Facebook ID:c

Using T5 with Hivemind

2009-09-23 Thread Gerald Bauer
Hi guys, I have a requirement to use Hivemind with T5. Is there a support for this? Gerald

Re: T5:tapestry should add a package-level localization feature

2009-09-23 Thread Thiago H. de Paula Figueiredo
Em Wed, 23 Sep 2009 12:09:59 -0300, cleverpig escreveu: just like struts2 had done in Localization:http://struts.apache.org/2.1.6/docs/localization.html You can file a JIRA for that. I never missed this feature. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and i

Re: Using T5 with Hivemind

2009-09-23 Thread Juan E. Maya
Hi Gerald, i've never tried but i know ChenilleKit has a module to support Hivemind. It may worth the try: http://chenillekit.codehaus.org/chenillekit-hivemind/index.html On Wed, Sep 23, 2009 at 5:12 PM, Gerald Bauer wrote: > Hi guys, > > I have a requirement to use Hivemind with T5. Is there a

Re: T5:select component's label doesn't work

2009-09-23 Thread Juan E. Maya
u have a typo. t:label not t:lable :) 2009/9/23 cleverpig : > my tapestry's version is Tapestry5.1.05. > > i read this from select component manual: > Component Parameters: > ... > label String > NOT Allow Null literal > The user presentable label for the field. If not provided, a > r

Re: t5: redirect to a normal page in ExceptionReport

2009-09-23 Thread Juan E. Maya
I created a strategy around the RequestExceptionHandler to avoid duplicated code in my pages. It's something like: public static RequestExceptionHandler buildRequestExceptionHandlerStrategy(Map configuration, StrategyBuilder builder, @InjectService("RincoExceptionRequestExc

Re: Using T5 with Hivemind

2009-09-23 Thread Gerald Bauer
I'll take a look at it. Thanks for the quick response. Gerald On Wed, Sep 23, 2009 at 5:15 PM, Juan E. Maya wrote: > Hi Gerald, > > i've never tried but i know ChenilleKit has a module to support > Hivemind. It may worth the try: > http://chenillekit.codehaus.org/chenillekit-hivemind/index.html

Re: Tapestry 5- a very nice web framework

2009-09-23 Thread Juan E. Maya
Hi Banchi! :) I agree with u :) All the ajax in tapestry is done around the Zone concept. My experience is that 95% of the time the Zone Aware components and in some strange case the ZoneUpdater are enough. To build less common ajax actions u need to understand a bit more of how the JS is connecte

Re: Tapestry 5- a very nice web framework

2009-09-23 Thread Thiago H. de Paula Figueiredo
Em Wed, 23 Sep 2009 12:30:40 -0300, Juan E. Maya escreveu: Hi Banchi! :) I agree with u :) Hi! I agree with you 2! :) All the ajax in tapestry is done around the Zone concept. My experience is that 95% of the time the Zone Aware components and in some strange case the ZoneUpdater are enou

Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-09-23 Thread Kalle Korhonen
Deian, You can download the individual jars as needed from http://repo1.maven.org/maven2/org/chenillekit/ Kalle On Wed, Sep 23, 2009 at 3:41 AM, Massimo Lusetti wrote: > On Tue, Sep 22, 2009 at 10:19 PM, deian wrote: > >> >> Hi Massimo, >> >> I have a question : how to download that release?

Re: T5:how to inject slf4j service?

2009-09-23 Thread Alfonso Quiroga
Cleverpig: In my AppModule and ServerModule (I have 2 modules) I have nothing related to logging. I only have "bindings" between services interfaces and implementations, then I have request filters (hibernate filter), and finally I have advisors for services (this is like spring interceptors, but w

call javascript function from the server

2009-09-23 Thread cuartz
can someone tell me how to call a javascript function from the pageDetached() method -- View this message in context: http://www.nabble.com/call-javascript-function-from-the-server-tp25531233p25531233.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: T5:tapestry should add a package-level localization feature

2009-09-23 Thread Alfonso Quiroga
I used struts2 for 2 years aprox, and always used i18n, putting all i18n in the ROOT app package, I can't imagine a situation using diferentent files for the same language (say spanish) in diferent packages. And if you do it, it's danger because you must know what happens in hierarchy. Let's see, I

Re: call javascript function from the server

2009-09-23 Thread Thiago H. de Paula Figueiredo
Em Wed, 23 Sep 2009 15:05:42 -0300, cuartz escreveu: can someone tell me how to call a javascript function from the pageDetached() method In HTTP, It's impossible to do any communication starting from the server to the client. Of course, you can use something like reverse AJAX. --

Ajax, call javascript function from pagedetached t5

2009-09-23 Thread cuartz
I want to know if its possible to call a javascript function from the pageDetached() method in tapestry 5 -- View this message in context: http://www.nabble.com/Ajax%2C-call-javascript-function-from-pagedetached-t5-tp25531281p25531281.html Sent from the Tapestry - User mailing list archive at Na

Re: Ajax, call javascript function from pagedetached t5

2009-09-23 Thread Carl Crowder
Simply, no, as Thiago previously mentioned. There's no way to execute client side code from the server. cuartz wrote: I want to know if its possible to call a javascript function from the pageDetached() method in tapestry 5 -

Bean editor model for User already contains a property model for property 'account'

2009-09-23 Thread neo anderson
I have an domain object named User, in which it has a field called `account'. However, the User object only provide method getAccount(), but does not provide method setAccount(String account). public class User{ private String account; public User(... String account, ...){ ... this.acco

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-23 Thread neo anderson
Sorry, the User object should be public class User{ private String account; public User(... String account, ...){ ... this.account = account; } ... public String getAccount(){ return this.account } // public void setAccount(String account){ // this.account

Preventing Form Resubmission

2009-09-23 Thread Benny Law
I was wondering if Tapestry automatically prevents a form from being submitted more than once (like when you press the Enter key quickly a few times when you are in a text field)? In my quick test, it seemed that something was providing this protection. I have some JavaScript that will provide this

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-23 Thread Thiago H. de Paula Figueiredo
Em Wed, 23 Sep 2009 17:58:08 -0300, neo anderson escreveu: I have an domain object named User, in which it has a field called `account'. However, the User object only provide method getAccount(), but does not provide method setAccount(String account). BeanModelSource (used when a BeanM

Re: Preventing Form Resubmission

2009-09-23 Thread Thiago H. de Paula Figueiredo
Em Wed, 23 Sep 2009 18:07:34 -0300, Benny Law escreveu: I was wondering if Tapestry automatically prevents a form from being submitted more than once (like when you press the Enter key quickly a few times when you are in a text field)? In my quick test, it seemed that something was providing

Re: Preventing Form Resubmission

2009-09-23 Thread Geoff Callender
Tapestry doesn't. Here's a solution that uses a mixin. The mixin's JavaScript might be similar to yours. http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/creatingmixins1 Cheers, Geoff On 24/09/2009, at 7:34 AM, Thiago H. de Paula Figueiredo wrote: Em Wed, 2

Re: Preventing Form Resubmission

2009-09-23 Thread Benny Law
Thanks Geoff. I can't access this link for some reason, but I'll try again later. Here is my JavaScript (feel free to critique): document.observe("dom:loaded", function() { $$("form").invoke("observe", "submit", function(event) { if (this.submitted) { event.stop();

Not in GZIP format problem

2009-09-23 Thread Ovidiu Hurducas
I've recently migrated an Tapestry 5.0.18 application to Tapestry version 5.1.0.5. I have this form that isn't working anymore http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> I'm using Apache HttpClient 3.1 to POST a multipart form (file upload). And the stack

Re: [T5] Handle post from external application

2009-09-23 Thread thermus
Thiago H. de Paula Figueiredo wrote: > > They're not mutually exclusive. They are just different ways to receive > parameters. Which one to use is all about the URLs. > > Suppose the page that will receive the request is named "process": > > www.example.com/process/parameter1/parameter2/para

Re: T5:how to inject slf4j service?

2009-09-23 Thread cleverpig
it's exactly,you should have a Logger service when tapestry startup.. but if i comment this function in AppModule,i would miss Logger service: public Logger buildLogger(final Logger log){ return log; } After commented,it was only 3 service about logging in service list when app startup: ... L

Re: T5:select component's label doesn't work

2009-09-23 Thread cleverpig
yes,this was my handwriting mistake. but the label doesn't work.. 2009/9/23 Juan E. Maya : > u have a typo. t:label not t:lable :) > > > > 2009/9/23 cleverpig : >> my tapestry's version is Tapestry5.1.05. >> >> i read this from select component manual: >> Component Parameters: >> ... >> label St

Re: T5:tapestry should add a package-level localization feature

2009-09-23 Thread cleverpig
hi,all! thanks for your suggestion from experience! I mean when i develope some page class in the same package,i always meet some same resource message defines for CRUD pages of one POJO.. so i think it's effectual under this dev habit:create a package level property file for this package(pages).

Re: T5:select component's label doesn't work

2009-09-23 Thread cleverpig
i created a issue in JIRA:https://issues.apache.org/jira/browse/TAP5-855 2009/9/24 cleverpig : > yes,this was my handwriting mistake. > but the label doesn't work.. > > 2009/9/23 Juan E. Maya : >> u have a typo. t:label not t:lable :) >> >> >> >> 2009/9/23 cleverpig : >>> my tapestry's version is

Re: T5:tapestry should add a package-level localization feature

2009-09-23 Thread cleverpig
hi,all! the issue i created,here:https://issues.apache.org/jira/browse/TAP5-854 On Thu, Sep 24, 2009 at 9:02 AM, cleverpig wrote: > hi,all! > > thanks for your suggestion from experience! > > I mean when i develope some page class in the same package,i always > meet some same resource message de

Re: T5:select component's label doesn't work

2009-09-23 Thread Thiago H. de Paula Figueiredo
Em Wed, 23 Sep 2009 21:57:36 -0300, cleverpig escreveu: but you can't make this label work in this way: The Select component doesn't generate a label. To do that, use the Label component. Look at the examples given in http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache

Re: [T5] Handle post from external application

2009-09-23 Thread Thiago H. de Paula Figueiredo
Em Wed, 23 Sep 2009 21:08:16 -0300, thermus escreveu: Thiago, Hi! I know this thread is old, but I had a related question. If I submit a form to a response page, what method can be used in the response page to redirect to a URL like your "use both!" example? i.e. How can I append "?par

Re: T5:select component's label doesn't work

2009-09-23 Thread cleverpig
added label before the select component? it's a waste time way... ///:^) On Thu, Sep 24, 2009 at 9:50 AM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 23 Sep 2009 21:57:36 -0300, cleverpig > escreveu: > but you can't make this label work in this way: >>> t:value="selectCat" t:encoder

question

2009-09-23 Thread Gunnar Eketrapp
Hi! I am converting quite a big JSP / Spring-MVC / Hibernate site to T5. I started a week ago and I am quite amazed by T5. It simply has made web hacking fun! Thanks to Howard and all of you that had made this possible. And the question is: I often come across JSP code like ... According t

Re: question

2009-09-23 Thread Kalle Korhonen
On Wed, Sep 23, 2009 at 10:23 PM, Gunnar Eketrapp wrote: > I often come across JSP code like ... > > According to my understanding T5 does not support expressions in the test > parameter. Correct? > Now I am coding a test method in the java class for each such case. Is there > a smarter solution?