[Hippo-cms7-user] HST component archtype
Mansour Al Akeel
mansour.alakeel at gmail.com
Sun Nov 22 00:52:55 CET 2009
Sorry, but I think I am a bit more confused.
I udnerstand a component in general, is a combination of
functionality. It defines input and outputs. More like a black box. In
hippo, the same concept applies. It contains java classes that defines
the interaction btween the jsp and the repo. It's like an mvc, where
the component here plays the presentaion and the business logic role.
While the repo is for the data. Hippo component contain a description
of the repo layout, and how to layout the data.
The tutorial about adding a page is clear. It shows how to define the
component through java classes, and create the jsp. Then combine all
of these and map them to the URL. But what it doesn't show is
packaging this component and reusing it. For example, If I wanted to
create a reusable functionality like forum or comments component. I
can follow the tutorial, but if I want to package it, then I will have
to export the nodes I created under "hst:configuraton" and the copy
the classes and jsp to a newly create HST project. Right ?
If this is true, how can I deploy and use this project ?
On Wed, Nov 18, 2009 at 5:20 AM, Ard Schrijvers
<a.schrijvers at onehippo.com> wrote:
> Hello Mansour,
> I think there is a misunderstanding about components here: A component
> is some small block of content on your webpage, where the total
> webpage is build of some combination of components. A component is
> actually a combination of a java class with a jsp/freemarker script.
> When we are talking about standard components on the forge, we mean
> ready to copy paste pieces of code for having some block, like an rss,
> or an archive. We cannot provide the jsp of course.
> The HST2 delivers a set of utilities to really easy build your website
> (components) or portal (without even knowing your are building a
> portal, the blocks are just the portlets).
> Building a HST2 site is a combination of configuring your components
> and url space: this is explained at . See url design and page
> design. Now, when you want to create your own custom component, there
> is an example over here . (note that the part about 'log in to cms
> console to edit the HST configuration.' is describing the same as you
> can do in  with the configuration editor interface, only now
> directly in the console instead of though some interface)
> Hopes this clears up things a little
> Regards Ard
>  http://www.onehippo.org/site-toolkit/config_editor
>  http://www.onehippo.org/site-toolkit/getting+started/start+project
> On Wed, Nov 18, 2009 at 2:31 AM, Mansour Al Akeel
> <mansour.alakeel at gmail.com> wrote:
>> Thank you.
>> Can you please give me a hint about where to find the usage of
>> components ? I saw there's a core components, but how are they added to
>> the demosuite ? In which maven project ??
>> Thank you.
>> On Tue Nov 17,2009 12:59 pm, Ard Schrijvers wrote:
>>> Hello Mansour,
>>> the easiest way to get an idea is to start up the demosuite. You can
>>> find this in the documentation. Then you can see some HST component
>>> examples in action.
>>> Regards ard
>>> On Mon, Nov 16, 2009 at 6:11 PM, Mansour Al Akeel
>>> <mansour.alakeel at gmail.com> wrote:
>>> > Is there a simple example about using HST component. How can I utilize
>>> > it and use it ?
>>> > http://hst-comp-arch.forge.onehippo.org/usage.html
>>> > I added a component created from the defualt to my site/pom.xml as a pom
>>> > typed depndency. I am not sure if this is what I need to do.
>>> > thank you.
>>> > _______________________________________________
>>> > Hippo-cms7-user mailing list and forums
>>> > http://www.onehippo.org/cms7/support/community.html
>>> Hippo-cms7-user mailing list and forums
>> Hippo-cms7-user mailing list and forums
> Hippo-cms7-user mailing list and forums
More information about the Hippo-cms7-user