Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datatable selected-items and selectionMode dont work #1068

Closed
gen0v opened this issue Mar 6, 2019 · 6 comments
Closed

Datatable selected-items and selectionMode dont work #1068

gen0v opened this issue Mar 6, 2019 · 6 comments
Labels
dataTable Issues with the main Topic dataTable wontfix
Milestone

Comments

@gen0v
Copy link

gen0v commented Mar 6, 2019

Hello,
i have the problem that if i add these options to my datatable nothing changes.
Even if i delete the option select="true" i can still select multiple rows.

I wanted to be able to select one cell, but like i said no of this options work and i dont seem to find a solution.

@gen0v
Copy link
Author

gen0v commented Mar 6, 2019

                      <b:dataTable id="dtable" row-group="1" select="true" selected-items='cell' selectionMode='single' value="#{adminWorkerManagementView.worker}" var="worker">

                            <b:dataTableColumn value="#{worker.name}" label="Worker" orderable="false"/>
                            <b:dataTableColumn value="#{worker.job}" label="Job" orderable="false" header-style-class="hidden" content-style-class="hidden"/>

                            <c:forEach var="day" items="#{scheduleView.day_array}">
                              <b:dataTableColumn value="#{worker.schedule[day]}" label="#{day.dayOfMonth}" orderable="false"/>
                            </c:forEach>

                            <b:dataTableColumn label="Option">
                              <b:commandButton value="Delete" iconAwesome="trash"
                                               action="#{adminWorkerManagementView.delete(worker)}">
                                <f:ajax execute="@this" render="@form" />
                              </b:commandButton>
                          </b:dataTableColumn>


                      </b:dataTable>

@gen0v
Copy link
Author

gen0v commented Mar 6, 2019

Same error in #1063

@gen0v
Copy link
Author

gen0v commented Mar 7, 2019

Hello,
further i have an error where i try to call a method from onselect="bean.methoder(worker,indexes)" but both values are always null.
And trying with "ajax:...." only resets the page but method wont be called.

Maybe i am overseeing something.

Thanks in advance!

@ElectroStar
Copy link

ElectroStar commented Mar 26, 2019

Well i have the same problem. It seems to be that error is caused by the orderable attribute on the column. Such an attribute need a creation of the column defs in json. At the end of the function there will be add the select option. It seems to be a bug.

result += "],'select':'"+ dataTable.getSelectionMode2() + "'";

PS: Well in the short term you can fix this by using 1.4.0. A new feature of issue #1038 causes the bug which was introduced in 1.4.1.

@vsvetoslavov
Copy link
Contributor

Are there any plans to fix this?

@geopossachs geopossachs added the dataTable Issues with the main Topic dataTable label Nov 24, 2019
@geopossachs geopossachs added this to the v1.6.0 milestone May 17, 2020
@stephanrauh
Copy link
Collaborator

I'm afraid development of BootsFaces has slowed down considerably. We'll never manage to address this issue. Let's close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dataTable Issues with the main Topic dataTable wontfix
Projects
None yet
Development

No branches or pull requests

5 participants