Using f:facet name="header" in h:panelGrid

I'm battling with it for a week now...
I'm trying to create a table with 3 columns and to have header for each column.
This, don't display headers at all :
        <h:panelGrid styleClass="Context" columns="3">
            <h:panelGroup>
                <f:facet name="header">
                    <h:outputText value="#{prompts.Label_PROPERTYTYPE_ID}"/>
                </f:facet>
                <h:outputText value="null"/>
            </h:panelGroup>
            <h:panelGroup>
                <f:facet name="header">
                    <h:outputText value="#{prompts.Label_PROPERTYTYPE_DESCRIPTION}"/>
                </f:facet>
                <h:inputText value="#{PropertyType.typeDescription}" required="true"/>
            </h:panelGroup>
            <h:panelGroup>
                <f:facet name="header">
                    <h:outputText value=""/>
                </f:facet>
                <h:commandButton value="#{prompts.action_CREATE}"  action="#{PropertyType.Create}"/>
            </h:panelGroup>
        </h:panelGrid>While this compress all headers into one <th>
        <h:panelGrid styleClass="Context" columns="3">
            <f:facet name="header">
                <h:panelGroup>
                    <h:outputText value="#{prompts.Label_PROPERTYTYPE_ID}"/>
                    <h:outputText value="#{prompts.Label_PROPERTYTYPE_DESCRIPTION}"/>
                    <h:outputText value=""/>
                </h:panelGroup>
            </f:facet>
            <h:outputText value="null"/>
            <h:inputText value="#{PropertyType.typeDescription}" required="true"/>
            <h:commandButton value="#{prompts.action_CREATE}"  action="#{PropertyType.Create}"/>
        </h:panelGrid>Any help ?

Hello,
PanelGrid will not render as you want. Please see the documentation as how the rendering will happen for panelGrid.
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/h/panelGrid.html
You can use the following to get the output as you want:
<h:panelGrid styleClass="Context" columns="3">
<f:facet name="header">     
<h:dataTable>
<h:column id="col1">
<f:facet name="header">
<h:outputText value="#{prompts.Label_PROPERTYTYPE_ID}"/>
</f:facet>
</h:column>
<h:column id="col2">
<f:facet name="header">
<h:outputText value="# {prompts.Label_PROPERTYTYPE_DESCRIPTION}"/>
</f:facet>
</h:column>
<h:column id="col3">
<f:facet name="header">
<h:outputText value=""/>
</f:facet>
</h:column>
</h:dataTable>
</f:facet>
<h:outputText value="null"/>
<h:inputText value="#{PropertyType.typeDescription}" required="true"/>
<h:commandButton value="#{prompts.action_CREATE}" action="# {PropertyType.Create}"/>
</h:panelGrid>
- Kiran

Similar Messages

  • Remove/Hide Toggle Icon Column in using f:facet name="detailStamp"

    Hi All,
    I am using <f:facet name="detailStamp"> to expand the row with details ,Done that part with separate button programmatically.
    So I need to hide/remove additional toggle icon column in the table...
    JDev 11.1.1.4 and adf faces application...
    Please anybody help.......

    Hi,
    use skinning
    af|table::disclosed-icon      
    Overrides the default disclosed icon used with the detailStamp facet in table.
    af|table::undisclosed-icon      
    Overrides the default undisclosed icon used with the detailStamp facet in table.
    e.g.
    af|table:disclosed-icon(display:none);
    af|table::undisclosed-icon(display:none);
    Frank

  • Can a h:column has many f:facet name="header" ?

    In a dataTable,I want to display two rows of table header,one row to display column name,the other to display query cond text,how can I get it?
    Message was edited by:
    LiuGaojun

    Really?why?
    I think sun must solve this problem.This is very common in b/s application.jsf is not as agility as html+jsp.
    null

  • Error while using metaContainer facet in ADF Faces EA19

    Hi all,
    i have some problem with using mataContainer facet.
    I use it in the next way:
    <af:document>
    <f:facet name="metaContainer">
    <meta http-equiv="refresh" content="5; URL=../logout.faces" />
    </f:facet>
    </af:document>
    It works, but there are some errorrs on the page: some texts are shown with wrong high. In the genereted source of the page is the meta tag at the start of the page, not in the head.
    Q1: what can be the cause of the error?
    Q2: how can i get the correct path in these context instead of ../ ?
    Thx

    Hi Dimitris,
    THANKS for your quick responce.this is my code in the page defination.can you pls guide me in this
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.54.7"
    id="adfc_config___ExecuteWithParamsPageDef"
    Package="soa_project_form.pageDefs" SkipValidation="true">
    <parameters/>
    <executables>
    <iterator Binds="hcpByparams1" RangeSize="25"
    DataControl="AppModuleAMDataControl" id="hcpByparams1Iterator"/>
    </executables>
    <bindings>
    <action IterBinding="hcpByparams1Iterator" id="ExecuteWithParams"
    RequiresUpdateModel="true" Action="executeWithParams">
    <NamedData NDName="p_id" NDValue="#{pageFlowScope.pid}"
    NDType="java.lang.String"/>
    </action>
    </bindings>
    </pageDefinition>

  • Error while using the variable name "VARIABLE" in variable substitution

    Hi Experts,
      I am using variable substitution to have my output filename set as a payload field value. It is working fine when I am using the variable name as fname, subs etc but channel goes in error when I am using the variable name as "VARIABLE". This is probably a reserved word but i would like to know where i can find a detailed documentation on this. Say things to note / restrictions while using variable substitution.
    This is the error in the channel:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: java.text.ParseException: Variable 'variable' not found in variable substitution table: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: java.text.ParseException: Variable 'variable' not found in variable substitution table
    Thanks,
    Diya

    Hi Zevik,
    Thanks for the reply. The output file is created correctly by merely changing the variable name to something else and hence the doubt.
    Below is the configuration:
    Variable Substituition
    VARIABLE    payload:interface_dummy,1,Recordset,1,Header,1,field1,1
    Filename schema : TEST_%VARIABLE%.txt
    Output xml structure:
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:interface_dummy xmlns:ns="http://training.eu.unilever.com">
    - <ns:Recordset xmlns:ns="http://training.eu.unilever.com">
    - <Header>
      <identifier>HDR</identifier>
      <field1>001</field1>
      <field2>001</field2>
      <field3>R</field3>
      </Header>
    - <Detail>
      <identifier>A</identifier>
      <field1>000000002</field1>
      <field2 />
      <field3>Doretha.Walker</field3>
      </Detail>
    I thimk my configuration is correct as it is working correctly with the variable name change, However, maybe i missed something !

  • Problem in setting header for a panelgrid in backing bean

    Hi , this is urgent... pls...
    Actually my problem is to set header for a panelgrid. I am generating panelgrid component in the backing bean itself , there i need to set header for that panelgrid.
    Here is some sample code which i have written pls let me know whether any problem in this code or let me know whether there is any method possible other than this.
    Code:
    Application application=FacesContext.getCurrentInstance().getApplication();
    keyFeaturesGrid = (HtmlPanelGrid) application.createComponent (HtmlPanelGrid.COMPONENT_TYPE);
    keyFeaturesGrid.setColumns(4);
    keyFeaturesGrid.setColumnClasses("subColumn");     
    FacetTag facetTag=new FacetTag();
    facetTag.setName("header");
    HtmlOutputText facetText=new HtmlOutputText();
    facetText.setValue("Key Features");
    facetTag.setValue("value",facetText);
    keyFeaturesGrid.getChildren().add(facetTag);
    i am calling this method in constructor.. if i place that facetTag code part in my method... i am getting an error while instantiating the constructor...
    waiting for solution...
    Thanks in advance...

    Hai...
    I got it...
    Here i am posting the solution which i got...
    no need to think this much ... it is very simple... let me share the solution here...
    Instead of creating FacetTag object u can do this like this...
    HrmlPanelGrid panelGrid=new HtmlPanelGrid();
    HtmlOutputText headerText=new HtmlOutputText();
    headerText.setValue("Header For The Grid");
    panelGrid.getFacets().put("header",headerText);
    u r always welcome to send any suggestions...
    and also one doubt... how to use JSF core tag verbatim in backing bean

  • Getting Column names (header) of a table dynamically

    Dear Experts,
    Greetings.
    I have a requirement in which I need to get the column name (header) of a table when the user clicks on a column.
    Kindly suggest me the possible ways.
    Thanks in advance.
    Regards
    Sathya

    Hi,
    use one of the following based on your requirement
    Bind the header text to a context attribute and access this attribute from code when clicked on the column.
    Or use parameter mapping.
    Regards
    Ayyapparaj

  • ADF 10.1.3.2 How to change f:facet name = "branding" properties.

    Hi,
    I am using ADF BC JSF project developed using JDeveloper 10.1.3.2
    I have a menu placed on the facet name = "branding". It looks fine in chrome but in firefox and IE it stacks vertically. Is there any ways I can change the properties of facets. Where can I do this? The reason I am using this is because we are trying to save space and branding is the top most facet in panelpage layout and I want my menu to come on top.
    Thanks and regards.

    Do you mean my css file. Can you give me an example. I am using 10.1.3.2. I don't know if we have templates.

  • How do I use event.target.name in AS2?

    Thanks to kglad I was able to see how event.target.name in AS3 could make a button load a movieclip with the same namesake.
    I'm doing the same thing now in AS2 but don't know what to write instead of event.target.name.
    And so at the moment each button pushes info into an array and then a function uses that to decide which movieclip to attach to a holder after it has faded out once, and then fades in again...
    // ***** IMAGE GALLERY START ***** //
    // Add image to holder
    imgholder.attachMovie("img0", "image0_0", 1)
    // Array
    var nextLoad = ["img0"];
    // Btn listeners
    img5.onRelease = function() { trace (nextLoad); nextLoad.pop(); nextLoad.push("img5"); btnClick() } // Written on 1 line
    img4.onRelease = function() { trace (nextLoad); nextLoad.pop(); nextLoad.push("img4"); btnClick() }
    img3.onRelease = function() { trace (nextLoad); nextLoad.pop(); nextLoad.push("img3"); btnClick() }
    img2.onRelease = function() { trace (nextLoad); nextLoad.pop(); nextLoad.push("img2"); btnClick() }
    img1.onRelease = function() {
    nextLoad.pop();
    nextLoad.push("img1");
    btnClick()
    img0.onRelease = function() {
    nextLoad.pop();
    nextLoad.push("img0");
    btnClick()
    // The btn function
    function btnClick() {
    trace ("click");
    var myImgTween:Object = new Tween(imgholder, "_alpha", Strong.easeOut, 100, 0, 1, true);
    myImgTween.onMotionFinished = function() {
    fadeOutImg();
    // The btn function part II
    function fadeOutImg() {
    trace ("fadeOutImg");
    imgholder.attachMovie(nextLoad, "image1_1", 1);
    var myImgTween:Object = new Tween(imgholder, "_alpha", Strong.easeOut, 0, 100, 1, true);
    I know I should be able to push the button name into the array, but am having to use a string... I'm sure my code is cumbersome!! But it works. I've tried pushing the button name but it end up including the full stage reference.
    Is there a cleaner way of doing this using event.target.name?
    Thanks for looking!

    There is no event.target in AS2. However since AS2 has no way of remembering the scope object where the target object resides, you can use this to your advantage to retrieve the name of the target by using the "this" command in the function whenever you use the above format "mc.onPress = myfunc". FYI, the popular workaround Delegate, made it possible that when you called "this" in the function, you could retrieve the scope object where the target instance resides. So without its use, "this" will return the name of the target object. Anyway this is the code you can use:
    imgholder.attachMovie("img0","image0_0",1);
    var nextLoad = ["img0"];
    img5.onRelease = onImgRelease;
    img4.onRelease = onImgRelease;
    img3.onRelease = onImgRelease;
    img2.onRelease = onImgRelease;
    img1.onRelease = onImgRelease;
    img0.onRelease = onImgRelease;
    function onImgRelease():Void {
       nextLoad.pop();
       nextLoad.push(this._name);
       btnClick();
    // The btn function
    function btnClick() {
       trace("click");
       var myImgTween:Object = new Tween(imgholder, "_alpha", Strong.easeOut, 100, 0, 1, true);
       myImgTween.onMotionFinished = function() {
          fadeOutImg();
    // The btn function part II
    function fadeOutImg() {
       trace("fadeOutImg");
       imgholder.attachMovie(nextLoad,"image1_1",1);
       var myImgTween:Object = new Tween(imgholder, "_alpha", Strong.easeOut, 0, 100, 1, true);

  • How do I get Mozilla to use the page name for the actual bookmark name instead of the URL when I bookmark a page

    I just noticed this (in comparison to Internet Explorer): In IE, when you favorite a webpage, it uses the actual name of the webpage (for example, for this page, it would be "Ask a Question Firefox Help" as the bookmark name), but in Mozilla it uses the URL address as the bookmark name. I was wondering if it was at all possible to change my Mozilla settings in order to make it use the webpage name as the bookmark name instead of the URL address? I hope everyone understands what I'm getting at? If anyone can help me, I would really appreciate it. Thanks.

    Does this happen with each bookmark?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Problems with bookmarks and history not working properly can be caused by a corrupted places.sqlite database file.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can try to check and repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/

  • When I use migration assistant it won't let me use my account name that I'm signed in with.  It requires me to select a different user name and then creates a separate account where my files live.  Why can't I select the user name and account name I have?

    I'm trying to migrate my music and pictures over to my new iMac.  When I use the migration assistant it connects to my PC fine but it won't let me use the account name and username that I have created as the admin.  It requires me to create a new user account - so then I have two separate accounts to log in to which i don't want.  How do I get it to let me use the current account that I have to move my files to?
    Thanks!

    Migration Assistant creates a new account and migrates all the information you have requested to that new account. There is no way around that. However once migrated you can move the data to the account you want to. Here are some instructions for doing so:
    Transferring files from one User Account to another.

  • I'm trying an email address i know is mine yet still getting this message:"That Apple ID is already in use.If this Apple ID was created by you, simply sign in with your Apple ID and password.If it does not belong to you, try again using a different name."

    I keep getting this message:  "That Apple ID is already in use.If this Apple ID was created by you, simply sign in with your Apple ID and password.If it does not belong to you, try again using a different name."
    I'm trying to create a new id and e-mail using an e-mail address that is mine and has been mine for over a year - any ideas why this could be happening?

    Trying where? What sort of email address? The following answer is based on a guess as to what you are talking about.
    If you already have an @me.com address, perhaps as a result of having had a MobileMe account, and you are now setting up an iCloud account with an Apple ID you will find you will be asked to create a new @me.com address, and that you can't add your existing one because it is already an Apple ID.
    You can do one of two things:
    1. Sign out at System Preferences; sign in with your existing @me.com address and enable Mail.
    2. Stay signed in with the present ID and add your @me.com address in System Preferences>Mail, Contacts & Calendars.
    If you have further questions, or if your situation is different from what I've assumed, do please post back, but in a suitable forum - this one is specifically about using these Forums.

  • I want to use the same name for my icloud email address as my .mac name

    My name for all of my yahoo, gmail, .mac email accounts are al the same.  I'd like to use the same name for my icloud account.  It tells me that the name is not available but I'm pretty sure no one else would have chosen it.  Is the fact that I've used it for my .mac email address somehow blocking it's availability?  Please help.  Thanks.

    There is some confusion in my mind about your post.  Let me describe what I think you mean, let us know if I misunderstood...
    I'm assuming you already have an Apple ID that you used to define an iCloud account (or an older dot mac account), and the iCloud account has "[email protected]" as its email address.  But the Apple ID for this account is not the same as the email address I just listed, perhaps your apple ID is something like "xyz@???.com" and what you want is to use the ID, "mySpecialName@???.com".   [the "???" could be mac, icloud, or something else]
    If I've got it right so far, then  when creating a **new** Apple ID, you must now use @icloud.com.  If you are trying to define "[email protected]", then that is the problem - "mySpecialName" is already associated with @icloud.com, because your current @mac.com also has [email protected] as an alias, so that name is no longer available.
    Also, you cannot change the current ID from "xyz" to "mySpecialName" on an existing account.  So either way, you can't get the ID that you desire.
    Let us know if this is not what you mean.

  • Can two bands use the same name on iTunes?

    Hi, I'm in a band that uses the same name as another band listed on iTunes.
    Can two bands with the same name be listed on iTunes? We hope to eventually have an album for sale on the site and I'd like to know now if it's going to be a problem.

    Of course it will be a problem. You simply can not have two bands with the same name. I can think of MANY bands that had to change their names (either completely or just for certain countries) because the name was already taken. Blink (Blink-182), Bush (Bush X), The Beat (The English Beat), Yazoo (Yaz), and the list goes on and on.
    Your band better start brain storming for a new or modified name.
    Patrick

  • Cannot use duplicate table name error in AMDP

    Hi Experts,
    I'm developing an application which has the following architecture
    SAP UI5->Gateway->ABAP Managed DB procedures(AMDP)->HANA SP(Stored Procedure)
    We are having a very peculiar problem where the gateway service works inconsistently for the same input data.
    i.e If I execute the same service n number of times, I get the results successfully for say n-3 times but the other 3 times I get a "RFC Error :Error while executing Database procedure"
    There is no change in the input data or DB table data during all the executions.
    Running the stored procedure stand alone in HANA studio works all the time.
    We tried executing the AMDP from SE24 and the same behavior occurred.
    When trouble shooting we found that the exception occurs inside the AMDP when the call db procedure statement is executed.
    Could you please advise what could be the possible reason for this any tuning parameter/unavailability of db connections?
    Or could you please suggest some other troubleshooting mechanism by which we can zero in on the cause?
    When I go in the debug mode I can see the exact error as
    cannot use duplicate table name:  [288] SAPXXX.ZCL_PLAN_MAINTENANCE=>GET_COMP_TYPE#stub#20140905055908: line 15 col 3 (at pos 492): cannot use duplicate table name exception:
    where ZCL_PLAN_MAINTENANCE=>GET_COMP_TYPE is the AMDP class and method. SAPXXXis the schema.

    I reported this to Adobe customer support on 11/29, and here is their response:
    Wednesday, December 5, 2007 12:51:27 PM PST
    Hello John,
    Thank you for contacting Adobe® Web Support for assistance with Adobe
    Photoshop Elements® 6.0.
    I understand that images are deleted if you accidentally try to move
    them to a folder that already includes a file of the same name.
    Thank you for bringing this to our attention. I was able to replicate
    this behavior as well. The best method to report errors of this nature
    is using the following form on our website:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    I will report this to the product team through my channels. You may want to submit this issue through the web form as it goes directly to the product development team.
    I hope this information helps to resolve your issue. If you require
    further assistance with this issue, please update your web case with
    complete details, including what steps you have applied and any error
    messages you are receiving.
    You may also call Technical Support at (800) 642-3623. We are available from 6:00 am to 5:00 pm Monday - Friday, Pacific Time.
    Kind regards,
    Alan C.
    Adobe Web Support

Maybe you are looking for

  • Phone call from woman saying our Internet will be disconnected tomorrow.

    We had a phone call tonight from a woman who claimed to be from Telstra, saying that our Internet was going to be disconnected tomorrow because our downloads were interfering with Telstra computers. When I claimed "[Bleep]" she said thank you and hun

  • Window manager on Tiger (OroborOSX?)

    Hi I've been using OroborOSX as my window manager on my powerbook for a few years. I'm about to upgrade to Tiger from Panther. Does OroborOSX work on Tiger, and if not, what is a good alternative window manager? Thanks. Powerbook G4 800Mhz   Mac OS X

  • IOS 8 new phone contact glitch

    Ever since the upgrade, every time I press 'DONE' to save a new contact in my address book (iPhone 5), it always takes me straight to my HOME MENU (front screen) and not a page back as it always has been. This is confusing as you are not really sure

  • Screen flashes when waking up from sleep, Macbook Pro Retina 13" early 2013

    Hey guys, I have an issue with the wake up procedure on my new Macbook Pro Retina 13". This is how it looks: http://youtu.be/pBK8vRiVdX4 When my computer has been in sleep mode for a longer time (approximately 1-3 hours) it does this strange thing wh

  • Transport import reversal

    Hi, I have faced a situation where I need to test whether a transport request import resolves the problem (obviously on sandbox ). Import does not resolve the problem, instead corrupts a ABAP program by introducing a refrence object that does not exi