Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-3690

Incorrect styleClass is applying for the tags, which use <span> wrapping

XMLWordPrintable

      1) Insert next source code into source path:

      <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>

      <html>
      <head>
      <style type="text/css">
      span

      { color: yellow; background-color:green; }

      </style>
      </head>
      <body style="text-align: center">
      <f:view>
      <h:form id="form1">
      <h:outputText value="Command Link"></h:outputText>
      <f:verbatim>Exit</f:verbatim>
      <a4j:commandLink action="None" value="Begining"/>
      <a4j:htmlCommandLink value="Going throw"></a4j:htmlCommandLink>
      <h:message for="form1" />
      <h:messages />
      </h:form>
      </f:view>
      </body>
      </html>

      2) Compare Visual representation in VPE to Server side (see screenshot-1).

      RESULT: This difference occurs due to wrapping with <span> tag of current tags. And our VPE renders this style OK. But browser doesn't wrap this tag in <span>.

        1. CommandLinkSpan.patch
          1 kB
        2. finalPatchForSeam10.patch
          15 kB
        3. JBIDE3690_project.zip
          10 kB
        4. screenshot-1.jpg
          screenshot-1.jpg
          49 kB

            syasenovich Svetlana Yasenovich (Inactive)
            yzhishko_jira Yura Zhishko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: