See the of the selected line in the outputText

Hi all

I have table with multiple choices. I want to show not selected line in the output text and display a warning if the user select more than 10 lines. How can I do?

Use code below

privateList getSelectedList(String tableName) {

RichTable rt = (RichTable)JSFUtils.findComponentInRoot(tableName);

RowKeySet keySet = rt.getSelectedRowKeys();

Iterator iter = keySet.iterator();

iter = keySet.iterator();

List list =newArrayList();

while(iter.hasNext()) {

list.add(iter.next());

}

returnlist;

}

Retrieves the size of a list and display the warning to the help link below.

http://www.techartifact.com/blogs/2013/01/show-afmessage-programatically-in-ADF-techartifact.html

Tags: Java

Similar Questions

  • Selected line AF:table see, when the color

    Hello

    I put some color on the column of my table with this method:

    public String getConditionalBackgroundColor() {}
    System.out.println ("WW:" + executeValueExpression ("#{rank.")) (OvruLibelle}') + "-" + getBindingAttributeValue ("OvruLibelle"));
    String res = "";
    String color = (String) executeValueExpression ("#{rank.") OvrtColor}");
    If (color is nothing)
    Color = "";
    If (color.equalsIgnoreCase ('green'))
    RES = res + "background-color: lightgreen;" \n » ;
    ElseIf (color.equalsIgnoreCase ("blue"))
    RES = res + "background-color: color lightblue;" \n » ;
    return res;
    }

    But now I don't see when a lines which is colorful, is selected...

    I can't find a solution... I would like the line becomes blue when selected, as before...

    Kind regards
    Julien

    Hello

    I think you want the selected lines to bottom right blue color?

    If Yes, you can override the default property that is given for af | : the table-row data: selected

    AF | : the table-row data: selected af | : given the column-cell, af | : the table-row data: selected af | column: {banded-data-cell
    make-weight: bold;
    color: Blue;
    or
    background-color: blue;
    }

  • The application has failed to start because its side-by-side configuration is incorrect. See the application event log or use the command-line sxstrace.exe for more details

    Hello

    I can t open Google Earth or Microsoft Office programs because I get this message - the application could not start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe for more details.

    A few days ago I could open all what programs. I put t know what is the problem.

    I did sxstrace and that's what I have-

    =================
    Launch the activation context generation.
    Input parameter:
    Flags = 0
    ProcessorArchitecture = Wow32
    CultureFallBacks = en-US; en
    ManifestPath = C:\Program Files (x 86) \Google\Google Earth\client\googleearth.exe
    AssemblyDirectory = C:\Program Files (x 86) \Google\Google Earth\client\
    Application configuration file =
    -----------------
    INFO: File analysis shows C:\Program Files (x 86) \Google\Google Earth\client\googleearth.exe.
    INFO: Manifest definition identity is (null).
    INFO: Reference: Microsoft.VC80.CRT, processorArchitecture = "x 86" publicKeyToken = "1fc8b3b9a1e18e3b", type = "win32", version = "8.0.50727.4053"
    INFO: Resolving reference Microsoft.VC80.CRT, processorArchitecture = "x 86" publicKeyToken = "1fc8b3b9a1e18e3b", type = "win32", version = "8.0.50727.4053".
    INFO: Resolving reference for ProcessorArchitecture WOW64.
    INFO: Resolving reference for the neutral culture.
    INFO: Application binding policy.
    INFO: No found publisher policy.
    INFO: No redirect political connection is found.
    INFO: Start the detection of assembly.
    INFO: Can't find the assembly in WinSxS.
    NEWS: Try to detect manifest to C:\Windows\assembly\GAC_32\Microsoft.VC80.CRT\8.0.50727.4053__1fc8b3b9a1e18e3b\Microsoft.VC80.CRT.DLL.
    INFO: Found no manifesto for the neutral culture.
    INFO: End detection of assembly.
    INFO: Resolving reference for ProcessorArchitecture x 86.
    INFO: Resolving reference for the neutral culture.
    INFO: Application binding policy.
    NEWS: Control strategy of the Publisher C:\Windows\WinSxS\manifests\x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.5592_none_517247830f45081d.manifest
    INFO: Start the detection of assembly.
    INFO: End detection of assembly.
    ERROR: Activation context generation failed.
    End activation context generation.

    Help, please!

    This type of error can be caused if the Visual C++ library runtime components are missing or because of a third-party software.

    Follow the steps below:
     
    Method 1:
    If the problem is caused by the lack of Visual C++ libraries, you can download and install the Runtime components of Visual C++ libraries from the link below:
     
    This error can occur when the Microsoft .NET Framework installation on the computer is damaged or is missing.

    Try it out below step to reinstall and repair installation of Microsoft .NET Framework on the computer, then check if you can install the software.

    (a) click the Start button, select Control Panel, click programs and then click on 'Turn Windows has or not.' If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    (b) search for Microsoft .NET framework 3.5.1 uncheck, click OK and restart the computer.

    (c) after the reboot, open again "Turn Windows features on or off" and place a check next to Microsoft .NET framework 3.5.1 and restart the computer.

    Step 2

    If the previous step fails, then I suggest that you manually download and install Microsoft Visual C++ 2005 and 2008 Redistributable Package and check to see if you can install the software.

    In programs and features, you do not show that you have installed Microsoft Visual C++ 2005 Redistributable and Microsoft Visual C++ 2008 Redistributable? If this is not the case, download the links here.
     
    Package redistributable Visual C++ 2005 (X 86)
     http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en
     
    Visual C++ 2005 (x 64) redistributable package manager
     http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=eb4ebe2d-33c0-4A47-9dd4-b9a6d7bd44da&displaylang=en

    Package redistributable Microsoft Visual C++ 2008 (x 86)

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

    Package redistributable Visual C++ 2008 SP1 (x 64)
     http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en

    I hope this helps.

  • ObjectListField selected lines show white on the Curve 8530

    I was wondering if anyone else has experienced this problem.  I looked through the forums, but couldn't find any information about it.  I use an ObjectListField, and when you scroll through the items, the line of the selected item becomes all white - if you do not see the text in the line.  Only, this seems to happen on the 8530 (on the Simulator and the physical device).  From a user point of view, it's extremely confusing.

    At first, I thought it could have been something that I was doing wrong, I had created a new class that inherited from the ObjectListField where I was Manager the drawListRow() method myself, but I ripped this custom class is instantiated and used an ObjectListField upward, with the same results described above.

    I know I can shoot myself the selected line in the drawListRow() method explicitly, but then I lose the native handling/styling for some other BlackBerry models - such as the nice blue gradient storm, "BOLD", etc...

    Any ideas on that?  Is this a known problem?  Is there one solution other than of coloring the line myself?

    Thank you in advance!

    T

    It seems unlikely that this would be a bug.

    Make sure that you have not replaced a method that you shouldn't have.

    Do you use some kind of custom on the 8530 theme?

  • before the "recalled" in the table selected lines

    12.1.3 JDEV

    It is difficult to explain the problem I see. So, I use a page to explain.

    I have a page with a few fields like these. The Magnifier is related to a taskFlowCall.

    PickListFields.jpg

    When click on the magnifying glass, pilot field, a pop-up screen will appear. The user clicks on search and retrieve a few results. The user selects then a few lines of the output. Click OK to close the pop-up window and return the results selected to pilot field.

    PickListPopup.jpg

    Now, the user clicks the magnifying glass on the field of the expedition. a shortcut for sending screen. Search to retrieve a few lines. Notice: two rows on the result table are highlighted when the first returned search results. They seem to be selected, but not really. Now, if the user selects OK to return, the rows returned are empty. The table of results of research somehow 'remember' the previous index of the selected row.

    If the user selects the other lines of the search results table and click OK, the rows selected by the user are returned correctly.

    PickListPopup2.jpg

    These windows two popup called the taskFlowCall even with different input parameter values.

    No idea how to solve this problem?

    Thank you.

    You can try to clear the selected rows from the table in your managed bean and run this code entering into the taskflow.

    RowKeySet ps = this.dynamicTable.getSelectedRowKeys();
    ps.clear();
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.dynamicTable);

    In addition, mention the similar question previously asked: remove highlighting from the selected line in the table

  • Updated all the selected lines in a table.

    Hello

    Jdev Version 11.1.2.3.0

    I'm trying to update all the selected rows in a table with several choices.

            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            ViewObject vo = am.findViewObject("RegistrationHistory1");
            RowKeySet selectedRegistrations = historyTable.getSelectedRowKeys();
    
    
            if (selectedRegistrations != null) {
                Iterator iter = selectedRegistrations.iterator();
                    while (iter.hasNext()) {
                        Object facesTreeRowKey = iter.next();
                        Row[] row = vo.findByKey((Key)((List)(facesTreeRowKey)).get(0), 1);
    
    
                        if (row != null && row.length == 1) {
                            Row r = row[0];
                             r.setAttribute("Attr", "1"); 
                        }
                    }
              }
    

    But after I put the attribute on the line. My iterator ignores most of the lines and they don't last updated.

    It works very well for the removal of the line well.

    Any suggestions?

    It turn out that I got a try catch and in the catch, I had a log (e.printStackTrace ()) and I do not see a single line in the diary saying ConcurrentModificationException appearing all the time.

    Looks for read-only access to an attribute or delete lines is OK to iterate over the selected lines, but it's different for the modification of an attribute.

    The code that worked:

    Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    Entry DCIteratorBinding = bindings.findIteratorBinding ("RegistrationHistory1Iterator");

    RowSetIterator regRSiter = regIter.getRowSetIterator ();

    RowKeySet selectedRegistrations = historyTable.getSelectedRowKeys ();

    Object [] keys = selectedRegistrations.toArray ();

    for (Object key: keys) {}

    Line currentRow = regRSiter.getRow ((Key) ((List) key) .get (0));

    removeOrModify (currentRow);

    }

  • How to make the selection line more dark?

    It's my first time to use Photoshop CC, however, it is very difficult for me to see the selection line when I use "selection tool" to select an area, it is possible to adjust the darker line?

    Currently, I don't know of a way. However, I recommend that you post a suggestion on what makes the color and thickness of the pieces in the suggestion of photoshop forum.

    Community customer Photoshop family

  • How to return the lines after a selected line

    Hi there, I need return the straight after that the condition I have is filled...

    given the following table:

    date col ID
    123 Y 29/02/2013
    123 X 27/02/2013
    * 123 Y 26/02/2013 *.
    123 Z 26/02/2013
    * 123 X 25/02/2013 *.
    123 Z 25/02/2013

    I need a query that retrieves all rows that come immediately after col = 'Z' it is
    123 X 25/02/2013
    123 Y 26/02/2013

    Any help would be appreciated,

    Hello

    Martel wrote:
    Hi there, I need return the straight after that the condition I have is filled...

    given the following table:

    date col ID
    123 Y 29/02/2013
    123 X 27/02/2013
    * 123 Y 26/02/2013 *.
    123 Z 26/02/2013

    The 2 highest ranks (and the 2 lines below, by the way) seem to have the same date. I guess there is something that you are not showing that puts unqmbiguously in the order listed.

    * 123 X 25/02/2013 *.
    123 Z 25/02/2013

    I need a query that retrieves all rows that come immediately after col = 'Z' it is
    123 X 25/02/2013
    123 Y 26/02/2013

    It's just that the analytic LAG function.

    Any help would be appreciated,

    Here's one way:

    WITH   got_prev_col     AS
    (
         SELECT     id, col, dt     -- DATE is not a good column name (id isn't so good, either)
         ,     LAG (col) OVER ( PARTITION BY  id  -- or omit PARTITION BY clause
                                    ORDER BY      dt
                          )  AS prev_col
         FROM    following
    )
    SELECT     id, col, dt
    FROM     got_prev_col
    WHERE     prev_col     = 'Z'
    ;
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data. For example, what makes one of the lines 26/02/2013 come in front of the other. Explain what id role plays in this problem. better yet, include a couple of different id values in the sample data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • Why SESSION 1 can see the line update?

    --- SESSION 1
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          A
    2          B
    3          C
    SQL> update test set name = 'D' where id = 1;
    1 rows updated
    SQL> 
    SQL> rem  uncommitted this transaction
    SQL>
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          D
    2          B
    3          C
    
    ---- SESSION 2
    SQL>
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          A
    2          B
    3          C
    SQL>
    SQL>
    Question:
    Why SESSION 1 can see the line update? If the transaction had not been validated. before you see the updated row, which the database to submit to win the line?
    I know that SESSION 2 can not see the update line, since it occurs compatible read.

    Lonion wrote:

    --- SESSION 1
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          A
    2          B
    3          C
    SQL> update test set name = 'D' where id = 1;
    1 rows updated
    SQL>
    SQL> rem  uncommitted this transaction
    SQL>
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          D
    2          B
    3          C
    
    ---- SESSION 2
    SQL>
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          A
    2          B
    3          C
    SQL>
    SQL>
    

    Question:
    Why SESSION 1 can see the line update? If the transaction had not been validated. before you see the updated row, which the database to submit to win the line?

    SESSION 1 can see the data that changed since the SESSION 1 fact change.

    I know that SESSION 2 can not see the update line, since it occurs compatible read.

  • the mobile dotted see, but more "secretly" selected

    I have a question about something odd in photoshop that I see.
    I am preparing a scanned document and white coloring is for use in a process of animation:
    -levels of affect abandon gray paper, stained, areas increase the contrast a little
    -J' I select / delete all the white of the digitized design (various methods: channels, magic wand, select color range)
    -J' I unselect the outer part (bg area) of the image.
    -I make a new layer, expand the selection by 1 pixel.
    So, here's the strange thing:
    I look at the moving dotted line closer to the size of the pixel and can see clearly what they're selection / do not select.
    I then fill the selection with the color, but I'm ALSO a bit of filling leaking out of my selected area. The character has little hairs on the head, and these have been deactivated according to what was told mobile dotted. But it's like Photoshop has been secretly by selecting pixels without showing me.
    I think this, because if I deliberately deselect one of these slight extra hair areas, they do not receive any color when I then use the fill command.
    Y at - it a filter or adjustment that affects how the moving dotted line directly and fully show what is selected, with NO SECRETS? This seems like a bug to me.

    Mobile dots show where a pixel is selected, less of that there will be no mobile dashed more than 50%.  Areas that are selected (where you can not see the moving dotted line) are so clear grey areas in your picture that you thought you completely cleaned, but some brands have remained.

    Try the following - create a threshold adjustment layer and perform the adjustment of threshold at the maximum value (255) - this will appear then all areas which are not 100% white. Once it is completely cleaned, remove your threshold adjustment layer. You can then use your own image to make a selection.

  • to access the data of the selected line in an EL expression

    Hello world

    I'm new to JDeveloper/JHeadstart platforms. I've been playing with some prototypes of pieces of a new application I want to build on this platform. I came across a problem that I think should probably have a really simple solution, but I don't have any character of chance what this solution, so maybe I'm wrong! ;)

    Here's what I'm trying to do. I have a main view which must show the links of two detail views. I have a group in my definition of the JHeadstart application reflecting the main group, and two groups of detail under this group corresponds to the detail view. Each of these groups of detail are also attributed to a group of retail area. Detail groups are set to be on the "same Page" as the main group, with 'Same Page Display Position' "under the Parent Group". I want to show or hide one or other of the Group detail regions based on the "Type" column of the line currently selected in the table for the main view.

    For example, if the line currently selected in the table of the main view a Type 'A' in the same row, so I want the table in the area of Group detail for detail has to be displayed. I need to write an EL expression in the 'Expression rendered' for region group in detail to compare the type on the line currently selected in the table for the main view type corresponding to this region.

    I tried at least 10-12 different expressions to try to achieve, but after all my attempts various, I really think I should be able to achieve this with one of the following expressions:
    #{bindings. MainViewTable.currentRow.Type eq 'A'} or
    #{bindings. MainViewIterator.currentRow.Type eq 'A'}

    I say that, in my view, that it should work because when I run the application using this expression, I get the exception:
    javax.faces.el.PropertyNotFoundException: error getting property 'Type' of bean of type testapp.model.views.MainViewRowImpl

    When I saw this, I thought "Bingo - I am something. I didn't have the MainViewRowImpl java file generated, so I generated by accessors, and now I can go look at the java file to MainViewRowImpl and see the accessor public getType(). However, after I rebuilt and re-directed the project, I still get the same error.


    Am I missing something easy here? It seems to me that I have this really shouldn't have too much difficulty by lifting a piece of data of the currently selected row in a table in an EL expression, but then, I don't know much about EL again!

    Hello Ryan,

    You can simply use #{bindings. MainViewType.inputValue eq 'A'}

    JHeadstart will generate a link attribute (MainViewType or something similar) that will always point to the value of the attribute in the current line.

    Kind regards
    Evert-Jan de Bruin
    JHeadstart team

  • Is there a way to see the actual fonts in the drop-down "Select a font" of a message window?

    When you select a font for a message in Thunderbird, the only way I can find to see what looks like the police is really change the font of text that I have already written. To try several fonts randomly would be a pure waste of time.

    I use an old version of MS Word, which has the ability to allow the user to see the actual fonts displayed in the font selection drop-down list.

    Is it possible to configure Thunderbird for this?

    The short answer is no.

  • In a sequence of CTF, is it possible to obtain a text file of sequence clips display? There is a display of text file for clips (cmd-9). Zoom the timeline cancels the ability to see the whole sequence of the time line.

    In a sequence of CTF, is it possible to obtain a text file of clips in sequences display (name and duration)? There is a display of text file for clips (cmd-9). Zoom the timeline makes this visible annotation for shorts, cancels but the ability to see the whole sequence of the time line. Of course, it would help my editing.

    TIA

    In Final Cut Pro 7, you can use editing > find command to search on used clips in the sequence. See if there is an equivalent command in FCE. Unfortunately, I can't determine that at first hand on my system. (In addition, if you are still interested whereas FCP X, there the so-called Timeline index which provides quick access to a list of markers, clips, effects, etc..)

    Good luck.

    Russ

  • How can I force the Finder to show all files in a folder of Capitan?-instead of always having to click on "Show all" to see the full selection of files.

    How can I force the Finder to show all files in a folder of Capitan 10.11?-instead of always having to click on "Show all" to see the full selection of files.

    It is not often that I said ' what are you talking about"but" what are you talking about? "

    I do not know of all "show all" in the Finder. Can you provide a screenshot?

  • I have a Mac Book Air of 2015 running El Captain I see the airplay icon in my menu bar and I've upgraded to the latest version of the software on my AppleTV 2 but I can not Airpay icon on the menu bar of my mac to turn blue when I select the apple TV conn

    I have a Mac Book Air of 2015 running El Captain I see the airplay icon in my menu bar and I've upgraded to the latest version of the software on my AppleTV 2, but I can't get the Airpay icon on the menu bar of my mac to turn blue when I select the apple TV connected to a HD from LG smart TV. Help!

    Hi, Arghbee1.

    Please visit Apple support communities.

    I understand that you are unable to AirPlay from your Mac to your Apple TV.  Here are some troubleshooting steps that I recommend to go through this problem.

    Get help

    If you do not see the AirPlay icon , make sure that your Apple TV is awake and that it meets the system requirements.

    If you do not see your Apple TV in the AirPlay menu, make sure that your Mac and Apple TV comply with the system requirementsand your software from the Apple TV is updated. Also check your firewall settings:

    1. Choose the Apple menu > System Preferences, click Security & Privacy, and then click the Firewall tab.
    2. Click the lock icon and enter an administrator name and password.
    3. Click Firewall Options.
    4. Deselect the option "block all incoming connections".
    5. Select the option "automatically allow signed software to receive incoming connections.

    If your office does not look great on your HDTV, high-definition TV could apply image quality improvements that are not the best for the computer images. Check the manual of your HDTV for more information on how to adjust your HDTV settings for use with a computer. Your HD TV could offer a more appropriate display mode, such as the computer or game mode mode. Also try adjusting the HDTV settings like sharpness, retail building and noise reduction.

    If you mirror your screen and the image correspond to your HDTV screen, you can adjust the size of the Office for the best image. Click the AirPlay icon, and then select an option under "game size desk to." If you fit to desktop size to your Apple TV, the image fills the screen HDTV but will not look as good on your Mac screen. Learn more about overscan and underscan and what you can do about it.

    If AirPlay disconnects itself, your wireless network can be too busy or have too many wireless interference to maintain the connection of the antenna. Learn how to solve the problems of Wi-Fi connectivity. The manual of your router network may have additional suggestions for maintaining a strong and fast connection with your devices.

    Use AirPlay to view a video of your Mac on a HDTV

    See you soon

Maybe you are looking for