• xe:eventHandler Control Error

    By Ryan Buening 1 decade ago

    Designer throws an error if I try the code below. "The unknown tag xe:eventHandler cannot be used as a control."

    Designer automatically puts the <xe:eventHandler> control in the source if I select an element to partial onBlur for instance.

     

    &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br/>
    &lt;xp:view<br/>
    xmlns:xp=&quot;http://www.ibm.com/xsp/core&quot;<br/>
    xmlns:xe=&quot;http://www.ibm.com/xsp/coreex&quot;&gt;<br/>
    &lt;xe:djTextBox<br/>
    &nbsp; id=&quot;djTextBox1&quot;&gt;<br/>
    &nbsp; &lt;xe:eventHandler<br/>
    &nbsp;&nbsp; event=&quot;onBlur&quot;<br/>
    &nbsp;&nbsp; submit=&quot;true&quot;<br/>
    &nbsp;&nbsp; refreshMode=&quot;partial&quot;<br/>
    &nbsp;&nbsp; refreshId=&quot;refreshPanel&quot;&gt;<br/>
    &nbsp; &lt;/xe:eventHandler&gt;<br/>
    &lt;/xe:djTextBox&gt;<br/>
    &lt;/xp:view&gt;</div>
    

     

    • Known Issue

      By Darin Egan 1 decade ago

      Ryan, this is a known issue. It is caused by adding an event to a control from the Extension Library. What happens is the "eventHandler" tag is incorrectly associated with the "xe" namespace rather than the correct "xp". At present, the workaround is to fix this in the Source view as follows:

       

      &lt;xe:djTextBox&nbsp;id=&quot;djTextBox1&quot;&gt;
      
      <span style="font-family:courier new,courier,monospace;">&lt;<span style="color:#008000;"><strong>xp</strong></span>:eventHandler&nbsp;event=&quot;onBlur&quot;&nbsp;submit=&quot;true&quot;&nbsp;refreshMode=&quot;partial&quot;&nbsp;refreshId=&quot;refreshPanel&quot;&gt;</span></div>
      
      <span style="font-family:courier new,courier,monospace;">&lt;/<span style="color:#008000;"><strong>xp</strong></span>:eventHandler&gt;</span></div>
      
      &lt;/xe:djTextBox&gt;
      
      &nbsp;
      

      This has been raised and addressed, see SPR (DEGN8LFE64).