Tabnine Logo
FacesMessagesUtils$FacesMessageWrapper
Code IndexAdd Tabnine to your IDE (free)

How to use
FacesMessagesUtils$FacesMessageWrapper
in
com.ocpsoft.pretty.faces.util

Best Java code snippets using com.ocpsoft.pretty.faces.util.FacesMessagesUtils$FacesMessageWrapper (Showing top 8 results out of 315)

origin: ocpsoft/prettyfaces

@SuppressWarnings("unchecked")
public int saveMessages(final FacesContext facesContext, final Map<String, Object> destination)
{
  int savedCount = 0;
  if (facesContext != null)
  {
    Set<FacesMessageWrapper> messages = new LinkedHashSet<FacesMessageWrapper>();
    for (Iterator<FacesMessage> iter = facesContext.getMessages(null); iter.hasNext();)
    {
      messages.add(new FacesMessageWrapper(iter.next()));
    }
    if (messages.size() > 0)
    {
      Set<FacesMessageWrapper> existingMessages = (LinkedHashSet<FacesMessageWrapper>) destination.get(token);
      if (existingMessages != null)
      {
        existingMessages.addAll(messages);
      }
      else
      {
        destination.put(token, messages);
      }
      savedCount = messages.size();
    }
  }
  return savedCount;
}
origin: com.ocpsoft/prettyfaces-jsf2

for (Iterator<FacesMessage> iter = facesContext.getMessages(null); iter.hasNext();)
  exitingMessages.add(new FacesMessageWrapper(iter.next()));
   facesContext.addMessage(null, message.getWrapped());
   restoredCount++;
origin: ocpsoft/prettyfaces

for (Iterator<FacesMessage> iter = facesContext.getMessages(null); iter.hasNext();)
  exitingMessages.add(new FacesMessageWrapper(iter.next()));
   facesContext.addMessage(null, message.getWrapped());
   restoredCount++;
origin: ocpsoft/prettyfaces

for (Iterator<FacesMessage> iter = facesContext.getMessages(null); iter.hasNext();)
  exitingMessages.add(new FacesMessageWrapper(iter.next()));
   facesContext.addMessage(null, message.getWrapped());
   restoredCount++;
origin: com.ocpsoft/prettyfaces-jsf2

@SuppressWarnings("unchecked")
public int saveMessages(final FacesContext facesContext, final Map<String, Object> destination)
{
  int savedCount = 0;
  if (facesContext != null)
  {
    Set<FacesMessageWrapper> messages = new LinkedHashSet<FacesMessageWrapper>();
    for (Iterator<FacesMessage> iter = facesContext.getMessages(null); iter.hasNext();)
    {
      messages.add(new FacesMessageWrapper(iter.next()));
    }
    if (messages.size() > 0)
    {
      Set<FacesMessageWrapper> existingMessages = (LinkedHashSet<FacesMessageWrapper>) destination.get(token);
      if (existingMessages != null)
      {
        existingMessages.addAll(messages);
      }
      else
      {
        destination.put(token, messages);
      }
      savedCount = messages.size();
    }
  }
  return savedCount;
}
origin: ocpsoft/rewrite

for (Iterator<FacesMessage> iter = facesContext.getMessages(null); iter.hasNext();)
  exitingMessages.add(new FacesMessageWrapper(iter.next()));
   facesContext.addMessage(null, message.getWrapped());
   restoredCount++;
origin: ocpsoft/prettyfaces

@SuppressWarnings("unchecked")
public int saveMessages(final FacesContext facesContext, final Map<String, Object> destination)
{
  int savedCount = 0;
  if (facesContext != null)
  {
    Set<FacesMessageWrapper> messages = new LinkedHashSet<FacesMessageWrapper>();
    for (Iterator<FacesMessage> iter = facesContext.getMessages(null); iter.hasNext();)
    {
      messages.add(new FacesMessageWrapper(iter.next()));
    }
    if (messages.size() > 0)
    {
      Set<FacesMessageWrapper> existingMessages = (LinkedHashSet<FacesMessageWrapper>) destination.get(token);
      if (existingMessages != null)
      {
        existingMessages.addAll(messages);
      }
      else
      {
        destination.put(token, messages);
      }
      savedCount = messages.size();
    }
  }
  return savedCount;
}
origin: ocpsoft/rewrite

@SuppressWarnings("unchecked")
public int saveMessages(final FacesContext facesContext, final Map<String, Object> destination)
{
  int savedCount = 0;
  if (facesContext != null)
  {
    Set<FacesMessageWrapper> messages = new LinkedHashSet<FacesMessageWrapper>();
    for (Iterator<FacesMessage> iter = facesContext.getMessages(null); iter.hasNext();)
    {
      messages.add(new FacesMessageWrapper(iter.next()));
    }
    if (messages.size() > 0)
    {
      Set<FacesMessageWrapper> existingMessages = (LinkedHashSet<FacesMessageWrapper>) destination.get(token);
      if (existingMessages != null)
      {
        existingMessages.addAll(messages);
      }
      else
      {
        destination.put(token, messages);
      }
      savedCount = messages.size();
    }
  }
  return savedCount;
}
com.ocpsoft.pretty.faces.utilFacesMessagesUtils$FacesMessageWrapper

Most used methods

  • <init>
  • getWrapped

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Permission (java.security)
    Legacy security code; do not use.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now