OpenNTF.org - XPages Extension Library
XPages Extension LibraryOpenDocument[/projects/pmt.nsf/ProjectView?ReadForm&Query=]

My Links (Not logged in)
User Name Password
Hosted by Prominic.NET

   Project: XPages Extension Library (Managed by Philippe Riand, Niklas Heidloff, Dave Delay, Akihiro Kosugi, Maire Kehoe, Tony McGuckin, John Piermarini, Martin Donnelly, James Quill, Darin Egan, Padraic Edwards, Andrejus Chaliapinas, Lorcan McDonald, Simon McLoughlin, Paul Hannan)
Actions:


Subject
 djNumberTextBox always displaying as double
Categories
 
Posted by
 patrick picard on 12/09/2010 at 10:02 AM
Details

Hi

I am using the djNumberTextBox to allow the user to input an integer between 1 and 120, however, it always shows as a double in read mode.

Is it possible to change the display to show as integer?

Also, is it possible to do validation only if a value is entered. Basically, I want to allow values between 1 and 120 or an empty value..

        <xe:djNumberTextBox value="#{ringDocument.pretime}"
                    id="pretime">
                    <xp:this.converter>
                        <xp:convertNumber type="number" integerOnly="true">
                        </xp:convertNumber>
                    </xp:this.converter>

                    <xp:this.constraints>
                        <xe:djNumberConstraints max="120" min="1">
                        </xe:djNumberConstraints>
                    </xp:this.constraints>
                </xe:djNumberTextBox>

Modification history
Entered 09-Dec-2010 10:02 by patrick picard. Last Modified <none> by Niklas Heidloff.


Anonymous