Re: [Rife-users] Rife guide chapter 8 adding authentication
Hi Pierre, glad it's working out. I agree that the documentation needs work. I'm going over it right now to fix some parts that are not correct anymore (outdated features). Anyway, I'm starting work on a published RIFE book, so in a couple of months docs should be much better. Best regards, Geert On 31-okt-05, at 17:15, Raoul Pierre wrote: Geert, Thank you for your help. It runs fine now. May I make some comments on Guide's chapter 8. I was confused by 3 points: - example 8.3: for element DISPLAY, the flowlink given is "admin" but it's "menu" which is expected by the template display.html - example 8.4: for element MENU, the flowlink given is "back_to_display" but it's "display" which is expected by menu.html - in "Inheriting the auth element", there is no indication to create an AUTH element I know that learning by testing and breaking is a good idea, but it's quite hard so soon in the learning curve :-) Regards Pierre -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Rife guide chapter 8 adding authentication
Geert, Thank you for your help. It runs fine now. May I make some comments on Guide's chapter 8. I was confused by 3 points: - example 8.3: for element DISPLAY, the flowlink given is "admin" but it's "menu" which is expected by the template display.html - example 8.4: for element MENU, the flowlink given is "back_to_display" but it's "display" which is expected by menu.html - in "Inheriting the auth element", there is no indication to create an AUTH element I know that learning by testing and breaking is a good idea, but it's quite hard so soon in the learning curve :-) Regards Pierre Bevin a écrit : OK, now I arrive directly on the menu. But all the links are still with X" The logout and display exit links are not replaced since the menu.xml element doesn't contain these exits, and there are no such global exits. There is thus no information available to replace these tags. Regards Pierre PS : why url="/display"/> This is a convenience declaration if you don't want to reuse your element declarations. is good enough in friends.xml with 5_friends_basic, but This means that you externalize the element declaration for reuse. in friends.xml and Display in display.xml is wrong with 5_friends + authentication ? It's not *wrong*, you specified the implementation that provides the Display functionality for the MENU element declaration. This thus means that the wrong thing happens according to what you want it to do. -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Rife guide chapter 8 adding authentication
OK, now I arrive directly on the menu. But all the links are still with X" The logout and display exit links are not replaced since the menu.xml element doesn't contain these exits, and there are no such global exits. There is thus no information available to replace these tags. Regards Pierre PS : why url="/display"/> This is a convenience declaration if you don't want to reuse your element declarations. is good enough in friends.xml with 5_friends_basic, but This means that you externalize the element declaration for reuse. in friends.xml and Display in display.xml is wrong with 5_friends + authentication ? It's not *wrong*, you specified the implementation that provides the Display functionality for the MENU element declaration. This thus means that the wrong thing happens according to what you want it to do. -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Rife guide chapter 8 adding authentication
Geert, This means that you will use the Display element implementation instead of printing the menu template. If you use this instead it will work: menu OK, now I arrive directly on the menu. But all the links are still with X" Regards Pierre PS : why url="/display"/> is good enough in friends.xml with 5_friends_basic, but in friends.xml and Display in display.xml is wrong with 5_friends + authentication ? ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Rife guide chapter 8 adding authentication
I have not dug into Pierre's sample files, but when you specify menu is this essentially the same as specifying something like implementation="com.uwyn.rife.engine.elements.PrintTemplate"> menu No it's not, since when you extend you do several things: * you hide away the implementation * you get everything in that element declaration (inputs, output, exist, submissions, ...) * that base element implementation can update according to new features and al the declaration elements and the implementation will be updated in your element too I ask because this is (IMHO) a fundamental distinction which is not (or was not) clearly made in the documentation. That is to say, a page which needs to have hyperlinks generated for exits, but which does not otherwise require a processing backend written in Java, is easy to define -- but it does require a reference to a specific named functionality (print template) that is presupplied by Rife. I wonder if there is a way to auto-detect and auto-implement this, for example that an element declaration like this: would automatically use the print-template functionality. Exits would be declared in the usual way. I don't understand what you're getting at, sorry. Can you explain this a bit better? -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Rife guide chapter 8 adding authentication
Surely sendmail reeled when thusly spake Geert Bevin: > > Hi Pierre, > > Everything works correctly, however in the menu.xml element you > specify this: > > > This means that you will use the Display element implementation > instead of printing the menu template. If you use this instead it > will work: > > menu I have not dug into Pierre's sample files, but when you specify menu is this essentially the same as specifying something like menu I ask because this is (IMHO) a fundamental distinction which is not (or was not) clearly made in the documentation. That is to say, a page which needs to have hyperlinks generated for exits, but which does not otherwise require a processing backend written in Java, is easy to define -- but it does require a reference to a specific named functionality (print template) that is presupplied by Rife. I wonder if there is a way to auto-detect and auto-implement this, for example that an element declaration like this: would automatically use the print-template functionality. Exits would be declared in the usual way. HTH fred -- F.Baube* Georgetown/MSFS/1988 * Act locally. email fbaube#welho.com * Think pangalactically. gsm +358 41 536 8192 * wmd 60°11'10.8"N 24°57'36.9"E ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Rife guide chapter 8 adding authentication
Hi Pierre, Everything works correctly, however in the menu.xml element you specify this: This means that you will use the Display element implementation instead of printing the menu template. If you use this instead it will work: menu Best regards, Geert On 31-okt-05, at 10:55, Raoul Pierre wrote: Geert, Here is a zip file of my WEB-INF (2d try without jar and class files in the zip) I work with Windows XP Pro SP1, j2sdk1.4.2_04, Tomcat 5.0.28 (not Jetty) Pierre Hi Pierre, I tried this out and couldn't reproduce your problem. Can you zip your example directory and send it as an attachment, like that I'm sure we have exactly the same files. Best regards, Geert On 31-okt-05, at 01:31, Raoul Pierre wrote: Hello, So I'm stuck. I can't get a working "go to menu" link: - first try I get in the html page go to menu" - second one: I move from admin.xml to friends.xml and I changed it to Then I get a valid link as go to menu but it comes back to the list of data... I don't see what I did wrong. See my files admin.xml and friends.xml below. Pierre friends.xml = inherits="AUTH" /> admin.xml = ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Rife guide chapter 8 adding authentication
Hi Pierre, I tried this out and couldn't reproduce your problem. Can you zip your example directory and send it as an attachment, like that I'm sure we have exactly the same files. Best regards, Geert On 31-okt-05, at 01:31, Raoul Pierre wrote: Hello, So I'm stuck. I can't get a working "go to menu" link: - first try I get in the html page go to menu" - second one: I move from admin.xml to friends.xml and I changed it to Then I get a valid link as go to menu but it comes back to the list of data... I don't see what I did wrong. See my files admin.xml and friends.xml below. Pierre friends.xml = url="/logout"> inherits="AUTH" /> admin.xml = ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users