tag:blogger.com,1999:blog-5874979429188093780.post4723612567385516902..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: Changed Row Highlighting in Oracle ADF TableAndrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-5874979429188093780.post-65166239296272871902018-03-02T09:20:07.148+01:002018-03-02T09:20:07.148+01:00You can download it from Google Archive: http://an...You can download it from Google Archive: http://andrejusb.blogspot.lt/2017/08/my-blog-samples-download-repository-for.html<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-82492598810383246212018-03-01T12:54:45.957+01:002018-03-01T12:54:45.957+01:00Not able to download ur sample application. please...Not able to download ur sample application. please share AMIMPL method "getRowStatusColor"<br />janbihttps://www.blogger.com/profile/10713651156921095720noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-90862848073456752002017-03-21T09:02:44.990+01:002017-03-21T09:02:44.990+01:00You should switch to similar public class. Search ...You should switch to similar public class. Search on Google - there are answers on Forum with proper public class name.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-89790645840624499352017-03-21T07:58:01.493+01:002017-03-21T07:58:01.493+01:00Hi Andrejus,
I am facing problem with 'Faces...Hi Andrejus,<br /><br />I am facing problem with 'FacesCtrlHierNodeBinding' class.<br />it show illegal internal package while importing package<br />'import oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding'<br /><br />RahulAnonymoushttps://www.blogger.com/profile/03465437408449561624noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-46327254643468338732016-10-10T11:48:18.811+02:002016-10-10T11:48:18.811+02:00You can find it here - https://code.google.com/arc...You can find it here - https://code.google.com/archive/p/jdevsamples/downloads<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-3868065021906166402016-10-09T21:08:09.138+02:002016-10-09T21:08:09.138+02:00hi, thinks for this post
please can you refresh t...hi, thinks for this post <br />please can you refresh the link because i cant download the source!<br />thinksAnonymoushttps://www.blogger.com/profile/02697768417464138308noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-69371151335065375282015-11-19T10:21:38.420+01:002015-11-19T10:21:38.420+01:00Hi Andrejus,
Thanks for a nice post. I had a simi...Hi Andrejus,<br /><br />Thanks for a nice post. I had a similar kind of requirement. there is a table in a page. a user can select multiple rows. On selecting the rows I need to change the background color of the selected rows. How can we achieve this.<br /><br />Thanks in advance...<br />Anonymoushttps://www.blogger.com/profile/05102931982044859580noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-24769015349410616322014-03-04T11:11:55.575+01:002014-03-04T11:11:55.575+01:00My View object is not based on entity, it is read ...My View object is not based on entity, it is read only. <br />Is there any solution for this case?<br />Thanks in advance. :)Aaridrakanoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-20850863573909915452011-03-30T22:45:45.507+02:002011-03-30T22:45:45.507+02:00Thanks for posting this, looks like interesting di...Thanks for posting this, looks like interesting different approach to solve same requirement.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-52776491940112474052011-03-30T22:16:32.706+02:002011-03-30T22:16:32.706+02:00We were able to accomplish highlighting visited ro...We were able to accomplish highlighting visited rows using javascript to avoid PPR. I don't guarantee the following code to work because I stripped out much of it that was unrelated to the highlighting but his should be a good starting point. Note that visitedStyleClass is defined in the skin file and ADF will compress this so you need to get the compressed name for it from the backing bean by indexing the styleClassMap<br />styleClassMap = SkinFactory.getFactory().getSkin(FacesContext.getCurrentInstance(),"YourSkinId").getStyleClassMap(RichAdfRenderingContext.getCurrentInstance());<br /><br />/**<br /> * Called by double click client listener on table<br /> */<br />function handleDoubleClickEvent(evt) {<br /> <br /> evt.cancel();<br /> if (evt.getType()=='dblClick' &&<br /> (evt._target.className == "af_table_data-body" || <br /> evt._target.className == "af_table")) {<br /> // If the event came from the table body (white space), then we don't<br /> // want to continue. <br /> return;<br /> }<br /> */<br /> table = evt.getSource();<br /><br /> if (table == null) {<br /> return;<br /> }<br /> <br /> var rowKeySet = table.getSelectedRowKeys();<br /> <br /> // We are only interested in the last row if multiple<br /> // rows are selected.<br /> var lastRowKey = null;<br /><br /> for (rowKey in rowKeySet) {<br /> lastRowKey = rowKey<br /> }<br /><br /> if (lastRowKey == null && navAction == null) {<br /> // Restore cursor to default<br /> document.body.style.cursor = "default";<br /> return;<br /> }<br /><br /> var peer = table.getPeer();<br /> if (peer == null) {<br /> // Restore cursor to default<br /> document.body.style.cursor = "default";<br /> return;<br /> }<br /> <br /> // Code to highlight visited row without refreshing data from server<br /> if (typeof visitedStyleClass != 'undefined' && visitedStyleClass != null && lastRowKey != null)<br /> {<br /> var rowInfo = peer.FindRowByKey(lastRowKey);<br /> if (rowInfo != null) {<br /> var row = rowInfo.tr;<br /> if (row) {<br /> var columns = row.cells;<br /> for (var colIndex=0;colIndex<columns.length;colIndex++) {<br /> var col = columns[colIndex];<br /> col.setAttribute("class", col.className + " " + visitedStyleClass);<br /> }<br /> }<br /> }<br /> }<br /><br />}Don Kleppingernoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-52863935682483836122011-03-30T21:47:57.675+02:002011-03-30T21:47:57.675+02:00You can change the hightlighted and selected color...You can change the hightlighted and selected colors by editing the Skin file for your app. Something like this<br /><br />af|table::data-row:highlighted af|column::data-cell,<br />af|table::data-row:highlighted af|column::banded-data-cell {<br /> background-color: #DCF0AB;<br />}<br /><br />af|table::data-row:selected:focused af|column::data-cell,<br />af|table::data-row:selected:focused af|column::banded-data-cell,<br />af|table::data-row:selected:inactive af|column::data-cell,<br />af|table::data-row:selected:inactive af|column::banded-data-cell,<br />af|table::data-row:selected af|column::data-cell,<br />af|table::data-row:selected af|column::banded-data-cell{<br /> background-color: #B2CA7E;<br />}Don Kleppingerhttps://www.blogger.com/profile/02266023115878336856noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-71931013620690080782011-01-27T07:38:58.258+01:002011-01-27T07:38:58.258+01:00Its a bit different problem, not one described in ...Its a bit different problem, not one described in blog post. I think, you will not avoid using PPR.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-83268482393463715592011-01-27T01:14:08.691+01:002011-01-27T01:14:08.691+01:00Afroz.
Did you find a solution for your behavior?...Afroz.<br /><br />Did you find a solution for your behavior?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-62072641531995662192010-12-28T14:10:45.684+01:002010-12-28T14:10:45.684+01:00Hi Andrejus,
I am trying to achieve similar resul...Hi Andrejus,<br /><br />I am trying to achieve similar result for my table which is read-only. I have check box column to select the row which is bound to "isSelected" attribute of my View object. Selecting the row using this checkbox should highlight the row. I have code like this:<br /><br />"af:column sortProperty="poName" sortable="true" headerText="#{pdcviewcontrollerBundle.NAME_0}" <br />id="c3" inlineStyle='#{(row.isSelected)?"background-color: #E7E7E7":""};' "<br /><br />My issue is, above solution does not work if I do not set partial trigger on table for the check box. However, doing this refreshes whole table everytime I select/deselect the checkbox. Any idea how to resolve this? My table can have huge data and everytime refresh will be overkill.<br /><br />Regards,<br />AfrozAnonymoushttps://www.blogger.com/profile/16309652374758513925noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-153014377136513772010-04-07T12:05:22.513+02:002010-04-07T12:05:22.513+02:00hi andrejus
thanks for support , but i am new in ...hi andrejus<br /><br />thanks for support , but i am new in adf , my task is to create many details for specific master record ( i want add many items for specific customer) ???Anonymousnoreply@blogger.com