Component.getAjaxRegionMarkupId loops over all behaviors even if markupId is
found
----------------------------------------------------------------------------------
Key: WICKET-3708
URL: https://issues.apache.org/jira/browse/WICKET-3708
Project: Wicket
Issue Type: Improvement
Components: wicket-core
Affects Versions: 1.5-RC4
Environment: all
Reporter: Richard Emberson
Priority: Trivial
In the Component getAjaxRegionMarkupId consider changing:
for (Behavior behavior : getBehaviors())
{
if (behavior instanceof IAjaxRegionMarkupIdProvider)
{
markupId =
((IAjaxRegionMarkupIdProvider)behavior).getAjaxRegionMarkupId(this);
}
}
to
for (Behavior behavior : getBehaviors())
{
if (behavior instanceof IAjaxRegionMarkupIdProvider)
{
markupId =
((IAjaxRegionMarkupIdProvider)behavior).getAjaxRegionMarkupId(this);
break;
}
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira