faces
faces copied to clipboard
RFE: make HtmlInputHidden a ClientBehaviorHolder so that it can be used as the target for AJAX change events in composite components
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:
<cc:clientBehavior name="change" event="change" targets="#
{cc.clientId}
:selectedRoom"/>
"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.
- Issue Imported From: https://github.com/javaee/javaserverfaces-spec/issues/1122
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: Unassigned
@glassfishrobot Commented Reported by rdelaplante
@glassfishrobot Commented @edburns said: Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
@glassfishrobot Commented This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1122