Announcement Announcement Module
Collapse
No announcement yet.
setId on AbstractForm does not set id on model? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • setId on AbstractForm does not set id on model?

    Hello

    Maybe this is just a misunderstanding of how setId on AbstractForm should work. Calling setId on a form apparently does not set the id of the underlying model causing message source lookups to only use the field name instead of formId.fieldname.

    BR
    Carsten

  • #2
    When creating a form, you should always set the id on the formmodel, not on the form.

    However, I'll take a look at the setId issue and give an explanation on its behavior.

    Comment


    • #3
      A quick look at the message resolving: the resolving is done through the bindingfactory, which is created through the form's formmodel, thus using the formmodel's id, not the form's id.

      Comment

      Working...
      X