scala - validate Msg in Record -


When you call "valid" on a mapfield field, fields generated by default field field unique field ID The methodology uses the implementation, which is

  & lt; Tablename & gt; + "_" + & Lt; Field name & gt;   

then

  & lt; Span class = "lift: msg? Id = & lt; table name & gt; _ & lt; field name & gt;" & Gt; & Lt; / Time & gt;   

I also want to do this, but I'm using Mongo and record, but it does not work

Anyone have any suggestions please Fields also have a unique field ID in the record, but since the record has several different persistent backends and not necessarily the values ​​based on the table are calculated separately. In the Basefield you will find the method:

override def uniqueFieldId: box [string] = full (name + "_ id")

where name is your field Identifier, that is:

val myString = new StringField (this, 1024)

name == myString

Comments