On Wed, May 6, 2015 at 1:35 PM, Martin Grigorov <[email protected]> wrote:
> +1 to introduce IFallback
>
> I don't understand how Optional could help for this use case
Change the onClick signature (perhaps only for Ajax fallback components):
public void onClick(Optional<AjaxRequestTarget> target) {
}
This expresses clearly that target is optional, and hence that a
fallback scenario is possible.
Martijn
>
> On Wed, May 6, 2015 at 12:03 PM, Martijn Dashorst <
> [email protected]> wrote:
>
>> The WicketTester has a click method that doesn't detect all AJAX
>> capable links (e.g. the Ajax links in the AjaxPagingNavigator are not
>> testable).
>>
>> When trying to fix this by adding support for IAjaxLink, I noticed
>> that we also don't support AjaxFallbackButton, and probably a lot more
>> components.
>>
>> Should we introduce a marker interface for fallback components?
>>
>> (or should we wait until Optional support arrives with Java 8 in Wicket 8)
>>
>> Martijn
>>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com