Re: Problem with a UrlAction and a managed bean…

Splash Forums PrettyFaces Users Problem with a UrlAction and a managed bean… Re: Problem with a UrlAction and a managed bean…

#20825

balteo
Participant

Hello Lincoln,

I commented out the @URLMapping in gestionnaireinscriptionview but was not able to get the application to work after commenting out the @URLAction in sculptureView (given the way it is designed this has to be in place for this part of the app to work)

I forgot to mention that I have a pretty configurator as follows:

*********************************

package com.jeanbaptistemartin.util;

import com.ocpsoft.pretty.faces.config.PrettyConfig;

import com.ocpsoft.pretty.faces.config.mapping.UrlAction;

import com.ocpsoft.pretty.faces.config.mapping.UrlMapping;

import com.ocpsoft.pretty.faces.spi.ConfigurationPostProcessor;

import javax.servlet.ServletContext;

import org.apache.log4j.Logger;

/**

*

* @author julien

*/

public class PrettyFacesPostProcessor implements ConfigurationPostProcessor {

private static transient Logger log = Logger.getLogger(“com.jeanbaptistemartin.util”);

@Override

public PrettyConfig processConfiguration(ServletContext sc, PrettyConfig pc) {

log.debug(“processConfiguration”);

UrlAction rootAction = new UrlAction(“#{accueilView.changeLocale}”);

UrlMapping biographieMapping = (UrlMapping) pc.getMappingById(“biographieAction”);

biographieMapping.addAction(rootAction);

UrlMapping commandesPersonnaliseesMapping = (UrlMapping) pc.getMappingById(“commandesPersonnaliseesAction”);

commandesPersonnaliseesMapping.addAction(rootAction);

UrlMapping contactMapping = (UrlMapping) pc.getMappingById(“contactAction”);

contactMapping.getActions().add(0, rootAction);

UrlMapping galerieMapping = (UrlMapping) pc.getMappingById(“galerieAction”);

galerieMapping.getActions().add(0, rootAction);

UrlMapping liensMapping = (UrlMapping) pc.getMappingById(“liensAction”);

liensMapping.getActions().add(0, rootAction);

UrlMapping sculptureMapping = (UrlMapping) pc.getMappingById(“sculptureAction”);

sculptureMapping.getActions().add(0, rootAction);

UrlMapping alertesMapping = (UrlMapping) pc.getMappingById(“alertesAction”);

alertesMapping.getActions().add(0, rootAction);

return pc;

}

}

*********************************

Any other suggestion?

J.