xxforms:appearance attribute

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

xxforms:appearance attribute

Geoffroy-2
Does the new XForms engine support the attribute xxforms:appearance?

I must put a button submit in my application allowing to remove record in a table.

<xhtml:table class="gridtable" width="600">
    <xhtml:tr>
        ...
        ...
        ...
   </xhtml:tr>
   <xforms:repeat nodeset="leaflets/leaflet" id="leaflets">
   <xhtml:tr>
       <xhtml:td>
           <xforms:input ref="quantity"/>
       </xhtml:td>
       ...
       ...
       ...
       <xhtml:td style="text-align:center">
           <xforms:submit ref="/form/delete" xxforms:appearance="image">
               <xxforms:img src="/images/remove.png"/>
               <xforms:label/>
               <xforms:delete nodeset="/form/quotation/leaflets/leaflet" at="index('leaflets')"/>
           </xforms:submit>
       </xhtml:td>
   </xhtml:tr>
   </xforms:repeat>
</xhtml:table>

During my first test, I tried to put a button image (xxforms:appearance="image"), but this seems to function only with the classic XForms engine.

Geoffroy




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xxforms:appearance attribute

Erik Bruchez
Administrator
Geoffroy,

The classic XForms engine uses the "xxforms:appearance" attribute, but
the new XForms engine uses the regular "appearance" attribute instead,
as follows:

   appearance="xxforms:image"

Be sure to declare the "xxforms" namespace prefix in your document:

   xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"

3.0 beta 3 supports images, but links don't work yet. This will be
supported in 3.0 final.

-Erik

[hidden email] wrote:

> Does the new XForms engine support the attribute xxforms:appearance?
>
> I must put a button submit in my application allowing to remove record in a table.
>
> <xhtml:table class="gridtable" width="600">
>     <xhtml:tr>
>         ...
>         ...
>         ...
>    </xhtml:tr>
>    <xforms:repeat nodeset="leaflets/leaflet" id="leaflets">
>    <xhtml:tr>
>        <xhtml:td>
>            <xforms:input ref="quantity"/>
>        </xhtml:td>
>        ...
>        ...
>        ...
>        <xhtml:td style="text-align:center">
>            <xforms:submit ref="/form/delete" xxforms:appearance="image">
>                <xxforms:img src="/images/remove.png"/>
>                <xforms:label/>
>                <xforms:delete nodeset="/form/quotation/leaflets/leaflet" at="index('leaflets')"/>
>            </xforms:submit>
>        </xhtml:td>
>    </xhtml:tr>
>    </xforms:repeat>
> </xhtml:table>
>
> During my first test, I tried to put a button image (xxforms:appearance="image"), but this seems to function only with the classic XForms engine.
>
> Geoffroy



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws