Flex 3 使用嵌套状态

发布于 2024-07-13 11:25:01 字数 223 浏览 3 评论 0原文

我在我的弹性表单应用程序中使用状态。

基本状态是常规形式。 然后我有一个高级表单按钮,可以调用高级状态。 一旦进入高级状态表单,如果用户输入无效数据,将使用另一个错误状态显示错误,该错误状态仅将文本字段添加到高级状态的lastChild元素,

我遇到的问题是,当错误状态启动时,它不会在高级表单下方显示错误,而是返回到基本状态。

是否可以从一个状态内部调用另一个状态?

Im using states in my flex form application.

The base state is the regular form. I then have an advanced form button which calls the advanced state. Once inside the advanced state form if a user enters invalid data an error will be displayed using another error state which just adds a text field to the lastChild element of the advanced state,

the problem im having is that when the error state is kicked off, instead of displaying the error below the advanced form it instead goes back to the base state.

Is it possible to calls a state from inside another state?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

恬淡成诗 2024-07-20 11:25:01

I'm not familiar with states, but judging from the documentation, isn't that what the basedOn attribute of the State object is for?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文