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 instantiate class: beans

Thi is my JPA code I am using jpa,jsf,primefaces,and maven. Also I am using mysql. Actually if there is no database I can access beans data into my jsf page but these are not working now. I am sharing codes. public class UsersJPA { EntityManager…
mete eroğlu
  • 95
  • 2
  • 10
-1
votes
1 answer

Hiding a JSF Label Based on condition..!

I have JSF text box like this
COL
  • 27
  • 1
  • 6
-1
votes
2 answers

when create a managed bean annotation i have a bug (the attribut name is undefined for the annotation type ManagedBean)

Code: @ManagedBean(name="userbean") Error message the attribute name is undefined for the annotation type ManagedBean
chemlali
  • 29
  • 1
  • 3
-1
votes
1 answer

how to take values from two lists and place a comma between them?

Example: list1 : apple,mango,grapes list2: orange,gauva,cherry I want the out to be : apple,orange mango,gauva grapes,cherry. And should be able to display the above output in the form of link on jsp.Please help me out for this .
Divya K M
  • 1
  • 2
-1
votes
1 answer

ManagedBean doesn't declare a public no-argument constructor

I am using PrimeFaces 5.0 and want to create inside the popup box after click event but its showing following error Unable to create managed bean popupTreeTableManagedBean. The following problems were found: - Managed bean class …
Taufik Pirjade
  • 380
  • 6
  • 26
-1
votes
1 answer

ADF : GoButton javax.el.PropertyNotFoundException

I'm trying to implement a goButton in JDeveloper and I want that the url will be dynamic and will by taken from several input texts, but when I calling to a function in java class public class reportAction { private static final String LOG =…
gil cohen
  • 333
  • 2
  • 8
  • 21
-1
votes
1 answer

Primefaces DragDropEvent on JSF UIComponent returns java.lang.NullPointerException

I am trying to use primefaces drag and drop on a UIComponent but the DragDropEvent returns NullPointerException. What am I probably doing wrong. @Named(value = "dynaComponentController") @RequestScoped public class DynaComponentController { private…
Cocoa Butter
  • 265
  • 2
  • 4
  • 13
-1
votes
1 answer

Container create several instance when @Inject and JSF

I'm creating two beans, make inject first bean to second bean. Second bean make set method for first bean. Also second bean bean called from JSF. I need to container create one instance for access from second bean and JSF page. Result page not…
-1
votes
1 answer

Navigate flow from another managed bean

JSF 2.2 and Java EE 7 Let's say you have a Faces Flow called "/simple". It is already set and running. Now you have another backing bean called DonkeyController. @ViewScoped public class DonkeyController { /* ... */ public String doWork() { …
peter_pilgrim
  • 1,160
  • 11
  • 18
-1
votes
4 answers

Passing text field values from jsf page to managed bean

I have a JSF form which calls a method of a managed bean when the action button is clicked. The method is successfully called, but now I would like to access the values entered in the form field from the bean. Here is my code. The view:
oldvipera
  • 305
  • 4
  • 8
  • 16
-1
votes
2 answers

Can I append HTML elements in current page from ManagedBean?

So I have a managed viewscope bean, and I have a html page with a container
hthomos
  • 297
  • 2
  • 8
  • 16
-1
votes
1 answer

How to pass javascript variable in jstl function to managed bean?

I want to use javascript value in jstl function on jsp page which call function in managedbean. anyone help. Javascript code: alert(document.getElementById('data').value); …
sam mari
  • 145
  • 1
  • 2
  • 9
-1
votes
1 answer

What would be the best way to read values from to javascript function?

I have jQuery modal div which displays on an on-click event....
-1
votes
1 answer

JSF change css style attribute onclick

To be clear, I have a div with a certain style and when I click on a commandButton inside this div I want to set the display attribute to "none". I want that the css style change by clicking on the commandButton. So here is my xhtml :
MHogge
  • 5,408
  • 15
  • 61
  • 104
-1
votes
1 answer

Show faces message below input fields

I am working with JSF (PrimeFaces)/EJB/JPA and a MySQL database. What I want to do is to show AT THE TOP OF THE XHTML BODY "User was successfully added to database" info message when an user is introduced successfully in the DB. I know I can use…
josh23
  • 1
  • 1
  • 6
1 2 3
66
67