[jira] [Commented] (PORTLETBRIDGE-206) Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE

2011-04-06 Thread Michael Freedman (JIRA)

[ 
https://issues.apache.org/jira/browse/PORTLETBRIDGE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13016452#comment-13016452
 ] 

Michael Freedman commented on PORTLETBRIDGE-206:


For the time being this can't/won't go in Bridge.java.  Rather it will be part 
of the org.apache.myfaces.portlet.faces.bridge package.  Probably in 
Constants.java.

 Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE
 --

 Key: PORTLETBRIDGE-206
 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-206
 Project: MyFaces Portlet Bridge
  Issue Type: New Feature
  Components: General
Affects Versions: 3.0.0
Reporter: Neil Griffin
Assignee: Michael Freedman

 Proposal is to add the following constant to Bridge.java:
   public static final String BRIDGE_CONTEXT_ATTRIBUTE = 
 javax.portlet.faces.bridgeContext;
 And to require implementations of the Bridge interface to set this attribute 
 in each of the doFacesRequest(...) methods.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (PORTLETBRIDGE-206) Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE

2011-03-31 Thread Neil Griffin (JIRA)

[ 
https://issues.apache.org/jira/browse/PORTLETBRIDGE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13013890#comment-13013890
 ] 

Neil Griffin commented on PORTLETBRIDGE-206:


I tried implementing this with facesContext.getAttributes.put(name, value)  but 
couldn't make it work. I had to use portletRequest.setAttribute(name, value) 
instead.

Explanation: The bridge's ExternalContext implementation needs to get access to 
the BridgeContext during construction. At this time, the FacesContext is also 
undergoing construction. Therefore it is not possible for the ExternalContext 
implementation to call 
FacesContext.getCurrentInstance().getAttributes().get(name). However, it can 
call portletRequest.getAttribute(name) since the portletRequest is passed to 
the ExternalContext implementation during construction.

 Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE
 --

 Key: PORTLETBRIDGE-206
 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-206
 Project: MyFaces Portlet Bridge
  Issue Type: New Feature
  Components: General
Affects Versions: 3.0.0
Reporter: Neil Griffin
Assignee: Michael Freedman

 Proposal is to add the following constant to Bridge.java:
   public static final String BRIDGE_CONTEXT_ATTRIBUTE = 
 javax.portlet.faces.bridgeContext;
 And to require implementations of the Bridge interface to set this attribute 
 in each of the doFacesRequest(...) methods.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (PORTLETBRIDGE-206) Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE

2011-03-31 Thread Neil Griffin (JIRA)

[ 
https://issues.apache.org/jira/browse/PORTLETBRIDGE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13014241#comment-13014241
 ] 

Neil Griffin commented on PORTLETBRIDGE-206:


Mike and I discussed this and the facesContext.getAttributes.put(name, value)  
approach will be the way to go.

 Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE
 --

 Key: PORTLETBRIDGE-206
 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-206
 Project: MyFaces Portlet Bridge
  Issue Type: New Feature
  Components: General
Affects Versions: 3.0.0
Reporter: Neil Griffin
Assignee: Michael Freedman

 Proposal is to add the following constant to Bridge.java:
   public static final String BRIDGE_CONTEXT_ATTRIBUTE = 
 javax.portlet.faces.bridgeContext;
 And to require implementations of the Bridge interface to set this attribute 
 in each of the doFacesRequest(...) methods.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (PORTLETBRIDGE-206) Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE

2011-03-30 Thread Michael Freedman (JIRA)

[ 
https://issues.apache.org/jira/browse/PORTLETBRIDGE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13013012#comment-13013012
 ] 

Michael Freedman commented on PORTLETBRIDGE-206:


Yes, we will need to add such a new constant -- and I was thinking we will have 
the Bridge set this on the FacesContext prior to executing the lifecycle.

 Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE
 --

 Key: PORTLETBRIDGE-206
 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-206
 Project: MyFaces Portlet Bridge
  Issue Type: New Feature
  Components: General
Affects Versions: 3.0.0
Reporter: Neil Griffin
Assignee: Michael Freedman

 Proposal is to add the following constant to Bridge.java:
   public static final String BRIDGE_CONTEXT_ATTRIBUTE = 
 javax.portlet.faces.bridgeContext;
 And to require implementations of the Bridge interface to set this attribute 
 in each of the doFacesRequest(...) methods.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (PORTLETBRIDGE-206) Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE

2011-03-30 Thread Neil Griffin (JIRA)

[ 
https://issues.apache.org/jira/browse/PORTLETBRIDGE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13013525#comment-13013525
 ] 

Neil Griffin commented on PORTLETBRIDGE-206:


Do you mean calling facesContext.getAttributes.put(name, value) rather than 
portletRequest.setAttribute(name, value)?

 Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE
 --

 Key: PORTLETBRIDGE-206
 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-206
 Project: MyFaces Portlet Bridge
  Issue Type: New Feature
  Components: General
Affects Versions: 3.0.0
Reporter: Neil Griffin
Assignee: Michael Freedman

 Proposal is to add the following constant to Bridge.java:
   public static final String BRIDGE_CONTEXT_ATTRIBUTE = 
 javax.portlet.faces.bridgeContext;
 And to require implementations of the Bridge interface to set this attribute 
 in each of the doFacesRequest(...) methods.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (PORTLETBRIDGE-206) Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE

2011-03-30 Thread Michael Freedman (JIRA)

[ 
https://issues.apache.org/jira/browse/PORTLETBRIDGE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13013529#comment-13013529
 ] 

Michael Freedman commented on PORTLETBRIDGE-206:


Yep.

 Proposal for 3.0 API: New constant Bridge.BRIDGE_CONTEXT_ATTRIBUTE
 --

 Key: PORTLETBRIDGE-206
 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-206
 Project: MyFaces Portlet Bridge
  Issue Type: New Feature
  Components: General
Affects Versions: 3.0.0
Reporter: Neil Griffin
Assignee: Michael Freedman

 Proposal is to add the following constant to Bridge.java:
   public static final String BRIDGE_CONTEXT_ATTRIBUTE = 
 javax.portlet.faces.bridgeContext;
 And to require implementations of the Bridge interface to set this attribute 
 in each of the doFacesRequest(...) methods.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira