Examples of ClientRowKeyManager


Examples of org.apache.myfaces.trinidad.render.ClientRowKeyManager

    // TODO all this code should be removed and moved into the renderer:
    if (istate._clearTokenCache)
    {
      istate._clearTokenCache = false;
      ClientRowKeyManager keyMgr = getClientRowKeyManager();
      if (keyMgr instanceof DefaultClientKeyManager)
        ((DefaultClientKeyManager) keyMgr).clear();
    }
    __flushCachedModel();
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ClientRowKeyManager

    // TODO all this code should be removed and moved into the renderer:
    if (istate._clearTokenCache)
    {
      istate._clearTokenCache = false;
      ClientRowKeyManager keyMgr = getClientRowKeyManager();
      if (keyMgr instanceof DefaultClientKeyManager)
        ((DefaultClientKeyManager) keyMgr).clear();
    }
    _flushCachedModel();
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ClientRowKeyManager

    // TODO all this code should be removed and moved into the renderer:
    if (istate._clearTokenCache)
    {
      istate._clearTokenCache = false;
      ClientRowKeyManager keyMgr = getClientRowKeyManager();
      if (keyMgr instanceof DefaultClientKeyManager)
        ((DefaultClientKeyManager) keyMgr).clear();
    }
    _flushCachedModel();
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ClientRowKeyManager

      boolean processedChild = false;

      try
      {
        // need to convert row key tokens to row keys
        ClientRowKeyManager rowKeyManager = getClientRowKeyManager();

        for(String clientKey : _clientKeys)
        {
          Object rowKey = rowKeyManager.getRowKey(context, UIXIterator.this, clientKey);

          if (rowKey != null)
          {
            setRowKey(rowKey);
            if (isRowAvailable())
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ClientRowKeyManager

    FacesContext     context,
    RenderingContext rc,
    UIComponent      component,
    String           clientId)
  {
    ClientRowKeyManager rowKeyManager = null;
    if (component instanceof UIXCollection)
      rowKeyManager = ((UIXCollection) component).getClientRowKeyManager();

    Set<Object> rowKeys = null;
    String tablePrefix = clientId + NamingContainer.SEPARATOR_CHAR;
    // Search for any PPR targets that start with "<tableClientId>:"
    PartialPageContext ppc = rc.getPartialPageContext();
    Iterator<String> targets = ppc.getPartialTargets();
    while (targets.hasNext())
    {
      String target = targets.next();
      if (target == null)
        continue;
      if (target.startsWith(tablePrefix))
      {
        // If we don't have a rowkeymanager, we know that the table
        // has partial targets, but we can't process the rows individually
        if (rowKeyManager == null)
          return null;

        // Extract the client rowkey from the clientId
        String clientRowKey = target.substring(tablePrefix.length());
        int ncIndex = clientRowKey.indexOf(NamingContainer.SEPARATOR_CHAR);
        // If we have a target that is in the table, but is not in a
        // particular row, just repaint the whole table
        if (ncIndex < 0)
          return null;

        clientRowKey = clientRowKey.substring(0, ncIndex);

        // Try to turn it into a server rowkey
        Object rowKey = rowKeyManager.getRowKey(context, component, clientRowKey);
        // if this fails, we have to process the whole table
        if (rowKey == null)
          return null;

        // We know this row exists, and needs to be processed
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ClientRowKeyManager

    // TODO all this code should be removed and moved into the renderer:
    if (istate._clearTokenCache)
    {
      istate._clearTokenCache = false;
      ClientRowKeyManager keyMgr = getClientRowKeyManager();
      if (keyMgr instanceof DefaultClientKeyManager)
        ((DefaultClientKeyManager) keyMgr).clear();
    }
    _flushCachedModel();
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ClientRowKeyManager

    FacesContext     context,
    RenderingContext arc,
    UIComponent      component,
    String           clientId)
  {
    ClientRowKeyManager rowKeyManager = null;
    if (component instanceof UIXCollection)
      rowKeyManager = ((UIXCollection) component).getClientRowKeyManager();
   
    Set<Object> rowKeys = null;
    String tablePrefix = clientId + NamingContainer.SEPARATOR_CHAR;
    // Search for any PPR targets that start with "<tableClientId>:"
    PartialPageContext ppc = arc.getPartialPageContext();
    Iterator<String> targets = ppc.getPartialTargets();
    while (targets.hasNext())
    {
      String target = targets.next();
      if (target == null)
        continue;
      if (target.startsWith(tablePrefix))
      {
        // If we don't have a rowkeymanager, we know that the table
        // has partial targets, but we can't process the rows individually
        if (rowKeyManager == null)
          return null;
       
        // Extract the client rowkey from the clientId
        String clientRowKey = target.substring(tablePrefix.length());
        int ncIndex = clientRowKey.indexOf(NamingContainer.SEPARATOR_CHAR);
        // If we have a target that is in the table, but is not in a
        // particular row, just repaint the whole table
        if (ncIndex < 0)
          return null;
       
        clientRowKey = clientRowKey.substring(0, ncIndex);
       
        // Try to turn it into a server rowkey
        Object rowKey = rowKeyManager.getRowKey(context, component, clientRowKey);
        // if this fails, we have to process the whole table
        if (rowKey == null)
          return null;
       
        // We know this row exists, and needs to be processed
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ClientRowKeyManager

    // TODO all this code should be removed and moved into the renderer:
    if (istate._clearTokenCache)
    {
      istate._clearTokenCache = false;
      ClientRowKeyManager keyMgr = getClientRowKeyManager();
      if (keyMgr instanceof DefaultClientKeyManager)
        ((DefaultClientKeyManager) keyMgr).clear();
    }
    _flushCachedModel();
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ClientRowKeyManager

    // TODO all this code should be removed and moved into the renderer:
    if (istate._clearTokenCache)
    {
      istate._clearTokenCache = false;
      ClientRowKeyManager keyMgr = getClientRowKeyManager();
      if (keyMgr instanceof DefaultClientKeyManager)
        ((DefaultClientKeyManager) keyMgr).clear();
    }
    _flushCachedModel();
View Full Code Here

Examples of org.apache.myfaces.trinidad.render.ClientRowKeyManager

    // TODO all this code should be removed and moved into the renderer:
    if (istate._clearTokenCache)
    {
      istate._clearTokenCache = false;
      ClientRowKeyManager keyMgr = getClientRowKeyManager();
      if (keyMgr instanceof DefaultClientKeyManager)
        ((DefaultClientKeyManager) keyMgr).clear();
    }
    _flushCachedModel();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.