Re: [FlexJS][Wiki] Replace ViewBase by View
Thanks again for your detailed answer Alex! >Sounds like you favor the multiple-file pattern which is totally fine with me For the sake of simplicity the one-file approach is also ok for me but we should take care that users keep in mind that for more complex apps the multiple-file pattern would be the much better option! Thanks, Olaf -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Wiki-Replace-ViewBase-by-View-tp55169p55230.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS][Wiki] Replace ViewBase by View
On 9/16/16, 1:54 PM, "OK" wrote: >Honestly I'm a bit confused about the discussion: > >>My understanding is that you can set the initialView property of the app >>at >runtime to use a different view. > >Do you mean the ability to replace the initialView including all its sub >views at runtime? >Similar as in Flex where we able to add and remove view components? >I thought it would be the same in FlexJS? Currently, the Application class expects to hand the View its model at startup. It isn't planning on handing a new view the model or listening for changes to which View is assigned as initialView. The View's children can be replaced as you would in any regular Flex app. More sophisticated Application classes could be built (MultiViewApplication) that allow replacing the initialView at runtime. I have no idea if folks will need that or not, since it is pretty easy to change the children in the View. But if they need it, someone will build it. A "new rule" for FlexJS is that there isn't supposed to be just one Application class or one Button. There can be different flavors for different purposes. If you build in the possibility of every purpose into a single Application, you don't get pay-as-you-go (PAYG), you get fat apps. > > >>It might be better to just remove every from "and they can". > >What do you mean with this? That you could trim that sentence to read: "Your user interface is placed into views." > > >>The Application is designed for simple one-view apps. >>More sophisticated application structures are certainly welcome in FlexJS > >Does this mean FlexJS is designed for simple apps >I thought the initial view is just a container for any number of sub >views. FlexJS is designed for simple and complex apps. In order to make sure we are PAYG, we are starting with simple apps and building upward. As I mention above, no need to have a ton of code to handle complexity if you don't need it. All of our examples so far don't need to change the initialView, just what is inside it. > > >>It turns out you can just bake the View into the main >>MXML file. If folks think that is more approachable, we can start >>reworking our examples so they are one-file applications. > >Do you mean that's a good idea to paste all mxml of an app into one file >instead of building encapsulated, reusable view components? From a reusability perspective, no it isn't a good idea to inline stuff, but from a "getting started" it might be. Flex demos were all about "build an app in 10 minutes" and were one-file apps. Not sure if that helped adoption or not. For sure, it enabled folks to write some really bad code they were sorry for later. So when I first put together FlexJS demos I tried to make the MVC and multi-file, but it does seem like more work than slapping a proof-of-concept together in one file. Sounds like you favor the multiple-file pattern which is totally fine with me. What do others think? > >Maybe we've a different understanding of the view "term" in this context >here, but I'm still confused. >Please enlighten me.. Right now "view" is a single container for the UI widgets where it is specially treated by Application by sharing the app's model. In MobileTrader, the view contains a TabbedNavigator and StackNavigator. I'm not sure if that's right or if there should be a different Application class that somehow bakes in a TabbedNavigator, doesn't have an initialView property because the Navigator takes views (or some other component) as children. We don't have to decide, we can always just build the other version. HTH, -Alex
Re: [FlexJS][Wiki] Replace ViewBase by View
Honestly I'm a bit confused about the discussion: >My understanding is that you can set the initialView property of the app at runtime to use a different view. Do you mean the ability to replace the initialView including all its sub views at runtime? Similar as in Flex where we able to add and remove view components? I thought it would be the same in FlexJS? >It might be better to just remove every from "and they can". What do you mean with this? >The Application is designed for simple one-view apps. >More sophisticated application structures are certainly welcome in FlexJS Does this mean FlexJS is designed for simple apps I thought the initial view is just a container for any number of sub views. >It turns out you can just bake the View into the main >MXML file. If folks think that is more approachable, we can start >reworking our examples so they are one-file applications. Do you mean that's a good idea to paste all mxml of an app into one file instead of building encapsulated, reusable view components? Maybe we've a different understanding of the view "term" in this context here, but I'm still confused. Please enlighten me.. Thanks, Olaf -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Wiki-Replace-ViewBase-by-View-tp55169p55203.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS][Wiki] Replace ViewBase by View
On 9/16/16, 1:44 AM, "Harbs" wrote: >My understanding is that you can set the initialView property of the app >at runtime to use a different view. > >(If that’s the case, it might make sense to change the property name to >“view” instead of “initialView”.) It might be better to just remove every from "and they can". I think you'd have to fix up a few things if you changed the initialView. The Application is designed for simple one-view apps. More sophisticated application structures are certainly welcome in FlexJS. I don't think we are going to recommend one particular application structure. MobileTrader does have Navigators in the initialView that swap out sub-views, but that could be flattened into a different application structure. Also, I first started out thinking we wanted everyone to have their View in a separate MXML file, but that's mainly to encourage separation of concerns into MVC. It turns out you can just bake the View into the main MXML file. If folks think that is more approachable, we can start reworking our examples so they are one-file applications. Thoughts? -Alex
Re: [FlexJS][Wiki] Replace ViewBase by View
My understanding is that you can set the initialView property of the app at runtime to use a different view. (If that’s the case, it might make sense to change the property name to “view” instead of “initialView”.) On Sep 16, 2016, at 11:37 AM, OK wrote: > There's a sentence in [1] that I don't understand: > "Your user interface is placed into views and they can, in theory, be > switched." > Could somebody explain what is meant with "views can be switched"? > > Thanks. > Olaf > > [1] https://cwiki.apache.org/confluence/display/FLEX/Application+Structure > > > > -- > View this message in context: > http://apache-flex-development.247.n4.nabble.com/FlexJS-Wiki-Replace-ViewBase-by-View-tp55169p55199.html > Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS][Wiki] Replace ViewBase by View
There's a sentence in [1] that I don't understand: "Your user interface is placed into views and they can, in theory, be switched." Could somebody explain what is meant with "views can be switched"? Thanks. Olaf [1] https://cwiki.apache.org/confluence/display/FLEX/Application+Structure -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Wiki-Replace-ViewBase-by-View-tp55169p55199.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS][Wiki] Replace ViewBase by View
Alex Harui wrote > You could replace the examples with files from DataBindingExample. I'm > pretty sure that works. I've used it as template to create a simple demo [1]. There's some room for improvement but it works at least. Could somebody please review it to make sure that I've not published bull shit ;-) Thanks, Olaf [1] https://cwiki.apache.org/confluence/display/FLEX/Application+Structure -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Wiki-Replace-ViewBase-by-View-tp55169p55198.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS][Wiki] Replace ViewBase by View
On 9/15/16, 10:00 PM, "OK" wrote: > >Moreover I've found that the "Application structure" code [2] is not a >working demo which also could frustrate anybody who just copy and paste >the >code. You could replace the examples with files from DataBindingExample. I'm pretty sure that works. >Amongst other issues "NonVirtualVerticalLayout" is used wich seems to be >not >existing. >What is the replacement for this bead? VerticalLayout. Thanks again for helping out, -Alex
Re: [FlexJS][Wiki] Replace ViewBase by View
>Oh and thanks for contributing. I see you are making good changes already! It's fixed now, I'm always glad to help if I'm able to do it ;-) I've found that the "Hello world" example in [1] produces different results in the swf and js version. The "background-color" style (defined inside the Label) does not work in the swf version. To fix it I've just move it from the Label to the declaration. Moreover I've found that the "Application structure" code [2] is not a working demo which also could frustrate anybody who just copy and paste the code. Amongst other issues "NonVirtualVerticalLayout" is used wich seems to be not existing. What is the replacement for this bead? Thanks, Olaf [1] https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+Flash+Builder [2] https://cwiki.apache.org/confluence/display/FLEX/Application+Structure -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Wiki-Replace-ViewBase-by-View-tp55169p55196.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS][Wiki] Replace ViewBase by View
Oh and thanks for contributing. I see you are making good changes already! -Alex On 9/15/16, 9:27 PM, "Alex Harui" wrote: >OK, you should have edit rights now. > >On 9/15/16, 9:09 PM, "OK" wrote: > >>Mine is okrueger >> >>Thanks, >>Olaf >> >> >> >>-- >>View this message in context: >>http://apache-flex-development.247.n4.nabble.com/FlexJS-Wiki-Replace- >>V >>iewBase-by-View-tp55169p55191.html >>Sent from the Apache Flex Development mailing list archive at Nabble.com. >
Re: [FlexJS][Wiki] Replace ViewBase by View
OK, you should have edit rights now. On 9/15/16, 9:09 PM, "OK" wrote: >Mine is okrueger > >Thanks, >Olaf > > > >-- >View this message in context: >http://apache-flex-development.247.n4.nabble.com/FlexJS-Wiki-Replace-V >iewBase-by-View-tp55169p55191.html >Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS][Wiki] Replace ViewBase by View
Mine is okrueger Thanks, Olaf -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Wiki-Replace-ViewBase-by-View-tp55169p55191.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS][Wiki] Replace ViewBase by View
OK, you should be able to edit the wiki now. Thanks for helping out, -Alex On 9/15/16, 4:07 PM, "Josh Tynjala" wrote: >My account is joshtynjala > >- Josh > >On Thu, Sep 15, 2016 at 3:52 PM, Alex Harui wrote: > >> Send me your wiki account ids. Wiki has different account system than >>the >> committer LDAP. >> >> Thanks, >> -Alex >> >> On 9/15/16, 1:47 PM, "Josh Tynjala" wrote: >> >> >Last time I tried, I also did not have permission to edit the wiki. >>Alex >> >or >> >someone else with privileges must need to grant us access. >> > >> >- Josh >> > >> >On Thu, Sep 15, 2016 at 1:06 PM, OK wrote: >> > >> >> Hi, >> >> I notice that we should update the particular wiki articles cause >> >>ViewBase >> >> was replaced by View with 0.7.0. >> >> It could be annoying if anyone new just copy and paste the code and >> >>fail. >> >> I've just tried to edit an article [1] but it seems to me that I've >>not >> >> sufficient permissions. >> >> (Can't see any edit icon or something like that) >> >> Do I miss someting? >> >> >> >> Thanks, >> >> Olaf >> >> >> >> [1] >> >> https://cwiki.apache.org/confluence/display/FLEX/Using+ >> >> FlexJS+with+Adobe+Flash+Builder >> >> >> >> >> >> >> >> -- >> >> View this message in context: http://apache-flex- >> >> development.247.n4.nabble.com/FlexJS-Wiki-Replace- >> >> ViewBase-by-View-tp55169.html >> >> Sent from the Apache Flex Development mailing list archive at >> >>Nabble.com. >> >> >> >>
Re: [FlexJS][Wiki] Replace ViewBase by View
My account is joshtynjala - Josh On Thu, Sep 15, 2016 at 3:52 PM, Alex Harui wrote: > Send me your wiki account ids. Wiki has different account system than the > committer LDAP. > > Thanks, > -Alex > > On 9/15/16, 1:47 PM, "Josh Tynjala" wrote: > > >Last time I tried, I also did not have permission to edit the wiki. Alex > >or > >someone else with privileges must need to grant us access. > > > >- Josh > > > >On Thu, Sep 15, 2016 at 1:06 PM, OK wrote: > > > >> Hi, > >> I notice that we should update the particular wiki articles cause > >>ViewBase > >> was replaced by View with 0.7.0. > >> It could be annoying if anyone new just copy and paste the code and > >>fail. > >> I've just tried to edit an article [1] but it seems to me that I've not > >> sufficient permissions. > >> (Can't see any edit icon or something like that) > >> Do I miss someting? > >> > >> Thanks, > >> Olaf > >> > >> [1] > >> https://cwiki.apache.org/confluence/display/FLEX/Using+ > >> FlexJS+with+Adobe+Flash+Builder > >> > >> > >> > >> -- > >> View this message in context: http://apache-flex- > >> development.247.n4.nabble.com/FlexJS-Wiki-Replace- > >> ViewBase-by-View-tp55169.html > >> Sent from the Apache Flex Development mailing list archive at > >>Nabble.com. > >> > >
Re: [FlexJS][Wiki] Replace ViewBase by View
Send me your wiki account ids. Wiki has different account system than the committer LDAP. Thanks, -Alex On 9/15/16, 1:47 PM, "Josh Tynjala" wrote: >Last time I tried, I also did not have permission to edit the wiki. Alex >or >someone else with privileges must need to grant us access. > >- Josh > >On Thu, Sep 15, 2016 at 1:06 PM, OK wrote: > >> Hi, >> I notice that we should update the particular wiki articles cause >>ViewBase >> was replaced by View with 0.7.0. >> It could be annoying if anyone new just copy and paste the code and >>fail. >> I've just tried to edit an article [1] but it seems to me that I've not >> sufficient permissions. >> (Can't see any edit icon or something like that) >> Do I miss someting? >> >> Thanks, >> Olaf >> >> [1] >> https://cwiki.apache.org/confluence/display/FLEX/Using+ >> FlexJS+with+Adobe+Flash+Builder >> >> >> >> -- >> View this message in context: http://apache-flex- >> development.247.n4.nabble.com/FlexJS-Wiki-Replace- >> ViewBase-by-View-tp55169.html >> Sent from the Apache Flex Development mailing list archive at >>Nabble.com. >>
Re: [FlexJS][Wiki] Replace ViewBase by View
Last time I tried, I also did not have permission to edit the wiki. Alex or someone else with privileges must need to grant us access. - Josh On Thu, Sep 15, 2016 at 1:06 PM, OK wrote: > Hi, > I notice that we should update the particular wiki articles cause ViewBase > was replaced by View with 0.7.0. > It could be annoying if anyone new just copy and paste the code and fail. > I've just tried to edit an article [1] but it seems to me that I've not > sufficient permissions. > (Can't see any edit icon or something like that) > Do I miss someting? > > Thanks, > Olaf > > [1] > https://cwiki.apache.org/confluence/display/FLEX/Using+ > FlexJS+with+Adobe+Flash+Builder > > > > -- > View this message in context: http://apache-flex- > development.247.n4.nabble.com/FlexJS-Wiki-Replace- > ViewBase-by-View-tp55169.html > Sent from the Apache Flex Development mailing list archive at Nabble.com. >