I've deployed my portal in GateIn 3.2..... I've done so by configuring xml files(portal.xml, navigation.xml, pages.xml).... But after adding/deleting a new portlet, the changes are not getting reflected automatically... The changes will be reflected only after deleting 'data' folder...... I've specified <field name="importMode"> <string> overwrite</string> </field> in portal-configuration.xml.... Still I'm not able to overwrite the existing portal definition.... pls help me to rectify my issue..... Thnx in advance.......
you can try to have a look at this document "How to create new portal using extension" which can help you with overwriting default GateIn portal, you can move your configuration files to extension. Configuration files which you are changing are read only during the first startup from configuration files, configuration is then stored in JCR. That's why you have to delete 'data' folder and changes take effect. If you are interested only at updating portal/pages/nodes, you can have a look at GateIn management tool (for import/export).
thnx for ur reply....... Before GateIn I used jboss-portal 2.7.1 and there was a tag in *-object.xml and portlet-instances.xml to support portal overwriting feature. The tag was
<if-exists>overwrite</if-exists>....... Is there anything like that in GateIn 3.2 to support portal overwriting ?
Try setting the override parameter for NewPortalConfigListener in portal-configuration.xml to true. I couldn't find anywhere in the documentation that mentions this. If this works for you then we should probably make more clear in the documentation.
<value-param> <name>override</name> <description>The flag parameter to decide if portal metadata is overriden on restarting server</description> <value>true</value> </value-param>