No big ideas here, I am afraid.

For me it seems logical to just call both behaviors sequentially from 
the Wicket servlet/filter and combine the results (where the only 
results I know are things added to the AjaxRequestTarget). But the inner 
workings of Wicket are mostly terra incognita for me so I probably miss 
something. Perhaps we'll need to do 2 Ajax calls from the browser. But I 
suspect that everything I wrote here was already written in Igor's 
previous mails.

In my case one of the behaviors does some form validation and adds a 
feedback panel to the AjaxRequestTarget, the other behavior adds another 
div to the AjaxRequestTarget. These are easy to combine.

     Erik.


Eelco Hillenius wrote:
> Ok, so that wouldn't solve anything. Recognizing you're trying to
> overwrite an attribute that was previously written by another behavior
> might help in at least figuring out that there is a problem. Though
> otoh, I don't think it's gonna be a big saver.
>
> Any other ideas?
>
> Eelco
>
>
> On 1/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>   
>> problem with appending, etc, is that in my experience most behaviors will
>> have a return statement for every path, so appending will pretty much be a
>> noop
>>
>> -igor
>>
>>
>> On 1/15/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>>     
>>> Yeah, that is a bit dangerous. Currently, we don't do much to check
>>> whether behaviors overwrite each other. We probably could if we think
>>> up another interface that cooperates with IBehavior. And maybe we can
>>> combine that with a convenience class a la AppendingBehavior, it would
>>> make things easier than in the current situation. But that's about how
>>> far we should go imho.
>>>
>>> Eelco
>>>       

-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to