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 Dan Harth <da...@yahoo.com> on 2007/02/01 21:27:51 UTC

Help: portlet.xml preference key-value(s) messed up

I attempt to use the velocity edit-pref.vm on a complex preferences (key with
mulitple values)
The user ID "admin" preferences got messed up and I  need to be able to
clear out the values for 
user "admin" so that he will default back to the good portlet.xml
configuration.

Is this possible?  I searched for portlet.xml related to this .. nothing
came up.  I'm sure others have encounter
similiar issues... I can't find custom configuration in Database tables, on
file system, etc....

Where is custom configuration per user for portlets like weather, etc?  can
it be deleted or flushed out if I am unable to change via complex
"EditPage"?
-- 
View this message in context: http://www.nabble.com/Help%3A-portlet.xml-preference-key-value%28s%29-messed-up-tf3157142.html#a8755557
Sent from the Jetspeed - User mailing list archive at Nabble.com.


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


Re: Help: portlet.xml preference key-value(s) messed up

Posted by Dan Harth <da...@yahoo.com>.
Guys..
You can disregard replies to this.  I understand the complexity and the
design in regards to the database tables.
I was able to repair, but wouldn't advise this method because possiblity
more harm than good could be done.

I'm very impressed with J2, this issue normally wouldn't come up if I knew
what I was doing.  In any event.  It was a great learning situation to
determine some of the inter-workings of J2...

Thanks..


Dan Harth wrote:
> 
> I attempt to use the velocity edit-pref.vm on a complex preferences (key
> with mulitple values)
> The user ID "admin" preferences got messed up and I  need to be able to
> clear out the values for 
> user "admin" so that he will default back to the good portlet.xml
> configuration.
> 
> Is this possible?  I searched for portlet.xml related to this .. nothing
> came up.  I'm sure others have encounter
> similiar issues... I can't find custom configuration in Database tables,
> on file system, etc....
> 
> Where is custom configuration per user for portlets like weather, etc? 
> can it be deleted or flushed out if I am unable to change via complex
> "EditPage"?
> 

-- 
View this message in context: http://www.nabble.com/Help%3A-portlet.xml-preference-key-value%28s%29-messed-up-tf3157142.html#a8757881
Sent from the Jetspeed - User mailing list archive at Nabble.com.


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


Re: Help: portlet.xml preference key-value(s) messed up

Posted by Philip Mark Donaghy <ph...@gmail.com>.
Hi Dan,

On 2/1/07, Dan Harth <da...@yahoo.com> wrote:
>
> I attempt to use the velocity edit-pref.vm on a complex preferences (key with
> mulitple values)
> The user ID "admin" preferences got messed up and I  need to be able to
> clear out the values for
> user "admin" so that he will default back to the good portlet.xml
> configuration.
>
> Is this possible?  I searched for portlet.xml related to this .. nothing
> came up.  I'm sure others have encounter
> similiar issues... I can't find custom configuration in Database tables, on
> file system, etc....
>
> Where is custom configuration per user for portlets like weather, etc?  can
> it be deleted or flushed out if I am unable to change via complex
> "EditPage"?

The preferences are stored in the database. To the best of my
knowledge you can find them in the table PREFS_PROPERTY_VALUE table.

If you have one psml page with one portlet find the fragment id in the
psml and issue this query with the specified the fragment id in the
place of PORTLET_ID.

select * from PREFS_NODE where FULL_PATH like
'/portlet_entity/PORTLET_ID/admin/%'

It will tell you all the preferences set for the user admin for that
specific fragment (portlet instance). And the query,

select * from PREFS_PROPERTY_VALUE where NODE_ID = ANY_NODE_ID

will tell you the values.

This applies to the latest subversion of j2. Older versions did not
set preferences per user.

Philip

> --
> View this message in context: http://www.nabble.com/Help%3A-portlet.xml-preference-key-value%28s%29-messed-up-tf3157142.html#a8755557
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


-- 
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

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