Add the following to your AppModule:
public static void
contributeAliasOverrides(Configuration> configuration)
{
SaltSourceService saltSource = new SaltSourceService() {
public Object getSalt(UserDetails user) {
return null;
}
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.
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
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
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
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.
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
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 (
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
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
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
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
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
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
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
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
--
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
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
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
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
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
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
22 matches
Mail list logo