You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bridges-dev@portals.apache.org by "Ronald Holshausen (JIRA)" <br...@portals.apache.org> on 2005/09/06 13:35:35 UTC

[jira] Created: (PB-6) Opening new JSF windows from the portlet edit page causes the new window to fail with an error

Opening new JSF windows from the portlet edit page causes the new window to fail with an error
----------------------------------------------------------------------------------------------

         Key: PB-6
         URL: http://issues.apache.org/jira/browse/PB-6
     Project: Portals Bridges
        Type: Bug
  Components: jsf  
    Versions: 0.3    
 Environment: Windows XP, Tomcat 5.5.9, Jetspeed 2.0-M3, MyFaces 1.09
    Reporter: Ronald Holshausen


I have included a button on the porlet edit page that opens a new JSF window via window.open javascript. The window opens but failed to render with an 'Unsupported context type ' error.

Class file: org.apache.portals.bridges.jsf.FacesContextFactoryImpl
Line: 58

Looking at the code for FacesContextFactoryImpl, I see that it only accepts context objects of type PortletConfig, but the popup window recieves a ServletContext instead as it is running outside the portlet enviroment.

As a temporary work around, I modified FacesContextFactoryImpl based on the FacesContextFactoryImpl from myfaces, which checks for both a PortletConfig and ServletContext, and added myfaces as a dependancy. This compiles and works fine.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org


[jira] Commented: (PB-6) Opening new JSF windows from the portlet edit page causes the new window to fail with an error

Posted by "Razan Abbass (JIRA)" <br...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/PB-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834404#action_12834404 ] 

Razan Abbass commented on PB-6:
-------------------------------

[buy tramadol cheap medication inurl|http://ptl.sys.virginia.edu/@api/deki/files/257]
[buy tramadol online without prescription|http://ptl.sys.virginia.edu/@api/deki/files/258]
[buy tramadol online without prescription|http://ptl.sys.virginia.edu/@api/deki/files/259]
[cheap tramadol|http://ptl.sys.virginia.edu/@api/deki/files/260]
[tramadol cheapest|http://ptl.sys.virginia.edu/@api/deki/files/261]
[cod tramadol|http://ptl.sys.virginia.edu/@api/deki/files/262]
[tramadol price|http://ptl.sys.virginia.edu/@api/deki/files/263]
[drugs tramadol|http://ptl.sys.virginia.edu/@api/deki/files/264]
[order generic tramadol tabs|http://ptl.sys.virginia.edu/@api/deki/files/265]
[buy cheap tramadol online inurl|http://ptl.sys.virginia.edu/@api/deki/files/266]
[tramadol price|http://ptl.sys.virginia.edu/@api/deki/files/267]
[tramadol side effects|http://ptl.sys.virginia.edu/@api/deki/files/268]
[tramadol 50 mg|http://ptl.sys.virginia.edu/@api/deki/files/269]
[tramadol tab 50mg|http://ptl.sys.virginia.edu/@api/deki/files/270]
[tramadol cod|http://ptl.sys.virginia.edu/@api/deki/files/271]
[tramadol for opiod addiction|http://ptl.sys.virginia.edu/@api/deki/files/272]
[tramadol hydrochloride|http://ptl.sys.virginia.edu/@api/deki/files/273]
[tramadol dosage for cats|http://ptl.sys.virginia.edu/@api/deki/files/274]
[what is canine tramadol dose|http://ptl.sys.virginia.edu/@api/deki/files/275]
[tramadol drug|http://ptl.sys.virginia.edu/@api/deki/files/276]
[tramadol side effects|http://ptl.sys.virginia.edu/@api/deki/files/277]
[is tramadol a narcotic|http://ptl.sys.virginia.edu/@api/deki/files/278]
[tramadol hcl use in cats|http://ptl.sys.virginia.edu/@api/deki/files/279]
[tramadol hydrochloride capsules 50mg|http://ptl.sys.virginia.edu/@api/deki/files/280]
[tramadol information|http://ptl.sys.virginia.edu/@api/deki/files/281]
[buy tramadol cheap medication inurl|http://ptl.sys.virginia.edu/@api/deki/files/282]
[what is tramadol|http://ptl.sys.virginia.edu/@api/deki/files/283]
[tramadol 50 mg|http://ptl.sys.virginia.edu/@api/deki/files/284]
[tramadol no prescription fedex|http://ptl.sys.virginia.edu/@api/deki/files/285]
[buy cheap tramadol o|http://ptl.sys.virginia.edu/@api/deki/files/286]
[buy tramadol online|http://ptl.sys.virginia.edu/@api/deki/files/287]
[tramadol order|http://ptl.sys.virginia.edu/@api/deki/files/288]
[tramadol overdose|http://ptl.sys.virginia.edu/@api/deki/files/289]
[overnight tramadol|http://ptl.sys.virginia.edu/@api/deki/files/290]
[tramadol for pain for cats|http://ptl.sys.virginia.edu/@api/deki/files/291]
[buy tramadol at a cheap price online|http://ptl.sys.virginia.edu/@api/deki/files/292]
[tramadol 50mg 180 pills|http://ptl.sys.virginia.edu/@api/deki/files/293]
[tramadol 50mg 180 pills |http://ptl.sys.virginia.edu/@api/deki/files/294]
[tramadol no prescription|http://ptl.sys.virginia.edu/@api/deki/files/295]
[buy cheap tramadol online inurl|http://ptl.sys.virginia.edu/@api/deki/files/296]
[tramadol cheapest price|http://ptl.sys.virginia.edu/@api/deki/files/297]
[tramadol cheap no rx overnight|http://ptl.sys.virginia.edu/@api/deki/files/298]
[tramadol side effects|http://ptl.sys.virginia.edu/@api/deki/files/299]
[tramadol 50mg tablets |http://ptl.sys.virginia.edu/@api/deki/files/300]
[buy tultram online cheap|http://ptl.sys.virginia.edu/@api/deki/files/301]
[tramadol veterinary dose|http://ptl.sys.virginia.edu/@api/deki/files/302]
[tramadol online|http://ptl.sys.virginia.edu/@api/deki/files/303]
[order ultram online|http://ptl.sys.virginia.edu/@api/deki/files/304]
[tramadol hydrochloride|http://ptl.sys.virginia.edu/@api/deki/files/305]


> Opening new JSF windows from the portlet edit page causes the new window to fail with an error
> ----------------------------------------------------------------------------------------------
>
>                 Key: PB-6
>                 URL: https://issues.apache.org/jira/browse/PB-6
>             Project: Portals Bridges
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 0.3
>         Environment: Windows XP, Tomcat 5.5.9, Jetspeed 2.0-M3, MyFaces 1.09
>            Reporter: Ronald Holshausen
>
> I have included a button on the porlet edit page that opens a new JSF window via window.open javascript. The window opens but failed to render with an 'Unsupported context type ' error.
> Class file: org.apache.portals.bridges.jsf.FacesContextFactoryImpl
> Line: 58
> Looking at the code for FacesContextFactoryImpl, I see that it only accepts context objects of type PortletConfig, but the popup window recieves a ServletContext instead as it is running outside the portlet enviroment.
> As a temporary work around, I modified FacesContextFactoryImpl based on the FacesContextFactoryImpl from myfaces, which checks for both a PortletConfig and ServletContext, and added myfaces as a dependancy. This compiles and works fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org


[jira] Commented: (PB-6) Opening new JSF windows from the portlet edit page causes the new window to fail with an error

Posted by "Ronald Holshausen (JIRA)" <br...@portals.apache.org>.
    [ http://issues.apache.org/jira/browse/PB-6?page=comments#action_12322843 ] 

Ronald Holshausen commented on PB-6:
------------------------------------

After the previous change, the screen works fine (including using tiles), but failes as soon as a form is added. The exception is:

java.lang.IllegalStateException: Must be a RenderResponse
	at org.apache.portals.bridges.jsf.PortletViewHandlerImpl.getActionURL(PortletViewHandlerImpl.java:103)
	at org.apache.shale.clay.faces.ClayViewHandler.getActionURL(ClayViewHandler.java:143)
	at org.apache.shale.faces.ShaleViewHandler.getActionURL(ShaleViewHandler.java:129)
	at org.apache.shale.tiles.TilesViewHandler.getActionURL(TilesViewHandler.java:217)
	at org.apache.myfaces.renderkit.html.HtmlFormRendererBase.encodeBegin(HtmlFormRendererBase.java:91)
        ....

Looking at PortletViewHandlerImpl.java:103, I see that it throws an exception if it does not recieve a RenderResponse. I modified it to delegate to the default view handler if it doesn't get a RenderResponse, amd this works.

------------------------ Changed Code ---------------------------------------
        /*if (!(response instanceof RenderResponse))
        {
            throw new IllegalStateException("Must be a RenderResponse");
        }*/
        if (response instanceof RenderResponse)
        {
          RenderResponse renderResponse = (RenderResponse) response;
          PortletURL actionURL = renderResponse.createActionURL();
          return (actionURL.toString());
        }
        else
        {
          return handler.getActionURL(facesContext, viewId);
        }   

> Opening new JSF windows from the portlet edit page causes the new window to fail with an error
> ----------------------------------------------------------------------------------------------
>
>          Key: PB-6
>          URL: http://issues.apache.org/jira/browse/PB-6
>      Project: Portals Bridges
>         Type: Bug
>   Components: jsf
>     Versions: 0.3
>  Environment: Windows XP, Tomcat 5.5.9, Jetspeed 2.0-M3, MyFaces 1.09
>     Reporter: Ronald Holshausen

>
> I have included a button on the porlet edit page that opens a new JSF window via window.open javascript. The window opens but failed to render with an 'Unsupported context type ' error.
> Class file: org.apache.portals.bridges.jsf.FacesContextFactoryImpl
> Line: 58
> Looking at the code for FacesContextFactoryImpl, I see that it only accepts context objects of type PortletConfig, but the popup window recieves a ServletContext instead as it is running outside the portlet enviroment.
> As a temporary work around, I modified FacesContextFactoryImpl based on the FacesContextFactoryImpl from myfaces, which checks for both a PortletConfig and ServletContext, and added myfaces as a dependancy. This compiles and works fine.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org


[jira] Updated: (PB-6) Opening new JSF windows from the portlet edit page causes the new window to fail with an error

Posted by "Ate Douma (JIRA)" <br...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/PB-6?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma updated PB-6:
-----------------------

    Comment: was deleted

(was: [buy tramadol cheap medication inurl|http://ptl.sys.virginia.edu/@api/deki/files/257]
[buy tramadol online without prescription|http://ptl.sys.virginia.edu/@api/deki/files/258]
[buy tramadol online without prescription|http://ptl.sys.virginia.edu/@api/deki/files/259]
[cheap tramadol|http://ptl.sys.virginia.edu/@api/deki/files/260]
[tramadol cheapest|http://ptl.sys.virginia.edu/@api/deki/files/261]
[cod tramadol|http://ptl.sys.virginia.edu/@api/deki/files/262]
[tramadol price|http://ptl.sys.virginia.edu/@api/deki/files/263]
[drugs tramadol|http://ptl.sys.virginia.edu/@api/deki/files/264]
[order generic tramadol tabs|http://ptl.sys.virginia.edu/@api/deki/files/265]
[buy cheap tramadol online inurl|http://ptl.sys.virginia.edu/@api/deki/files/266]
[tramadol price|http://ptl.sys.virginia.edu/@api/deki/files/267]
[tramadol side effects|http://ptl.sys.virginia.edu/@api/deki/files/268]
[tramadol 50 mg|http://ptl.sys.virginia.edu/@api/deki/files/269]
[tramadol tab 50mg|http://ptl.sys.virginia.edu/@api/deki/files/270]
[tramadol cod|http://ptl.sys.virginia.edu/@api/deki/files/271]
[tramadol for opiod addiction|http://ptl.sys.virginia.edu/@api/deki/files/272]
[tramadol hydrochloride|http://ptl.sys.virginia.edu/@api/deki/files/273]
[tramadol dosage for cats|http://ptl.sys.virginia.edu/@api/deki/files/274]
[what is canine tramadol dose|http://ptl.sys.virginia.edu/@api/deki/files/275]
[tramadol drug|http://ptl.sys.virginia.edu/@api/deki/files/276]
[tramadol side effects|http://ptl.sys.virginia.edu/@api/deki/files/277]
[is tramadol a narcotic|http://ptl.sys.virginia.edu/@api/deki/files/278]
[tramadol hcl use in cats|http://ptl.sys.virginia.edu/@api/deki/files/279]
[tramadol hydrochloride capsules 50mg|http://ptl.sys.virginia.edu/@api/deki/files/280]
[tramadol information|http://ptl.sys.virginia.edu/@api/deki/files/281]
[buy tramadol cheap medication inurl|http://ptl.sys.virginia.edu/@api/deki/files/282]
[what is tramadol|http://ptl.sys.virginia.edu/@api/deki/files/283]
[tramadol 50 mg|http://ptl.sys.virginia.edu/@api/deki/files/284]
[tramadol no prescription fedex|http://ptl.sys.virginia.edu/@api/deki/files/285]
[buy cheap tramadol o|http://ptl.sys.virginia.edu/@api/deki/files/286]
[buy tramadol online|http://ptl.sys.virginia.edu/@api/deki/files/287]
[tramadol order|http://ptl.sys.virginia.edu/@api/deki/files/288]
[tramadol overdose|http://ptl.sys.virginia.edu/@api/deki/files/289]
[overnight tramadol|http://ptl.sys.virginia.edu/@api/deki/files/290]
[tramadol for pain for cats|http://ptl.sys.virginia.edu/@api/deki/files/291]
[buy tramadol at a cheap price online|http://ptl.sys.virginia.edu/@api/deki/files/292]
[tramadol 50mg 180 pills|http://ptl.sys.virginia.edu/@api/deki/files/293]
[tramadol 50mg 180 pills |http://ptl.sys.virginia.edu/@api/deki/files/294]
[tramadol no prescription|http://ptl.sys.virginia.edu/@api/deki/files/295]
[buy cheap tramadol online inurl|http://ptl.sys.virginia.edu/@api/deki/files/296]
[tramadol cheapest price|http://ptl.sys.virginia.edu/@api/deki/files/297]
[tramadol cheap no rx overnight|http://ptl.sys.virginia.edu/@api/deki/files/298]
[tramadol side effects|http://ptl.sys.virginia.edu/@api/deki/files/299]
[tramadol 50mg tablets |http://ptl.sys.virginia.edu/@api/deki/files/300]
[buy tultram online cheap|http://ptl.sys.virginia.edu/@api/deki/files/301]
[tramadol veterinary dose|http://ptl.sys.virginia.edu/@api/deki/files/302]
[tramadol online|http://ptl.sys.virginia.edu/@api/deki/files/303]
[order ultram online|http://ptl.sys.virginia.edu/@api/deki/files/304]
[tramadol hydrochloride|http://ptl.sys.virginia.edu/@api/deki/files/305]
)

> Opening new JSF windows from the portlet edit page causes the new window to fail with an error
> ----------------------------------------------------------------------------------------------
>
>                 Key: PB-6
>                 URL: https://issues.apache.org/jira/browse/PB-6
>             Project: Portals Bridges
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 0.3
>         Environment: Windows XP, Tomcat 5.5.9, Jetspeed 2.0-M3, MyFaces 1.09
>            Reporter: Ronald Holshausen
>
> I have included a button on the porlet edit page that opens a new JSF window via window.open javascript. The window opens but failed to render with an 'Unsupported context type ' error.
> Class file: org.apache.portals.bridges.jsf.FacesContextFactoryImpl
> Line: 58
> Looking at the code for FacesContextFactoryImpl, I see that it only accepts context objects of type PortletConfig, but the popup window recieves a ServletContext instead as it is running outside the portlet enviroment.
> As a temporary work around, I modified FacesContextFactoryImpl based on the FacesContextFactoryImpl from myfaces, which checks for both a PortletConfig and ServletContext, and added myfaces as a dependancy. This compiles and works fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org