java - Unable to read bean value from f:longrangevalidator -
basically, have datatable.
<p:datatable id="productdetail" var="viewproduct" value="#{productbean.productlistadd}"> <p:column headertext="quantity"> <p:inputtext value="#{viewproduct.quantity}" id="newproductquantity" label="product quantity"> <f:validatelongrange minimum="1" maximum="#{viewproduct.instock}" for="newproductquantity"></f:validatelongrange> </p:inputtext> </p:column> </p:datatable > the value of maximum long range, instead of being value predefined in viewproduct.instock (says 20), recognized 0 jsf. i've tried call #{viewproduct.instock} in separated outputtext , display 20.
could please me out here?
Comments
Post a Comment