Custom Tag won't display the attributes

Quick summary: I can't refer to the attributes passed in to by custom tag.
I have a .jsf page that is passing two strings. One is from the backingBean and the other is hardcoded.
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="p" tagdir="/WEB-INF/tags"%>
<c:subview id="recommendedView">
     <h:dataTable id="recommendedlist" value="#{recommendedBean.recommendedList}" var="item" >
            <h:column >
               <c:facet name="header"><h:outputText value="Recommended"></h:outputText></c:facet>
               --<h:outputText value="#{item.title}"/>--
               <p:custom varid="${item.title}"  hardid="My Title"  />
            </h:column>
      </h:dataTable>
</c:subview>The --<h:outputText value="#{item.title}"/>-- shows that I do have a value when call this custom tag with item.title passed as varid.
Now the tag looks like this: custom.tag located in /WEB-INF/tags/
<%@tag description="put the tag description here" pageEncoding="UTF-8"%>
<%@attribute name="varid" required="true" %>
<%@attribute name="hardid" required="true" %>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
Test1: var<h:outputText id="test1" value="#{varid}" ></h:outputText>*<br>
Test2: hard<h:outputText id="test2" value="#{hardid}" ></h:outputText>*<br>
Test3: noOutputText-Var= ${varid}*<br>
Test4: noOutputText-Hard= ${hardid}*<br>I was told I needed to have an implicit.tld file and I read it also here (http://blogs.sun.com/roller/page/jluehe?entry=implicit_tag_libraries_require_and)
So here's my implicit.tld (also located under /WEB-INF/tags/
<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd">
  <tlib-version>2.1</tlib-version>
  <jspversion>2.1</jspversion>
  <short-name>Custom Tags</short-name>
</taglib>So the problem is when I refer varid - I get nothing (nothing writes out in either case using outputText or just ${varid}).
And when I refer to hardid, I get nothing for the outputText test but I do get something for the ${hardid} test.
I don't see this a reference to this problem alot on the web so I figure I must be missing something obvious but I just don't know what.
Does anyone have any ideas?
Thanks.
C

Are you using Windows Vista? If so and you have Aero turned on that sometimes causes strange things like that. It used to happen to me in Fireworks. The way I got around it was having it launch Fireworks in compatibility mode that would revert the display from Aero to standard.

Similar Messages

  • Displaying the Attribute of a Char

    Hi All,
    I have to display a CHAR in the report. But that CHAR is an attribute of another CHAR. I am unable to display the attribute with out displaying the main CHAR means I have to display only the attribute and not the main CHAR i.e
    for ex: If I have to display the prod. hierarchy code which is an attribute of the CHAR Material, I have to display the Product Hierarchy with out displaying the Material.
    Any Ideas please???
    Best Regards,
    James.

    Hi All,
    I solved my problem with ur suggestions...
    Thanks a lot...
    Points Assigned...
    Best Regards,
    James.

  • How to create a custom layout set to display the KM folders...

    Could someone please tell me how to create a custom layout set to display the KM folders?
    Thanks,
    Sudha.

    Hi Sudha,
    Please check the following blogs whick will guide you step by step.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4123
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3071
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/c91b5610b65b4aa8204d09384d156b/frameset.htm
    If helps reward points
    cheers
    dev

  • Over half my albums in iPhoto won't display the enlarged photo. How can I correct this?

    Over half my albums in iPhoto won't display the enlarged photo. How can I correct this?

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/ Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help: As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • My iTunes won't display the artwork

    My iTunes on a jukebox setting won't display the artwork. It currently has an error message of "iTunes is unable to browse album covers on this computer".
    It was working fine the other day. I have updated it version when I received the error message but still nothing.
    However when i select the middle view option, it shows the artwork.
    Please help. The black screen is annoying!

    ....it's my cover flow view that is not working!!!!!!

  • HT1600 update Apple TV via settings general update software advise Apple support.  But Airplay won't display the Apple Tv because it needs an updated compatible software. Catch 22. How does one resolve this contradiction please? Paul

    update Apple TV via settings>general>update software advise Apple support.  But Airplay won't display the Apple Tv because it needs an updated compatible software. Catch 22. How does one resolve this contradiction please? Paul

    only the following macs support airplay mirror
    http://support.apple.com/kb/ht5404

  • A Custom tag/servlet that calculates the session size ?

    Hi all,
              is anybody aware of a custom tag/library that calculates the size of the Session ?
              Thanks a lot
              Francesco

    250 lines, lol.  You need a loop then.
    // Function in document JavaScript
    function calcTotal() {
    for (var i = 0; i<=249; i++){
        this.getField("Total1.0." + i).value = this.getField("Price1.0." + i).value * this.getField("Qty.1.0." + i).value;
    Launch this script only ONCE in a custom calculate script and the script will run through all 250 lines from line 0 to line 249.
    to launch it:
    //put this in a calulate script
    calcTotal();

  • Custom Tag not evaluating expression in attribute

    I have a custom tag that needs to take dynamic values in the attributes, but I can't seem to get the values "interpreted" correctly. I have the <rtexprvalue> tag set to "true" in my .tld file, which I thought was the only thing that was needed in order to accomplish what I am trying to do. However, that does not seem to be the case.
    I am using WebLogic (8.1.4) and their <netui> tags, along with JSTL tags (1.0).
    An example of what my code looks like is the following:
    <test:myTag id="1" idx="<netui:content value='{container.index}' />">
        <netui:select ... />
    </test:myTag>and
    <c:set var="myIdx" value="<netui:content value='{container.index}' />" />
    <test:myTag id="1" idx="<c:out value='${myIdx}' />">
        <netui:select ... />
    </test:myTag>Neither of the above approaches has worked. In my code for my Tag.java file, I get the literal string values of <netui:content value='{container.index}' /> and <c:out value='${myIdx}' />, respectively, in my idx property.
    Can someone give me any hints as to what I may be doing wrong?
    Thanks.

    Shouldnt that be
    <netui:content value='${container.index}' />Actually, weblogic does not use the '$' prefix before
    their expressions. Fine. Which in turn means weblogic has some custom expression evaluator.
    Note weblogic 8.1
    as a container doesnt implicitly supportexpressions
    and you have to build in that feature into yourtag
    library.Are you referring to the 'isELIgnored' attribute when
    you mentioned the above statement? If not, can you
    explain what you meant by "build that feature into
    your tag library"?
    It's like this - expression language is supported by default in all containers that implement the j2ee 1.4 spec (servlet 2.4/jsp 2.0). Additionally you should also declare your web application to adhere to the 2.4 standards (through the schema definition in web.xml). In applications that refer to the 2.3 dtd but are run on a 2.4 compliant container you can set the 'isELIgnored' attribute to false and use EL. This works because your container anyways supports it.
    If your container doesnt provide support for EL (outside the jstl tags) as is the case with weblogic 8.1, then you can still use expressions by using something like the [url http://jakarta.apache.org/commons/el/]apache common evaluator  package. The difference being that you will have to call the evaluator classes to evaluate the attribute.
    Are there any alternatives that I could use to
    accomplish what I am trying to do?Did the above answer your question?
    ram.

  • Custom Tag using object as an attribute.

    I have read up on trying to pass an object as an attribute to a custom tag.
    Is it true that the only way to do this is to put the object, using a "key name" in the pageContext
    Then in the custom tag, set an attribute equal to the "Key Name"
    Then in the TagHandler, to do a lookup using the "Key Name"
    We can not just past objects into the attribute?
    And what is this about using EL or JSP2.0
    sorry sort of new to the whole game.

    Certainly you can pass objects to tags.
    However you need to use a runtime expression to do that.
    such as <%= expr %> or (with JSP2.0) ${expr}
    If you look at the JSTL library, it uses the EL and passes in objects all the time. However the EL actually accesses the page/request etc attributes as its variable space, so you are still technically using attributes.
    Is it true that the only way to do this is to put the object, using a "key name" in the pageContext
    then in the custom tag, set an attribute equal to the "Key Name"
    then in the TagHandler, to do a lookup using the "Key Name"That is one way of doing it. The struts libraries use this method extensively. It is more suited to JSP1.2.
    Sometimes it is easier/neater just to put the value into a scoped attribute, and pass in the name of that attribute. That way you don't need to worrry about the type of the attribute at all in your JSP.
    Hope this helps some,
    evnafets

  • I knew there was a reason I didn't really want to upgrade, but I did & now the FF15 won't display the htm which my old version did perfectly

    Actually it does display the page, but it doesn't display some of the elements which 3.6 did perfectly & even lowly old IE9 still does
    Where do I post the 2 screenshots? - the 1 of IE9? & the other of FF15? - which, it should be obvious, isn't displaying the blue lines down the sides

    cor-el wrote:
    Do you know what (CSS) code is responsible for those lines?
    After you asked your question, I did some experimentation by varying
    the size of the jpg displaying the long blue bar
    & came to a startling conclusion
    FF15 has changed its ability to display jpgs, if said jpg is even slightly greater
    than 30K on its long (vertical) side
    You see, the blue bar isn't generated by FF - it's an independent 8x35Kblubx.jpg,
    an 8 x 35,000 pixel blue line, which was custom created in a drawing prg
    I can send you the file if you want to see it, but the bottom line is,
    the old version of FF used to display it perfectly & in virtually any paint type
    or jpg display prg (preferably such as IrfanView or ACDSee etc),
    it still will, but NOW, in FF15 it doesn't work
    Thus whoever's responsible for finalizing the code at Mozilla/FF (whether it's a committee
    or a person making a decision for a committee), they've decided some type of jpgs
    just won't display, if they're greater than some arbitrary # of pixels
    on its long (vertical) side
    So, here it is ; even FF15 runs the HTM perfectly, *if* I restrict the 8x35Kblubox.jpg
    to its shorter `brother', which is 8x30Kblubox.jpg
    Why 30K is acceptable to FF15, but even 30.5K or certainly 34K isn't,
    is completely upto whoever's responsible for deciding what will display on FF15
    All right, why the change? - Even IE9 still displays the 35Kblubox
    & all the way upto 60K & maybe more (I decided 60K was as big as I'd need
    at the time they were created), but FF15 jams out at 30.5!
    Clearly it's a FF15 `issue' & should be restored to its former ability to run at least 60K
    pixel or greater jpgs (along the long upright edge)
    frebe

  • Project/Albums show as having pictures, but won't display the pictures.

    I have a Project and it has two albums listed (indented) underneath it.
    I have moved them around a bit to put them in different folders, and now the pictures won't display.  By that I mean that if I mouse over the project, a popup (or flyover) says there are 129 versions, but no pictures show up in the browser window.  Same thing for the album.
    The files are referenced files and the files are still in the folder in the same location on my hard drive so I could delete and then re-import, but I'd lose my keywording, any other metadata tags (ratings), and my adjustments.  I really don't want to lose those.
    Any ideas?

    Sometimes moving projects around can create invisible filters, check Frank Caggiano's User Tip:                   Images not appearing in browser, search filter is cleared
    But your long loading time is suspicious: Have you imported any new images recently? Long loading times can be caused by a corrupted image or video in your library; then you need to identify the broken image and remove it.
    Also can long loading result from a corrupted Aperture Library that needs fixing. DId you have a recent Aperture crash?
    Have you already tried to repair or rebuild your Aperture Library? See:
    Aperture 3 User Manual: Repairing and Rebuilding Your Aperture Library
    Regards
    Léonie

  • Finding the custom tag name from inside the tag handler

    Hello,
    I searched the forum, but couldnt find the answer (or in the API). In my custom tag handler, I want to know what the name of the custom tag was. Is this possible?
    Thanks in advance.
    Chris
    ps. Without parsing the .tld file... :)

    Hmm, that's unfortunate. Thanks a lot for your work. I had a feeling since it wasn't in the API that it wasn't possible. Here's why, and maybe they will add this feature later...
    We are making our own tags for buttons on our app (the button will be an HTML table, with a clickable background, that looks like an image, but isnt).
    The HTML designers want tags they can drag and drop to the screen in DreamWeaver, including visual feedback on what they dragged and dropped. So the tag <fast:blueButton>Continue</fast:blueButton> will show a blue button image in dreamWeaver with "Continue" as the text. There are a lot of parameters to set for each button, like height, width, border, etc. that will be configured in an XML config file for each button.
    It would be nice if all the buttons we invent in the tld point to the same generic button class, and when the generic button class runs, sees which button called it, and gets its config from an XML file.
    This way the designer could add more buttons with the tld and XML config, and no more java classes are needed. However, if a generic button is sent with a type param: <fast:button type="blue">Continue</fast:button> then there is no visual feedback in the tool (in the first case we could have set the fast:blueButton to be the image of a blue button) and it cant be picked from a list in the tool (the designer needs to remember which types exist). It seems not important to programmers, but for designers it is important.
    Oh well, I will see if there is another way to NOT have tons of Java classes to support.
    Thanks,
    Chris

  • Nokia 6288 won't display the caller ID

    When a call comes in it just says 'call' it won't display either a number or the caller's name if the caller is someone in my contact list.

    1) Ensure that you have CLIP enabled on your SIM. Call your network provider and confirm this.
    2) Ensure that you do not have the same number used on more than one contact in your phone book.
    Knowledge should be your Advisor when you need help.
    1610»2110»8110»5110»3310»6210»7250i»6220»6230»6230i»6233
    Love me or hate me, its still an obsession. Love me or hate me, that is the question. If you love me then Thank you! If you hate me then ...

  • Pavilion g6 updated to windows 8.1 now tv won't display the screen

    I cracked the screen of my HP Pavilion g6, so I usually connect it through HDMI to my Coby TV and it usually worked fine. Now, after updating to Windows 8.1, my TV won't display anything. I believe it is because the screen is black, and my TV never displayed a black screen before, it only showed the screen once the laptop has started up. I've tried pressing f4 and i can see that the screen is blue in the small area of my screen that still works, but it still isn't showing through my TV so I don't know how I can fix this problem because I cannot see the screen. Please help!

    Hi ke11ie,
    Welcome to the HP Forums!
    I would like to take a moment and thank you for using the forum, it is a great place to find answers. For you to have the best experience in the HP forum, I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that after upgrading to Windows 8.1 your external display(CobyTV) is not working.   Just to rule out the TV if you connect to a different display does it work?
    Here is a link to Connecting a Monitor, Projector or TV (Windows 8).
    Here is a link to Display Quality Issues, that may also be of aid.
    I hope this helps.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Final stage of the installati​on bombs ... won't display the webpage with IE9

    Multiple retries for automatic, tried re-typing, won't display last setup dialogue either way.

    so return it for another one if its within the 14 day return policy.  If not, bring it in for repair.

Maybe you are looking for

  • Problem with Select Statements

    Hi All, I have a performance problem for my report because of the following statements. How can i modify the select statements for improving the performance of the report. DATA : shkzg1h  LIKE bsad-shkzg,          shkzg1s  LIKE bsad-shkzg,          s

  • Method DBMS_XMLQUERY.getXML() always inserts " ?xml version = '1.0'? " in output

    Method "SYS.DBMS_XMLQUERY.getXML()" seems to always want to prefix "<?xml version = '1.0'?>" to the returned output. I don't think this is always called for. I want to extract data from the database as an XML fragment. Outside of the RDBMS, I would t

  • Copy quantity confirmation from Qt to SO

    Hi While i copy Quotation confirmation for SO creation , system again go for availability check automatically , after that i observed that it confirm other quantity instead to quantity blocked by Quotation. So its like double quantity confirmation fo

  • Transferring of nmaterial from ECC to CRM using middleware tool (R3AC1)

    Hello Forum, I need to transfer material from ECC to CRM where MARA-MTART = 'ZAWA' In CRM MARA table do not exist. I need help in transferring data from ECC to CRM using R3AC1 . This transaction is not in ECC but it is in CRM. Thanks & Regards Lovlee

  • My Airport Extreme 5th generation says it's not connected to the modem

    My airport express died after 7 years. I upgraded to the Airport Extreme however when trying to configure it says I am not connected to the internet and that it can't find the DNS server. Any suggestions? I have Time Warner as my ISP.