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 7167735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:38:13+00:00 2026-05-28T14:38:13+00:00

I have come across a strange defect. I am using Orbeon 3.9 CE on

  • 0

I have come across a strange defect. I am using Orbeon 3.9 CE on Tomcat. Depending on the text-field value=’true’ the link will be shown as in the screenshot. Please note the trigger refer to “data-safe” instance for showing and hiding.

<xforms:trigger appearance="minimal" ref=".[instance('data-safe')/data-safe='true']">
    <xforms:label>
        Add
    </xforms:label>
</xforms:trigger>

This is how the screen should look like.
expected functionality

Now, for as part of performance improvements, i have one of the instance with the attribute xxforms:readonly="true"

1st instance read-only

Here the 1st instance is readonly

then the form displayed changes to like below. where the add link is disabled.
add link disabled

now if i change the order of the readonly instance from 1st position in the model to somewhere below. like shown
readonly moved below

the add link gets enabled
expected functionality

here is a code sample to explain the issue

  <xhtml:head>

    <xhtml:title>SO question</xhtml:title>
    <!-- CSS StyleSheet test-->

    <!-- Link to the Model goes Here -->
    <!-- Needs exslt to do some fancy things with Dates and Time -->
    <xforms:model id="model">

        <!-- -->
        <!-- Places Instances Here -->
        <!-- -->


        <xforms:instance id="dropdown-values"   src="oxf:/apps/TSDM/global_instances/Dropdown-Values.xml" xxforms:readonly="true"/>

        <xforms:instance id="form-attributes">
            <attributes>
                <form-global>
                    <current-page>1</current-page> <!-- Always starts on 1 -->
                    <previous-page></previous-page> <!-- Always starts on 1 -->
                    <next-page></next-page> <!-- Always starts on 1 -->
                    <first-page>1</first-page> <!-- First Page Boundary: 1 always -->
                    <last-page>12</last-page> <!-- Last Page Boundary: Change based on form -->
                    <summary>false</summary> <!-- Enable Summary View indicator -->
                </form-global>
            </attributes>
        </xforms:instance>

        <xforms:instance id="data-safe">
            <flag>
                <data-safe>true</data-safe>
                <data-safe1></data-safe1>
            </flag>
        </xforms:instance>

    <xforms:bind id="group-level-specifications-credit-effective-end-date" nodeset="instance('data-safe')/data-safe"
                    calculate="."
                    readonly="false()"/>


    <!--xforms:bind nodeset="instance('data-safe')/data-safe1" type="xforms:date"
                    calculate="months(xforms:dayTimeDuration(../data-safe))"
                    readonly="false()"/-->

    </xforms:model>


</xhtml:head>
<!-- End of Head -->



<!-- Start of the Body of the Page -->
<xhtml:body class="MainBODY">

    <xforms:switch>
        <xforms:case>
            <xforms:trigger appearance="minimal" ref=".[instance('data-safe')/data-safe='true']">
                <xforms:label>
                    Add
                </xforms:label>

            </xforms:trigger>
        </xforms:case>
    </xforms:switch>
    <xforms:input ref="instance('data-safe')/data-safe" />
    <br/>
    <xforms:input ref="instance('data-safe')/data-safe1" />


</xhtml:body>
  • 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-28T14:38:14+00:00Added an answer on May 28, 2026 at 2:38 pm

    When you write <xforms:trigger ref=".[some condition]">, you are not only hiding the trigger when the condition is false, you are also binding it to whatever node . points to. Unless your trigger is inside some container element (<xforms:group>, …) which changes the context, the context is the root element of the first instance. When a trigger is bound to a node:

    1. The trigger won’t show if the node is non-relevant.
    2. The trigger shows as disabled if the node is read-only.

    You are in this second case, not because of an <xforms:bind readonly="false()"/> in your code, but because when you put an xxforms:readonly="true" on an instance, all its nodes are marked as readonly.

    The solution in your case is simple: move that instance as the second one, as you did, or bind the trigger to another node that isn’t read-only by using another XPath expression instead of ..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have come across a very strange issue in python. (Using python 2.4.x) In
I have come across some strange behaviour, and I'm assuming a bug in Firefox,
I have just come across something that is quite strange and yet I haven't
I have come across a very weird error. I'm on Solaris 10, using Ruby
I have come across a strange behavior of Java that seems like a bug.
We have come across a strange issue with ConcurrentHashMap , where two threads appears
I've come across a really strange problem. I have written a simple Deck class
I have come across a strange problem with Zend_Framework, I can not load forms
I have come across a strange behavior with Microsoft Code Contracts that I don't
I've come across a strange render bug on iPhone OS 3.0... I have two

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.