Geert Bevin wrote:
it looks pretty useful, but doesn't this overlap in functionality with this: http://rifers.org/wiki/display/RIFE/Blockvalue+scripting+support#Blockvaluescriptingsupport-4a
Well, what do you know, it certainly does. I hadn't really looked at the scripting support in a while and had forgotten all about that. I feel a bit dumb now! Oh well, maybe someone will find my code useful as a demonstration of how an embedded element can interact with the embedding template (which was really the only part of the implementation that took me much experimentation.)
For this specific purpose I think there is a slight aesthetic case to be made for the more declarative approach my version uses, but that's highly subjective and honestly I wouldn't have written it if I'd remembered about the ROLEUSER-based scripting support.
I really like how you're written out the embedded login element. You can however check out the authentication example with a more elaborate way that immediately includes the login form in that element: http://rifers.org/07_authentication/src/implementations/tutorial/authentication/Credentials.java http://rifers.org/07_authentication/src/sites/authentication.xml (embeddable login box section)
*That* one I was aware of -- in my actual use case I was doing some stuff other than a simple "log in"/"log out" link but I wanted to keep the example on the web page as simple as possible. And I was doing some output that was specific to a particular embedding page, so I didn't want to have the embedded element use its own template.
Thanks a lot for contributing all this. I'm going to setup a RIFE/Modules project that can aggregate all this useful elements. Interested getting commit status for that? Frederic, that would also be a nice place for your sortable table element, and Tyler, it would be cool for you Ajax stuff until it gets fully finalized.
Sure, if that gets set up I'll be happy to contribute the occasional useful bit. Most of which will hopefully be a bit less redundant than this one!
-Steve _______________________________________________ Rife-users mailing list [email protected] http://lists.uwyn.com/mailman/listinfo/rife-users
