Hello,
when I use datatable with filter (filterOptions="#{listTasks.projectsForMeOwner}" ), selectbox is not styled in theme. Selectbox is displayed as <h:selectOneMenu, not <p:...
bad style of selectbox in datatable with filter
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
This is an expected behavior. We render a HTML select tag with filterOptions in datatable. For this issue, I think you can use f:facet name="filter" instead of filterOptions.
Exp;
Exp;
Code: Select all
<p:column filterBy="#{car.year}" headerText="Year" filterMatchMode="exact">
<f:facet name="filter">
<p:selectOneMenu onchange="PF('carsTable').filter()" >
<f:selectItem itemLabel="Select One" itemValue="#{null}" noSelectionOption="true" />
<f:selectItems value="#{dtSelectionView.filterOptions}" />
</p:selectOneMenu>
</f:facet>
<h:outputText value="#{car.year}" />
</p:column>
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
I think you need to write a custom JS and override the css.
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests