ok, the window-name had to be unique. that was one of the problems but the
bigger issue was finding the correct deployment parent element. need to find
out what the others are meant for. fix is small, but took a while to get there
:(
thanks for your pointers, Peter. much appreciated.
View the
ok, by trial and error, i found the right deployment element to stick my
portlet entries in. Don't know yet why one works and not the other, or what is
the difference between these elements, but nevertheless, i can add a portlet to
the default page this way.
however, adding a second portlet doe
We have additional deployment entries but I've added the portlets to the first
one (the one shown above). I've verified that the JBP_WINDOWS table gets
populated with this new portlet. So, there IS an entry in this table, so it
does mean that something is getting picked up from this file. Just t
That is exactly how I have it, Peter. No difference at all (not sure if I can
post the entire file since it is our source code, etc - see what I mean). The
only additional thing to note is this -
|
|
| keep
|
| default
|
|
|
On second thought, if you have a portlet named SomePortlet, then here are the
full ad complete contents for portlet-instances.xml and *-object.xml to get the
portlet to show up on the default page:
portlet-instances.xml:
|
|
| SomePortletInstance
| SomePortlet
|
I think you need to post the whole portlet-instances.xml and default-object.xml
files.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076477#4076477
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076477
___
| default
|
|AdminPortletWindow
|SomePortletInstance
|center
|0
|
|
If I add 2 blocks of this, only the second one is added. Verified the
JBP_WINDOWS table
I am editing the default-object.xml file bundled with my portlets. I've
verified that this file gets picked up now.
This is how my entry looks in portlet-instances.xml -
|
| SomePortletInstance
| SomePortlet
|
|
..and this is how my
Double-check the spelling on the instance name in both portal-instances.xml and
*-object.xml. Misspelling is usually what trips me up.
Also, does the portlet window show up in the list of portlet windows for that
page in the Management Portal. If you click on the portlet window there, and
the l
Also, I am almost certain that there is something not quite right with the
entry I added to the default-object.xml file. It doesn't complain when JBoss
starts up but I have a feeling it is not quite right.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076462
Almost missed that post. Thanks for your build script. Let me take a look at
that!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076461#4076461
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076461
___
Yes, I've added these portlets to portlet.xml and portlet-instances.xml as
well. I know that they are available as I am able to add them through the UI.
However, I want to add these declaratively so that they show up by default.
Plus, we don't want to allow our users to remove these portlets so
Did you also declare the instance in the appropriate portlet-instances.xml
file? The *-object.xml file is not used to declare instances, only to reference
them to define the portal and page contents.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076444#40764
| default
|
|AdminPortletWindow
|AdminPortletInstance
|center
|0
|
|
|AdminPortletWindow
|PortletInstance2
|
You could steal my Ant script:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=90647
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076435#4076435
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076435
Okay, thanks PeterJ. You've confirmed my suspicion. That's how I thought it
probably worked but was a little puzzled by what i saw - when I tried to wipe
out the only portlet entry in that file and re-started JBoss, it seemed to not
render any portlet at all. Maybe, something else is going on he
The portlet information is stored in the database. Changing the
default-object.xml file to remove portlets does not work, unless you
reinitialize the database (that is, start over from scratch). You can, however,
add new portlets by adding them to default-object.xml.
If you do not want to rein
Thanks PeterJ. I found 1 occurrence of the default-object.xml file in the JBoss
folder. Making any changes to that file doesn't seem to make any difference to
the list of portlets displayed on the default page..
Is there something else I need to look at? Thanks.
View the original post :
http:/
You did not state which version of the Portal you are using so I will assume
2.6.x.
The base page for the portal is given by the file
jboss-portal.sar/conf/data/default-object.xml. If you examine this file, you
will see that it declares the base portals but only the home (default) page on
the
19 matches
Mail list logo