Re: How to set minLength validation value dynamically?

2012-02-01 Thread Yohan Yudanara
I've found the solution :) On template file: On page class: @InjectComponent private TextField fname; @Inject private FieldValidatorSource source; public FieldValidator getFieldValidator() { FieldValidator fv = source.createValidators(fname, "required, minLength=5");

Re: URL Rewriting

2012-02-01 Thread Jochen Frey
So I dug through the source code, and the custom link transformation is spliced in by way of an interceptor pattern (in TapestryModule): @Match("ComponentEventLinkEncoder") public ComponentEventLinkEncoder decorateLinkTransformer(LinkTransformer linkTransformer,

Re: How to automatically add mixins to all

2012-02-01 Thread Yohan Yudanara
Thank you very much, Taha and Dragan. You make me save a lot of time... On Wed, Feb 1, 2012 at 5:14 PM, Dragan Sahpaski wrote: > Hi, > There is one more solution to your problem. I'm not saying it's better than > Taha's on the contrary I recommend Taha's approach, this solution is more > of a ha

Re: session scoped services

2012-02-01 Thread Thiago H. de Paula Figueiredo
Hi! On Wed, 01 Feb 2012 21:30:33 -0200, John Bush wrote: then you need to use a builder method approach for ioc, b/c the autobinding is not aware of session scoped items, only proper services, at least that what I've seen in practice. Actually, you can defined the scope of an autobound servi

session scoped services

2012-02-01 Thread John Bush
I have a project where I need some services session scoped, not singletons or perthread. The reason is that I have some web services I use that need some session state for initialization. While the perthread approach works just fine, I don't want to be initializing that stuff with every request.

Re: Component that lowercases the first letter of the body

2012-02-01 Thread Tim
Thanks Chris. I knew about the css text-transform, but not about "first-letter". I think this will work nicely. -- Tim On 01/02/2012 4:18 PM, Chris Mylonas wrote: couldn't you do it in CSS? https://drupal.org/node/222543#comment-732983 "...first-letter css pseudo-element instead" On 02/0

Re: Component that lowercases the first letter of the body

2012-02-01 Thread Chris Mylonas
couldn't you do it in CSS? https://drupal.org/node/222543#comment-732983 "...first-letter css pseudo-element instead" On 02/02/2012, at 9:13 AM, Tim wrote: > I've been looking at making a component that can convert the first letter of > its body to lower case. > > I suspect I might need to pr

Component that lowercases the first letter of the body

2012-02-01 Thread Tim
I've been looking at making a component that can convert the first letter of its body to lower case. I suspect I might need to provide a beforeRenderBody or afterRenderBody method with a MarkupWriter. I can write with the MarkupWriter, but how do I actually get the body so I can do the transf

Re: Problem with securing ajax enabled Tapestry pages with Annotations ...

2012-02-01 Thread Gunnar Eketrapp
Thanks Kalle! That solved my ajax securing problem. /Gunnar Den tisdagen den 17:e januari 2012 skrev Kalle Korhonen< kalle.o.korho...@gmail.com>: > On Thu, Aug 25, 2011 at 1:08 AM, Gunnar Eketrapp > wrote: >> I still havn't managde to get ajax calls to redirect. >> I changed to reload as a I sa

Re: How easy is this to do?

2012-02-01 Thread Robert Zeigler
Need a bit more info: do you know how to render an individual item? That is, is this component supposed to generically render any type of item? In any event, here's a quick sketch of how to go about what you want (untested code :), assuming you want to easily override the default rendering... M

Re: How easy is this to do?

2012-02-01 Thread Thiago H. de Paula Figueiredo
On Wed, 01 Feb 2012 16:28:05 -0200, Tim wrote: How easy is this to do? I want a component that displays, with attractive html such as in a border or something, a group of items. I'm thinking each item should be a component itself, but correct me if I'm wrong there. If there are more th

How easy is this to do?

2012-02-01 Thread Tim
How easy is this to do? I want a component that displays, with attractive html such as in a border or something, a group of items. I'm thinking each item should be a component itself, but correct me if I'm wrong there. If there are more than one item to be rendered, the main component should

Re: @SetupRender not called

2012-02-01 Thread Denis Stepanov
It's probably the same issue as https://issues.apache.org/jira/browse/TAP5-1752 Denis Feb 1, 2012 v 5:12 PM, Howard Lewis Ship: > Going to need a lot more data, including the exact production platform > (OS, JDK, app server, etc.) and maybe some code samples. If I can't > reproduce it, I can't

Re: @SetupRender not called

2012-02-01 Thread Howard Lewis Ship
Going to need a lot more data, including the exact production platform (OS, JDK, app server, etc.) and maybe some code samples. If I can't reproduce it, I can't fix it! On Wed, Feb 1, 2012 at 7:52 AM, Emmanuel DEMEY wrote: > Hi everyone > > I get the same issue yesterday, and I spent a lot of ti

Re: @SetupRender not called

2012-02-01 Thread Emmanuel DEMEY
Hi everyone I get the same issue yesterday, and I spent a lot of time to find the problem. I forgot about this existing post. Howard : Did you find something to avoid this issue ? It will be interesting to add this issue into the release note of the 5.3 release ? in the breaking changes part ? W

Re: scripts in head affect placement of imported scripts in tapestry 5.3

2012-02-01 Thread Howard Lewis Ship
Please check the release notes; this was an intentional change, since some browsers (IE) are overly sensitive to the order of tags inside . However, it does seem odd here that the CSS is placed after the

Re: Display textfield dynamically

2012-02-01 Thread Thiago H. de Paula Figueiredo
On Wed, 01 Feb 2012 08:24:56 -0200, Markus Grell wrote: Greetings! Hi! I have a form that display a select list. This list is filled with data from a database query. Now I would like following behaviour but have no clue on how to implement that: I would like to add the option "Other" to

RE: Display textfield dynamically

2012-02-01 Thread WINDEY Pieter AWL-IT
Have a look at http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/select1 -Original Message- From: Markus Grell [mailto:tapes...@military.de] Sent: Wednesday 1 February 2012 11:25 To: users@tapestry.apache.org Subject: Display textfield dynamically Greetings! I have a form

Display textfield dynamically

2012-02-01 Thread Markus Grell
Greetings! I have a form that display a select list. This list is filled with data from a database query. Now I would like following behaviour but have no clue on how to implement that: I would like to add the option "Other" to the select list. A soon as this option is choosen (without submitting

Re: How to automatically add mixins to all

2012-02-01 Thread Dragan Sahpaski
Hi, There is one more solution to your problem. I'm not saying it's better than Taha's on the contrary I recommend Taha's approach, this solution is more of a hack but it works and I have used it. Here it is. Just create a component in your app with the same name: Submit. public class Submit ext

Re: [T5.3 beta 2] Using Tapestry-Spring-Security with 5.3?

2012-02-01 Thread Florian Parain
Hi, First of all, thanks a lot for your update. Replacing TransformerWorker by PlasticClass might have been painful. I'm currently using Tapestry 5.3.2 and Spring 3.1.0. Still, there are two issues left. First, in the SpringSecurityWorker class, PlasticClassImpl is now lockable and so cannot be