[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-12 Thread legolas
Hi Julian (or others), I have implemented this as an MBean that instantiates each portlet instance during its start method, and destroys them again during the stop method. Before instantiation however I check if the instance name is already used, if so I write a warn to the log. The first time

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-11 Thread MNLipp
OK, now that I have been directed to instantiating the foreign portlet programatically, I've tried. I'm doing things from a servlet's init method. Now please do not tell me to use an MBean. It doesn't fit in my environment, and it should be possible to do it from a servlet's init method,

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-09 Thread legolas
I have implemented it as follows: ValueMap preferences = instance.getPreferences(); | while (iterator.hasNext()) | { | Element preference = (Element) iterator.next(); | String name = preference.valueOf(PREFERENCE_NAME); | Value originalValue = preferences.getValue(name); |

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-08 Thread [EMAIL PROTECTED]
at the end preferences are stored as strings in the db with an integer which says what data type it is. this is the potential usage as in reality we only use strings because JSR168 does not support more than that (unless you write your extension). what is the interface you are using ?

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-07 Thread legolas
Hi, I am currently implementing the above mentioned component, and I would much appreciate if someone can explain me how I can create a typed Value instance for the preferences? Does JBoss portal provides any means for retrieving th etype of a preference value or do I have to implement this

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-06 Thread legolas
Peter thank you for clarifying that, and Julian thank you for showing how to get hold of the instance container. We will work on an MBean based solution that inserts its definitions using the instance container. Grtz, Marcel View the original post :

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-05 Thread [EMAIL PROTECTED]
If you write an MBean, the best way is to inject it into your MBean using : |mbean ... | ... | depends | optional-attribute-name=InstanceContainer | proxy-type=attributeportal:container=Instance/depends |... |mbean | If you want to do

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-05 Thread legolas
Hi Julian (or others), Can you please explain what the best way is to get hold of the InstanceContainer object? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4011289#4011289 Reply to the post :

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-05 Thread PeterJ
To clear up my earlier post, I am not implying that I can have a war file with just a porltet-instances.xml file and an *-object.xml file. That will not work because the Portal ignores portlet-instances.xml files if there is no portlet to deploy. Thus, I need to declare at least one porltet,

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-02 Thread legolas
We would like to NOT define the specific instances including all its parameters in the portlet war file. This would mean that we need to repackage the war file each time an instance needs to be added. We want to create a separate war file that contains the portal definition in a

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-02-02 Thread [EMAIL PROTECTED]
Today what you want is not possible anymore due to the issue I explained before (portlets may be deployed before the -object.xml file). However it is possible to do it programatically using the services I explained before. What could be possible is to have the insertion of XML files using JMX,

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-01-31 Thread [EMAIL PROTECTED]
portlet-instances.xml file have to be packaged with a war file because they require the portlet to be present and the only way to achieve that is by doing such a deployment. otherwise the -instances.xml file could be created before the war file containing the portlet is deployed. you still

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-01-31 Thread PeterJ
Consider this situation. I have a portlet in a war file, and in the portlet-instance.xml file I declare an instance of my portlet, and also create an instance of, for example, CMSPortlet. On 2.4.x, I can deploy my war file and get both my portlet and the CMSPorltet instances. Are you saying

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-01-31 Thread [EMAIL PROTECTED]
2.6 work the same as 2.4 works, so there may be some misunderstanding here. What is not possible in 2.4 and 2.6 is to create portlet instances in -object.xml outside of war files. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4009133#4009133 Reply to the post

[jboss-user] [JBoss Portal] - Re: Packaging of portlet-instances.xml

2007-01-31 Thread PeterJ
Thanks for clearing that up, Julien. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4009175#4009175 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4009175 ___ jboss-user mailing