myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sniezna.stopa" <li...@wp.pl>
Subject MyFaces Orchestra and "Target Unreachable" after validation or conversion
Date Mon, 25 Aug 2008 12:48:15 GMT

Hi!
I have simple bean:

    <bean id="Registration" class="pl.bazaar.beans.Registration"
scope="conversation.access">
        <property name="bazaarUserService" ref="bazaarUserService"/>
        <property name="productCategoryService"
ref="productCategoryService"/>
        <property name="businessCategoryService"
ref="businessCategoryService"/>
    </bean>

I use this bean thru some simple jsf pages. On last page, when the
validation or conversion fails, the exception is thrown:

   Caused by: javax.el.PropertyNotFoundException: /registration/step4.jspx
@16,236 value="#{Registration.bazaarUser.email}": Target Unreachable,
'bazaarUser' returned nul

Is this a bug in MyFaces Orchestra or am I missing something in
configuration files?

Here is my applicationContext-orchestra.xml:

<import resource="applicationContext-service.xml"/>
    <import resource="applicationContext-jpa.xml"/>
    <import resource="classpath*:/META-INF/spring-orchestra-init.xml" />
    <bean
class="org.springframework.beans.factory.config.CustomScopeConfigurer">
        <property name="scopes">
            <map>
                <entry key="conversation.manual">
                    <bean
class="org.apache.myfaces.orchestra.conversation.spring.SpringConversationScope">
                        <property name="timeout" value="30" />
                        <property name="advices">
                            <list>
                                <ref
bean="persistentContextConversationInterceptor"/>
                            </list>
                        </property>
                    </bean>
                </entry>
                <entry key="conversation.access">
                    <bean
class="org.apache.myfaces.orchestra.conversation.spring.SpringConversationScope">
                        <property name="timeout" value="30" />
                        <property name="advices">
                            <list>
                                <ref
bean="persistentContextConversationInterceptor"/>
                            </list>
                        </property>
                        <property name="lifetime" value="access"/>
                    </bean>
                </entry>
            </map>
        </property>
    </bean>
    <bean id="persistentContextConversationInterceptor"
       
class="org.apache.myfaces.orchestra.conversation.spring.PersistenceContextConversationInterceptor">
        <property name="persistenceContextFactory"
ref="persistentContextFactory"/>
    </bean>
    <bean id="persistentContextFactory"
       
class="org.apache.myfaces.orchestra.conversation.spring.JpaPersistenceContextFactory">
        <property name="entityManagerFactory" ref="localEmf"/>
    </bean>
    <bean id="Registration" class="pl.bazaar.beans.Registration"
scope="conversation.access">
        <property name="bazaarUserService" ref="bazaarUserService"/>
        <property name="productCategoryService"
ref="productCategoryService"/>
        <property name="businessCategoryService"
ref="businessCategoryService"/>
    </bean>

-- 
View this message in context: http://www.nabble.com/MyFaces-Orchestra-and-%22Target-Unreachable%22-after-validation-or-conversion-tp19143233p19143233.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message