TheCoder4eu / BootsFaces-OSP

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

b:inputSecret not available, h:inputSecret is not changed through template #29

Closed mortensen closed 9 years ago

mortensen commented 9 years ago

Hi.

I read this ticket: https://github.com/TheCoder4eu/BootsFaces/issues/32

There is said that you should try the template. I guess this parameter is ment:

<context-param>
    <param-name>BootsFaces_USETHEME</param-name>
    <param-value>true</param-value>
</context-param>

To be found here: http://www.bootsfaces.net/page/download.xhtml

Unfortunatelly testing this didnt work. My inputText for user name is bootstrap <:inputText..., but the inputSecret is h:inputSecret and the sizes differ. Also I cant see any changes by using / activating the theme. Is there any link / information to this topic?

Regards

stephanrauh commented 9 years ago

I managed to reproduce the problem. The JSF code

<b:inputText value="#{userBean.username}"  label="User name"/>
<h:inputSecret value="#{userBean.password}" label="Password"/>

is rendered as image

Looks a bit odd indeed. Setting the BootsFaces theme in the WEB.XML may help, but it doesn't solve the problem entirely (for example, neither the label nor the field group are rendered).

stephanrauh commented 9 years ago

I've added a <b:inputSecret> component. Now

<b:inputText value="#{userBean.username}"  label="User name"/>
<b:inputSecret value="#{userBean.password}" label="Password"/>

is rendered as

image

TheCoder4eu commented 9 years ago

I think we can close this one.

stephanrauh commented 9 years ago

So do I!