Hi Tyler,

I've converted the generator to use the JAVA Template factory and
tomorrow I'll convert over from groovy to pure .java, with compilation
to .class files. I have all the pieces in place now to generate as
much information from the Metadata as possible, but now I need to
allow custom constraint additions.

My question is this: How should I allow users to specify a constraint
on a field?

That's the major problem, isn't it? Actually, I would prefer a way that's totally identical to how it's currently done in RIFE. I think that the mail I sent earlier about true POJO constraints and validation support would fit your purpose perfectly. More info here: http://rifers.org/pipermail/rife-users/2006-January/019486.html

The implementation of this hasn't started yet, but I hope being able to do it next week.

I'm using a custom participant to handle the generation, it installs
the CRUD prefix, then generates the Beans (groovy right now) passes
that off to CRUD to handle.

                        builder.enterSubsiteDeclaration(
                                        "crud:test.table")
                                        .setId("PICTURESPOST")
                                        .setUrlPrefix("/admin");

Is there a way to nest properties in a subsite?

<subsite ...>
  <property name=table_column>
     <property name=mimeType>true</>
     etc.

No that's not possible, simply because properties don't declare a tree but a map. This would be very confusing since everywhere else in the framework, nested tags are use to provide values to the content of the tag (ie. you can nest config tags inside a property tag).

Best regards,

Geert


--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +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
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to