Hi All,

I am trying to show/hide portlets in a page based on whether the user is
logged in or not. 
I am using the documentation here
http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/en/guides/guide-security-declarative-psml.html
as my reference.

This is a partial snippet of my default-page.psml

<fragment id="dp-layout-twocol" type="layout"
name="jetspeed-layouts::VelocityTwoColumns">
                        <fragment id="dp00-body-login" type="portlet"
name="j2-admin::LoginPortlet">
                                <property name="row" value="0"/>
                                <property name="height" value="200"/>
                                <property name="column" value="0"/>
                                <security-constraints>
                                        <security-constraint>
                                                <roles>user</roles>
                                        </security-constraint>
                                        
<security-constraints-ref>guest-only</security-constraints-ref>
                                </security-constraints>
                        </fragment>
                        <fragment id="dp00-body-forgot" type="portlet"
name="j2-admin::ForgottenPasswordPortlet">
                                <property name="row" value="0"/>
                                <property name="height" value="600"/>
                                <property name="column" value="1"/>
                                <security-constraints>
                                        <security-constraint>
                                                <roles>user</roles>
                                        </security-constraint>
                                        
<security-constraints-ref>guest-only</security-constraints-ref>
                                </security-constraints>
                        </fragment>
                        <fragment id="dp00-body-news" type="portlet"
name="my-application::news-event">
                                <property name="row" value="1"/>
                                <property name="column" value="0"/>
                        </fragment>
                        <fragment id="dp00-body-rss" type="portlet"
name="my-application::rss-feed">
                                <property name="row" value="1"/>
                                <property name="column" value="1"/>
                        </fragment>
                </fragment>

It works fine. Before login it shows all the 4 portlets and once I login it
shows only the 2 portlets. 
Once I customize the page and select a different Page Decorator, then the
fragments that are hidden based on the security constraints (In this case,
LoginPortlet and ForgottenPasswordPortlet) are removed form the
default-page.psml. 

This is a partial snippet of my default-page.psml after I customized the
page.

<fragment id="dp-layout-twocol" type="layout"
name="jetspeed-layouts::VelocityTwoColumns">
                        <fragment id="dp00-body-news" type="portlet"
name="my-application::news-event">
                                <property name="row" value="1"/>
                                <property name="column" value="0"/>
                        </fragment>
                        <fragment id="dp00-body-rss" type="portlet"
name="my-application::rss-feed">
                                <property name="row" value="1"/>
                                <property name="column" value="1"/>
                        </fragment>
                </fragment>

It looks like the CastorFileSystemDocumentHandler class, updateDocument
method operates on the current instance operate on the current instance of
ClassDescriptorResolver.

Can someone let me know how to fix this issue.
Any help on how to solve this is greatly appreciated.

Thanks
Prasanna 

-- 
View this message in context: 
http://www.nabble.com/Customizer-removes-the-Portlet-Fragments-when-Security-Constraints-are-Used-tp19400227p19400227.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to