While writing the URL mapping rules for Prettyfaces in pretty-config.xml I would like to add a rule that whenever a particular pattern is observed in URL then set a
pretty-config.xml
as i am using prettyfaces annotations i dont know about pretty-config.xml if i got this condition then i will use it in annotations like this
@URLAction(mappingId = "someMappingId", onPostback = false) public String setConstantValue() { // set your bean here return null; }