managed-bean
How to send form input values and invoke a method in JSF bean
I am building a JSF application. I defined the GUI and did the select statements query the database using select.[详细]
2023-01-15 07:08 分类:问答Problem initializing backing bean property in constructor
I have managed bean/backing bean and I inject there (with @EJB) session bean. Now in constructor I w开发者_开发百科ant to use it to initialize property in backing bean with value from database. But in[详细]
2023-01-15 02:44 分类:问答java.lang.NullPointerException, when i am inside the constructor of a managed bean invoking methods from other beans
When I am inside the constructor of a managed and trying to reach out to other methods from other beans, I got ja开发者_如何学Pythonva.lang.NullPointerException. Is there some kind of specification th[详细]
2023-01-14 05:16 分类:问答How do I force an application-scoped bean to instantiate at application startup?
I can\'t seem to find a way to force an application-scoped managed bean to be instantiated/initialized when the web app is started. It seems that application-scoped beans get lazy-instantiated the fir[详细]
2023-01-13 21:59 分类:问答JSF 2 localization (managed bean)
I have a properties file for localization: foo=Bar title=Widget Application This is tied in as a resource-bundle in the faces-con开发者_运维技巧fig:[详细]
2023-01-11 05:43 分类:问答Get JSF managed bean by name in any Servlet related class
I\'m trying to write a custom servlet (for AJAX/JSON) in which I would like to reference my @ManagedBeans by name. I\'m hoping to map:[详细]
2022-12-26 13:33 分类:问答Invoke JSF managed bean action on page load
Is there a way to execute a JSF managed bean action when a page is loaded? If that\'s rele开发者_Go百科vant, I\'m currently using JSF 1.2.JSF 1.0 / 1.1[详细]
2022-12-23 04:34 分类:问答Passing data between managed components in JSF
Is it actually possible to pass any data between managed components in JSF? If yes, how to achieve 开发者_Python百科this?[详细]
2022-12-18 03:26 分类:问答How to get properties file from /WEB-INF folder in JSF?
I have some properties file in /WEB-INF. And I want开发者_如何学JAVA to load it in a JSF managed bean. Is there any way to do that?Use either ExternalContext#getResource() or ExternalContext#getResour[详细]
2022-12-17 09:04 分类:问答