managed-bean Questions

2

Solved

I've a CDI managed bean wherein I'd like to set request parameters as managed properties: import javax.inject.Named; import javax.enterprise.context.RequestScoped; @Named @RequestScoped public cl...

4

Solved

What is the best possible way to invalidate session within a JSF 2.0 application? I know JSF itself does not handle session. So far I could find private void reset() { HttpSession session = (Htt...
Footboy asked 11/4, 2011 at 10:14

22

Solved

I'm pretty new to the Spring Framework, I've been playing around with it and putting a few samples apps together for the purposes of evaluating Spring MVC for use in an upcoming company project. So...
Liftoff asked 28/10, 2008 at 13:50

7

Solved

I'm a Java EE-newbie. I want to test JSF and therefore made a simple program but can not deploy it. I get the following error message: cannot Deploy onlineshop-war deploy is failing=Error occurred...
Theoretician asked 5/2, 2015 at 19:32

0

Solution of this question already exists in stackoverflow. Although I have asked this question, it is because all available answers doesn't solve my problem/error. So I have asked this question so ...
Draught asked 2/11, 2021 at 13:5

18

Solved

When trying to reference a managed bean in EL like so #{bean.entity.property}, sometimes a javax.el.PropertyNotFoundException: Target Unreachable exception is being thrown, usually when a bean prop...
Aecium asked 8/5, 2015 at 16:15

4

Solved

I understand that a managed bean works like a controller, because your only task is "link" the View Layer with Model. To use a bean as a managed bean I must declare @ManagedBeanannotation, doing ...
Schouten asked 22/8, 2013 at 18:18

7

Solved

I'm using Wildfly 10.0.0 Final, Java EE7, Maven and JPA 2.1. When I am querying my database for records it works fine and lists out the employees, but when I am trying to persist a new employee it ...
Dimension asked 5/3, 2016 at 0:0

4

Solved

I've read how to send parameters using JSF but what if the user types their companyId in the URL when accessing their login page? For example, http://my.company.url/productName/login.faces?comp...
Cochleate asked 23/5, 2012 at 16:49

6

Is there a way to call (execute) a JavaScript function from managed bean in JSF? If that's relevant, I'm also using PrimeFaces.
Beet asked 15/4, 2011 at 9:49

4

Solved

As we all know that it is recommended to use annotations from javax.enterprise.context instead of javax.faces.bean as they are getting deprecated. And we all found ManagedBeans with eager="true" a...
Promiscuity asked 16/7, 2016 at 14:46

2

Solved

For authentication purposes, I am injecting a request scoped backing bean into another session scoped bean that is going to store the logged user. Or at least it should... Following , a bit of cod...
Orna asked 27/5, 2013 at 14:2

3

Solved

I'm preparing some variables in JavaScript (in my specific case, I'd like to get GPS location): function getVars() { // ... var x = locationInfo.lng; var y = locationInfo.lat; } I'd like to ...
Inanition asked 18/2, 2015 at 18:36

4

Solved

Is there a way to execute a JSF managed bean action when a page is loaded? If that's relevant, I'm currently using JSF 1.2.
Gallard asked 15/3, 2010 at 23:19

3

Solved

Is there some way how to redirect page to other page from Java method? I'm able only to forward it using: FacesContext.getCurrentInstance().getExternalContext().dispatch("/foo.xhtml"); or usi...
Industrial asked 10/5, 2011 at 19:8

4

Solved

Is there a way to call a method upon leaving a page with JSF?
Gasperoni asked 2/4, 2012 at 21:13

2

Solved

I've a session scoped bean: @Named @SessionScoped public class SessionBean implements Serializable { private String someProperty; public String getSomeProperty() { return someProperty; } } ...

2

I am trying to setup my own JSF tag libary. So I created a composite component with an backing interfaces as a blueprint to build a backing bean for this component. public interface CompLogin { ...
Qualify asked 13/5, 2016 at 9:0

4

Solved

Im trying to access the example/web folder (see below in the image) in a jsf managed bean but cant seem to find a way to do it thx
Piane asked 30/4, 2012 at 1:47

3

Solved

I tried union Spring 3(MVC) with JSF 2. I have some experience in Spring and JSF, but never tried to join them before. In the end I have 2 files @ManagedBean(name = "userBean") @Scope @Compo...
Erzurum asked 9/2, 2015 at 23:57

6

Solved

I'm trying to write a custom servlet (for AJAX/JSON) in which I would like to reference my @ManagedBeans by name. I'm hoping to map: http://host/app/myBean/myProperty to: @ManagedBean(name="myB...
Unipod asked 13/4, 2010 at 20:53

1

Solved

I just created a new maven project and Added a index controller. Then I used managedbean annotation. But I get this message The type ManagedBean is deprecated. So I tried for alternatives but...
Majestic asked 26/6, 2016 at 17:0

2

Solved

So I made a composite component FileAdder.xhtml <composite:interface> <composite:attribute name="type" value="#{editoriCompositeController.typeString}"/> </composite:interface> ...

4

Solved

I'm looking for some piece of code for setting a property in a JSF managed bean. My first idea was something like that: <c:set var="#{loginBean.device}" value="mobil"></c:set> That m...
Teletypesetter asked 7/8, 2012 at 11:6

1

Solved

I'm planning to convert a web app from using JSF managed bean to using CDI managed beans. I know I'll need to do below: Add a empty beans.xml file in WEB-INF. Replace all JSF @ManagedBean to CDI ...
Banausic asked 22/3, 2016 at 13:18

© 2022 - 2024 — McMap. All rights reserved.