Questions tagged [managed-bean]

"Managed bean" is a Java EE specific term for Javabean classes which are designed to act as a controller in some MVC application. They are often referred in context of JSF and CDI.

"Managed bean" is a Java EE specific term for Javabean classes which are designed to act as a controller in some MVC application. They are often referred in context of JSF and CDI.

1004 questions
0
votes
1 answer

primefaces 3.2 bar chart x-axis value rendered incorrectly

i wish to display bar chart of primefaces but modified x-axis value, i wish to display years in the x-axis(dynamically) with following code but the years aren't displayed, instead i get the values such as 1,2,3... on x-axis for the years…
z22
  • 10,013
  • 17
  • 70
  • 126
0
votes
1 answer

service port throws exceptionwhile selecting dropdown

i have a cascading dropdown which works fine on one system but fails to work on another system. pls refer to the code below: xhtml:
z22
  • 10,013
  • 17
  • 70
  • 126
0
votes
1 answer

richfaces a4j:htmlCommandLink keep alive request scoped bean

I have a request scoped bean and I am using Richfaces @KeepAlive(ajaxOnly=true) to keep the bean alive between ajax requests. On my page I have some a4j:commandButton, and the backing bean is ok, is kept alive between button clicks. The problem is I…
Alina Danila
  • 1,683
  • 1
  • 24
  • 60
0
votes
2 answers

Stateful Bean : serlvet takes wrong value while managedBean not

I've got a Stateful Session Bean which holds my login session, a JSF Session Bean and a Servlet Filter. What I ned to do is to stop non logged users from accessing my pages, so I did a filter. The doFilter() its like this : public void…
StepTNT
  • 3,867
  • 7
  • 41
  • 82
0
votes
3 answers

PrimeFaces picklist control usage

I'm using PrimeFaces' pickList component in my project. But the problem is the the action function is never called.
Ammar
  • 1,811
  • 5
  • 26
  • 60
0
votes
2 answers

How to bind a Date with calendar control in primefaces using binding attribute?

I want to bind a date with a calendar control after a specific value is selected from an autocomplete. But the following exception occurs : javax.servlet.ServletException: java.util.Date cannot be cast to…
Ammar
  • 1,811
  • 5
  • 26
  • 60
0
votes
1 answer

Modifying a private object property of a managed bean accessed as a managed property from another managed bean

Trying to add a functionality to our JSF 2 application to list active users (who have an active session) and for this I decided to use an application scoped managed bean and store the list of users, adding each by the time of a successful login.…
Skyhan
  • 871
  • 3
  • 15
  • 26
0
votes
2 answers

Add/Edit operations for objects with dynamic properties

I need help in implementing CRUD operations. My application contains a table of objects. Each object is described by a list of properties(values). One property is modified with a custom JSF editor, depending on the property type. When the user adds…
Seitaridis
  • 4,459
  • 9
  • 53
  • 85
0
votes
1 answer

Managed Bean Annotation doesn't work in JSF 2.0

I've encoutered strange issue with annotations in bean. index.xhtml content: Ejb.java content: package bean; import java.io.Serializable; import javax.faces.bean.ManagedBean; import…
xyz
  • 2,277
  • 2
  • 25
  • 41
0
votes
1 answer

CommandButton's action URL depending on the form content

I'm doing a simple search engine for my web app and I'm facing a problem. My search.xhtml works by getting a parameter, so that search.xhtml?key=lol will return the results for "lol". What I need to do is that my search commandButton will redirect…
StepTNT
  • 3,867
  • 7
  • 41
  • 82
0
votes
2 answers

JSF a field of managedBean in sessionScope

We can put whole bean in sessionScope. managedBeanList com.org.SomeMBean session But is there anything…
Ketan Bhavsar
  • 5,338
  • 9
  • 38
  • 69
0
votes
2 answers

Managed Bean Classes Separation

I have two projects, I need to reuse same jsf managed bean classes for other projects. Is there any way I can create a separate project for jsf managed bean classes + util classes and refer them in all projects I will do.
Eric
  • 1,171
  • 2
  • 14
  • 27
0
votes
1 answer

SessionScoped Managed Bean value not changed from Servlet Filter

I have seen similar question but I don't think it's a repost, because I CAN access the ManagedBean from the WebFilter, but strangely the updated property.... isn't really updated. Here are the details: I have a Filter that does that (using Mojarra…
JScoobyCed
  • 10,203
  • 6
  • 34
  • 58
0
votes
2 answers

Two primefaces panel in the same form cannot be closed via javascript successively

I have two primefaces panels in one form. '
frazkok
  • 49
  • 1
  • 2
  • 11
-1
votes
1 answer

send object from @ViewScoped controller to other @ViewScoped controller after clicking on in CDI Bean JSF2.0

Please I want to get an object from controller which is in @ViewScoped scope in other controller with same scope. How could I achieve this knowing that Im not in a redirection case i want get it after clicking an action button. Thank you in advance
B.Bechir
  • 21
  • 1
  • 6