Accessing an Object from other Method

情到浓时终转凉″ 提交于 2020-01-06 06:49:13

问题


I am trying to access view objects from Java method.

These objects are not viewed in my page. so I cant use getter and setter methods.

Is there a way I can retrieve data from these view objects using SQL queries?


回答1:


Accessing view objects from the view layer is not a good practice.How ever if the required view object which you need to access is added to application module then you can access that from the model layer methods(VOImpl and VORowImpl) pertaining to the view object used in the jsf page.

Just access the app module first and then get the required ViewObject and you can perform the required query on that.



来源:https://stackoverflow.com/questions/22465418/accessing-an-object-from-other-method

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!