English 中文(简体)
Is there a way of using an XPages data source (document or view) as a property in a managed bean?
原标题:

I would like to have a reference of the actual used data source (eg: com.ibm.xsp.model.domino.wrapped.DominoDocument) in a managed bean object. Is it possible to have such a property? And how do you implement this approach?

问题回答

Data source itself is a request scope bean. It is bad idea to keep it as property, I would suggest that your bean s methods accept data source as parameter. Another approach would be to keep String value of data source name, and get it via JSF binding.





相关问题
Issues with JavaBeans Form

I have an assignment to use JavaBeans to create an online Banking application. I am trying to make the signup form but I am having some issues. When the form submits I am not able to get the values. ...

Getting access to a spring bean from a webservice?

I have created a cxf webservice within my cxf.xml file I have the following tag. bean id="videoStatsTable" class="com.company.auth.dataobjects.VideoStatsTable" From what I understand Spring should ...

JSF, multiple bean update property in a form

I edited my question to be more precise as I have more time to write it. I have a JSF form that should modify the value of the different properties of a dog : <h:form id="submit"> <h:...

Java Beans - creating an inspector window

I m wondering whether there is an existing Java class that, given a Java bean, uses introspection to find all the publicly modifiable fields, and displays them using default PropertyEditors. I see a ...

Eclipse Spring Builder set properties with Groovy beans

I typically use groovy to construct simple bean but the Spring IDE plugin to eclipse fails to build when I try to set a property that is generated by groovy without an explicit setter. For example, ...

热门标签