1 Reply Latest reply on Jan 5, 2006 12:19 AM by Viet

    Portal 2.2 - XML files - questions

    pmn92 Novice

      in portlet.xml:


      1. Is <init-param> related to PortalContext.getInitParameter(java.lang.String name)
      ?

      <init-param>
       <description>Default path to index page.</description>
       <name>indexpage</name>
       <value>/default/index.html</value>
       </init-param>


      2. What is <user-attribute> for?

      <user-attribute>
       <name>user.name.nickName</name>
       </user-attribute>


      in jboss-portlet.xml:

      3. what is < transaction > and <trans-attribute> for ?

      <portlet>
       <portlet-name>AdminCMSPortlet</portlet-name>
       <transaction>
       <trans-attribute>Required</trans-attribute>
       </transaction>
       </portlet>
      



        • 1. Re: Portal 2.2 - XML files - questions
          Viet Master

          1. rather PortletContext.getInitParameter no ?
          2. user attribute is used to specify an attribute retrievable from the specific Map attribute in the PortletRequest
          3. it is used to propagate the portal transaction to the portlet, so it can use the User object directly and make operations on it