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

Open serval pages without replacing Property in ManagedBean

I have a problem but do not know exactly for what I should look. I do not think I'm the first one has this problem! It is a Java SE application with JSF & Co, basic frameworks. The application can be submitted comments to threads. I write a comment…
0
votes
1 answer

How to invoke BOC code from JSF ManagedBean's constructor?

I have a ManagedBean say clsA, inside this clsA has a BOC object that will fill with DI. If I want to invoke the BOC during clsA construction, I will do it in clsA constructor. The code will look like this: @ManagedBean(name="clsA") public class…
huahsin68
  • 6,819
  • 20
  • 79
  • 113
0
votes
0 answers

Primefaces calendar - variable null with this pattern "MM/dd/yyyy"

i want to use this pattern "MM/dd/yyyy" for my calendar to set variable but it doesn't work. If i use the pattern "MM/dd/yyyy hh:mm", the variable is set. Why ?
holegeek
  • 97
  • 2
  • 12
0
votes
1 answer

JSF managed bean destroy object when navigating to a different mb

I have 2 jsf pages, each of them have a managed bean. I'm navigating out of the second page to the first one , and want to destroy the entity object inside of it. my problem is that after i set it to null , It still going into the getDetails method…
user590586
  • 2,960
  • 16
  • 63
  • 96
0
votes
0 answers

Accessing a window scoped bean inside a servlet

I would like to retrieve in my servlet a bean with scope window. does anybody know how to do it? many thanks for your help.
aika
  • 73
  • 1
  • 1
  • 6
0
votes
1 answer

Passing parameters between Request Scoped Managed Beans in JSF + EJB 3.1

Our problem is a very basic, simple implementation of editing the database using JSF + EJB. Keeping things short: two separate XHTML views, use two separate Managed Beans @RequestScope. WebuserListBean and EditWebuserBean, and with @ManagedProperty…
Atais
  • 10,857
  • 6
  • 71
  • 111
0
votes
2 answers

I called a function from two pages .One page works and other page does not works properly

Include tree page (List, View, Edit) in index and used same command tow page (List and View) .When I List.xhtml page ‘s View or Edit button click and open it; but View.xhtml page’s Edit button click then show in flowing massage: Unable to find…
samsul
  • 340
  • 1
  • 3
  • 13
0
votes
1 answer

Is it GET or POST request when I return an outcome string to navigate to another page from within a backing bean?

Im using mojarra 2.1.3, primefaces 3.2, netbeans 7.0.1. When we navigate to the outcome xhtml in this ViewScoped managed bean method, is the outcome xhtml loaded via HTTP GET or HTTP POST? public String saveAll() { try { …
frazkok
  • 49
  • 1
  • 2
  • 11
0
votes
1 answer

JSF2.0 State_Saving_Method client issues

Im using Mojarra 2.1.3, Netbeans 7.0.1, primefaces 3.2. I am currently in a quandary whether to use STATE_SAVING_METHOD client or server. Currently Im setting the saving method to client. And this involves me doing adjustment to seriazibility of…
frazkok
  • 49
  • 1
  • 2
  • 11
0
votes
1 answer

Force a ViewScoped Bean Reinitialization after User Click on Browser Back Button (Force Fresh HTTP Request)

Im using Mojarra 2.1.3, NetBeans 7.0.1, Primefaces 3.2. I have a few dynamic xhtml pages backed by ViewScoped backing beans in my application. Each of the pages has p:dataTable which display List<> from the backing bean. The problem occurs when a…
frazkok
  • 49
  • 1
  • 2
  • 11
0
votes
1 answer

JSF2.0 Passing parameters to another Bean

When I send parameters within the action method to another page I can not read them from second Class. page1.xhtml: .... .... Managed bean1 @ManagedBean(name =…
Mustafa
  • 98
  • 1
  • 2
  • 10
0
votes
2 answers

Using @Interceptor in @ManagedBean

Interception with CDI works perfectly in @Named , but doesn't in @ManagedBean: Logable.java @InterceptorBinding @Retention(RUNTIME) @Target({TYPE, METHOD}) public @interface Logable { } LoggingInterceptor.java @Logable @Interceptor public class…
iga
  • 41
  • 1
  • 5
0
votes
0 answers

JSF Initialize Map Object

I'm starting my first steps in JSF. I've already read this link http://docs.oracle.com/javaee/6/tutorial/doc/bnawq.html#bnaww in regards to map initialization. The problem is, I want to populate my map with values residing in a file. How can I do…
nmmsantos
  • 315
  • 1
  • 6
  • 15
0
votes
0 answers

Reading

tag's text in a managed bean

Wel i guess the header sums it up, i have a managed bean linked to a Facelets page, i want to read text from normal html

element into the managed bean or send it to it. I have this tag dynamicly created with a JavaScript, so thats why I can't…

engma
  • 1,849
  • 2
  • 26
  • 55
0
votes
2 answers

managed bean logout not working

in my java ee application, i am not able to implement logout functionality,. this is what happens when i try to implement it: i have a header.xhtml which has header css part of my app: header.xhtml:(code for logout)