thanks a lot !

pierre

> -----Original Message-----
> From: Weaver, Scott [mailto:[EMAIL PROTECTED]
> Sent: mercredi, 12. mars 2003 15:09
> To: 'Jetspeed Users List'
> Subject: RE: id parameter in psml
> 
> 
> Pierre,
> 
> > So you mean it's definitely not a good method to copy the 
> psml from a user
> > (eg. turbine) to generate a default psml for new users who 
> don't have psml
> > (in this case I don't create the users from the jetspeed 
> interface but
> > directly in the db, from another application, so the psml 
> is not created
> > automatically) ?
> 
> It's okay to copy a psml with all of it's ids intact.  The 
> portlet transactions are atomic to that user and that user 
> only, so having duplicate js_peids across multiple profiles 
> (psmls) is fine and should not cause you any problems.  Think 
> of the individual psmls as separate databases, one per user.  
> Since they never interact, they can have duplicate primary 
> keys with no side effects.
> 
> > How about if portlets are inserted in a user's psml another 
> way than the
> > customizer ? How should we generate these id's ?
> 
> I would try to stick with the customizer.  However, as a long 
> as you do not use the same id twice, you could safely make up 
> your own when manually altering the psml.
> 
> -scott
> 
> 
> 
> 
> > -----Original Message-----
> > From: Pierre Henry [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 12, 2003 8:56 AM
> > To: Jetspeed Users List
> > Subject: RE: id parameter in psml
> > 
> > Thanks Scott for the info.
> > 
> > So you mean it's definitely not a good method to copy the 
> psml from a user
> > (eg. turbine) to generate a default psml for new users who 
> don't have psml
> > (in this case I don't create the users from the jetspeed 
> interface but
> > directly in the db, from another application, so the psml 
> is not created
> > automatically) ?
> > 
> > How about if portlets are inserted in a user's psml another 
> way than the
> > customizer ? How should we generate these id's ?
> > 
> > Pierre
> > 
> > > -----Original Message-----
> > > From: Weaver, Scott [mailto:[EMAIL PROTECTED]
> > > Sent: mercredi, 12. mars 2003 14:46
> > > To: 'Jetspeed Users List'
> > > Subject: RE: id parameter in psml
> > >
> > >
> > > Hi Pierre,
> > >
> > > > What is the meaning of the id field of a portlet (or group
> > > of portlet)
> > > > entry
> > > > in the psml ? (eg. <entry id="P-f39483b0dd-10001"
> > > > parent="emp2">...</entry>)
> > >
> > > It is a unique identifier for that portlet that is generated
> > > when you add a portlet via the customizer.
> > >
> > > > Are these id's related to the js_peid of the portlet object
> > > ? Are there
> > > > any
> > > > nefast consequences if I copy a psml file which contains
> > > entries with such
> > > > id's from one user to another (they would then have the 
> same id's) ?
> > >
> > > js_peid and the id in the psml are one in the same.  Jetspeed
> > > use to use the name of the portlet as a unique identifier,
> > > but was changed.  By using a unique js_peid you can have more
> > > than one of the same portlet in a pane where as before, that
> > > was not possible.  The js_peid also helps control action
> > > event execution by limiting the execution to only the portlet
> > > whose js_peid matches that of request variable submitted.  We
> > > had issues in the past where all like named event methods
> > > were being fired when action execution was requested.
> > >
> > > Deleting the id may not seem to have any immediate effects,
> > > but could definitely cause you problems in the future.  Best
> > > to leave it alone.
> > >
> > > -scott
> > >
> > >
> > >
> 

Reply via email to