Skip to content

Commit

Permalink
#794 move the id to the outer div again in order to support AJAX
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Jul 12, 2017
1 parent 6f170f6 commit b91bc18
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,17 @@ public void encodeBegin(FacesContext context, UIComponent component) throws IOEx

rw.startElement("div", dataTable);
rw.writeAttribute("style", "overflow-x:auto;white-space:nowrap;overflow-y:hidden;", null);
rw.writeAttribute("id", clientId, "id");
idHasBeenRendered=true;

String responsiveStyle = Responsive.getResponsiveStyleClass(dataTable, false);
if (null != responsiveStyle && responsiveStyle.trim().length() > 0) {
rw.startElement("div", dataTable);
rw.writeAttribute("class", responsiveStyle.trim(), null);
rw.writeAttribute("id", clientId, "id");
idHasBeenRendered=true;
if (!idHasBeenRendered) {
rw.writeAttribute("id", clientId, "id");
idHasBeenRendered=true;
}
}

if (dataTable.isContentDisabled()) {
Expand Down

0 comments on commit b91bc18

Please sign in to comment.