Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Asterisk on p:outputLabel not working with composite component (with required=true) extends UIInput and without editableValueHolder #3097
PrimeFaces version: 6.1.6
2) Expected behavior
Label has display asterisk (*) if for attribute is connected to composite component extended UIInput with attribute required="true".
3) Actual behavior
Label don't display asterisk for composite component extends UIInput. It's only displayed for EditableValueHolder.
Other problems are p:messages in conjuction with p:outputLabel - you can be inspired by omnifaces (http://showcase.omnifaces.org/components/outputLabel).
4) Sample codes
Using composite component (test.xhtml):
This ticket is for supporting composite component extends UIInput without EditableValueHolder in composite component interface.
Here is problem with rendering
In OutputLabelRenderer must be different test for composite component.
I do not know what to prefer - instance of UIInput or existence of EditableValueHolder attribute in composite component.
Rewrite code in
into something like this:
or something like this:
or something better code :) Above is only idea for implementation.
We should definitely improve that API as it' going to be too cumbersome to use it the way it is written
@tandraschko Yes, I wrote CompositeUtils.invokeOnDeepestEditableValueHolderOrUIInput because this one must be rewrite too. Procedure