-
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
accordion: expanded-panels not working #873
Comments
I have encountered this same issue in 1.2.0 Snapshot. I am not using PrimeFaces. I believe the issue only occurs when the accordion is wrapped inside an h:form. If the form is removed the expansion works properly. |
@TheCoder4eu, no, I did not try @kvj2020's suggestion. That would probably make the accordion work, but it would make my form not work... |
I think a valid scenario is to allow accordions inside a form. I was commenting on what was causing the issue rather than identifying a work around. I would like to use the accordion inside a form. For a b:panel with an id='panel1' inside a form, the clientId is similar to 'j_id_s_1:panel1'. When the accordion is not inside a panel the clientId is 'panel1'. Although I do not know the framework well enough, here are two options
|
@kvj2020 thanks for the suggested code (option 2) I just applied it and committed. |
This issue is still reproducible in v1.4.2 - apparently expandedPanels/expanded-panels must contain client ids |
I am using BootsFaces 1.1.3 with PrimeFaces 6.1. I create an accordion with panels, and I set the expanded-panels attribute on the accordion. The corresponding panel always loads collapsed.
Example:
The text was updated successfully, but these errors were encountered: