Skip to content

Commit

Permalink
data attribute was ignored for tables which made it quite impossible …
Browse files Browse the repository at this point in the history
…to find something there (in easy way). this should fix it. maybe now it will be too chatty, let's see.
  • Loading branch information
katkav committed Sep 9, 2022
1 parent 5da8d27 commit 6db8f76
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.apache.wicket.Page;
import org.apache.wicket.application.IComponentInitializationListener;
import org.apache.wicket.behavior.Behavior;
import org.apache.wicket.markup.html.border.Border;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.PropertyModel;
import org.apache.wicket.model.StringResourceModel;
Expand Down Expand Up @@ -57,7 +58,7 @@ private void handleId(Component component) {
}

private void writeDataAttribute(Component component, String key, String value) {
if (!component.getRenderBodyOnly()) {
if (!component.getRenderBodyOnly() && !(component.getParent() instanceof Border.BorderBodyContainer)) {
component.add(AttributeModifier.append(ATTR_DATA_PREFIX + key, value));
return;
}
Expand Down

0 comments on commit 6db8f76

Please sign in to comment.