Hi Andrew, I tried to setup in "currentState="loggedIn" in the View, but this not work. But, if you declare loggedIn state before login state, it works. So for now, I think first declared State is the default state. I think as well we should have "currentState" working to define default state, I think I used as well in my flex apps in the same way. Can you fill a bug for this? Think that SimpleStateImpl is very "simple" and does not have other options like remove states, that should be left for other implementation, but I think currentState can fit in simple.
in the blog post you can write a line about setting first state will be the default right? thanks 2018-06-06 15:32 GMT+02:00 Andrew Wetmore <[email protected]>: > @Carlos, where do you define the starting state for the app? What happens > if you do not define it? In my Flex apps the application tag has a > "currentState" property, I do believe. If that feature exists, can we add > it to this example and explain it? > > On Wed, Jun 6, 2018 at 10:20 AM, Andrew Wetmore <[email protected]> > wrote: > >> @Carlos, can you update this line in the running code? >> >> <html:H1 text="You are logged in!! :)"/> >> >> That may get stripped out by the forum tool, of course. What I need is >> for you to change "You are logged!!" to "You are logged in!!" >> >> I have made the change in the code in the blog post. >> >> Thanks! >> >> On Wed, Jun 6, 2018 at 10:09 AM, Andrew Wetmore <[email protected]> >> wrote: >> >>> Oh, this feature is essential to my apps, so I will go look at it in a >>> few minutes. >>> >>> On Wed, Jun 6, 2018 at 9:32 AM, Carlos Rovira <[email protected]> >>> wrote: >>> >>>> Hi Andrew, >>>> >>>> hope you can get some time to review this: >>>> >>>> https://royale.codeoscopic.com/using-view-states-to-show-or- >>>> hide-content/ >>>> >>>> Thanks! :) >>>> >>>> >>>> -- >>>> Carlos Rovira >>>> http://about.me/carlosrovira >>>> >>>> >>> >>> >>> -- >>> Andrew Wetmore >>> >>> http://cottage14.blogspot.com/ >>> >>> >>> >>> >>> >> >> >> -- >> Andrew Wetmore >> >> http://cottage14.blogspot.com/ >> >> >> >> >> > > > -- > Andrew Wetmore > > http://cottage14.blogspot.com/ > > > > > -- Carlos Rovira http://about.me/carlosrovira
