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

Having both RichFaces 4.5 and 5.x taglibs in one JSF project malfunction components auto completion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.3.x
    • 4.1.1.Final
    • jsf
    • None
    • Hide
      1. Create new blank JSF project without libraries
      2. Download RichFaces 4.5 libraries for a particular release: e.g. currently there is 4.5.0.Alpha1 in the JBoss staging repository
        1. The required libraries needed to be copied to already created project are: richfaces-5.0.0.Alpha2.jar, richfaces-components-a4j-4.5.0.Alpha1.jar, richfaces-components-rich-4.5.0.Alpha1.jar
        2. those libraries can be conveniently downloaded and extracted from richfaces-showcase-tomcat6.war, from e.g. here
        3. copy them to WebContent/WEB-INF/lib
      3. create new .xhtml file, e.g. index.xhtml under WebContent
      4. its content can look like:
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml"
        	xmlns:h="http://java.sun.com/jsf/html"
        	xmlns:rich="http://richfaces.org/rich"
        	xmlns:a4j="http://richfaces.org/a4j"
        	xmlns:r="http://richfaces.org">
        
        <h:head>
        </h:head>
        <h:body>
        	<h:form>
        		<rich:accordion switchType="client">
        			<rich:accordionItem header="first">
        				<rich:editor>
        				</rich:editor>
        			</rich:accordionItem>
        			<rich:accordionItem header="second">
        				<rich:calendar>
        				</rich:calendar>
        			</rich:accordionItem>
        			<rich:accordionItem header="third">
        				<rich:calendar />
        			</rich:accordionItem>
        			<rich:accordionItem header="fourth">
        				<a4j:commandButton value="do not click me" onclick="alert('I asked you to not click me! Are you blind ?')"/>
        			</rich:accordionItem>
        		</rich:accordion>
        	</h:form>
        </h:body>
        </html>
        
      5. Try write somewhere in the body e.g. a4j:c and trigger auto completion by hitting CTRL + SPACE
      6. See that it suggests you non existing a4j:calendar component.
      Show
      Create new blank JSF project without libraries Download RichFaces 4.5 libraries for a particular release: e.g. currently there is 4.5.0.Alpha1 in the JBoss staging repository The required libraries needed to be copied to already created project are: richfaces-5.0.0.Alpha2.jar , richfaces-components-a4j-4.5.0.Alpha1.jar , richfaces-components-rich-4.5.0.Alpha1.jar those libraries can be conveniently downloaded and extracted from richfaces-showcase-tomcat6.war, from e.g. here copy them to WebContent/WEB-INF/lib create new .xhtml file, e.g. index.xhtml under WebContent its content can look like: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <html xmlns= "http://www.w3.org/1999/xhtml" xmlns:h = "http://java.sun.com/jsf/html" xmlns:rich = "http://richfaces.org/rich" xmlns:a4j = "http://richfaces.org/a4j" xmlns:r = "http://richfaces.org" > <h:head> </h:head> <h:body> <h:form> <rich:accordion switchType= "client" > <rich:accordionItem header= "first" > <rich:editor> </rich:editor> </rich:accordionItem> <rich:accordionItem header= "second" > <rich:calendar> </rich:calendar> </rich:accordionItem> <rich:accordionItem header= "third" > <rich:calendar /> </rich:accordionItem> <rich:accordionItem header= "fourth" > <a4j:commandButton value= "do not click me" onclick= "alert( 'I asked you to not click me! Are you blind ?' )" /> </rich:accordionItem> </rich:accordion> </h:form> </h:body> </html> Try write somewhere in the body e.g. a4j:c and trigger auto completion by hitting CTRL + SPACE See that it suggests you non existing a4j:calendar component.
    • -

      When I create new JSF project, where I add RichFaces libraries needed to create RichFaces 4.5 (a special version which should be some kind of bridge between RichFaces 4 and 5) application:

      • richfaces-5.0.0.Alpha2.jar
      • richfaces-components-a4j-4.5.0.Alpha1.jar
      • richfaces-components-rich-4.5.0.Alpha1.jar

      Then if you have all supported namespaces included, auto completion triggered e.g. on <a4j: will provides also non existing components, like <a4j:calendar (it should be <rich:calendar )

      Please see steps to reproduce.

        1. a4jTagLibCtrlClick.png
          75 kB
          Juraj Húska
        2. jbtca.png
          37 kB
          Alexey Kazakov
        3. jbthtml.png
          16 kB
          Alexey Kazakov
        4. jsfTagProposals.png
          86 kB
          Juraj Húska
        5. myAutocompletion1.png
          55 kB
          Juraj Húska
        6. myAutocompletion2.png
          84 kB
          Juraj Húska
        7. myAutocompletion3.png
          104 kB
          Juraj Húska
        8. scr.png
          81 kB
          Alexey Kazakov
        9. scr2.png
          103 kB
          Alexey Kazakov
        10. scr3.png
          57 kB
          Alexey Kazakov
        11. taglib2.png
          59 kB
          Juraj Húska
        12. tagLibraries1.png
          31 kB
          Juraj Húska

            jmaury@redhat.com Jeff MAURY
            jhuska_jira Juraj Húska (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: