Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7085961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:29:23+00:00 2026-05-28T07:29:23+00:00

Following Orbeon documentation about running xforms-with-java-applications , I deployed Orbeon’s war file separately beside

  • 0

Following Orbeon documentation about running xforms-with-java-applications,
I deployed Orbeon’s war file separately beside my java war on JBoss.

I tried creating 2 instances inside one model

<xforms:model id="fr-form-model">


  <xforms:instance id="don-instance1">
    <don>
     <laptop>                   
 </laptop>
    </don>
  </xforms:instance> 

  <xforms:instance id="don-instance2">
    <don2>
       <laptop2>                    
   </laptop2>
    </don2>
  </xforms:instance>

</xforms:model id="fr-form-model">

I can’t seem to access the second xforms instance from the

<xforms:input ref="instance('don-instance')/don/laptop2">
   <xforms:label>Enter a Name:</xforms:label>   
</xforms:input>

Accessing the first xforms instance is fine, as long as I DON’T use the instance() function

<xforms:input ref="/don/laptop">
   <xforms:label>Enter a Name:</xforms:label>    
</xforms:input>

Somehow the instance() method isn’t working as I expect, What am I missing ?

Revised Complete XML:

    <xhtml:html
            xmlns:xhtml="http://www.w3.org/1999/xhtml"      
            xmlns:xforms="http://www.w3.org/2002/xforms"
            xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
            xmlns:ev="http://www.w3.org/2001/xml-events"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
            >

        <xhtml:head>
            <xhtml:title>Simple</xhtml:title>

            <xforms:model >

                <xforms:instance id="don-instance1">
                    <don1>
                        <laptop1>
                        </laptop1>
                    </don1>
                </xforms:instance>

                 <xforms:instance id="don-instance2">
                    <don2>
                        <laptop2>                   
                        </laptop2>
                    </don2>
                </xforms:instance> 

                <xforms:submission id="submit_metadata" action="../processor.jsp" method="post"/>

            </xforms:model>
        </xhtml:head>

        <xhtml:body>


            <xforms:input ref="instance('don-instance1')/don1/laptop1">
                <xforms:label class="composers-label">Laptop1: </xforms:label>                                      
                <xhtml:br />                                        
            </xforms:input>

            <xforms:input ref="instance('don-instance2')/don2/laptop2">
                <xforms:label class="composers-label">Laptop2: </xforms:label>                                      
                <xhtml:br />                                        
            </xforms:input>

            <xhtml:br />
            <xhtml:br />


            <xforms:submit submission="submit_metadata">
                <xforms:label class="composers-label">Submit</xforms:label>
            </xforms:submit>
            <xhtml:br />

            <fr:xforms-inspector/>

        </xhtml:body>
    </xhtml:html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:29:24+00:00Added an answer on May 28, 2026 at 7:29 am

    As per the code, i see that you are not referring the node names properly. If you want to access the laptop node in first instance then your code should be like this:

    <xforms:input ref="instance('don-instance1')/laptop">
       <xforms:label>Enter a Name:</xforms:label>   
    </xforms:input>
    

    Same way, if you want to access the node in second instance, it should be

    <xforms:input ref="instance('don-instance2')/laptop2">
       <xforms:label>Enter a Name:</xforms:label>   
    </xforms:input>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following Izb's question about Best binary XML format for JavaME , I'm looking for
Following up from this question: How can I unlock a file that is locked
Following question How do applications resolve to different versions of shared libraries at run
Following up on this question: Kiosk Applications - OS X programming - Multiple monitors
Following is a static struct in C++. How can this be represented in java.
After following instructions from orbeons wiki From: http://wiki.orbeon.com/forms/doc/user-guide/form-builder-user-guide#TOC-Creating-a-PDF-template-for-use-wit Non-exclusive checkboxes Use PDF checkboxes Use
Following the example here and running into trouble. I installed socketIO with npm install
Following the instructions at MusicalGeometry.com , I've archived and created the .ipa file. However,
Following example code from the libpcap documentation yields the following code which should report
Following on from my recent question on Large, Complex Objects as a Web Service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.