You can define a request scope bean for which some properties are
managed by JSF:

simple example:
http://yourserver/youApp/paymentStatus?transactionId=123456789&result=987654321

and in faces-config.xml:
    <managed-bean>
        <managed-bean-name>
            transactionResultBean
        </managed-bean-name>
        <managed-bean-class>
            com.company.SomeClass
        </managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
            <description>Gets the transaction Id from url</description>
            <property-name>transactionId</property-name>
            <property-class>java.lang.String</property-class>
            <value>#{param['transactionId']}</value>
        </managed-property>
        <managed-property>
            <description>Gets the transaction result from url</description>
            <property-name>result</property-name>
            <property-class>java.lang.String</property-class>
            <value>#{param['result']}</value>
        </managed-property>
    </managed-bean>

En l'instant précis du 02/14/07 14:03, Yuri Ivanov s'exprimait en ces
termes:
> Hello all, 
>
> I am new in JSF, I have a simple question.
>
> I need to integrate JSF application with external payment system. This
> system can call my url if payment successfully transferred. But I can't
> understand how can I define method in back bean that will be called before
> rendering response. 
>
> Of course I can write Servlet for handling this situation, but it's not very
> convenient for me.
>
>  
>
> Thanks,
>
> Yuri.
>
>
>   

Reply via email to