[Hippo-cms7-user] HST component archtype
Mansour Al Akeel
mansour.alakeel at gmail.com
Tue Nov 24 04:02:51 CET 2009
Thank you Ard:
I see your point in the work around. Instead of reading the jsps from
the jar file, you write them to the repo and then you rea and run them
from there. In this case the jsp or freemaker code would be included in
the repo initialization xml files. This will allow the plugaability,
where all the contents will be written to the repo during the hst
The development will be harder as we have to
write (sync) this templates with the repo, everytime we change the
templates. This is fine, but for the development porposes, it's nice to
be able to apply the modification and see the results. Any how, I think
this will do the job, and will allow to package a component in a way
closer to a black box.
Anytime line for this ?
On Mon Nov 23,2009 10:08 am, Ard Schrijvers wrote:
> Hello Mansour (cc the hst2 list),
> I think you have a very well understanding of how the HST2 works wrt
> components! Your explanation is spot on. Now, for reusable components,
> we are still in progress of delivering real reuse: The reuse there is
> now, is that you can implement your, let's say Archive.java component
> once, and some other components, and have this reused by several
> project. Now, I understand, it would ne quite a bit nicer, if the
> components are better pluggable: just add a jar, and have, let's say,
> the paging archive available.
> As the HST2 is designed to have namespacing within components (also to
> have seamless portal integration), components run isolated. This is
> really suitable for the pluggability you would like to have I think.
> Even closed source components could be used.
> Wrt the packaging, this is basically possible by combining the java
> class plus repository initialisation xml files (ths
> hippo-extensions.xml + files). Then, we would still be stuck with the
> jsp's, and how to package them. I think jsp's in some packaged jar are
> not ideal.
> What we would like to do and already did partly to improve this is the
> You can already use freemarker intertwined with jsp to create a single
> webpage. Thunk contains a not yet ready version for loading freemarker
> templates from the repository. This means, we can package all reusable
> functionality, (java class, hst configuration and scripts (not jsp but
> freemarker), where the latter two will be loaded into the repository).
> This would hopefully lead to the pluggability you like to have. Note
> that we have this almost already completely in place.
> Regards Ard
> On Sun, Nov 22, 2009 at 12:52 AM, Mansour Al Akeel
> <mansour.alakeel at gmail.com> wrote:
> > 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
> >>>> http://www.onehippo.org/cms7/support/community.html
> >>> _______________________________________________
> >>> Hippo-cms7-user mailing list and forums
> >>> http://www.onehippo.org/cms7/support/community.html
> >> _______________________________________________
> >> Hippo-cms7-user mailing list and forums
> >> http://www.onehippo.org/cms7/support/community.html
> > _______________________________________________
> > Hippo-cms7-user mailing list and forums
> > http://www.onehippo.org/cms7/support/community.html
> Hippo-cms7-user mailing list and forums
More information about the Hippo-cms7-user