API

"Paul Hinze" <[email protected]> Thu, 29 May 2003 12:35:51 -0700
Newsgroups gmane.comp.java.javalobby.communityplatform
Message-ID <[email protected]>
Here is new layout config:

<layout-config>

    <layouts>
        <layout name="default" path="/layouts/rootLayout.jsp" >
            <column name="1" width="180" />
            <column name="2" width="100%" module="true" />
            <column name="3" width="180" />
            <row name="header" path="/includes/header.jsp" />
            <row name="data" path="/includes/data.jsp" />
            <row name="search" path="/includes/search.jsp" />
            <row name="footer" path="/includes/footer.jsp" />
        </layout>
        <layout name="admin" inherits="default" >
            <row name="header" path="/includes/headeradmin.jsp" />
        </layout>
    </layouts>
    <mappings>
        <action path="/index" title="JavaLobby Community Platform"
inherits="default"  >
            <block name="news" path="/blocks/news.jsp"  caption="News"
column="2" priority="1"  status="1" />
        </action>
        <action path="/module" title="JavaLobby Community Platform"
inherits="default" />
        <action path="/admin" title="JavaLobby Community Platform"
inherits="admin"  />
    </mappings>
</layout-config>

Much better than before, you can define any layout you want, and point to
it:
    <layout name="default" path="/layouts/rootLayout.jsp" >

Setting priority will now have block appear in that order. status="0", will
cause panel, not to display, no need to delete xml.

You can define any number of rows and columns. Only 1 column, can be a
module column, as you can see the widths are set here for columns, so there
is no need for manually setting these in blocks or module jsps. HTML, is now
generated for your content jsp files.

Panel, has now been superclassed, and blocks, modules, and modules actions,
are subclasses of Panel.

Paul