Migrating from PrettyFaces

Splash Forums Rewrite Users Migrating from PrettyFaces

This topic contains 3 replies, has 3 voices, and was last updated by  Christian Kaltepoth 1 year, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26512

    snooperman
    Participant

    I currently migrated from PrettyFaces to Rewrite. I want to know how could I achieve this in Rewrite:

    <url-mapping id=”mappingId”>
    <pattern value=”/page/#{/[^/]*/ id : bean.id}” />
    <view-id value=”/ui/uglypage.xhtml” />
    <action>#{bean.loadData}</action>
    </url-mapping>

    I tried using annotations

    @Named("psBean")
    @Scope("view")
    @Join(path = "/profiles/{profileId}", to = "/ui/profiles.xhtml")
    @ELBeanName("psBean")
    public class ProfilesBean implements Serializable {
    	private static final long serialVersionUID = 1L;
    
    	@Parameter("profileId")
    	private String profileId;
    
    	public String getProfileId() {
    		return profileId;
    	}
    
    	public void setProfileId(String profileId) {
    		this.profileId = profileId;
    	}
    
    }

    But I`m getting this in the console:

    org.ocpsoft.rewrite.cdi.manager.BeanManagerUnavailableException: Failed to locate BeanManager using any of these providers: org.ocpsoft.rewrite.cdi.manager.DefaultJndiBeanManagerProvider(10), org.ocpsoft.rewrite.cdi.manager.ServletContainerJndiBeanManagerProvider(11)

    I`m using:

    rewrite-servlet 2.0.12, rewrite-integration-cdi 2.0.12, weld-servlet 2.2.6, el 2.2 with Tomcat7.

    Thanks in advance.

    #26513

    snooperman
    Participant

    I migrated from Tomcat 7 to JbossAS 7.1. The mentioned problem is gone, but now I have a new one:

    javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with identifier 'psBean'

    I added the integration-faces 2.0.12 module, I changed the @Scope to @RequestScoped CDI, but nothing helps.

    #26514

    This is an odd issue. Could you perhaps reproduce it in a sample application and attach it to this issue? We will take a look at it. Thanks!

    #26515

    Did you add the BeanManager resource to your context.xml as described in the Weld manual?

    https://docs.jboss.org/weld/reference/2.2.6.Final/en-US/html/environments.html#_tomcat

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Comments are closed.