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
-1
votes
1 answer

Can't add values to an array on a Bean constructor

Im trying to add values to an array on the constructor of a ManagedBean, but i'm gettint error. What im trying is @ManagedBean @ViewScoped public class EquipamentoBean { private List equipamentos; private List
prabello
  • 556
  • 2
  • 14
  • 31
-1
votes
1 answer

@Inject , @AutoWired, @Resource & @ManagedProperty : which one should I use ,where and when?

I'm using Hibernate, Spring & JSF for an application. I'm actually evolving the application with a Restfull WebService with Jersey(JAX-RS). For that need i annotated my class with @Component. Inside this class, i need to call a service to grap some…
ZheFrench
  • 1,164
  • 3
  • 22
  • 46
-1
votes
1 answer

JSF 2 SelectOneMenu updates other SelectOneMenu

I want to update the second SelectOneMenu when I select any item of the first SelectOnMenu.So there are my two SelectOneMenu:
Hamdi Dousdou
  • 57
  • 1
  • 12
-1
votes
4 answers

JSP: Redirecting to xhtml in JSP

i want to redirect to two different pages according if the user introduces a right password or not. I tried sendRedirect and forward but it didnt work. I have a Managed Bean that has the condition, and the xhtml pages that have to been shown…
leonishan
  • 1
  • 2
-1
votes
1 answer

How to call managed bean inside of stateless EJB bean?

I wanted to know, is there any option to call a managed bean inside of EJB bean. Imagine, we have the code: @ManagedBean @SessionScoped public class MyManagedBean implements Serializable { public String getUrl() { return…
Exterminator13
  • 2,152
  • 1
  • 23
  • 28
-1
votes
1 answer

P:diallog is not synchronise with the values of My bean

I'm stuck here since yesterday I have a page jsf into p:dialog this is the dialog in page A
Adriano_jvma
  • 455
  • 2
  • 11
  • 20
-1
votes
1 answer

jsf 1.2 two scopes in the same managed-bean

is it possible to have the same Bean with two different scopes in JSF 1.2?? What I mean is: beanOne files.bean.BeanOne
Natiya
  • 463
  • 2
  • 9
  • 25
-2
votes
1 answer

search and display person by id in jsf

I have created a table in my database and saved some data of people using a form that I've created in jsf, now what I want is to be able to enter an id of any person I want and when I click on search button be able to get (view) every info saved in…
enila
  • 1
  • 1
-2
votes
1 answer

Why Primefaces commandButton does not redirect to the page?

I use primefaces version 6.2 in combination with jsf and trinidaad. In the project I have a table with each row containing a button to redirect this page to another page based on selected row. jsf and trindad commandLink and commandButton does the…
itro
  • 7,006
  • 27
  • 78
  • 121
-2
votes
1 answer

How to save uploaded image using Primefaces without database?

I'm working on student registration form on Java web. I'd like to save uploaded image using Primefaces component and then display image in web page. The problem is that I will not use any database to store image. So how can I code in managed bean…
-2
votes
1 answer

xhtml not returning anything after button submit in JSF

I have the simple BMIclass and trying to use JSF to receive input and display the result of BMI class. But after click submit button, my xhtml page doesn't return anything. My BMI class: public class BMI { private static int weight; …
Kranatos
  • 107
  • 2
  • 10
-2
votes
1 answer

using more than one managed bean in same jsf page

If I have page, lets say includes two different customers informations, how can I use two different managed beans (which is same java class) in the same page? As a summary, in the same page I want to hold information of one customer in one bean,…
oldTimes
  • 259
  • 3
  • 4
  • 13
-3
votes
1 answer

Managed Bean JSF project

I'm doing a project in JSF, and to test my project I made an interface and I used a managed bean to display the contents of an entity defined in the database in a simple page xhtml, i have already put the EJB to use the service, but nothing appears…
AmineBena17
  • 23
  • 1
  • 5
-3
votes
1 answer

javascript call methods of managed bean on start-up and doesn't call them on command button click

I'm working on a web application project using JSF, Maven, Spring-Data framework and Neo4J graph database. here is a sample JSF page from my work // JSF Sample Page … … and a sample…
1 2 3
66
67