Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Checkbox Orbeon:如何使用可选文本输入的复选框列表_Checkbox_Orbeon_Xforms - Fatal编程技术网

Checkbox Orbeon:如何使用可选文本输入的复选框列表

Checkbox Orbeon:如何使用可选文本输入的复选框列表,checkbox,orbeon,xforms,Checkbox,Orbeon,Xforms,我需要使用字典中的复选框列表,但我必须在每个选项中添加可选文本输入,如下所示: <li> <label> <input type="checkbox" value="{id}"> {name} </label> <input type="text"> </li> {name} 字典是这样的: <items> <item> <id/> <

我需要使用字典中的复选框列表,但我必须在每个选项中添加可选文本输入,如下所示:

<li>
  <label>
    <input type="checkbox" value="{id}"> {name}
  </label>
  <input type="text">
</li>
  • {name}
  • 字典是这样的:

    <items>
      <item>
        <id/>
        <name/>
      </item>
    </items>
    
    
    

    我试着用
    选择
    ,但我不能把文本输入放在每个项目旁边。我想我可以用
    repeat
    来实现这一点,但我不知道如何将复选框(仅为真/假)与文本输入连接起来。

    我想你问的问题是XForms的上下文,更具体地说是Orbeon表单,因为你已经将问题标记为这样。因此,对于XForms,这是通过选择控件完成的:

    <xf:select appearance="full" ref=".">
        <xf:itemset ref="instance('items')/item">
            <xf:label ref="name"/>
            <xf:value ref="id"/>
        </xf:itemset>
    </xf:select>
    
    
    
    另请参见一个这样做的示例,您也可以这样做