anonymous wrote : One of the things I did not think of is to edit the
portlet-instances.xml file for the desired portlet to add the extra instances.
That might be the sanest solution for now.
I'd love to add it to the portlet-instances.xml, that was what I thought the
right way to go was.
An example to clarify what I meant: to create another instance of the news
portlet, go to
jboss-portal.sar/samples/portal-news-samples.war/WEB-INF/portlet-instances.xml
and add the new instance there.
View the original post :
Oh, I see. Okay, thank you. That makes sense.
However, I've just learned that it isn't just creating instances of external
portlets that are failing. I created a portlet inside of my war and have the
same problem. It keeps appending ehealth. to the front of everything and so
can't find it.
Oops - ignore last post. Staring at screen too long. Creating local instances
works just fine.
Phew, okay, I think I'm good. Thanks so much for all of your help!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110402#4110402
Reply to the post :
Okay, let me try a few more things. I just installed portlet-bridge
seperately. I don't see a very easy way to include it in my war (it is built
with maven, I'm building mine with ant, and they're both structured a little
differently as far as file locations). But, maybe I can just modify
The procedure would be the same for any portlet (including the news portlet).
One of the things I did not think of is to edit the portlet-instances.xml file
for the desired portlet to add the extra instances. That might be the sanest
solution for now.
I am sitting in a hotel, attending a
Ah, class loading issues. How fun.
I guess the next question is where is everything deployed? In other words,
where is the PortletBridge deployed and where is your portlet deployed? Are
they in separate war files in the deploy directory, or is either of them in the
jboss-portal.sar directory
Thank you. Here is my portlet-instances.xml:
?xml version=1.0 standalone=yes?
| !DOCTYPE deployments PUBLIC
|-//JBoss Portal//DTD Portlet Instances 2.6//EN
|http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd;
| deployments
|deployment
|
Huh, interesting. Although, unfortunately it's not finding the PortletBridge
even with the correct package in portlet.xml:
portlet
| portlet-nameeHealthPortletBridge/portlet-name
|
portlet-classorg.portletbridge.portlet.PortletBridgePortlet/portlet-class
| /portlet
Gave me
Yes, you need to create 2 new instances. In your portlet-instances.xml file is
the correct place to do this, then you refer to the instances in your
*-object.xml file. That has always worked fine for me.
Could you post the declarations of the instances and the windows from your
Ah, it's all coming back to me now. That's what happens when I don't deal with
a problem for a while, I forget some of the hoops I jumped through.
Try this. In your portlet.xml file, declare another portlet, say
'YetAnotherBridgePortlet' whose class is
11 matches
Mail list logo