I have a datatable with input fields and 8 rows.
If any of the stylenumbers in a row is entered, then the qty column should be entered and it should be greater than 0.
Only for the rows where style number is entered. Can i use some kind of validation/rendering to make this happen?
Appreciate your help!
The critical thing to keep in mind is that JSF is based on Model/View/Controller. So to update the display, you must update the model. That is, you must update the appropriate properties in the backing bean. In the case of a dataTable, the table's DataModel object is a sub-model, and the individual rows of that table are components of that sub-model, so that's where the updates must be made.
Under stock JSF, the updates could only be done by submitting the entire form containing the table and getting an updated page back. You are using PrimeFaces, I see, so if you prefer, you could take advantage of the PrimeFaces AJAX support features to update parts of the current page instead of submitting and updating the entire page. The technical name for that process is "partial page update" or "partial page refresh".
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
when your children are suffering from your punishment, tell your them it will help them write good poetry when they are older. Like this tiny ad: