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 "Michael Lipp (JIRA)" <br...@portals.apache.org> on 2005/09/11 11:41:30 UTC

[jira] Created: (PB-7) Messages are not displayed, validation errors are ignored

Messages are not displayed, validation errors are ignored
---------------------------------------------------------

         Key: PB-7
         URL: http://issues.apache.org/jira/browse/PB-7
     Project: Portals Bridges
        Type: Bug
  Components: jsf  
    Versions: 0.4    
 Environment: Jetspeed2
    Reporter: Michael Lipp
    Priority: Blocker


If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.

Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

Posted by "Yasushi Miyazawa (JIRA)" <br...@portals.apache.org>.
     [ http://issues.apache.org/jira/browse/PB-7?page=all ]

Yasushi Miyazawa updated PB-7:
------------------------------

    Attachment: jsf.patch

poor fix...

> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug

>   Components: jsf
>     Versions: 1.0
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker
>  Attachments: jsf.patch
>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

Posted by "Henryk Paluch (JIRA)" <br...@portals.apache.org>.
    [ http://issues.apache.org/jira/browse/PB-7?page=comments#action_12363946 ] 

Henryk Paluch commented on PB-7:
--------------------------------

Hi!
 We are currently using a bit brute but working "workaround". It sems to work well for us (we have few jsf pages with dataTable and forms with messages - all seem to work correctly). There are some problems with portlet help mode but I don't mind (messages are more important for me :-)

* Use org.apache.myfaces.portlet.MyFacesGenericPortlet instead of this bridge, i.e. update your portlet.xml to use that class instead of org.apache.portals.bridges.jsf.FacesPortlet.
* Also there is need to make new init-param called default-view (value is same as for ViewPage).
* Last but not least - remove your WEB-INF/lib/portals-bridges-jsf-1.0.jar from web application - they otherwise intercept (?) Jetspeed's PortalContext causing "Unsupporting context exception" in FacesContextFactoryImpl



> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug
>   Components: jsf
>     Versions: 1.0
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker

>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

Posted by "Michael Lipp (JIRA)" <br...@portals.apache.org>.
    [ http://issues.apache.org/jira/browse/PB-7?page=comments#action_12363953 ] 

Michael Lipp commented on PB-7:
-------------------------------

Hi Henryk,

well, using a completly different software is indeed what I'd call a "brute workaround" :-)


> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug
>   Components: jsf
>     Versions: 1.0
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker

>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

Posted by "David Sean Taylor (JIRA)" <br...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/PB-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496720 ] 

David Sean Taylor commented on PB-7:
------------------------------------

Patch applied, Steve could you please test it and let me know if it works for you as is


> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>                 Key: PB-7
>                 URL: https://issues.apache.org/jira/browse/PB-7
>             Project: Portals Bridges
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 1.0
>         Environment: Jetspeed2
>            Reporter: Michael Lipp
>         Assigned To: David Sean Taylor
>            Priority: Blocker
>         Attachments: FacesPortlet.java, jsf.patch
>
>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

Posted by "Michael Lipp (JIRA)" <br...@portals.apache.org>.
    [ http://issues.apache.org/jira/browse/PB-7?page=comments#action_12357862 ] 

Michael Lipp commented on PB-7:
-------------------------------

This does not solve the issue with request attributes. The FacesContext uses the ExternalContext from the current request to access request attributes and therefore the request attributes are not carried over by simply saving the FacesContext :-(

Note that part of the portlet support of MyFaces has been coded in MyFaces. The MyFaces portlet bridge sets a special flag to indicate the portlet context (only found this after looking very close). Of course, the generic bridge from this (PB) project cannot do this (or only after making sure that the JSF implementation used in the current request is MyFaces).

IMHO, this project will not be able to deliver a generic JSF/portlet bridge without talking to the MyFaces project (and maybe others)!


> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug
>   Components: jsf
>     Versions: 0.4
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker

>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

Posted by "Michael Lipp (JIRA)" <br...@portals.apache.org>.
    [ http://issues.apache.org/jira/browse/PB-7?page=comments#action_12357865 ] 

Michael Lipp commented on PB-7:
-------------------------------

Ronald, where do you think MyFaces creates/saves backing beans with request scope? Right, as MyFaces does not know anything about difficulties with portlet requests, it simply uses the request from the external context.

Before patching the bridge, I spoiled my code with workarounds, saving attributes in session scope and cleaning them after the render phase. But by now I think (and found some confirmation for this on the net) that it is really the bridge's task to carry over the request attributes from the action request to the render request.

Besides, this is completely independant from the portlet-dependant code in MyFaces. I also believe that you can create a generic bridge, but it won't work while the MyFaces implementation has code sections that depend on a flag being set when MyFaces is used in a portlet. Because as long as the bridge does not set this flag, MyFaces will do things that depend on running as a servlet. This dependency is easy to fix in MyFaces if MyFaces can make certain assumptions about the behaviour of the bridge. That's why it won't work unless the two projects start talking to each other (you'll find an issue in MYFACES that I have submitted with a comment that shows that at least some MyFaces developers don't even know about the PB project!).


> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug
>   Components: jsf
>     Versions: 0.4
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker

>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

Posted by "Henryk Paluch (JIRA)" <br...@portals.apache.org>.
    [ http://issues.apache.org/jira/browse/PB-7?page=comments#action_12364098 ] 

Henryk Paluch commented on PB-7:
--------------------------------

Hi!
  Anyway - later found that even MyFacesGenericPortlet intruduces different but equally weird problems (some fields disappearing on panelGrid on every odd request - looks very mysteriously). So unfortunately my "brute workaround" is no workaround anymore...


> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug
>   Components: jsf
>     Versions: 1.0
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker

>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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] Work stopped: (PB-7) Messages are not displayed, validation errors are ignored

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

Work on PB-7 stopped by David Sean Taylor.

> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>                 Key: PB-7
>                 URL: https://issues.apache.org/jira/browse/PB-7
>             Project: Portals Bridges
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 1.0
>         Environment: Jetspeed2
>            Reporter: Michael Lipp
>         Assigned To: David Sean Taylor
>            Priority: Blocker
>         Attachments: FacesPortlet.java, jsf.patch
>
>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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] Updated: (PB-7) Messages are not displayed, validation errors are ignored

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

Steve Halverson updated PB-7:
-----------------------------

    Attachment: FacesPortlet.java

We are using the MyFaces portlet bridge in a project being developed.  Ran into this problem with FacesMessage objects not being carried over into the render phase.   I coded up a solution this problem that works nicely.  Saves the messaes on the PortletSession and re-establishes them in the render phase.  We would like to see these changes integrated into the project.  I have attached the FacesPortlet.java source file with the changes in it.

> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>                 Key: PB-7
>                 URL: https://issues.apache.org/jira/browse/PB-7
>             Project: Portals Bridges
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 1.0
>         Environment: Jetspeed2
>            Reporter: Michael Lipp
>            Priority: Blocker
>         Attachments: FacesPortlet.java, jsf.patch
>
>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

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

Ronald Holshausen commented on PB-7:
------------------------------------

I see the MyFaces Portlet implementation does not release the FacesContext after handling the ActionRequest, but saves it in the portlet session, and then restores it during the handling of the RenderRequest. This seems like a good solution to this problem.

> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug
>   Components: jsf
>     Versions: 0.4
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker

>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

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

Ronald Holshausen commented on PB-7:
------------------------------------

The reason for this behaviour is that the FacesPortlet receives two different responses, and ActionReponse and then a RenderResponse.  During the handling of the ActionResponse, validation occurs and the validation messages are added to the FacesContext. However, the context is released after handling the ActionResponse, causing the messages to be discarded, and as the view is only rendered during the handling of the RenderResponse, there are no messages to display.

A fix for this would be to save the messages from the context during the handling of the ActionResponse, and then restore them to the context when handling the RenderResonse.



> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug
>   Components: jsf
>     Versions: 0.4
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker

>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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] Assigned: (PB-7) Messages are not displayed, validation errors are ignored

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

David Sean Taylor reassigned PB-7:
----------------------------------

    Assignee: David Sean Taylor

> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>                 Key: PB-7
>                 URL: https://issues.apache.org/jira/browse/PB-7
>             Project: Portals Bridges
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 1.0
>         Environment: Jetspeed2
>            Reporter: Michael Lipp
>         Assigned To: David Sean Taylor
>            Priority: Blocker
>         Attachments: FacesPortlet.java, jsf.patch
>
>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

Posted by "Terrence Drozdowski (JIRA)" <br...@portals.apache.org>.
    [ http://issues.apache.org/jira/browse/PB-7?page=comments#action_12378445 ] 

Terrence Drozdowski commented on PB-7:
--------------------------------------

Its been a while since this discussion took place - any movement on this front?

> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug

>   Components: jsf
>     Versions: 1.0
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker

>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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] Work started: (PB-7) Messages are not displayed, validation errors are ignored

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

Work on PB-7 started by David Sean Taylor.

> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>                 Key: PB-7
>                 URL: https://issues.apache.org/jira/browse/PB-7
>             Project: Portals Bridges
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 1.0
>         Environment: Jetspeed2
>            Reporter: Michael Lipp
>         Assigned To: David Sean Taylor
>            Priority: Blocker
>         Attachments: FacesPortlet.java, jsf.patch
>
>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

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

Ronald Holshausen commented on PB-7:
------------------------------------

I think a generic JSF/portlet bridge can be created, but as long as you don't do funny things with request parameters but rather bind the JSF controls to backing bean properties. Then the request parameters will be decoded and stored in the view and the data model (backing beans) during the handling of the ActionRequest, and as long as the view and context is restored for the RenderRequest (see issue PB-32), the response should be rendered as normal.



> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug
>   Components: jsf
>     Versions: 0.4
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker

>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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-7) Messages are not displayed, validation errors are ignored

Posted by "Michael Lipp (JIRA)" <br...@portals.apache.org>.
    [ http://issues.apache.org/jira/browse/PB-7?page=comments#action_12357818 ] 

Michael Lipp commented on PB-7:
-------------------------------

I have by now learned a lot about the requirements for a Portlet/JSF bridge by tracking down problems and patching the MyFaces bridge until it finally does now what I want.

To summarize, (1) the bridge must carry over request attributes added during action handling to the rendering phase. The portal does not do this, it calls performAction with the ActionRequest and rendering with a RenderRequest and any attributes set on the ActionRequest are lost. JSF does not know about these different requests, it knows only of one request (context) used during the complete cycle. Thus, the bridge must make sure that it looks like this to JSF.

(2) Request attributes set during performAction (i.e. carried over, see above) or during rendering a JSF-portlet must be removed from the request after rendering the JSF-portlet. This is necessary because only one request instance is used for rendering all portlets. (The portlet specification does not require the attributes of this request to be portlet scoped.) Therefore, if the JSF framework or application uses request attributes, there may be unintended interaction between the JSF applications. Neither the JSF framework nor the application is aware of a requirement to "scope" request attributes, because it does not "know" about the application being a portlet and several application being rendered with the same request (two or more JSF-portlets on one page).

> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>          Key: PB-7
>          URL: http://issues.apache.org/jira/browse/PB-7
>      Project: Portals Bridges
>         Type: Bug
>   Components: jsf
>     Versions: 0.4
>  Environment: Jetspeed2
>     Reporter: Michael Lipp
>     Priority: Blocker

>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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] Resolved: (PB-7) Messages are not displayed, validation errors are ignored

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

David Sean Taylor resolved PB-7.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.2-dev

Steve, Im getting messages to work here. Going to resolve this one

> Messages are not displayed, validation errors are ignored
> ---------------------------------------------------------
>
>                 Key: PB-7
>                 URL: https://issues.apache.org/jira/browse/PB-7
>             Project: Portals Bridges
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 1.0
>         Environment: Jetspeed2
>            Reporter: Michael Lipp
>         Assigned To: David Sean Taylor
>            Priority: Blocker
>             Fix For: 1.0.2-dev
>
>         Attachments: FacesPortlet.java, jsf.patch
>
>
> If the JSF page produces messages (explicitly or implicitly due to validation errors) these messages are not displayed.
> Also (and probably related) validation errors are ignored, i.e. the model is changed despite the error.

-- 
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