Login  Register

Re: Re: ORBEON - Forms Runner - Size of Multiline Text Boxes

Posted by khh7112 on Mar 03, 2011; 5:51pm
URL: https://discuss.orbeon.com/ORBEON-Forms-Runner-Size-of-Multiline-Text-Boxes-tp3330238p3333877.html

I'm sorry, this is all new to me.  I read the document and it says edit the source to add class tags in my own style section of the form.  Below is a simple form that only has one multi-line text box, I named "multiline".  I still have no idea where/how to tell the multiline widget to be 10lines tall.

<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
            xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
            xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
            xmlns:exforms="http://www.exforms.org/exf/1-0"
            xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
            xmlns:saxon="http://saxon.sf.net/"
            xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
            xmlns:oxf="http://www.orbeon.com/oxf/processors"
            xmlns:sql="http://orbeon.org/oxf/xml/sql"
            xmlns:xi="http://www.w3.org/2001/XInclude"
            xmlns:ev="http://www.w3.org/2001/xml-events"
            xmlns:xforms="http://www.w3.org/2002/xforms"
            xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
            xmlns:p="http://www.orbeon.com/oxf/pipeline"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:odt="http://orbeon.org/oxf/xml/datatypes"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <xhtml:head>
        <xhtml:title>Aimple Text Box Size</xhtml:title>
        <xforms:model id="fr-form-model">

           
            <xforms:instance id="fr-form-instance">
                <form>
                    <section-1>
                        <multiline/>
                        <control-3/>
                    </section-1>
                </form>
            </xforms:instance>

           
            <xforms:bind id="fr-form-binds" nodeset="instance('fr-form-instance')">
                <xforms:bind id="section-1-bind" nodeset="section-1">
                    <xforms:bind id="control-3-bind" nodeset="control-3" name="control-3"/>
                    <xforms:bind id="multiline-bind" nodeset="multiline" name="multiline"/>
                </xforms:bind>
            </xforms:bind>

           
            <xforms:instance id="fr-form-metadata" xxforms:readonly="true">
                <metadata>
                    <application-name>test</application-name>
                    <form-name>test3</form-name>
                    <title xml:lang="en">Aimple Text Box Size</title>
                    <description xml:lang="en"/>
                    <author/>
                    <logo mediatype="" filename="" size=""/>
                </metadata>
            </xforms:instance>

           
            <xforms:instance id="fr-form-attachments">
                <attachments>
                    <css mediatype="text/css" filename="" size=""/>
                    <pdf mediatype="application/pdf" filename="" size=""/>
                </attachments>
            </xforms:instance>

           
           
            <xforms:instance id="fr-form-resources" xxforms:readonly="false">
                <resources>
                    <resource xml:lang="en">
                        <multiline>
                            <label>multiline</label>
                            <hint/>
                            <help/>
                            <alert/>
                        </multiline>
                        <section-1>
                            <label>Simple Text Box</label>
                            <help/>
                        </section-1>
                        <control-3>
                            <label/>
                            <hint/>
                            <help/>
                            <alert/>
                        </control-3>
                    </resource>
                </resources>
            </xforms:instance>

           
            <xforms:instance id="fr-service-request-instance" xxforms:exclude-result-prefixes="#all">
                <request/>
            </xforms:instance>

            <xforms:instance id="fr-service-response-instance" xxforms:exclude-result-prefixes="#all">
                <response/>
            </xforms:instance>
            <xforms:instance id="test-instance" class="fr-service" xxforms:exclude-result-prefixes="#all">
                <body>&lt;name&gt;&lt;/name&gt;</body>
            </xforms:instance>
            <xforms:submission id="test-submission" class="fr-service"
                               ref="instance('fr-service-request-instance')"
                               resource="http://jarjar.trnswrks.com/test/test.jsp"
                               method="get"
                               serialization="application/x-www-form-urlencoded"
                               mediatype="application/x-www-form-urlencoded"
                               replace="instance"
                               instance="fr-service-response-instance"/>

        </xforms:model>
    </xhtml:head>
    <xhtml:body>
        <fr:view>
            <xforms:label ref="instance('fr-form-metadata')/title"/>
            <fr:body>
                <fr:section id="section-1-section" bind="section-1-bind">
                    <xforms:label ref="$form-resources/section-1/label"/>
                    <xforms:help ref="$form-resources/section-1/help"/>
                    <fr:grid columns="1">
                        <xhtml:tr>
                            <xhtml:td>
                                <xforms:textarea xmlns:xbl="http://www.w3.org/ns/xbl"
                                                 xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
                                                 bind="multiline-bind"
                                                 id="multiline-control">
                                    <xforms:label ref="$form-resources/multiline/label"/>
                                    <xforms:hint ref="$form-resources/multiline/hint"/>
                                    <xforms:help ref="$form-resources/multiline/help"/>
                                    <xforms:alert ref="$fr-resources/detail/labels/alert"/>
                                </xforms:textarea>
                               
                            </xhtml:td>
                           
                        </xhtml:tr>
                        <xhtml:tr>
                            <xhtml:td xmlns:xbl="http://www.w3.org/ns/xbl"
                                      xmlns:fb="http://orbeon.org/oxf/xml/form-builder">
                                <xforms:trigger appearance="minimal" id="control-3-control" bind="control-3-bind">
                                    <xforms:label ref="$form-resources/control-3/label"/>
                                    <xforms:help ref="$form-resources/control-3/help"/>
                                    <xforms:hint ref="$form-resources/control-3/hint"/>
                                    <xforms:alert ref="$fr-resources/detail/labels/alert"/>
                                </xforms:trigger>
                            </xhtml:td>
                        </xhtml:tr>
                    </fr:grid>
                </fr:section>
            </fr:body>
        </fr:view>
    </xhtml:body>
</xhtml:html>

On Thu, Mar 3, 2011 at 2:26 AM, Erik Bruchez <[hidden email]> wrote:
This is possible with CSS. See:

http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/styling

-Erik

On Tue, Mar 1, 2011 at 9:35 AM, Dr. Kevin Hunt <[hidden email]> wrote:
I have create a form in form-builder with several multiline text boxes. 

When the form is deployed, only three lines of the text is on the screen and the scroll bars have to be used to see the rest.
Is there a way to control the size of the multi-line text boxes?  I would like them to be at least 10lines


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




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




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