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 Ed...@swisscom.com on 2003/07/25 16:53:54 UTC

problems with .xreg updating

Hi!

I have a problem with the updating of my .xreg files, especially with my local-portlets.xreg!
I have modified the database-browse-portlet and tried to register my new modified portlet in the local-portlets.xreg. This was no problem at all, but now i want to change the sql statement in this new portlet-entry. This seems to be a big problem.

First I can't recognise a change in the portlet, when i save the modified local-portlets.xreg. How can I "refresh" the view?

Second if I restart the whole tomcat (to be sure to see my changes), my old local-portlets.xreg is restored as if I've never changed it. So the portlet also doesn't change in any way. Even if I delete the whole local-portlets.xreg the file appears after a restart of the tomcat again.

I've no idea how to solve this problem.
Thanks for any help!

My portlet-entry in the local-portlets.xreg:

<portlet-entry name="Edia" hidden="false" type="ref"
        parent="DatabaseBrowserPortlet" application="false">
        <meta-info>
            <title>News</title>
            <description>Simple Test Database Browser by Edi</description>
        </meta-info>
        <classname>org.apache.jetspeed.portal.portlets.browser.DatabaseBrowserPortlet</classname>
        <parameter name="template" value="edis-database-browser-portlet"
            hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="customizeTemplate"
            value="database-browser-customize" hidden="true"
            cachedOnName="true" cachedOnValue="true"/>
        <parameter name="action"
            value="portlets.browser.DatabaseBrowserAction" hidden="true"
            cachedOnName="true" cachedOnValue="true"/>
        <parameter name="sql"
            value="select newsdate, newscontent from news"
            hidden="false" cachedOnName="true" cachedOnValue="true"/>
        <parameter name="windowSize" value="5" hidden="false"
            cachedOnName="true" cachedOnValue="true"/>
        <media-type ref="html"/>
        <url cachedOnURL="true"/>
        <category group="Jetspeed">database</category>
    </portlet-entry>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: problems with .xreg updating

Posted by Gerry Reno <gr...@yahoo.com>.
  The registry files are written out on shutdown.  Before making
changes make sure that you have shutdown Tomcat, then make your
changes, then restart Tomcat and you should see your changes.

Gerry Reno

--- Edmund.Mielach@swisscom.com wrote:
> Hi!
> 
> I have a problem with the updating of my .xreg files, especially with
> my local-portlets.xreg!
> I have modified the database-browse-portlet and tried to register my
> new modified portlet in the local-portlets.xreg. This was no problem
> at all, but now i want to change the sql statement in this new
> portlet-entry. This seems to be a big problem.
> 
> First I can't recognise a change in the portlet, when i save the
> modified local-portlets.xreg. How can I "refresh" the view?
> 
> Second if I restart the whole tomcat (to be sure to see my changes),
> my old local-portlets.xreg is restored as if I've never changed it.
> So the portlet also doesn't change in any way. Even if I delete the
> whole local-portlets.xreg the file appears after a restart of the
> tomcat again.
> 
> I've no idea how to solve this problem.
> Thanks for any help!
> 
> My portlet-entry in the local-portlets.xreg:
> 
> <portlet-entry name="Edia" hidden="false" type="ref"
>         parent="DatabaseBrowserPortlet" application="false">
>         <meta-info>
>             <title>News</title>
>             <description>Simple Test Database Browser by
> Edi</description>
>         </meta-info>
>        
>
<classname>org.apache.jetspeed.portal.portlets.browser.DatabaseBrowserPortlet</classname>
>         <parameter name="template"
> value="edis-database-browser-portlet"
>             hidden="true" cachedOnName="true" cachedOnValue="true"/>
>         <parameter name="customizeTemplate"
>             value="database-browser-customize" hidden="true"
>             cachedOnName="true" cachedOnValue="true"/>
>         <parameter name="action"
>             value="portlets.browser.DatabaseBrowserAction"
> hidden="true"
>             cachedOnName="true" cachedOnValue="true"/>
>         <parameter name="sql"
>             value="select newsdate, newscontent from news"
>             hidden="false" cachedOnName="true" cachedOnValue="true"/>
>         <parameter name="windowSize" value="5" hidden="false"
>             cachedOnName="true" cachedOnValue="true"/>
>         <media-type ref="html"/>
>         <url cachedOnURL="true"/>
>         <category group="Jetspeed">database</category>
>     </portlet-entry>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org