You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "David DeWolf (JIRA)" <pl...@jakarta.apache.org> on 2005/08/03 14:59:36 UTC

[jira] Resolved: (PLUTO-147) Portlet init params get lost: bad castor mapping file 'castor-portlet-xml-mapping.xml'

     [ http://issues.apache.org/jira/browse/PLUTO-147?page=all ]
     
David DeWolf resolved PLUTO-147:
--------------------------------

    Fix Version: 1.1.0-ALPHA
     Resolution: Fixed

Nice patch.  Thanks.

> Portlet init params get lost: bad castor mapping file 'castor-portlet-xml-mapping.xml'
> --------------------------------------------------------------------------------------
>
>          Key: PLUTO-147
>          URL: http://issues.apache.org/jira/browse/PLUTO-147
>      Project: Pluto
>         Type: Bug
>   Components: portlet container
>     Versions: 1.1.0-ALPHA
>     Reporter: ZHENG Zhong
>      Fix For: 1.1.0-ALPHA

>
> When loading PortletAppDD, all portlet's init params are lost. The reason is:
> Class InitParamDD is in the common package for both portlets and servlets. But in fact, the XML syntax are not the same: for servlets, an init param is defined by <param-name> and <param-value> elements, while for portlets, an init param is defined by <name> and <value> elements.
> This bug may be fixed by updating the castor mapping file 'castor-portlet-xml-mapping.xml' ( in portlet-descriptor-impl/src/resources/xml/org/apache/pluto/descriptors/services/castor/). I changed the following elements, and get the problem resolved.
>   <class name="org.apache.pluto.descriptors.portlet.PortletDD">
>     ... ... ... ...
>     <field name="InitParams" type="org.apache.pluto.descriptors.common.InitParamDD" collection="arraylist">
>       <bind-xml name="init-param" node="element" /> 
>     </field>
>     ... ... ... ...
>   </class>
>   
>   <class name="org.apache.pluto.descriptors.common.InitParamDD">
>     <map-to xml="init-param"/>
>     <field name="ParamName" type="java.lang.String">
>       <bind-xml name="name" />
>     </field>
>     <field name="ParamValue" type="java.lang.String">
>       <bind-xml name="value" />
>     </field>
>   </class>
> Regards.
> ZHENG Zhong

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira