Bizzare problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Bizzare problem

Jeff Davis-31
Hi,

I'm creating a simple example using the DMV as the starting point. My View form is very straightforward, and contains this fragment for rendering my two fields:

                                        <xforms:group ref="reg:registration-login">
                                                <tr><td></td></tr>
                                                <tr>
                                                        <td>
                                                                <xforms:input incremental="true" ref="reg:username" class="dmv-last-name">
                                                                        <xforms:label ref="instance('resources-instance')/labels/username"/>
                                                                        <xforms:alert ref="instance('resources-instance')/alerts/username"/>
                                                                        <xforms:hint ref="instance('resources-instance')/hints/username"/>
                                                                        <xforms:help ref="instance('resources-instance')/help/username"/>
                                                                </xforms:input>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        <td>
                                                                <xforms:secret incremental="true" ref="reg:password" class="dmv-last-name">
                                                                        <xforms:label ref="instance('resources-instance')/labels/password"/>
                                                                        <xforms:alert ref="instance('resources-instance')/alerts/password"/>
                                                                        <xforms:hint ref="instance('resources-instance')/hints/password"/>
                                                                        <xforms:help ref="instance('resources-instance')/help/password"/>
                                                                </xforms:secret>
                                                        </td>
                                                </tr>
                                        </xforms:group>
                                </xforms:group>

I've create my schema for validation etc., and use a reference XML for "resources-instance", which seems to work fine. The issue I'm having is that, when rendered, their are some extranous <span> tags that appear which throw my alignment off. For instance, when rendered, this appears:

<tr>
  <td>
     <label class="xforms-label" for="xforms-element-28">Username:</label>
                 <span id="xforms-element-28" class="dmv-last-name xforms-control xforms-input xforms-incremental">
                  <span class="xforms-date-display"></span>
                  <input type="text" name="xforms-element-28" value="" class="xforms-input-input xforms-type-string">
                  <span class="xforms-showcalendar xforms-type-string"></span>
                 </span>
                  <label class="xforms-alert xforms-alert-active" for="xforms-element-28"></label>
  </td>
</tr>    
<tr>
   <td>
     <label class="xforms-label" for="xforms-element-30">Password:</label>
                 <input id="xforms-element-30" class="dmv-last-name xforms-control xforms-secret xforms-incremental" type="password" name="xforms-element-30" value="">
                 <label class="xforms-alert xforms-alert-active" for="xforms-element-30"></label>
        </td>
</tr>

I don't understand why it's putting in those <span> tags that refer to the xforms-date-display? In my XSD, both the username and password fields are defined identically.

Any help would be greatly appreciated -- I'm pulling out all my hair (what's left of it).

Thanks,

jeff



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Bizzare problem

Jeff Davis-13
It appears as though adding that <span class="xforms-date-display"><
/span> appears anytime a standard <input> control is specified. I checked the existing examples, and viewed the source.


Where is this managed through, the epilogue.xpl? I am pretty certain it's not intentionally added.

Thanks,

jeff



On 7/20/06, [hidden email] <[hidden email]> wrote:
Hi,

I'm creating a simple example using the DMV as the starting point. My View form is very straightforward, and contains this fragment for rendering my two fields:

                                        <xforms:group ref="reg:registration-login">
                                                <tr><td></td></tr>
                                                <tr>
                                                        <td>
                                                                <xforms:input incremental="true" ref="reg:username" class="dmv-last-name">
                                                                        <xforms:label ref="instance('resources-instance')/labels/username"/>
                                                                        <xforms:alert ref="instance('resources-instance')/alerts/username"/>
                                                                        <xforms:hint ref="instance('resources-instance')/hints/username"/>
                                                                        <xforms:help ref="instance('resources-instance')/help/username"/>
                                                                </xforms:input>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        <td>
                                                                <xforms:secret incremental="true" ref="reg:password" class="dmv-last-name">
                                                                        <xforms:label ref="instance('resources-instance')/labels/password"/>
                                                                        <xforms:alert ref="instance('resources-instance')/alerts/password"/>
                                                                        <xforms:hint ref="instance('resources-instance')/hints/password"/>
                                                                        <xforms:help ref="instance('resources-instance')/help/password"/>
                                                                </xforms:secret>
                                                        </td>
                                                </tr>
                                        </xforms:group>
                                </xforms:group>

I've create my schema for validation etc., and use a reference XML for "resources-instance", which seems to work fine. The issue I'm having is that, when rendered, their are some extranous <span> tags that appear which throw my alignment off. For instance, when rendered, this appears:

<tr>
  <td>
     <label class="xforms-label" for="xforms-element-28">Username:</label>
                 <span id="xforms-element-28" class="dmv-last-name xforms-control xforms-input xforms-incremental">
                                <span class="xforms-date-display"></span>
                                <input type="text" name="xforms-element-28" value="" class="xforms-input-input xforms-type-string">
                                <span class="xforms-showcalendar xforms-type-string"></span>
                 </span>
                                <label class="xforms-alert xforms-alert-active" for="xforms-element-28"></label>
  </td>
</tr>
<tr>
   <td>
     <label class="xforms-label" for="xforms-element-30">Password:</label>
                 <input id="xforms-element-30" class="dmv-last-name xforms-control xforms-secret xforms-incremental" type="password" name="xforms-element-30" value="">
                 <label class="xforms-alert xforms-alert-active" for="xforms-element-30"></label>
        </td>
</tr>

I don't understand why it's putting in those <span> tags that refer to the xforms-date-display? In my XSD, both the username and password fields are defined identically.

Any help would be greatly appreciated -- I'm pulling out all my hair (what's left of it).

Thanks,

jeff




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Bizzare problem

Erik Bruchez
Administrator
Jeff,

I hate to contradict you but while not optimal, this is intentional ;-)
All the input fields have placeholder for date handling.

This is produced by XFormsInputHandler.java.

-Erik

Jeff Davis wrote:

> It appears as though adding that <span class="xforms-date-display"><
>
>     /span> appears anytime a standard <input> control is specified. I
>     checked the existing examples, and viewed the source.
>
>
>
> Where is this managed through, the epilogue.xpl? I am pretty certain
> it's not intentionally added.
>
> Thanks,
>
> jeff
>
>
>
> On 7/20/06, * [hidden email] <mailto:[hidden email]>*
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi,
>
>     I'm creating a simple example using the DMV as the starting point.
>     My View form is very straightforward, and contains this fragment for
>     rendering my two fields:
>
>                                             <xforms:group
>     ref="reg:registration-login">
>                                                     <tr><td></td></tr>
>                                                     <tr>
>                                                             <td>
>                                                                     <xforms:input
>     incremental="true" ref="reg:username" class="dmv-last-name">
>                                                                             <xforms:label
>     ref="instance('resources-instance')/labels/username"/>
>                                                                             <xforms:alert
>     ref="instance('resources-instance')/alerts/username"/>
>                                                                             <xforms:hint
>     ref="instance('resources-instance')/hints/username"/>
>                                                                             <xforms:help
>     ref="instance('resources-instance')/help/username"/>
>                                                                     </xforms:input>
>
>                                                             </td>
>                                                     </tr>
>                                                     <tr>
>                                                             <td>
>                                                                     <xforms:secret
>     incremental="true" ref="reg:password" class="dmv-last-name">
>                                                                             <xforms:label
>     ref="instance('resources-instance')/labels/password"/>
>                                                                             <xforms:alert
>     ref="instance('resources-instance')/alerts/password"/>
>                                                                             <xforms:hint
>     ref="instance('resources-instance')/hints/password"/>
>                                                                             <xforms:help
>     ref="instance('resources-instance')/help/password"/>
>                                                                     </xforms:secret>
>
>                                                             </td>
>                                                     </tr>
>                                             </xforms:group>
>                                     </xforms:group>
>
>     I've create my schema for validation etc., and use a reference XML
>     for "resources-instance", which seems to work fine. The issue I'm
>     having is that, when rendered, their are some extranous <span> tags
>     that appear which throw my alignment off. For instance, when
>     rendered, this appears:
>
>     <tr>
>       <td>
>          <label class="xforms-label"
>     for="xforms-element-28">Username:</label>
>                      <span id="xforms-element-28" class="dmv-last-name
>     xforms-control xforms-input xforms-incremental">
>                                     <span
>     class="xforms-date-display"></span>
>                                     <input type="text"
>     name="xforms-element-28" value="" class="xforms-input-input
>     xforms-type-string">
>                                     <span class="xforms-showcalendar
>     xforms-type-string"></span>
>                      </span>
>                                     <label class="xforms-alert
>     xforms-alert-active" for="xforms-element-28"></label>
>       </td>
>     </tr>
>     <tr>
>        <td>
>          <label class="xforms-label"
>     for="xforms-element-30">Password:</label>
>                      <input id="xforms-element-30" class="dmv-last-name
>     xforms-control xforms-secret xforms-incremental" type="password"
>     name="xforms-element-30" value="">
>                      <label class="xforms-alert xforms-alert-active"
>     for="xforms-element-30"></label>
>             </td>
>     </tr>
>
>     I don't understand why it's putting in those <span> tags that refer
>     to the xforms-date-display? In my XSD, both the username and
>     password fields are defined identically.
>
>     Any help would be greatly appreciated -- I'm pulling out all my hair
>     (what's left of it).
>
>     Thanks,
>
>     jeff
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Bizzare problem

Jeff Davis-13
In reply to this post by Jeff Davis-13
Never mind -- I figured out a work-around.

jeff

On 7/20/06, Jeff Davis <[hidden email]> wrote:
It appears as though adding that <span class="xforms-date-display"><
/span> appears anytime a standard <input> control is specified. I checked the existing examples, and viewed the source.


Where is this managed through, the epilogue.xpl? I am pretty certain it's not intentionally added.

Thanks,

jeff



On 7/20/06, [hidden email] <[hidden email]> wrote:
Hi,

I'm creating a simple example using the DMV as the starting point. My View form is very straightforward, and contains this fragment for rendering my two fields:

                                        <xforms:group ref="reg:registration-login">
                                                <tr><td></td></tr>
                                                <tr>
                                                        <td>
                                                                <xforms:input incremental="true" ref="reg:username" class="dmv-last-name">
                                                                        <xforms:label ref="instance('resources-instance')/labels/username"/>
                                                                        <xforms:alert ref="instance('resources-instance')/alerts/username"/>
                                                                        <xforms:hint ref="instance('resources-instance')/hints/username"/>
                                                                        <xforms:help ref="instance('resources-instance')/help/username"/>
                                                                </xforms:input>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        <td>
                                                                <xforms:secret incremental="true" ref="reg:password" class="dmv-last-name">
                                                                        <xforms:label ref="instance('resources-instance')/labels/password"/>
                                                                        <xforms:alert ref="instance('resources-instance')/alerts/password"/>
                                                                        <xforms:hint ref="instance('resources-instance')/hints/password"/>
                                                                        <xforms:help ref="instance('resources-instance')/help/password"/>
                                                                </xforms:secret>
                                                        </td>
                                                </tr>
                                        </xforms:group>
                                </xforms:group>

I've create my schema for validation etc., and use a reference XML for "resources-instance", which seems to work fine. The issue I'm having is that, when rendered, their are some extranous <span> tags that appear which throw my alignment off. For instance, when rendered, this appears:

<tr>
  <td>
     <label class="xforms-label" for="xforms-element-28">Username:</label>
                 <span id="xforms-element-28" class="dmv-last-name xforms-control xforms-input xforms-incremental">
                                <span class="xforms-date-display"></span>
                                <input type="text" name="xforms-element-28" value="" class="xforms-input-input xforms-type-string">
                                <span class="xforms-showcalendar xforms-type-string"></span>
                 </span>
                                <label class="xforms-alert xforms-alert-active" for="xforms-element-28"></label>
  </td>
</tr>
<tr>
   <td>
     <label class="xforms-label" for="xforms-element-30">Password:</label>
                 <input id="xforms-element-30" class="dmv-last-name xforms-control xforms-secret xforms-incremental" type="password" name="xforms-element-30" value="">
                 <label class="xforms-alert xforms-alert-active" for="xforms-element-30"></label>
        </td>
</tr>

I don't understand why it's putting in those <span> tags that refer to the xforms-date-display? In my XSD, both the username and password fields are defined identically.

Any help would be greatly appreciated -- I'm pulling out all my hair (what's left of it).

Thanks,

jeff




--
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
ObjectWeb mailing lists service home page: <a href="http://www.objectweb.org/wws" title="http://www.objectweb.org/wws" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws