Re: [T5] Javascript links rendered on bottom of page?

2008-04-25 Thread Harald Geritzer
hi chris, after having a second look at your code i think you don't even need the replacement at all as the new version uses the replaceTextArea() instead of assigning the text via javascript. in writeScript() the replacement of \r,' occurs but _value is written out before in afterRender()

Re: [T5] - 5.0.11 - Componente é Datefield não formato para dd/mm/yyyy?

2008-04-25 Thread Filip S. Adamsen
Hi, The DateField component was changed due to a license incompatibility issue and the new one currently isn't as flexible as the old one. -Filip On 2008-04-25 02:19, Estevam Henrique Portela Mota e Silva wrote: Hi, Do I need to format dd / mm / is standard in Brazil but not worked.

Re: where does onActivate method's pramameter come from?

2008-04-25 Thread Filip S. Adamsen
Hi, Please see http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html. -Filip On 2008-04-25 04:08, luna_guo wrote: i have the following code: int onPassivate(){ System.out.println(passivate is running); return 3; }

Re: [T5] component is not Datefield format for dd / mm / yyyy?

2008-04-25 Thread Davor Hrg
because of licensing issues, tapestrz has fallen back to a calendar with less features Davor Hrg On Fri, Apr 25, 2008 at 2:21 AM, Estevam Henrique Portela Mota e Silva [EMAIL PROTECTED] wrote: Hi, Do I need to format dd / mm / is standard in Brazil but not worked. Only worked 5.0.9

Re: [T5] Javascript links rendered on bottom of page?

2008-04-25 Thread Chris Lewis
Harald, I'm honestly not clear on what the initial issue with that was (I'm not the original author), but it may have had to do with the fact that the component wrote out script code directly using the MarkupWriter instead of PageRenderSupport. It was originally written for a much earlier version

Re: T5: accessing another page/component's message catalog

2008-04-25 Thread Adam Zimowski
Thanks Waldo! This solves my problem exactly how I needed to attack it. The little extra code doesn't bother me, it's just how it's done. I simply didn't know enough about Tapestry, specifically ComponentMessagesSource and ComponentSource interfaces! Thanks again, this rocks. On Thu, Apr 24,

T5: ComponentSource throws undeclared exception

2008-04-25 Thread Adam Zimowski
I'm not sure if this is a bug or simply missed javadoc within ComponentSource interface, but as stated: public interface ComponentSource { /** * Gets a component by its complete id. * * @param componentId complete component id * @return the component * @throws

Re: [T5] component is not Datefield format for dd / mm / yyyy?

2008-04-25 Thread Tomasz Dziurko
Is there any way of using old calendar or (better) is there any component similar to this one but with more features (localisation, data formatting, etc.)? Regards -- Tomasz Dziurko - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: T5: T5 and EJB3

2008-04-25 Thread CG
Hi Geoff, I am not able to build the t5-jumpstart, the get-dependency target stop at http://213.160.23.119:8080/t5components/maven-repository/org/apache/tapestry/t5c-commons/0.5.11/t5c-commons-0.5.11.jar Any help ? CG On Thu, Apr 24, 2008 at 10:37 PM, Geoff Callender [EMAIL PROTECTED] wrote:

Re: 答复: Strange return for grid component

2008-04-25 Thread Marcelo Lotif
This looks like an ArrayOutOfBoundsException, but without the stack trace we cannot see where is the error... try to set the production mode to false adding the line below to the contributeApplicationDefaults() method in your AppModule, and then paste the error page here.

Re: T5: T5 and EJB3

2008-04-25 Thread Sven Homburg
server address has changed to 87.193.218.134 2008/4/25, CG [EMAIL PROTECTED]: Hi Geoff, I am not able to build the t5-jumpstart, the get-dependency target stop at http://213.160.23.119:8080/t5components/maven-repository/org/apache/tapestry/t5c-commons/0.5.11/t5c-commons-0.5.11.jar Any

Re: [T5] component is not Datefield format for dd / mm / yyyy?

2008-04-25 Thread Marcelo Lotif
There is an issue regarding this https://issues.apache.org/jira/browse/TAPESTRY-2304 let's vote and pray to get this resolved soon! =) 2008/4/25 Tomasz Dziurko [EMAIL PROTECTED]: Is there any way of using old calendar or (better) is there any component similar to this one but with more

T5 - how to have every request have one jpa 'session'

2008-04-25 Thread Jan Vissers
Hi, We're about to use JPA in our T5 application. Does someone have some good pointers for us how to introduce 'session-per-request' functionality for that combo. Basically what I want is to introduce a fresh EntityManager at the start of T5's request and commit (or rollback) at the end of it.

Re: T5 - how to have every request have one jpa 'session'

2008-04-25 Thread Chris Lewis
Jan, The tapestry-hibernate module does exactly that: http://tapestry.apache.org/tapestry5/tapestry-hibernate/index.html Even if you don't use that module (or even hibernate), the source will show you everything you need. chris Jan Vissers wrote: Hi, We're about to use JPA in our T5

Use of Servlet spec declarative security and a login page not using the j_security_check form action

2008-04-25 Thread THIEBAUD Patrice
The Wiki includes three very interesting articles describing how to create an AccessController dispatcher whith Tapestry 5. For authentication and access control aspects, we rather consider in using : the Servlet spec declarative security an application login page not using the j_security_check

Re: [T5] component is not Datefield format for dd / mm / yyyy?

2008-04-25 Thread Geoff Callender
And https://issues.apache.org/jira/browse/TAPESTRY-2198 On 25/04/2008, at 10:35 PM, Marcelo Lotif wrote: There is an issue regarding this https://issues.apache.org/jira/browse/TAPESTRY-2304 let's vote and pray to get this resolved soon! =) 2008/4/25 Tomasz Dziurko [EMAIL PROTECTED]: Is

Re: T5: Select component + onchange()

2008-04-25 Thread Geoff Callender
It seems to me that Zones would make it very simple. Perhaps you would like to vote for this issue: Add Zone parameter to Select component https://issues.apache.org/jira/browse/TAPESTRY-2361 Cheers, Geoff http://files.doublenegative.com.au/jumpstart/ On 25/04/2008, at 12:04

Re: T5: Select component + onchange()

2008-04-25 Thread Marcelo Lotif
hmmm, I thought about it earlier, but i did not search for a JIRA... this would be really nice! and nice piece of code Sven, I'll try to get this working and take off the workaround with submit... 2008/4/25 Geoff Callender [EMAIL PROTECTED]: It seems to me that Zones would make it very simple.

accessing core services

2008-04-25 Thread János Jarecsni
Hi, sorry for the newbie question again, but what is the canonic or suggested way to access core services or facilities of the T5? I mean, from classes, into which nothing gets injected (say, I'm writing a dispatcher, where I'd like to resolve page names, component names). I'd like to have a

Re: accessing core services

2008-04-25 Thread Peter Beshai
You define your dispatcher as a service (with a build method) in your IoC module and pass the services that you need injected into the constructor. See: http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html Peter Beshai On Fri, Apr 25, 2008 at 1:49 PM, János Jarecsni [EMAIL PROTECTED]

Re: accessing core services

2008-04-25 Thread Sven Homburg
i hope it helps you: put this code into your ApplicationModule public static buildMyDispachter(ComponentClassResolver resolver) { return MyDispatcher(resolver); } 2008/4/25, János Jarecsni [EMAIL PROTECTED]: Hi, sorry for the newbie question again, but what is the canonic or suggested

Re: accessing core services

2008-04-25 Thread János Jarecsni
Hi, thx for the quick replies first of all, here is how I'm doing it now: public void contributeMasterDispatcher(OrderedConfigurationDispatcher configuration, @InjectService(MyDispatcher) Dispatcher myDispatcher) { configuration.add(MyDispatcher, myDispatcher,

T5 Running Jetty, log4j jar, FAQ

2008-04-25 Thread Kevin C. Dorff
I've been using Netbeans but I'm now trying to run T5 out of IntelliJ IDEA 7.0.3. I decided to try to use the Jetty, ie, jetty:run-war from mavel - the target that Tapestry provides. When I do this I get java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled when I try to run my

Re: accessing core services

2008-04-25 Thread Chris Lewis
Yeah that looks ok (at a glance). These wikis should help you: http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2 http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess They relate directly to what it seems like

Re: t5.0.11 help in update my own components

2008-04-25 Thread Marcelo Lotif
Take a look at http://www.nabble.com/T5%3A-Select-component-%2B-onchange%28%29-to16876151.html 2008/4/24 孟凡振 [EMAIL PROTECTED]: Thank u for ur warm answer,your suggestion give me some idea indeed. but I want to code something special. first, a select(A) is rendered for ready,when a onchange

T5: How can I initialize a logged-in user ASO from tapestry5-acegi?

2008-04-25 Thread Franz Amador
I'm using tapestry5-acegi for authentication. I'd like to use @ApplicationState to make the logged-in user object accessible in my pages, e.g. @ApplicationState private User user; Somewhere, however, I must initialize my ASO variable when the user logs in. Where can I do this? The only place

Creating components - best practices

2008-04-25 Thread Jan Vissers
Hi, I've been migrating some of my T4 components to T5, but now - also triggered by some useful feedback on this mailing list - are wondering whether I've been using the right approach. Let me start by saying that my components are fairly simple, the visible part is all made up from .tml (no

Re: T5: ajax component ids with namespaces

2008-04-25 Thread buckofive
After fiddling with protoype the $$ coupled with the !^ selector seems to work. I'm including some custom helper code to accomplish getting an element by id without regard to the tapestry id namespace. If this is/was obvious or there is better solution, I apologize but hopefully this will be

T5: Getting Request Info

2008-04-25 Thread Joshua Jackson
Dear all, There is a generic Request component in T5, but it hasn't got some method in HttpServletRequest such as: getRemoteUser() . I wanted to get the user that access the apps. How do I do this in T5? Could anyone give me an insights on this? Thanks in advance -- Let's show the world what

Re: T5: Getting Request Info

2008-04-25 Thread Joshua Jackson
Never mind, I made a workaround as such: @Inject private RequestGlobals requestGlobals; private HttpServletRequest request = requestGlobals.getHTTPServletRequest(); Cheers, On 4/26/08, Joshua Jackson [EMAIL PROTECTED] wrote: Dear all, There is a generic Request component in T5, but

Re: T5: Getting Request Info

2008-04-25 Thread Howard Lewis Ship
You can also just inject the HttpServletRequest. It is a shadow of the request in the RequestGlobals object. On Fri, Apr 25, 2008 at 8:10 PM, Joshua Jackson [EMAIL PROTECTED] wrote: Never mind, I made a workaround as such: @Inject private RequestGlobals requestGlobals; private

RE: T5: How can I initialize a logged-in user ASO from tapestry5-acegi?

2008-04-25 Thread Jonathan Barker
There was a thread a month or so ago that I participated in that covered doing authentication within a login page class. Take a look at: http://thread.gmane.org/gmane.comp.java.tapestry.user/59931/ There was an important part cut off from the code I posted that wound up in another thread:

Re: T5: Getting Request Info

2008-04-25 Thread Joshua Jackson
On 4/26/08, Howard Lewis Ship [EMAIL PROTECTED] wrote: You can also just inject the HttpServletRequest. It is a shadow of the request in the RequestGlobals object. Wow I didn't know that :) Great. Thanks Howard. -- Let's show the world what we've got. Blog: http://joshuajava.wordpress.com/

T5: Display Zone after form Submission?

2008-04-25 Thread Joshua Jackson
Dear all, Is it possible to display a zone after form submission? How do I do this? Or does zone only applicable for link? Thanks in advance -- Let's show the world what we've got. Blog: http://joshuajava.wordpress.com/ - To