i dont see why it wouldnt be possible. if you can instantiate a page
you can use a visitor to visit all the components and generate
approximately appropriate markup.

perhaps if you had something working you would get more interest.

-igor

On Mon, Nov 9, 2009 at 1:57 AM, Ashley Aitken <[email protected]> wrote:
>
> Dear All,
>
> I have seen a feature in Wicket Bench (I think it is) that can automatically
> generate the Web component object construction hierarchy for a given Web
> form with Wicket ids.  It's a neat feature.  However, I am wondering if it
> would be possible to do the reverse.
>
> Could Wicket classes be extended to automatically generate the HTML file
> (based on the Wicket object hierarchy) if the HTML file doesn't already
> exist?  Obviously, it couldn't generate the non-dynamic HTML aspects of a
> Web page, but at least it could provide a skeleton page?
>
> This could be configured to overwrite (or not) existing files each time the
> code changed. Perhaps it could be configured to include (for debugging
> purposes) some Wicket information for each item in the page (almost like a
> RAD solution but the intention is not for RAD).
>
> Perhaps it could even use a form of the "generation gap pattern" by putting
> each dynamic chunk into a separate HTML file and then #include them into a
> main HTML file which it doesn't get overwritten.  Though I'm not sure how
> this would exactly work ...
>
> I've seen Wicket RAD and Wicket Web Beans but these are not what I am
> thinking about.  Eventually, I would want a graphics / Web designer to
> complete the page around the skeleton dynamic HTML parts (that perhaps
> Wicket has autogenerated).
>
> I know this would never be the full solution but it may allow one to
> concentrate just on the Java code and not even have to worry about the HTML
> to start with.  I think it could be an interesting approach.  Is this
> possible? Has this already been done?
>
> Any comments appreciate.
>
> Cheers,
> Ashley.
>
>
> --
> Ashley Aitken
> Perth, Western Australia
> mrhatken at mac dot com
> Skype Name: MrHatken (GMT + 8 Hours!)
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to