- This topic has 3 replies, 2 voices, and was last updated 13 years, 8 months ago by support-joy.
-
AuthorPosts
-
gonzaljoMemberHi
Using MyEclipse 9.0 the content assiat doesn’t list our custom libraries.
When starting typing a a tag <ted:l and press ctr-space no suggestion will be displayed. But if I enter the tag manually without any attributes like <ted:label /> and set the cursor inside the tag an press ctrl-space then all attributes for this tag will be displayed correctly.
Regards
José-AntonioMyEclipse Enterprise Workbench Version: 9.0 Build id: 9.0-20110318
support-joyMemberJosé-Antonio
Can you answer below queries –
1. Can you copy and paste your installation details? Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation details
2. You mention that content assist does not work for custom tags, can you clarify the following? Have you added the relevant custom taglib to your .xhtml? Verify that the custom tag lib is added as below<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
3. Can you attach a screenshot of the reference to your custom taglib and also the issue you are facing? This would help me get a visual.
4. I suggest you do the following – (i) verify the above block of code is added to your .xhtml file and check if <h:inputText shows up with content assist. (ii) Next verify the custom taglib uri is correct
gonzaljoMemberJoy
*** Date: Dienstag, 5. April 2011 11:32 Uhr MESZ ** System properties: OS=WindowsVista OS version=6.1.0 Java version=1.6.0_13 *** MyEclipse details: MyEclipse Enterprise Workbench Version: 9.0 Build id: 9.0-20110318 *** Eclipse details: MyEclipse Enterprise Workbench Version: 9.0 Build id: 9.0-20110318 Eclipse startup command=-os win32 -ws win32 -arch x86_64 -showsplash -launcher C:\Users\gonzalez_j\AppData\Local\Genuitec\Profiles\MyEclipse 9 2\myeclipse.exe -name Myeclipse --launcher.library C:\Users\gonzalez_j\AppData\Local\Genuitec\Profiles\MyEclipse 9 2\../../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201102231800\eclipse_3213.dll -startup C:\Users\gonzalez_j\AppData\Local\Genuitec\Profiles\MyEclipse 9 2\../../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -exitdata 17c0_5c -install C:\Users\gonzalez_j\AppData\Local\Genuitec\Profiles\MyEclipse 9 2 -configuration C:\Users\gonzalez_j\AppData\Local\Genuitec\Profiles\MyEclipse 9 2\configuration -vm C:\Users\gonzalez_j\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin\javaw.exe
2. The custom taglib are added to the xhtml files. They also would be found because I’ve got content assist for the attributes, but not for the tag names.
<?xml version="1.0" encoding="UTF-8"?> <!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:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:c="http://java.sun.com/jstl/core" xmlns:ted="http://www.deron.com/topease/tags/display" >
<?xml version="1.0" encoding="UTF-8"?> <taglib version="2.1" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee web-jsptaglibrary_2_1.xsd"> <description>This library provied TopEase specific tags to create an output in html pages.</br>Use xmlns:ted="http://www.deron.com/topease/tags/display" to set up your xhtml page.</description> <display-name>TopEase Display Tag Library</display-name> <tlib-version>1.0</tlib-version> <short-name>ted</short-name> <uri>http://www.deron.com/topease/tags/display</uri> <tag> <name>label</name> <tag-class>javax.faces.webapp.UIComponentELTag</tag-class> <body-content>empty</body-content> <description>Displays the name and the icon of a TEObject instance</description> <attribute> <name>id</name> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <description>Flag indicating whether or not this component should be rendered</description> <name>rendered</name> <rtexprvalue>true</rtexprvalue> <deferred-value> <type>boolean</type> </deferred-value> </attribute> <attribute> <description>The name and icon of this object will be rendered. Valid object are instances of ModelObject, ModelObjectHandler and AssociationHandler</description> <name>modelObject</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <deferred-value> <type>java.lang.Object</type> </deferred-value> </attribute> <attribute> <description>Set if the icon should be rendered</description> <name>renderIcon</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <deferred-value> <type>boolean</type> </deferred-value> </attribute> <attribute> <description>How should the language be resolved. Possible values are 'withFallback', noFallback' or 'default'. withFallback = Current language and if empty the the default entry noFallback = Current language default = Default language If not set the value of the ModelObjectHandler will be used (by default withFallback)</description> <name>languageResolving</name> <rtexprvalue>yes</rtexprvalue> <deferred-value> <type>java.lang.Object</type> </deferred-value> </attribute> <attribute> <description>Set to true an ModelObject.NULL or null will not be rendered. Default is true</description> <name>hideNullValue</name> <rtexprvalue>true</rtexprvalue> <deferred-value> <type>boolean</type> </deferred-value> </attribute> <attribute> <description>If set, an icon to start the download will be rendered.</description> <name>renderDownloadIcon</name> <rtexprvalue>false</rtexprvalue> <type>boolean</type> </attribute> <attribute> <description>A boolean attribute specifying if the label should use the model text color property. By default this is false, i.e. the text color will be ignored.</description> <name>hasTextColor</name> <rtexprvalue>false</rtexprvalue> <type>boolean</type> </attribute> </tag>
The URI is correct all works fine in 8.6 but not in 9.0.
Regards
José-Antonio
support-joyMemberJosé-Antonio,
Thank you for your clarifications. I am afraid, I do not know if this is a valid uri – http://www.deron.com/topease/tags/display. Have you added this as an external tld? The content assist works for tag names and tag attributes. If you type <h: and press ctrl + space, it would prompt you the tag names. Can you create a sample project and send it to support@genuitec.com along with the external tld files. Please refer this weblink and add ATTN:Joy in the subject, this would help in quick tracing and help me investigate this issue further.
-
AuthorPosts