|
Home > Archive > WebSphere Portal Server > March 2004 > WPCP Publishing problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
WPCP Publishing problem
|
|
|
| I am using the MyNews example by Mellisa Pike on WPS 4.2.1.
I successfully published to MyNewsPortlet and able to view the contents. Now , I have created another portlet "MyInfo" as a different Project in WPCP on the same lines as "MyNews".
The problem that I am facing is, when I publish to "MyInfo" the contents of "MyNews" is erased. So I re-published all contents of "MyNews" , to find that the contents of "MyInfo" is erased.
Why publishing to one portlet using WPCP erases contents of other portlet which was published earlier ?
Please if somebody can help me on this.
Thanks
| |
| Scott A. Roehrig 2004-01-19, 2:58 pm |
| If you created the portlet as a copy, there is probably a config setting in
web.xml for the publish target. That value is likely the same for both
portlets, hence the overwrite.
Scott
"qibm" <hi_techserv@yahoo.com> wrote in message
news:1727693061.1063090602733.JavaMail.wasadmin@swg3ws006...quote:
> I am using the MyNews example by Mellisa Pike on WPS 4.2.1.
> I successfully published to MyNewsPortlet and able to view the contents.
Now , I have created another portlet "MyInfo" as a different Project in WPCP
on the same lines as "MyNews".quote:
>
> The problem that I am facing is, when I publish to "MyInfo" the contents
of "MyNews" is erased. So I re-published all contents of "MyNews" , to find
that the contents of "MyInfo" is erased.quote:
>
> Why publishing to one portlet using WPCP erases contents of other portlet
which was published earlier ?quote:
> Please if somebody can help me on this.
> Thanks
>
| |
|
| The new portlet "MyInfo" is not a copy of "MyNews". It is developed following the same steps as "MyNews", but has different table MYINFO, just like MYNEWS table. Also its a different portlet "MyInfoPortlet" like the "MyNewsPortlet".
I have both these portlets on same page, and when I publish to one "MyInfoPortlet", contents on "MyNewsPortlet" is erased and visa-versa.
Thanks
| |
| Scott A. Roehrig 2004-01-19, 2:58 pm |
| Chances are probably good that in the settings for the project or the
publish target, the destination is the same.
Scott
"qibm" <hi_techserv@yahoo.com> wrote in message
news:202686736.1063213723452.JavaMail.wasadmin@swg3ws006...quote:
> The new portlet "MyInfo" is not a copy of "MyNews". It is developed
following the same steps as "MyNews", but has different table MYINFO, just
like MYNEWS table. Also its a different portlet "MyInfoPortlet" like the
"MyNewsPortlet".quote:
>
> I have both these portlets on same page, and when I publish to one
"MyInfoPortlet", contents on "MyNewsPortlet" is erased and visa-versa.quote:
>
> Thanks
| |
| Joel Wellington 2004-01-19, 2:58 pm |
| You need to include an entry in the SCOPE field in the WPCP project
properties. What is happening is when you publish, the second projects
NORMAL VIEW is overwriting the first one.
Adding a scope entry for each project will solve this
"qibm" <hi_techserv@yahoo.com> wrote in message
news:202686736.1063213723452.JavaMail.wasadmin@swg3ws006...quote:
> The new portlet "MyInfo" is not a copy of "MyNews". It is developed
following the same steps as "MyNews", but has different table MYINFO, just
like MYNEWS table. Also its a different portlet "MyInfoPortlet" like the
"MyNewsPortlet".quote:
>
> I have both these portlets on same page, and when I publish to one
"MyInfoPortlet", contents on "MyNewsPortlet" is erased and visa-versa.quote:
>
> Thanks
| |
|
| Thanks for all your inputs. This is problem is solved by including the ScopeID in project and using ScopeManager.setApplicationScope in JSP.
Thanks again
| |
|
| Hi qibm!
I have the same problem . But I'm using WPS V5, I don't know how to use "ScopeManager.setApplicationScope" in JSP. Can you help me? A sample file in using ScopeManager.setApplicationScope in WPS V5 is very good for me.
TIA.
| |
|
| In PortletView JSP you can put the following statement:
session.setAttribute(com.ibm.wcp.runtime.WCPConstants.SCOPEID_KEY, "abcscope");
The name "abcscope" is the one that is defined in the SCOPID field, while creating projects in WPCP.
Hope this solves ur problem.
|
|
|
|
|