13 Replies Latest reply on Apr 10, 2011 1:01 PM by undermanager

    Odd behavior NetBeans & RF 4.0 M4

    ilya40umov

      Hello Guys,

       

      I'm trying to start a new project using NetBeans 6.9.1 and RF 4.0 M4. But I found that NetBeans xhtml editor worked very strange with a4j and rich tags. I guess that the problem is in the taglib files but it's also possible that the problem is in NetBeans.

       

      Now about what I actually have. NetBeans can read and recognize the taglib files from jar I have added to project. And It kindly helps me and shows attributes of tags. But unfortunately the list of attributes is not full!

      For example rich:dataTable tag has only 8 attributes and it looks like IDE does not know anything about valueor var attributes. I opened rich.taglib.xml and found the following:

       

       

      <tag>

              <tag-name>dataTable</tag-name>

              <component>

                  <description>@author Anton Belevich</description>

                  <component-type>org.richfaces.DataTable</component-type>

                  <renderer-type>org.richfaces.DataTableRenderer</renderer-type>

                  <handler-class>org.richfaces.taglib.DataTableHandler</handler-class>

              </component>

              <attribute>

                  <description>The value binding expression used to wire up this component to a component property of a JavaBean class</description>

                  <icon />

                  <name>binding</name>

                  <type>javax.faces.component.UIComponent</type>

              </attribute>

              <attribute>

                  <name>filterVar</name>

                  <type>java.lang.String</type>

              </attribute>

              <attribute>

                  <description>The component identifier for this component. This value must be unique within the closest parent component that is a naming container.</description>

                  <display-name>Component Identifier</display-name>

                  <icon />

                  <name>id</name>

                  <type>java.lang.String</type>

              </attribute>

              <attribute>

                  <name>noDataLabel</name>

                  <type>java.lang.String</type>

              </attribute>

              <attribute>

                  <description>Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true.</description>

                  <display-name>Rendered Flag</display-name>

                  <icon />

                  <name>rendered</name>

                  <type>boolean</type>

              </attribute>

              <attribute>

                  <name>selection</name>

                  <type>java.util.Collection</type>

              </attribute>

              <attribute>

                  <name>sortMode</name>

                  <type>org.richfaces.model.SortMode</type>

              </attribute>

              <attribute>

                  <name>sortPriority</name>

                  <type>java.util.Collection</type>

              </attribute>

          </tag>


       

      And this tag definition does not really contains a lot of attributes which has to.


      Please, tell me, is it an IDE problem or RF 4.0 M4 is not compatible with NetBeans 6.9.1 out-of-the-box?


      P.S. I also tried to create a maven project in NetBeans and had the same results. Xhtml editor worked strange.


      Thanks for your future answers!

       

       

      Message was edited by: Ilya Sorokoumov