[
https://issues.apache.org/jira/browse/OFBIZ-11409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17044352#comment-17044352
]
James Yong commented on OFBIZ-11409:
------------------------------------
Hi Pierre,
{quote}What is the impact of these changes on the user experience, when the
user doesn't use a MVVM aware/enabled theme?
{quote}
If the corresponding view model is not defined:
1. Declared behaviours in data-bind will not take effect.
2. Pages that contain form and grid for editing in situ will also not work
correctly.
3. Form / Grids that are supposed to be assigned with values from View Model,
should be rendered at the server side instead.
{quote}Given that the project not only has forms where this can be applied, but
also Freemarker templates and other elements/objects that are used to render
the UI, I suggest to have more applications shown (and explained) in the PoC.
{quote}
Plan to work on the widgets 1st. Should be easy to adapt to Freemarker
templates.
> POC for Dynamic Screen Using MVVM
> ---------------------------------
>
> Key: OFBIZ-11409
> URL: https://issues.apache.org/jira/browse/OFBIZ-11409
> Project: OFBiz
> Issue Type: Improvement
> Components: base
> Affects Versions: Trunk
> Reporter: James Yong
> Priority: Minor
> Fix For: Trunk
>
> Attachments: OFBIZ-11409.patch, OFBIZ-11409.patch
>
>
> Proof of concept for Model–view–viewmodel (MVVM) in form widgets.
> Added data-bind attribute to the field tag.
> Only implemented for Text field.
> Go to [https://localhost:8443/humanres/control/NewEmployee] to try the
> following field:
> # First name
> # Middle name
> # Last name
> Added Full Name field at the bottom to demonstrate computed property.
> mbrohl: here is a link to the discussion on the dev mailing list:
> https://lists.apache.org/thread.html/r1cddbc8041e5a6559bfad979bc8570581a3d1f662a0f8692c7ee9e59%40%3Cdev.ofbiz.apache.org%3E
--
This message was sent by Atlassian Jira
(v8.3.4#803005)