Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

Anil Patel-3
Hans,
Thanks a lot for your efforts in project module.
I wanted to do UI in project component using ftl so Its possible to do
Ajax based UI goodies.

If you really don't mind can you please NOT replace ftl files with form
widget.

Regards
Anil Patel




On Sun, 2007-11-25 at 02:54 +0000, [hidden email] wrote:

> Author: hansbak
> Date: Sat Nov 24 18:54:44 2007
> New Revision: 597948
>
> URL: http://svn.apache.org/viewvc?rev=597948&view=rev
> Log:
> more updates and replace ftl by form in projectmgr
>
> Removed:
>     ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editphaseandassoc.ftl
> Modified:
>     ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
>     ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml
>     ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml
>     ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml
>
> Modified: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml?rev=597948&r1=597947&r2=597948&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml (original)
> +++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml Sat Nov 24 18:54:44 2007
> @@ -103,6 +103,12 @@
>          <response name="success" type="view" value="FindTask"/>
>          <response name="error" type="view" value="FindTask"/>
>      </request-map>
> +    <request-map uri="createProjectPhase">
> +        <security https="true" auth="true"/>
> +        <event type="simple" path="org/ofbiz/workeffort/workeffort/WorkflowSimpleEvents.xml" invoke="createWorkEffort"/>
> +        <response name="success" type="view" value="FindPhase"/>
> +        <response name="error" type="view" value="FindPhase"/>
> +    </request-map>
>      <request-map uri="updateTask">
>          <security https="true" auth="true"/>
>          <event type="service" invoke="updateWorkEffort"/>
>
> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml?rev=597948&r1=597947&r2=597948&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml (original)
> +++ ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml Sat Nov 24 18:54:44 2007
> @@ -213,7 +213,7 @@
>                      <order-by field-name="phaseName"/>
>                      <order-by field-name="taskName"/>
>                  </entity-and>
> -                <set field="workEffort" from-field=""/>
> +                <set field="task" from-field=""/>
>              </actions>
>              <widgets>
>                  <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
> @@ -339,10 +339,11 @@
>                  <set field="titleProperty" value="PageTitleEditPhase"/>
>                  <set field="tabButtonItem" value="phases"/>
>                  <set field="labelTitleProperty" value="PageTitleFindPhase"/>
> -                <set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
> -                <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
> -                <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
> -                <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
> +                <set field="projectId" from-field="parameters.workEffortIdFrom"/>
> +                <entity-and entity-name="WorkEffort" list-name="phases">
> +                    <field-map field-name="workEffortParentId" env-name="projectId"/>
> +                    <field-map field-name="workEffortTypeId" value="PHASE"/>
> +                </entity-and>
>              </actions>
>              <widgets>
>                  <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
> @@ -356,9 +357,12 @@
>                                          <include-form name="ListPhases" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
>                                      </container>                                              
>                                  </container>    
> -                                <platform-specific>
> -                                        <html><html-template location="component://projectmgr/webapp/projectmgr/project/editphaseandassoc.ftl"/></html>
> -                                </platform-specific>
> +                                <container style="screenlet">
> +                                    <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddPhase}</label></container>                                
> +                                    <container style="screenlet-body">
> +                                        <include-form name="AddProjectPhase" location="component://projectmgr/widget/forms/TaskForms.xml"/>
> +                                    </container>
> +                                </container>
>                              </widgets>                            
>                          </section>
>                      </decorator-section>
>
> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml?rev=597948&r1=597947&r2=597948&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml (original)
> +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml Sat Nov 24 18:54:44 2007
> @@ -145,13 +145,9 @@
>                  <field-map field-name="statusId" env-name="currentStatusId"/>
>              </entity-one>
>          </row-actions>
> -        <field name="workEffortTypeId"><hidden/></field>
> -        <field name="workEffortId"><hidden/></field>
>          <field name="workEffortIdFrom"><hidden/></field>
> -        <field name="fromDate"><hidden/></field>
> -        <field name="workEffortAssocTypeId"><hidden/></field>
>          <field name="workEffortIdTo" entry-name="workEffortId"><hidden/></field>
> -        <field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><display/></field>
> +        <field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><text/></field>
>          <field name="currentStatusId">
>              <drop-down allow-empty="false" current-description="${currentStatus.description}">
>                  <entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
> @@ -161,10 +157,6 @@
>              </drop-down>
>          </field>
>          <field name="description" title="${uiLabelMap.CommonDescription}"><text size="15"/></field>        
> -        <field name="estimatedStartDate" entry-name="workEffortToEstimatedStartDate" title="${uiLabelMap.WorkEffortStartDate}"><date-time/></field>
> -        <field name="estimatedCompletionDate"  entry-name="workEffortToEstimatedCompletionDate" title="${uiLabelMap.WorkEffortStartDate}"><date-time/></field>        
> -        <field name="actualStartDate" entry-name="actualStartDate" title="${uiLabelMap.WorkEffortCompletionDate}"><date-time/></field>
> -        <field name="actualCompletionDate"  entry-name="actualCompletionDate" title="${uiLabelMap.WorkEffortCompletionDate}"><date-time/></field>
>          <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
>      </form>
>      <form name="ListPhaseTaskInfo" type="list" list-name="phases">
>
> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml?rev=597948&r1=597947&r2=597948&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml (original)
> +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml Sat Nov 24 18:54:44 2007
> @@ -24,12 +24,12 @@
>      <form name="EditTask" type="single" target="updateTask" default-map-name="task">
>          <actions>
>              <set field="projectId" from-field="parameters.workEffortIdFrom"/>
> -           <entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
> +            <entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
>                  <field-map field-name="statusId" env-name="task.statusId"/>
>              </entity-one>
>          </actions>
>          <alt-target use-when="projectId!=null" target="createProjectTaskOrPhase"/>
> -        <alt-target use-when="task==null" target="createTask"/>
> +        <alt-target use-when="task==null&amp;&amp;projectId==null" target="createTask"/>
>          <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
>          <field name="DONE_PAGE"><hidden value="${donePage}"/></field>
>          <field name="workEffortTypeId"><hidden value="TASK"/></field>
> @@ -37,6 +37,7 @@
>          <field use-when="task==null&amp;&amp;taskId==null" name="taskId" title="${uiLabelMap.ProjectMgrWorkEffortId}"><ignored/></field>
>          <field use-when="task==null&amp;&amp;taskId!=null" name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
>          <field use-when="task!=null" name="workEffortName" title="${uiLabelMap.CommonName}*"><display/></field>
> +        <field use-when="task==null&amp;&amp;taskId!=null" name="workEffortName" title="${uiLabelMap.CommonName}*"><text/></field>
>          <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
>          <field use-when="task!=null" name="statusId" title="${uiLabelMap.CommonStatus}">
>              <drop-down allow-empty="false" current-description="${currentStatus.description}">
> @@ -97,13 +98,22 @@
>          <field name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><date-time/></field>
>          <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
>      </form>
> -    <form name="AddPhase" type="single" target="createProjectTaskOrPhase" default-map-name="dummy">
> +    <form name="AddPhase" type="single" target="createProjectTaskOrPhase">
>          <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
> +        <field name="workEffortParentId"><hidden value="${projectId}"/></field>
>          <field name="workEffortTypeId"><hidden value="PHASE"/></field>
>          <field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
>          <field name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
>          <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
> +        <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
> +    </form>
> +    <form name="AddProjectPhase" type="single" target="createProjectPhase">
> +        <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
>          <field name="workEffortParentId"><hidden value="${projectId}"/></field>
> +        <field name="workEffortTypeId"><hidden value="PHASE"/></field>
> +        <field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
> +        <field name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
> +        <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
>          <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
>      </form>
>      
> @@ -118,8 +128,8 @@
>          </field>
>          <field name="workEffortTypeId" title="${uiLabelMap.ProjectMgrWorkEffortTypeId}"><display-entity entity-name="WorkEffortType"/></field>
>          <field name="createdStamp"><display/></field>
> -        <field name="phase"><display description="${phaseName}[${phaseId}]"/></field>
> -        <field name="project"><hyperlink target="EditProject?workEffortId=${projectId}" description="${projectName}[${projectId}]"/></field>
> +        <field name="phase"><hyperlink target="FindPhase?workEffortIdFrom=${projectId}" description="${phaseName}[${phaseId}]"/></field>
> +        <field name="project"><hyperlink target="EditProject?workEffortIdFrom=${projectId}" description="${projectName}[${projectId}]"/></field>
>      </form>
>      <form name="ListChildEfforts" target="updateTaskListAndAssoc" title="" list-name="tasks" type="list" separate-columns="true" paginate-target="FindTaskList">
>          <row-actions>
>
>

Reply | Threaded
Open this post in threaded view
|

UI tools in Trunk was Re: svn commit: r597948 - in

BJ Freeman
this brings up a question about what goes into the trunk
what are the acceptable UI tools for the OOTB ofbiz.
Are the tools like Ajax stubs so a developer can use them at there
discretion, once they have download the OOTB?
Can other tools bases for UI be also added for the same purpos

Anil Patel sent the following on 11/24/2007 10:31 PM:

> Hans,
> Thanks a lot for your efforts in project module.
> I wanted to do UI in project component using ftl so Its possible to do
> Ajax based UI goodies.
>
> If you really don't mind can you please NOT replace ftl files with form
> widget.
>
> Regards
> Anil Patel
>
>
>
>
> On Sun, 2007-11-25 at 02:54 +0000, [hidden email] wrote:
>> Author: hansbak
>> Date: Sat Nov 24 18:54:44 2007
>> New Revision: 597948
>>
>> URL: http://svn.apache.org/viewvc?rev=597948&view=rev
>> Log:
>> more updates and replace ftl by form in projectmgr
>>
>> Removed:
>>     ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editphaseandassoc.ftl
>> Modified:
>>     ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
>>     ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml
>>     ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml
>>     ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml
>>
>> Modified: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml?rev=597948&r1=597947&r2=597948&view=diff
>> ==============================================================================
>> --- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml (original)
>> +++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml Sat Nov 24 18:54:44 2007
>> @@ -103,6 +103,12 @@
>>          <response name="success" type="view" value="FindTask"/>
>>          <response name="error" type="view" value="FindTask"/>
>>      </request-map>
>> +    <request-map uri="createProjectPhase">
>> +        <security https="true" auth="true"/>
>> +        <event type="simple" path="org/ofbiz/workeffort/workeffort/WorkflowSimpleEvents.xml" invoke="createWorkEffort"/>
>> +        <response name="success" type="view" value="FindPhase"/>
>> +        <response name="error" type="view" value="FindPhase"/>
>> +    </request-map>
>>      <request-map uri="updateTask">
>>          <security https="true" auth="true"/>
>>          <event type="service" invoke="updateWorkEffort"/>
>>
>> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml
>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml?rev=597948&r1=597947&r2=597948&view=diff
>> ==============================================================================
>> --- ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml (original)
>> +++ ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml Sat Nov 24 18:54:44 2007
>> @@ -213,7 +213,7 @@
>>                      <order-by field-name="phaseName"/>
>>                      <order-by field-name="taskName"/>
>>                  </entity-and>
>> -                <set field="workEffort" from-field=""/>
>> +                <set field="task" from-field=""/>
>>              </actions>
>>              <widgets>
>>                  <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
>> @@ -339,10 +339,11 @@
>>                  <set field="titleProperty" value="PageTitleEditPhase"/>
>>                  <set field="tabButtonItem" value="phases"/>
>>                  <set field="labelTitleProperty" value="PageTitleFindPhase"/>
>> -                <set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
>> -                <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
>> -                <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
>> -                <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
>> +                <set field="projectId" from-field="parameters.workEffortIdFrom"/>
>> +                <entity-and entity-name="WorkEffort" list-name="phases">
>> +                    <field-map field-name="workEffortParentId" env-name="projectId"/>
>> +                    <field-map field-name="workEffortTypeId" value="PHASE"/>
>> +                </entity-and>
>>              </actions>
>>              <widgets>
>>                  <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
>> @@ -356,9 +357,12 @@
>>                                          <include-form name="ListPhases" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
>>                                      </container>                                              
>>                                  </container>    
>> -                                <platform-specific>
>> -                                        <html><html-template location="component://projectmgr/webapp/projectmgr/project/editphaseandassoc.ftl"/></html>
>> -                                </platform-specific>
>> +                                <container style="screenlet">
>> +                                    <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddPhase}</label></container>                                
>> +                                    <container style="screenlet-body">
>> +                                        <include-form name="AddProjectPhase" location="component://projectmgr/widget/forms/TaskForms.xml"/>
>> +                                    </container>
>> +                                </container>
>>                              </widgets>                            
>>                          </section>
>>                      </decorator-section>
>>
>> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml
>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml?rev=597948&r1=597947&r2=597948&view=diff
>> ==============================================================================
>> --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml (original)
>> +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml Sat Nov 24 18:54:44 2007
>> @@ -145,13 +145,9 @@
>>                  <field-map field-name="statusId" env-name="currentStatusId"/>
>>              </entity-one>
>>          </row-actions>
>> -        <field name="workEffortTypeId"><hidden/></field>
>> -        <field name="workEffortId"><hidden/></field>
>>          <field name="workEffortIdFrom"><hidden/></field>
>> -        <field name="fromDate"><hidden/></field>
>> -        <field name="workEffortAssocTypeId"><hidden/></field>
>>          <field name="workEffortIdTo" entry-name="workEffortId"><hidden/></field>
>> -        <field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><display/></field>
>> +        <field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><text/></field>
>>          <field name="currentStatusId">
>>              <drop-down allow-empty="false" current-description="${currentStatus.description}">
>>                  <entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
>> @@ -161,10 +157,6 @@
>>              </drop-down>
>>          </field>
>>          <field name="description" title="${uiLabelMap.CommonDescription}"><text size="15"/></field>        
>> -        <field name="estimatedStartDate" entry-name="workEffortToEstimatedStartDate" title="${uiLabelMap.WorkEffortStartDate}"><date-time/></field>
>> -        <field name="estimatedCompletionDate"  entry-name="workEffortToEstimatedCompletionDate" title="${uiLabelMap.WorkEffortStartDate}"><date-time/></field>        
>> -        <field name="actualStartDate" entry-name="actualStartDate" title="${uiLabelMap.WorkEffortCompletionDate}"><date-time/></field>
>> -        <field name="actualCompletionDate"  entry-name="actualCompletionDate" title="${uiLabelMap.WorkEffortCompletionDate}"><date-time/></field>
>>          <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
>>      </form>
>>      <form name="ListPhaseTaskInfo" type="list" list-name="phases">
>>
>> Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml
>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml?rev=597948&r1=597947&r2=597948&view=diff
>> ==============================================================================
>> --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml (original)
>> +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml Sat Nov 24 18:54:44 2007
>> @@ -24,12 +24,12 @@
>>      <form name="EditTask" type="single" target="updateTask" default-map-name="task">
>>          <actions>
>>              <set field="projectId" from-field="parameters.workEffortIdFrom"/>
>> -           <entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
>> +            <entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
>>                  <field-map field-name="statusId" env-name="task.statusId"/>
>>              </entity-one>
>>          </actions>
>>          <alt-target use-when="projectId!=null" target="createProjectTaskOrPhase"/>
>> -        <alt-target use-when="task==null" target="createTask"/>
>> +        <alt-target use-when="task==null&amp;&amp;projectId==null" target="createTask"/>
>>          <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
>>          <field name="DONE_PAGE"><hidden value="${donePage}"/></field>
>>          <field name="workEffortTypeId"><hidden value="TASK"/></field>
>> @@ -37,6 +37,7 @@
>>          <field use-when="task==null&amp;&amp;taskId==null" name="taskId" title="${uiLabelMap.ProjectMgrWorkEffortId}"><ignored/></field>
>>          <field use-when="task==null&amp;&amp;taskId!=null" name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
>>          <field use-when="task!=null" name="workEffortName" title="${uiLabelMap.CommonName}*"><display/></field>
>> +        <field use-when="task==null&amp;&amp;taskId!=null" name="workEffortName" title="${uiLabelMap.CommonName}*"><text/></field>
>>          <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
>>          <field use-when="task!=null" name="statusId" title="${uiLabelMap.CommonStatus}">
>>              <drop-down allow-empty="false" current-description="${currentStatus.description}">
>> @@ -97,13 +98,22 @@
>>          <field name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><date-time/></field>
>>          <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
>>      </form>
>> -    <form name="AddPhase" type="single" target="createProjectTaskOrPhase" default-map-name="dummy">
>> +    <form name="AddPhase" type="single" target="createProjectTaskOrPhase">
>>          <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
>> +        <field name="workEffortParentId"><hidden value="${projectId}"/></field>
>>          <field name="workEffortTypeId"><hidden value="PHASE"/></field>
>>          <field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
>>          <field name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
>>          <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
>> +        <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
>> +    </form>
>> +    <form name="AddProjectPhase" type="single" target="createProjectPhase">
>> +        <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
>>          <field name="workEffortParentId"><hidden value="${projectId}"/></field>
>> +        <field name="workEffortTypeId"><hidden value="PHASE"/></field>
>> +        <field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
>> +        <field name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
>> +        <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
>>          <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
>>      </form>
>>      
>> @@ -118,8 +128,8 @@
>>          </field>
>>          <field name="workEffortTypeId" title="${uiLabelMap.ProjectMgrWorkEffortTypeId}"><display-entity entity-name="WorkEffortType"/></field>
>>          <field name="createdStamp"><display/></field>
>> -        <field name="phase"><display description="${phaseName}[${phaseId}]"/></field>
>> -        <field name="project"><hyperlink target="EditProject?workEffortId=${projectId}" description="${projectName}[${projectId}]"/></field>
>> +        <field name="phase"><hyperlink target="FindPhase?workEffortIdFrom=${projectId}" description="${phaseName}[${phaseId}]"/></field>
>> +        <field name="project"><hyperlink target="EditProject?workEffortIdFrom=${projectId}" description="${projectName}[${projectId}]"/></field>
>>      </form>
>>      <form name="ListChildEfforts" target="updateTaskListAndAssoc" title="" list-name="tasks" type="list" separate-columns="true" paginate-target="FindTaskList">
>>          <row-actions>
>>
>>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

hans_bakker
In reply to this post by Anil Patel-3
Hi Anil,

up to now the general policy was to use forms in the backend. I am not
aware that that has been changed.
Isn't better to find a a way to use AJAX the the forms?

What do other people think about this?

Regards,
Hans Bakker.


On Sat, 2007-11-24 at 22:31 -0800, Anil Patel wrote:

> Hans,
> Thanks a lot for your efforts in project module.
> I wanted to do UI in project component using ftl so Its possible to do
> Ajax based UI goodies.
>
> If you really don't mind can you please NOT replace ftl files with form
> widget.
>
> Regards
> Anil Patel
>
>
>
>
> On Sun, 2007-11-25 at 02:54 +0000, [hidden email] wrote:
> > Author: hansbak
> > Date: Sat Nov 24 18:54:44 2007
> > New Revision: 597948
> >
> > URL: http://svn.apache.org/viewvc?rev=597948&view=rev
> > Log:
> > more updates and replace ftl by form in projectmgr
> >
> > Removed:
> >     ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editphaseandassoc.ftl
> > Modified:
> >     ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
> >     ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml
> >     ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml
> >     ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml
> >
> > Modified: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml?rev=597948&r1=597947&r2=597948&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml (original)
> > +++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml Sat Nov 24 18:54:44 2007
> > @@ -103,6 +103,12 @@
> >          <response name="success" type="view" value="FindTask"/>
> >          <response name="error" type="view" value="FindTask"/>
> >      </request-map>
> > +    <request-map uri="createProjectPhase">
> > +        <security https="true" auth="true"/>
> > +        <event type="simple" path="org/ofbiz/workeffort/workeffort/WorkflowSimpleEvents.xml" invoke="createWorkEffort"/>
> > +        <response name="success" type="view" value="FindPhase"/>
> > +        <response name="error" type="view" value="FindPhase"/>
> > +    </request-map>
> >      <request-map uri="updateTask">
> >          <security https="true" auth="true"/>
> >          <event type="service" invoke="updateWorkEffort"/>
> >
> > Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml?rev=597948&r1=597947&r2=597948&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml (original)
> > +++ ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml Sat Nov 24 18:54:44 2007
> > @@ -213,7 +213,7 @@
> >                      <order-by field-name="phaseName"/>
> >                      <order-by field-name="taskName"/>
> >                  </entity-and>
> > -                <set field="workEffort" from-field=""/>
> > +                <set field="task" from-field=""/>
> >              </actions>
> >              <widgets>
> >                  <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
> > @@ -339,10 +339,11 @@
> >                  <set field="titleProperty" value="PageTitleEditPhase"/>
> >                  <set field="tabButtonItem" value="phases"/>
> >                  <set field="labelTitleProperty" value="PageTitleFindPhase"/>
> > -                <set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
> > -                <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
> > -                <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
> > -                <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
> > +                <set field="projectId" from-field="parameters.workEffortIdFrom"/>
> > +                <entity-and entity-name="WorkEffort" list-name="phases">
> > +                    <field-map field-name="workEffortParentId" env-name="projectId"/>
> > +                    <field-map field-name="workEffortTypeId" value="PHASE"/>
> > +                </entity-and>
> >              </actions>
> >              <widgets>
> >                  <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
> > @@ -356,9 +357,12 @@
> >                                          <include-form name="ListPhases" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
> >                                      </container>                                              
> >                                  </container>    
> > -                                <platform-specific>
> > -                                        <html><html-template location="component://projectmgr/webapp/projectmgr/project/editphaseandassoc.ftl"/></html>
> > -                                </platform-specific>
> > +                                <container style="screenlet">
> > +                                    <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddPhase}</label></container>                                
> > +                                    <container style="screenlet-body">
> > +                                        <include-form name="AddProjectPhase" location="component://projectmgr/widget/forms/TaskForms.xml"/>
> > +                                    </container>
> > +                                </container>
> >                              </widgets>                            
> >                          </section>
> >                      </decorator-section>
> >
> > Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml?rev=597948&r1=597947&r2=597948&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml (original)
> > +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml Sat Nov 24 18:54:44 2007
> > @@ -145,13 +145,9 @@
> >                  <field-map field-name="statusId" env-name="currentStatusId"/>
> >              </entity-one>
> >          </row-actions>
> > -        <field name="workEffortTypeId"><hidden/></field>
> > -        <field name="workEffortId"><hidden/></field>
> >          <field name="workEffortIdFrom"><hidden/></field>
> > -        <field name="fromDate"><hidden/></field>
> > -        <field name="workEffortAssocTypeId"><hidden/></field>
> >          <field name="workEffortIdTo" entry-name="workEffortId"><hidden/></field>
> > -        <field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><display/></field>
> > +        <field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><text/></field>
> >          <field name="currentStatusId">
> >              <drop-down allow-empty="false" current-description="${currentStatus.description}">
> >                  <entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
> > @@ -161,10 +157,6 @@
> >              </drop-down>
> >          </field>
> >          <field name="description" title="${uiLabelMap.CommonDescription}"><text size="15"/></field>        
> > -        <field name="estimatedStartDate" entry-name="workEffortToEstimatedStartDate" title="${uiLabelMap.WorkEffortStartDate}"><date-time/></field>
> > -        <field name="estimatedCompletionDate"  entry-name="workEffortToEstimatedCompletionDate" title="${uiLabelMap.WorkEffortStartDate}"><date-time/></field>        
> > -        <field name="actualStartDate" entry-name="actualStartDate" title="${uiLabelMap.WorkEffortCompletionDate}"><date-time/></field>
> > -        <field name="actualCompletionDate"  entry-name="actualCompletionDate" title="${uiLabelMap.WorkEffortCompletionDate}"><date-time/></field>
> >          <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
> >      </form>
> >      <form name="ListPhaseTaskInfo" type="list" list-name="phases">
> >
> > Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml?rev=597948&r1=597947&r2=597948&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml (original)
> > +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml Sat Nov 24 18:54:44 2007
> > @@ -24,12 +24,12 @@
> >      <form name="EditTask" type="single" target="updateTask" default-map-name="task">
> >          <actions>
> >              <set field="projectId" from-field="parameters.workEffortIdFrom"/>
> > -           <entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
> > +            <entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
> >                  <field-map field-name="statusId" env-name="task.statusId"/>
> >              </entity-one>
> >          </actions>
> >          <alt-target use-when="projectId!=null" target="createProjectTaskOrPhase"/>
> > -        <alt-target use-when="task==null" target="createTask"/>
> > +        <alt-target use-when="task==null&amp;&amp;projectId==null" target="createTask"/>
> >          <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
> >          <field name="DONE_PAGE"><hidden value="${donePage}"/></field>
> >          <field name="workEffortTypeId"><hidden value="TASK"/></field>
> > @@ -37,6 +37,7 @@
> >          <field use-when="task==null&amp;&amp;taskId==null" name="taskId" title="${uiLabelMap.ProjectMgrWorkEffortId}"><ignored/></field>
> >          <field use-when="task==null&amp;&amp;taskId!=null" name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
> >          <field use-when="task!=null" name="workEffortName" title="${uiLabelMap.CommonName}*"><display/></field>
> > +        <field use-when="task==null&amp;&amp;taskId!=null" name="workEffortName" title="${uiLabelMap.CommonName}*"><text/></field>
> >          <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
> >          <field use-when="task!=null" name="statusId" title="${uiLabelMap.CommonStatus}">
> >              <drop-down allow-empty="false" current-description="${currentStatus.description}">
> > @@ -97,13 +98,22 @@
> >          <field name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><date-time/></field>
> >          <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
> >      </form>
> > -    <form name="AddPhase" type="single" target="createProjectTaskOrPhase" default-map-name="dummy">
> > +    <form name="AddPhase" type="single" target="createProjectTaskOrPhase">
> >          <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
> > +        <field name="workEffortParentId"><hidden value="${projectId}"/></field>
> >          <field name="workEffortTypeId"><hidden value="PHASE"/></field>
> >          <field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
> >          <field name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
> >          <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
> > +        <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
> > +    </form>
> > +    <form name="AddProjectPhase" type="single" target="createProjectPhase">
> > +        <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
> >          <field name="workEffortParentId"><hidden value="${projectId}"/></field>
> > +        <field name="workEffortTypeId"><hidden value="PHASE"/></field>
> > +        <field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
> > +        <field name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
> > +        <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
> >          <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
> >      </form>
> >      
> > @@ -118,8 +128,8 @@
> >          </field>
> >          <field name="workEffortTypeId" title="${uiLabelMap.ProjectMgrWorkEffortTypeId}"><display-entity entity-name="WorkEffortType"/></field>
> >          <field name="createdStamp"><display/></field>
> > -        <field name="phase"><display description="${phaseName}[${phaseId}]"/></field>
> > -        <field name="project"><hyperlink target="EditProject?workEffortId=${projectId}" description="${projectName}[${projectId}]"/></field>
> > +        <field name="phase"><hyperlink target="FindPhase?workEffortIdFrom=${projectId}" description="${phaseName}[${phaseId}]"/></field>
> > +        <field name="project"><hyperlink target="EditProject?workEffortIdFrom=${projectId}" description="${projectName}[${projectId}]"/></field>
> >      </form>
> >      <form name="ListChildEfforts" target="updateTaskListAndAssoc" title="" list-name="tasks" type="list" separate-columns="true" paginate-target="FindTaskList">
> >          <row-actions>
> >
> >
>
>
--
http://Antwebsystems.com : OFBiz Quality support for competitive rates.



Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

Jacopo Cappellato
Yeah,

having widgets *and* Ajax would be really great...

By the way: does this mean that there are two current/independent
development efforts going on in the same component (projectmgr) lead by
Anil and Hans?
If this is true, then it would be useful to spend some time in the dev
list to discuss and unify the efforts instead of waiting for the commit
logs :-)

Jacopo

Hans Bakker wrote:

> Hi Anil,
>
> up to now the general policy was to use forms in the backend. I am not
> aware that that has been changed.
> Isn't better to find a a way to use AJAX the the forms?
>
> What do other people think about this?
>
> Regards,
> Hans Bakker.
>
>
> On Sat, 2007-11-24 at 22:31 -0800, Anil Patel wrote:
>> Hans,
>> Thanks a lot for your efforts in project module.
>> I wanted to do UI in project component using ftl so Its possible to do
>> Ajax based UI goodies.
>>
>> If you really don't mind can you please NOT replace ftl files with form
>> widget.
>>
>> Regards
>> Anil Patel
>>

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

Anil Patel-3
In reply to this post by hans_bakker
I am under the impression that applications under specialpurpose folders
are intended for user in certain role and are supposed to be intuitive.

I find forms widgets are very good of most of the UI. But when it comes
adding some Ajax stuff, its just too hard to works with.

Regards
Anil Patel


 
On Sun, 2007-11-25 at 13:54 +0700, Hans Bakker wrote:

> Hi Anil,
>
> up to now the general policy was to use forms in the backend. I am not
> aware that that has been changed.
> Isn't better to find a a way to use AJAX the the forms?
>
> What do other people think about this?
>
> Regards,
> Hans Bakker.
>
>
> On Sat, 2007-11-24 at 22:31 -0800, Anil Patel wrote:
> > Hans,
> > Thanks a lot for your efforts in project module.
> > I wanted to do UI in project component using ftl so Its possible to do
> > Ajax based UI goodies.
> >
> > If you really don't mind can you please NOT replace ftl files with form
> > widget.
> >
> > Regards
> > Anil Patel
> >
> >
> >
> >
> > On Sun, 2007-11-25 at 02:54 +0000, [hidden email] wrote:
> > > Author: hansbak
> > > Date: Sat Nov 24 18:54:44 2007
> > > New Revision: 597948
> > >
> > > URL: http://svn.apache.org/viewvc?rev=597948&view=rev
> > > Log:
> > > more updates and replace ftl by form in projectmgr
> > >
> > > Removed:
> > >     ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editphaseandassoc.ftl
> > > Modified:
> > >     ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
> > >     ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml
> > >     ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml
> > >     ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml
> > >
> > > Modified: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml
> > > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml?rev=597948&r1=597947&r2=597948&view=diff
> > > ==============================================================================
> > > --- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml (original)
> > > +++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/WEB-INF/controller.xml Sat Nov 24 18:54:44 2007
> > > @@ -103,6 +103,12 @@
> > >          <response name="success" type="view" value="FindTask"/>
> > >          <response name="error" type="view" value="FindTask"/>
> > >      </request-map>
> > > +    <request-map uri="createProjectPhase">
> > > +        <security https="true" auth="true"/>
> > > +        <event type="simple" path="org/ofbiz/workeffort/workeffort/WorkflowSimpleEvents.xml" invoke="createWorkEffort"/>
> > > +        <response name="success" type="view" value="FindPhase"/>
> > > +        <response name="error" type="view" value="FindPhase"/>
> > > +    </request-map>
> > >      <request-map uri="updateTask">
> > >          <security https="true" auth="true"/>
> > >          <event type="service" invoke="updateWorkEffort"/>
> > >
> > > Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml
> > > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml?rev=597948&r1=597947&r2=597948&view=diff
> > > ==============================================================================
> > > --- ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml (original)
> > > +++ ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectScreens.xml Sat Nov 24 18:54:44 2007
> > > @@ -213,7 +213,7 @@
> > >                      <order-by field-name="phaseName"/>
> > >                      <order-by field-name="taskName"/>
> > >                  </entity-and>
> > > -                <set field="workEffort" from-field=""/>
> > > +                <set field="task" from-field=""/>
> > >              </actions>
> > >              <widgets>
> > >                  <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
> > > @@ -339,10 +339,11 @@
> > >                  <set field="titleProperty" value="PageTitleEditPhase"/>
> > >                  <set field="tabButtonItem" value="phases"/>
> > >                  <set field="labelTitleProperty" value="PageTitleFindPhase"/>
> > > -                <set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
> > > -                <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
> > > -                <set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
> > > -                <script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
> > > +                <set field="projectId" from-field="parameters.workEffortIdFrom"/>
> > > +                <entity-and entity-name="WorkEffort" list-name="phases">
> > > +                    <field-map field-name="workEffortParentId" env-name="projectId"/>
> > > +                    <field-map field-name="workEffortTypeId" value="PHASE"/>
> > > +                </entity-and>
> > >              </actions>
> > >              <widgets>
> > >                  <decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
> > > @@ -356,9 +357,12 @@
> > >                                          <include-form name="ListPhases" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
> > >                                      </container>                                              
> > >                                  </container>    
> > > -                                <platform-specific>
> > > -                                        <html><html-template location="component://projectmgr/webapp/projectmgr/project/editphaseandassoc.ftl"/></html>
> > > -                                </platform-specific>
> > > +                                <container style="screenlet">
> > > +                                    <container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddPhase}</label></container>                                
> > > +                                    <container style="screenlet-body">
> > > +                                        <include-form name="AddProjectPhase" location="component://projectmgr/widget/forms/TaskForms.xml"/>
> > > +                                    </container>
> > > +                                </container>
> > >                              </widgets>                            
> > >                          </section>
> > >                      </decorator-section>
> > >
> > > Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml
> > > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml?rev=597948&r1=597947&r2=597948&view=diff
> > > ==============================================================================
> > > --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml (original)
> > > +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml Sat Nov 24 18:54:44 2007
> > > @@ -145,13 +145,9 @@
> > >                  <field-map field-name="statusId" env-name="currentStatusId"/>
> > >              </entity-one>
> > >          </row-actions>
> > > -        <field name="workEffortTypeId"><hidden/></field>
> > > -        <field name="workEffortId"><hidden/></field>
> > >          <field name="workEffortIdFrom"><hidden/></field>
> > > -        <field name="fromDate"><hidden/></field>
> > > -        <field name="workEffortAssocTypeId"><hidden/></field>
> > >          <field name="workEffortIdTo" entry-name="workEffortId"><hidden/></field>
> > > -        <field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><display/></field>
> > > +        <field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><text/></field>
> > >          <field name="currentStatusId">
> > >              <drop-down allow-empty="false" current-description="${currentStatus.description}">
> > >                  <entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
> > > @@ -161,10 +157,6 @@
> > >              </drop-down>
> > >          </field>
> > >          <field name="description" title="${uiLabelMap.CommonDescription}"><text size="15"/></field>        
> > > -        <field name="estimatedStartDate" entry-name="workEffortToEstimatedStartDate" title="${uiLabelMap.WorkEffortStartDate}"><date-time/></field>
> > > -        <field name="estimatedCompletionDate"  entry-name="workEffortToEstimatedCompletionDate" title="${uiLabelMap.WorkEffortStartDate}"><date-time/></field>        
> > > -        <field name="actualStartDate" entry-name="actualStartDate" title="${uiLabelMap.WorkEffortCompletionDate}"><date-time/></field>
> > > -        <field name="actualCompletionDate"  entry-name="actualCompletionDate" title="${uiLabelMap.WorkEffortCompletionDate}"><date-time/></field>
> > >          <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
> > >      </form>
> > >      <form name="ListPhaseTaskInfo" type="list" list-name="phases">
> > >
> > > Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml
> > > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml?rev=597948&r1=597947&r2=597948&view=diff
> > > ==============================================================================
> > > --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml (original)
> > > +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TaskForms.xml Sat Nov 24 18:54:44 2007
> > > @@ -24,12 +24,12 @@
> > >      <form name="EditTask" type="single" target="updateTask" default-map-name="task">
> > >          <actions>
> > >              <set field="projectId" from-field="parameters.workEffortIdFrom"/>
> > > -           <entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
> > > +            <entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
> > >                  <field-map field-name="statusId" env-name="task.statusId"/>
> > >              </entity-one>
> > >          </actions>
> > >          <alt-target use-when="projectId!=null" target="createProjectTaskOrPhase"/>
> > > -        <alt-target use-when="task==null" target="createTask"/>
> > > +        <alt-target use-when="task==null&amp;&amp;projectId==null" target="createTask"/>
> > >          <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
> > >          <field name="DONE_PAGE"><hidden value="${donePage}"/></field>
> > >          <field name="workEffortTypeId"><hidden value="TASK"/></field>
> > > @@ -37,6 +37,7 @@
> > >          <field use-when="task==null&amp;&amp;taskId==null" name="taskId" title="${uiLabelMap.ProjectMgrWorkEffortId}"><ignored/></field>
> > >          <field use-when="task==null&amp;&amp;taskId!=null" name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
> > >          <field use-when="task!=null" name="workEffortName" title="${uiLabelMap.CommonName}*"><display/></field>
> > > +        <field use-when="task==null&amp;&amp;taskId!=null" name="workEffortName" title="${uiLabelMap.CommonName}*"><text/></field>
> > >          <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
> > >          <field use-when="task!=null" name="statusId" title="${uiLabelMap.CommonStatus}">
> > >              <drop-down allow-empty="false" current-description="${currentStatus.description}">
> > > @@ -97,13 +98,22 @@
> > >          <field name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><date-time/></field>
> > >          <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
> > >      </form>
> > > -    <form name="AddPhase" type="single" target="createProjectTaskOrPhase" default-map-name="dummy">
> > > +    <form name="AddPhase" type="single" target="createProjectTaskOrPhase">
> > >          <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
> > > +        <field name="workEffortParentId"><hidden value="${projectId}"/></field>
> > >          <field name="workEffortTypeId"><hidden value="PHASE"/></field>
> > >          <field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
> > >          <field name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
> > >          <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
> > > +        <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
> > > +    </form>
> > > +    <form name="AddProjectPhase" type="single" target="createProjectPhase">
> > > +        <field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
> > >          <field name="workEffortParentId"><hidden value="${projectId}"/></field>
> > > +        <field name="workEffortTypeId"><hidden value="PHASE"/></field>
> > > +        <field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
> > > +        <field name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
> > > +        <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
> > >          <field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
> > >      </form>
> > >      
> > > @@ -118,8 +128,8 @@
> > >          </field>
> > >          <field name="workEffortTypeId" title="${uiLabelMap.ProjectMgrWorkEffortTypeId}"><display-entity entity-name="WorkEffortType"/></field>
> > >          <field name="createdStamp"><display/></field>
> > > -        <field name="phase"><display description="${phaseName}[${phaseId}]"/></field>
> > > -        <field name="project"><hyperlink target="EditProject?workEffortId=${projectId}" description="${projectName}[${projectId}]"/></field>
> > > +        <field name="phase"><hyperlink target="FindPhase?workEffortIdFrom=${projectId}" description="${phaseName}[${phaseId}]"/></field>
> > > +        <field name="project"><hyperlink target="EditProject?workEffortIdFrom=${projectId}" description="${projectName}[${projectId}]"/></field>
> > >      </form>
> > >      <form name="ListChildEfforts" target="updateTaskListAndAssoc" title="" list-name="tasks" type="list" separate-columns="true" paginate-target="FindTaskList">
> > >          <row-actions>
> > >
> > >
> >
> >

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

hans_bakker
In reply to this post by Jacopo Cappellato
Hi Jacopo,

I completely agree with you. I need the projectmanager for my company
use (have not yet found a customer for it). I saw that development
stopped, registered myself in the new features document and started
working......

I looked for documents for the project manager, could not find any, so I
created one with principles which are generally accepted with project
managers. I used many and think a projectmanager combined with
timesheets is very useful. I was already wondering why all screens were
in ftl....

I am not opposed to ajax, but having all screens in ftl with no ajax yet
(did not see any)...makes an application too difficult to maintain.....
Add elements of ajax like such as a tree as I implemented for
dataresource is the first task I want to do....So please Anil, give
comments to my document, if possible please help, because without you
starting the projectmanager application, i would never have continued
it....

Regards,
Hans

On Sun, 2007-11-25 at 09:11 +0100, Jacopo Cappellato wrote:

> Yeah,
>
> having widgets *and* Ajax would be really great...
>
> By the way: does this mean that there are two current/independent
> development efforts going on in the same component (projectmgr) lead by
> Anil and Hans?
> If this is true, then it would be useful to spend some time in the dev
> list to discuss and unify the efforts instead of waiting for the commit
> logs :-)
>
> Jacopo
>
> Hans Bakker wrote:
> > Hi Anil,
> >
> > up to now the general policy was to use forms in the backend. I am not
> > aware that that has been changed.
> > Isn't better to find a a way to use AJAX the the forms?
> >
> > What do other people think about this?
> >
> > Regards,
> > Hans Bakker.
> >
> >
> > On Sat, 2007-11-24 at 22:31 -0800, Anil Patel wrote:
> >> Hans,
> >> Thanks a lot for your efforts in project module.
> >> I wanted to do UI in project component using ftl so Its possible to do
> >> Ajax based UI goodies.
> >>
> >> If you really don't mind can you please NOT replace ftl files with form
> >> widget.
> >>
> >> Regards
> >> Anil Patel
> >>
>
>
--
http://Antwebsystems.com : OFBiz Quality support for competitive rates.



Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

Anil Patel-3

On Sun, 2007-11-25 at 17:59 +0700, Hans Bakker wrote:

> Hi Jacopo,
>
> I completely agree with you. I need the projectmanager for my company
> use (have not yet found a customer for it). I saw that development
> stopped, registered myself in the new features document and started
> working......
>
> I looked for documents for the project manager, could not find any, so I
> created one with principles which are generally accepted with project
> managers. I used many and think a projectmanager combined with
> timesheets is very useful. I was already wondering why all screens were
> in ftl....
>

I know there are good reasons why Ecommerce component is done using ftl
instead of form widget. I think similar reasons apply to why I wanted to
do UI in ftl for Project module as well.

Project Management Software for a Software company is used by their
Clients as well.

Requirements are quite generic and so can be used by more then one
company to manage software project out of box.

Such software will be used by More then few people and for Most of such
people SKILL OF USING PROJECT MODULE OF OFBIZ IS NOT A PART OF CORE
SKILL SET.

There are lots of marketing reasons as well.

For all the above reason and many more that I don't know or not listed
here, I think we should treat this component like ecommerce. It should
be made fancy, pretty, sleek, or whatever you want to call.

> I am not opposed to ajax, but having all screens in ftl with no ajax yet
> (did not see any)...makes an application too difficult to maintain.....
> Add elements of ajax like such as a tree as I implemented for
> dataresource is the first task I want to do....So please Anil, give
> comments to my document, if possible please help, because without you
> starting the projectmanager application, i would never have continued
> it....
>
I'll like to help as much possible. I know ftl are little more work to
maintain.
No Ajax has yet been implemented in them because I did not get change to
get to them yet.

I'll still insist we should use ftl instead of form widget. Provide
wizard type tools that will let people do things without remembering
right order in which they have to click buttons to be able to do trivial
things.

Regards
Anil Patel


> Regards,
> Hans
>
> On Sun, 2007-11-25 at 09:11 +0100, Jacopo Cappellato wrote:
> > Yeah,
> >
> > having widgets *and* Ajax would be really great...
> >
> > By the way: does this mean that there are two current/independent
> > development efforts going on in the same component (projectmgr) lead by
> > Anil and Hans?
> > If this is true, then it would be useful to spend some time in the dev
> > list to discuss and unify the efforts instead of waiting for the commit
> > logs :-)
> >
> > Jacopo
> >
> > Hans Bakker wrote:
> > > Hi Anil,
> > >
> > > up to now the general policy was to use forms in the backend. I am not
> > > aware that that has been changed.
> > > Isn't better to find a a way to use AJAX the the forms?
> > >
> > > What do other people think about this?
> > >
> > > Regards,
> > > Hans Bakker.
> > >
> > >
> > > On Sat, 2007-11-24 at 22:31 -0800, Anil Patel wrote:
> > >> Hans,
> > >> Thanks a lot for your efforts in project module.
> > >> I wanted to do UI in project component using ftl so Its possible to do
> > >> Ajax based UI goodies.
> > >>
> > >> If you really don't mind can you please NOT replace ftl files with form
> > >> widget.
> > >>
> > >> Regards
> > >> Anil Patel
> > >>
> >
> >

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

David E Jones
In reply to this post by hans_bakker

What would be really great to see happen with this is to use it as a  
case study for where AJAX elements would be useful.

Wherever AJAX elements would be useful we should first look for a way  
to extend the form or screen widgets to support that option. That  
would be the most ideal way to do it because then the work that goes  
into that AJAX element can be re-used elsewhere far more easily.

Using FTL files is the way to go if the widgets prove entirely too  
limiting, but I agree we should do everything we can to design an  
elegant extension to the widgets before going down that path.

This is a different circumstance than the ecommerce component where  
the intent is visually oriented customization. Even if customized a  
project management tool would likely have changes focused on business  
processes and not visual design, so widgets are definitely THE way to  
go as much as possible (it is way easier to change, maintain, and  
customize on a process level than FTL or other templates). We can  
still style things up and make it look very nice, but the priority is  
definitely on the business processes and data and the L&F is a  
decoration effort on top of that (for the majority of the screens  
anyway).

If I was choosing an approach for writing this and introducing AJAX  
I'd definitely go with the form widget. Adding AJAX elements (fields,  
form types, etc) to the existing widget framework will not be that  
much harder than implementing those things in plain FTL, and will be a  
hugely valuable addition to the project. The end result of the project  
management application in particular will also be far greater: less  
code, more flexibility, easier maintenance and customization  
(including making it look nice, though not pixel-perfect as is often  
the requirement for ecommerce customizations as described above).

-David


On Nov 25, 2007, at 3:59 AM, Hans Bakker wrote:

> Hi Jacopo,
>
> I completely agree with you. I need the projectmanager for my company
> use (have not yet found a customer for it). I saw that development
> stopped, registered myself in the new features document and started
> working......
>
> I looked for documents for the project manager, could not find any,  
> so I
> created one with principles which are generally accepted with project
> managers. I used many and think a projectmanager combined with
> timesheets is very useful. I was already wondering why all screens  
> were
> in ftl....
>
> I am not opposed to ajax, but having all screens in ftl with no ajax  
> yet
> (did not see any)...makes an application too difficult to  
> maintain.....
> Add elements of ajax like such as a tree as I implemented for
> dataresource is the first task I want to do....So please Anil, give
> comments to my document, if possible please help, because without you
> starting the projectmanager application, i would never have continued
> it....
>
> Regards,
> Hans
>
> On Sun, 2007-11-25 at 09:11 +0100, Jacopo Cappellato wrote:
>> Yeah,
>>
>> having widgets *and* Ajax would be really great...
>>
>> By the way: does this mean that there are two current/independent
>> development efforts going on in the same component (projectmgr)  
>> lead by
>> Anil and Hans?
>> If this is true, then it would be useful to spend some time in the  
>> dev
>> list to discuss and unify the efforts instead of waiting for the  
>> commit
>> logs :-)
>>
>> Jacopo
>>
>> Hans Bakker wrote:
>>> Hi Anil,
>>>
>>> up to now the general policy was to use forms in the backend. I am  
>>> not
>>> aware that that has been changed.
>>> Isn't better to find a a way to use AJAX the the forms?
>>>
>>> What do other people think about this?
>>>
>>> Regards,
>>> Hans Bakker.
>>>
>>>
>>> On Sat, 2007-11-24 at 22:31 -0800, Anil Patel wrote:
>>>> Hans,
>>>> Thanks a lot for your efforts in project module.
>>>> I wanted to do UI in project component using ftl so Its possible  
>>>> to do
>>>> Ajax based UI goodies.
>>>>
>>>> If you really don't mind can you please NOT replace ftl files  
>>>> with form
>>>> widget.
>>>>
>>>> Regards
>>>> Anil Patel
>>>>
>>
>>
> --
> http://Antwebsystems.com : OFBiz Quality support for competitive  
> rates.
>
>
>


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

jonwimp
Totally agreed.

I did an enhancement for the screen and form widgets that included AJAX. That was some time in...
May 2007, I think. I asked for collaboration then, but got no response. The work I did was packed
up and shipped to the client. Out of my hands now.

Oh, there's one guy who saw it before it got shipped off for private licensing. Hmm... oh yeah,
Jeff Mahurin. Ask him. :)

As in my response to Anil in another thread, I am willing to re-look this and collaborate if there
is a group of volunteers here committed to implementing this and putting it back to OFBiz. We need
  people familiar with the widget engine. Adrian Crumm comes to mind now.

Jonathon

David E Jones wrote:

>
> What would be really great to see happen with this is to use it as a
> case study for where AJAX elements would be useful.
>
> Wherever AJAX elements would be useful we should first look for a way to
> extend the form or screen widgets to support that option. That would be
> the most ideal way to do it because then the work that goes into that
> AJAX element can be re-used elsewhere far more easily.
>
> Using FTL files is the way to go if the widgets prove entirely too
> limiting, but I agree we should do everything we can to design an
> elegant extension to the widgets before going down that path.
>
> This is a different circumstance than the ecommerce component where the
> intent is visually oriented customization. Even if customized a project
> management tool would likely have changes focused on business processes
> and not visual design, so widgets are definitely THE way to go as much
> as possible (it is way easier to change, maintain, and customize on a
> process level than FTL or other templates). We can still style things up
> and make it look very nice, but the priority is definitely on the
> business processes and data and the L&F is a decoration effort on top of
> that (for the majority of the screens anyway).
>
> If I was choosing an approach for writing this and introducing AJAX I'd
> definitely go with the form widget. Adding AJAX elements (fields, form
> types, etc) to the existing widget framework will not be that much
> harder than implementing those things in plain FTL, and will be a hugely
> valuable addition to the project. The end result of the project
> management application in particular will also be far greater: less
> code, more flexibility, easier maintenance and customization (including
> making it look nice, though not pixel-perfect as is often the
> requirement for ecommerce customizations as described above).
>
> -David
>
>
> On Nov 25, 2007, at 3:59 AM, Hans Bakker wrote:
>
>> Hi Jacopo,
>>
>> I completely agree with you. I need the projectmanager for my company
>> use (have not yet found a customer for it). I saw that development
>> stopped, registered myself in the new features document and started
>> working......
>>
>> I looked for documents for the project manager, could not find any, so I
>> created one with principles which are generally accepted with project
>> managers. I used many and think a projectmanager combined with
>> timesheets is very useful. I was already wondering why all screens were
>> in ftl....
>>
>> I am not opposed to ajax, but having all screens in ftl with no ajax yet
>> (did not see any)...makes an application too difficult to maintain.....
>> Add elements of ajax like such as a tree as I implemented for
>> dataresource is the first task I want to do....So please Anil, give
>> comments to my document, if possible please help, because without you
>> starting the projectmanager application, i would never have continued
>> it....
>>
>> Regards,
>> Hans
>>
>> On Sun, 2007-11-25 at 09:11 +0100, Jacopo Cappellato wrote:
>>> Yeah,
>>>
>>> having widgets *and* Ajax would be really great...
>>>
>>> By the way: does this mean that there are two current/independent
>>> development efforts going on in the same component (projectmgr) lead by
>>> Anil and Hans?
>>> If this is true, then it would be useful to spend some time in the dev
>>> list to discuss and unify the efforts instead of waiting for the commit
>>> logs :-)
>>>
>>> Jacopo
>>>
>>> Hans Bakker wrote:
>>>> Hi Anil,
>>>>
>>>> up to now the general policy was to use forms in the backend. I am not
>>>> aware that that has been changed.
>>>> Isn't better to find a a way to use AJAX the the forms?
>>>>
>>>> What do other people think about this?
>>>>
>>>> Regards,
>>>> Hans Bakker.
>>>>
>>>>
>>>> On Sat, 2007-11-24 at 22:31 -0800, Anil Patel wrote:
>>>>> Hans,
>>>>> Thanks a lot for your efforts in project module.
>>>>> I wanted to do UI in project component using ftl so Its possible to do
>>>>> Ajax based UI goodies.
>>>>>
>>>>> If you really don't mind can you please NOT replace ftl files with
>>>>> form
>>>>> widget.
>>>>>
>>>>> Regards
>>>>> Anil Patel
>>>>>
>>>
>>>
>> --
>> http://Antwebsystems.com : OFBiz Quality support for competitive rates.
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

Jacopo Cappellato
In reply to this post by Anil Patel-3
Anil,

I see your arguments about implementing a rich and appealing ui for the
projectmgr component.
I'd say that the best way to go is to:
1) if possible, implement the screens with the widgets
2) if you need some fancy stuff in the screen, including Ajax, we should
try to extend the widgets to support it
3) if #2 is not possible, or too complex/time-consuming, then include an
ftl snippet to the screen definition (that implements that part of the
screen) or even replace the widget element with an ftl template

Jacopo

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r597948 - in /ofbiz/trunk/specialpurpose/projectmgr: webapp/projectmgr/WEB-INF/controller.xml webapp/projectmgr/project/editphaseandassoc.ftl widget/ProjectScreens.xml widget/forms/ProjectForms.xml widget/forms/TaskForms.xml

Jacopo Cappellato
In reply to this post by David E Jones
I agree with David's comments.

Partially off-topic: do you think that the XAP project
(http://incubator.apache.org/xap/) could help us to integrate Ajax into
the widgets?

Jacopo


David E Jones wrote:

>
> What would be really great to see happen with this is to use it as a
> case study for where AJAX elements would be useful.
>
> Wherever AJAX elements would be useful we should first look for a way to
> extend the form or screen widgets to support that option. That would be
> the most ideal way to do it because then the work that goes into that
> AJAX element can be re-used elsewhere far more easily.
>
> Using FTL files is the way to go if the widgets prove entirely too
> limiting, but I agree we should do everything we can to design an
> elegant extension to the widgets before going down that path.
>
> This is a different circumstance than the ecommerce component where the
> intent is visually oriented customization. Even if customized a project
> management tool would likely have changes focused on business processes
> and not visual design, so widgets are definitely THE way to go as much
> as possible (it is way easier to change, maintain, and customize on a
> process level than FTL or other templates). We can still style things up
> and make it look very nice, but the priority is definitely on the
> business processes and data and the L&F is a decoration effort on top of
> that (for the majority of the screens anyway).
>
> If I was choosing an approach for writing this and introducing AJAX I'd
> definitely go with the form widget. Adding AJAX elements (fields, form
> types, etc) to the existing widget framework will not be that much
> harder than implementing those things in plain FTL, and will be a hugely
> valuable addition to the project. The end result of the project
> management application in particular will also be far greater: less
> code, more flexibility, easier maintenance and customization (including
> making it look nice, though not pixel-perfect as is often the
> requirement for ecommerce customizations as described above).
>
> -David
>
>
> On Nov 25, 2007, at 3:59 AM, Hans Bakker wrote:
>
>> Hi Jacopo,
>>
>> I completely agree with you. I need the projectmanager for my company
>> use (have not yet found a customer for it). I saw that development
>> stopped, registered myself in the new features document and started
>> working......
>>
>> I looked for documents for the project manager, could not find any, so I
>> created one with principles which are generally accepted with project
>> managers. I used many and think a projectmanager combined with
>> timesheets is very useful. I was already wondering why all screens were
>> in ftl....
>>
>> I am not opposed to ajax, but having all screens in ftl with no ajax yet
>> (did not see any)...makes an application too difficult to maintain.....
>> Add elements of ajax like such as a tree as I implemented for
>> dataresource is the first task I want to do....So please Anil, give
>> comments to my document, if possible please help, because without you
>> starting the projectmanager application, i would never have continued
>> it....
>>
>> Regards,
>> Hans
>>
>> On Sun, 2007-11-25 at 09:11 +0100, Jacopo Cappellato wrote:
>>> Yeah,
>>>
>>> having widgets *and* Ajax would be really great...
>>>
>>> By the way: does this mean that there are two current/independent
>>> development efforts going on in the same component (projectmgr) lead by
>>> Anil and Hans?
>>> If this is true, then it would be useful to spend some time in the dev
>>> list to discuss and unify the efforts instead of waiting for the commit
>>> logs :-)
>>>
>>> Jacopo
>>>
>>> Hans Bakker wrote:
>>>> Hi Anil,
>>>>
>>>> up to now the general policy was to use forms in the backend. I am not
>>>> aware that that has been changed.
>>>> Isn't better to find a a way to use AJAX the the forms?
>>>>
>>>> What do other people think about this?
>>>>
>>>> Regards,
>>>> Hans Bakker.
>>>>
>>>>
>>>> On Sat, 2007-11-24 at 22:31 -0800, Anil Patel wrote:
>>>>> Hans,
>>>>> Thanks a lot for your efforts in project module.
>>>>> I wanted to do UI in project component using ftl so Its possible to do
>>>>> Ajax based UI goodies.
>>>>>
>>>>> If you really don't mind can you please NOT replace ftl files with
>>>>> form
>>>>> widget.
>>>>>
>>>>> Regards
>>>>> Anil Patel
>>>>>
>>>
>>>
>> --
>> http://Antwebsystems.com : OFBiz Quality support for competitive rates.
>>
>>
>>
>