English 中文(简体)
Apache 点击时的数据提供者方法
原标题:Data provider method in apache click

数据提供者方法是否只能以Init () 点击 apache () 的方法写入, 或也可以以任何其他方法写入?

问题回答

数据提供器是一个控件 s 界面, 并遵循 Page[ 1] 初始化序列, 设置该界面的最佳位置是在 Page s Init () 方法上 [2] :

For initializing page controls the best practice is to place all the control creation code in the pages constructor, and only place any initialization code in the onInit() method which has an external dependency to the context or some other object. By following this practice it is easy to see what code is "design time" initialization code and what is "runtime initialization code".

以下条款[3]将帮助您了解如何使用数据提供工具。

吉尔贝托

[1]http://click.apache.org/docs/click-api/org/apache/click/Page.html

[2]http://click.apache.org/docs/click-api/org/apache/click/Page.html#onInit ()

[3]http://click-framework.blogspot.com.br/2010/07/pache-lick-220-dataprovider.html

否, 您可以在任何地方添加它, 只要提供商在控制完成时可以使用。 在 Init 或 Page 构建器中添加提供商只是最常用的地方 。





相关问题
Apache 点击时的数据提供者方法

数据提供者方法是否只能以Init () 点击 apache () 的方法写入, 或也可以以任何其他方法写入?

Apache Click Guice integration

Is there a way of integrating apache click web framework with Google Guice such that I can use @Inject to inject Guice services into page/panel classes ?

Should I choose Apache Click or Tapestry 5?

I am to decide whether to use Apache Click or Apache Tapestry 5 framework. Which one I should choose? I m looking for a framwork that I could use for building Java EE web applications for the next few ...

Spring beginner No Context available

I m trying to set up a Spring configuration with tutorials and some stuff. It seems everything is OK but when I call the constructor of a Bean with a @Resource everything blows up. I m am also giving ...

热门标签