No rows to modify -- the row enclosing tag missing.
I'm using the XDK in Java to process a number of XML files, loading into an Oracle DB relational table. I use OracleXMLSave.setXSLT to set a stylesheet to transform the input XML into the desired form for OracleXMLSave.insertXML and use OracleXMLSave.setRowTag to identify the row element in the transformed XML. I want to process all XML files in a single transaction (all or none get loaded).
The problem I am having is that some of the XML files do not have any rows to insert (they have content, but not the desired content). The XSL file creates a valid XML document with no rows. However, when processed by OracleXMLSave.insertXML, the following exception results:
Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: No rows to modify -- the row enclosing tag missing. Specify the correct row enclosing tag.
This causes processing to terminate, rolling back all previous inserts. I also tried modifying the XSL to create an empty row element. I would like a way to tell insertXML that rows may not exist in the input XML and that an exception should not be created for this. Anyone know a way to do this? Currently, I am trying to preprocess the files to make sure there will be rows before calling OracleXMLSave.insertXML.
Thanks,
John
Read the FAQ, do some searches for something like OraclePreparedStatememt..
Message was edited by:
mdrake
Similar Messages
-
JTable: After one row is modified, the row should have red color background
After one row is modified(using setValueAt()),
I want the modified row to have red color background color.
How can I do that? I tried.
JTableInstance.setBackground( Color.RED);But it sets all the rows not the only modified row.import java.awt.*;
import java.util.ArrayList;
import javax.swing.*;
import javax.swing.table.*;
public class TableChangeTest extends JFrame {
public TableChangeTest() {
initComponents();
renderer = new MyTableRenderer();
table.setDefaultRenderer(String.class, renderer);
int row = 0;
table.setValueAt("test1",row,0);
rowsChanged.add( row );
row = 2;
table.setValueAt("test2",row,1);
rowsChanged.add( row );
private void initComponents() {
panel = new JPanel();
scrollPane = new JScrollPane();
table = new JTable();
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
setTitle("Table Change");
panel.setLayout(new BorderLayout());
table.setModel(new DefaultTableModel(
new Object [][] {
{"1", "a"},
{"2", "b"},
{"3", "c"},
{"4", "d"}
new String [] {
"Title 1", "Title 2"
Class[] types = new Class [] {
java.lang.String.class, java.lang.String.class
public Class getColumnClass(int columnIndex) {
return types [columnIndex];
scrollPane.setViewportView(table);
panel.add(scrollPane, BorderLayout.CENTER);
getContentPane().add(panel, BorderLayout.CENTER);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setBounds((screenSize.width-357)/2, (screenSize.height-241)/2, 357, 241);
public static void main(String args[]) {
new TableChangeTest().setVisible(true);
private JPanel panel;
private JScrollPane scrollPane;
private JTable table;
private TableCellRenderer renderer;
private ArrayList rowsChanged = new ArrayList();
class MyTableRenderer extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent(
JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) {
super.getTableCellRendererComponent(table,
value, isSelected, hasFocus, row, column);
setBackground( Color.white );
if( rowsChanged.contains(row) ) {
setBackground( Color.red );
return this;
} -
How to lock the rows in a transaction so others cant modify the rows
Hi,
I want few suggestion in the following scenario .
I have a few records ( say 100 ) in a table which Im sending to the client over a network and are populated in a swing GUI...Now the client selects few of them ( say 3 ) and submits to the server. Now the server should assign a number to those rows and store them in the database. As it is a multi client environment While assigning the number it should check that no other client has already assigned a number to at lease to one of the row in the meantime. in that case it shoudl fail.
In this case i want to lock those 3 records when the request arrives at the server assign number commit and release the lock.
I want to avoid deadlocks.
Can any one suggest me whoch locking policy should i use and how ?
Thanx in advance...
MahiIt depends on how acceptable it is for your commit to fail. By far the easiest and safest thing to do is use Optimistic Locking. This way if the server tries to commit changes to something that has already been committed, an Optmistic Lock exception will be thrown. It's up to your application to handle this, and depending on your domain and the likelyhood of this happeneing, you could just tell the user "try again". The other option is pessemistic locking, which is very, very, dangerous (in my opinion). The main issue is that it's resource intensive, and different databases have different semantics on how it works.
IIWY, I'd look at Optimistic Locking in the docs and go from there.
- Don -
How can i use the highlight row to select the row on a report
The row is highlighted as I move the mouse how can I select this row without having to make a column a text link.
thanks in advanceHi
Try this out.
Create or alter a report template. In the 'Before Each Row' section paste:
<tr onMouseOver="cOn(this);" onMouseOut="cOut(this);">
In the 'After Each Row' section paste:
</tr>
In the report page definition click on the page attributes and navigate to the HTML Header section. Paste the following script into this section:
</script>
<script language="JavaScript1.2">
function cOn(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#cccccc";
function cOut(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#ffffff";
</script>
In the report region navigate to the 'Layout and Pagination' section and select the report template you altered above.
Now the report row will get highlighted when you mouse over. If you want to change colors, edit the color attributes in the javascript.
Regards
Kiran Akkiraju -
There was a row nad now the row is no longer in the standard report
Hi All
we have one Webi report which display Earned Value Financial report.
Recently user complaints that one of the row has been disappear in the report.
I just had a look and i couldn't find how this has been disappeared? is it possible to add it again?
I am new to BO. so can any one help me on this?
ThanksHi,
Copy the report SQL and run on the database.and see number of records are same or not.
check the same record is exist in the database on same conditions.
Thanks,
Amit -
Add dynamic buttons to each report row and bind the row data to buttons specific to that row
I have a page with a form at the top and a report at the bottom which is tied to a table. I need to add a pair of buttons for each row of the table and add dynamic actions for these buttons. I need to submit the data corresponding to the row to a REST service and refresh the table/row. I know it is possible to add ajax call and refresh the table after the response is received. But I am not sure how I can dynamically include a pair of buttons on each row and have the access the data corresponding to the record when a particular button is clicked. I was not able to find such a feature using the help page. Can you please let me know if this is possible. Thanks in advance.
Below is the representation of how I need the page to look like.
Col 1
Col 2
Col 3
data 1
data 21
data 31
Button 1
Button 2
data 2
data 22
data 32
Button 1
Button 2
data 3
data 23
data 33
Button 1
Button 2
data 4
data 24
data 34
Button 1
Button 2
I should be able to access data 1, data21, data 31 from button 11 and button21 etc.select data1,
data2,
data3,
null button1,
null button2,
rowid r_id
from .....
If you edit the column for button1 and navigate to the Column Formatting region you can create your button here, several different ways. You will need to play around with how you prefer. See below:
<input class="button1" type="button" id="#R_ID#" value="label for the button" /> or <button id="#R_ID#">label for button</button> or you could use <a> and apply css of your theme.
You also create both buttons in a single column. From here you can reference any of the columns from your select by using the #COLUNMNAME# format (as I did with R_ID).
You will next need to something similar for all columns you want to be able to grab when you click the buttons. See below:
--- This would be for data1 column
<span id="D1-#R_ID#">#DATA1#</span>
You would do these for each column that you want access to when button clicked as mentioned above. You could bypass this step and use jquery to traverse the DOM using .closest() and .find() and give each column a distinct class. Is is your preference.
You would then create a dynamic action triggered when .button1 is clicked. Now that you have that object you can get the id of the triggering object which would be your r_id and from there you can access all your individual data points(all this done in a javascript in the dynamic action) and assign to hidden items on your page. The next step of that dynamic action you could execute pl/sql and pass those in page items.
Hope that all makes sense.
David
Message was edited by: DLittle
Just as a bit of clarification: the r_id column does not have to be rowid, but it does need to be unique for each row return. You could use your primary key or rownum. Whatever works for your scenario. -
How to set row height of the row in the interactive report?
Some of the values in the columns of my interactive report are wrapped up changing the height of the row to 2 or 3 characters.
Is there any way to change it? I would like to have all rows set to 2 characters height.
RobertAdd the following style sheet to the page HTML Header.
<style>
table.apexir_WORKSHEET_DATA td {
height: 2.8em;
</style> -
ADOBE - Why is the meta "viewport" tag missing from the jQuery Mobile Web starter pages?
Hi -
I'm just starting to play with mobile and responsive web design. I worked out a mobile version of an existing site which looked good locally but when I uploaded it the site appeared miniaturized and not optimized for small viewports. All the text, images, buttons, etc - were tiny on the iPhone screen when the site was supposed to adapt to the small screen. It took me a few hours of hair pulling to find out that the most important tag of all was missing:
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Why on earth would Adobe tout that their web dev application has features to springboard mobile design if the starter pages don't even include the fundamental tag that makes a site viewable on mobile screens ??
Is my version of Dreamweaver missing something? Version 12/build 5861, Mac OS X 10.7.5 ? Or has someone at Adobe forgot to test this product? Or am I just crazy (besides being mad as hell)?
thanks,
JoshSorry, Im not sure where you are looking, but here is the code directly from my #s3
slider.css page. You'll see that the change you suggested has been made. I did upload the changes as well.
If this doesn't work, is there a more simple download you can recommend for a 3-4 photo slideshow?
Minibuzz - CSS File For s3Slider JQuery
#s3slider {
width: 960px; /* important to be same as image width */
height: 300px; /* important to be same as image height */
position: relative; /* important */
overflow: hidden; /* important */
#s3slider a.but, #s3slider a.but:visited{color:#fff; padding:0px 0px; background-color:#444; filter: alpha(opacity=90); opacity: 0.9; border:solid 2px #363637;}
#s3sliderContent {
width: 960px; /* important to be same as image width or wider */
position: absolute;/* important */
list-style-type:none !important;
margin-top: 0px;
margin-left: 0px;
*padding-left: 0;*
.s3sliderImage {
float: left; /* important */
position: relative; /* important */
display: none; /* important */
llist-style-type:none !important;
.s3sliderImage div {
position: absolute; /* important */
right:0;
top:0;
font-size: 12px;
padding:0;
width: 390px;
height:340px;
padding:60px 30px 20px 30px;
background-color: #000;
filter: alpha(opacity=60); /* here you can set the opacity of box with text */
opacity: 0.6; /* here you can set the opacity of box with text */
color: white;
display: none; /* important */
bottom: 0px; /*
if you put
top: 0; -> the box with text will be shown at the top of the image
if you put
bottom: 0; -> the box with text will be shown at the bottom of the image -
Finding the most current row where it the row meets all multiple conditions
Need to find the latest barcode to check if it is expired previous to today. Currently getting barcode that has expired but that happened after the stateID changed to 2 not earlier when the stateID is 1 and it needs to be
the current record by date. The expired is done by a scalar function that uses the barcode that calculates an expired container. The expired container from the cte is either 1 for expired or 0 for non expired containers
from the containerHistory table
stateID barCode dateEntered
1 901178-2240 2014-11-15 10:34:09.693
2 901178-2240 2014-11-19 22:07:45.0230
From the cte table
stateID dateEntered barcode containerExpired
1 2014-11-19 22:07:45.000 901178-2240 1
From the global ##Temp table
2 2014-11-19 22:07:45.000 901178-2240
;with cte AS(
SELECT stateID, barcode, dateEntered, containerExpired
FROM barcode.dbo.ContainerHistory
WHERE dateEntered >= DATEADD(DAY, DATEDIFF(DAY, 0, CURRENT_TIMESTAMP) -7, 0)
AND dateEntered < DATEADD(DAY, DATEDIFF(DAY, 0, CURRENT_TIMESTAMP), 0)
AND stateID = 1 AND containerExpired = 1
SELECT stateID, barcode, dateEntered, containerExpired
INTO ##Temp
FROM
(SELECT barcode, stateID, dateEntered, containerExpired, row_number() over(partition by barcode, containerExpired order by dateEntered) seq
FROM cte
WHERE dateEntered <= (select max(dateEntered) from cte where containerExpired = 1 AND stateID = 1) AND containerExpired = 1
) d
WHERE seq = 1 ORDER BY dateEntered
SELECT * FROM ##Temp ORDER BY barcode
SELECT barcode, stateID, dateEntered WHERE containerID IN (SELECT barCode AS containerID FROM ##Temp) ORDER BY containerID, dateEntered
DROP TABLE ##TempYouir approach is wrong. To track the history of, say, Foobars we need to see time as a continuum and model it as (begin_date, end_date) pairs that define when a foobar had a particular value. Here is the skeleton.
CREATE TABLE Foobar_History
(foo_id CHAR(9) NOT NULL,
start_date DATE NOT NULL,
end_date DATE, --null means current
CHECK (start_date <= end_date),
foo_status INTEGER NOT NULL,
PRIMARY KEY (foo_id, start_date));
When the end_date is NULL, that state of being is still current. You use a simple query for the status on any particular date;
SELECT *
FROM Foobar
WHERE @in_cal_date
BETWEEN start_date
AND COALESCE (end_date, CURRENT_TIMESTAMP);
There are more tricks in the DDL to prevent gaps, etc
CREATE TABLE Events
(event_id CHAR(10) NOT NULL,
previous_event_end_date DATE NOT NULL
CONSTRAINT Chained_Dates
REFERENCES Events (event_end_date),
event_start_date DATE NOT NULL,
event_end_date DATE UNIQUE, -- null means event in progress
PRIMARY KEY (event_id, event_start_date),
CONSTRAINT Event_Order_Valid
CHECK (event_start_date <= event_end_date),
CONSTRAINT Chained_Dates
CHECK (DATEADD(DAY, 1, previous_event_end_date) = event_start_date)
-- CHECK (previous_event_end_date + INTERVAL '01' DAYS) = event_start_date)
-- disable the Chained_Dates constraint
ALTER TABLE Events NOCHECK CONSTRAINT Chained_Dates;
GO
-- insert a starter row
INSERT INTO Events(event_id, previous_event_end_date, event_start_date, event_end_date)
VALUES ('Foo Fest', '2010-01-01', '2010-01-02', '2010-01-05');
GO
-- enable the constraint in the table
ALTER TABLE Events CHECK CONSTRAINT Chained_Dates;
GO
-- this works
INSERT INTO Events(event_id, previous_event_end_date, event_start_date, event_end_date)
VALUES ('Glob Week', '2010-01-05', '2010-01-06', '2010-01-10');
-- this fails
INSERT INTO Events(event_id, previous_event_end_date, event_start_date, event_end_date)
VALUES ('Snoob', '2010-01-09', '2010-01-11', '2010-01-15');
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
TABLE - How to set the row in the table
I have a problem where I have a selection on one view and then call a second view to display the results in a table. The table displays 5 rows. I then go down to the 20th row and select the row. When I have finished processing, I still have row 20 selected and I go back via a plug to the selection screen. I then enter new criteria and go back to the second view and the table displays that data showing row 20 as the first row. How do I get it to go back to row 1 every time I go into the second view??
Hello Graeme,
assuming i understand the problem, as a quick solution it would perhaps help to set the lifetime of the second view from "framework controlled" to "when visible" (in the properties of the view). Another way could be to explictly invalidate the context node holding the data for the second view after having left the view.
Kind regards
Andreas -
How to save a row edited in the tableview
Hi All
I have implemented a flow logic based BSP table maintenance page as follows to display and maintain the data in SFLIGHTS table:
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page>
<htmlb:form>
<htmlb:tableView id = "tv1"
visibleRowCount = "10"
selectionMode = "lineEdit"
table = "<%= flights %>"
filter = "SERVER"
sort = "server"
iterator = "<%= iterator %>" />
</htmlb:form>
</htmlb:page>
</htmlb:content>
When I click on the row and edit the row and exit the edit mode I still do not see the data that I changed is not reflected back when I exit the edit mode nor it is saved in the database table. Can you please kindly share the code how I can make only the following columns editable:
FLDATE
PRICE
CURRENCY
PLANETYPE
the rest of the columns I want to disable for editing and whatever the changed data in these columns I want to reflect it back to the database table.
Please kindly share the code for implementing to capture what was edited and save it back to the database table
Thanks
KarenPls search this forum, this has been discussed N number of times.
Raja -
How to show a unique Row-ID even if the rows become re-sort
I would like to have unique-ids for each row to identify the row even though the order of the rows change.
before you sort you could add a new column and place an incrementing number in each row. To do this...
1) create a new column (right click in the column header, one of the letters are the top) and select "Add Column..." choose whether Before ar After
Make the first row a header and title the new column something like "Original Sort Order". Then in the first row of the new column type a "1", and in the second row type "2". Now select the first and second cells of the new column.
hover the cursor over the hollow circle at the bottom-right corner of the selection. The cursor will change to a "+". Now click, and hold, on the you can fill the pattern down the column as needed. Now you can always sort by this column to get your original order back. -
Getting last x rows written to the DB
Hi all
I have written some data to my table and wanted to know the best way of getting the last x rows written to the table?
Thanks for any suggestions.Probably I come a little late here, but here is my suggestion:
WITH data AS (SELECT SYSDATE + 1 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 2 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 6 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 1 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 4 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 5 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 6 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 2 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 1 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 3 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 1 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 3 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 1 / 24 AS col1
FROM DUAL
UNION ALL
SELECT SYSDATE + 6 / 24 AS col1
FROM DUAL)
SELECT *
FROM (SELECT col1,
DENSE_RANK () OVER (ORDER BY col1 DESC) AS rnk
FROM data)
WHERE rnk = 1
/So, if you have some sort of data and a column of datetime type, you can sort the data in descending order by this datetime column and then take the "last" rows, e.g. the rows which value in the datetime column is the oldest one. -
DCIteratorBinding setting the same value for all the rows.
Hi all,
I have table with on of the column as id. I have made the id column as the hyper link , that takes me to the next page. I am trying to pass the id to the next page. I am using the managed bean for the same. The below code is used to create the link on the column. It sets the action to the function in the bean that sets the id as of the current row.
<tr:column sortProperty="id" sortable="false"
headerText="#{bindings.notification.hints.id.label}"
id="c4">
<tr:commandLink action="choice" text="#{row.bindings.id.inputValue}"
id="cl1" actionListener="#{IdBean.extractID}">
</tr:commandLink>
</tr:column>
below is the IdBean.extratctID()
public void extractID(ActionEvent actionEvent){
BindingContext bindingContext = BindingContext.getCurrent();
BindingContainer bindings;
bindings = bindingContext.getCurrentBindingsEntry();
DCIteratorBinding iter;
iter = (DCIteratorBinding) bindings.get("notificationIterator");
Row rw;
rw = iter.getCurrentRow();
String id;
id = (String) rw.getAttribute("id");
this.setId2(id);
I am printing the id value on to the next page. But its just returning the vslue of the id for the first row for all the rows of the table.
Any inputs as in do i need to refresh the iterator or something like that.
Reagrds
SishantHi,
Following is the code i have added in my bean
ValueExpression expression = getFacesContext().getApplication().getExpressionFactory().createValueExpression(getFacesContext().getELContext(), "#{pageFlowScope.emp1}", Object.class);
Object id = expression.getValue(getFacesContext().getELContext());
public FacesContext getFacesContext() {
return FacesContext.getCurrentInstance();
JSPX Code -
<af:commandImageLink id="DuncanAngove"
icon="/john.gif" partialSubmit="true"
actionListener="#{Tweets.setEmployeeId}">
<af:setActionListener from="Duncan Angove" to="#{pageFlowScope.emp1}" />
But i am getting NullPointerException. I have tried it with application and request scope as well.
javax.servlet.ServletException
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.UIXComponentBase.getValueExpression(UIXComponentBase.java:231)
at project1.Tweets.setEmployeeId(Tweets.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
... 35 more
Thanks
Sishant -
ADF table: How to find out which rows were modified by the user
Hi,
I am using ADF table to display data that can be modified by the user (ReadOnly = false in the input text). I need to find out which rows were modified by the user, and only update (persist) those rows in the database.
Is there an easy way to find out which rows were modified by the user.
I am NOT particularly concerned with which columns were modified as I would update the entire row (if any data in that row is modified).
I am using Oracle JDeveloper version 11.1.1.3.
Thanks,
Ash KThanks Timo.
I am using ADF Data Control (which are created from Web Service proxy) to display/update the data.
In the backing bean, the operation that is invoked at the time persisting data is as follows:
public void commitOperation {
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("operationA");
DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("someIterator");
for(int i=0; i<dciter.getViewObject().getEstimatedRowCount(); i++)
Row row=dciter.getRowAtRangeIndex(i);
SomeObject someObject= new SomeObject ();
someObject.setAttr1(row.getAttribute("Attrbute1").toString());
someObject.setAttr2(row.getAttribute("Attribute2").toString());
objectList.add(someObject);
operationBinding.getParamsMap().put("param1", objectList);
ResultObject result = (ResultObject) operationBinding.execute();
Inside the for loop (or any other place in the backing bean), I would like to figure out if the row was modified by the user. Please let me know if how to get that. If ADF provides this automatically, that would be GREAT.
Thanks,
Ash K
Maybe you are looking for
-
External hard disk not detecting
Hi, I am using WD 1 TB external hard disk and it was going all good till now one day my friend asked for my hard disk as he need to back up some data and connected it to PC. Now I am trying to connect it to mac but mac is not detecting. My hard disk
-
Import from Catalog- Why is metadata changing?
Whenever I run Import from Catalog (going from portable drive to desktop), the dialog box shows several photos that have been "modified," even though I haven't touched them since they were last imported to the desktop. I'm guessing, the desktop inst
-
Where is the keyboard click sound located?
Hi, I would like to change the sound the Mac plays when using keyboard click sounds. Any idea where the sound file is located? I figure I can just swap in a new one. Thanks, Allan
-
Hello everybody , i have a problem styling an ADF Application , i followed this example http://technology.amis.nl/blog/5722/using-adf-faces-11g-skinning-for-setting-the-styles-of-specific-component-instances-or-groups-of-instances and i created the f
-
Making department field as required field
Dear gurus i have a requirement while making a PR there is a field known as department i want this field to be a required entry how to do this Regards Saad Nisar.