(entityState != 1)
See Image below
Then add this attribute to your view object and use it in an expression to highlight rows that have been modified and not yet commited,.
inlineStyle="#{row.isDirty ? 'background-color:#FFF9B3;' : ''}"
Here's another Groovy expression that will display the original posted value of any attribute in your entity that has been modified but not yet posted
adf.object.getPostedAttribute(adf.object.getAttributeIndexOf("Name"))
For an overview of using Groovy expression in ADF see this white paper by Grant Ronald