Fwd: Bug or feature?

This is a multi-part message in MIME format.
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit


I past the code from previously attached file repeat.xml, because I realized that attachments are not included into news in the mozilla lists.

<xhtml xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
      <title>Phone List</title>
         <xf:instance xmlns="" id="phonebook">
         <xf:instance xmlns="" id="saverepeatindex">
         <style type="text/css"><![CDATA[
		@namespace xf url("http://www.w3.org/2002/xforms");
		xf|repeat xf|trigger[appearance="minimal"].test > xf|label
			/*with rule float:left trigger don't change index of repeat from version 0.8.7pre to current beta version for firefox 4 (0.8.8b1) of xforms plugin*/

   <xf:input ref="instance('saverepeatindex')/index">
   	<xf:label>Selected index inside repeat</xf:label>
         <legend>Company Phone List</legend>
         <p><b>Name, Phone</b>
         <xf:repeat nodeset="instance('phonebook')/Person" id="repeatid" >
            <xf:output ref="Name" incremental="true"/>,
            <xf:output ref="Phone" incremental="true"/>
            <xf:trigger appearance="minimal" class="test">
            	<xf:action ev:event="DOMActivate">
			<xf:setvalue ref="instance('saverepeatindex')/index" value="index('repeatid')"/>

-------- Original Message --------
Subject: 	Bug or feature?
Date: 	Fri, 24 Jun 2011 15:59:13 +0200
From: 	Ɓukasz Pytlarz <lpytlarz@frse.org.pl>
To: 	dev-tech-xforms@lists.mozilla.org <dev-tech-xforms@lists.mozilla.org>


There is a strange case with /xform:trigger/ element inside
/xform:repeat/. When attribute /appearance/ is set to /minimal/ and also
css rule is written with /float: left/ there is no way, using the
trigger, to change xf-repeat-index.

In older version of the Xforms plug-in, for example 0.8.6ff3, such
construction has just worked fine. Now, one only way, to use trigger to
change index is to use /display: //inline-block/ instead /float: left./
Of course, there is a lot more way do to this, using other controls with
different action but I have only /xform:output/ and /xform:triggers/ in
this case.
/Is there something I don't understand with this or is just a bug?

By the way, when we can expect the official release of the Xforms
plug-in for FF4, 0.8.8?

6/27/2011 11:48:08 AM
mozilla.dev.tech.xforms 695 articles. 0 followers. Post Follow

1 Replies

Similar Articles

[PageSpeed] 19

freelance writer

1/12/2012 8:34:13 AM