Custom taglib: tags not rendered in visual editor

Hi!
I have created a custom tag library with jsf tags. I have created one tag that extends the CoreSelectOneChoiceTag. When I drag this tag on a page, at runtime it works completely as desired.
Only, in the visual editor the tag is invisible. With the tag library properties I have specified that the tags should be executed. In the source and structure windows the tags is visible (of course).
What influences how a tag is rendered in the visual editor, and what content is rendered?
Jeroen van Veldhuizen

I know there's a recent release with a visual editor problem, but I'm not sure which one it is. This thread says you need a fresh install? Can you try that?
Re: ADF Faces tutorial/code sample for data table?

Similar Messages

  • Can't get JSF tags to execute in Visual Editor (JDeveloper 10.1.3.0.3.3412)

    Hi,
    I have searched this discussion forum for this problem and apparently I can't find any solution / tried a few but none works. I am feeling quite frustrated about this as on Manning's "JavaServer Faces in Action" online extension gave real examples in JDeveloper that looked so attractive, but in reality it doesn't work!
    However, I could get 10.1.2 to associate with JSF by following online's howto's, but that would lose all the cool tools that come with 10.1.3 EA...
    I would appreciate it if anyone can provide a clue as how to make JSF tags execute in the Visual Editor...

    Hi shay,
    I discover that the problem was with my JSF source. I was importing from a source file (WAR) that comes with the book "JavaServer Faces in Action", when I import the file and try to open, I get a few exceptions shown on the console window, and the JSF tags were all unexecuted.
    And as I create a new JSF file on my own in JDeveloper, everything was fine...

  • Custom faces component not rendering at runtime

    I'm new to the JSF Framework. So I thought that starting a custom component/tag library would be a good start to jump in and get familiar with it. My goal is to have a project separate from my web-apps that I could compile into a jar which I could include wherever I needed it. So I started simple with two projects: the first is the custom tags project, the second is a simple webapp using jsf / facelets / seam which I am running in a Tomcat 5.5 container.
    I've included the complete projects in a zip file here: http://burtoncarl.com/share/CustomProof.zip
    I build the components project with ant and include it in the /WEB-INF/lib folder of the web project. But when I open a browser to the web app it doesn't render my tag at all. It leaves my new tag in the rendered HTML which leads me to believe that the parser isn't matching my taglib or something.
    And of course I get no errors in any of the log files.
    ANY help would be appreciated...

    It sounds like the component library is not registered on the page. Assuming you are using facelets, did you define an xmlns for it? E.g. see the definition for the tomahawk library below within the facelet xhtml file:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
          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:t="http://myfaces.apache.org/tomahawk">
        <!-- facelets view code goes here -->
    </html>You also need to tell facelets about the library in the web.xml:
        <!-- Additional tag libaries for facelets -->
        <context-param>
            <param-name>facelets.LIBRARIES</param-name>
            <param-value>
                /WEB-INF/tomahawk.taglib.xml
            </param-value>
        </context-param>

  • Jdeveloper 10.1.3.3.0.4157  ADF faces  Do not render in visual editor

    The ADF Faces Components do not display in the visual editor
    The code window shows all these features present and properly coded
    These components are from the ADF Faces Core page of the Component Pallete
    I tried quitting and re-starting jdeveloper , to no avail
    I placed an af:panelPage on h:form and typed in a title-(blank visual editor)
    I placed an ObjectImage and placed it on the branding facet
    I bound a logo.image to this component - (still blank visual editor)
    All of this insertions into the form are recorded in the code window
    but do not appear in the Visual Designer.
    Using jdeveloper10.1.2.2.0.4157
    JDK 1.5.0_15
    windows xp professional
    The example project is from the Book:
    Oracle JDeveloper 10g for Forms & PL/SQL Developers

    Thank you for your reply.
    On jdevelper startup I get the following message:
    ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
    For no Reason at all,(except for starting and shutting down jdeveloper)
    I am now getting a view: An Outline with tags in order , but not a simulation
    of a web page???But a correct development structure with tags/values identified.
    there are many libraries in the properties page , I'm a newbie so wouldn't
    know if any of these would help?

  • Shipping tags not rendering in invoice

    Hi,
    I'm having trouble getting the {tag_addressshipping}, {tag_addressbilling} and {tag_shippinginstructions} tags to render anything in my customer invoice. This is a basic ecommerce purchase and even after setting the checkout form page and invoice back to the default these tags are not displaying what is entered.
    The data entered into the shipping and billing fields do come up in the workflow notification sent to us from the purchase (but only in the "summary of web form submission" section, not the copy of the invoice).
    Is there anything I might have accidentally changed that would prompt these tags not to contain the data entered?
    help much appreciated.
    thanks,

    Thanks for replying. I'm going to outline what I've done in case anyone else is looking to solve a similar problem.
    We were looking to provide two payment options - CC (through paypal) and offline EFT.
    The invoice tags weren't rendering because I tried to set up the "Process Offline" option in the payment gateway section to tackle the latter of these payment methods. The Process Offline method, despite not storing credit card details in BC, requires credit card details to be entered. I assume this is so that it can encode them to send in the PDF.
    Instead, what I've done is change the payment gateway back to the paypal payflow, and removed all payment options in the registration template except "Paypal" and "COD". I've relabelled COD as EFT in the html. In this way no credit card details need to be submitted and an invoice is sent with all the correct details rendering.
    I have another question in regards to changing the backend status for an order depending on the payment method, but I'll start a different discussion as it's not directly related to this problem.
    thanks.

  • h:messages tag not rendering right

    Hi All,
    I have an <h:messages /> tag in my jsf page and it's not rendering correctly.
    This is the tag in my page, verbatim:
    <h:messages />
    And this is the output when validation errors are created:
    Validation Error: "lastName": Value is required.      Validation Error: "firstName": Value is required.
    That's it. No List, no nothing, just space-delimited validation errors!
    When I specifiy layout="table", things are fine, but specifying layout="list" doesn't solve the problem.
    I'm using v1.1 of the jsf implementation.
    What gives?
    Thanks,
    John

    I got the exact same problem.. Is this already logged as a bug in JSF?

  • JSF tags not rendering

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <html>
       <body>
                           <p>1111111111</p>
          <f:view>
                      <p>2222222222</p>
                       <h:outputText value="HIIIIII how r u"/>        
           </f:view>
       </body>
    </html>This is my first JSF application
    I am using JSF1.2,JDK 6,Tomcat 6.
    Done all the configuration as per the tutorials
    The page prints 111111111 and also 22222222222 . but doesnt print "HIIIIII how r u"
    There is no error log in tomcat.
    Since 222222 is also printing , that means server is able to identify <f:view>.
    can anyon giv some idea why its not rendering the jsf tags

    Sorry, can't reproduce your problem here. The given code snippet runs as expected here. Your problem lies somewhere else. Try redoing the tutorials. Which ones have you checked by the way?

  • Custom JSF tag not working HELP!!!!

    We have a custom tag to display the list of attachments for a a selected entity. So for example if there are entities A, B, C...each entity can have none or 1 or more attachments. When you go to the details page you see the list of attachments if any and an image against it that can be clicked to delete the attachment.
    Here is the tag:
    <at:attachmentTable value="#{Entity.attachmentList}" remove="#{Entity.removeAttachment}" />
    Here is the renderer code for the delete the attachment part of the tag:
    private void writeRemove(UIComponent component, FacesContext ctx, ResponseWriter writer, String clientId, Attachment attachment, String parentId) throws IOException {
              writer.startElement("td", component);
              writer.startElement("a", component);
              writer.writeAttribute("href", "#", null);
              writer.writeAttribute("onmousedown", "confirmationDelete(this, 'attachment');", null);
              String encoding = "if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('"+ parentId + "'),{'" + clientId + "':'" + clientId + "','attachmentId':'" + attachment.getId().toString() +"'},'');}return false";
              writer.writeAttribute("onclick",encoding, null);
              writer.writeAttribute("type", "submit", null);
              writer.startElement("img", component);
              writer.writeAttribute("src", "/acw/images/removeline.gif", null);
              writer.writeAttribute("alt", "", null);
              writer.endElement("img");
              writer.endElement("a");
              writer.endElement("td");
    Here is the setProperties method for the tag:
         protected void setProperties(UIComponent component) {
              FacesContext context = FacesContext.getCurrentInstance();
              super.setProperties(component);
              setProperty(component, "value", value);
              setProperty(component, "parameterValue", parameterValue);
              setProperty(component, "parameterName", parameterName);
              if (remove != null && UIComponentTag.isValueReference(remove)) {
                   MethodBinding method = FacesContext.getCurrentInstance().getApplication().createMethodBinding(remove, new Class[] {});
                   UICommand command = (UICommand)component;
                   command.setAction(method);
    Here is how the tag renders as an <a> html tag:
    a href="#" onmousedown="confirmationDelete(this, 'attachment');" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('entity'),{'entity:j_id_jsp_1417973014_25':'entity:j_id_jsp_1417973014_25','attachmentId':'10326'},'');}return false" type="submit"><img src="/images/removeline.gif" alt="" /></a>
    Here is what is heppening:
    When you click on the image to delete the attachment, the control somehow nevers goes to the removeAttachement method in the backing bean. As you can see in the tag above (remove="#{Entity.removeAttachment}" ).
    I have tried everything and at this point am not able to see what is going worng. Anyone who can see the obvious that I am missing please please do point it to me. I am sort of desperate for a solution....
    Thanks.
    TD

    Anchors don't have a type="submit". You should be basing this on an h:commandLink. In fact you could probably rewrite it all as an XML tag that just generates an h:commandLink.

  • Contents of HTML title Tag not rendering in my AIR HTML component

    I have an Air Application that uses a HTML Component. The HTML page that the component is rendering includes images with title tags. The tags render fine outside the Air Application, but when run in the AIR application, they do not render. Any help when this issue would be greatly appreciated.

    what html component?

  • Contents of HTML title Tag not rendering in AIR HTML component

    I have an Air Application that uses a HTML Component. The HTML page that the component is rendering includes images with title tags. The tags render fine outside the Air Application, but when run in the AIR application, they do not render. Any help when this issue would be greatly appreciated.

    what html component?

  • Receipt page tags not rendering?

    I'm implementing Google Analytics ecommerce tracking in the receipt page.  I need to use these tags: {tag_orderid}, {tag_amount}.  But when I view the html source from the browser, the tags are still there.  They didn't change to values.  Is there any other configuration that needs to take place to make these tags render?
    How does BC know which template is the actual receipt page?  Ours has been renamed: ReceiptBuy.
    Thanks,
    Jim

    Hi Jim,
    Two things with this.
    1. By default this wont work unless you implement the cross domain stuff as your on a different domain when you pay etc.
    http://forums.adobe.com/thread/1074264
    2. These are the only tags availible on the Receipt Buy page:
    {tag_amount}
    Amount paid
    {tag_authorizationcode}
    Authorization code as the payment gateway returned
    {tag_errormessage}
    Error message associated with the payment
    {tag_invoicenumber}
    Invoice number
    {tag_orderid}
    Internal ID associated with the purchase
    {tag_paymentstatus}
    Status of payment (for example, Success, Failed, or Pending)
    How are you using them? They should render but they have to be on the Receipt Buy Layout and not on a custom page or anything.

  • Image inside facet not rendering

    <t:column>
          <f:facet name="header">                               
                  <h:graphicImage value="images/pic.gif" />   // NOT RENDERING
          </f:facet>                                                            
          <h:graphicImage value="images/pic.gif" />             // IS RENDERING
    </t:column>
    // WHY IS THE IMAGE INSIDE THE  "<facet>"  TAG NOT RENDERING ?

    Uh, yup, that sure solved it.  Thanks Tom.

  • Visual editor JSF rendering not working

    Hi,
    I'm trialing the 10.1.0.3EA version of JDeveloper and I can't seem to get the JSF rendering working in the visual editor. I thought that perhaps I'd changed some settings or something so I completely uninstalled and then reinstalled JDeveloper. After the install I created a new application using the default web tech. scope, created default business components from the order and order_items tables in the oe schema, opened the JSF navigation, added a page and tried to drag and drop a read only table onto the page. Instead of the rendering I am getting a hierarchical view of tags with just the tag names, i'm not even getting any of the binding information shown, other than in the property inspector. I'v checked to make sure that the JSP tag libraries in the project settings all have "Execute tags in JSP Visual Editor" checked and in the preferences I have made sure that "Show JSP Tag Names Only" is unchecked. Does this functionality not work by default from the install or am I missing something?
    Any help would be appreciated!
    Thanks,
    Lee Proctor.

    Of course, use the value attribute of the component and set it to EL representing the desired property.

  • Custom taglib with nested tag not working

    Hi everybody,
    I have a question concerning a custom taglib. I want to create a tag with nested child tags. The parent tag is some kind of iterator, the child elements shall do something with each iterated object. The parent tag extends BodyTagSupport, i have overriden the methods doInitBody and doAfterBody. doInitBody initializes the iterator and puts the first object in the pageContext to be used by the child tag. doAfterBody gets the next iterator object and puts that in the pageContext, if possible. It returns with BodyTag.EVAL_BODY_AGAIN when another object is available, otherwise BodyTag.SKIP_BODY.
    The child tag extends SimpleTagSupport and does something with the given object, if it's there.
    In the tld-file I have configured both tags with name, class and body-content (tagdependent for the parent, empty for the child).
    The parent tag is being executed as I expected. But unfortunately the nested child tag does not get executed. If I define that one outside of its parent, it works fine (without object, of course).
    Can somebody tell me what I might have missed? Do I have to do something special with a nested tag inside a custom tag?
    Any help is greatly appreciated!
    Thanks a lot in advance!
    Greetings,
    Peter

    Hi again,
    unfortunately this didn't work.
    I prepared a simple example to show what isn't working. Perhaps it's easier then to show what my problem is:
    I have the following two tag classes:
    public class TestIterator extends BodyTagSupport {
        private Iterator testIteratorChild;
        @Override
        public void doInitBody() throws JspException {
            super.doInitBody();
            System.out.println("TestIterator: doInitBody");
            List list = Arrays.asList(new String[] { "one", "two", "three" });
            testIteratorChild = list.iterator();
        @Override
        public int doAfterBody() throws JspException {
            int result = BodyTag.SKIP_BODY;
            System.out.println("TestIterator: doAfterBody");
            if (testIteratorChild.hasNext()) {
                pageContext.setAttribute("child", testIteratorChild.next());
                result = BodyTag.EVAL_BODY_AGAIN;
            return result;
    public class TestIteratorChild extends SimpleTagSupport {
        @Override
        public void doTag() throws JspException, IOException {
            super.doTag();
            System.out.println(getJspContext().getAttribute("child"));
            System.out.println("TestIteratorChild: doTag");
    }The Iterator is the parent tag, the Child shall be shown in each iteration. My taglib.tld looks like the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <taglib
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee web-jsptaglibrary_2_1.xsd"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1">
         <tlib-version>1.0</tlib-version>
         <short-name>cms-taglib</short-name>
         <uri>http://www.pgoetz.de/taglibs/cms</uri>
         <tag>
              <name>test-iterator</name>
              <tag-class>de.pgoetz.cms.taglib.TestIterator</tag-class>
              <body-content>tagdependent</body-content>
         </tag>
         <tag>
              <name>test-iterator-child</name>
              <tag-class>de.pgoetz.cms.taglib.TestIteratorChild</tag-class>
              <body-content>empty</body-content>
         </tag>
    </taglib>And the snippet of my jsp is as follows:
         <!-- TestIterator -->
         <cms:test-iterator>
              <cms:test-iterator-child />
         </cms:test-iterator>The result is that on my console I get the following output:
    09:28:01,656 INFO [STDOUT] TestIterator: doInitBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    So the child is never executed.
    It would be a great help if anybody could tell me what's going wrong here.
    Thanks and greetings from germany!
    Peter
    Message was edited by:
    Peter_Goetz

  • ADF Faces components are not rendered in Jdeveloper visual editor

    Hi!
    I'm using Jdeveloper 1013 Developer Preview. I found that the components of ADF Faces EA16 are not shown on the visual editor in Jdeveloper, but the ADF Faces EA15 components are shown. I'm just wondering if this is normal, and there is anything that can be done to fix this?
    Meen

    I know there's a recent release with a visual editor problem, but I'm not sure which one it is. This thread says you need a fresh install? Can you try that?
    Re: ADF Faces tutorial/code sample for data table?

Maybe you are looking for

  • Is it possible to cancel a Goods Receipt?

    Hi everybody. I use SAP B1 2008. I know we can cancel certain documents in SAP after they have been posted. Ex. We can cancel a Sales Order by Selecting Data -> Cancel from the menu. Is it possible to cancel a posted Goods Receipt (or a Goods Issue)?

  • JDeveloper + WebLogic: Problem deploying

    Greetings, I'm new to Oracle and JDeveloper and I'm developing an application (webservice) that uses Oracle 11g as database. To develop the webservice I'm using JDeveloper Studio Edition Version 11.1.1.0.1 and WebLogic application server. Everything

  • Saving for Word - and having it come out correctly

    I have prepared a lengthy Word Processing document in Pages '09. It runs 19 pages, and pages 6 & 7 are 2 columns, the rest are single column. When I save to Word, and I have others open in Word on their Windows computers, it loses the 2-column format

  • HT5731 New music won't download to Ipod

    I have a new computer and a new Ipod. While the library downloaded, any new music I purchase will not transfer to the Ipod. I have authorized the computer and the new music shows up in my library, but it will not transfer. I try selecting Sync, but t

  • [request] Latest MSI N770 Lightning UEFI/GOP BIOS

    Wanted to see if I am running the latest version of bios.  s/n : 602-v283-10sb1308023393 p.s. breaking the link rom file : h_ttps://www.dropbox.com/s/s2g5f4fubo62j7u/GK104.rom?dl=0 Thank you,