managed-bean Questions

0

I'm trying to stress a rather simple JSF web application, that uses authentication, jMeter never invokes an action method (in a managed bean) associated with a pressed button. The authentication wi...
Martinson asked 3/6, 2014 at 0:40

3

Solved

i would like to know if there is a way to fire a jsf managed bean method (with an AjaxBehaviorEvent type parameter: the same triggered when using f:ajax) directly by using a jquery ajax server requ...
Colleen asked 23/1, 2013 at 9:11

3

Solved

Using <resource-bundle> files I'm able to have i18n text in my JSF pages. But is it possible to access these same properties in my managed bean so I can set faces messages with i18n values?...
Flue asked 1/12, 2012 at 1:43

2

Solved

I've read a number of excellent posts and articles about dynamically binding fields in a custom control, but they have all assumed a document data source. I want to allow the possibility of a mana...
Diopside asked 12/2, 2014 at 17:52

1

I'm using Mojarra 2.2.4 on GlassFish 4 with Java 7. As I understand from BalusC's answer to How and when is a @ViewScoped bean destroyed in JSF?, @ViewScoped beans should be destroyed in three cas...
Predictory asked 5/1, 2014 at 5:20

1

Solved

I have a viewScoped bean which has some business logic validation. I display the resultant errors from this validation to the page using FacesContext.getCurrentInstance().addMessage(null, new Face...
Morpho asked 16/1, 2014 at 16:58

1

When is a managed Bean constructor called? Is it called only once? Thank you!
Capstan asked 20/12, 2013 at 14:4

1

Solved

I am working on a Web-application using JavaServer Faces. I have found many examples and tutorials on how to use JavaServer Faces, but none of them actually explain what a Bean is used for. My ini...
Grove asked 6/12, 2013 at 17:8

2

Solved

I'm new to JSF and was wondering: If I have a controller that handles all the work for a given page and a bean that holds all the data for said page, is It necessary to have both the @ManagedPro...
Trillbee asked 6/12, 2013 at 10:10

2

I'm trying to get working like what is documented in the primefaces user guide, and some posts founded there. Upload file in JSF primefaces. the environnement is : javaee full + jpa + jsf 2...
Faro asked 5/8, 2013 at 2:6

3

Solved

Hi I have a managed bean with some functions , based on some condition in that function I will like to call a dialog box Managed bean function goes as public String editStudent(){ setReadOnly(f...
Ventricle asked 30/10, 2013 at 9:19

1

Solved

when there are data that are repeated in several pages (reference example) Is that I can load into a single managed bean and I use several managed bean in the same page. What is its impact?
Klopstock asked 20/9, 2013 at 14:42

2

Solved

I have annotated a class with @ApplicationScoped. With @Inject I get instances of this class injected into several @RequestScopded JAX-RS services: @ApplicationScoped public class MySingleton { M...
Stevie asked 22/8, 2013 at 11:1

1

Solved

I have a problem in connecting My xhtml page to the managed bean, the action on the commandButton works but when it comes to passing values it doesn't work. here is my jsf code: <h:form id="fo...
Ambiversion asked 18/8, 2013 at 18:18

1

Solved

I can't resolve my problem for getting null with my @Autowired service. Here's my code. My configuration file applicationContext.xml <?xml version="1.0" encoding="UTF-8&quot...
Mach asked 10/8, 2013 at 11:11

2

Solved

I noticed that there are different bean scopes like: @RequestScoped @ViewScoped @FlowScoped @SessionScoped @ApplicationScoped What is the purpose of each? How do I choose a proper scope for my b...
Jurel asked 11/8, 2011 at 19:44

1

Solved

hi everyone Im new at jsp and this is my first project I learned managed beans, navigation rules and stuff and I cant see what the problem is in here. all my codes are those. Please help me because...

1

I am reading What components are MVC in JSF MVC framework? In the big architectural picture, your own JSF code is the V: M - Business domain/Service layer (e.g. EJB/JPA/DAO) V - Your JSF cod...
Jacie asked 7/6, 2013 at 7:48

1

I am still unclear about the use of JSF immediate evaluation vs deferred evaluation, mainly because the online examples almost never seem to use the former method. I have seen a fair amount of JSF...
Ezequiel asked 20/3, 2013 at 14:35

3

Solved

I have a doubt here about creating session in requestScoped bean in JSF 2.x. I understand that we need not create session in JSF 2.x since we can directly use a sessionScoped bean to put the user r...
Wahoo asked 8/3, 2013 at 17:38

1

Solved

The lifecycle of the @RequestScoped and @SessionScopedBean managed beans are managed by the Servlet container itself since they are basically stored as an attribute of HttpRequest and HttpSession r...
Ss asked 7/3, 2013 at 7:29

3

Solved

I'm trying to create instances of CDI managed beans using the BeanManager rather than Instance .select().get(). This was suggested as a workaround to an issue I've been having with ApplicationSco...
Holiday asked 7/12, 2011 at 17:51

1

Solved

What is the difference between import javax.annotation.ManagedBean; import javax.enterprise.context.SessionScoped; and import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped...
Foghorn asked 24/2, 2013 at 22:41

3

Solved

I have a WAR file with the following structure: The JSF managed bean BusinessObjectTypeListController is located in commons-web-1.0.jar in /WEB-INF/lib and referenced in BusinessObjectTypeListVi...
Foetid asked 5/10, 2011 at 15:31

2

Solved

I'm running with the following problem. I have a few Managed Beans that are shared between, at this moment, two JSF applications. As I don't want to copy and paste the code in the two (more in the...
Restrictive asked 29/8, 2011 at 18:21

© 2022 - 2024 — McMap. All rights reserved.