hypercontent-users Mailing List for HyperContent (Page 11)
Brought to you by:
alexvigdor
You can subscribe to this list here.
2004 |
Jan
|
Feb
(4) |
Mar
(6) |
Apr
(4) |
May
(3) |
Jun
(1) |
Jul
(7) |
Aug
(4) |
Sep
(31) |
Oct
(11) |
Nov
(30) |
Dec
(22) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(23) |
Feb
(11) |
Mar
(22) |
Apr
(13) |
May
(31) |
Jun
(27) |
Jul
(32) |
Aug
(4) |
Sep
(25) |
Oct
(21) |
Nov
(31) |
Dec
(28) |
2006 |
Jan
(14) |
Feb
(12) |
Mar
(17) |
Apr
(21) |
May
(6) |
Jun
(4) |
Jul
(26) |
Aug
(24) |
Sep
(19) |
Oct
(24) |
Nov
(34) |
Dec
(17) |
2007 |
Jan
(10) |
Feb
(43) |
Mar
(60) |
Apr
(10) |
May
(20) |
Jun
(2) |
Jul
(17) |
Aug
(38) |
Sep
(45) |
Oct
(5) |
Nov
(4) |
Dec
(5) |
2008 |
Jan
|
Feb
(1) |
Mar
|
Apr
(10) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(4) |
Sep
(1) |
Oct
(5) |
Nov
(1) |
Dec
(1) |
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: tom t. <j_l...@ya...> - 2007-02-26 03:46:03
|
Hi, I found the issue, We enhanced the build.xml to have the following target <target name="copyBootStrapOnly" depends="compile"> <copy todir="${repositories.base}/bootstrap" overwrite="true"> <fileset dir="repositories/bootstrap" > <include name="**/*"/> </fileset> </copy> <replace dir="${repositories.base}/bootstrap" replacefilterfile="${config}/${server}.properties"> <include name="**/*.properties" /> <include name="**/*.xml" /> </replace> </target> Reason for the this introduction 1) We keep two copies of the repositories, one sync with our Subversion copy and other copy linked to HC 2) Each time a change is done to interface screens, messages or even pipelines.xml e.g. CAS url we need to copy from the working copy to the HC enable copy We have parameterize lot of stuff and checkedn in subversion e.g CAS url, hypercontent url e.g This copying thing caused the problem, Hence I narrow down the copying things to <copy todir="${repositories.base}/bootstrap" overwrite="true"> <fileset dir="repositories/bootstrap" > <include name="**/screens/**"/> <include name="**/l10n/**"/> .... I like to know How other institutions go about doing this, e.g parameterization Also let us know if there is any impact with our approach (copying seperately to bootstrap project) Thanks, --- Adam Carl <ac...@co...> wrote: > You may be right. I tried it the other day and it > didn't work so I thought > it was an admin only feature. But now that I think > about it more I would > check the following file: /config/permissions.xml > for the user 36test. I'm > guessing that when a person first logs in the file > should get updated to > allow for them to edit the file. Maybe there was > an error or a bug that > prevented this from happening. > > > Adam > > > > > On 2/25/07 7:55 PM, "tom tom" <j_l...@ya...> > wrote: > > > Hi Adam, > > > > Yes hypercontent adminscould edit some one else > > profile, in addition indivitual users can update > their > > proile as well by clicking the right hand top > link. > > > > So that they can update their email addresses and > > fullname attributes. > > > > You dont need to be a administrator to update your > > profile, > > > > This is the functionality which I am referring to > Not > > the Adminstrator updates some one else's profile. > > > > When a individual user clicks his/her profile link > it > > says you are not authorized to ......user.xml > > > > Let me know if I am wrong. > > > > > > Thanks > > --- Adam Carl <ac...@co...> wrote: > > > >> Not sure if this helps but I thought only a > >> hypercontent admins could edit > >> user profiles. Is 36test in set up in the > >> group:admin in > >> /config/groups.xml? > >> > >> Adam > >> > >> > >> On 2/25/07 6:28 PM, "tom tom" > <j_l...@ya...> > >> wrote: > >> > >>> Hi, > >>> > >>> With no reason, when I try to update the > profile. > >> HC > >>> gives the following error > >>> > >>> You are not authorized to access > >>> > >> > > > http://localhost/hypercontent/users/3/36/36test/user.xml > >>> > >>> My userId is 36test and login is successful and > >> just > >>> that doesnt allow me to update the profile, but > it > >>> worked fine couple of days back, > >>> > >>> What could be the reason, 36test is in the group > >>> author > >>> > >>> Thanks, > >>> > >>> > >>> > >>> > >> > > > ______________________________________________________________________________ > >>> ______ > >>> Don't pick lemons. > >>> See all the new 2007 cars at Yahoo! Autos. > >>> http://autos.yahoo.com/new_cars.html > >>> > >>> > >> > > > ------------------------------------------------------------------------- > >>> Take Surveys. Earn Cash. Influence the Future of > >> IT > >>> Join SourceForge.net's Techsay panel and you'll > >> get the chance to share your > >>> opinions on IT & business topics through brief > >> surveys-and earn cash > >>> > >> > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >>> _______________________________________________ > >>> Hypercontent-users mailing list > >>> Hyp...@li... > >>> > >> > > > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > >> > >> > > > > > > > > > > > ______________________________________________________________________________ > > ______ > > Cheap talk? > > Check out Yahoo! Messenger's low PC-to-Phone call > rates. > > http://voice.yahoo.com > > ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com |
From: Adam C. <ac...@co...> - 2007-02-26 01:02:51
|
You may be right. I tried it the other day and it didn't work so I thought it was an admin only feature. But now that I think about it more I would check the following file: /config/permissions.xml for the user 36test. I'm guessing that when a person first logs in the file should get updated to allow for them to edit the file. Maybe there was an error or a bug that prevented this from happening. Adam On 2/25/07 7:55 PM, "tom tom" <j_l...@ya...> wrote: > Hi Adam, > > Yes hypercontent adminscould edit some one else > profile, in addition indivitual users can update their > proile as well by clicking the right hand top link. > > So that they can update their email addresses and > fullname attributes. > > You dont need to be a administrator to update your > profile, > > This is the functionality which I am referring to Not > the Adminstrator updates some one else's profile. > > When a individual user clicks his/her profile link it > says you are not authorized to ......user.xml > > Let me know if I am wrong. > > > Thanks > --- Adam Carl <ac...@co...> wrote: > >> Not sure if this helps but I thought only a >> hypercontent admins could edit >> user profiles. Is 36test in set up in the >> group:admin in >> /config/groups.xml? >> >> Adam >> >> >> On 2/25/07 6:28 PM, "tom tom" <j_l...@ya...> >> wrote: >> >>> Hi, >>> >>> With no reason, when I try to update the profile. >> HC >>> gives the following error >>> >>> You are not authorized to access >>> >> > http://localhost/hypercontent/users/3/36/36test/user.xml >>> >>> My userId is 36test and login is successful and >> just >>> that doesnt allow me to update the profile, but it >>> worked fine couple of days back, >>> >>> What could be the reason, 36test is in the group >>> author >>> >>> Thanks, >>> >>> >>> >>> >> > ______________________________________________________________________________ >>> ______ >>> Don't pick lemons. >>> See all the new 2007 cars at Yahoo! Autos. >>> http://autos.yahoo.com/new_cars.html >>> >>> >> > ------------------------------------------------------------------------- >>> Take Surveys. Earn Cash. Influence the Future of >> IT >>> Join SourceForge.net's Techsay panel and you'll >> get the chance to share your >>> opinions on IT & business topics through brief >> surveys-and earn cash >>> >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> >> > https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> > > > > > ______________________________________________________________________________ > ______ > Cheap talk? > Check out Yahoo! Messenger's low PC-to-Phone call rates. > http://voice.yahoo.com |
From: tom t. <j_l...@ya...> - 2007-02-26 00:55:47
|
Hi Adam, Yes hypercontent adminscould edit some one else profile, in addition indivitual users can update their proile as well by clicking the right hand top link. So that they can update their email addresses and fullname attributes. You dont need to be a administrator to update your profile, This is the functionality which I am referring to Not the Adminstrator updates some one else's profile. When a individual user clicks his/her profile link it says you are not authorized to ......user.xml Let me know if I am wrong. Thanks --- Adam Carl <ac...@co...> wrote: > Not sure if this helps but I thought only a > hypercontent admins could edit > user profiles. Is 36test in set up in the > group:admin in > /config/groups.xml? > > Adam > > > On 2/25/07 6:28 PM, "tom tom" <j_l...@ya...> > wrote: > > > Hi, > > > > With no reason, when I try to update the profile. > HC > > gives the following error > > > > You are not authorized to access > > > http://localhost/hypercontent/users/3/36/36test/user.xml > > > > My userId is 36test and login is successful and > just > > that doesnt allow me to update the profile, but it > > worked fine couple of days back, > > > > What could be the reason, 36test is in the group > > author > > > > Thanks, > > > > > > > > > ______________________________________________________________________________ > > ______ > > Don't pick lemons. > > See all the new 2007 cars at Yahoo! Autos. > > http://autos.yahoo.com/new_cars.html > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of > IT > > Join SourceForge.net's Techsay panel and you'll > get the chance to share your > > opinions on IT & business topics through brief > surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Hypercontent-users mailing list > > Hyp...@li... > > > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com |
From: Adam C. <ac...@co...> - 2007-02-26 00:09:59
|
Not sure if this helps but I thought only a hypercontent admins could edit user profiles. Is 36test in set up in the group:admin in /config/groups.xml? Adam On 2/25/07 6:28 PM, "tom tom" <j_l...@ya...> wrote: > Hi, > > With no reason, when I try to update the profile. HC > gives the following error > > You are not authorized to access > http://localhost/hypercontent/users/3/36/36test/user.xml > > My userId is 36test and login is successful and just > that doesnt allow me to update the profile, but it > worked fine couple of days back, > > What could be the reason, 36test is in the group > author > > Thanks, > > > > ______________________________________________________________________________ > ______ > Don't pick lemons. > See all the new 2007 cars at Yahoo! Autos. > http://autos.yahoo.com/new_cars.html > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: tom t. <j_l...@ya...> - 2007-02-25 23:28:27
|
Hi, With no reason, when I try to update the profile. HC gives the following error You are not authorized to access http://localhost/hypercontent/users/3/36/36test/user.xml My userId is 36test and login is successful and just that doesnt allow me to update the profile, but it worked fine couple of days back, What could be the reason, 36test is in the group author Thanks, ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html |
From: Carl P B. <C.P...@hu...> - 2007-02-23 15:11:14
|
***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Adam C. <ac...@co...> - 2007-02-23 14:50:00
|
Carl, I see you guys have a =B3Paste from Word=B2 option on the WYSIWYG editor. Do you find it useful? Adam On 2/23/07 9:21 AM, "Carl Barrow" <C.P...@hu...> wrote: > Hi All, > =20 > We have just finished the first version of our user documentation. It de= tails > most of the things a standard content editor here in Hull would need to d= o on > a daily basis. It is the first version so there will be alterations and = I=B9m > waiting for some user feedback after a giving the documentation out at tw= o > training sessions. You can download the documentation from the Hull > HyperContent Website http://www.hull.ac.uk/cms. > =20 > Many Thanks > Carl > =20 > ************************************* > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 >=20 > http://www.hull.ac.uk/cms > ************************************* > =20 >=20 >=20 > *************************************************************************= ***** > *********** > To view the terms under which this email is distributed, please go to > http://www.hull.ac.uk/legal/email_disclaimer.html > *************************************************************************= ***** > *********** >=20 > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >=20 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2007-02-23 14:21:27
|
***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <al...@bi...> - 2007-02-23 13:44:52
|
Make sure that in the user profile, the "Full Name" field is completed. The full name is taken from the longer full name field at the top, is not reconstructed from the given name and family name fields. Perhaps that's the problem? Cheers, Alex On Feb 22, 2007, at 11:09 PM, tom tom wrote: > Hi Alex, > I started with the item 3 that is approvals.xml fix. > > > I incooperate your change as follows > ... > .... > if(var.size()>=1){ > String name = var.item(0); > if(Strings.equals(name,"actor") || > Strings.equals(name,"user")){ > > var.set(0,Session.getUser(event.getSubject()).getName()); > }else if > (Strings.equals(name,"user-full-name")){ > > > var.set(0,event.getUser().getFullName()); > > } > > ..... > .... > > but it didnt work, if always go to the first block > which is if(Strings.equals(name,"actor") || > Strings.equals(name,"user")) > > Then what I did was inside this block instead of > > var.set(0,Session.getUser(event.getSubject()).getName()); > > I changed it to > > var.set(0,Session.getUser(event.getSubject()).getFullName()); > > Then the entire functinality didnt work. > > > Well my intention is to send the mail with Full Name > instead of userIds. > > > > Let me know how to proceed on this. > > Have I done something wrong.? > > Thanks, > > > --- Alex Vigdor <al...@bi...> wrote: > >> >> On Feb 20, 2007, at 9:23 PM, tom tom wrote: >> >>> Hi, >>> >>> I got hypercontent working with apache2.2 with >> tomcat >>> with the use of mod_jk, Hence am moving slowly >> towards >>> the production setup. >>> >>> I got following doubts/questions which am not very >>> clear. >>> >>> >>> 1) What is the difference between build and >> publish as >>> far as the HC life cycle is concerned. How >> build/build >>> -all differ from publish >> >> Build and publish represent a two-step publishing >> process: the first >> step renders the static output on a staging >> filesystem that can be >> used to review the content before it is copied to >> the publishing >> filesystem. As it turns out, most people are >> perfectly happy with a >> one-step publishing workflow that renders the static >> output directly >> to the public web space. To use this simpler >> approach, adjust the >> events in /config/workflow/publish.xml to something >> like this >> >> <event name="publish" permissions="publish"> >> <variable name="publisher" value="${actor}"/> >> <render path="${path}" destination="/publish/" >> force="false" >> delete="true"/> >> <nq who="${publisher}"/> >> <nq q="publishing"/> >> </event> >> >> <event name="publish-all" permissions="publish"> >> <variable name="publisher" value="${actor}"/> >> <render path="/" destination="/publish/" >> force="false" delete="true"/> >> <nq who="${publisher}"/> >> <nq q="publishing"/> >> </event> >> >> Then you can remove /config/workflow/build.xml and >> any build >> filesystem. "/publish/" refers to your publish >> filesystem in / >> config/project-definition.xml >> >>> >>> >>> 2) As I am running HC and apache in one >> machine(with >>> mod_jk) should I use build and publish at all? >> Isnt >>> author->preview->approve enough? >>> >>> Initialy I thought I dont want to use but later >>> realize that if I dont use build and publish >> content >>> will be served by tomcat (even with mod_jk). Due >> to >>> shis reason >>> I introduced the build-url and build and publish >> the >>> content to apache docs folder so that static >> content >>> will be served directly by apache. Please let me >> know >>> we are on the correct track? If the build and >> publish >>> not required align with our configuration pls do >> let >>> us know? >> >> I suggest >> >> author->preview->approve->publish >> >> if you drop the build step as outlined above >> >>> >>> >>> >>> 3) in the Approvals.xml it refers to the ${actor} >>> variable and assign it to a variable called author >>> >>> Specially when sending reminders it sends the >> message >>> with the uid not with the fullname. >>> How to get the username/full name (assuming he/she >> has >>> updated his/her profile) within the approvals.xml >> and >>> send the mail accordinlgy instead of the uid(this >> is a >>> numeric in our case) What is the variable that I >>> should refer within the approvals.xml to get the >> users >>> name. >> >> This isn't supported at the moment, but you could >> implement it around >> line 57 of >> org.hypercontent.workflow.command.AbstractCommand >> following the pattern there to associate a variable >> name with the >> results of a VCard lookup, something like >> >> else if(Strings.equals(name,"user-full-name")){ >> try { >> >> var.set(0,event.getUser().getFullName())); >> } >> catch(IOException e) { >> Logger.error(e); >> } >> } >> >> Let me know if that works for you, and I can check >> it into CVS! >> >> >>> >>> >>> 4) As far as the UI screens are concerned I need >> to >>> change the name of the texts in some of the UIs >>> specially workflow. >>> >>> I have seen references as follows >>> $bundle.get("XXXXXXXXX") >>> I just want to know where these screen text >> constants >>> are kept, from which property file it get loaded >> to >>> $bundle >> >> The localization files are stored in the /l10n >> directory of the >> bootstrap repository. >> >> Cheers, >> Alex >> >> >> > > > > > ______________________________________________________________________ > ______________ > Cheap talk? > Check out Yahoo! Messenger's low PC-to-Phone call rates. > http://voice.yahoo.com > |
From: tom t. <j_l...@ya...> - 2007-02-23 04:09:18
|
Hi Alex, I started with the item 3 that is approvals.xml fix. I incooperate your change as follows ... .... if(var.size()>=1){ String name = var.item(0); if(Strings.equals(name,"actor") || Strings.equals(name,"user")){ var.set(0,Session.getUser(event.getSubject()).getName()); }else if (Strings.equals(name,"user-full-name")){ var.set(0,event.getUser().getFullName()); } ..... .... but it didnt work, if always go to the first block which is if(Strings.equals(name,"actor") || Strings.equals(name,"user")) Then what I did was inside this block instead of var.set(0,Session.getUser(event.getSubject()).getName()); I changed it to var.set(0,Session.getUser(event.getSubject()).getFullName()); Then the entire functinality didnt work. Well my intention is to send the mail with Full Name instead of userIds. Let me know how to proceed on this. Have I done something wrong.? Thanks, --- Alex Vigdor <al...@bi...> wrote: > > On Feb 20, 2007, at 9:23 PM, tom tom wrote: > > > Hi, > > > > I got hypercontent working with apache2.2 with > tomcat > > with the use of mod_jk, Hence am moving slowly > towards > > the production setup. > > > > I got following doubts/questions which am not very > > clear. > > > > > > 1) What is the difference between build and > publish as > > far as the HC life cycle is concerned. How > build/build > > -all differ from publish > > Build and publish represent a two-step publishing > process: the first > step renders the static output on a staging > filesystem that can be > used to review the content before it is copied to > the publishing > filesystem. As it turns out, most people are > perfectly happy with a > one-step publishing workflow that renders the static > output directly > to the public web space. To use this simpler > approach, adjust the > events in /config/workflow/publish.xml to something > like this > > <event name="publish" permissions="publish"> > <variable name="publisher" value="${actor}"/> > <render path="${path}" destination="/publish/" > force="false" > delete="true"/> > <nq who="${publisher}"/> > <nq q="publishing"/> > </event> > > <event name="publish-all" permissions="publish"> > <variable name="publisher" value="${actor}"/> > <render path="/" destination="/publish/" > force="false" delete="true"/> > <nq who="${publisher}"/> > <nq q="publishing"/> > </event> > > Then you can remove /config/workflow/build.xml and > any build > filesystem. "/publish/" refers to your publish > filesystem in / > config/project-definition.xml > > > > > > > 2) As I am running HC and apache in one > machine(with > > mod_jk) should I use build and publish at all? > Isnt > > author->preview->approve enough? > > > > Initialy I thought I dont want to use but later > > realize that if I dont use build and publish > content > > will be served by tomcat (even with mod_jk). Due > to > > shis reason > > I introduced the build-url and build and publish > the > > content to apache docs folder so that static > content > > will be served directly by apache. Please let me > know > > we are on the correct track? If the build and > publish > > not required align with our configuration pls do > let > > us know? > > I suggest > > author->preview->approve->publish > > if you drop the build step as outlined above > > > > > > > > > 3) in the Approvals.xml it refers to the ${actor} > > variable and assign it to a variable called author > > > > Specially when sending reminders it sends the > message > > with the uid not with the fullname. > > How to get the username/full name (assuming he/she > has > > updated his/her profile) within the approvals.xml > and > > send the mail accordinlgy instead of the uid(this > is a > > numeric in our case) What is the variable that I > > should refer within the approvals.xml to get the > users > > name. > > This isn't supported at the moment, but you could > implement it around > line 57 of > org.hypercontent.workflow.command.AbstractCommand > following the pattern there to associate a variable > name with the > results of a VCard lookup, something like > > else if(Strings.equals(name,"user-full-name")){ > try { > > var.set(0,event.getUser().getFullName())); > } > catch(IOException e) { > Logger.error(e); > } > } > > Let me know if that works for you, and I can check > it into CVS! > > > > > > > > 4) As far as the UI screens are concerned I need > to > > change the name of the texts in some of the UIs > > specially workflow. > > > > I have seen references as follows > > $bundle.get("XXXXXXXXX") > > I just want to know where these screen text > constants > > are kept, from which property file it get loaded > to > > $bundle > > The localization files are stored in the /l10n > directory of the > bootstrap repository. > > Cheers, > Alex > > > ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com |
From: Alex V. <al...@bi...> - 2007-02-22 04:24:33
|
On Feb 20, 2007, at 9:23 PM, tom tom wrote: > Hi, > > I got hypercontent working with apache2.2 with tomcat > with the use of mod_jk, Hence am moving slowly towards > the production setup. > > I got following doubts/questions which am not very > clear. > > > 1) What is the difference between build and publish as > far as the HC life cycle is concerned. How build/build > -all differ from publish Build and publish represent a two-step publishing process: the first step renders the static output on a staging filesystem that can be used to review the content before it is copied to the publishing filesystem. As it turns out, most people are perfectly happy with a one-step publishing workflow that renders the static output directly to the public web space. To use this simpler approach, adjust the events in /config/workflow/publish.xml to something like this <event name="publish" permissions="publish"> <variable name="publisher" value="${actor}"/> <render path="${path}" destination="/publish/" force="false" delete="true"/> <nq who="${publisher}"/> <nq q="publishing"/> </event> <event name="publish-all" permissions="publish"> <variable name="publisher" value="${actor}"/> <render path="/" destination="/publish/" force="false" delete="true"/> <nq who="${publisher}"/> <nq q="publishing"/> </event> Then you can remove /config/workflow/build.xml and any build filesystem. "/publish/" refers to your publish filesystem in / config/project-definition.xml > > > 2) As I am running HC and apache in one machine(with > mod_jk) should I use build and publish at all? Isnt > author->preview->approve enough? > > Initialy I thought I dont want to use but later > realize that if I dont use build and publish content > will be served by tomcat (even with mod_jk). Due to > shis reason > I introduced the build-url and build and publish the > content to apache docs folder so that static content > will be served directly by apache. Please let me know > we are on the correct track? If the build and publish > not required align with our configuration pls do let > us know? I suggest author->preview->approve->publish if you drop the build step as outlined above > > > > 3) in the Approvals.xml it refers to the ${actor} > variable and assign it to a variable called author > > Specially when sending reminders it sends the message > with the uid not with the fullname. > How to get the username/full name (assuming he/she has > updated his/her profile) within the approvals.xml and > send the mail accordinlgy instead of the uid(this is a > numeric in our case) What is the variable that I > should refer within the approvals.xml to get the users > name. This isn't supported at the moment, but you could implement it around line 57 of org.hypercontent.workflow.command.AbstractCommand following the pattern there to associate a variable name with the results of a VCard lookup, something like else if(Strings.equals(name,"user-full-name")){ try { var.set(0,event.getUser().getFullName())); } catch(IOException e) { Logger.error(e); } } Let me know if that works for you, and I can check it into CVS! > > > 4) As far as the UI screens are concerned I need to > change the name of the texts in some of the UIs > specially workflow. > > I have seen references as follows > $bundle.get("XXXXXXXXX") > I just want to know where these screen text constants > are kept, from which property file it get loaded to > $bundle The localization files are stored in the /l10n directory of the bootstrap repository. Cheers, Alex |
From: tom t. <j_l...@ya...> - 2007-02-21 02:23:54
|
Hi, I got hypercontent working with apache2.2 with tomcat with the use of mod_jk, Hence am moving slowly towards the production setup. I got following doubts/questions which am not very clear. 1) What is the difference between build and publish as far as the HC life cycle is concerned. How build/build -all differ from publish 2) As I am running HC and apache in one machine(with mod_jk) should I use build and publish at all? Isnt author->preview->approve enough? Initialy I thought I dont want to use but later realize that if I dont use build and publish content will be served by tomcat (even with mod_jk). Due to shis reason I introduced the build-url and build and publish the content to apache docs folder so that static content will be served directly by apache. Please let me know we are on the correct track? If the build and publish not required align with our configuration pls do let us know? 3) in the Approvals.xml it refers to the ${actor} variable and assign it to a variable called author Specially when sending reminders it sends the message with the uid not with the fullname. How to get the username/full name (assuming he/she has updated his/her profile) within the approvals.xml and send the mail accordinlgy instead of the uid(this is a numeric in our case) What is the variable that I should refer within the approvals.xml to get the users name. 4) As far as the UI screens are concerned I need to change the name of the texts in some of the UIs specially workflow. I have seen references as follows $bundle.get("XXXXXXXXX") I just want to know where these screen text constants are kept, from which property file it get loaded to $bundle Thanks, ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com |
From: Alex V. <al...@bi...> - 2007-02-20 15:50:52
|
Hi, Try putting your custom href after the render command, e.g. <event name="build" permissions="build"> <variable name="builder" value="${actor}"/> <render delete="true" destination="/build/" force="false"/> <variable name="href" value="${abs-project-base}/my-screen.html"/> <nq who="${builder}"/> <nq q="building"/> </event> <event name="build-all" permissions="build"> <variable name="builder" value="${actor}"/> <render delete="true" destination="/build/" force="false" path="/"/> <variable name="href" value="${abs-project-base}/my-screen.html"/> <nq who="${builder}"/> <nq q="building"/> </event> The render and copy commands set the HREF to the target filesystem base-url, but placing your custom href after the command will override that. Cheers, Alex On Feb 19, 2007, at 12:23 AM, tom tom wrote: > Hi, > > In order to get rid of the error message which comes > after the build, introduced a custom error message > > > <variable name="href" > value="${abs-project-base}/my-screen.html"/> > > but still it showed the same error, > > > As I wanted the constant error message in project > definition in the build url I gave the following > > <build > base-url="http://localhost:8080/hypercontent/testproject/testfolder/ > buildmessage.html"> > − > <filesystem-def name="Author" type="local"> > <argument index="0" > value="/home/test/installations/hypercontent/build"/> > </filesystem-def> > </build> > > > Well then it looks ok but instead of going to base-url > it goes to base-url/ > How can I get rid of the last traling "/" from where > it get appended. > > > Irrespective of where build or buildAll I want to show > the same my-message.html, > > > my build.xml looks as follows > > <workflow binding="/**/,/**/*.*"> > − > <event name="build" permissions="build"> > <variable name="builder" value="${actor}"/> > <render delete="true" destination="/build/" > force="false"/> > <nq who="${builder}"/> > <nq q="building"/> > </event> > − > <event name="build-all" permissions="build"> > <variable name="builder" value="${actor}"/> > <render delete="true" destination="/build/" > force="false" path="/"/> > <nq who="${builder}"/> > <nq q="building"/> > </event> > − > <event name="view-built" permissions="read"> > <redirect location="${abs-project-base}/build/"/> > </event> > − > <q id="building"> > − > <event name="batch-complete"> > <dq/> > <nq q="built"/> > </event> > </q> > − > <q id="built"> > − > <event name="batch-reset"> > <dq/> > <nq q="building"/> > </event> > − > <event name="discard" who="${builder}"> > <dq/> > <dq who="${builder}"/> > </event> > </q> > </workflow > > > Thanks > > > > > ______________________________________________________________________ > ______________ > No need to miss a message. Get email on-the-go > with Yahoo! Mail for Mobile. Get started. > http://mobile.yahoo.com/mail > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |
From: tom t. <j_l...@ya...> - 2007-02-19 05:24:03
|
Hi, In order to get rid of the error message which comes after the build, introduced a custom error message <variable name="href" value="${abs-project-base}/my-screen.html"/> but still it showed the same error, As I wanted the constant error message in project definition in the build url I gave the following <build base-url="http://localhost:8080/hypercontent/testproject/testfolder/buildmessage.html"> − <filesystem-def name="Author" type="local"> <argument index="0" value="/home/test/installations/hypercontent/build"/> </filesystem-def> </build> Well then it looks ok but instead of going to base-url it goes to base-url/ How can I get rid of the last traling "/" from where it get appended. Irrespective of where build or buildAll I want to show the same my-message.html, my build.xml looks as follows <workflow binding="/**/,/**/*.*"> − <event name="build" permissions="build"> <variable name="builder" value="${actor}"/> <render delete="true" destination="/build/" force="false"/> <nq who="${builder}"/> <nq q="building"/> </event> − <event name="build-all" permissions="build"> <variable name="builder" value="${actor}"/> <render delete="true" destination="/build/" force="false" path="/"/> <nq who="${builder}"/> <nq q="building"/> </event> − <event name="view-built" permissions="read"> <redirect location="${abs-project-base}/build/"/> </event> − <q id="building"> − <event name="batch-complete"> <dq/> <nq q="built"/> </event> </q> − <q id="built"> − <event name="batch-reset"> <dq/> <nq q="building"/> </event> − <event name="discard" who="${builder}"> <dq/> <dq who="${builder}"/> </event> </q> </workflow Thanks ____________________________________________________________________________________ No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail |
From: Alex V. <al...@bi...> - 2007-02-16 14:24:28
|
HyperContent runs fine under a tomcat that is connected to apache running under HTTPs. This is how we ran it at Columbia - there are no HC specific requirements or gotchas other than installing it in tomcat. http://hypercontent.sourceforge.net/help/install/deploy.html Alex On Feb 15, 2007, at 11:43 PM, tom tom wrote: > Hi, > > Currently we are doing our testing and also > development on tomcat, but production I would like to > have the following setup > > 1) Hypercontent working with Apache 2.2 with mod_jk > > 2) Also Hypercontent running on https instead of http > > > Please do let us know is there any thing which > prevents us from doing above. > > Also if any documentaion around to make HC with > mod_jk. > > Thanks > > > > ______________________________________________________________________ > ______________ > Sucker-punch spam with award-winning protection. > Try the free Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/features_spam.html > |
From: Alex V. <al...@bi...> - 2007-02-16 14:18:16
|
If you check the headers with the firefox plugin I suggested, you can see which redirects the browser is actually following. I believe ajax requests can carry cookies. However, feel free to take another approach as you see fit. Alex On Feb 15, 2007, at 12:48 AM, tom tom wrote: > my doubts why Ajax.js does not handle this > > 1) redirection from http to https > > 2) how the session information carried when > redirection is happenning e.g JSESSIONID and also CAS > specific cookies > > > Other easy approach is define a servlet in HC which > will check the input userId exists in the groups.xml > That is reading the latest groups.xml data_file. > > Thanks > > > > --- tom tom <j_l...@ya...> wrote: > >> Yes I did a analysis (using JMeter) following is the >> sequence of redirections which I observed >> >> > 1)http://localhost:8080/hypercontent/testproject/applyForACourse/ > index.xml?passmode=page-edit-link&mode=login >> (initial hit) >> >> > 2)https://localhost:8443/cas/login?service=http://localhost:8080/ > hypercontent/testproject/applyForACourse/index.xml%3fpassmode% > 3Dpage-edit-link%26mode%3Dlogin%26command%3DLogin >> >> >> > 3)http://localhost:8080/hypercontent/testproject/applyForACourse/ > index.xml?passmode=page-edit- > link&mode=login&command=Login&ticket=ST-4-4MsyXgAAT2AuXBZEBJmK >> >> > 4)http://localhost:8080/hypercontent/testproject/applyForACourse/ > index.xml?mode=page-edit- > link&mode=login&ticket=ST-4-4MsyXgAAT2AuXBZEBJmK >> >> >> In the JMeter I can see the final output I mean the >> content of page-edit-link.vm file. >> >> >> >> >> >> >> >> --- Alex Vigdor <al...@bi...> wrote: >> >>> There is a redirect - in fact there should be two, >>> one from HC to >>> CAS, and then back from CAS to HC. Can you >> analyze >>> the headers and >>> report the series of redirects that occur, e.g. >> with >>> http:// >>> livehttpheaders.mozdev.org/ >>> >>> Alex >>> >>> On Feb 14, 2007, at 12:21 AM, tom tom wrote: >>> >>>> It looks to me there is a internal redirection >> to >>> CAS >>>> server within HC when we issue a URL as follows >>>> probably because of mode=login >>>> >>>> >>> >> > http://localhost:8080/hypercontent/testproject/applyForACourse/ >>> >>>> index.xml?passmode=page-edit-link&mode=login >>>> >>>> Is this the reason why the Edit link is not >> shown? >>>> >>>> >>>> >>>> Thanks >>>> >>>> >>>> --- tom tom <j_l...@ya...> wrote: >>>> >>>>> Thanks Alex, >>>>> >>>>> I modified the code but look my observations >>>>> >>>>> I followed the following steps >>>>> >>>>> 1) Close all the browser instances in my >> machine >>>>> >>>>> 2) Logged into uPortal via CAS >>>>> >>>>> 3) Could not see the Edit link which points to >> HC >>> in >>>>> my portlet, Also I tried with my sample jsp >>> (outside >>>>> uPortal) but result is the same. >>>>> >>>>> >>>>> but After that being in the same browser I hit >>> with >>>>> the following URL >>>>> >>>>> >>>> >>> >> > http://localhost:8080/hypercontent/testproject/index.html? >>> >>>> mode=login&passmode=page-edit-link >>>>> >>>>> Then it shows the following in the page >>>>> <div> >>>>> <a target="hc2-window" >>>>> >>>> >>> >> > href="http://localhost:8080/hypercontent/testproject? >>> >>>> mode=interactive&screen=edit">edit</a> >>>>> </div >>>>> >>>>> This is exactly what I want but just the Edit >>> link >>>>> is >>>>> not appearing. Previous occations above was >> only >>>>> appearing when I login to HC only (uPortal >> login >>> was >>>>> not enough). Which means somthing is working >>>>> >>>>> >>>>> Even though it is not applicable for us, the >> only >>>>> occation which I can see Edit link is (based on >>> my >>>>> previous mail) >>>>> >>>>> First login to HC and my client test page has >> the >>>>> following >>>>> >>>>> <script type="text/javascript" >>>>> language="javascript"> >>>>> >>>> >>> >> > loadToElement(document.getElementById('page-edit-link-div'),'http:// >>> >>>> >>> >> > localhost:8080/hypercontent/testproject/index.html?mode=page-edit- >>> >>>> link'); >>>>> </script> >>>>> >>>>> above is what I tried initialy >>>>> >>>>> >>>>> Following is the recent jsp file which I >> modified >>>>> based on your recent feedback. >>>>> >>>>> Should I need further modifications? >>>>> >>>>> <html> >>>>> <head> >>>>> </head> >>>>> >>>>> <body> >>>>> This is inside a sample HC page >>>>> <script type="text/javascript" >>> language="javascript" >>>>> >>>> >>> >> > src="http://localhost:8080/hypercontent/js/common.js"> >>>>> </script> >>>>> <script type="text/javascript" >>> language="javascript" >>>>> >>> >> src="http://localhost:8080/hypercontent/js/ajax.js"> >>>>> </script> >>>>> >>>>> <div id="page-edit-link-div"></div> >>>>> >>>>> <script type="text/javascript" >>>>> language="javascript"> >>>>> >>>> >>> >> > loadToElement(document.getElementById('page-edit-link-div'),'http:// >>> >>>> >>> >> localhost:8080/hypercontent/testproject/index.html? >>>> mode=login&passmode=page-edit-link'); >>>>> </script> >>>>> >>>>> >>>>> </body> >>>>> </html> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> --- Alex Vigdor <al...@bi...> wrote: >>>>> >>>>>> Try changing the link to >>>>>> >>>>>> >>>>> >>>> >>> >> > http://localhost:8080/hypercontent/testproject/index.html? >> > === message truncated === > > > > > ______________________________________________________________________ > ______________ > Any questions? Get answers on any topic at www.Answers.yahoo.com. > Try it now. > |
From: tom t. <j_l...@ya...> - 2007-02-16 04:44:06
|
Hi, Currently we are doing our testing and also development on tomcat, but production I would like to have the following setup 1) Hypercontent working with Apache 2.2 with mod_jk 2) Also Hypercontent running on https instead of http Please do let us know is there any thing which prevents us from doing above. Also if any documentaion around to make HC with mod_jk. Thanks ____________________________________________________________________________________ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html |
From: tom t. <j_l...@ya...> - 2007-02-15 05:48:10
|
my doubts why Ajax.js does not handle this 1) redirection from http to https 2) how the session information carried when redirection is happenning e.g JSESSIONID and also CAS specific cookies Other easy approach is define a servlet in HC which will check the input userId exists in the groups.xml That is reading the latest groups.xml data_file. Thanks --- tom tom <j_l...@ya...> wrote: > Yes I did a analysis (using JMeter) following is the > sequence of redirections which I observed > > 1)http://localhost:8080/hypercontent/testproject/applyForACourse/index.xml?passmode=page-edit-link&mode=login > (initial hit) > > 2)https://localhost:8443/cas/login?service=http://localhost:8080/hypercontent/testproject/applyForACourse/index.xml%3fpassmode%3Dpage-edit-link%26mode%3Dlogin%26command%3DLogin > > > 3)http://localhost:8080/hypercontent/testproject/applyForACourse/index.xml?passmode=page-edit-link&mode=login&command=Login&ticket=ST-4-4MsyXgAAT2AuXBZEBJmK > > 4)http://localhost:8080/hypercontent/testproject/applyForACourse/index.xml?mode=page-edit-link&mode=login&ticket=ST-4-4MsyXgAAT2AuXBZEBJmK > > > In the JMeter I can see the final output I mean the > content of page-edit-link.vm file. > > > > > > > > --- Alex Vigdor <al...@bi...> wrote: > > > There is a redirect - in fact there should be two, > > one from HC to > > CAS, and then back from CAS to HC. Can you > analyze > > the headers and > > report the series of redirects that occur, e.g. > with > > http:// > > livehttpheaders.mozdev.org/ > > > > Alex > > > > On Feb 14, 2007, at 12:21 AM, tom tom wrote: > > > > > It looks to me there is a internal redirection > to > > CAS > > > server within HC when we issue a URL as follows > > > probably because of mode=login > > > > > > > > > http://localhost:8080/hypercontent/testproject/applyForACourse/ > > > > > index.xml?passmode=page-edit-link&mode=login > > > > > > Is this the reason why the Edit link is not > shown? > > > > > > > > > > > > Thanks > > > > > > > > > --- tom tom <j_l...@ya...> wrote: > > > > > >> Thanks Alex, > > >> > > >> I modified the code but look my observations > > >> > > >> I followed the following steps > > >> > > >> 1) Close all the browser instances in my > machine > > >> > > >> 2) Logged into uPortal via CAS > > >> > > >> 3) Could not see the Edit link which points to > HC > > in > > >> my portlet, Also I tried with my sample jsp > > (outside > > >> uPortal) but result is the same. > > >> > > >> > > >> but After that being in the same browser I hit > > with > > >> the following URL > > >> > > >> > > > > > > http://localhost:8080/hypercontent/testproject/index.html? > > > > > mode=login&passmode=page-edit-link > > >> > > >> Then it shows the following in the page > > >> <div> > > >> <a target="hc2-window" > > >> > > > > > > href="http://localhost:8080/hypercontent/testproject? > > > > > mode=interactive&screen=edit">edit</a> > > >> </div > > >> > > >> This is exactly what I want but just the Edit > > link > > >> is > > >> not appearing. Previous occations above was > only > > >> appearing when I login to HC only (uPortal > login > > was > > >> not enough). Which means somthing is working > > >> > > >> > > >> Even though it is not applicable for us, the > only > > >> occation which I can see Edit link is (based on > > my > > >> previous mail) > > >> > > >> First login to HC and my client test page has > the > > >> following > > >> > > >> <script type="text/javascript" > > >> language="javascript"> > > >> > > > > > > loadToElement(document.getElementById('page-edit-link-div'),'http:// > > > > > > > > localhost:8080/hypercontent/testproject/index.html?mode=page-edit- > > > > > link'); > > >> </script> > > >> > > >> above is what I tried initialy > > >> > > >> > > >> Following is the recent jsp file which I > modified > > >> based on your recent feedback. > > >> > > >> Should I need further modifications? > > >> > > >> <html> > > >> <head> > > >> </head> > > >> > > >> <body> > > >> This is inside a sample HC page > > >> <script type="text/javascript" > > language="javascript" > > >> > > > > > > src="http://localhost:8080/hypercontent/js/common.js"> > > >> </script> > > >> <script type="text/javascript" > > language="javascript" > > >> > > > src="http://localhost:8080/hypercontent/js/ajax.js"> > > >> </script> > > >> > > >> <div id="page-edit-link-div"></div> > > >> > > >> <script type="text/javascript" > > >> language="javascript"> > > >> > > > > > > loadToElement(document.getElementById('page-edit-link-div'),'http:// > > > > > > > > localhost:8080/hypercontent/testproject/index.html? > > > mode=login&passmode=page-edit-link'); > > >> </script> > > >> > > >> > > >> </body> > > >> </html> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> --- Alex Vigdor <al...@bi...> wrote: > > >> > > >>> Try changing the link to > > >>> > > >>> > > >> > > > > > > http://localhost:8080/hypercontent/testproject/index.html? > === message truncated === ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. |
From: tom t. <j_l...@ya...> - 2007-02-14 23:10:37
|
Yes I did a analysis (using JMeter) following is the sequence of redirections which I observed 1)http://localhost:8080/hypercontent/testproject/applyForACourse/index.xml?passmode=page-edit-link&mode=login (initial hit) 2)https://localhost:8443/cas/login?service=http://localhost:8080/hypercontent/testproject/applyForACourse/index.xml%3fpassmode%3Dpage-edit-link%26mode%3Dlogin%26command%3DLogin 3)http://localhost:8080/hypercontent/testproject/applyForACourse/index.xml?passmode=page-edit-link&mode=login&command=Login&ticket=ST-4-4MsyXgAAT2AuXBZEBJmK 4)http://localhost:8080/hypercontent/testproject/applyForACourse/index.xml?mode=page-edit-link&mode=login&ticket=ST-4-4MsyXgAAT2AuXBZEBJmK In the JMeter I can see the final output I mean the content of page-edit-link.vm file. --- Alex Vigdor <al...@bi...> wrote: > There is a redirect - in fact there should be two, > one from HC to > CAS, and then back from CAS to HC. Can you analyze > the headers and > report the series of redirects that occur, e.g. with > http:// > livehttpheaders.mozdev.org/ > > Alex > > On Feb 14, 2007, at 12:21 AM, tom tom wrote: > > > It looks to me there is a internal redirection to > CAS > > server within HC when we issue a URL as follows > > probably because of mode=login > > > > > http://localhost:8080/hypercontent/testproject/applyForACourse/ > > > index.xml?passmode=page-edit-link&mode=login > > > > Is this the reason why the Edit link is not shown? > > > > > > > > Thanks > > > > > > --- tom tom <j_l...@ya...> wrote: > > > >> Thanks Alex, > >> > >> I modified the code but look my observations > >> > >> I followed the following steps > >> > >> 1) Close all the browser instances in my machine > >> > >> 2) Logged into uPortal via CAS > >> > >> 3) Could not see the Edit link which points to HC > in > >> my portlet, Also I tried with my sample jsp > (outside > >> uPortal) but result is the same. > >> > >> > >> but After that being in the same browser I hit > with > >> the following URL > >> > >> > > > http://localhost:8080/hypercontent/testproject/index.html? > > > mode=login&passmode=page-edit-link > >> > >> Then it shows the following in the page > >> <div> > >> <a target="hc2-window" > >> > > > href="http://localhost:8080/hypercontent/testproject? > > > mode=interactive&screen=edit">edit</a> > >> </div > >> > >> This is exactly what I want but just the Edit > link > >> is > >> not appearing. Previous occations above was only > >> appearing when I login to HC only (uPortal login > was > >> not enough). Which means somthing is working > >> > >> > >> Even though it is not applicable for us, the only > >> occation which I can see Edit link is (based on > my > >> previous mail) > >> > >> First login to HC and my client test page has the > >> following > >> > >> <script type="text/javascript" > >> language="javascript"> > >> > > > loadToElement(document.getElementById('page-edit-link-div'),'http:// > > > > localhost:8080/hypercontent/testproject/index.html?mode=page-edit- > > > link'); > >> </script> > >> > >> above is what I tried initialy > >> > >> > >> Following is the recent jsp file which I modified > >> based on your recent feedback. > >> > >> Should I need further modifications? > >> > >> <html> > >> <head> > >> </head> > >> > >> <body> > >> This is inside a sample HC page > >> <script type="text/javascript" > language="javascript" > >> > > > src="http://localhost:8080/hypercontent/js/common.js"> > >> </script> > >> <script type="text/javascript" > language="javascript" > >> > src="http://localhost:8080/hypercontent/js/ajax.js"> > >> </script> > >> > >> <div id="page-edit-link-div"></div> > >> > >> <script type="text/javascript" > >> language="javascript"> > >> > > > loadToElement(document.getElementById('page-edit-link-div'),'http:// > > > > localhost:8080/hypercontent/testproject/index.html? > > mode=login&passmode=page-edit-link'); > >> </script> > >> > >> > >> </body> > >> </html> > >> > >> > >> > >> > >> > >> > >> > >> > >> --- Alex Vigdor <al...@bi...> wrote: > >> > >>> Try changing the link to > >>> > >>> > >> > > > http://localhost:8080/hypercontent/testproject/index.html? > >>> > >>> mode=login&passmode=page-edit-link > >>> > >>> This should tell HC to try the login, and to > >> forward > >>> to page-edit- > >>> link when login is done. > >>> > >>> Let me know how it works! > >>> > >>> Cheers, > >>> Alex > >>> > >>> On Feb 13, 2007, at 12:39 AM, tom tom wrote: > >>> > >>>> Thanks Alex, > >>>> > >>>> It looks to me the request should point to a > >> file, > >>> but > >>>> my intention is to provide the Edit link to the > >>> home > >>>> of the project so that user can edit whatever > he > >>>> wants. > >>>> > >>>> I achieved the above as follows in the jsp it > >>> points > >>>> to a file as follows > >>>> > >>>> <script type="text/javascript" > >>> language="javascript"> > >>>> > >>> > >> > > > loadToElement(document.getElementById('page-edit-link-div'),'http:// > >>> > >>>> > >>> > >> > > > localhost:8080/hypercontent/testproject/index.html?mode=page-edit- > >>> > >>>> link'); > >>>> </script> > === message truncated === ____________________________________________________________________________________ Never Miss an Email Stay connected with Yahoo! Mail on your mobile. Get started! http://mobile.yahoo.com/services?promote=mail |
From: Alex V. <al...@bi...> - 2007-02-14 17:18:11
|
There is a redirect - in fact there should be two, one from HC to CAS, and then back from CAS to HC. Can you analyze the headers and report the series of redirects that occur, e.g. with http:// livehttpheaders.mozdev.org/ Alex On Feb 14, 2007, at 12:21 AM, tom tom wrote: > It looks to me there is a internal redirection to CAS > server within HC when we issue a URL as follows > probably because of mode=login > > http://localhost:8080/hypercontent/testproject/applyForACourse/ > index.xml?passmode=page-edit-link&mode=login > > Is this the reason why the Edit link is not shown? > > > > Thanks > > > --- tom tom <j_l...@ya...> wrote: > >> Thanks Alex, >> >> I modified the code but look my observations >> >> I followed the following steps >> >> 1) Close all the browser instances in my machine >> >> 2) Logged into uPortal via CAS >> >> 3) Could not see the Edit link which points to HC in >> my portlet, Also I tried with my sample jsp (outside >> uPortal) but result is the same. >> >> >> but After that being in the same browser I hit with >> the following URL >> >> > http://localhost:8080/hypercontent/testproject/index.html? > mode=login&passmode=page-edit-link >> >> Then it shows the following in the page >> <div> >> <a target="hc2-window" >> > href="http://localhost:8080/hypercontent/testproject? > mode=interactive&screen=edit">edit</a> >> </div >> >> This is exactly what I want but just the Edit link >> is >> not appearing. Previous occations above was only >> appearing when I login to HC only (uPortal login was >> not enough). Which means somthing is working >> >> >> Even though it is not applicable for us, the only >> occation which I can see Edit link is (based on my >> previous mail) >> >> First login to HC and my client test page has the >> following >> >> <script type="text/javascript" >> language="javascript"> >> > loadToElement(document.getElementById('page-edit-link-div'),'http:// > localhost:8080/hypercontent/testproject/index.html?mode=page-edit- > link'); >> </script> >> >> above is what I tried initialy >> >> >> Following is the recent jsp file which I modified >> based on your recent feedback. >> >> Should I need further modifications? >> >> <html> >> <head> >> </head> >> >> <body> >> This is inside a sample HC page >> <script type="text/javascript" language="javascript" >> > src="http://localhost:8080/hypercontent/js/common.js"> >> </script> >> <script type="text/javascript" language="javascript" >> src="http://localhost:8080/hypercontent/js/ajax.js"> >> </script> >> >> <div id="page-edit-link-div"></div> >> >> <script type="text/javascript" >> language="javascript"> >> > loadToElement(document.getElementById('page-edit-link-div'),'http:// > localhost:8080/hypercontent/testproject/index.html? > mode=login&passmode=page-edit-link'); >> </script> >> >> >> </body> >> </html> >> >> >> >> >> >> >> >> >> --- Alex Vigdor <al...@bi...> wrote: >> >>> Try changing the link to >>> >>> >> > http://localhost:8080/hypercontent/testproject/index.html? >>> >>> mode=login&passmode=page-edit-link >>> >>> This should tell HC to try the login, and to >> forward >>> to page-edit- >>> link when login is done. >>> >>> Let me know how it works! >>> >>> Cheers, >>> Alex >>> >>> On Feb 13, 2007, at 12:39 AM, tom tom wrote: >>> >>>> Thanks Alex, >>>> >>>> It looks to me the request should point to a >> file, >>> but >>>> my intention is to provide the Edit link to the >>> home >>>> of the project so that user can edit whatever he >>>> wants. >>>> >>>> I achieved the above as follows in the jsp it >>> points >>>> to a file as follows >>>> >>>> <script type="text/javascript" >>> language="javascript"> >>>> >>> >> > loadToElement(document.getElementById('page-edit-link-div'),'http:// >>> >>>> >>> >> > localhost:8080/hypercontent/testproject/index.html?mode=page-edit- >>> >>>> link'); >>>> </script> >>>> >>>> but in the page-edit-link.vm modified as follows >>>> >>>> <div> >>>> #if ($session.Authenticated && >>>> >>> >> > $session.hasPermission($project,'write',$request-path)) >>>> <a target="hc2-window" >>>> >>> >> > href="${abs-project-base}?mode=interactive&screen=edit">edit</a> >>>> #end >>>> </div> >>>> >>>> Above works fine BUT the above fails in the >>> following >>>> use case >>>> >>>> user login to uPortal (this user has rights to >>> edit >>>> content in the testproject in HC) He has not >> login >>> to >>>> HC yet but because HC is casified it is not >>> necessary. >>>> >>>> >>>> The problem is in this case the Edit link is not >>> shown >>>> >>>> >>>> >>>> But if the user login to HC first and goes to >>> uPortal >>>> it shows the Edit link. >>>> >>>> Our entry point is always uPortal hence the >> first >>>> option is what we are looking for. That is if >> the >>>> logged in user has the permission he should have >>> the >>>> Edit link enabled to go to the HC testproject. >>>> >>>> How can we go about doing this. >>>> >>>> Do we need to change any other source files >>>> >>>> Thanks >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> --- Alex Vigdor <al...@bi...> wrote: >>>> >>>>> Have you tried accessing >>>>> >>>>> >>>> >>> >> > http://localhost:8080/hypercontent/testproject/?mode=page-edit-link >>>>> >>>>> directly in the browser? If not, double-check >>> the >> > === message truncated === > > > > > ______________________________________________________________________ > ______________ > Bored stiff? Loosen up... > Download and play hundreds of games for free on Yahoo! Games. > http://games.yahoo.com/games/front > |
From: tom t. <j_l...@ya...> - 2007-02-14 05:21:18
|
It looks to me there is a internal redirection to CAS server within HC when we issue a URL as follows probably because of mode=login http://localhost:8080/hypercontent/testproject/applyForACourse/index.xml?passmode=page-edit-link&mode=login Is this the reason why the Edit link is not shown? Thanks --- tom tom <j_l...@ya...> wrote: > Thanks Alex, > > I modified the code but look my observations > > I followed the following steps > > 1) Close all the browser instances in my machine > > 2) Logged into uPortal via CAS > > 3) Could not see the Edit link which points to HC in > my portlet, Also I tried with my sample jsp (outside > uPortal) but result is the same. > > > but After that being in the same browser I hit with > the following URL > > http://localhost:8080/hypercontent/testproject/index.html?mode=login&passmode=page-edit-link > > Then it shows the following in the page > <div> > <a target="hc2-window" > href="http://localhost:8080/hypercontent/testproject?mode=interactive&screen=edit">edit</a> > </div > > This is exactly what I want but just the Edit link > is > not appearing. Previous occations above was only > appearing when I login to HC only (uPortal login was > not enough). Which means somthing is working > > > Even though it is not applicable for us, the only > occation which I can see Edit link is (based on my > previous mail) > > First login to HC and my client test page has the > following > > <script type="text/javascript" > language="javascript"> > loadToElement(document.getElementById('page-edit-link-div'),'http://localhost:8080/hypercontent/testproject/index.html?mode=page-edit-link'); > </script> > > above is what I tried initialy > > > Following is the recent jsp file which I modified > based on your recent feedback. > > Should I need further modifications? > > <html> > <head> > </head> > > <body> > This is inside a sample HC page > <script type="text/javascript" language="javascript" > src="http://localhost:8080/hypercontent/js/common.js"> > </script> > <script type="text/javascript" language="javascript" > src="http://localhost:8080/hypercontent/js/ajax.js"> > </script> > > <div id="page-edit-link-div"></div> > > <script type="text/javascript" > language="javascript"> > loadToElement(document.getElementById('page-edit-link-div'),'http://localhost:8080/hypercontent/testproject/index.html?mode=login&passmode=page-edit-link'); > </script> > > > </body> > </html> > > > > > > > > > --- Alex Vigdor <al...@bi...> wrote: > > > Try changing the link to > > > > > http://localhost:8080/hypercontent/testproject/index.html? > > > > mode=login&passmode=page-edit-link > > > > This should tell HC to try the login, and to > forward > > to page-edit- > > link when login is done. > > > > Let me know how it works! > > > > Cheers, > > Alex > > > > On Feb 13, 2007, at 12:39 AM, tom tom wrote: > > > > > Thanks Alex, > > > > > > It looks to me the request should point to a > file, > > but > > > my intention is to provide the Edit link to the > > home > > > of the project so that user can edit whatever he > > > wants. > > > > > > I achieved the above as follows in the jsp it > > points > > > to a file as follows > > > > > > <script type="text/javascript" > > language="javascript"> > > > > > > loadToElement(document.getElementById('page-edit-link-div'),'http:// > > > > > > > > localhost:8080/hypercontent/testproject/index.html?mode=page-edit- > > > > > link'); > > > </script> > > > > > > but in the page-edit-link.vm modified as follows > > > > > > <div> > > > #if ($session.Authenticated && > > > > > > $session.hasPermission($project,'write',$request-path)) > > > <a target="hc2-window" > > > > > > href="${abs-project-base}?mode=interactive&screen=edit">edit</a> > > > #end > > > </div> > > > > > > Above works fine BUT the above fails in the > > following > > > use case > > > > > > user login to uPortal (this user has rights to > > edit > > > content in the testproject in HC) He has not > login > > to > > > HC yet but because HC is casified it is not > > necessary. > > > > > > > > > The problem is in this case the Edit link is not > > shown > > > > > > > > > > > > But if the user login to HC first and goes to > > uPortal > > > it shows the Edit link. > > > > > > Our entry point is always uPortal hence the > first > > > option is what we are looking for. That is if > the > > > logged in user has the permission he should have > > the > > > Edit link enabled to go to the HC testproject. > > > > > > How can we go about doing this. > > > > > > Do we need to change any other source files > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Alex Vigdor <al...@bi...> wrote: > > > > > >> Have you tried accessing > > >> > > >> > > > > > > http://localhost:8080/hypercontent/testproject/?mode=page-edit-link > > >> > > >> directly in the browser? If not, double-check > > the > === message truncated === ____________________________________________________________________________________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front |
From: tom t. <j_l...@ya...> - 2007-02-14 00:25:24
|
Thanks Alex, I modified the code but look my observations I followed the following steps 1) Close all the browser instances in my machine 2) Logged into uPortal via CAS 3) Could not see the Edit link which points to HC in my portlet, Also I tried with my sample jsp (outside uPortal) but result is the same. but After that being in the same browser I hit with the following URL http://localhost:8080/hypercontent/testproject/index.html?mode=login&passmode=page-edit-link Then it shows the following in the page <div> <a target="hc2-window" href="http://localhost:8080/hypercontent/testproject?mode=interactive&screen=edit">edit</a> </div This is exactly what I want but just the Edit link is not appearing. Previous occations above was only appearing when I login to HC only (uPortal login was not enough). Which means somthing is working Even though it is not applicable for us, the only occation which I can see Edit link is (based on my previous mail) First login to HC and my client test page has the following <script type="text/javascript" language="javascript"> loadToElement(document.getElementById('page-edit-link-div'),'http://localhost:8080/hypercontent/testproject/index.html?mode=page-edit-link'); </script> above is what I tried initialy Following is the recent jsp file which I modified based on your recent feedback. Should I need further modifications? <html> <head> </head> <body> This is inside a sample HC page <script type="text/javascript" language="javascript" src="http://localhost:8080/hypercontent/js/common.js"> </script> <script type="text/javascript" language="javascript" src="http://localhost:8080/hypercontent/js/ajax.js"> </script> <div id="page-edit-link-div"></div> <script type="text/javascript" language="javascript"> loadToElement(document.getElementById('page-edit-link-div'),'http://localhost:8080/hypercontent/testproject/index.html?mode=login&passmode=page-edit-link'); </script> </body> </html> --- Alex Vigdor <al...@bi...> wrote: > Try changing the link to > > http://localhost:8080/hypercontent/testproject/index.html? > > mode=login&passmode=page-edit-link > > This should tell HC to try the login, and to forward > to page-edit- > link when login is done. > > Let me know how it works! > > Cheers, > Alex > > On Feb 13, 2007, at 12:39 AM, tom tom wrote: > > > Thanks Alex, > > > > It looks to me the request should point to a file, > but > > my intention is to provide the Edit link to the > home > > of the project so that user can edit whatever he > > wants. > > > > I achieved the above as follows in the jsp it > points > > to a file as follows > > > > <script type="text/javascript" > language="javascript"> > > > loadToElement(document.getElementById('page-edit-link-div'),'http:// > > > > localhost:8080/hypercontent/testproject/index.html?mode=page-edit- > > > link'); > > </script> > > > > but in the page-edit-link.vm modified as follows > > > > <div> > > #if ($session.Authenticated && > > > $session.hasPermission($project,'write',$request-path)) > > <a target="hc2-window" > > > href="${abs-project-base}?mode=interactive&screen=edit">edit</a> > > #end > > </div> > > > > Above works fine BUT the above fails in the > following > > use case > > > > user login to uPortal (this user has rights to > edit > > content in the testproject in HC) He has not login > to > > HC yet but because HC is casified it is not > necessary. > > > > > > The problem is in this case the Edit link is not > shown > > > > > > > > But if the user login to HC first and goes to > uPortal > > it shows the Edit link. > > > > Our entry point is always uPortal hence the first > > option is what we are looking for. That is if the > > logged in user has the permission he should have > the > > Edit link enabled to go to the HC testproject. > > > > How can we go about doing this. > > > > Do we need to change any other source files > > > > Thanks > > > > > > > > > > > > > > > > > > > > --- Alex Vigdor <al...@bi...> wrote: > > > >> Have you tried accessing > >> > >> > > > http://localhost:8080/hypercontent/testproject/?mode=page-edit-link > >> > >> directly in the browser? If not, double-check > the > >> pipeline > >> configuration. If you can get it directly, check > >> the javascript > >> console for errors when the JSP tries to make the > >> xmlhttprequest. > >> > >> In general, you'll want to point the request to > an > >> actual file, e.g. > >> > >> > > > http://localhost:8080/hypercontent/testproject/index.xml?mode=page- > >> > >> edit-link > >> > >> Cheers, > >> Alex > >> > >> On Feb 12, 2007, at 8:42 PM, tom tom wrote: > >> > >>> Hi Alex, > >>> > >>> In order to get the Edit link I followed all the > >> steps > >>> but it not appearing. > >>> > >>> Initially I tried with the uPortal portlet and > >> Edit > >>> link was not appearing. > >>> > >>> Then I created a sample jsp page as shown below. > >> As my > >>> HC is casified I did login to HC and then hit > the > >> URL > >>> which points to the sample jsp I created. Still > >> the > >>> Edit link is not showing. > >>> > >>> I am using Fedora browser. > >>> > >>> Can you let me know what's wrong here, Any way > to > >>> trouble shoot > >>> > >>> I incooperated the pipeline.xml which is in > >> bootstrap > >>> (I did edit manually) > >>> > >>> > >>> sample jsp > >>> > >>> <html> > >>> <head> > >>> </head> > >>> > >>> <body> > >>> This is to check the EDIT link comes > >>> <script type="text/javascript" > >> language="javascript" > >>> > >> > > > src="http://localhost:8080/hypercontent/js/common.js"> > >>> </script> > >>> <script type="text/javascript" > >> language="javascript" > >>> > >> > src="http://localhost:8080/hypercontent/js/ajax.js"> > >>> </script> > >>> > >>> <div id="page-edit-link-div"></div> > >>> > >>> <script type="text/javascript" > >> language="javascript"> > >>> > >>> > >> > > > loadToElement(document.getElementById('page-edit-link-div'),'http:// > >> > >>> > >> > > > localhost:8080/hypercontent/testproject/?mode=page-edit-link'); > >>> </script> > >>> > >>> </body> > >>> </html> > >>> > >>> > >>> > >>> --- Alex Vigdor <al...@bi...> wrote: > >>> > >>>> > === message truncated === ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html |
From: Alex V. <al...@bi...> - 2007-02-13 13:40:49
|
Try changing the link to http://localhost:8080/hypercontent/testproject/index.html? mode=login&passmode=page-edit-link This should tell HC to try the login, and to forward to page-edit- link when login is done. Let me know how it works! Cheers, Alex On Feb 13, 2007, at 12:39 AM, tom tom wrote: > Thanks Alex, > > It looks to me the request should point to a file, but > my intention is to provide the Edit link to the home > of the project so that user can edit whatever he > wants. > > I achieved the above as follows in the jsp it points > to a file as follows > > <script type="text/javascript" language="javascript"> > loadToElement(document.getElementById('page-edit-link-div'),'http:// > localhost:8080/hypercontent/testproject/index.html?mode=page-edit- > link'); > </script> > > but in the page-edit-link.vm modified as follows > > <div> > #if ($session.Authenticated && > $session.hasPermission($project,'write',$request-path)) > <a target="hc2-window" > href="${abs-project-base}?mode=interactive&screen=edit">edit</a> > #end > </div> > > Above works fine BUT the above fails in the following > use case > > user login to uPortal (this user has rights to edit > content in the testproject in HC) He has not login to > HC yet but because HC is casified it is not necessary. > > > The problem is in this case the Edit link is not shown > > > > But if the user login to HC first and goes to uPortal > it shows the Edit link. > > Our entry point is always uPortal hence the first > option is what we are looking for. That is if the > logged in user has the permission he should have the > Edit link enabled to go to the HC testproject. > > How can we go about doing this. > > Do we need to change any other source files > > Thanks > > > > > > > > > > --- Alex Vigdor <al...@bi...> wrote: > >> Have you tried accessing >> >> > http://localhost:8080/hypercontent/testproject/?mode=page-edit-link >> >> directly in the browser? If not, double-check the >> pipeline >> configuration. If you can get it directly, check >> the javascript >> console for errors when the JSP tries to make the >> xmlhttprequest. >> >> In general, you'll want to point the request to an >> actual file, e.g. >> >> > http://localhost:8080/hypercontent/testproject/index.xml?mode=page- >> >> edit-link >> >> Cheers, >> Alex >> >> On Feb 12, 2007, at 8:42 PM, tom tom wrote: >> >>> Hi Alex, >>> >>> In order to get the Edit link I followed all the >> steps >>> but it not appearing. >>> >>> Initially I tried with the uPortal portlet and >> Edit >>> link was not appearing. >>> >>> Then I created a sample jsp page as shown below. >> As my >>> HC is casified I did login to HC and then hit the >> URL >>> which points to the sample jsp I created. Still >> the >>> Edit link is not showing. >>> >>> I am using Fedora browser. >>> >>> Can you let me know what's wrong here, Any way to >>> trouble shoot >>> >>> I incooperated the pipeline.xml which is in >> bootstrap >>> (I did edit manually) >>> >>> >>> sample jsp >>> >>> <html> >>> <head> >>> </head> >>> >>> <body> >>> This is to check the EDIT link comes >>> <script type="text/javascript" >> language="javascript" >>> >> > src="http://localhost:8080/hypercontent/js/common.js"> >>> </script> >>> <script type="text/javascript" >> language="javascript" >>> >> src="http://localhost:8080/hypercontent/js/ajax.js"> >>> </script> >>> >>> <div id="page-edit-link-div"></div> >>> >>> <script type="text/javascript" >> language="javascript"> >>> >>> >> > loadToElement(document.getElementById('page-edit-link-div'),'http:// >> >>> >> > localhost:8080/hypercontent/testproject/?mode=page-edit-link'); >>> </script> >>> >>> </body> >>> </html> >>> >>> >>> >>> --- Alex Vigdor <al...@bi...> wrote: >>> >>>> >>>> On Jan 23, 2007, at 7:17 PM, tom tom wrote: >>>> >>>>> >>>>> How can I create the above >> /skin/page-edit-link.vm >>>>> file >>>>> should I have a seperate resource-directory in >> my >>>>> project definition file. >>>> >>>> Yes, e.g. >>>> >>>> <resource-directory label="Velocity template" >>>> path="/skins/**/*.vm" >>>> publish="true"> >>>> <content type="application/x-vtl" /> >>>> <output basedir="/" content-type="text/plain" >> /> >>>> </resource-directory> >>>> >>>>> >>>>> within uPortal what we have is jsps infact the >>>> portlet >>>>> development strategy is struts-bridge what this >>>> means >>>>> is our portlets are not govern by xsls. But >> still >>>> I >>>>> will incooperate the above <script >>>> type="text/j...... >>>>> code segment and try but let me know what are >> the >>>>> values that I should give for abs-project-base, >>>>> bs-server-base, and request-path assuming my >>>> project >>>>> is running in the following url >>>> >>>> abs-project-base = http://<HC >>>> Server>:<HCPort>/hypercontent/test_project >>>> abs-server-base = http://<HC >>>> Server>:<HCPort>/hypercontent >>>> request-path = /path/in/hc/repository/file.ext >>>> >>>> >>>>> >>>>> http://<HC Server>:<HC >>>>> >> Port>/hypercontent/test_project/?mode=interactive >>>>> >>>>> >>>>> Also explain me how does that entire logic >> works, >>>> how >>>>> does the HC knows about the user credentials. >>>>> >>>> >>>> HC never sees the users credentials - it uses a >>>> standard CAS >>>> authentication to identify the user. HC uses its >>>> own groups and >>>> permission configuration to then determine >> whether >>>> that user has the >>>> right to edit the page. >>>> >>>> Cheers, >>>> Alex >>>> >>>> >>>> >>> >> > ---------------------------------------------------------------------- >> >>> --- >>>> Take Surveys. Earn Cash. Influence the Future of >> IT >>>> Join SourceForge.net's Techsay panel and you'll >> get >>>> the chance to share your >>>> opinions on IT & business topics through brief >>>> surveys - and earn cash >>>> >>> http://www.techsay.com/default.php? >>> page=join.php&p=sourceforge&CID=DEVDEV >>>> _______________________________________________ >>>> Hypercontent-users mailing list >>>> Hyp...@li... >>>> >>> >> > https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>> >>> >>> >>> >>> >>> >> > ______________________________________________________________________ >> >>> ______________ >>> We won't tell. Get more on shows you hate to love >>> (and love to hate): Yahoo! TV's Guilty Pleasures >> list. >>> http://tv.yahoo.com/collections/265 >>> >> >> > > > > > ______________________________________________________________________ > ______________ > Never miss an email again! > Yahoo! Toolbar alerts you the instant new Mail arrives. > http://tools.search.yahoo.com/toolbar/features/mail/ > |
From: tom t. <j_l...@ya...> - 2007-02-13 05:39:14
|
Thanks Alex, It looks to me the request should point to a file, but my intention is to provide the Edit link to the home of the project so that user can edit whatever he wants. I achieved the above as follows in the jsp it points to a file as follows <script type="text/javascript" language="javascript"> loadToElement(document.getElementById('page-edit-link-div'),'http://localhost:8080/hypercontent/testproject/index.html?mode=page-edit-link'); </script> but in the page-edit-link.vm modified as follows <div> #if ($session.Authenticated && $session.hasPermission($project,'write',$request-path)) <a target="hc2-window" href="${abs-project-base}?mode=interactive&screen=edit">edit</a> #end </div> Above works fine BUT the above fails in the following use case user login to uPortal (this user has rights to edit content in the testproject in HC) He has not login to HC yet but because HC is casified it is not necessary. The problem is in this case the Edit link is not shown But if the user login to HC first and goes to uPortal it shows the Edit link. Our entry point is always uPortal hence the first option is what we are looking for. That is if the logged in user has the permission he should have the Edit link enabled to go to the HC testproject. How can we go about doing this. Do we need to change any other source files Thanks --- Alex Vigdor <al...@bi...> wrote: > Have you tried accessing > > http://localhost:8080/hypercontent/testproject/?mode=page-edit-link > > directly in the browser? If not, double-check the > pipeline > configuration. If you can get it directly, check > the javascript > console for errors when the JSP tries to make the > xmlhttprequest. > > In general, you'll want to point the request to an > actual file, e.g. > > http://localhost:8080/hypercontent/testproject/index.xml?mode=page- > > edit-link > > Cheers, > Alex > > On Feb 12, 2007, at 8:42 PM, tom tom wrote: > > > Hi Alex, > > > > In order to get the Edit link I followed all the > steps > > but it not appearing. > > > > Initially I tried with the uPortal portlet and > Edit > > link was not appearing. > > > > Then I created a sample jsp page as shown below. > As my > > HC is casified I did login to HC and then hit the > URL > > which points to the sample jsp I created. Still > the > > Edit link is not showing. > > > > I am using Fedora browser. > > > > Can you let me know what's wrong here, Any way to > > trouble shoot > > > > I incooperated the pipeline.xml which is in > bootstrap > > (I did edit manually) > > > > > > sample jsp > > > > <html> > > <head> > > </head> > > > > <body> > > This is to check the EDIT link comes > > <script type="text/javascript" > language="javascript" > > > src="http://localhost:8080/hypercontent/js/common.js"> > > </script> > > <script type="text/javascript" > language="javascript" > > > src="http://localhost:8080/hypercontent/js/ajax.js"> > > </script> > > > > <div id="page-edit-link-div"></div> > > > > <script type="text/javascript" > language="javascript"> > > > > > loadToElement(document.getElementById('page-edit-link-div'),'http:// > > > > localhost:8080/hypercontent/testproject/?mode=page-edit-link'); > > </script> > > > > </body> > > </html> > > > > > > > > --- Alex Vigdor <al...@bi...> wrote: > > > >> > >> On Jan 23, 2007, at 7:17 PM, tom tom wrote: > >> > >>> > >>> How can I create the above > /skin/page-edit-link.vm > >>> file > >>> should I have a seperate resource-directory in > my > >>> project definition file. > >> > >> Yes, e.g. > >> > >> <resource-directory label="Velocity template" > >> path="/skins/**/*.vm" > >> publish="true"> > >> <content type="application/x-vtl" /> > >> <output basedir="/" content-type="text/plain" > /> > >> </resource-directory> > >> > >>> > >>> within uPortal what we have is jsps infact the > >> portlet > >>> development strategy is struts-bridge what this > >> means > >>> is our portlets are not govern by xsls. But > still > >> I > >>> will incooperate the above <script > >> type="text/j...... > >>> code segment and try but let me know what are > the > >>> values that I should give for abs-project-base, > >>> bs-server-base, and request-path assuming my > >> project > >>> is running in the following url > >> > >> abs-project-base = http://<HC > >> Server>:<HCPort>/hypercontent/test_project > >> abs-server-base = http://<HC > >> Server>:<HCPort>/hypercontent > >> request-path = /path/in/hc/repository/file.ext > >> > >> > >>> > >>> http://<HC Server>:<HC > >>> > Port>/hypercontent/test_project/?mode=interactive > >>> > >>> > >>> Also explain me how does that entire logic > works, > >> how > >>> does the HC knows about the user credentials. > >>> > >> > >> HC never sees the users credentials - it uses a > >> standard CAS > >> authentication to identify the user. HC uses its > >> own groups and > >> permission configuration to then determine > whether > >> that user has the > >> right to edit the page. > >> > >> Cheers, > >> Alex > >> > >> > >> > > > ---------------------------------------------------------------------- > > > --- > >> Take Surveys. Earn Cash. Influence the Future of > IT > >> Join SourceForge.net's Techsay panel and you'll > get > >> the chance to share your > >> opinions on IT & business topics through brief > >> surveys - and earn cash > >> > > http://www.techsay.com/default.php? > > page=join.php&p=sourceforge&CID=DEVDEV > >> _______________________________________________ > >> Hypercontent-users mailing list > >> Hyp...@li... > >> > > > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > >> > > > > > > > > > > > ______________________________________________________________________ > > > ______________ > > We won't tell. Get more on shows you hate to love > > (and love to hate): Yahoo! TV's Guilty Pleasures > list. > > http://tv.yahoo.com/collections/265 > > > > ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ |
From: Alex V. <al...@bi...> - 2007-02-13 03:14:35
|
Have you tried accessing http://localhost:8080/hypercontent/testproject/?mode=page-edit-link directly in the browser? If not, double-check the pipeline configuration. If you can get it directly, check the javascript console for errors when the JSP tries to make the xmlhttprequest. In general, you'll want to point the request to an actual file, e.g. http://localhost:8080/hypercontent/testproject/index.xml?mode=page- edit-link Cheers, Alex On Feb 12, 2007, at 8:42 PM, tom tom wrote: > Hi Alex, > > In order to get the Edit link I followed all the steps > but it not appearing. > > Initially I tried with the uPortal portlet and Edit > link was not appearing. > > Then I created a sample jsp page as shown below. As my > HC is casified I did login to HC and then hit the URL > which points to the sample jsp I created. Still the > Edit link is not showing. > > I am using Fedora browser. > > Can you let me know what's wrong here, Any way to > trouble shoot > > I incooperated the pipeline.xml which is in bootstrap > (I did edit manually) > > > sample jsp > > <html> > <head> > </head> > > <body> > This is to check the EDIT link comes > <script type="text/javascript" language="javascript" > src="http://localhost:8080/hypercontent/js/common.js"> > </script> > <script type="text/javascript" language="javascript" > src="http://localhost:8080/hypercontent/js/ajax.js"> > </script> > > <div id="page-edit-link-div"></div> > > <script type="text/javascript" language="javascript"> > > loadToElement(document.getElementById('page-edit-link-div'),'http:// > localhost:8080/hypercontent/testproject/?mode=page-edit-link'); > </script> > > </body> > </html> > > > > --- Alex Vigdor <al...@bi...> wrote: > >> >> On Jan 23, 2007, at 7:17 PM, tom tom wrote: >> >>> >>> How can I create the above /skin/page-edit-link.vm >>> file >>> should I have a seperate resource-directory in my >>> project definition file. >> >> Yes, e.g. >> >> <resource-directory label="Velocity template" >> path="/skins/**/*.vm" >> publish="true"> >> <content type="application/x-vtl" /> >> <output basedir="/" content-type="text/plain" /> >> </resource-directory> >> >>> >>> within uPortal what we have is jsps infact the >> portlet >>> development strategy is struts-bridge what this >> means >>> is our portlets are not govern by xsls. But still >> I >>> will incooperate the above <script >> type="text/j...... >>> code segment and try but let me know what are the >>> values that I should give for abs-project-base, >>> bs-server-base, and request-path assuming my >> project >>> is running in the following url >> >> abs-project-base = http://<HC >> Server>:<HCPort>/hypercontent/test_project >> abs-server-base = http://<HC >> Server>:<HCPort>/hypercontent >> request-path = /path/in/hc/repository/file.ext >> >> >>> >>> http://<HC Server>:<HC >>> Port>/hypercontent/test_project/?mode=interactive >>> >>> >>> Also explain me how does that entire logic works, >> how >>> does the HC knows about the user credentials. >>> >> >> HC never sees the users credentials - it uses a >> standard CAS >> authentication to identify the user. HC uses its >> own groups and >> permission configuration to then determine whether >> that user has the >> right to edit the page. >> >> Cheers, >> Alex >> >> >> > ---------------------------------------------------------------------- > --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get >> the chance to share your >> opinions on IT & business topics through brief >> surveys - and earn cash >> > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> > https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> > > > > > ______________________________________________________________________ > ______________ > We won't tell. Get more on shows you hate to love > (and love to hate): Yahoo! TV's Guilty Pleasures list. > http://tv.yahoo.com/collections/265 > |