Re: Injection Time

Splash Forums PrettyFaces Users Injection Time Re: Injection Time

#21260

RedShadow
Participant

Custom parsing:

PrettyContext pc = PrettyContext.getCurrentInstance();

List<PathParameter> params = pc.getCurrentMapping().getPatternParser().parse(pc.getRequestURL());

for(PathParameter p : params){

if(“menuEntryName”.equals(p.getName())){

menuEntryName = p.getValue();

}else if(“secondLevelMenuEntryName”.equals(p.getName())){

secondLevelMenuEntryName = p.getValue();

}else{

parameters = p.getValue();

}

}

And everything works fine, so it is absolutely related to the problem with the injection.

If it helps you i am using CDI