[Nitro] Nitro/OG examples that show recommended ......

George Moschovitis george.moschovitis at gmail.com
Fri Sep 2 05:15:28 EDT 2005

> 1.) Passing data to/from controller variables/form fields.
> I am assuming there are predefined "controls" that can take the form data and validate it against certain constraints, automatically convert the data to the desired format, and if there is an error automatically populate the appropriate error list that can be used to send the page back to the same page with error messages. (similar to what Rails does with validation errors for an AR object).

yeap, this works almost exactly like AR validation. Have a look at 


> Ideally this would also work with non OG managed classes as well????

Yeap, unlike AR this works on non managed classes. 
> 2.) Is there a recommended directory layout for views/controllers.  If I have 3 controllers and they all have an index.xhtml page, is there a recommend place to put these different files.

Nitro, unlike Rails does not force a directory structure. But If you
like it, you can use the structure of Flare.

> 3.) An example of OG using compound primary keys, especially with belongs_to, or other relations, especially when dealing with a legacy database via an ODBC driver.

have a look at:


> 4.) An example of OG using sub-objects i.e. Person is an OG managed class and it has an Address(line1, line2, city, st, zip).  So you could have Person.find_something[0].address.city.  Is this even possible with OG

of course, it works just how you describe this :)



More information about the Nitro-general mailing list