melloware commented on PR #593:
URL: https://github.com/apache/myfaces/pull/593#issuecomment-1620514745

   As far as I can see section 6.1.6 Message Queue deals with messages but it 
just mentions returning Iterators but not whether messages can be removed from 
the iterator at any phase?
   
   **6.1.6. Message Queue**
   
   `public void addMessage(String clientId, FacesMessage message);`
   
   During the Apply Request Values, Process Validations, Update Model Values, 
and Invoke Application
   phases of the request processing lifecycle, messages can be queued to either 
the component tree as
   a whole (if clientId is null), or related to a specific component based on 
its client identifier.
   
   ```java
   public Interator<String> getClientIdsWithMessages();
   public Severity getMaximumSeverity();
   public Iterator<FacesMessage> getMessages(String clientId);
   public Iterator<FacesMessage> getMessages();
   ```
   The 1getClientIdsWithMessages()1 method must return an Iterator over the 
client identifiers for which
   at least one Message has been queued. This method must be implemented so the 
clientIds are
   returned in the order of calls to 1addMessage()1. The 1getMaximumSeverity()1 
method returns the
   highest severity level on any Message that has been queued, regardless of 
whether or not the
   message is associated with a specific client identifier or not. The 
1getMessages(String)1 method
   returns an Iterator over queued Messages, either those associated with the 
specified client
   identifier, or those associated with no client identifier if the parameter 
is null. The 1getMessages()1
   method returns an Iterator over all queued Messages, whether or not they are 
associated with a
   particular client identifier. Both of the 1getMessage()1 variants must be 
implemented such that the
   messages are returned in the order in which they were added via calls to 
1addMessage()1.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to