URGENT - Can't display filter fields on dataTable

Post Reply
JeeDev_User
Posts: 83
Joined: 26 Sep 2019, 11:02

29 Dec 2020, 15:15

Hi all,
Strange situation with Rain template, I can't display filter fields above dataTable columns, in usual way, like this:

https://www.primefaces.org/showcase/ui/ ... lter.xhtml

Here is one of my columns :

Code: Select all

      <p:column headerText="Naziv" sortBy="#{app.naziv}" filterBy="#{app.naziv}" filterMatchMode="contains"   style="width:280px">
                      <h:outputText value="#{app.naziv}" />
               </p:column>
At runtime, there is no filter fields above this column. The same happens with all columns on dataTable

When I look at browser Inspector, I can see following snippet:

Code: Select all

<input id="mainForm:mainTabView:_sub_r1:tabB1:j_idt139:filter" name="mainForm:mainTabView:_sub_r1:tabB1:j_idt139:filter" class="ui-column-filter ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" value="" autocomplete="off" aria-labelledby="mainForm:mainTabView:_sub_r1:tabB1:j_idt139:filter_label" style="''" role="textbox" aria-disabled="false" aria-readonly="false">
On above code, pay attention on:
class="ui-column-filter ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all"

And only when I remove at least the ui-column-filter, (or all classes) directly from inspector, the filter field appear, but right to the the column header text.
So, not below, as usual

Looks as clear bug, is not?

JeeDev_User
Posts: 83
Joined: 26 Sep 2019, 11:02

29 Dec 2020, 17:37

It is not bug, I used the crud-demo class, with display: none.
It is ok after removing this class

mert.sincan
Posts: 4638
Joined: 29 Jun 2013, 12:38

06 Jan 2021, 05:05

Thanks a lot for the update.

Best Regards,

Post Reply

Return to “Rain - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest