Questions tagged [managed-property]

Managed property is mechanism of injecting managed bean into the property of another managed bean, by using @ManagedProperty annotation

66 questions
1
vote
0 answers
1
vote
0 answers

PowerShell to map Managed property to Crawled Property

in SharePoint Online I would like to map an handful of Managed properties (RefinableStringXX) to some Crawled properties by a PowerShell script to be faster than manual configuration but I didn't find any working examples for SPO. Can this operation…
1
vote
1 answer

JSF ManagedProperty NullPointerException

I have a sessionScoped ManagedBean in my JSF 2.2 project and i would like to invoke another ManagedBean as a @ManagedProperty This is my first sessionScoped bean: public class MainWorkerMB implements Serializable { /** * */ …
solarenqu
  • 804
  • 4
  • 19
  • 44
1
vote
0 answers

How to inject a property from an abstract base bean to another managed bean

I have the abstract class BaseListBean which has a tableType: public abstract class BaseListBean { private String tableType; } The child beans look like this: @ManagedBean @ViewScoped public class FunctionListBean extends BaseListBean { …
falcorn
  • 21
  • 4
1
vote
0 answers

The injected managed property is null

I have a JSF managed bean to create app dependent User instances (UserFactory interface implementor). I'd like to use this factory in the EJB container. The app throws a NullPointerException because the value of the UserWithRolesDAL.userFactory is…
The Bitman
  • 1,279
  • 1
  • 11
  • 25
1
vote
0 answers

A managed bean instance being injected using @ManagedProperty remains null

I have two classes of managed beans and use @ManagedProperty to try to access the second one but I get NullPointerException every time. What is the problem here? @ManagedBean @SessionScoped public class EventCreateEditModel implements Serializable…
snafua
  • 75
  • 1
  • 14
1
vote
1 answer

@ManagedProperty throws javax.el.ELException: Cannot convert bean of type class java.lang.String to class com.example.Bean

I'm injecting a managed bean as managed property of another managed bean. package com.books.beans; import javax.faces.bean.ManagedBean; import javax.faces.bean.ManagedProperty; import…
Abhishek Singh
  • 10,243
  • 22
  • 74
  • 108
1
vote
0 answers

JSF managed property across multiple beans

I have one bean called LoadSelectItemsBean which is @ApplicationScoped and holds various select item lists which I want to be shared amongst all users of the system. I would like this LoadSelectItemsBean bean to be a @ManagedProperty in two other…
LiamWilson94
  • 458
  • 2
  • 7
  • 26
1
vote
1 answer

Conditional injection of bean with ManagedProperty

I have a controller with the following properties: @ManagedProperty(value="#{remoteApplication}") private transient ProcessService applicationService; @ManagedProperty(value="#{remoteSystem}") private transient SystemService…
Zim
  • 1,457
  • 1
  • 10
  • 21
1
vote
1 answer

jsf 2 application scope bean initiliazed fron faces-config.xml

I'd like to initiliaze the properties of a bean (application scope) from the faces-config.xml. I tried different configuration without success. At library level I'm using jsf 2.2 - jboss-jsf-api_2.2_spec.jar. At project level faces-config is…
1
vote
0 answers

Managed Property returns null

I've a Ajax post request form *input_graph.xhtml* which is backed by a View scoped bean InputTablePlot.java, I've an application scoped bean with eager=true, which creates a connection pool on application start. I have injected this application…
FiendFyre
  • 157
  • 3
  • 17
0
votes
0 answers

Sharepoint Online - Map crawled property to managed refinablestring property using powershell

I need to map crawled property to managed refinable string property in sharepoint online using powershell. I cannot do this through UI interface as I have multiple sites to map. I tried powershell cmdlet like Get-PnPSearchConfiguration…
0
votes
1 answer

SharePoint PnP Modern search not working with refinable string for hub site

I have sharepoint online hub site and around 100 sites associated to hub site. I am using PnP modern search, I want search to work on refinablestring, it is mapped to document type which is content type choice column, Document library is created…
0
votes
1 answer

SharePoint Online - Map crawled properties to managed properties using PowerShell

I want to map Crawled Properties to the Managed Properties using PowerShell for SharePoint Online. I have created a site column "ExcludeContent" and added to the list and now I have Managed Property "ExcludeContent" and I want to map it to Crawled…
0
votes
3 answers

NullPointerException on inject managedProperty on bean

Environment: Wildfly 22 Java 11 JSF 2.3 I am trying to inject a ManagedProperty in a bean and I getting a NullPointerExcepion but I don't know exactly why is that. Something missing? Error log 21:35:25,994 SEVERE…
Joe
  • 7,749
  • 19
  • 60
  • 110