How can i use one datatable inside the other?

Hi all,
i need help ... i have this page that shows information from a relational table... for example a mapped table "Countries" that has a java.util.Set inside named "Cities" and i would like 2 know how can i do this using jsf...
The display would be like this:
Brasil
Rio de Janeiro
Sao Paulo
USA
New York
Washington
New Orleans
And Goes on... So i guess it would be a dataTable inside the other, right? but i dunno how to do it...
Thanks for any info. cya

this is somehow a messy example. But just focus on the var attribute of outer datatable and how value attribute of inner datatable is referencing it.
<h:dataTable id="table1" value="#{pc_City_state.listofstates.states}" var="varstates" styleClass="dataTable">
               <h:column id="column1">
                    <f:facet name="header">
                         <h:outputText styleClass="outputText" value="StateName" id="text2"></h:outputText>
                    </f:facet>
                    <h:outputText id="text3" value="#{varstates.stateName}" styleClass="outputText">
                    </h:outputText>
               </h:column>
               <h:column id="column3">
<f:facet name="header">
</f:facet>
          <h:dataTable id="table2" value="#{varstates.cities}" var="varcities" styleClass="dataTable">
                                   <f:facet name="footer">
                                   </f:facet>
                                   <h:column id="column4">
          <f:facet name="header">
          <h:outputText styleClass="outputText" value="CityName" id="text6"></h:outputText>
          </f:facet>
          <h:outputText id="text7" value="#{varcities.cityName}" styleClass="outputText">
          </h:outputText></h:column>
          </h:dataTable>
</h:column>
</h:dataTable>

Similar Messages

  • How can i use one dtd inside another dtd

    Hello friends,
    I have read some where that one DTD can be imported into another DTD but idont remember how to do it.
    My question is suppose we have a DTD say xyz.dtd and i am writing a new DTD say abc.dtd, and lets assume that in abc.dtd i have to declare some of the elements of xyz.dtd, so iwant to import xyz.dtd into abc.dtd.
    Can anybody please give me a solution for this.
    Thank you,
    sridhar.

    something similar to this.
    // This is abc.dtd
    <!ELEMENT MESSAGE_NODE (MSGHEADER, MESSAGEBODY)>
    // Include the DTD for the Message Header
    <!ENTITY % MSGHEADER SYSTEM "xyz.dtd">
    %MSGHEADER;

  • Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ?

    Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ? Please help me as its urgent.THanks for your help in advance.

    Hi Jay,
    SSIS can only recognize the absolute path of a XML Configuration file, the relative path is not supported. Furthermore, if the XML Configuration file is already generated, we can use the Environment variable package configuration type instead so that
    SSIS runtime automatically looks for the configuration file from the path defined in the environment variable. This is convenient when we need to deploy a package to different environment. We only need to define the environment variable for package configurations
    once on each server, and then the variable can be used by all the packages on this server.
    Regards,
    Mike Yin
    TechNet Community Support

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

  • 1. I have an iPod which has purchases synced with I tunes with an apple ID. I now have an iPad with a new ID for cloud. I have cloud storage capacity of 5gb which came with the iPad. How can I use one ID and store my existing music in cloud?

    1. I have an iPod which has purchases synced with I tunes with an apple ID. I now have an iPad with a new ID for cloud. I have cloud storage capacity of 5gb which came with the iPad. How can I use one ID and store my existing music in cloud?

    HI Frostyfrog
    CHeck out iTunes Match which has an annual fee of £21 or thereabouts. You can store a maximum of 25,000 songs there and they all become available on your other kit, iPhone, iPad and iPod. I know it works as I have over 23000 songs uploaded of which only a few we're bought through iTunes.
    it works by comparing your music to the whole iTunes music dadata base so you access the same tunes that you could get from iTunes. If you have obscure stuff, it uploads your own music to the cloud as a copy.
    I Find it incredible that on my iPhone with its 16gb memory I can view almost 200 gb of music (ie my 23000 songs) and play any of them. Anything I add to iTunes becomes available via the cloud fairly quickly from a few minutes or a little longer if adding a lot.
    The first time you use it it will take quite a while to match your music if you have a lot, but after that it is all automatic. Read the stuff on the apple site. Your PC needs to be at least running Vista. I recommend it and at less than 50p a week it's good value.
    Good luck

  • How can i use one SQL statement to solve problem?

    How can i use one SQL statement to solve the question below?
    For a Table named A, there is a column named F(char type).
    Now select all the records where F like '%00' and update their F value to '%01'
    Just one SQL statement.Do not use PL/SQL block.
    How to do that?
    Thanks.

    What is the data volume for this table?
    Do you expect lots of rows to have '%00' as their value?
    Following two statements come to mind. Other experts would be able to provide better alternatives:
    If you have index on SUBSTR(f, 2):
    UPDATE A
    SET    f = SUBSTR(f,
                      1,
                      length(f) - 2) || '01'
    WHERE  substr(f,
                  -2) = '00';If most of the rows have pattern '%00':
    UPDATE A
    SET    f = SUBSTR(f,
                      1,
                      length(f) - 2) ||
               DECODE(SUBSTR(f,
                             -2),
                      '00',
                      '01',
                      SUBSTR(f,
                             -2));

  • How can i use one iCloud Photostream on 2 devices?

    Due to a bug (or feature) on iOS 8 i can't use the same icloud id on 2 iphones:
    https://discussions.apple.com/thread/6536998
    So how can i use ONE iCloud Photostream then on 2 devices?
    Also, on OSX i can define only one Photostream.
    So, how do you import pictures from 2 streams into iPhoto?
    Familyshare is not usefull as the pictures are not in Original-Filesize!

    Hi ..
    Yes. " iPhone 6 or 6 Plus.  iPad Air 2  or  iPad mini 3"
    Set up and use Apple Pay

  • HT4901 I have HughesNet with a capped amount of Internet capacity. How can I use iCloud but adjust the time it is on to conserve my Internet allowance and not have to backup my information all the time????

    I have HughesNet satellite for an ISP with a capped amount of Internet capacity. How can I use iCloud but adjust the time it is on to conserve my Internet allowance and not have to back up my information all the time?

    Thanks Roger W1,
    Yes, I was using iTunes to sync over cable without problems since orinigal purchase in 2011 and using 10.6 w/o problem. There was an "update" in Nov 2012 that crashed the sync service. I went to the Apple Store and reviewed the problem with the Geniuses there. It was discovered at that time that the update included mandated use of iCloud but enough of the un-updated code remained that he was able to patch functions to allow Microsoft Office to still sync over iTunes.
    This March (+/-) there was another "update" to 10.6 that totally destroyed the patch that was in place so there was no sync service available between Microsoft and iTunes what-so-ever. Then recently, because of some unknown process, all my notes, contacts, and calendars were erased in both my Apple utilities and Microsoft utilities.
    After many hours of frustration I was able to recover most of the information to the Apple utilities only, but those were unstable. At my visit to the Apple store it was suggested that an upgrade to 10.8 might solve the stability problem. That it did but being connected to the iCloud all the time keeps using up all my Internet time and I have nothing left to check emails or do research.
    This, to me, is not my problem but one created by Apple. I have searched the Internet and support groups and there doesn't seem to be a solution.
    The "aircraft mode" turns off all other communication functions and is not acceptable. Neither is disconnecting/turning off Airport on my MBP.
    Thanks,
    Jay

  • How can i use microsoft office on the mAC - what app do i purchase? help?!!

    how can i use microsoft office on the mAC - what app do i purchase? help?!!

    What aspect of Microsoft Office? Office is a suite of programs... Word, Excel, Powerpoint, etc.
    You've got several potential options. Libre Office and Open Office (both googleable) are 'open source,' free, downloadable programmes that will open most MS Office programmes and perform many of the functions of MS Office. Might be an idea to have a look round for reviews (etc) first, to see if they sound like they'll match your needs.
    If you're keen to use the App Store, there's Apple's own suite of programmes: Pages, Numbers and Keynote. They're a word processor, spreadsheet programme, and presentation-type programme with similar functions to Word, Excel and Powerpoint respectively. They're pretty good for most functions, and are better integrated with Macs than MS programmes. They're excellent programmes for what they do, and relatively cheap (about £14 each?).
    But if you're heavily reliant on MS, want ALL the bells and whistles of MS, or need to regularly transfer files between MS programmes on other computers and your laptop / desktop computer, then they might not be the best of ideas. Keynote - IME - can have some difficulties in transferring formatting to Powerpoint.
    Finally, there's MS Office Mac 2011. You can't download MS Office from the App Store, but can order the CDs from most online stores (including Apple's own store). It might be worth price hunting - if you're a student, you can usually find the programmes relatively cheap (£38 at the moment on Software4Students, though you'll need to belong to an academic institution / have a UK .ac email address). Apple's own prices on MS software are unlikely to be the best prices out there (though the product will be identical).
    MS Office includes Word, Excel and Powerpoint in the basic version. The slightly more expensive version (which, I think, is the £38 one on S4S) includes Outlook. Which - IME - is far more of a nuisance than Apple's native Mail programme.
    (I should probably add - I'm an academic. I own both Apple's own programmes, and MS Office 2011. I tend to use the MS programmes more, if only because they're the ones that other people tend to use, and transferring between Apple and MS programmes is a minor inconvenience. Pages also lacks Garamond, my favourite work font. The Apple progs are, however, far more beautifully integrated, and would be MORE than good enough for most users...)

  • How can i use my tv as the 2nd monitor

    hi, how can i use my tv as the 2nd monitor, for example pull a video from desktop to tv for windows7, the computer is hp omni 120 all in one. because i have a cable for it that connects to the tv but i dont know how to connect the pc to the tv. i tried to go on the 'change screen resolutions' but that didnt help. thanks

    Hi,
    Here is it specs:
       http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c03343048#N1221
    You can only see:
    Front:
    1 - Screen area
    2 - Microphone array
    3 - Webcam camera
    4 - Stand
    5 - Speakers
    Back:
    1 - Optical disk drive (actually right)
    2 - Stand
    3 - Kensington lock slot
    4 - Power button
    5 - Memory card reader and other I/O on left side
    6 - Motherboard back I/Os (specific I/Os are model dependent)
    7 - Activity indicator
    8 - Power connector
    9 - LAN (ethernet)
    10 - Four USB 2.0 ports
    11- Audio port (actually left side)
    Left:
    1 - Hard drive activity indicator
    2 - Memory card reader activity indicator
    3 - Memory card reader
    4 - Two USB 2.0 ports
    5 - Microphone jack
    6 - Audio port
    Right:
    1 - Optical disc drive
    The only hope is "6 - Motherboard back I/Os (specific I/Os are model dependent)" area:
    Please check area 6 above. As mentioned in my previous reply: Most likely your machine has no video out port.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How can I use Office Update without the Office CD?

    How can I use Office Update without the Office CD? On the microsoft website I've clicked the options which mean I shouldn't need the CD (which wasn't supplied with the laptop), but poartway through updating the service pack I get a request for the Office 2000 Professional CD.
    Any suggestions?

    Hi
    Did you mean a Office or One Note?
    As far as I know the One Note is a part of the Recovering Image and the CD is not delivered with the unit. Furthermore the Toshiba units are not delivered with the Office 2000 software.
    Nevertheless, did you check the update function in the Help i.e. in Word?
    There you will find a options called Check for Updates
    http://office.microsoft.com/en-us/officeupdate/default.aspx
    Bye

  • How can I change one section of the document to a landscape orientation and not the whole document?

    How can I change one section of the document to a landscape orientation and not the whole document?

    Page Setup, including page orientation, is done in the File menu. The setting applies to the whole document. As Peter says, you can rotate the contents of a page (not including the text layer of a word processing document).
    As an alternative, you could use Numbers, where Sheets are empty canvases onto which you may place images, charts, tables and text boxes, and where page orientation may be set for individual Sheets. The main tradeoff is that you lose many of the built-in word processing and page layout features of Pages.
    Regards,
    Barry

  • How can i use my account without the billing info, as i do not have a credit card. and my shipping and billing info is under US. i'm in singapore. how do i change this?

    how can i use my account without the billing info, as i do not have a credit card. and my shipping and billing info is under US. i'm in singapore. how do i change this?

    If you are just visiting Singapore, then leave the account as it is. If you have moved there, then view your account using the iTunes app on a Mac or PC and change the country/region to your current location and address. If you do not have a bank card, you can fund your account using iTunes gift cards if available in Singapore.

  • HT4437 how can i use my labtop on the wed and watch everthing im doing on my tv

    how can i use my labtop on the wed and watch everthing im doing on my tv

    Mirror, if your MBP is early 2011 or later running OSX 10.8 or newer.  If older visit www.airparrot.com, a third party app that works OK, mixed reviews but mine works well.

Maybe you are looking for

  • Adobe Creative Cloud has stopped working- can't open or uninstall creative cloud- windows 7

    Hi! I am having issues with my Adobe Creative Cloud Desktop App.  It wont open.  A window pops up saying that Adobe Creative Cloud has stopped working.  I've already tried the Adobe Creaive Cloud cleaner, and it doesn't work.  What should I do to uni

  • How do i unblock my phone to other network?

    I have change my mobile network and need to get my phone unblocked can some one tell me how to do this?

  • Cursor for loop vs bind variable efficiency

    PL/SQL I am going to need to execute many sqls within a cursor for loop. Note: This is pseudo pl/sql code for csr_rec in cursor loop insert into tablea select [whateever] from tableb where column_name = csr_rec.field versus execute immediate 'insert

  • Error while Delivery

    After saving delivery i got the delivery no and when i open that del no in change mode an pop up msg comes saying Express document " Update was terminated" received from auther xxxx.* when i click on the pop up box it says Error Info ....delivery typ

  • Apps available offline

    Just bought an iPad and downloaded Open Word only to find that I can only use it online.  How can I find out if apps can be used offline?  Are there any word processing apps that will work offline - I want to be able to transfer docs into Word 2010 o