• xe:djDateTextBox

    By Neil J McMillan 1 decade ago

    Hi,

    For a control type of djDateTextBox, if this control is read only the date format is 2012-20-06, when it is editable the date format is 20-06-2012

    I want the date to be displayed dd-mm-yyyy in all instances. Tried using the converters on the control but I cannot get the format I want when it is read only. Perfect when editable.

    Is this a bug? Is there a special kind of magic I need to know of?

    Thanks

    Neil

     

     

    • I don't see an easy solution for this

      By Philippe Riand 1 decade ago

      Unfortunately... The Dojo controls are forcing the converters to the format expected by the dijit, and this is what is rendered in readonly mode as well. A proper fix would require a change in core Xpages with the addition of a new readOnlyConverter property.

      Can't you just render the control itself in readonly?

      • Thanks for the response

        By Neil J McMillan 1 decade ago

        ...not sure what you mean by 'render the control itself in readonly?', can you expand?

        • I see...

          By Neil J McMillan 1 decade ago

          what you mean. It is certainly better than how it is currently displaying, though not ideal. I guess we will have to live with it. Thank you.