Hi,
i created a taglib for my input fields. but i cannot set the "required" attribute of the clientTextValidator using an expression. as soon as I use an expression, the required attribute does not get rendered at all, not even a "false".
the required attribute of the input field itself is working fine
gets alsways rendered asCode:<sf:clientTextValidator promptMessage="${prompt}" required="${required}"> <h:inputText id="#{fieldName}" value="#{entity[fieldName]}" required="${required}" /> </sf:clientTextValidator>
but should beCode:[...]widgetAttrs : { promptMessage : 'Enter the batch number' }[...]
Code:[...]widgetAttrs : { required : true/false, promptMessage : 'Enter the batch number' }[...]
even if I put in required="${true}". the attribute is completely left out.
is this a bug?


Reply With Quote