[ 
https://issues.apache.org/jira/browse/TRINIDAD-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504672#comment-13504672
 ] 

Andy Schwartz edited comment on TRINIDAD-2343 at 11/27/12 3:23 PM:
-------------------------------------------------------------------

The attached patch replaces the private _setTempVar() method with the following 
protected API:


  /**
   * Called by UIXCollection to set values for the "var" and
   * "varStatus" EL variables.
   *
   * @param context the FacesContext for the current request
   * @param name the non-null name of the EL variable
   * @param value the value of the EL variable
   * @return the previous value of the EL variable, or null if
   *         the value was not previously set.
   */
  protected Object setupELVariable(
    FacesContext context,
    String       name,
    Object       value
    )

                
      was (Author: andy.schwartz):
    Proposed fix.
                  
> Hook for overriding UIXCollection temp var storage
> --------------------------------------------------
>
>                 Key: TRINIDAD-2343
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2343
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Andy Schwartz
>            Assignee: Andy Schwartz
>            Priority: Minor
>         Attachments: trinidad-2343.patch
>
>
> UIXCollection uses the following private method for storing temporary 
> variables (eg. var and varStatus values):
>   private Object _setELVar(String varName, Object newData)
>   {
>     if (varName == null)
>       return null;
>     // we need to place each row at an EL reachable place so that it
>     // can be accessed via the 'var' variable. Let's place it on the
>     // requestMap:
>     return TableUtils.setupELVariable(getFacesContext(), varName, newData);
>   }
> I need to override this behavior in my subclasses of UIXCollection as I have 
> my own mechanism for managing temporary variables.
> Logging this issue to request that we expose a protected hook that subclasses 
> can override to provide alternate implementations of temporary variable 
> storage.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to