Highlight on the selected line disappear when af:table lose focus?
HelloI have a strange problem:
I have an af:table select single line based on the VO and an af:inputText in a jsf page.
When I select a row in the table, then click on in the inputText at the entrance, the highlight on the selected line in the table disappear!
The currently selected line is always a controlled beans, but it seems that it is not that any line is selected in the user interface.
Is this a bug of af: table?
My test page:
< af:form id = "f1" >
< af:panelGroupLayout id = "pgl1" layout = "scroll" >
< af:table value = "#{bindings." Var ViewObj1.collectionModel}"="row ".
lines = ' #{bindings. " ViewObj1.rangeSize}.
emptyText = "#{bindings." ViewObj1.viewable? "{'No data to display.': 'Access Denied.'}".
fetchSize = "#{bindings." ViewObj1.rangeSize}.
rowBandingInterval = '0 '.
selectedRowKeys = ' #{bindings. " ViewObj1.collectionModel.selectedRow}.
selectionListener = "#{bindings." ViewObj1.collectionModel.makeCurrent}.
rowSelection = "single" id = "t1" >
< af:column sortProperty = "EmpDeptid" sortable = "false".
headerText = "#{bindings." ViewObj1.hints.EmpDeptid.label}.
ID = "c8" >
< af:outputText value = "#{rank." EmpDeptid}"id ="ot3">
< af:convertNumber groupingUsed = "false".
model = ' #{bindings. " ViewObj1.hints.EmpDeptid.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "EmpHireDate" sortable = "false".
headerText = "#{bindings." ViewObj1.hints.EmpHireDate.label}.
ID = 'c4' >
< af:outputText value = "#{rank." EmpHireDate}"id ="ot7">
< af:convertDateTime pattern = "#{bindings." ViewObj1.hints.EmpHireDate.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "EmpId" sortable = "false".
headerText = "#{bindings." ViewObj1.hints.EmpId.label}.
ID = "c7" >
< af:outputText value = "#{rank." EmpId}"id ="ot6"/ >
< / af:column >
< af:column sortProperty = "EmpJob" sortable = "false".
headerText = "#{bindings." ViewObj1.hints.EmpJob.label}.
ID = "c1" >
< af:outputText value = "#{rank." EmpJob}"id ="ot1"/ >
< / af:column >
< af:column sortProperty = "EmpLineid" sortable = "false".
headerText = "#{bindings." ViewObj1.hints.EmpLineid.label}.
ID = "c5" >
< af:outputText value = "#{rank." EmpLineid}"id ="ot4">
< af:convertNumber groupingUsed = "false".
model = ' #{bindings. " ViewObj1.hints.EmpLineid.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "EmpSex" sortable = "false".
headerText = "#{bindings." ViewObj1.hints.EmpSex.label}.
ID = "c6" >
< af:outputText value = "#{rank." EmpSex}"id ="ot2"/ >
< / af:column >
< / af:table >
< af:panelFormLayout id = "pfl1" >
< f: facet = 'footer' name / >
< af:inputText label = "Label 1" id = "it1" / >
< / af:panelFormLayout >
< / af:panelGroupLayout >
< / af:form >
Thank you
660
Hello
This seems an expected behavior of the skin of the merger.
The selected line inactive thoroughly clear yellow that is hard to recognize on some screens.
solution:
create a custom look (extend the skin of 'fusion') and create css, like this:
AF | : the table-row data: selected: inactive af | : given the column cell.
AF | : the table-row data: selected: inactive af | column: banded-data-cell
{
background-color: blue;
}
concerning
Peter
Published by: hofespet on November 6, 2010 12:45
Tags: Java
Similar Questions
-
How to highlight the selected line in an interactive report in apex5?
Hello
I want to emphasize the selected line in the report by changing the background color of the line. Basically, I want to do this. I really want to do is, select a row in the report and according to the selected line, I want to retrieve other data to another interactive report on the same page. So, how can I do this?
Hi geslin,.
Garza says:
But here shows a link to another page or something like that. But I don't need that. I just want to show when the user selects a specific row by clicking on this line, and it should show that it has been selected by changing the color of the line and after having extracted a few hidden field and according to those column data display data on another report on the same page.
Check your Application-> Page 2 30870. I've set up a dynamic action to reach the line highlighted when selected.
Here are the steps to achieve the highlighted line:
- Changed the definition of class employee culminating point to CSS-> section of the line on the page:
.highlight-employee { background-color: blue !important; color: white !important; }
- Commented the code written in JavaScript-> Execute JS when the section of the page to load the page.
- Edited the ROWID of your interactive report column and set the following properties for 'column link:
Text link: #ROWID #.
Link attributes: id = "" #ROWID # "class ="monlien""
Target: URL
URL: javascript:void (0);
- Dynamic action created with the following properties:
Name: highlight_selected_row
Event: click on
Selection type: jQuery Selector
jQuery Selector: a.mylink
Action: Run the JavaScript Code
Fire on loading the Page: No.
Code:
var row_id = this.triggeringElement.id; $('#P2_NEW').val(row_id); $('#'+row_id).parent().closest('tr').find('td').addClass('highlight-employee');
Scope of the event: Dynamics
Kind regards
Kiran
-
I'm trying to sign several documents and I have my saved signature under "fill & sign" the organization that generated the forms highlighted the signature lines and when I try to put my signature, it is pushed outside the signature.
Hi katepell,
You can simply drag the signature to the desired place by holding it with the mouse.
Thank you
Abhishek
-
How can I default first line below the selected line in the table of the adf
Hello
I use Jdeveloper 11 g,
I created Adf quick query with table and changed selectionListener table as #{CustRMMap.onRMGroupNameChange}.
and when I click on find fast query no row is selected.
I want the first row to be selected / highlighted by default when I click search.
Patel ImranYou can also set an attributeValue in pagedef.xml
bind this attributeValue with column of your table. This sets the value of the selected line to the variable attruibute.
Will now link this with your desired component attributeValue.
Put partial trigger on the component that should display this value.
This will save you to write custom code and use the default table selection listener property, which marks the first default line.Apart from this, if you want to govern the first default line of managed bean selection use this code...
+ _Table = selectionEvent.getSource ((richeTableau)) richeTableau; + *
+ / / the model in the Collection is the object that provides the structured data.
+ / / for rendering table +.
+ TableModel CollectionModel = table.getValue ((CollectionModel)); + *
+ / / the ADF object that implements the CollectionModel is JUCtrlHierBinding. IT +.
+ / /is wrapped by the CollectionModel API.
+ JUCtrlHierBinding adfTableBinding = tableModel.getWrappedData ((JUCtrlHierBinding)); + *
+ / / Acess the iterator ADF, binding that is used with the binding table ADF +.
+ DCIteratorBinding tableIteratorBinding = adfTableBinding.getDCIteratorBinding (); + *+ / / the role of this method is to synchronize the table feature selection +.
+ / / with the selection of the model of the ADF +.
+ Object selectedRowData = table.getSelectedRowData (); + *
+ / / cast of JUCtrlHierNodeBinding, which is the subject of the ADF that is +.
+ / line/a +.
+ JUCtrlHierNodeBinding nodeBinding = selectedRowData (JUCtrlHierNodeBinding); + *
+ / / get the key of the node binding line and set it as the current line in the +.
+ / / iterator +.
+ Key rwKey = nodeBinding.getRowKey (); + *
tableIteratorBinding.setCurrentRowWithKey (rwKey.toStringFormat (true)); + *and another way on the right is a custom like this code:
+ public void setDefaultRow (int count) {/ / call this method your method of selection custom, rom pass the line of the line to select index. count = 0, will select first row + *}
+ try {+ *}
Object oldRowKey = tblMag.getRowKey (); *
+ try {+ *}
This..getSelectedRowKeys () .clear ();
*
* +} catch (System.Exception e) {+ *}
System.out.println (e.getMessage ()); *
+}+
This..setRowIndex (count);
*
RKS RowKeySet =. getSelectedRowKeys();
*
(RKS). Add(. getRowKey());
*
RKS =. getSelectedRowKeys();
*
+.setRowKey (oldRowKey); +
* +} catch (System.Exception e) {+ *}
System.out.println ("error:" e.getMessage ()); + *
+}+
+}+Hope this helps
Concerning
Maryline Roussel -
Enter the selected line only an editable af:table ADF
Hello
We have an obligation to engage only the selected lines in a table. All lines in the table must be modifiable. There should be a 'Save' button in a column that has to save the selected line when you click it.
Could you please share your comments/suggestions.
Environment:
JDeveloper and ADF 11.1.1.7
Thank you
Srikanth
Maybe you can add the attribute transitional to EO as an indicator whether the line should be validated in db or not, override EOImpl.doDML () and skip super.doDML () If this attribute is not set.
Dario
-
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.
-
How to pass the line of the selected as param to taskflow table?
Hi all
Trying to enter values of selected table row and pass them to a taskflow showing as a dialog and to find myself lost. I realized that I can grab a hold of the current line via an associated managedbean but I don't know how I can do this and then pass the values of the selected line as a parameter to a taskflow that appears when you click on view the btn. Think Miss me just something here.
Any help is appreciated,
WraithPerhaps you will help http://www.gebs.ro/blog/oracle/oracle-adf-creating-an-addedit-bounded-task-flow-using-a-new-transaction/
-
Restore the value of the selected line in the editable Table.
Hello, I use Jdeveloper 11.1.2.1.0.
My problem is:
1. Select a line in the editable table.
2. change the value inside elements of the af:inputText of columns.
3. tap on restore.
4. the values of the selected line remains the same.
If I select another line, before the restore, the restore will work as expected.
I want to when you press the button cancel the values of the selected row to be rollback-ed as well.Set the immediate on all the inputTextFields in the table and it worked.
Thank you.
-
Multiple selection query to view the selected line
Hi all
I have a requirements make multiple selection of a region in the table and need to display the values of the selected line in the page.
so I'm able to multiple selection of the table, but all when trying to print the values, it is still only printing selected values of line one not several.
the code I use to print several rows below the selected values.
for (int i = 0; i < fetchedRowCount; i ++) {}
Rowi ABCEOViewRowImpl =
(ABEOViewRowImpl) selectIter.getRowAtRangeIndex (i);
If (rowi! = null) {}
If (Y".equals (rowi.getReprint ())) {" "}
for (int j = 0; j < fetchedRowCount; j ++) {}
String srnum = rowi.getSerialNumber ();
throw new OAException ("after Srno" +)
srnum,
OAException.INFORMATION);
}
}
}
}
where fetchedrowcount - no lines in the region of the table
Here srnum is printing only one value.
Please guide me where to check this problem.
Thank you
DebHi Deb,
Unable to get the requirement. Why the second for loop... ?
Still, the OAException must be thrown exception during the first use that meets the condition.
Please try to use "srnum" in tabular or use it to add all the required values in the for loop and finally throw the exception.
Concerning
Sanujeet -
Toggle buttons control according to the selected line in the table?
Hello
I have used JDev 11.1.1.2.0
On my main page, it has a query section and view the result to a component of the lookup table and also has functioning as (update/deletion) buttons in the toolbar.
I want to toggle buttons operating according to some value of the selected line in the table, and I searched on the OTN forum, found more than issues like that, but seemed no found a good solution.
The table is a unique and has a status column selection, its data type is integer, and I want to activate the buttons when the value of the status field of the selected line is 0 or 1, disable the buttons when the State value is other values.
Code of the table as:
< af:table value = "#{bindings." Var VO1.collectionModel}"="row ".
lines = ' #{bindings. " VO1.rangeSize}.
emptyText = "#{bindingsVO1.viewable?" '} ". No data to display. ': 'Access Denied. »} »
fetchSize = "#{bindings." VO1.rangeSize}.
rowBandingInterval = '0 '.
filterModel = "#{bindings." VOCriteriaQuery.queryDescriptor}.
queryListener = ' #{bindings. " VOCriteriaQuery.processQuery}.
filterVisible = "true" varStatus = "vs."
selectedRowKeys = ' #{bindings. " VO1.collectionModel.selectedRow}.
selectionListener = "#{bindings." VO1.collectionModel.makeCurrent}.
rowSelection = "single" id = "resId1" >
Operation code buttons like:
< af:commandToolbarButton text = "Update" id = "ctb2" action = "editDAF" / >
Any suggestions would be very helpful.
Thank you
zeroxinHello
bind to the attribute in the PageDef file for the status field. Then configure the PartialTriggers property button to point to the ID of the table. Of the disabled button property then points to the status as attribute link
#{bindings.statusField.inputValue == 'value'}
Frank
-
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);
}
-
Hallo,
I want to double click on a line of an af:table to call a page that displays a form (based on a View object) with the details of the selected line.
I need to go to the second page the value of a field on the line that is selected on the first page.
How can I do this? In particular, how can I get the value of a field from the selected line? How can I call the second page on double-click on the af line: table?
Thank you
F.
Why would user, you need to pass a value of the line to the shape?
The framework selects the line you want to display in the form. All you have to do is to show the form with the selected line. It is the framework automatically as long as you use e vo even the same data control.
Timo
Post edited by: Timo Hahn
And the handling double-clicks is described here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf -
Add line before or after the selected line in af:Table
Hello
Please let me know how we can add a line before or after the selected line in the display: table.
Currently I have a table with 2 buttons on toolbar. 1. Add 2. Add after.
The user selects the row and click a button AddBefore and after... then, a blank line must have added in the table according to the clicked button.
Please suggest me your entries.
Thank you
Kiranchk this
http://mjabr.WordPress.com/2011/07/02/how-to-control-the-location-of-the-new-row-in-aftable/ -
Getting a value from all the selected lines in the method of the AM
Hi all
I use JDev 11.1.1.4.0
I have a table with the selection of several lines. In my module application I want to call a stored procedure with the parameter whose value depends on the selected line in the table.
For the only selection I can make fallow:
How can I deal with multiple selection?public void wypiszId() { ViewObject vo = findViewObject("ProcsklView1"); String st = vo.getCurrentRow().getAttribute("IdProcskl").toString(); System.out.println(st);
Kind regards
Wojtek.Hello
VO/iterator will hold only selected line at a time. Thus, for multi table enabled selection, the last selected line would be the selected line (vo / Iterator). In order to obtain all the selected lines, you must obtain support bean by linking the Table of the ADF.
Check out this blog on this goal.
http://blogs.Oracle.com/aramamoo/2010/12/getting_all_selected_rows_in_adf_table_with_multiple_rows_selection_enabled.html
Arun-
-
dataProvider add article before or after the selected line
Hi, guys.
As we know, we can add an element in a data grid by simply call
DG1. DataProvider. addItem (x: object)
I wonder if there is a specific function as addItemAt(x: object, y) who takes an additional number of index as a parameter
Finally, users want to add a new line before or after the selected line in the data grid.
Thank you!
Alex
Collection ArrayCollection subclasses ListCollectionView. ListCollectionView contains the function you are looking for, addItemAt (item: Object, int index).
Sincerely,
Ubu
If this answer was helpful, please mark it as such.
Maybe you are looking for
-
My contacts don't see who I am in a call with?
Hello I'm new to Skype, but I have a question about my calls. members of my contacts don't see who I am in a video call with? can they still "call me"? or I will be offline since I am already in a call? Thanks for any help.
-
Pavilion m7480n upgrade video card
Hello. I own a HP Pavilion m7480n and want to upgrade the video card with one that has HDMI. Is there a specific type/model should I buy? I'm looking for something in the order of $100. I have the original software, including Windows XP. Thank y
-
Wireless CP 2025, put in place the questions
I bought a wireless CP2025 printer. I have a Linksys wireless router and the laptop HP Pavilion G6. I can't the printer for wireless printing. My laptop runs Windows 7 64-bit OS. I had to download the driver from the HP website as installation CD
-
I searched around for group policy, but no luck.
-
Windows 7 + Office 2007 with HP 1200 LaserJet printer: unable to print multiple copies of Excel documents. Also impossible to install the update from the HP Microsoft driver. Windows Update indicates the updated driver available... but fails to ins