Problem opening a modal

1

I'm using a framework called BootsFaces and every time I try to open a modal from a commandButton the modal opens however it looks like this:

Asyoucanseethemodalisnotenabled.

buttonthatopensthemodal:

<p:toolbarstyle="margin-top: 20px">
            <p:toolbarGroup>
                <b:commandButton icon="glyphicon glyphicon-floppy-save"
                value="Pesquisar" look="success" style="margin-left:1px"
                ajax="true" oncomplete="$('.modalPseudoClass').modal();"
                update="frmPrin" />
            </p:toolbarGroup>
</p:toolbar>

modal:

        <b:modal id="amodal" title="Cadastrar Contrato"
            styleClass="modalPseudoClass" closable="false"
            close-on-escape="false" backdrop="false">

            <p:outputLabel value="Código" />
            <b:inputText fieldSize="sm" readonly="true"/>

            <f:facet name="footer">
                <b:button value="Voltar" dismiss="modal" onclick="return false;" />
                <b:commandButton value="Salvar" look="primary" dismiss="modal"
                    oncomplete="return false;"
                    update=":msgGlobal :frmPrin" />
            </f:facet>
        </b:modal>
    
asked by anonymous 10.08.2015 / 13:44

0 answers