Mach-II/Mach-II-Framework — Issue #27: Bean generator for dashboard
Author: mpwoodward
Created: 2012-03-01 01:10:55+00:00
State: open
Labels: enhancement

(Moved from http://trac.mach-ii.com/machii/ticket/680)

The dashboard is part of the core download as of 1.9. I think we should add a bean generator in the "Tools" tab of the Dashboard. This would work like my Rooibos Generator ( http://rooibos.maestropublishing.com) using a simple shorthand to generate a bean. The one additional feature would be to optionally write the CFC to disk and not just to the screen.

If anybody is interesting in taking this task, feel free to do accept it.

Changed 19 months ago by Jorge Loyo

I could take a crack at it... Let me work on it and I'll show you what I can come up with.

comment:2 Changed 19 months ago by peterjfarrell

Owner changed from peterfarrell to jorge_loyo
Sure thing it's all yours. Develop it in the 1.9 /dashboard branch. Version 1.1 of the Dashboard is in RC1. Feel free to look at the Rooibos JS (since it's all in JS) -- it's a mess I wrote it 6 years ago.

comment:3 Changed 18 months ago by Jorge Loyo

Hi all, I have a CFC that creates the bean code and a simple page with a form to generate the bean.

Would this be something that could be achieved with endpoints? I thought it might be a cool alternative instead of JavaScript?. What do you think?

comment:4 Changed 15 months ago by peterjfarrell

Milestone changed from Mach-II 1.9.0 Milestone 4 to Mach-II 1.9.0 Milestone 3
Re-targed to 1.9 M3

comment:5 Changed 13 months ago by peterjfarrell

Milestone changed from Mach-II 1.9.0 Milestone 3 to Mach-II 1.9.5 Milestone 1
Re-targeting low priority items to 1.9.5 so we can get 1.9.0 M3 out.

comment:6 Changed 12 months ago by peterjfarrell

Owner changed from jorge_loyo to jason_blum
Jason wants this now so he's going to complete this ticket.

comment:7 Changed 11 months ago by derrick_jackson

Owner changed from jason_blum to derrick_jackson
comment:8 Changed 11 months ago by peterjfarrell

Looking good Derrick. Looks like you found a place to put it in the dashboard. Yay.

I'm not a fan of LTOs or stub stuff any more. I think it should be removed unless you think some of it needs to there -- it probably needs an update.

comment:9 Changed 11 months ago by derrick_jackson

I was wondering about the LTO and Flex stuff. I've never used it, so consider it removed.

comment:10 Changed 11 months ago by peterjfarrell

(In [2734]) BeanGeneratorListener? was in wrong directory and threw an exception. refs #680

comment:11 Changed 11 months ago by peterjfarrell

(In [2735]) - Updated formatting and fixed some JS issues refs #680

comment:12 Changed 11 months ago by peterjfarrell

(In [2737]) - Updated JS refs #680

comment:13 Changed 11 months ago by derrick_jackson

PJF,

Thanks for clearing up those items in the generator and your modifications look really good. Two questions and one comment:

does the dashboard use jQuery in any way (could not find any ref to that so i thought i'd ask)
do you mind if the bean generator is converted to JS
I could not quite figure out how to display a message at the top of the bean generator page after the file has been saved to disk.
comment:14 Changed 11 months ago by peterjfarrell

Derrick,

The dashboard uses Prototype and Scriptaculous.
The JS probably needs to be cleaned up. Do you mean converting it to CFML code?
Take a peek at how messages are displayed for other pages using the MessageHandler?.cfc
comment:15 Changed 11 months ago by derrick_jackson

Morning,

Not that familiar with Prototype and Scriptaculous. WIll have to look into them.
Sorry I meant convert the JS to jQuery.
I'll do some more digging into this. I'm sure its something tiny that I'm missing.
Proposed Enhancement (still chewing on this one thought) Ability to list existing beans like listeners are listed on the Config page. By clicking on the bean, the template code (if there) would be read into the bean template text area. This would allow the user to make modification and generate the bean. Still have to figure out how best that would work but wanted your thoughts on it.

comment:16 Changed 3 months ago by derrick_jackson

Cc kurt_wiersma, matt_woodward, mike_rogers, brian_fitzgerald, adrian_scott added; kurt_wiersma matt_woodward mike_rogers brian_fitzgerald adrian_scott removed
Been a while since I've looked at this. Sometime next week I Will have to see where I left off