Re: Tapestry-Spring-Security Exception when using PlainText Encoder

2009-01-29 Thread Ulrich Stärk
Add the following to your AppModule: public static void contributeAliasOverrides(Configuration> configuration) { SaltSourceService saltSource = new SaltSourceService() { public Object getSalt(UserDetails user) { return null; }

Re: T5: timeout exception when using Grid

2009-01-29 Thread tapestryphoto
Further investigation reveals this is happening due to the page timing out and being returned to the pool by the timeout specified by the configuration option: tapestry.page-pool.active-window (which defaults to 10 minutes) So it would appear that it's being reset when returned to the pool.

XHTML and form element name attribute

2009-01-29 Thread Ian Fieldhouse
When using a form component in my template with the following markup the rendered html includes a 'name' attribute for the form element. I'm trying to author my pages in 'XHTML Strict' (having included the relevant DOCTYPE in my page template) so the name attribute is not valid. I read on

Re: T5: timeout exception when using Grid - Solved, but query

2009-01-29 Thread tapestryphoto
My grid data required a model. In copying this in from an example I had: @SuppressWarnings("unchecked") @Property @Retain private BeanModel _myModel; The key here is @Retain. This works fine until there is a timeout (default 10 mins) and the page is returned to the po

How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Dude.Checkitout
We have a requirement of tml file being delivered without as the root context. As I read the tapestry source, this validation is done in the DocumentLinker. In contributeMarkupRenderer method: MarkupRendererFilter documentLinker = new MarkupRendererFilter() { public v

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Fernando Padilla
I have lots of experience playing with that :) (since we publish to html, fbml). Here are some questions: 1) do your documents have a root node? what is it? 2) do you want to change the behavior of how it includes javascript and css? Or just have it work with non-html root nodes? Dude.

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Dude.Checkitout
Thank you for the quick reply. We are using tapestry to generate a section of a html page. We can enforce the requirement of having an root node. Basically, the requirement will be to accept the root node to be anything. (not only html) I created my own CustomDocumentLinker extending from the ta

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Fernando Padilla
Ok cool. with the latest version of tapestry (5.1.0.0-SNAPSHOT), they did add a proper way to override contributions. Below is the code we're using for us to override our DocumentLinker. Please be aware that the override works, but it seems to trash all of the previous relative directives (

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Thiago H. de Paula Figueiredo
Em Thu, 29 Jan 2009 14:42:47 -0300, Dude.Checkitout escreveu: I created my own CustomDocumentLinker extending from the tapestry DocumentLinker and modified the code to fit our needs. But I have no idea how to make Tapestry to use CustomerDocumentLinker instead of its own DocumentLinker. Con

RE: T5: Problem with a loop in a form

2009-01-29 Thread Blower, Andy
No idea why that template code got mangled, here's another try. (grumble...MS outlook...grumble) I have a loop in a form like this: ${message:additionalLimits} ; ${fieldLimiterName} ${fieldLimiterValues} > Which is just to display a label for a checkbox corr

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Dude.Checkitout
I am using 5.0.18 version and not ready to move to 5.1 yet. Is there any way to override the DocumentLinker in the 5.0.18 version? Fernando Padilla wrote: > > Ok cool. > > with the latest version of tapestry (5.1.0.0-SNAPSHOT), they did add a > proper way to override contributions. Below is

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Fernando Padilla
No. DocumentLinker would be run first ( deeper in the markup filter chain ), it would be the only one that RenderSupport would bind to ( RenderSupport does a environment.peekRequired ). So only that DocumentLinker would do it's stuff. and the default DocumentLinker throws an exception if the

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Fernando Padilla
To be honest, I can't remember exactly when the override came into play ( so it might be worth double checking with eclipse, though I'm pretty sure it's 5.1.0.0 ). The other option is to place your DocumentLinker in between the default DocumentLinker and RenderSupport. Maybe try this: confi

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Thiago H. de Paula Figueiredo
Em Thu, 29 Jan 2009 15:14:40 -0300, Fernando Padilla escreveu: No. DocumentLinker would be run first ( deeper in the markup filter chain ), it would be the only one that RenderSupport would bind to ( RenderSupport does a environment.peekRequired ). So only that DocumentLinker would do

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Dude.Checkitout
Posted the earlier question before reading your post. Here is the code in my AppModule: public void contributeMarkupRenderer(OrderedConfiguration configuration, @Symbol(SymbolConstants.PRODUCTION_MODE) final boolean productionMode, @Symbol(SymbolConstants

Re: T5: Problem with a loop in a form

2009-01-29 Thread Thiago H. de Paula Figueiredo
I don't have an answer for your question, but you are using a Loop to build a String. Wouldn't a method in your a page or component be a better suit? -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago --

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Dude.Checkitout
Fernando fix did the trick. configuration.add( "CustomDocumentLinker", mydoclinker, "after:DocumentLinker,before:RenderSupport" ); Thanks a lot! I am missing the "override" option in 5.0.18! Fernando Padilla wrote: > > To be honest, I can't remember exactly when the override came into p

Re: How to override Tapestry's DocumentLinker ?

2009-01-29 Thread Fernando Padilla
yah, this is little confusing, since it will place the CustomLinker first in the list of filters.. :) But they "execute" as they come out of the list.. :) CustomLinker -> DocumentLinker -> RenderSupport -> PAGERENDER So as the page render unfurls, it gives control to RenderSupport to modify

Dynamic Variables in Asset declarations

2009-01-29 Thread Dave Greggory
Hello, I'm trying to declare an asset but with a dynamic variable used for declaration. I need a dynamic variable (similar to an expansion in a tml) because the css is selected based on some user selected parameters from the request. E.g. @Inject @Path("${myCssRoot}/style.css") private

Re: T5 : validation of radiogroup fields

2009-01-29 Thread Stephane Decleire
Am i the only one to have such a need ??? A radiogroup is quite the same thing (except for the graphical representation) as a select box (without multiple choice activated). So i think that he should have the same validate attribute as the select box and copy its behavior : if the radio group field

Re: T5 : validation of radiogroup fields

2009-01-29 Thread Geoff Callender
I would like to be able to use the Required validator without a default. Geoff On 30/01/2009, at 8:52 AM, Stephane Decleire wrote: Am i the only one to have such a need ??? A radiogroup is quite the same thing (except for the graphical representation) as a select box (without multiple choice a

Re: T5: timeout exception when using Grid - Solved, but query

2009-01-29 Thread Ville Virtanen
This is what we use, and it works well: @Retain private BeanModel model; { model = beanModelSource.createEditModel(Organization.class, messages); model.add("organizationType"); model.add("parentOrganization"); } public BeanModel getModel() { return mode