We updated our JBoss from 4 to 5, and our Seam got updated to 2.2.1. There was some modification in the source code in order to comply with JBoss 5 and Seam. The big problem right now is the deprecation of FaceMessages, which is replaced with StatusMessages.
StatusMessages' addToControl() method didn't work. It works when a message is added to a global <h:messages>. But if I want to customize a particular input of a form with <rich:message>, it doesn't work. Instead, it displayed all the messages at the global level.
I think what is happening is that, there was something changed with the updated Seam, that makes searching of components in a form always returning null, which consequently causes all messages to be display at the global level.
Granted, my current form is huge and complicated. There're some other parts where there is only <h:form> and simple code, where displaying message in particular place worked. So, I think it's a matter of trying to rearrange my JSF view code to keep up with the changes or there is some bugs.
No comments:
Post a Comment