<HTML>
<BODY>
Hi,
I am trying quite hard to work with this (the Orbeon Presentation
Server) but am finding the limitations to be difficult to overcome.
First, I have a not so robust contribution to suggest for the
XForms UI element switch/case/toggle (included at the end of the e-mail).
It works pretty well in IE but causes "issues" in Mozilla and Opera based
browsers, it seems to cause the page to reload if the switches are nested.
I would also point out that Orbeon complained xforms:switch is not in the
xforms namespace, thus the gbxforms namespace, but it is defined in
section 9.2 in the XForms 1.0 final specification.
Second, in response to Rahul Agarwal's question regarding
javascript 2004 Oct 26, I found the following worked fine through the
Orbeon processor:
<xhtml:script type="text/javascript"
src="currentOrbeonPath/myjscript.js"/> <!-- where currentOrbeonPath is
the relative servlet file path to your js -->
Finally, I get to my questions.
1) If I need to pass the filled out instance data in XML format
and session data to a servlet/JSP on another server how can I accomplish
this from within the Orbeon environment?
2) When I initially present the instance data with bound required
attributes (using the bind element in the model data) to the client how do
I prevent the page from showing errors until after they attempt to submit
(or at least until they have had the opportunity to fill in the required
fields)?
3) Can the intermediate solution to the input label be included in
the released war file?
4) Per Micah Dubinko, who contributed to the XForms specification,
the CSS3 entry:
@namespace xforms url(http://www.w3.org/2002/xforms/);
/* Display a red asterisk after all required form controls */
*:required::after {content: red; color:red;}
should function with an xforms implementation. Obviously, I have tried
this and had no success. Is there some way to accomplish this in Orbeon's
servlet? At the very least would it be possible to pass along CSS
attributes (class="") for xforms elements within the servlet?
5) I also notice that no events (other than submit) seem to be
supported, will more be included in the future?
6) The Chiba implementation has a simple chart that demonstrates
what elements of the XForms 1.0 specification have been implemented, those
which are partially implemented, and those which are not yet implemented
would it be possible for Orbeon to provide something similar? Our choice
of Orbeon is based almost entirely on the licensing arrangement (LGPL vs
Artistic) so the implemented/not-implemented feature list would be VERY
helpful.
7) Erik Bruchez has a bug, 1052268, posted regarding multiple
instances in an XForms model. Is there any estimate as to when this may
be addressed?
8) The itemset element does not appear to be in the
xforms-to-xhtml.xsl but it has been indicated previously that itemset is
implemented in the Presentation Server. Where might this implementation
be?
Well, that's about it. I hope someone can help me out with my
questions and that my couple of contributions prove useful to someone.
Very Respectfully,
Gregory J Blajian
<!--
/* original trigger template */
<xsl:template match="xforms:trigger">
/* < ! - - TODO - - > */
<xsl:message terminate="yes">Trigger control is not
supported</xsl:message>
</xsl:template>
-->
<!-- Greg Blajian 2004 Oct 25
New trigger and switch templates
-->
<xsl:variable name="quot">'</xsl:variable>
<xsl:template match="gbxforms:trigger">
<xsl:variable name="triggerId" select="@id"/>
<xsl:variable name="triggerLabel" select="xforms:label"/>
<xsl:variable name="triggerToggleCaseId"
select="gbxforms:action/gbxforms:toggle/@case"/>
<xsl:variable name="triggerToggleSwitchId"
select="gbxforms:action/gbxforms:toggle/@switch"/>
<button id="{$triggerId}"
onclick="switch_{$triggerToggleSwitchId}({$quot}{$triggerToggleCaseId}{$qu
ot});">
<label><xsl:value-of
select="gbxforms:label"/></label>
</button>
</xsl:template>
<xsl:template match="gbxforms:switch">
<xsl:variable name="switchId" select="@id"/>
<script type="text/javascript">
function switch_<xsl:value-of select="@id"/>(a)
{
<xsl:for-each select="gbxforms:case">
<xsl:variable name="caseId" select="@id"/>
document.getElementById(<xsl:value-of
select="$quot"/><xsl:value-of select="@id"/><xsl:value-of
select="$quot"/>).className='dis2';
</xsl:for-each>
document.getElementById(a).className='dis1';
}
</script>
<xsl:for-each select="gbxforms:case">
<xsl:variable name="caseId" select="@id"/>
<xsl:variable name="disp">
<xsl:choose>
<xsl:when test="@selected = 'true'
or @selected='true()'">dis1</xsl:when>
<xsl:otherwise>dis2</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div id="{$caseId}" class="{$disp}">
<xsl:apply-templates/>
</div>
</xsl:for-each>
</xsl:template>
<!--
Since this probably won't work in this location
the css will also be added to the autopilot CSS page
-->
<xsl:template match="head/title">
<xsl:copy-of select="."/>
<style type="text/css">.div{display:block;}
.dis2{display:none;}</style>
</xsl:template>
<P><hr size=1></P>
<P><STRONG>
This electronic message contains information from CACI International Inc or
subsidiary companies, which may be company sensitive, proprietary,
privileged or otherwise protected from disclosure. The information is
intended to be used solely by the recipient(s) named above. If you are not
an intended recipient, be aware that any review, disclosure, copying,
distribution or use of this transmission or its contents is prohibited. If
you have received this transmission in error, please notify us immediately
at [EMAIL PROTECTED] With the exception of messages sent by authorized
CACI contracts or purchasing personnel, nothing in this message may be
interpreted as a digital or electronic signature that can be used to: (a)
authenticate either the submission or the acceptance of a proposal or offer
to contract, or (b) modify an existing contract.
</STRONG></P>
</BODY>
</HTML>
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user