Using more than one component to a back end bean

I have to ask,
if i use a component more than once on a page eg
                    <tr:panelGroupLayout>
                         <tr:selectOneChoice id="HPIDesc" label="HPI Description" value="#{iPISelectBean.selectValue}" >
                              <f:selectItems value="#{iPISelectBean.scenarioItemDescSelectItems}"/>
                              <f:attribute name="scenarioItemType" value="HPI"/>     
                         </tr:selectOneChoice>
                         <tr:selectOneChoice id="UnEmploymentDesc" label="Unemployment Description" value="#{iPISelectBean.selectValue}">
                              <f:selectItems value="#{iPISelectBean.scenarioItemDescSelectItems}"/>
                              <f:attribute name="scenarioItemType" value="UNEMPLOYMENT"/>     
                         </tr:selectOneChoice>
                         <tr:selectOneChoice id="ZeroDesc" label="Zero Description" value="#{iPISelectBean.selectValue}">
                              <f:selectItems value="#{iPISelectBean.scenarioItemDescSelectItems}"/>
                              <f:attribute name="scenarioItemType" value="ZERO"/>     
                         </tr:selectOneChoice>     
                    </tr:panelGroupLayout>     1. is that possible, or a good practice
2. can I get attribute values for the components in the backend bean.
Please help..!!

you need to do a join, there's no other way you can do it. What about using rownum to join the tables
select a.col1, b.col2, a.col1/b.col2 col3
from
(select col1,rownum r1
from table1) a,
(select col2,rownum r2
from table2) b
where a.r1 = b.r2
I think this would work. If you play with it more maybe you can even make it easier and more efficient
null

Similar Messages

  • How can I use more than one Data Provider in my web Apps

    I am trying to use two different data provider in my web apps to run two different queries from the same table ,the data provider A is working correctly but when I attempt to run data provider B ,It display an error page ,here is the error message : Exception Details :javax.servlet.ServletEx ception
    java.lang.RuntimeException: java.sql.SQLException : Cannot connect .Both dataSourceName and url properties are null.

    Hi,
    You can use more than one data provider in your application. However if you have defined a dataprovider for a particular table already, and wish to bind a component, select the component and use its context menu to Bind to Data...

  • Can I use more than one Apple ID on one device

    I have seen some answers to this type of question before but not that since the ios 6 so will ask again. My household shares an Apple ID and it has worked great as we have added devices and purchased apps.  My problem now is this, we have hit a point where I have work things on my iPad and iPhone that I really don't need to be shared with the whole family but it isn't a major deal or security risk. I don't want to give up the advantages of having the household ID.  Is there an easy way to have another ID on my iPad and switch between them without having major complications?  I am for the most part a techie so not afraid of these kind of things but I can't afford to lose everything right now and take the time to set it all back up so getting advice here.  Thanks in advance for any help you can give.

    You can use more than one apple id, but keep in mind that when apps need updating that you'll will need to sign in with correct credentials to update them.
    Share an apple id for the itunes and app stores, but keep your own for icloud, facetime and messages.
    Managing and Sharing multiple id's with your family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/

  • I keep my library on an external hard drive 4TB.  It's full.  Can I use more than one hard drive to keep my library on?

    I keep my iTunes library on an external hard drive 4TB.  It's full.  Can I use more than one hard drive to keep my library on? Like two 4TB next to each other.

    Create a concatenated disk set
    Increase storage space with a concatenated RAID set (also called “Just a Bunch of Disks” or JBOD). If you need one large disk, but you have only several smaller disks, you can create a concatenated disk set to use several small disks as one large disk.
    Open Disk Utility, in the Utilities folder in Launchpad.
    Select one of the disks that you want in the set, and then click RAID.
    Click Add (+), and type a name for the RAID set.
    Choose a format from the Format pop-up menu. Usually you’ll choose the Mac OS Extended (Journaled) format.
    Choose Concatenated Disk Set from the RAID Type pop-up menu.
    Drag the disks you want to add to the set to the list on the right.
    Click Create.
    Exerpt from:
    Disk Utility 12.x: Create a RAID set - Apple - Support
    Note that the biggest CON to concatenated RAID configurations is vulnerability to volume failure. If either disk fails, the whole volume fails. If you choose this option, I would highly recommend backing up your music to a cloud service. There are very cheap per GB/storage, and some of the most reputable actually offer unlimited storage:
    Five Best Cloud Storage Providers - Lifehacker

  • Using more than one PU and PC for the same database

    I have a scenario described here: [http://www.seamframework.org/Community/UsingTwoParallelNestedConversationsWithParentAtomicConversation|http://www.seamframework.org/Community/UsingTwoParallelNestedConversationsWithParentAtomicConversation]
    which uses Seam, EJB3, JPA, Hibernate, Richfaces (modalPanel) and JSF.
    The question I have is the following:
    is there any negative consequence (memory consumption, performance hit, etc.) of using more than one persistence unit in the persistence.xml that points to the same EntityManagerFactory? I was thinking of having one PersistenceContext (Seam-managed PC - an extended PC which is conversation-scoped) which uses one PU and reserving the other PC for the modalPanel forms and backing beans (SFSBs).
    The reason I needed to use this solution/approach is so that when using Hibernate MANUAL flush with SMPC, I can achieve isolated synchronization of the PersistenceContext without updating values in the modalPanel forms and vice versa.
    Any tips on best practices or alternative solutions? thx.
    persistence.xml snippet:
       <persistence-unit name="boBETS">
          <provider>org.hibernate.ejb.HibernatePersistence</provider>
          <jta-data-source>java:/boBETSDatasource</jta-data-source>
          <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
             <!-- <property name="hibernate.hbm2ddl.auto" value="validate"/>   -->
             <property name="hibernate.show_sql" value="true"/>
             <property name="hibernate.format_sql" value="true"/>
             <property name="hibernate.generate_statistics" value="true"/>
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/boBETSEntityManagerFactory"/>
             <property name="hibernate.default_catalog" value="boBETS"/>
             <property name="hibernate.default_schema" value="dbo"/>
          </properties>
       </persistence-unit>
       <!-- using boBETS2 for ListValueParamAction for now! trying to isolate the em.flush() such that we can achieve atomic conversations for the
       base form as well as the popup form! -->   
       <persistence-unit name="boBETS2">
          <provider>org.hibernate.ejb.HibernatePersistence</provider>
          <jta-data-source>java:/boBETSDatasource</jta-data-source>
          <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
             <!-- <property name="hibernate.hbm2ddl.auto" value="validate"/>   -->
             <property name="hibernate.show_sql" value="true"/>
             <property name="hibernate.format_sql" value="true"/>
             <property name="hibernate.generate_statistics" value="true"/>
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/boBETS2EntityManagerFactory"/>
             <property name="hibernate.default_catalog" value="boBETS"/>
             <property name="hibernate.default_schema" value="dbo"/>
          </properties>
       </persistence-unit>What happens if I were to have 10 PUs and 10 PCs in the same app? Whether they're all pointing to same DB or not. What's the consequence of using "too many"?

    Yes, you can use multiple iCloud accounts in multiple User Accounts on one computer, but, as you know not multiple iTunes Match accounts. Keep in mind that the two services are not the same.
    Since you've posted your question to the iTunes Match forum, which it really doesn't pertain to, you might want to also post it to the iCloud on my Mac forum.

  • Using More Than One App At A Time

    Does anyone know if there is a way to use more than one app at a time? It would be nice to get back to the home screen without quitting an app if you are in the middle of something.

    I know I have seen some apps that specifically say that they can be used while surfing the web, etc. It may be a function of the app that it can continue to run while you're doing something else. I'm kind of surprised that a radio app wouldn't allow for that.

  • Can on use more than one hard drive to backup with time machine ?

    Can one use more than one hard drivewith time machine ?

    Yes, if you have the Mountain Lion operating system installed on the Macs that you want to back up.
    I don't know what the maximum number of hard drives might be, but I have tested with 4 and it works fine. Time Machine automatically rotates the backups when you do this, so drive #1 will be backed up first, then #2, #3, etc. and then back to #1, etc.

  • Can we use more than one Help Provider class in a same project in ADF11g

    Hi All,
    There are two help providers i want to use .They are "ResourceBundleHelpProvider","OHW Help Provider"
    In adf-settings.xml file
    <help-provider>
    <help-provider-class>oracle.adf.view.rich.help.ResourceBundleHelpProvider</help-provider-class>
    <property>
    <property-name>baseName</property-name>
    <value>com.symmetry.dashboard.panels.Help</value>
    </property>
    </help-provider>
    if try to register both help providers confliction occurs. Is it possible to register and use more than one help provider.?
    Thanks in advance.:)

    Thanks Frank,
    In adf-settings.xml file
    <help-provider>
    <help-provider-class>oracle.adf.view.rich.help.ResourceBundleHelpProvider</help-provider-class>
    <property>
    <property-name>baseName</property-name>
    <value>com.symmetry.dashboard.panels.Help</value>
    </property>
    </help-provider>
    <help-provider prefix="RB_">
    <help-provider-class>oracle.help.web.rich.helpProvider.OHWHelpProvider</help-provider-class>
    <property>
    <property-name>ohwConfigFileURL</property-name>
    <value>/myHelpset/config.xml</value>
    </property>
    <property>
    <property-name>baseURI</property-name>
    <value>http://127.0.0.1:7101/Dashboard_workflow/myHelpset/%3c/value>
    </property>
    </help-provider>
    I differentiated the help providers with the "prefix" attribute in the <help-provider> tag. So now confliction is not occuring between those.
    I used this prefix in the "helpTopicId" property of the adf components like "input text box" . I got the result. :)

  • Can I use more than one song in a slideshow?

    Can I use more than one song in a slideshow?  If so, how?  Thank you

    Dear Barbara B. 
    Thank you for your response.  Good idea about combining the songs in another program first.
    Thank you for your time and thoughts.

  • Can I use more than one SIM card in my iPhone if I buy it SIM free?

    Can I use more than one SIM card in my iPhone if I buy it SIM free?

    Sim free is not enough, you can use different sim if it's unlock.

  • Can I use more than one Apple ID for an Apple TV?

    I wanted to use more than one Apple ID account on my Apple TV, is that possible?

    Welcome to the Apple Community.
    You can only use one ID for purchasing from the Apple TV, but you can stream content from multiple libraries even though they have different ID's

  • Can u use more than one apple account on your device and itunes

    Can u use more than one apple account on your device and itunes

    Yes, but you have to logout of one, and login to the other.
    If it is an iPhone/iPad/iPod Touch and you buy apps on different accounts, when it comes time to update an app, you have to specify the password for the account used to acquirer the app. You change an iOS account via Settings -> Store -> Apple ID (tap on it), and start by logging out and then you can enter the other Id
    So it is possible, but it can also be a pain.

  • Can I use more than one iTunes account with my apple TV?

    Can I use more than one iTunes account with my apple TV?

    That depends what you mean. If you mean can you purchase from more than one iTunes account on the Apple TV, then the answer is no. If you mean can you stream from more than one iTunes library, which use different accounts, then the answer is yes, so long as they both use the same ID and password for homesharing.

  • Can I use more than one midi keyboard?

    I'm curious If I can run more than one midi application, is this possible?

    SuitcaseRecordings wrote:
    Can I use more than one midi keyboard?
    In Logic, yes.
    I'm curious If I can run more than one midi application, is this possible?
    Yes. you have to set up the Midi, pslit it up between the applications. e.g. channels 1-8 to app 1, and channels 9-16 to app 2.
    Then select the channels according to what application you want to play.
    "My spoon has run dry now..."
    Cheers

  • Can I use more than one transition when creating a slideshow in IDVD

    I want to use more than one transition in IDVD when creating a slideshow, is this possible?

    Not so. Under Windows select Photos.
    That will show the Media Browser in the lower right hand corner of iMovie.
    Use the File ➙ New Project to create a new project.  Select the photos from iPhoto you want to create a movie from and drag into the new project area.
    From there add your transitions, music, etc.

Maybe you are looking for

  • How can I Append the same (altered) web page to the same Acrobat 9 Pro PDF file more than once

    The Acrobat 9 Pro utility in IE 8 of the Windows 7 Pro OS has a selection to "Append to Existing PDF," however it only allows appending the same web page one time only.  if the majoriety of the page data content is changed by selecting list item at t

  • Frozen iMac G5 - 17" Power PC

    Hello all. After 2 years of never needing to do anything to this Mac, I'm staring at a blue startup screen and not getting further. Last night I found my Mac frozen after trying to access a desktop widget. After holding down the power button to shutd

  • SetRowSelectionInterval() not working on single-click in JTable

    I have code that tries to move the highlighted row in a JTable back to the line you just edited instead of moving to the next line when you press enter after editing a cell (like you would normally see in a JTable or any spreadsheet program). If you

  • Exception in thread "main" java.lang.Error

    Hiya all, i`ve got a problem with my compiler , it wont execute a for lus. so can anybody help me to solve my problem.. this is the error that my compiler gives: Exception in thread "main" java.lang.Error: Unresolved compilation problem:      Syntax

  • Precompile JSP in WEB-INF

    Hi, We're using split-directory. Our jsps live inside of WEB-INF to protect them from direct accessing. Only the Servlet controller can access jsps. A few questions here: 1. How can I precompile jsps at the compilation time? Appc doesn't work, since