title: Conditionally Enable Custom Converter based on a Users Input
body: <p>I would like to conditionally run a custom converter. I have an XPages that handles editing and new data on the same page. The user selected a radio button to edit or create a new item.</p>
  
  <p>The input fields are shared between these two functions. Upon page load I do not know what the user will do so I cannot use the "Loaded" property of the converter.</p>
  
  <p>I need to format the data in this format '$900,000'.  <em>Note that there is no cents in my required format.</em>  </p>
  
  <p>The built in converter for numbers or currency fails me because no matter what I do, it <strong>always</strong> add the cents. I assume that this is a bug in XPages. It doesn't matter if I say "Integer Only" or set the Maximum Fraction Digits to zero. The cents do not go away.</p>
  
  <p>I have a custom converter that works fine for me, but only works when it is recalculated once, and fails when recalculated. I have tried setting the partial refresh updates to "Do not validate or update data" and this works, but breaks other parts of the page where I needs the updates to be enabled.</p>
  
  <p>This application is soon to be deployed and it is too late for me to re-engineer the whole page structure to solve this issue -- too many moving parts. All I need to do to please the testers it to get rid of the cents (xxxx.00) that are added to the value, and still have everything else work. </p>
  
  <p>My problem is singular, but my questions are tri-fold. How can I:</p>
  
  <ul>
  <li>Get the built-in currency converter to remove cents the way it should? Or</li>
  <li>Get the custom converter to be enabled ONLY based on a user-entered value? Or</li>
  <li>Help me think of a different approach to solving this issue?</li>
  </ul>