HELP: Problem when programmatically creating a proxy portlet
All,
I am programmatically creating a proxy portlet from a registerd WSRP Producer portlet. The problem is that when I create the proxy portlet, and then add the portlet to the page I don't get any mode icons in the portlet (i.e. maximize/minimize icons). Everything else works okay in the portlet though. When I create the same proxy portlet from the Admin Portal and add it to a page, I get the maximize/minimize icons so therefore I assume it's something in my code. Here is the method I wrote to create the proxy portlet:
public String registerPortlet (HttpServletRequest request, String producerHandle, WSRPPortlet portlet) throws Exception
ProxyPortletManager portletManager = ProxyPortletManager.Factory.getAdapter ();
PortletDescription portletDescription = PortletDescription.Factory.newInstance ();
portletDescription.setPortletHandle (portlet.getHandle ());
LocalizedString lString = LocalizedString.Factory.newInstance ();
lString.setLang ("en");
lString.setValue (portlet.getName ());
portletDescription.setTitle (lString);
portletDescription.setDoesUrlTemplateProcessing (true);
portletDescription.setTemplatesStoredInSession (true);
log.info ("Registering portlet for producer: " + producerHandle);
log.info ("+++++ Portlet Handle: " + portlet.getHandle ());
log.info ("+++++ Portlet Name: " + portlet.getName ());
int portletId = portletManager.createProxyPortlet (producerHandle, portletDescription, ProxyPortletManager.LocaleHelper.findLocale ("en"), request, PORTAL_NAME);
return String.valueOf (portletId);
}Any help you can offer is very much appreciated. Thank you.
- T.C.
I dug into this a little more myself, and THOUGHT I found the answer, but it didn't work. I saw that the PortletDescription object has a method called:
setMarkupTypesArray (MarkupType[])
...and MarkupType has a method called:
addWindowStates (String)
So I added the following code portion before i call portletManager.createProxyPortlet (...):
MarkupType mt = MarkupType.Factory.newInstance();
mt.setMimeType("text/html");
mt.addWindowStates("maximized");
mt.addWindowStates("mimimized");
portletDescription.setMarkupTypesArray(new MarkupType [] {mt});...and still when I add the proxy portlet to a page it doesn't have the proper maximize/minimize icons. Can anyone help???
Thank you.
- T.C.
Similar Messages
-
A namespace problem when doing Create InfoArea in bw system
Dear all,
we met a problem when excute a process in our bw system:
our process as follow:
rsa1(Data Warehousing Workbench:Modeling) --> InfoProvider --> Create InfoArea
then a error message window came out as below.
error in object editing
No valid change license available for n
/BPR3R/
Choose 'Display object' or 'Cancel'.
its detail message is as follow:
Message no. TO127
Diagnosis
You cannot edit the object AREA 0INDUSTRIES. This may be due to the following reasons:
The corresponding namespace /BPR3R/ is not entered in the namespace table with a valid change license.
In the namespace table there is no entry with a valid change license that matches the template /BPR3R/.
System Response
The function terminates.
Procedure
Check the name of the object AREA 0INDUSTRIES. If necessary, choose another object name.
Otherwise, let the system administrator check the change licenses of the namespaces in your SAP system.
Maintain the namespaces in the Tools of the Transport Organizer under Administration -> Display/Change Namespaces.
You need to check and correct the entries that match the template /BPR3R/.
You need to distinguish between the following cases:
The namespace is /0SAP/:
Make sure that the namespace role is C (recipient) and the flags SSCR popup and SAP standard are activated. The license fields remain empty.
You did not create the namespace yourself. Instead, the namespace owner is SAP or another software vendor.
Make sure that the namespace role is C (recipient). The field Repair license must either contain the valid license, or the flag SSCR popup must be activated. Contact the namespace owner and ask what you should now do, and what the valid repair license is.
You are the namespace owner:
Proceed according to the documentation on applying for and setting up namespaces. If the namespace role is P (producer) then you need a valid development license. For information on this, see the SAP Library under BC - Basis Components -> Change and Transport System -> BC - Namespaces and Naming Conventions -> Reservation of Namespaces).
Then we did the below action:
se06 --> system change option
in this view, we found /BPR3R/ this Prefix.
And it is empty in /BPR3R/ 's namespace/name range volume.
What is next action we should take to solve this problem?
Anyone experienced or expert,
Please kindly give advice.
Regards,
AllenHello Allen,
Cold you please check the following notes which explain about this namespace creation and transport ?
401778 - Using namespaces to develop individual BW objects
150451 - Setting up development namespaces
105132 - Reserving namespaces
150451 - Setting up development namespaces
Best regards,
Rafa -
[HELP] Problem when update 1 unicode form
hi all,
I got a problem when I update unicode form :(
so, I have already tested my web application (Struts-ibatis-velocity-tiles) on my PC (tomcat 5.5.12, mysql 4.1 - utf8 default, JDK 5.0), everything was okie. I could update 1 unicode form (the form which contains unicode characters - firstname, lastname). I use 1 filter for output and input, below is my web.xml:
<!-- Filter to set character encoding on each request -->
<filter>
<filter-name>Set Character Encoding</filter-name>
<filter-class>filters.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<!-- Define filter mappings for the defined filters -->
<filter-mapping>
<filter-name>Set Character Encoding</filter-name>
<servlet-name>action</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>Set Character Encoding</filter-name>
<servlet-name>velocity</servlet-name>
</filter-mapping>
but ... when I deploy and run it on eatj.com, mysql4.1 - utf8, jdk 5.0, I couldn't update unicode form, my last name and first name fields couldn't be saved with unicode characters (utf-8) ...
what happened :( ... Is this problem of hosting or my web application ??? :(
help me :(
thanks in advance,
bowlkhinYou need to install the bc package. Apparently the script uses bc to calculate some integer values.
Brian -
I have a problem when I create message via t-code notif_create.
when I create message via 'notif_create',I can't fill the blank 'Component'.How can I get the 'Component'?
Hi Liu,
the F4 option is available for the component blank and we can select from them generally.ALso check the following SAP Notes...which may prove useful..Note 813075 - DSWP: Create Support Desk message missing category field
Note 857793 - Determine system context for messages
Note 853597 - Sorted display of F4 helps in NOTIF_CREATE
Hope it helps.
Br
Sri
Award points for helpful answers -
Please help,problem when creating Jar.
I am somewhat new to Java...But I made a simple program,and then tried to create a Jar file.
Now all my Java commands where in /program files/Java/JavaSDK/Bin,it was a hassle to CD to that everytime I wanted to use a command,so I coppied all the commands in BIn directory,and put them in System 32,I suppose this is ok? That was my first question.
My next one is,when i try creating a Jar file..I suppose I am doing ti right,but the entire command prompt fills up with code,the ASCII and all the symbols....and a REALLY loud constant beep comes from my computer,and speakers..and it seems it doesnt create anything by this code in the screen and th noise..
Please help.My next one is,when i try creating a Jar file..I
suppose I am doing ti right,but the entire command
prompt fills up with code,the ASCII and all the
symbols....and a REALLY loud constant beep comes from
my computer,and speakers..and it seems it doesnt
create anything by this code in the screen and th
noise..It is from jar help:
Example 1: to archive two class files into an archive called classes.jar:
jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
files in the foo/ directory into 'classes.jar':
jar cvfm classes.jar mymanifest -C foo/ . -
Problem when we created the managed server to configure different ports.
I am trying to configure different ports for admin console and my communication service as we can’t share admin port to the outside world.
So that only admin can access admin console using admin port.
And out side clients can access my webapplication using different port.
For this i have created the managed server in weblogic.and I deployed the application on managed server.
Now admin server is running on 8001 port and my Communication Service application is running on 7001 port.
But when I tried to configure MBeans related to myCommunicationServiceApplication those were disapper on admin console. And the other wlng services are appearing on admin console.
1. Since my application deployed on managed server MBeans registration happened from myapplication hence it’s disappear on admin console.
Now If I want to configure Mbeans (related to my communication service) how can I configure it?
2. My communication service using configurationStore module and other wlng services.
When I tried to start my application on managed server I got the below error:
<Apr 28, 2009 12:22:44 PM IST> <Error> <Deployer> <BEA-149231> <dscp11166.TechMahindra.com> <Unable to set the activation state to true for the application 'wlng_nt_qualcomm_active_mediation [Version=1.0]'.
com.bea.wlcp.wlng.api.storage.configuration.ConfigurationException: Configuration store module is not available.
3. I tried to target all wlngResources to manged server by editing config.xml file.
Then all wlng services disappears on admin console. If this is the case how can I configure container/account services on wlng?
I have created the Basicweblogic domain.
Below is the config.xml for reference.
"QualcommServer" is managed server name.
Can any one please suggest me how to configure this kind of scenarios?
<server>
<name>AdminServer</name>
<machine>new_Machine_1</machine>
<listen-port>8001</listen-port>
<default-iiop-user>weblogic</default-iiop-user>
<default-iiop-password-encrypted>{3DES}W8nBdoJPRZ8TkwcXwAZoxA==</default-iiop-password-encrypted>
<listen-address>localhost</listen-address>
</server>
<server>
<name>QualcommServer</name>
<machine>new_Machine_1</machine>
<listen-address>localhost</listen-address>
<server-start>
<java-vendor>Sun</java-vendor>
<java-home>C:\Program Files\Java\jdk1.6.0</java-home>
<class-path>C:\bea\wlng400\server\lib\weblogic.jar;C:\bea\wlng_pds400\lib\wlng\wlng.jar</class-path>
<bea-home>C:\bea</bea-home>
<username>weblogic</username>
<password-encrypted>{3DES}W8nBdoJPRZ8TkwcXwAZoxA==</password-encrypted>
</server-start>
</server>
<embedded-ldap>
<name>managedserver</name>
<credential-encrypted>{3DES}9q80YuFJueVVJxoWduJA1OGhbqk14EpgQWWyTrzlmxo=</credential-encrypted>
</embedded-ldap>
<configuration-version>10.0.1.0</configuration-version>
<app-deployment>
<name>wlng_nt_session#4.0</name>
<target>QualcommServer</target>
<module-type>ear</module-type>
<source-path>C:\bea\wlng400/applications/wlng_nt_session.ear</source-path>
<security-dd-model>CustomRolesAndPolicies</security-dd-model>
</app-deployment>
<app-deployment>
<name>interceptors</name>
<target>QualcommServer</target>
<module-type>ear</module-type>
<source-path>C:\bea\wlng400/applications/interceptors.ear</source-path>
<security-dd-model>CustomRolesAndPolicies</security-dd-model>
</app-deployment>
<app-deployment>
<name>wlng_prm</name>
<target>QualcommServer</target>
<module-type>ear</module-type>
<source-path>C:\bea\wlng400/applications/wlng_prm.ear</source-path>
<security-dd-model>CustomRolesAndPolicies</security-dd-model>
</app-deployment>
<app-deployment>
<name>wlng_nt_qualcomm_active_mediation#1.0</name>
<target>QualcommServer</target>
<module-type>ear</module-type>
<source-path>servers\AdminServer\upload\wlng_nt_qualcomm_active_mediation.ear</source-path>
<security-dd-model>DDOnly</security-dd-model>
</app-deployment>
<machine>
<name>new_Machine_1</name>
<node-manager>
<name>new_Machine_1</name>
<listen-address>localhost</listen-address>
</node-manager>
</machine>
<jms-server>
<name>JMSServer-AdminServer</name>
<target>AdminServer</target>
</jms-server>
<jms-system-resource>
<name>WLNGJMSResource</name>
<target>QualcommServer</target>
<descriptor-file-name>jms/wlng-jms.xml</descriptor-file-name>
</jms-system-resource>
<custom-resource>
<name>networktier</name>
<target>AdminServer</target>
<descriptor-file-name>custom/nt.xml</descriptor-file-name>
<resource-class>com.bea.wlcp.wlng.management.descriptor.resource.WlngTierResource</resource-class>
<descriptor-bean-class>com.bea.wlcp.wlng.management.descriptor.bean.WlngTierBean</descriptor-bean-class>
</custom-resource>
<custom-resource>
<name>wlng-edr</name>
<target>AdminServer</target>
<descriptor-file-name>custom/wlng-edr.xml</descriptor-file-name>
<resource-class>com.bea.wlcp.wlng.management.descriptor.resource.WlngEdrResource</resource-class>
<descriptor-bean-class>com.bea.wlcp.wlng.management.descriptor.bean.WlngEdrBean</descriptor-bean-class>
</custom-resource>
<admin-server-name>AdminServer</admin-server-name>
<jdbc-system-resource>
<name>wlng.datasource</name>
<target>QualcommServer</target>
<descriptor-file-name>jdbc/wlng-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>wlng.localTX.datasource</name>
<target>QualcommServer</target>
<descriptor-file-name>jdbc/wlng-localTX-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
Thanks,
Srinu Babu PDear Nariharan,
Today I faced a simlar issue, and this SAP Note helped me fix it: 1966807 - Duplication of AET table records in change processing
In my case, cardinality of AET table was 1:1, and I was getting duplicate PARENT_ID every time when trying to create a subsequent service request for my activity.
Regards,
Andrew -
Why encounter the problem when i create a table
hi,all
I want to make a news release application,therefore i have to create tables,firstly,i have created a categories table:
just like :
category_id(number)
category_name(varchar2);
secondly,i created the second table which is for storing the news contents,so i created the second table news,just like below:
news_id(number)
category_name(varchar2)----this column is refered from the categories table
news_title(varchar2)
news_content(Blob)
news_editor(varchar2)
release_time(timestamp);
there comes the quetion,when I was creating the second table,an error occured,which said,matching primary key(s) not found.what is the problem ?somebody konws,and does someone have the news board application developing experience ?who can give me a guide ?
best regards
hleeHi Hlee,
Have you specify category_name as primary key of the previous table. Then only you can refer the column in the other table.
Thanks and Regards
Maheswara -
Help needed when dynamically creating new stage sprites
Morning folks,
I'm feeling very rusty when asking this question! It feels
like I should
know the answer but simply unable to comprehend where I'm
going wrong at the
moment!!
I'm in the process of creating a Director piece that involves
the user
having to drag "shapes" onto a pre-defined grid [drag and
drop style] --
there are currently three different types of shape that can
be dragged of
which many of the shapes can be of the same type. So I need
to display the
three shape types on one side of the screen and allow the
user to drag and
drop as many as they wish to the girded area.
I've written the drag and drop routine but now having
difficulty in
producing the dynamic creation of a new draggable shape; so
far I've managed
to create a new "shape" sprite from my cast library and
placed it in the
correct location. Then I create and add a new instance of my
"Drag and Drop"
behaviour onto the newly created sprite, but this is where it
goes wrong --
although I can drag the dynamically created sprite, once
dropped Director
complains of not knowing what its local properties are, for
example I'm
unable to reference the locH and locV of the newly created
sprite!
I'm really at a loss on this one and would appreciate any
kind of guidance!
Many thanks in advance, Mark ;-)Hi Saravanan,
>>>><b>First column - Welcome message , below Date , time and place</b>
It is possible to add date, time and location in the welcome area. Jus add a table to the <td> of the welcome area container. Like this.
<% Date d= new Date(); %>
<TD nowrap class="prtlHdrWelcome" ti="0" tabIndex="0" id="welcome_message"><%=StringUtils.escapeToHTML(GetWelcomeMsg(componentRequest, welcomeClauseStr))%><table width="100"><tr><td nowrap><%=d%></td><td>INDIA</td></tr></table></TD>
Hope it helps.
Regards,
Saravanan
P.S: Hope you remember the thread
<a href="http://">https://www.sdn.sap.com/irj/sdn/thread?threadID=152135&messageID=1703666</a> -
Problem when I create a library automatica​lly using a vi.
I create a library which contains a Shared Variable by the vi as the attachment shows, but the property of the autocreated Shared variable is not same with which I set in the vi, mainly in the propertys of Network.AccessType and Alarming.BadStatus.Enabled. But other propertys are same with which I set, What's wrong with this Vi?
LabVIEW 8.20程序设计从入门到精通已经出版,敬请关注!
欢迎访问LabVIEW学习乐园: http://labviewstudy.blog.edu.cn
Attachments:
Createlibrary.vi 40 KBNew problem: the created libarary cannot be deployed with the error: MyLibrary\My Variable deployment failed (error: -1967362041).
After you dobleclick every shared varaible and click ok(without any change), then the libarary can be deployed successful!
It's very strange to me, can anyone explain this?
LabVIEW 8.20程序设计从入门到精通已经出版,敬请关注!
欢迎访问LabVIEW学习乐园: http://labviewstudy.blog.edu.cn -
HELP: Problem when upgrading SPAM!!!
I have tried to upgrade SPAM to version SAPKD70022 and I am getting the following error:
The import was stopped, since an error occurred during the phase
DISASSEMBLE, which the Support Package Manager is unable to resolve
without your input.
After you have corrected the cause of the error, continue with the
import by choosing Support Package -> Import queue from the initial
screen of the Support Package Manager.
The following details help you to analyze the problem:
- Error in phase: DISASSEMBLE
- Reason for error: FILE_OPEN_ERROR
- Return code: 3
- Error message: OCS Package: SAPKD70021
Does anyone know how to solve this?
Thanks all in advance
PhilHi Phil,
You can download SAPM/SAINT from htttp://service.sap.com/swdc
Download --> Support Packages and Patches --> Entry by Application Group --> Additional Components --> SAP SPAM/SAINT UPDATE --> SPAM/SAINT UPDATE 700
Latest is SAPKD70023 , you can apply this directly as SPAM/SAINT is cumulative. I mean upgrade to 23 from 20 without applying 21 or 22 .
Thanks
Prince Jose
PS: Please assign points if it helped ypu -
HELP: Problem when compile cldc1.1 and midp2.0 in winxp
the error msg is
"missing com.sun.cldc.io.GeneralBase"
i check all the folder and cannot find this class, does it really necessary? why sun do miss it in the release?
anyone can help me? thanks a lotActually we are implementing chat application for Jabber( XMPP Protocol). And i am writing the connection code and stream reading code in seperate Thread only. But the problem is, for the first connction i am able to contact server but for subsequent connections the server not recognizing the session which was started using other thread. Thats because i wanted to open connection and streams only once per application startup and perform all operations in that session only.
Jabber is used for developing Google Talk also. -
Problem when i create an index
Hello,
I'm a beginner on KM, and i have a simple problem (i think... ).
I want to create an index on Simple Web Repository (with 2 Web Adresses created) and i have the error : " The repository needs the properties service to be attached to a classification index ". So, i'm going to check "Simple Web Repository" configuration and i can see there is the 'properties' service in "Repository Services"...
Think it's nothing, but, i'm lost...Solution : Restart Servlet engine....
Sorry -
Updating Certificate field (ZEUGN) when programmatically creating WM TO
I am looking for a function module, bapi, badi, or any other mechanism for creating a warehouse management transfer order for a delivery. I have tried using L_TO_CREATE_DN, but it does not expose some fields I need to populate. Specifically I need to update the ZEUGN (certificate) field.
Again, my requirement is to be able to pass information to a routine that will create a warehouse management transfer order for a delivery.
Any help would be greatly appreciated.
thanks,
Chiptry this enhancement
MWMIDO11---Enhancement for message WMTORD: TO with several items
in above enhancement we have structure..
LTAP_CREAT
this structure consist of that field zeugn that u asked.... -
Problem when WCS creates user guest access on the WLCs
Hello,
In my Wireless network, I have two appliances WLC 5508 running version 7.0.116.0.
I have a WCS running version 7.0.172.0, deployed on a windows 2003 server.
I've imported the two WLCs in my WCS in order to centralize the monitoring and the configuration tasks.
Now I'm facing an issue when I want to create a guest user from the WCS, rather than creating this user access on each WLC.
The creation of the user account is working good, the replication is done on the both WLCs, but on one of my WLC the guest user account is deleted after one hour(around).
On the second WLC, the same user account remains during all its life time.
In attachment a screen shot of the advanced parameter of the guest user.
You can see that the user was created on the both WLC but is only active on one ... and unfortunately the wrong because the AP is associated with the other WLC.
Any idea about this issue?
By advance thanks.Thank you for sharing the info. I am glad that your issue is now fixed
Sent from Cisco Technical Support iPad App -
ORA-00600 problem when create XMLType table with registerd schema
Hi,
I am using Oracle9i Enterprise Edition Release 9.2.0.4.0 on RedHat Linux 7.2
I found a problem when I create table with registered schema with follow content:
<xs:element name="body">
<xs:complexType>
<xs:sequence>
</xs:sequence>
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="class" type="xs:NMTOKENS"/>
<xs:attribute name="style" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="body.content">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="p"/>
<xs:element ref="hl2"/>
<xs:element ref="nitf-table"/>
<xs:element ref="ol"/>
</xs:choice>
<xs:attribute name="id" type="xs:ID"/>
</xs:complexType>
</xs:element>
Does Oracle not support element reference to other element with dot?
For instance, body -> body.content
Thanks for your attention.Sorry, amendment on the schema
<xs:element name="body">
<xs:complexType>
<xs:sequence>
<xs:element ref="body.head" minOccurs="0"/>
<xs:element ref="body.content" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="body.end" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="class" type="xs:NMTOKENS"/>
<xs:attribute name="style" type="xs:string"/>
</xs:complexType>
</xs:element>
Maybe you are looking for
-
How can i share my itunes library with another computer
how can i share my itunes library with another computer
-
I already posted this on DIVX LABS, without getting ANY help, also on Macrumors, without getting ANY help.... no I hope you guys here can help me Hello, I hope somebody can help me here since I didn't find help on that topic somewhere.... I downloade
-
How to create own Selection Parameter for ME2M list
Dear Sir, We use ME2m tcode for getting list related to Purchase Order . We have been told that we can create our own "SELECTION PARAMETER" for ths report . Kindly guide us as what steps need to be done for this pl . With Thanks and Regards Sonia Mit
-
Need to put info at the absolute bottom of the page
I have to put info on the absolute bottom of an .rtf page. The problem is, the footer is there. Is there any way to get rid of the footer or force the info on the bottom edge? The info is check data in MICR format, it needs to be put on the bottom to
-
Hi, In program SAPKKA12, we have created certain variants. Please throw some light when this program gets executed and the purpose. In the variant, "if no cost or revenue posting (except settlement of RA data) since, we have period and year. The peri