You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Dutertry, Nicolas" <Ni...@HRACCESS.com> on 2006/06/16 09:22:15 UTC
RE : DatabasePageManager and fragment preferences
It works.
Thank you Randy.
--
Nicolas Dutertry
-----Message d'origine-----
De : Randy Watler [mailto:watler@wispertel.net]
Envoyé : jeudi 15 juin 2006 19:12
À : Jetspeed Users List
Objet : Re: DatabasePageManager and fragment preferences
Nicolas,
This has been fixed in 2.1-dev HEAD. Please verify.
Randy
On Thu, 2006-06-15 at 08:45 -0600, Randy Watler wrote:
> Nicolas,
>
> I am looking at this now... appears to indeed be a bug. Hopefully this
> does not take too long to fix :-).
>
> Randy
>
> On Thu, 2006-06-15 at 14:59 +0100, Dutertry, Nicolas wrote:
> > Hi,
> >
> > I am trying to use the DatabasePageManager in order to have my psml
stored
> > in the database.
> > I used the class PageImporter to copy psml files from my hard drive to
the
> > database.
> > Everything works fine except for fragments using preferences.
> >
> > For exemple, when I try to display the following psml :
> > <page>
> > <title>Test</title>
> > <fragment id="hra-test" type="layout"
> > name="jetspeed-layouts::VelocityOneColumnTable">
> > <fragment id="hra-testzz" type="portlet"
> > name="hrapplication::TestPortlet">
> > <property layout="OneColumn" name="row" value="0" />
> > <preference name="testpref">
> > <value>hello</value>
> > </preference>
> > </fragment>
> > </fragment>
> > </page>
> >
> > I get the following exception :
> >
> > java.lang.ClassCastException:
> > org.apache.jetspeed.om.page.impl.FragmentPreferenceImpl
> > at
> >
org.apache.jetspeed.om.preference.impl.FragmentPortletPreferenceSet.<init>(F
> > ragmentPortletPreferenceSet.java:75)
> > at
> >
org.apache.jetspeed.om.portlet.impl.FragmentPortletDefinition.getPreferenceS
> > et(FragmentPortletDefinition.java:229)
> > at
> >
org.apache.pluto.core.impl.PortletPreferencesImpl.<init>(PortletPreferencesI
> > mpl.java:73)
> > at
> >
org.apache.pluto.factory.impl.PortletPreferencesFactoryImpl.getPortletPrefer
> > ences(PortletPreferencesFactoryImpl.java:39)
> > at
> >
org.apache.pluto.factory.PortletObjectAccess.getPortletPreferences(PortletOb
> > jectAccess.java:127)
> > at
> >
org.apache.pluto.core.impl.RenderRequestImpl.getPreferences(RenderRequestImp
> > l.java:74)
> > at com.hraccess.portlet.TestPortlet.doView(TestPortlet.java:27)
> >
> > Can you tell me if it is a bug of DatabasePageManager or if I am doing
> > something wrong ?
> > Maybe there is somewhere in the jetspeed code a confusion between
> > org.apache.jetspeed.om.page.impl.FragmentPreferenceImpl and
> > org.apache.jetspeed.om.preference.impl.FragmentPreferenceImpl ?
> >
> > Regards,
> > --
> > Nicolas Dutertry
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org