how to pass current instance to the xpointer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to pass current instance to the xpointer

safraz
Hi,

I use following instance

<xforms:instance id="beans-instance">
        <beans xmlns="">
                <bean id="" class="lk.informatics.mediation.oa.filter.JavascriptMultiFilterProcessors">
                        <property name="filter" value=""/>
                        <property name="filterTagName" value=""/>
                        <property name="xmlTagName" value=""/>
                        <property name="wrapperMap">
                                <map> 
                                        <entry key="">
                                                <ref bean=''/>
                                        </entry> 
                                </map>
                        </property>
                        <property name="scriptMap">
                                <map> 
                                        <entry key="">
                                                <value/>
                                        </entry> 
                                </map>
                        </property>
                </bean>
        </beans>
</xforms:instance>

which beans is the master and bean is the detail.

what i want to know is how can i pass current detail bean to <p:processor name="oxf:java"> as an input.

Eg : <p:input name="source" href="#instance#xpointer(/beans/<b>bean/property[@name='scriptMap'])" />


Any Suggestions?

Reply | Threaded
Open this post in threaded view
|

Re: how to pass current instance to the xpointer

Alessandro Vernet
Administrator
Safraz,

safraz wrote
<xforms:instance id="beans-instance">
        <beans xmlns="">
                <bean id="" class="lk.informatics.mediation.oa.filter.JavascriptMultiFilterProcessors">
                        <property name="filter" value=""/>
                        <property name="filterTagName" value=""/>
                        <property name="xmlTagName" value=""/>
                        <property name="wrapperMap">
                                <map> 
                                        <entry key="">
                                                <ref bean=''/>
                                        </entry> 
                                </map>
                        </property>
                        <property name="scriptMap">
                                <map> 
                                        <entry key="">
                                                <value/>
                                        </entry> 
                                </map>
                        </property>
                </bean>
        </beans>
</xforms:instance>

which beans is the master and bean is the detail.

what i want to know is how can i pass current detail bean to <p:processor name="oxf:java"> as an input.

Eg : <p:input name="source" href="#instance#xpointer(/beans/<b>bean/property[@name='scriptMap'])" />
You first have to submit that instance to a service:

* Define a new "service" in the page flow, map a URI (path) to an view="your-pipeline.xpl".
* Call that path from XForms with an <xforms:submission>.
* In the XPL call the oxf:java processor.

I hope this helps,

Alex