<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Simple Portal: which portlets get rendered when processAction returns?
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/davidyan">davidyan</a> in <i>JBoss Portal</i> - <a href="http://community.jboss.org/message/583985#583985">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi. I've been doing some experiments using the Portlet Container, controlling what portals get displayed for a given user with a custom taglib that checks the user's entitlements.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>That worked out pretty well, so I also developed a simple impersonation portlet (that authorizes the user to assume someone else's identity). I then noticed a very odd behavior when the  processAction method returns and the page is refreshed: the portlets that are rendered are those of the previous user / page, not the new ones, and their contents are apparently delivered in sequence to the portletmarkup tags of the page (for the new user). As a result, the contents on page are offset in the most bizarre fashion! Say user 1 can see portlets A and C, user 2 can see A, B and C; when switching from user 1 to user 2, the (new) output of C is used in lieu of B's, and nothing is displayed for C! When I manually refresh the page one more time, the problem disappears.</p><p></p><p>What's happening? Does that behavior find its origin in the Portlet Container per se or Simple Portal (its taglib)? Is there any simple fix? (I'm obviously a newcomer to portals and portlets...)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In passing, I have started those experiment because I was under the impression that, in GateIn, one can customize authentication (e.g., using SSO) but not authorization (users / groups / permissions management). Am I wrong and are there clean ways to "inject" a custom permission management system in GateIn?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks in advance,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Y</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/583985#583985">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in JBoss Portal at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>