|
Hey folks,
I have a sample implementation for increasing the power of scaffolding to allow scaffolding of type editors. It's still under work but you guys might consider it worthwhile putting into 0.5 w/ minor adjustments. Basically, the idea is to make scaffolding something that people could make their standard way of doing things rather than something they use to just 'get started'. http://jira.codehaus.org/browse/GRAILS-756 I also cross-linked with http://grails.org/Data+Binding+and+PropertyEditors which discusses a proposal to address a similar (although not quite identical, imo) issue. Anyways, I'm just posting this to the list to see what others think of the idea. I only just banged this up over the course of today, so... please take that into account before any of you say "ooh, I'll put that into my live webapp right now". Best, - Daiji ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
Actually, you make make it much clearer if you put in an example.
:-) Cheers, Sey On 2/11/07, D T <[hidden email]> wrote: Hey folks, -- Blogging Seymour Cakes http://seymores.blogspot.com |
|
In reply to this post by D T-2
True. That's the result of me sending that email just b4 hitting the
sack. :) Too rushed on my part. I started writing another comment to the JIRA bug but changed my mind. I'm writing up a Sandbox wiki page. I'll post the URL once it's done. And once I complete the implementation I'll add it somewhere. I'll see if I can do this via a plugin. - Daiji Seymour Cakes wrote: > Actually, you make make it much clearer if you put in an example. > :-) > > > Cheers, > Sey > > > On 2/11/07, *D T* < [hidden email] <mailto:[hidden email]>> > wrote: > > Hey folks, > > I have a sample implementation for increasing the power of > scaffolding > to allow scaffolding of type editors. It's still under work but you > guys might consider it worthwhile putting into 0.5 w/ minor > adjustments. Basically, the idea is to make scaffolding something > that > people could make their standard way of doing things rather than > something they use to just 'get started'. > > http://jira.codehaus.org/browse/GRAILS-756 > > I also cross-linked with > http://grails.org/Data+Binding+and+PropertyEditors which discusses a > proposal to address a similar (although not quite identical, imo) > issue. > > Anyways, I'm just posting this to the list to see what others > think of > the idea. I only just banged this up over the course of today, so... > please take that into account before any of you say "ooh, I'll put > that > into my live webapp right now". > > Best, > > - Daiji > > > > > ____________________________________________________________________________________ > Don't pick lemons. > See all the new 2007 cars at Yahoo! Autos. > http://autos.yahoo.com/new_cars.html > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > > > -- > > Blogging Seymour Cakes > http://seymores.blogspot.com ____________________________________________________________________________________ Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396546091 --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by D T-2
I hope the following abstract clarifies what I'm proposing:
http://grails.org/Scaffolding+of+field+editors - Daiji D T wrote: > True. That's the result of me sending that email just b4 hitting the > sack. :) Too rushed on my part. > > I started writing another comment to the JIRA bug but changed my mind. > > I'm writing up a Sandbox wiki page. I'll post the URL once it's done. > And once I complete the implementation I'll add it somewhere. I'll see > if I can do this via a plugin. > > - Daiji > > Seymour Cakes wrote: > >> Actually, you make make it much clearer if you put in an example. >> :-) >> >> >> Cheers, >> Sey >> >> >> On 2/11/07, *D T* < [hidden email] <mailto:[hidden email]>> >> wrote: >> >> Hey folks, >> >> I have a sample implementation for increasing the power of >> scaffolding >> to allow scaffolding of type editors. It's still under work but you >> guys might consider it worthwhile putting into 0.5 w/ minor >> adjustments. Basically, the idea is to make scaffolding something >> that >> people could make their standard way of doing things rather than >> something they use to just 'get started'. >> >> http://jira.codehaus.org/browse/GRAILS-756 >> >> I also cross-linked with >> http://grails.org/Data+Binding+and+PropertyEditors which discusses a >> proposal to address a similar (although not quite identical, imo) >> issue. >> >> Anyways, I'm just posting this to the list to see what others >> think of >> the idea. I only just banged this up over the course of today, so... >> please take that into account before any of you say "ooh, I'll put >> that >> into my live webapp right now". >> >> Best, >> >> - Daiji >> >> >> >> >> ____________________________________________________________________________________ >> Don't pick lemons. >> See all the new 2007 cars at Yahoo! Autos. >> http://autos.yahoo.com/new_cars.html >> >> --------------------------------------------------------------------- >> To unsubscribe from this list please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> >> -- >> >> Blogging Seymour Cakes >> http://seymores.blogspot.com >> > > > > > ____________________________________________________________________________________ > Need Mail bonding? > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. > http://answers.yahoo.com/dir/?link=list&sid=396546091 > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > > ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by D T-2
I've seen your entry on the Wiki (http://docs.codehaus.org/display/GRAILS/Scaffolding+of+field+editors) and installed the patch which I think is a really good idea. I wondered how much work it would be to add same design pattern for Controller scaffolding. I also wanted to be able to add a new "type" of Scaffold (simply by adding a GSP to templates\scaffolding folder). The scenario is that I want all my domain objects to have a find page (find.gsp) as well as list. This is a page with an ajax remoteField which activates a search method on the Controller (which does a findAllBy***Like query across the domain properties). This then renders the list template (which I have been able to cut down using your implementation). Thx, P. |
|
In reply to this post by D T-2
oops! I've updated that page (and the JIRA issue) to indicate that it's
been implemented as a plugin: http://grails.org/ScaffoldTags+Plugin which uses the standard template-driven scaffolding to call tags that invoke the renderer templates. I believe the set of scaffolding templates is hardwired in the GenerateUtils class which is called by generate-all. We could probably do something about that, however. However, the set of renderers is not hard-wired, so you can do whatever you want there, and the amount of work to generate a new type of domain view should be a lot smaller. - Daiji fezpp wrote: > D T-2 wrote: > >> Basically, the idea is to make scaffolding something that >> people could make their standard way of doing things rather than >> something they use to just 'get started'. >> >> http://jira.codehaus.org/browse/GRAILS-756 >> >> >> > > I've seen your entry on the Wiki > (http://docs.codehaus.org/display/GRAILS/Scaffolding+of+field+editors) and > installed the patch which I think is a really good idea. > I wondered how much work it would be to add same design pattern for > Controller scaffolding. > I also wanted to be able to add a new "type" of Scaffold (simply by adding a > GSP to templates\scaffolding folder). > The scenario is that I want all my domain objects to have a find page > (find.gsp) as well as list. This is a page with an ajax remoteField which > activates a search method on the Controller (which does a findAllBy***Like > query across the domain properties). This then renders the list template > (which I have been able to cut down using your implementation). > > Thx, P. > > ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
