How to print a hashmap keys and values jsff fragment?

11.1.1.7

I tried like below, this does not work.

< af:table var = 'r' rowBandingInterval = '0 '.

value = "#{pageFlowScope.MyBean.errorMap.entrySet} '"

inlineStyle = "" width: inherit; ""

columnStretching = "multiple" partialTriggers =": ctv2" > "

< af:column sortable = "false" headerText = "#" rendering = "true" >

< af:outputText value = "#{r.key}" id = "ot1" / > "

< / af:column >

< af:column sortable = "false" headerText = "Message" rendered = "true" width = "50%" >

< af:outputText value = "#{r.value}" id = "ot9" / > "

< / af:column >

< / af:table >

User

Check - Ashish Awasthi (Jdev/ADF) Blog: HashMap display the values in af:table with the help of af: iterator

Suppose you have a hashMap like this-

Accessors HashMap and is

private HashMap = new HashMap ()valMap;

{} public void setValMap (HashMap valMap)

this.valMap = valMap;

}

public getValMap() {HashMap

Return valMap;

}

An array of objects to store values from HashMap keys

public Object [] getKeySet() {}

Return getValMap () .keySet () .toArray ();

}

Then on the table should be--xml page

"partialTriggers =": b1 ">

Ashish

Tags: Java

Similar Questions

  • I've lost the last two digits of my valid key for xp pro sp2 and notebook, how do I get the key and support? where?

    I've lost the last two digits of my valid key for xp pro sp2 and notebook, how do I get the key and support? where?

    Hi Jonathan,.

    Please go to the Microsoft Community Forums.
    After the description of the question, I understand that you have lost the last 2 digits of the product key.
    Let me go ahead and help you with the issue.
     
    Please answer these questions, which will help us to help you best.
    1. How did you get the product key?
    2. the operating system come preinstalled on the computer?
     
    I suggest you for the link and check if that helps:
    How to identify, locate, and replace a product key
     
    See also:

    I hope this helps. If you have any other queries/issues related to Windows, write us and we will be happy to help you further.
  • How to find my WEP key and the name of my network?

    I need to reset my wireless printer to scan.  It asks for my WEP key and I thought it was one that is not correct.  How to find the right WEP key and my correct network name? I have a laptop HP Pavilion dm4 with HP scanner/printe wireless

    You must log - on to your AP or wireless router and look for the 'Wireless' or similar tab for your WEP key and the network name (SSID). Or you may be able to locate the information by going to control Panel\All Control Panel Items\Network and Center sharing on your laptop.

    Frank

  • How to print on your business and your workout journal

    Anyone know how to print the newspaper of training or activity.

    Hi Ed

    Activity app allows you to print the training of all event days data and/or. Other sharing options include some social media, Messages, messages and Notes.

    -On your iPhone, in the application of the activity: view the activity of the day > press the share in the top-right corner of the screen.

    -To switch between workout sessions and activities, switch to month view and tap on the activity / training in the upper right corner.

    There are also a few third-party applications that you might find useful - for example:

    You can also export the data directly from the app to health (health data > All - Share button top-right). Check the descriptions and support resources for third party applications for more details of the data import features supported.

    If you want Apple to consider offering different print options built-in, you can suggest that here:

    https://www.Apple.com/feedback/watch.html

  • How to disable registration of keys and handwritten messages?

    Hey, all. I looked everywhere in my settings but have had no luck. My phone is automatically record all keys and handwritten messages and I'm afraid it'll take too much memory on my phone. Is it possible to disable that?

    Thank you!

    Hello

    Unfortunately there is no option to turn it off

    However, there are two options to limit the amount of things that are stored on your device

    • Press and hold the message, select and click on the trash
    • Set iOS to only save messages for 30 days via Configuration-> Messages-> messages of Dungeon (However this will also remove text messagess)
  • I have a printer of good wanting more hp6500a how to print on both sides, and after the return to a single.

    Please note that I have Windows 7, thanks for your help.

    y.b

    Hello

    You can find detailed information on how to print on both sides paper for your product here:

    http://support.HP.com/us-en/document/c02773085

    I hope this helps.

  • How to call the bean support just after JSFF / fragment of page loads?

    Hello

    I have a simple requirement - call the Backing Bean method for my page-fragment AFTER that its loading. The JSFF is delimited to the workflow.

    I tried the solution given here: http://fortunefusionminds.blogspot.com.au/2013/04/how-to-invoke-backing-bean-method-right.html but it does not work for me.

    Every time I tried to access any link layer (i.e. the PanelFormLayout DepartmentId) attribute/property within the refreshRegion method below gives NullPointerException.

    My DepartmentId property is exposed to the Backing Bean by using the Bindings property in the property inspector.

    @Override

    {} public boolean refreshRegion (RegionContext regionContext)

    int refreshFlag = regionContext.getRefreshFlag ();


    if(refreshFlag == RegionBinding.PREPARE_MODEL) {}

    System.out.println (getDepartmentId.GetValue ())

    }

    regionContext.getRegionBinding (.refresh (refreshFlag));

    Returns false;

    }


    {} public void setDepartmentId (RichInputText departmentId)

    this.departmentId = departmentId;

    }

    public RichInputText getDepartmentId() {}

    return departmentId.

    }

    Any help please?

    Thank you

    Hitesh Patel


    Hi all

    Here's how it works for me.

    1. in your backing bean create property & its get accessor for afterPageLoad as below. We don't need a setter method.

    private; channel afterPageLoad

    public String getAfterPageLoad() {}

    If (!.) {AdfFacesContext.getCurrentInstance.isPostBack ()}

    initPage();

    }

    Return afterPageLoad;

    }

    private void initPage() {}

    System.out.Print ("I'm initPage() and called exactly once");

    }

    2. create a hidden field to the bottom of your JSFF page as below.

    Thanks - Hitesh

  • How to disable the product key (and not via cmd or hacking)

    I used my new (but very slow) laptop on windows 7 starter edition, (walking at home preidum sorry for the bad grammar.) and I don't have 26 days (I think) until the expiry of my product key, if im wondering how do I deactivate the product key, I saw a command which can make your product key never expire im going to test on my virtual machine, in any case, bye!

    The standard method is to buy a permit.

  • How to print an e-mail and attachment, but with open attachment.

    I just want to print an email and it is incidental (e.g. pdf) but with the open pdf, not as an icon/link. Is it possible or ' add to ' who can do this?

    No you can not just print a pdf attachment without opening it. Nor do so with one attachment other than text, eml and a few image as jpg and png formats

  • How to print a report page and elements?

    db11gxe, apex 4.0, firefox 24,

    Hi all

    I have a page with a report and two points and I want to print the entire page (the report with the elements), apex is enough?

    Thank you

    Hi Newby.

    If you want to print the entire page, you could just right click on the page and select print. Therefore, using the default browser feature.

    Kind regards

    Joni

  • How to connect the DELETE keys and BACKSPACE in the text box?

    Hi all

    So I know I can addEventListener (TextEvent.TEXT_INPUT, onTextInput) to capture any text entry events.

    How to capture when someone presses the DELETE key or back?

    I tried addEventListener (KeyboardEvent.KEY_DOWN, onKeyDown); with if(event.keyCode == Keyboard.BACKSPACE), but it triggers the event before the change is made to the text box.  I'd like capture the event return back after that the text box is updated.

    Any help appreciated.

    Also, does anyone know how to capture you cut / copy / paste events?

    Thank you

    Scott

    http://www.resultswebdesign.com.au/

    Hello

    Instead of listening for the KeyUp, then the event fires after change


    http://www.Adobe.com/2006/mxml"layout ="absolute">
       
            Import mx.controls.Alert;
               
    private void keyHandler(event:KeyboardEvent):void {}
    If (event.keyCode == Keyboard.BACKSPACE) {}
    Alert.Show ('detect')
    }
    }
    ]]>
       

       
       
       

    Hope that helps

    Andrew

  • How to print the page range and then remove same range

    Hello

    I have a PDF file on the 1,500 pages that I need to separate. Is is possible to have a javascript to print page 1 to the current page, follow by deletion of page 1 to current page?

    Start: 0

  • How to get the key and the value of mapping using forEach

    Hi all

    I use Jdev 11.1.1.7

    I have a taskflow parameter of type Map < String, MenItem >

    In the jspx I create some menus iterating this card so I created the following foreach:

    <af:menu text="ContextMenu" id="m1">
                                <af:forEach items="#{pageFlowScope.pbContextualMenuDetail}" var="menuItem">
                                  <af:commandMenuItem text="#{menuItem.key}" id="cmi1" />
                                </af:forEach>
    

    My goal is to show the keys and values (a label property MenuItem)

    {But tried to use #{menuItem.key}y} or {menuItem.value.label}

    Please let me know how to achieve this.

    Thank you

    ASHA

    Hello

    try something like this:

    Private Object [] keyboard macros.

    public Object [] getMapKeys() {}

    Return getYourMap () .keySet () .toArray ();

    }

    Kind regards

    Ruben.

  • most unique separator between the key and the value.

    Hello

    I need to write some implementation of a key delimiter value, while demand will insert this value and the delimiter that is not defined in the db.

    After that, I need to retrieve the key and the value, the question that this delimiter is defined by a custom code and it might be something.

    My problem starts when the delimiter that defined by custom code will be part of the 'key' or\and 'value '. in this case, the index of the key and value of the analysis or split or any regex-based will give the wrong key and value.

    Please advice, what is your suggestion for m searching the Internet to find any piece of information that can help.

    Thanks in advance.

    These examples are not relevant if your use case is not the same thing as what this code is from.

    1. you now have the rules.

    2. you have Java class files that implement these rules for a defined set of data types and work delimiters

    3. you have the Java source code for these class files so you can see exactly how the rules are applied and how specific types of data, and the delimiters affect the process.

    It is up to YOU to determine if the existing code will do what you need and, if not, to change this code (or write your own) that implements the rules for your use case.

    You have all the information you need to do the work. Nobody on the forum, and certainly not me, is going to write your code for you. If you can't do the job when you have ALL the necessary information then you will need to hire a consultant to do.

    Any other help is possible.

  • Satellite Pro C660 - 21 d - how to change the shared memory graphic value?

    My dxdiag screen says I have almost 1700 MB of video memory, but when I try to use this memory on games these games can use 256 MB...

    I tried to change settings in the BIOS, but it does not have this setting, do not know what else could cause this problem?

    Hello

    This could be confusing, but this isn't a problem.
    Shared memory is controlled by the graphics driver and the driver affects the part of the main memory to the memory of the graphics card ONLY if its required by a running application.

    The Dxdiag shows you how much RAM could be shared and value of memory in the quizzes you shared memory which is used and who is in the game right now.

Maybe you are looking for