ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Malin (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-11335) Add CommonForms as template pattern configured by theme
Date Thu, 06 Feb 2020 18:20:00 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-11335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17031840#comment-17031840

Nicolas Malin commented on OFBIZ-11335:

Good question :)

Currently we haven't different style on single form. I introduce this as suggest "and if we
have two styles by default for single ?".

Just to propage the idea to extend form style by theme.

Passed this case, only CommonBasicSingle would be fine to start

> Add CommonForms as template pattern configured by theme
> -------------------------------------------------------
>                 Key: OFBIZ-11335
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11335
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework, themes
>    Affects Versions: Trunk
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Major
>         Attachments: OFBIZ-11335.patch
> Currently on OFBiz we implemented a process to define some different screen and menu
that can be implemented by the theming
> But for the form we have nothing. All style are hard coded on each
> {code:java}
> <grid name="ListEntities" ...
>  odd-row-style="alternate-row" default-table-style="basic-table hover-bar">{code}
> I propose to extend the theming implementation principle to forms element.
> To start low, I define seven form tempates :
>  * grid CommonSimpleGrid
>  * grid CommonBasicGrid
>  * form CommonSimpleList
>  * form CommonBasicList
>  * form CommonInLineEditList
>  * form CommonSimpleSingle
>  * form CommonBasicSingle
> We can use its like :
> {code:java}
> <form name="LayoutDemoList" extends="CommonBasicList" extends-resource="component://common/widget/CommonForms.xml"{code}
> The main difficulty raise to this task was propage the visualTheme during the ModelForm
intanciation, because we need to load wiget style (and some other information wanted on the
template) on model load in memory. 
> With the linked patch I improved form present on screen 
> [https://localhost:8443/webtools/control/WebtoolsLayoutDemo]
> Finally with this we can extend style form (pagination, header, line and so on ...) direclty
by your theme without change the framework

This message was sent by Atlassian Jira

View raw message