inputNumber primefaces does not work

1

Using primefaces version 6.0, I have my form (inputText, dataTable, selectOnemenu, etc.) and it works correctly, but at the time of adding a p: inputNumber stops all Primefaces running, ie (inputText, dataTable, selectOnemenu, etc) that previously worked, stop working ... no errors appear in the log

<p:panelGrid  columns="2" layout="grid" style="border: none" columnClasses="ui-grid-col-6,ui-grid-col-6">
    <p:outputLabel value="Tamaño" style="width: 100%"></p:outputLabel>
    <p:inputNumber value="#{reporteadorBean.index2}" maxlength="15"  >
    </p:inputNumber>
    <p:outputLabel value="Tipo de dato" style="width: 100%"></p:outputLabel>
    <p:selectOneMenu>
        <f:selectItem itemLabel="Seleccione" itemValue="Seleccione" noSelectionOption="true"> </f:selectItem>
        <f:selectItem itemLabel="String" itemValue="String"> </f:selectItem>
        <f:selectItem itemLabel="Date" itemValue="Date"> </f:selectItem>
        <f:selectItem itemLabel="Numeric" itemValue="Numeric"> </f:selectItem>
    </p:selectOneMenu>
    <br/>

 </p:panelGrid>
    
asked by Cristian Gonzalez 19.04.2017 в 19:39
source

2 answers

2

According to the extensions of primefaces you should use the <pe> tag :

xmlns:pe="http://primefaces.org/ui/extensions"> 

apart from

xmlns:p="http://primefaces.org/ui"

As you have version 6 I recommend this dependency

example:

 <pe:inputNumber value="#{BB.valor}" rendered="#{row.isUpdatable(fecha)}" >
                <p:ajax event="change" listener="#{BB.changeValor(fecha, row, i)}" />
 </pe:inputNumber>

Good luck!

    
answered by 20.04.2017 / 06:15
source
1

You need to add the following line in the header of the page:

xmlns:p="http://primefaces.org/ui" 

With this you will be able to obtain the boxes that are for numbers

    
answered by 16.05.2018 в 19:57