coming somehow late into the discussion:
I implemented a threaded state model and defined a validation delegate
ASO with this model - it works like a charm...
+ an interface with the accessor to the service and the inject
annotation, and all I have to do is add
implements InjValidationDeleg
Hehehe, I think I'm going to abuse the poor workers. They're awesome.
Expect some questions in the list as I overload the Tapestry engine.
j/k, but I think that if the solution is more transparent, it's better.
Try the workers solution, I think it's easier that extending an
interface, and it s
Nice!
And i see you really like EnhancmentWorkers :)
Regarding the initial question, i think there's a very nice solution
for (2).
Define an interface, ValidationDelegateAware or something like this:
{
@Bean
ValidationDelegate getValidationDelegate();
void setValidationDelegate(ValidationD
Yes.
For now, I used an EnhacementWorker, like this:
class="com.dtqsoftware.utils.web.enhance.FormDelegateEnhancementWorker">
And in FormDelegateEnhancementWorker:
if (AjaxForm.class.isAssignableFrom(op.getBaseClass())) {
if(spec.g
Ok This is an incredibly simple problem to solve. Can you outline
exactly what type of requirements you have?
Ie do you just want to be able to globally set a default ValidationDelegate?
Is that all?
On 3/22/06, Leonardo Quijano Vincenzi <[EMAIL PROTECTED]> wrote:
>
> Ok let's see. I have an
Ok let's see. I have an @AjaxForm. I'd like to do something like this:
Now, bean:some is not on the page JWC. You're saying I can access a bean
definition directly from Hivemind without:
1) Declaring a bean in the ".page" file.
2) Declaring a bean in the java class.
3) Sharing an instantiate
But that's my point. You don't need to define them in JWC / Page files. The
fact that it's allowed at all seems like just a convenience. If I were
designing for future abilities I would put the defs in my hivemind config.
On 3/22/06, Leonardo Quijano Vincenzi <[EMAIL PROTECTED]> wrote:
>
> I'm tal
I'm talking about bean definitions in JWC / Page files.
--
Ing. Leonardo Quijano Vincenzi
DTQ Software
Jesse Kuhnert wrote:
Isn't that what hivemind is? Maybe I'm wrong..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Isn't that what hivemind is? Maybe I'm wrong..
On 3/22/06, Leonardo Quijano Vincenzi <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> For some types of beans (for example ValidationDelegates), the same bean
> definition would be used on all of the application pages. In this case,
> for example, I'd like to