There's a lot of good news from the Swiz world today. First, we just released the Swiz 1.0 Release Candidate, which fixes a number of small bugs in the beta and adds numerous new features. This version should be pretty much feature-complete, so at this point we'll be focused on fixing any issues that come up. A final 1.0 should be out in the next few weeks.
I did my best to help out with this release by working hard on updated documentation. You can see the fruits of this labor on the new Swiz documentation wiki we've created through JIRA Studio. You can also sign up to enter feature requests or bugs, vote on issues, and all the other good stuff that JIRA provides. If you have any feedback on the documentation, feel free to leave a wiki comment and we'll do our best to address it.
I've also created a Swiz 1.0RC version of my example application. If you like, you can view or download the source code.
Since 1.0RC removes the option for "view injection" into a bean, folks have asked about ways to handle providing a view to a Swiz bean. I created a MediateView custom metadata extension that should handle most of these needs. I'll do my best to keep it up to date as I get feedback about it.
And finally, in the "better late than never" department, I've uploaded the Swiz presentation I gave at cf.Objective() 2010 to SlideSix. I'll also be speaking on Swiz at this year's CFUnited conference. If you're planning on going, I'm happy to talk about Swiz into the wee hours of the morning!
Comments (6) |
del.icio.us
|
Digg It!
|
Linking Blogs
| 1116 Views


# Posted By Philip Bedi | 6/4/10 10:38 AM
Good work Guys,
I don't know why I was getting error in UserContainer as:
Severity and Description Path Resource Location Creation Time Id
1118: Implicit coercion of a value with static type flash.events:Event to a possibly unrelated type com.philip.managerdemo.event:UserEvent. ManagerApp/src/com/philip/managerdemo/view UserContainer.mxml line 77 1275665828219 62794
I had to change following function
From:
public function saveUserHandler(event:UserEvent):void
{
presentationModel.saveUser(event.user)
}
To:
public function saveUserHandler( event:Event ) : void
{
var evt:UserEvent = UserEvent(event);
presentationModel.saveUser( evt.user )
}
And then it worked.
# Posted By Philip Bedi | 6/4/10 11:59 AM
Brian,
Its complaining about /swiz_git/bin/swiz_git.swc
Could you please guide?
Thanks
Philip
# Posted By Brian | 6/4/10 12:07 PM
I must have exported it with my own library project referenced, sorry. Just go go into the project properties and remove that library dependency, and then grab the 1.0 RC swc from the site (http://swizframework.jira.com/wiki/display/SWIZ/Ho...), drop that in your /lib folder and you should be good to go. If you have more questions, you might try posting to the Swiz mailing list so that others can see the questions, answers, and offer their help as well.
# Posted By Jason Chen | 8/27/10 12:25 PM
Hi, Brian,
It works very nicely. However, I got confused when I try to apply the same pattern of yours to my project.
Could you explain how the dispatchEvent( new Event( CURRENT_STATE_CHANGED ) ) works in the presentation model?
The "dispatchEvent" is not a defined method and yet the compiler doesn't complain? When I change it to "dispatcher.dispatchEvent", it stops working.
If I use that "magic" dispatchEvent function in my codes, the FB4 (SDK 4.1) send me the following error,
"1180: Call to a possibly undefined method dispatchEvent.".
It might be a very basic even handling trick that I am missing?
Thanks,
Jason
# Posted By Brian | 8/27/10 12:52 PM
This is for creating read-only bindable properties. Have a look at http://help.adobe.com/en_US/flex/using/WS2db454920...
# Posted By Brian | 8/27/10 12:54 PM
This blog entry is also helpful: http://www.rubenswieringa.com/blog/binding-read-on...