Igor has already given a reply which is probably the best way to do it in
wicket. I agree it is much simpler solution to what I was thinking.
The reason I fell in love, and still am, with wicket was the ability to
separate html and java.
So i do not want to be generating html from inside java aka raw servlet
programming.
However if you still need to be able to support dynamic components (which will
be
created by the user), here is what I was thinking:
Say I have a model called Customer { firstName, lastName, emailAddress}
which I am able to get a reference of in my page/panel/component.
Now if I am giving a user to determine the way he wants to display the
information of this customer, she could choose many ways.
Two for example would be:
View-1
Name: lastName, firstName
Contact: emailAddress
View-2
<a href="mailto:emailAddress">firstName</a>
Now what I was suggesting is allow the user to input her html in,
some manner and store meta information of the hierarchy of java
contents, database could be a contender. The I could have a mechanism in
the java code to understand this meta info and add components appropriately
in the java class.
I agree this could be a complicated way of doing things, but I am only stating
what I was thinking.
Shams
----- Original Message ----
From: pierobo <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, October 13, 2007 6:32:35 PM
Subject: Re: Is Wicket suitable for my CMS?
Shams Imam wrote:
>
> Then you could maintain a java class corresponding each html file the
user
> can create.
> When the user saves his html you could store meta information for
that
> html
> file like what all wicket-panels it uses. Then inisde the java class
you
> can
> process this meta information and add corresponding panels to your
page in
> java :).
>
> Shams
> --
> Shams Mahmood
>
>
Do you mean that I could inspect the pages at runtime and store all
custom
tag as a metadata? This is interesting, but since that pages have not a
bound Java class, how could I manage these?
Sorry if these questions seem silly to you Wicket users :blush:
--
View this message in context:
http://www.nabble.com/Is-Wicket-suitable-for-my-CMS--tf4536847.html#a13191270
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
http://farechase.yahoo.com/