Hi Steven,

"extends" looks for a dedicated element declaration XML file. If you create one with all the common declaration in there and put it in the classpath then you can use it as you want.

Best regards,

Geert

On 28 Jun 2006, at 21:21, Steven Grimm wrote:

I have a members-only section and an admin-only section. Both members and admins use database authentication. How can I avoid duplicating a bunch of XML in my configuration?

   <element id="AuthMember" extends="rife/authenticated/database.xml">
       <property name="template_name">authentication.login</property>
       <property name="role">member</property>
       <property name="authvar_type">cookie</property>
<property name="datasource"><datasource>postgresql</ datasource></property>
       <submission name="credentials" scope="global">
           <param name="login"/>
           <param name="password"/>
       </submission>
       <childtrigger name="authid"/>
   </element>

The only difference between that and the admin authentication element is the role name. But it doesn't look like I can do something like

   <element id="AuthAdmin" extends="AuthMember">
       <property name="role">admin</property>
   </element>

Is there a way to do it? This is just a config cleanliness issue; obviously it works fine to have both elements fully spelled out, but I'd rather just specify most of that stuff in one place if I can.

-Steve
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to