Hi Greet,
I've been playing around the example for RIFE/CRUD and I have some questions
about the customization:
1. The default CRUD impl does not provide dropping a table. If I want to
drop a table, I need to implement a Drop element and a template for layout.
Is this correct?
2. If I don't want the layout of the default menu. For example, if I have a
lot of tables, I don't want to show all the table names on the top-level
menu. I want to be able to select them from a drop down box, can a
customized menu element/transformer/template acheive this?
3. If I don't specify template name as a property to the element, from the
src code it seems that RIFE will throw an exception. By looking at
PrintCrudTemplate, it behaves the same as PrintTemplate. But in the example
most of the elements do not specify template name as a property. How does
the framework figure out which template to transform?
4. Based on my guessing about 3, For the CRUD example, if I added a new bean
(NewTest) and I want to use my own template for add & edit. all I need to
do is to define the following:
<subsite id="NEWTEST" file="crud:com.uwyn.rife.crud.samples.beans.NewTest"
urlprefix="/newtest">
<property name="crud_template_name-add">admin.new_add</property>
<property name="crud_template_name-edit">admin.new_edit</property>
</subsite>
Is this correct?
Thanks again for all you help.
Jing
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users