In my managedBean
, fileUpload
: Am calling other beans
using @ManagedProperty
as shown in code, now later in my class i have something like rtParser.getQuote()
but it throws NullPointerException
, my question is:
How can I initialize rtParser in this class?
@ManagedProperty(value = "#{rtParser}")
private PositionParserRT rtParser;
public PositionParserRT getRtParser()
{
return rtParser;
}
public void setrtParser(PositionParserRT rtParser)
{
this.rtParser = rtParser;
}
Updated
I am having similar kind of issue here and would highly appreciate any suggestions.