managed-bean Questions

1

Solved

Is there a way of setting a managed bean parameter in a composite component and then leaving the using classes to decide which actual managed bean to use? something along the lines of: comp.xhtml...
Showy asked 17/11, 2011 at 0:16

1

Solved

i need a way to save a user chosen configuration composed of different parts. each part is chosen on a separate page, from a list supplied by a managed bean (one per part type). now the fun part. ...
Clerk asked 16/11, 2011 at 14:26

1

Is there any way to initialize Named Bean annotaded by javax.inject.Named/javax.enterprise.context.ApplicationScoped like @ManagedBean(eager=true) from javax.faces package? @Named @ApplicationScop...
Beachhead asked 19/10, 2011 at 22:27

1

Solved

Can anyone help me to understand the JSF managed bean scope from a concurrency perspective ? My Understanding: Once i have a bean scoped in a session scope that's mean : there is only one user ca...
Sulphurize asked 11/8, 2011 at 11:21

1

Solved

I have a composite component (collapsiblePanel). The component uses the "collapsible" bean to provide the toggle function. When I use the same component multiple times on a page, each instance of t...
Anatolic asked 6/7, 2011 at 21:4

1

Solved

I have a stateless EJB and two different SessionScoped managed beans. e.g. EJB as follows - @Stateless public classs MyEjb implements MyEjbLocal { @PersistentContext(unitName="myPU") private En...
Charwoman asked 30/6, 2011 at 4:14

3

Solved

Can we use JSF EL inside a HTML tag? For example, inside a plain HTML <td> element, can we use EL #{bean.color} for the bgcolor attribute? <td bgcolor="#{bean.color}">
Bitty asked 8/6, 2011 at 18:15

1

Solved

I have this situation: I am trying to remove an old avatar image for a user before putting a new one from the managed bean. String fileName = "resources/img/useravatars/" + getSessionBean().getSea...
Theater asked 7/6, 2011 at 20:58

3

Solved

Is it possible to do something like this: When a user session starts I read a certain integral attribute from the database. As the user performs certain activities in this session, I update that va...
Bandsman asked 5/6, 2011 at 5:50

1

Solved

I'm trying to inject a ManagedBean in my FacesConverted the following way: @ManagedBean @RequestScoped @FacesConverter(forClass = Group.class) public class GroupConverter implements Converter { @...
Necrophilism asked 26/5, 2011 at 8:52

2

Solved

I am using PrimeFaces with JSF2. I am trying to authenticate user by sending login and password as an Ajax request. And in the action method of the backing bean, I am trying to validate user and re...
Teratogenic asked 17/5, 2011 at 0:4

1

Solved

I know that Application-Scope persists across multiple users, so it's obvious that we should make sure that all the ApplicationScoped ManagedBeans are thread safe. I also understand that we don't ...
Jesusitajet asked 15/5, 2011 at 17:54

1

Solved

I searched similar questions but I'm a bit confused. I have a login page, so LoginBean also which is; @ManagedBean(name = "loginBean") @SessionScoped public class LoginBean implements Serializable...
Inflection asked 14/5, 2011 at 19:29

2

Is it possible to keep a request scoped bean alive across postbacks on the same page? The general problem is, as the bean gets trashed on end of request and recreated on every form submit, for ex...
Rugg asked 5/5, 2011 at 11:56

1

Solved

These days I used to work with JSF, but there's a "convention" I'm in doubt if I should use. While working with managed beans, people used to name it as XxxxxManagedBean where the prefix can be any...
Physicality asked 18/4, 2011 at 0:7

1

Solved

This question is similar to: jsf: integer property binded to a inputtext in UI is set to zero on submit but I am not completely satisfied with the solution. The contexts is the same: I have a web...
Gendarmerie asked 7/3, 2011 at 20:42

1

Solved

If I have a @ManagedBean that's @SessionScoped, why would I use a @Stateful EJB? I used it before for shopping carts and maintaining a conversational state, but since a managed bean will be kept du...
Rhona asked 30/1, 2011 at 9:7

2

Solved

As far as I know, for using @Annotations (or [Attributes] in C#) you have to have a reference to the class metadata, so that you can ask if the class is annotated (attributed) or not. My question ...
Hook asked 15/9, 2010 at 12:3

1

Solved

I am building a JSF application. I defined the GUI and did the select statements query the database using select. Now I must do the insert statements, but I don't know how to read the value of a J...
Sumatra asked 9/9, 2010 at 22:51

2

Solved

Is it actually possible to pass any data between managed components in JSF? If yes, how to achieve this? Could anyone provide any sample?
Cheyney asked 24/1, 2010 at 12:7

© 2022 - 2024 — McMap. All rights reserved.