at its core all a cms does is display some user generated content. that can
be accomplished by simply doing this:

class cmspage extends webpage {
  public cmspage(pageparameters params) {
    long pageid=params.getpageid();
    string html=database.loadpage(pageid);
    add(new label("content", html).setescapemarkupstrings(true));
  }
}

<html><body wicket:id="content"></body></html>

now that one page can display any html out of database

-igor


On 10/13/07, pierobo <[EMAIL PROTECTED]> wrote:
>
>
>
>
> igor.vaynberg wrote:
> >
> > for what it is worth i will be creating a cms in the near future using
> > wicket. my idea is simple. the cms is a single wicket page. the users
> have
> > a
> > special tag they use to define dynamic components like <cms:component
> > type=foo param1=param2/>. the page itself has a  single repeater, prior
> to
> > rendering it takes the markup and splits it into chunks of static and
> > component definitions. for a static piece the repeater gets a label, for
> a
> > component definition the repeater gets a new component instantiated. no
> > need
> > for getvariation/java classes per page/ and all that funky stuff that is
> > made for regular applications.
> >
> > -igor
> >
> >
> So you can have multiple html pages managed only by one Java class? That's
> could be what I need.
> I all the examples I looked on Wicket site, I never found an example like
> this.
>
> Should I look to components to do this?
> --
> View this message in context:
> http://www.nabble.com/Is-Wicket-suitable-for-my-CMS--tf4536847.html#a13191210
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to