field's help not rendered

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

field's help not rendered

Jean Luc-2

Hello,

I found a field's help icon + text is not rendered in the following case. Am I doing something wrong?

The hint *is* rendered, by the way. The xpath is correct, I checked with the model inspector.

Thank you,
JL


<xf:instance id="form-data" xmlns="">
    <assetList>
        <asset>
            <attributes>
                <attribute>
                    <name>myname</name>
                    <description>this is a description</description>
                    <value>42</value>
                </attribute>
                <attribute>
                    <name>myname2</name>
                    <description>this is another description</description>
                    <value>1024</value>
                </attribute>
            </attributes>
        </asset>
    </assetList>


<table>
    <xf:repeat nodeset="assetList/asset/attributes/attribute">
        <tr>
            <td>
                <xf:output ref="name"/>
            </td>
            <td>
                <xf:input ref="value">
                    <xf:label/>
                    <xf:help ref="description" />
                    <xf:hint>this hint will appear</xf:hint>
                </xf:input>
            </td>
        </tr>
        <br/>
    </xf:repeat>
</table>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: field's help not rendered

Jean Luc-2
Never mind, I found the problem. The TD element should have been like below because the current context is changed to 'value'.
 
            <td>
                <xf:input ref="value">
                    <xf:label/>
                    <xf:help>
                        <xf:output ref="../description"/>
                    </xf:help>
                    <xf:hint>
                        <xf:output ref="../description"/>
                    </xf:hint>
                </xf:input>
            </td>
----- Original Message -----
Sent: Tuesday, February 26, 2008 11:03 AM
Subject: field's help not rendered

Hello,

I found a field's help icon + text is not rendered in the following case. Am I doing something wrong?

The hint *is* rendered, by the way. The xpath is correct, I checked with the model inspector.

Thank you,
JL


<xf:instance id="form-data" xmlns="">
    <assetList>
        <asset>
            <attributes>
                <attribute>
                    <name>myname</name>
                    <description>this is a description</description>
                    <value>42</value>
                </attribute>
                <attribute>
                    <name>myname2</name>
                    <description>this is another description</description>
                    <value>1024</value>
                </attribute>
            </attributes>
        </asset>
    </assetList>


<table>
    <xf:repeat nodeset="assetList/asset/attributes/attribute">
        <tr>
            <td>
                <xf:output ref="name"/>
            </td>
            <td>
                <xf:input ref="value">
                    <xf:label/>
                    <xf:help ref="description" />
                    <xf:hint>this hint will appear</xf:hint>
                </xf:input>
            </td>
        </tr>
        <br/>
    </xf:repeat>
</table>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws