Skip to Content

Wrong iView property value returns.

I upload PAR file into the portal, then I change iView property via Content Administration, but it still remembers the value came with PAR file (durring my debugging), not recent updated one, however it shows correct one when I come back to Content Administration. Any ideas? Thanks!

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Oct 11, 2005 at 08:29 PM

    Hi Yan,

    How are you previewing the iView?

    If you preview your iView through Content Administration, you should be picking up the new/changed value.

    If you're previewing your iView from "Java Development" Tab, then it does not recognize the property change that you made for the iView in Content Administration.

    regards,

    harman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 11, 2005 at 08:46 PM

    Hey Yan,

    you can compare your code to this below. Seems to work OK for me.

    In the Portal.xml file:

    =================================

    <component-profile>		
         <property name="Environment" value="http://www.test.com">
      	<property name="category" value="CUSTOM Properties" /> 
      	</property>  
      	</component-profile>

    ================================

    JavaCode to get Value:

    ================================

    IPortalComponentContext context = request.getComponentContext();
    IPortalComponentProfile profile = context.getProfile();
    String environment = profile.getProperty("Environment");

    ================================

    regards,

    harman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2005 at 07:57 PM

    The xml of your portalapp.xml doesn't seem right to me. You have nested Property tag in here.

    http://www.test.com">

    <property name="category" value="CUSTOM Properties" />

    </property>

    Is this causing the problem ??

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.