DiscardAfter on component level

2011-09-27 Thread mem
Hello, is there the possibility to put the DiscardAfter on a method on component level and only discard the persistent fields of this component and its subcomponents, but *NOT* from the page? I couldn't find any so i wrote a worker for my own annotation @DiscardComponentAfter which can be placed o

tapestry-beanvalidation

2011-10-20 Thread mem
We'd like to use JSR-303 bean validation and mark invalid fields in the UI. The Tapestry beanvalidation module already does quite a good job but has a minor bug when it comes to embedded objects. The problem is that component parameters i.e. the TextField#value is only bound to the attribute itsel

JS and jQuery

2012-03-19 Thread mem
Hello, we're currently reevaluating big parts of our application and are also thinking about switching over to GoT5/jQuery. According to recent blog posts there's something like an JS abstraction layer coming, would it be worth to switch now and adapt as soon as this change has been released or wo

MarkupWriter + HTML (5) Validation

2012-03-22 Thread mem
I'm not quite sure about the issue here as i'm not too familiar with all the standards possibly involved (SGML, HTML X.X, XHTML, ). When i'm using an Action- or EventLink on my page by defining it in the Java class and then referencing it in the tml in the follwing manner: someText Tapestry

Re: MarkupWriter + HTML (5) Validation

2012-03-23 Thread mem
@Steve: Yes, it seems like the same issue to me, the attributes are taken out from the dtd's. @Thiago: Thanks for the response, i've taken a look at those classes and many more while debugging this behavior and investigating where those attributes come from. The model in use is the htmlModel/Def

How to resolve the rendered component in a mixin

2012-07-06 Thread mem
Hello, i'd like to extend some components with the ability to render certain nodes with an additional attribute which is then picked up in JS and used as a keybinding for shortcuts. So far i created a mixin which i preferably would like to put on any kind of component, in case of an EventLink it s

Re: How to resolve the rendered component in a mixin

2012-07-08 Thread mem
@Muhammad: No, not exactly. I'd need a reference not necessarily to the component to which the mixin is applied but rather to all it's rendering subcomponents. Like in the example in my first post the myComponent could contain a zone which again contains i.e. an anchor tag where the var is named ed

Re: How to resolve the rendered component in a mixin

2012-07-09 Thread mem
I'd like to know the variable name of the currently rendered *SUB*component in the afterRender method of my mixin. So when myComponent (which contains i.e. an EventLink component) is rendered i can influence all it's containing subcomponents, my problem is that i don't know which subcomponent is wh

Inheritance and the order of loaded JS

2012-07-12 Thread mem
Hello, i've two Tapestry components where one inherits from the other one. The same dependency exists in their JS which is realized by using the jQuery UI Widget Factory. The problem i have is the order in which the @Import loads the JS, first the JS of the child class, which relies on the availab

Re: Inheritance and the order of loaded JS

2012-07-12 Thread mem
It's not only our own components, we're using GoT5 and wanna extend some components, as they use @Import on the class i can't use placeholder methods. For some of our own components it's worth considering. Generally we've the paradigm to only use @Import except the JS needs to be loaded due to some

Re: Inheritance and the order of loaded JS

2012-07-17 Thread mem
That might be true, we 'solved' the issue by simply using the afterRender in the child class. According to the documentation under:http://tapestry.apache.org/component-rendering.html the following is written: Parents before Child Ordering is always parent-first. Methods defined in the parent clas

Re: Example of overriding the default ValidationDecorator

2012-08-01 Thread mem
Hello, hope this Thread is still alive. I've used a similar approach to figure out if the label is attached to a field which renders a required field. The whole thing is a bit complex as we're using JSR303 annotations on the DTO so i've to get the parameter of the textField and then evaluate the s

Re: Example of overriding the default ValidationDecorator

2012-08-03 Thread mem
That's what i already thought of too, i was just hoping to be wrong. I tried all kinds of different approaches, a mixin can't really work as it should be applied to labels automatically and not manually adding a mixin. Using a worker i would get there but there're issues with the dynamically create