<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Alexey,<div><br></div><div>Well, nope, it did not fix my problem.. Are we talking about the addition of <font class="Apple-style-span" face="Menlo" style="font-size: 11px;">ValidationErrorManager#registerPreferenceInfo()</font><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "> </span>?</div><div>I implemented my own IPreferenceInfo as below (similar to the CDICoreValidator):</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span style="color: #931066"><b><span class="Apple-tab-span" style="white-space:pre">        </span>class</b></span> JaxrsPreferenceInfo <span style="color: #931066"><b>implements</b></span> IPreferenceInfo{</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(119, 119, 119); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span>@Override</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #931066"><b>public</b></span> String getPreferencePageId() {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(33, 32, 200); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span style="color: #931066"><b>return</b></span><span style="color: #000000"> </span><i>PREFERENCE_PAGE_ID</i><span style="color: #000000">;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(119, 119, 119); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span>@Override</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #931066"><b>public</b></span> String getPropertyPageId() {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(33, 32, 200); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span style="color: #931066"><b>return</b></span><span style="color: #000000"> </span><i>PROPERTY_PAGE_ID</i><span style="color: #000000">;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(119, 119, 119); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span>@Override</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">                </span><span style="color: #931066"><b>public</b></span> String getPluginId() {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">                        </span><span style="color: #931066"><b>return</b></span> JBossJaxrsCorePlugin.<span style="color: #2120c8"><i>PLUGIN_ID</i></span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px"><span class="Apple-tab-span" style="white-space:pre">                </span><br class="webkit-block-placeholder"></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">        </span>}</div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><br></div><div><br><div><div apple-content-edited="true">
But I keep having problem messages in the Problems view after the JAX-RS validation has been disabled.</div><div apple-content-edited="true"><br></div><div apple-content-edited="true">What am I missing ?</div><div apple-content-edited="true"><br></div><div apple-content-edited="true">Best regards,</div><div apple-content-edited="true">/Xavier<br><br><br>
</div>
<br><div><div>On Sep 25, 2012, at 10:42 PM, Alexey Kazakov wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I've committed the fix for
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <a href="https://issues.jboss.org/browse/JBIDE-12595">https://issues.jboss.org/browse/JBIDE-12595</a>
      to trunk. Please, let me know if you still have some problems with
      it.<br>
      <br>
      On 09/25/2012 01:28 PM, Xavier Coulon wrote:<br>
    </div>
    <blockquote cite="mid:1F0B076A-1447-4B6D-918C-BE8F94F51B5E@redhat.com" type="cite">Hi Alexey,
      <div><br>
      </div>
      <div>Great ;-)</div>
      <div><br>
      </div>
      <div>Thanks again for your help !</div>
      <div><br>
      </div>
      <div>Best regards,<br>
        <div>
          /Xavier<br>
            <br>
            <br>
          
        </div>
        <br>
        <div>
          <div>On Sep 25, 2012, at 10:20 PM, Alexey Kazakov wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
            <div bgcolor="#FFFFFF" text="#000000">
              <div class="moz-cite-prefix">Ah, sorry Xavier, now I got
                it.<br>
                This is a problem with integration between Common
                Validation framework and WST.<br>
                I do not see any way to hook into validation
                "disablement" but I don't think we have to "fix" it in
                that way.<br>
                The problem is that we register ValidatorManager as a
                WST validator and it has its own marker type ID. But our
                JBT validators (CDI, JSF, ...) which are not WST
                validators and used as plugins for
                ValidationErrorManager have their own IDs which are not
                available for WST validation builder.<br>
                So we need to register our validators IDs as problem
                types for WST validation builder.<br>
                I will try to fix. <br>
                <br>
                On 09/25/2012 12:52 AM, Xavier Coulon wrote:<br>
              </div>
              <blockquote cite="mid:58682D27-61BB-46BB-9CC1-1E2F26C4087D@redhat.com" type="cite">Hi Alexey,
                <div><br>
                </div>
                <div>Yes, I use the
                  ValidationErrorManager.addProblem(..) methods and I
                  remove the existing markers when running a new
                  validation on a resource.&nbsp;</div>
                <div>But my question was:&nbsp;how can I hook into
                  the&nbsp;validation "disablement" to remove all existing
                  markers at the same time ? Because for now, after
                  validation has been disabled, the markers are still in
                  place and there's only one way to remove them:
                  manually...</div>
                <div><br>
                </div>
                <div>Thanks.</div>
                <div><br>
                </div>
                <div>Best regards,&nbsp;</div>
                <div>
                  <div> <span class="Apple-style-span" style="border-collapse: separate; font-family:
                      Helvetica; font-style: normal; font-variant:
                      normal; font-weight: normal; letter-spacing:
                      normal; line-height: normal; orphans: 2;
                      text-align: -webkit-auto; text-indent: 0px;
                      text-transform: none; white-space: normal; widows:
                      2; word-spacing: 0px;
                      -webkit-border-horizontal-spacing: 0px;
                      -webkit-border-vertical-spacing: 0px;
                      -webkit-text-decorations-in-effect: none;
                      -webkit-text-size-adjust: auto;
                      -webkit-text-stroke-width: 0px; font-size: medium;
                      ">/Xavier<br>
                      <br>
                      <br>
                    </span> </div>
                  <br>
                  <div>
                    <div>On Sep 24, 2012, at 10:43 PM, Alexey Kazakov
                      wrote:</div>
                    <br class="Apple-interchange-newline">
                    <blockquote type="cite">
                      <div>Hi,<br>
                        <br>
                        It depends on how you create problem markers. If
                        you create markers using
                        ValidationErrorManager.addError(...) then you
                        have to remove the markers before validating the
                        resource. You can use
                        ValidationErrorManager.removeAllMessagesFromResource(IResource)<br>
                        <br>
                        We use these methods in our CDI validator.<br>
                        <br>
                        <br>
                        On 09/24/2012 12:26 PM, Xavier Coulon wrote:<br>
                        <blockquote type="cite">Hello Alexey,<br>
                        </blockquote>
                        <blockquote type="cite"><br>
                        </blockquote>
                        <blockquote type="cite">I have another question
                          common-validation that I use for the JAX-RS
                          tooling. This is in relation with <a moz-do-not-send="true" href="https://issues.jboss.org/browse/JBIDE-12595">https://issues.jboss.org/browse/JBIDE-12595</a>
                          ("Disabling JAX-RS validator doesn't affect
                          resources validation"). As Jaroslav reported,
                          when a user disables the JAX-RS validation,
                          the problem markers (which are now persistent)
                          are not removed, which is not the expected
                          behavior. The only way to remove them is to
                          delete them from the "Problems" view.<br>
                        </blockquote>
                        <blockquote type="cite"><br>
                        </blockquote>
                        <blockquote type="cite">When validation is
                          disabled, is there any call to a method that I
                          could override to remove the JAX-RS problem
                          markers on all the resources of the project ?<br>
                        </blockquote>
                        <blockquote type="cite">Or, how do you handle
                          that case in the CDI tooling ?<br>
                        </blockquote>
                        <blockquote type="cite"><br>
                        </blockquote>
                        <blockquote type="cite"><br>
                        </blockquote>
                        <blockquote type="cite">Thanks<br>
                        </blockquote>
                        <blockquote type="cite">Best regards,<br>
                        </blockquote>
                        <blockquote type="cite">/Xavier<br>
                        </blockquote>
                        <blockquote type="cite"><br>
                        </blockquote>
                        <blockquote type="cite"><br>
                        </blockquote>
                        <blockquote type="cite"><br>
                        </blockquote>
                        <br>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div></div></body></html>