2 Replies Latest reply on Sep 2, 2009 4:03 PM by deanhiller2000

    how to use facesMsgs.addToControl with table?

    deanhiller2000

      I tried getting the id from the html directly and using it like so


      dataPostForm:accountTable:0:accDec:acc
      dataPostForm:accountTable:1:accDec:acc
      dataPostForm:accountTable:2:accDec:acc
      etc. etc.



      That did not seem to add the message to the s:message component though in the table.  Since everything is repeated, how to do validation on a table in the action method?


      my exact use case is that validation of the account column changes depending on the selected utility(which I don't now in the validation phase since it is not applied on the model yet).  I then need to cursor over all the accounts and check their formats and want to attach messages to each incorrectly typed one.  How can I do this?
      thanks,
      dean