-
Notifications
You must be signed in to change notification settings - Fork 101
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
Using selectOneMenu inside a dynamically generated tabView causes Exception, when new Tab is added dynamically #918
Comments
@radorybar It seem I need your help. I've tried to reproduce your bug, but I didn't managed yet. I've committed and pushed my reproducer in the BootsFacesWeb project (see this commit: TheCoder4eu/BootsFacesWeb@bb39b12). Please have a look at it. Does my reproducer work on your machine? If not, can you give me a hint what's missing? Thanks in advance! |
@stephanrauh Thank you for your reproducer. I extended it that way, so it corresponds to the reported issue. I wanted to attach it here as a ZIP file, but I got 'We don't support that file type' error. As a workaround I added TXT extension to each file. |
I've integrated your changes with the showcase and pushed the commit. Thing is, I still don't see any bug. Can you close or download the repository and check whether I accidentally solved it without knowing? Things I tried:
Things I did not try:
It's possible that the problem only occurs on an application server, or maybe even only on a specific application server. Which one are you using? |
I use TomEE application server. I'll try showcase with different server. |
I forgot to mention it, but we've designed the showcase to run on a simple Tomcat. That's why I've ported the annotations to the older JSF API. It's possible that my modifications cause the demo to run flawlessly on TomEE, too. BTW, starting with BootsFaces 2, we're going to embrace JakartaEE (formerly known as JavaEE) full-heartedly. I'm under the impression that the number of Spring users using JSF is dwindling. |
Well, with GlassFish and WildFly reproducer works. It really looks like a problem specific to TomEE. |
I've managed to reproduce the issue with TomEE 7.0.2. |
@radorybar It seems you've found a major bug. It's just strange that it doesn't manifest in the other application servers. I've uploaded a new version of BootsFaces 1.2.1-SNAPSHOT to Maven Central (see #369 on how to get it). Would you mind to test whether the bug has been solved? |
With provided snapshot the problem disappeared, |
Thank you very much! |
Using selectOneMenu inside a dynamically generated tabView causes Exception, when new Tab is added dynamically.
piece of code, which causes an error:
Without selectOneMenu this piece of code works, so iteration variable
currentHazard
should be resolved correctly after controller action, which creates new hazard item.After lot of tries I've replaced Pootsfaces tabView with Primefaces tabView and that solution is working.
piece of code that works:
1.2.0
No browser dependent issue.
Probably any selectOneMenu inside a dynamically generated tabView will not work, but that is only a guess.
Not known.
No Idea.
The text was updated successfully, but these errors were encountered: