Re: T4: Change locale from Page

2007-10-25 Thread Joshua Jackson
Thanks very much Alejandro. I will go and try it. Thanks very much :) On 10/25/07, Alejandro Scandroli [EMAIL PROTECTED] wrote: Hi Joshua You can do something like this: public void click(IRequestCycle cycle) { Locale locale = [YOUR LOCALE HERE]

T5: Multiple onPassivate

2007-10-25 Thread Angelo Chen
Hi, I did a test, when a page with a form is displayed, it has one onActivate call but more than 10 onPassivate call in my test case, why? A.C. -- View this message in context: http://www.nabble.com/T5%3A-Multiple-onPassivate-tf4689187.html#a13401834 Sent from the Tapestry - User mailing list

Re: T5: Multiple onPassivate

2007-10-25 Thread Nick Westgate
Depends on what's in your page. onPassivate is called to build the context for a link. Cheers, Nick. Angelo Chen wrote: Hi, I did a test, when a page with a form is displayed, it has one onActivate call but more than 10 onPassivate call in my test case, why? A.C.

[T4] How to get the path a service is encoded to

2007-10-25 Thread Ulrich Stärk
I've got the rounded service encoded to the path /rounded by contributing to the tapestry.url.ServiceEncoder configuration-id. The exact line in my hivemodule.xml is path-encoder id=rounded path=/rounded service=rounded /. I now want to get the path the service is encoded to programmatically in a

T5: form processing and hibernate

2007-10-25 Thread Angelo Chen
Hi, New to this form editing in T5, would like to have some ideas from other gurus in the list:) I observe that when page is displayed first time, onActivate and getters of attribute are called, when form is submitted, onActivate is called again and setters are called as well, onSuccess

Re: [T5] Dispatcher Page possible?

2007-10-25 Thread Christian Gorbach
it's indeed a redirect. so it seems no real serverside page delegation is possible without custom contributions. Stephan Schwab wrote: Christian Gorbach wrote: is it possible to implement a dispatcher/delegate page which is able to forward to another known page class if business logic

How to create a link to a page programmatically?

2007-10-25 Thread nkonstantinou
Hi all, I am trying to create a link to another page through a component. The problem is that i'm trying to achieve this programmatically, from the renderComponent method of the component. I couldnt' figure out so far how to create this in an html page and render it. So the thing is: how to

T5: Select won't retain value when it rejects by the server

2007-10-25 Thread Angelo Chen
Hi, I have a simple form as follows, if it can not pass onValidate, errors were shown, and the value in the 'Name' field was retained, but the 'Gender' will not retain the selected value, always goes back to blank unless I declare gender field @Persist, why? Thanks. t:form t:id=regForm

Re: How to create a link to a page programmatically?

2007-10-25 Thread andyhot
You need to inject the IEngineService that you're intertested in (page or external in your case) and call getLink on it http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/IEngineService.html @InjectObject(engine-service:page) public abstract IEngineService

Re: [T5] Dispatcher Page possible?

2007-10-25 Thread Kristian Marinkovic
if you return a StreamResponse from your action method tapestry will not do a redirect. you can render your page manually and return its result. i once posted some code snippets you might find useful http://www.nabble.com/T5-selective-rendering-tf3815678.html#a10849354 g, kris Christian

Re: [T5] Debugging

2007-10-25 Thread Michael Gerzabek
+1 That's the same impression I have. My skills come from good old Java 1.4 days. These days I was able to solve any problem due to Eclipse and the proper use of the debugger. Walking through a custom written component in T5 is like a day in Alice's world. Magic where ever you look. From

RE: T5: Select won't retain value when it rejects by the server

2007-10-25 Thread Kristian Marinkovic
it is because of the way tapestry handles component requests! if a component fires an action (from a submit or link or...) tapestry will first resolve the action methods and invoke them. after the action methods have been invoked tapestry determines the page the component is located in and

RE: T5: Select won't retain value when it rejects by the server

2007-10-25 Thread Angelo Chen
Hi Kristian, Thanks for the reply, but why this one is retained: input t:type=textfield t:id=name size=40 only this one not: input t:type=select name=gender t:id=gender model=genderModel t:validate=required t:label=gender t:value=gender kristian.marinkovic wrote: it

RE: T5: Select won't retain value when it rejects by the server

2007-10-25 Thread Kristian Marinkovic
hi angelo, the ValidationTracker within the Form component stores field values and error messages if a validation error occurs. this tracker has the @Persist annotation applied and therefore saves the field data with the error messages in the session. the data from the tracker is then used to

Re: T4.1.3 loop index issues, migrating from 4.0.2

2007-10-25 Thread Dom Couldwell
Tried Andy's work around but no joy (stack track below). Have raised another JIRA (http://jira.opensymphony.com/browse/OGNL-131) yell if you need more details. Dom 2007-10-25 09:09:57,763, ERROR, [com.db.rdq.web.tapestry.html.RDQException], line 22, org.apache.tapestry.BindingException

Re: T4.1.3 loop index issues, migrating from 4.0.2

2007-10-25 Thread andyhot
I had a typo in my suggestion - happens with such long expressions I guess ;) I meant selected=ognl:getTab().getSearchCriteriaSelections().get(currentFilterGroupIndex)[currentFilterIndex] Dom Couldwell wrote: Tried Andy's work around but no joy (stack track below). Have raised another

T5: rendering a layout component in code

2007-10-25 Thread Angelo Chen
Hi, I have a layout component that serves as the basic framework of my application, now I'd like to render it in code , example, I'd like to enclose a href=Thanks you, click here to go back in the layout's body and the result can be returned to the browser thru return new

T5: Tapestry-Hibernate Concurrency management

2007-10-25 Thread Angelo Chen
Hi, I hope my question is Tapestry related, in the C/S application we can open a transaction, keep it there until commit, if two users are updating the same record, one transaction will fail and program simply roll back the transaction, easy to handle concurrency issue. in the

Re: [T5] Null fields and BeanEditForm?

2007-10-25 Thread Max Weissboeck
Is there already a solution to this, as I now have the very same problem (a Double value that must be null if the value is empty and not 0 - but if value is empty, an exception is thrown). Btw, I just startet to use T5 and I'm realy blown away! It's amazing how simple most things can be done!

Re: [T5] Dispatcher Page possible?

2007-10-25 Thread Fernando Padilla
So the answer is: No Tapestry does not support that case out of the box yet. http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html You can see there how Tapestry handles different return types, and it doesn't list what you are talking about. Myself, I like to call it

Re: Tapestry 5 Roadmap

2007-10-25 Thread petros
I really need to know the realistic T5 final release. I don't mind if the answer is the end of 2008 but I need to have an answer. I still believe that T5 is the BEST framework out there, but in my case this is not the most important factor. The answer to my question above will assist me to manage

Re: [T5] Debugging

2007-10-25 Thread Ognen Ivanovski
Michael Gerzabek wrote: +1 Walking through a custom written component in T5 is like a day in Alice's world. Magic where ever you look. From user perspective there needs to be a little support in debugging. :) Exactly! -- Ognen Ivanovski | [EMAIL PROTECTED] phone +389 -2- 30 64 532 | fax

Re: Strange problem with OGNL (just happening on our production servers)

2007-10-25 Thread Martino Piccinato
You are right Alejandro, it's the bug you report for this problem. Then I have another problem I've written in another message and still another one having to do with polimorphism: apparently passing a concrete class implementing an interface A to a binding accepting A objects throws a

Auto Refresh

2007-10-25 Thread Tapestry240
hi, I am using Tapestry 4.0.2 and Tacos 4.0.1 I would like to know if there is a way to do auto refresh on some of the components on a page and not the whole page. I want some data to be updated on its own periodically. Any help will be appreciated. Thanks. -- View this message in context:

Restart goes to path /app

2007-10-25 Thread sunilmanu
Hello everyone, When we try to do a logout by doing a RESTART of Service, by default _servletPath goes to /app . What is the way to over-ride this to simply / ? Thanks, Sunil -- View this message in context: http://www.nabble.com/Restart-goes-to-path-%22-app%22-tf4692935.html#a13413701 Sent

Re: Tapestry 5 Roadmap

2007-10-25 Thread Howard Lewis Ship
Unfortunately, I'm going to only be working on Tapestry part time until Q1, when I finally (keep fingers crossed) will be working on Tapestry at least part of the time on salaried, not personal, time. Mentally, I'm deferring a number of things into the followon release, 5.1. When will thing

Re: Tapestry 5 Roadmap

2007-10-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Oct 2007 17:35:15 -0200, Howard Lewis Ship [EMAIL PROTECTED] wrote: Unfortunately, I'm going to only be working on Tapestry part time until Q1, when I finally (keep fingers crossed) will be working on Tapestry at least part of the time on salaried, not personal, time.

T5: How to upgrade from 5.0.5 to 5.0.6

2007-10-25 Thread jblier
This question may look simple for you but I ask it anyway. What are the steps to upgrade a project from 5.0.5 to 5.0.6? Do I just need to modify my web.xml file or the pom.xml file? Yes, I know, once upgraded, I'll have to rename my pages .html files to .tml and move them in webapp. Thanks in

Tapestry and Eclipse WTP, Geronimo/Jetty (this time...)

2007-10-25 Thread Jan Vissers
Having a real hard time trying out Tapestry 5, using some different configuration as is mentioned on the website. Anyone having some experience with the above mentioned combo? Thx. - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: T5: How to upgrade from 5.0.5 to 5.0.6

2007-10-25 Thread Mike_R
Hi, What I had to do: - change tapestry version in pom.xml from 5.0.5 to 5.0.6 - rename all pages and components to tml - move pages (not components) to context root (the dir below WEB-INF) - delete all Inject annotation import statements and let eclipse import the new Inject - upgrade log4j to

Re: T5: How to upgrade from 5.0.5 to 5.0.6

2007-10-25 Thread jblier
Hi Mike! Before your message I tried all your steps. When starting the application in my browser, it did not find the root /myapp and gave a 404 error. Although all my files were moved and renamed *.tml, all inject annotations redone, etc. By telling Maven to update the source folder, now I

Re: T5: How to upgrade from 5.0.5 to 5.0.6

2007-10-25 Thread Lindsay Steele
Maybe just change the line in appmodule to: public RequestFilter buildTimingFilter(final Logger log) and then add the import import org.slf4j.Logger; Personally I just downloaded a quick new quickstart archetype and copied the new AppModule.java accross. jblier wrote: Hi Mike!

Re: T5 / Spring / Hibernate Lazy Loading

2007-10-25 Thread trekmbikes
I solved this problem by changing from an OpenSessionInViewInterceptor to an OpenSessionInViewFilter. There is negligible performance impact because the filter doesn't open a DB connection unless it needs to, as pointed out elsewhere in this post. -- View this message in context:

Re: T5: Multiple onPassivate

2007-10-25 Thread Howard Lewis Ship
Tapestry doesn't cache the value, so every link (one for the form, plus one for each PageLink or ActionLink component that renders) will re-invoke onPassivate(). On 10/25/07, Nick Westgate [EMAIL PROTECTED] wrote: Depends on what's in your page. onPassivate is called to build the context for

RE: T5 user servlet mapped to extension *.spr gets rejected as invalid component

2007-10-25 Thread trekmbikes
Bingo - worked like a charm. IMO this should be core functionality in Tapestry; it is part of the Servlet spec after all. My web.xml contains: -- context-param param-nametapestry.app-package/param-name

T5: Doc for ComponentResources

2007-10-25 Thread Angelo Chen
Hi, Where can I find documentation on ComponentResources? Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-Doc-for-ComponentResources-tf4694900.html#a13420092 Sent from the Tapestry - User mailing list archive at Nabble.com.

T5 5.0.6 and the @Inject for spring beans

2007-10-25 Thread Stephan Schwab
Hi! Tonight I upgraded a project, which uses heavily Spring beans, to Tapestry 5.0.6. Dutifully I updated the imports to the now one and only @Inject from Tapestry IoC. But ... NPEs are now showing up all over the place, because somehow the Spring beans don't get inject anymore. Has something

Re: Tapestry 5 Roadmap

2007-10-25 Thread petros
Thanks for this Howard. Following from your reply I believe is reasonably safe to assume that the final release of T5 will be no later than March or April 2008. Thanks again for your prompt reply Petros Howard Lewis Ship wrote: Unfortunately, I'm going to only be working on Tapestry part