RFE: make HtmlInputHidden a ClientBehaviorHolder so that it can be used as the target for AJAX change events in composite components
- Dominant language
- Java
- Stars
- 127
- Forks
- 59
- Avg merge
- 23h
- Merged PRs (30d)
- 7
Description
I created a JSF 2 composite component that is rendered almost entirely using JavaScript. When the user makes a selection, it sets the value of a hidden input field. I am able to use an HtmlInputHidden as the cc:valueHolder of my composite component and it works as designed.
When I try to add an AJAX change listener, I get the following error:
"Unable to attach behavior to non-ClientBehaviorHolder parent:javax.faces.component.html.HtmlInputHidden@150ef67"
When I change the h:inputHidden to an h:inputText, then the AJAX functionality works as designed. Please update JSF so that an inputHidden can be used in this way as well.
Contributor guide
Research direction
Start with HtmlInputHidden and the ClientBehaviorHolder contract, then trace how composite-component AJAX change behaviors are attached and compare the working HtmlInputText path. Done means an HtmlInputHidden can serve as the composite component target for a change behavior without the reported non-ClientBehaviorHolder error; validate this with the relevant JSF component and AJAX tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100