-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: liferay-faces-3.2.5-ga6, liferay-faces-4.2.5-ga6
-
Fix Version/s: alloy-2.0.0, alloy-3.0.0
-
Component/s: Liferay Faces Alloy / Showcase / Tests
-
Labels:None
{markdown}
`alloy:dataTable` depends on `alloy.css` for styling and `alloy.js` for row selection and filtering. However, since `DataTableRenderer` does not declare a `@ResourceDependency` for both `alloy.css` and `alloy.js`, `alloy:dataTable` will not be styled correctly and certain features will not function. These issues are only displayed when `alloy:dataTable` is included on a page without other components which include `alloy.css` and `alloy.js` on the page.
As a *workaround*, `alloy.css` and `alloy.js` can be included where necessary via `alloy:outputScript`:
<alloy:outputScript library="liferay-faces-alloy" name="alloy.css" target="head" />
<alloy:outputScript library="liferay-faces-alloy" name="alloy.js" target="head" />{markdown}
`alloy:dataTable` depends on `alloy.css` for styling and `alloy.js` for row selection and filtering. However, since `DataTableRenderer` does not declare a `@ResourceDependency` for both `alloy.css` and `alloy.js`, `alloy:dataTable` will not be styled correctly and certain features will not function. These issues are only displayed when `alloy:dataTable` is included on a page without other components which include `alloy.css` and `alloy.js` on the page.
As a *workaround*, `alloy.css` and `alloy.js` can be included where necessary via `alloy:outputScript`:
<alloy:outputScript library="liferay-faces-alloy" name="alloy.css" target="head" />
<alloy:outputScript library="liferay-faces-alloy" name="alloy.js" target="head" />{markdown}