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 onselect not working inside tabview #940

Closed
mtvweb opened this issue May 8, 2018 · 2 comments
Closed

Datatable onselect not working inside tabview #940

mtvweb opened this issue May 8, 2018 · 2 comments

Comments

@mtvweb
Copy link

mtvweb commented May 8, 2018

Since commit 91024a7 a onselect call like

onselect="ajax:bean.edit(itemVar);javascript:updateForm();"

doesn't call bean method, if the datatable is placed inside a tabview, but the following javascript part will be executed.

@mtvweb
Copy link
Author

mtvweb commented May 8, 2018

The problem is located in TabRepeat.java - processValidators, because for a static tab the "var" is null. Replacing the code by the previous commit solves this. Not sure if this interferes with dynamic tabs.

A similar condition is located in processUpdates which may be also a problem, but this doesn't omit the Ajax call

@mtvweb
Copy link
Author

mtvweb commented May 9, 2018

Sorry, it wasn't a bug. It was an improvement, that all validators are now executed, inside the tab. Due to the fact that some fields are not already filled, the validator fail. An "immediate" attribute on the datatable solved this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant