Toggling between single and multiple selection in a table

I am working on ADF faces. I need to switch between single and multiple selection in <af:table based on a button I select.
I cannot use switcher or rendered property inside <af:table. Only the first one is rendering the second one is not rendering based on the switch
<f:facet name="selection">
<af:tableSelectMany autoSubmit="true"
rendered="#{treeBean.multipleRows}"/>
</f:facet>
<f:facet name="selection">
<af:tableSelectOne autoSubmit="true"
rendered="#{treeBean.singleRows}"/>
</f:facet>
When I use inside the switcher, it doesn't like the parent.
Any ideas would be greatly appreciated.
Thanks,
Vijay.

I have probably misunderstood what your issue is. I do not know what your version of ADF faces is. Here is some sample code working with my version. Please check if your jdev has "rowSelection" attribute. If it has, please try my sampe code
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
xmlns:af="http://xmlns.oracle.com/adf/faces">
<jsp:directive.page contentType="text/html;charset=utf-8"/>
<f:view>
<af:document title="tableSelectMany Demo">
<af:form>
<af:panelGroup layout="vertical">
<af:messages/>
<af:selectOneChoice value="#{sessionScope.tableSelection}"
autoSubmit="true"
id="selType"
label="Selection Type">
<af:selectItem label="Single" value="#{null}"/>
<af:selectItem label="Multiple" value="#{true}"/>
</af:selectOneChoice>
<af:table summary="Periodic table"
binding="#{tableActions.table}"
partialTriggers="selType"
rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}"
value="#{periodicTable.tableData}" var="row" rows="10">
<af:column>
<f:facet name="header">
<af:outputText value="Name"/>
</f:facet>
<af:outputText value="#{row.name}"/>
</af:column>
<af:column>
<f:facet name="header">
<af:outputText value="Symbol"/>
</f:facet>
<af:outputText value="#{row.symbol}"/>
</af:column>
<af:column>
<f:facet name="header">
<af:outputText value="Action Column"/>
</f:facet>
<af:commandButton immediate="true" text="Action"
action="#{row.action}"/>
</af:column>
</af:table>
</af:panelGroup>
</af:form>
</af:document>
</f:view>
</jsp:root>

Similar Messages

  • How to have both Single and Mutilple Selection in a table?

    Hi ,
    I have a page with an advanced, there is a multiple selection for the table for deleting row. Now I want to have a single selection column for other purpose. But it does not seem that we can have both in a table.
    If I implement SingleSelection myself by using OAMessageRadioButton, from dev guide, I need to programmatically assign radio btton all the same
    name by calling setName() for each radio button and also assign an identifying value for each bean. I can radio for radio button, but how can I assign value for each radio button bean when they are in a table? Will it possible to use View Attribute of radio button bean property?
    thanks
    Lei

    Lei, its possible to have both in ur table! You can add a single selection child to your table. Then u can add messagecheckbox as last column of table, which can be attached to a transient VO attribute.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Toggle between Rosetta and Universal

    I just installed Flip4mac wmv, in the post is suggested that I select Rosetta in the Get info panel that all went well and I was able to watch the wmv file, no problem.
    My question is how do I get out of or toggle out of Rosetta back into Universal. I have looked on different sites, I must have missed something, I can't seem to figue out how to do this.
    Please excuse my lack on knowledge, this is my second week on a Mac.
    Many thanks.

    I went into Quicktime and was able to select Get Info to change to Rosetta, yet there is no option to go back to universal. What I m reading on the posts that suggested that you can toggle between Rosetta and Universal, or am I misreading that.?
    My Mac Pro is Intel chipped.

  • E72 - How to toggle between portrait and landscape...

    Some games refuse to run by displaying "This game is not supported in landscape mode. Please turn your handset to portrait mode".
    How can I toggle between landscape and portrait modes in Nokia E72?

    You can't do that because of the screen orientation which is landscape only in case of E72, E71, E5.
    If a reply has solved your problem click Accept as solution button, doing it will help others know the solution. Thanks.

  • Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • Getting remote context to "s1" is toggling between "s1" and "s2"

    I'm on WLS8.1SP4.
    I have an app that runs on my admin server, which communicates to a custom mbean hosted on my cluster (managed servers "s1" and "s2"). Some of the operations in the app send the same message to both "s1" and "s2", and some of the operations target either "s1" or "s2".
    Each time the app needs to connect to the mbean on a specific server, it gets the remote context to the server, using the Environment object, setting the provider URL to the URL for that server (I've watched this in the debugger). From that remote context, it does the JNDI lookup, gets the RemoteMBeanServer object, builds the ObjectName for the attribute (most of the calls are just attribute get/set calls), and then calls "getAttribute()" on the remoteMBeanServer. This all seems ok.
    Here's where something goes wrong. What I see happening is very odd. When the application first starts, it makes a set of calls specifically to "s1" and "s2". This first set of calls appears to be ok. However, when I make it go through the same set of calls again, all the calls that specifically build a URL for "s1" actually end up calling "s2". I can verify this by monitoring the debug output in the "get" methods in the mbean code. When I make it go through the calls again, it does them correctly. It very consistently toggles back and forth between "s1" calling "s1" and "s1" calling "s2".
    I'm at a loss to understand why this is happening.
    My admin server (where the main app is running) is Win2k Server, and the managed servers are Solaris 8.
    I've managed to repeat this on a different domain, but hosted on the same distribution and set of servers.
    I filed a ticket for this, and the engineer is working on building a test case to see if they can repeat this.
    I tried one experiment they wanted me to try, by adding the admin server to the cluster, effectively making the main app communicate to "s1", "s2", and "adminServer". What I saw happen with this configuration is that calls to "adminServer" always went to "adminServer", and the same with "s2". The calls to "s1" continued to toggle between "s1" and "s2".

    Minor clarification: I realized that the domain this is on is actually running 8.1SP2 (not SP4).

  • I cannot toggle between front and rear cameras on my iPad 4; any ideas?

    I cannot toggle between front and rear cameras on my iPad 4; Any ideas?

    Make sure IOS is updated to latest version
    Reboot device by pressing both the home button and sleep/wake (power) buttons at the same time for 10-15 seconds until the apple logo appears on the screen, then let go.
    If that doesn't work then reset the device by going to settings/general/reset/reset all settings

  • Agent Desktop's agent state toggles between "ready" and "reserved

    Hello and thanks for all of your past help.  I have a user whos'e Agent Desktop's agent state toggles between "ready" and "reserved when no calls are coming in to he IP Phone 7941 or 7961.  Can anyone help?
    Thanks, Chet

    Is the agent's phone actually ringing at all? If not I suspect the IP IVR ports are unable to call the agent. UCCX tries to send a call to the agent so it sends the reserve event to the agent and then tries to send the call to the agent but is failing so it cancels the event flicking the agent back into ready. Perhaps check to make sure that the ports have an appropriate calling search space to call the agent extension. Maybe configure a phone the same as the IVR port and check to see if you can call the agent extension?
    Cheers,
    Nathan

  • How to change the capture resolution of CaptureDevice and toggle between front and rear camera

    Hi. I'm using Visual Studio 2013, and the Windows Phone App template. I'm using the Microsoft.Devices / CaptureVideo API to capture video. I now want to set the resolution to capture the video in a specific(available) resolution. How do I do that?
    Code snippet reference to API:
    CaptureVideo vcDevice = CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice();
    and I also want to put a button there to toggle between front and rear camera. If I click the button, and the rear camera is currently active, the front camera must become active and vice versa. How do I do that with this API?
    Thank you.

    visit this page to know how.
    http://stackoverflow.com/questions/25466088/how-to-switch-to-front-camera-in-windows-phone-8-1-winrt-jupiter

  • Help needed with singleSelection and multiple selection in table.

    Hi ,
    How do i implement the singleSelection and multipleSelection on table rows.
    How do i capture the checked rows?
    How should the code be written and where should it be written.
    I should be capturing the values of the checked rows and pass it to the pl/sql package.
    I have a table - in -table so there is a singleselection on the outer table and multiple selection on the Inner table.
    Could anyone help me with this.
    Thanks,

    One solution to most of your questions : Read the advanced table section of Dev guide.
    Always go through the dev guide before putting up the issue. Let the forum be for those scenarios which dev guide doesn't covers in much detail.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • PLMD_AUDIT - Toggle between Display and Change - Important!!

    Hello all,
    I've a problem when I work on PLMD_AUDIT.
    Pre-requisite for replicating the issue.
    1> Change the settings in PLMD_AUDIT (a face like icon) to Display mode
    When I run PLMD_AUDIT for an Audit with Action, it displays me the "Grouping" field and the "Involved Persons" tab values correctly.
    But when I toggle from Display to Change, the value in "Grouping" and the "Involved Persons" tab vanishes.
    Can you please check in your system and let me know if you also face this issue?
    Thank you in advance,
    Vaishnavi

    Hello Keerthi,
    Thanks for your reply.
    Please follow the below mentioned steps.
    1) Change your time zone to a different time zone other than the created time zone of the action.
    say if action has been created in London time zone, change system zone to some other than London.
    2) Change the Settings in PLMD_AUDIT tcode (face like icon) to Display
    3) Open any audit WITH ACTION.
    4) When you double click on Action inside the audit, the action will be opened in Display mode.
    5) Now toggle between Display and Change.
    6) Kindly check if the values in the "Grouping field" and BUPA roles in "Involved Persons" tab are present now after toggling?
    Please let me know at the earliest.
    Your assistance is highly appreciated in this regard.
    Thanks in advance,
    Vaishnavi

  • Every time I toggle between silent and regular sound the sound effects disappear on mail how do I fix it?

    Every time I toggle between silent and regular sound the sound effects disappear on mail how do I fix it?

    With headphones?
    With speaker?
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                              

  • UCCE 8.5 Sometimes Agents state toggles between Ready and Reserved

    Hi,
    Sometimes Agents state toggles between Ready and Reserved.
    Our System is UCCE 8.5 and components versions are ICM 8.5.4, CVP 8.5, CM 7.1.
    If Help we use QueueTOSkillGroup node with requery.
    thanks

    Hi,
    If agent is getting Reserved and if the call did not arrive to the agent, there few things we need to check like
    * This mostly happens only for few agents with similar series of Extension (like 5XXX)
    * Phone which has this problem, you need to check the Partition/CSS setting from CUCM side
    * You can check Device Target is configured for that Extension (mostly people use Agent Targeting Rule with the range of    Extensions, make sure this exension is covered in that range)
    * You can check in you CVP, whether you have Routes configured for this series of extensions.
    But usually if this kind of instance happened for an agent for 2 call, the Agent should be moved into NOT READY state automatically by the system with the Reason code 50010.
    Are you sure they are going to Ready state ? Are they manually chaning the state to Ready state or it is automatic
    There are lot of posts in the forum with similar issues
    Regards,
    Senthil

  • Cannot toggle between 2g and 3g

    Im from Sri Lanka and my carrier is Dialog. Im unable to toggle between 2G and 3G. Since the 3G signal strength is sometimes weak it drains alot of battery. Please help...

    dulan1086 wrote:
    But doesnt all the other phones (Nokia, Samsung, HTC etc) have it as a device update? It would be easier for the users. We pay for the phone not the carriers
    You pay the carriers to use their network. They set the terms for that. If an iPhone does not meet your needs sell it and buy a phone that does.

  • No toggle between 2g and 3g ... battery life has decreased

    will there b any option to toggle between 2g and 3g in future ? because till ios 8.0.2 update there is no toggle option to switch your network to 2g  and in areas where 3g network is not good the battery life of iphone has decreased significantly.. including mine and many of my friends.. we have wifi at our home and we dont need any cellular data.....

    It's highly unlikely. All supported carriers operate 3G/HSPA+/LTE networks. Most are in the process of completely killing off their 2G/EDGE networks.

Maybe you are looking for

  • Problem with Cast and table operator

    Hi , Am using Table and cast opertor to fetch the data from a collection using a ref cursor as follows OPEN test_cur for SELECT first_name, Last_name from table(cast( V_Test_collection as Test_Array)); This works but when i tried to fetch the date us

  • After updating with Nokia Software Updater my E66 ...

    After updating with Nokia Software Updater my E66 asks for Lock code. Please any body help me

  • Function Module for generating Randon Numbers

    Hi, Is there any Function Module to generate Random Numbers automatically. Say for example: The Lower Limit is 10 and the Higher imit is 30. So is should generete the random numbers between 10 and 30. and it should store in he Data Base level. Please

  • BI Installation

    Hi there, Im currently installing another BI instance. In the later portion, it is asking me for a Solution Manager Key. How can I get this key? Thanks in advance

  • Payroll Error - IndVal of Wage Type

    We are getting an error in payroll results when we enter certain positions as substitutes on the time sheet (PA61). In PALP X012 GEN: the error is: IndVal of wage type 0001: No entry in table T511 for key      0001 on 20090502 Since this is only happ