Hello,
lost of questions during my first week of XForms creation.
Question A: I like the compact (table) appereance for my repeat, but why
does this always show all inputs, even those
aren't relevant. The full appereance ommit's all the
bindings that have false in their relevant attribute. Why not
the compact appereance?
I think it must be somewhere in the xsl (html4.xsl).
At first sight the following line:
"<xsl:if
test="not(chiba:data/@chiba:enabled='false')">"
but this appears in both the compact and the full
template match.
Question B: I have some dummy tags in my xforms:instance, used to store
some values that are then concatinated in the
calculation attribute of another xforms:bind. Now
these tags shouldn't be included in the final POST of the
xml instance. So I give these tags an attribute
rel="1", meaning they are relevant, thus shown in my XForm.
When all valeus are correctly entered and the user
submits the xml instance, I set the value of the attribute
rel to zero (rel="0"). This is done using setvalue in
the submit action. After that I revalidate and submit the
xml instance.
What happens is that the attribute values are set to 0
but the dummy tag is still present in my final xml instance.
If I split the setvalue - revalitdate and submit in
two seperate triggers then everything is OK.
What I would like to do:
<xforms:trigger>
<xforms:label>Submit (show doc)</xforms:label>
<xforms:hint>shows submitted instance data in a separate JSP
page</xforms:hint>
<xforms:action>
<xforms:setvalue bind="AllUserLevel">0</xforms:setvalue>
<xforms:setvalue bind="AllType">0</xforms:setvalue>
<xforms:setvalue bind="AllEnum">0</xforms:setvalue>
<xforms:revalidate/>
<xforms:send submission="save"/>
</xforms:action>
</xforms:trigger>
What I have to do:
<xforms:trigger>
<xforms:label>revalidate</xforms:label>
<xforms:action>
<xforms:setvalue bind="AllUserLevel">0</xforms:setvalue>
<xforms:setvalue bind="AllType">0</xforms:setvalue>
<xforms:setvalue bind="AllEnum">0</xforms:setvalue>
<xforms:revalidate/>
</xforms:action>
</xforms:trigger>
<xforms:trigger>
<xforms:label>Submit (show doc)</xforms:label>
<xforms:hint>shows submitted instance data in a separate JSP
page</xforms:hint>
<xforms:action>
<xforms:send submission="save"/>
</xforms:action>
</xforms:trigger>
Are there any solutions for these questions?
Kind regards,
Koen
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|