|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Repeats only work with input and output (3.0.0 svn trunk)Hi,
I'm currently in the process of cleaning up my new jbpm console which makes it possible to use xforms in jBPM. This will become opensource within a few weeks. (finally) With this I want to publish some nice examples, one of which contains a repeat where there are also selects besides plain input. The error I get is this.domNode.options does not exist in javascript. The serverside does not show any error <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <head> <xforms:model id="model_0"> <xforms:instance id="instance_0" xmlns=""> <suspects> <suspect> <IdKnown>Yes</IdKnown> <whyNot>140</whyNot> </suspect> </suspects> </xforms:instance> <xforms:bind id="bind_0" nodeset="/suspects"> <xforms:bind id="bind_1" nodeset="suspect"> <xforms:bind id="bind_2" nodeset="IdKnown" required="true()" type="xs:string" /> <xforms:bind id="bind_3" nodeset="whyNot" required="true()" type="xs:string" /> </xforms:bind> </xforms:bind> <xforms:submission action="echo" id="submission_0" method="post" /> </xforms:model> </head> <body> <xforms:group appearance="full" id="group_0" ref="/suspects"> <xforms:label id="label_0">Suspects</xforms:label> <xforms:repeat appearance="full" id="repeat_0" nodeset="suspect"> <xforms:label id="label_1">Suspect</xforms:label> <xforms:select1 appearance="full" bind="bind_2" id="select1_0"> <xforms:label id="label_4">Id Known</xforms:label> <xforms:choices id="choices_0"> <xforms:item id="item_0"> <xforms:label id="label_5">No</xforms:label> <xforms:value id="value_0">No</xforms:value> </xforms:item> <xforms:item id="item_1"> <xforms:label id="label_6">Yes</xforms:label> <xforms:value id="value_1">Yes</xforms:value> </xforms:item> </xforms:choices> </xforms:select1> <xforms:input bind="bind_3" id="input_0"> <xforms:label id="label_7">Why Not</xforms:label> </xforms:input> </xforms:repeat> <xforms:trigger id="trigger_0"> <xforms:label id="label_2">Insert suspect after selected</xforms:label> <xforms:action id="action_0"> <xforms:insert at="xforms:index('repeat_0')" nodeset="/suspects/suspect" id="insert_0" position="after" /> </xforms:action> </xforms:trigger> <xforms:trigger id="trigger_1"> <xforms:label id="label_3">Delete selected suspect</xforms:label> <xforms:action id="action_1"> <xforms:delete at="xforms:index('repeat_0')" nodeset="/suspects/suspect" id="delete_0" /> </xforms:action> </xforms:trigger> </xforms:group> <xforms:submit id="submit_0" submission="submission_0"> <xforms:label id="label_15">Submit</xforms:label> </xforms:submit> </body> </html> Changing the select to a normal input makes it work. I also tried with select, load, range etc and they all do *not* work and give different errors relating to the underlying DOM that is expected but not there. If you have several complex types within this range and use groups around them, the group also seems lost (I put a group in the example and look at the difference when an additional item is inserted (change the select1 to input to see that). After two days of doubting myself I think it is an issue in Chiba and maybe related to the 'repeat-prototype' that is generated. I only see labels in there, no div for the group or anything else. Since I cannot seem to find the place where the prototype is generated, I'm stuck in further debugging. Any ideas? Ronald ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Chiba-users mailing list Chiba-users@... https://lists.sourceforge.net/lists/listinfo/chiba-users |
| Free embeddable forum powered by Nabble | Forum Help |