TheCoder4eu / BootsFaces-OSP

BootsFaces - Open Source Project
Apache License 2.0
246 stars 102 forks source link

b:message, b:messages not adding class when using styleClass #1126

Closed wearingart closed 4 years ago

wearingart commented 4 years ago

I saw that this was fixed in version 1.0.1, but it seems to be happening again in 1.4.2.

<b:message for="companyName" id="companyNameErr" styleClass="special-error" />

Produces this HTML without class: <div id="companyNameErr"></div>

geopossachs commented 4 years ago
<div id="companyNameErr">
    <div class="special-error alert alert-warning  bf-message"  role="alert">
        <span class="bficon bficon-warning-triangle-o bf-message-icon"  aria-hidden="true"/>
        <span class="bf-message-detail">The button/link/text component needs to have a Form in its ancestry. Please add &lt;h:form&gt;.</span>
    </div>
</div>

Hallo, only if a message is shown, the class will be added