Refresh j table
i have a jtable in which three textfield r also there and a button to save when i click save the data from textfield goto database and then i retrieve data to jtable.. but it is not coming at the same time when i clicked save.
when i close frame and again oen that time i can see data in it.
how to refresh it on save button.
Well, your save button needs to do two things:
a) update the database (apparently this works)
b) update the TableModel (apparently this isn't working).
Well, you just use the DefaultTableModel.setValueAt(...) method to update existing cells in the table.
Or if you are adding a new row to the table, then you need to use the DefaultTableModel.addRow(...) method.
Similar Messages
-
How-To "Refresh a table of data after inserting or deleting"
I'd like to say a word on the how-to article "How to refresh a table of data after inserting or deleting a row using ADF".
(http://www.oracle.com/technology/products/jdev/howtos/1013/updtable/index.html?_template=/ocom/technology/content/print)
I spent a lot of time on it because I needed help in implementing simple CRUD functionality on a table, using JSF-ADF-TopLink technologies.
While the the article does provide correct steps, it is in one important place not specific enough, so the reader may easily get stuck. In section "Refresh the data table", point 1: when you double click on the removeEntity() button, in Structure window, then you do not get the required dialog. You get CommandButton Properties dialog.
You must click on the removeEntity() button in Editor's Design view. But even there you may get the CommandButton Properties dialog, not managed beans dialog.
You may resolve that by going to JSF configuration file, faces-config.xml, and switch to Overview view. This will show you the managed beans that you have.
Then, you may already have a backing bean for the page. You can use that and avoid creating a new managed bean.
I could understand what the operations mean only after very careful reading of "Creating More Complex Pages", section "Overriding Declarative Methods" in JDeveloper Help (or in ADF Developer's Guide PDF document).
In general: I believe that "ADF bindings" need more conceptual explanation, maybe in form of an article. Grammatical form "bindings" may create a false understanding that "bindings" are just references. But they are not -- ADF bindings are active objects that handle traffic between UI components and Data Controls. It seems that "bindings" even communicate among themselves. Maybe it would be more understandable to differentiate strictly between "binding objects" (or "binders"?), binding object definitions and binding object references.
It would be very helpful to have a diagram showing grahically what specific binder objects are created in a small apllication (2-3 pages using 1-2 tables), with whom they communicate and what type of data is passed on.
PriitHi
Thanks for your infos.
Yes exactly I use almost the same code you have post here.
Could You answer to my next questions?
First - >what do you mean by saying that "it's not good idea using refreshing in IE?" Of course I use refreshing in backing_bean for my button "remove" that removes row, commit changes to database and refresh table, almost the same as You said in your post:
Code in backing_bean is and comments on difference to Your code is below:
public commandButton2_action1(){
BindingContainer bindings = getBindings();
OperationBinding operationBinding =
bindings.getOperationBinding("removeEntity");
Object result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {
return null;
//above remove entity, but I dont now if it do commit to database? So i do it below
OperationBinding commit1 = bindings.getOperationBinding("Commit");
commit1.execute();
//and at the end I refresh my table, "findAllRezerwacja1 - it is an id of the methodAction, not the iterator -> is it ok? or should I change to Iterator id?
OperationBinding requery = bindings.getOperationBinding("findAllRezerwacja1");
requery.execute();
return null;
Page Definition code for this:
<methodAction id="findAllRezerwacja1"
InstanceName="SessionEJBLocal.dataProvider"
DataControl="SessionEJBLocal" MethodName="findAllRezerwacja"
RequiresUpdateModel="true" Action="999"
ReturnName="SessionEJBLocal.methodResults.SessionEJBLocal_dataProvider_findAllRezerwacja_result"/>
<table id="findAllRezerwacja2" IterBinding="findAllRezerwacja1Iter">
<AttrNames>
<Item Value="dataDo"/>
<Item Value="dataOd"/>
<Item Value="idRezerwacja"/>
<Item Value="liczbaUczestnikow"/>
<Item Value="prowadzacy"/>
<Item Value="uwagi"/>
</AttrNames>
</table>
<methodAction id="removeEntity" InstanceName="SessionEJBLocal.dataProvider"
DataControl="SessionEJBLocal" MethodName="removeEntity"
RequiresUpdateModel="true" Action="999">
<NamedData NDName="entity"
NDValue="${bindings.findAllRezerwacja2.currentRow.dataProvider}"
NDType="java.lang.Object"/>
</methodAction>
<action id="Commit" IterBinding="findAllRezerwacja1Iter"
InstanceName="SessionEJBLocal.dataProvider"
DataControl="SessionEJBLocal" RequiresUpdateModel="true"
Action="2"/>
</bindings>
//and rest of code for Iterator etc
My second question is, why when you use refresh button in IE (I know is not recommended as You said, but sometimes user do it, so I want prevent situations that I will describe here) so when I press refresh button in IE exactly after removing one row by clicking my button, refreshing by pressing IE button is doing the same --> is deleting next row. How to stop deleting row, when for example user would press IE refresh button after pressing remove button for table. If I change selection in table after deleting row, and press refresh button in IE, instead of deleting row, I got error message: JBO-29000: JBO-35007: and
JBO-35007. So where Im doing wrong. Maybe I should do sth with postback ? Could You help me? Thanks in advance
Last one question: what is the difference between using delete and removeEntity from operations node? Im now reading carefully ADF Dev Guide, so I hope I can find infos there? But if You know, please answer to this question.
Thanks -
How to refresh a table with multiple joins
Hi,
First at all, I'm newby in ADF, and my english is no so good, sorry for that...
I'm using JDeveloper 11g Release 2 (11.1.2.3.0). I have a table created from a view object that have multiple joins with other entities. When I insert a new row programmatically in one of the entities of the joins (not in the entitiy of the view object itself), the new row is created in the database correctly but the table don't show it. What can I do to refresh the table to see the new row created?
Thanks in advance!You have to update the iterator the table is based on for the ui last. You do that by executing the query on the iterator again.
Timo -
Is it able to refresh the table view automaticlly after trigger an event?
Hi expert,
I have one table view and a "Delete" button, each time when the user click the del button, it will delete the row which is selected via a RFC module in the backend, afterwards, I want this table view to be refreshed and read the real data from backend via another function module, is it possible? how could I do it?
Thanks and best regardsLet me do some summarize if my understanding is correct
1. Use a timer as "start" point of a table view, set the "interval" to be 0.05 minute
2. use the condition in the timer with a formula (BOOL(STORE@RETURN_CODE==0)).
3. If I trigger one event in the "table view", for example, a "Delete" event and it will return the result RETURN_CODE = 0 to datastore
4. Afterwards, if the time interval of the timer has been reached, 1st it will evaluate the value of the datastore and decide whether to refresh the table view.
Am I right?
Just as you mentioned before, it is not a perfect solution, as we may still wait for the timer to be triggered after a few seconds.
Thanks for your answer. -
REFRESH OF TABLE CONTROL.
HI GURUS,
I AM USING TWO TABLE CONTROLS AND WANT TO SHOW THE SELECTED RECORDS IN THE SECOND TABLE CONTROL,
ACTUALLY FOR THE FIRST TIME IF I SELECT RECORDS IT IS SHOWING CORRECTLY IN THE SECOND TABLE CONTROL BUT
WHEN I AM BACK TO FIRST TABLE CONTROL AND AGAIN SELECT THE RECORDS,AFTER CLICK OK BUTTON THE SECOND
TABLE CONTROL IS NOT SHOWING THE FRESH ONE,EVERY TIME IT REQUIRES TO EXIT FROM THE PROGRAM,THEN IT WORKS PROPERLY.
I AM GIVING THE CODE FROM FLOW LOGIC OF TWO SCREENS AND INTERNAL TABLE USED FOR TABLE CONTROL.
<< Moderator message - please do not use ALL CAPS when posting - it makes your question harder to read. >>
FLOW LOGIC OF FIRST SCREEN
PROCESS BEFORE OUTPUT.
MODULE STATUS_2500.
LOOP AT x_ekpo WITH CONTROL tabcon CURSOR
tabcon-current_line.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE select_material.
loop at x_ekpo .
MODULE UPDATE_TAB.
endloop.
MODULE USER_COMMAND_2500.
IN SE38
MODULE user_command_2500 INPUT.
WHEN 'OKAY'.
LOOP AT x_ekpo WHERE check = 'X'.
APPEND x_ekpo TO x_ekpo3.
ENDLOOP.
ENDMODULE.
MODULE update_tab INPUT.
LOOP AT x_ekpo.
IF x_ekpo-check = 'X'.
MODIFY x_ekpo INDEX sy-stepl TRANSPORTING check.
ENDIF.
ENDLOOP.
ENDMODULE. " UPDATE_TAB INPUT
FLOW LOGIC FOR SECOND SCREEN.
PROCESS BEFORE OUTPUT.
MODULE STATUS_2501.
LOOP AT x_ekpo3 WITH CONTROL tabcon2501 CURSOR
tabcon2501-current_line.
endloop.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_2501.
LOOP.
ENDLOOP.
Edited by: Rob Burbank on Jan 2, 2010 5:08 PMHi,
As per my understanding, you need to display the 2nd Table Control with fresh data every time you click the OK Command Button. So, you need to REFRESH the Table Control in the 2nd screen every time the PBO is triggered based on the OK Command Button. You can use the following code to Refresh the Table Control.
Syntax :
REFRESH CONTROL contrl FROM SCREEN dynnr.
Have a look at the following link from SAP HELP.
http://help.sap.com/abapdocu_70/en/ABAPREFRESH_CONTROL.htm
Hope this helps.
Thanks,
Samantak. -
How to refresh Adf table from Adf popup
Hi all,
i have and adf query panel with table. On this table for each record, there is a button to perform some operations. When i click this button i am launching an adf popup. Inside this popup i have used a adf dialog of type yes/no. i am using this as a confirmation. (ex- Are you sure you want to change (ex- deactivate) this record?) If yes is clicked i change only one field. Suppose the record belongs to a client. On click of yes, i change the status to some value. ex- deactivate. so with the dialog's button click, i change the table data. but it is not reflected unless i made a query. i want to automatically refresh this table on click of dialog button's yes. I hope i made my self clear. Can this be done with Jdev. Im using Jdev 11.1.1.0.1. Pls help me with this.
Thanks in advance,
NadHi Maxi, Timo, i tried the solutions by both of you. Thanks alot for replying. But i get an error. This is what i did. for Deactivate btn in the table, i have added the below return listerner code.
public void onReturnFromDialog(ReturnEvent returnEvent) {
if (returnEvent.getReturnValue() != null) {
refreshCurrentPage();
protected void refreshCurrentPage() {
FacesContext context = FacesContext.getCurrentInstance();
String currentView = context.getViewRoot().getViewId();
ViewHandler vh = context.getApplication().getViewHandler();
UIViewRoot x = vh.createView(context, currentView);
x.setViewId(currentView);
context.setViewRoot(x);
but i noticed that both these methods are not invoked. So i added the below dialoglistener code to the af:dialog that is inside my popup. This popup is shown when the deactivate btn is clicked.
public void DialogListenAction(DialogEvent dialogEvent) {
if(dialogEvent.getOutcome().toString().equals("yes"))
DCIteratorBinding iter = ADFUtils.getIterator("MembersVO3");
String des = (String) iter.getCurrentRow().getAttribute("MemberCode");
service.deactivateMember(des); //This is where i update the record and set the attribute value to des
System.out.println("suspect1");
RequestContext.getCurrentInstance().returnFromDialog(des,null);
//AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
//afContext.getCurrentInstance().returnFromDialog(des, null);
System.out.println("suspect2");
//ifCancel Do nothing
when i add 'RequestContext.getCurrentInstance().returnFromDialog(des,null);'
OR
'AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.getCurrentInstance().returnFromDialog(des, null);'
i get the error - java.lang.IllegalStateException: popView(): No view has been pushed.
i cant figure out what is the wrong here. Can some one pls suggest how to resolve this?
Thanks alot. -
Management Studio 2008 does not refresh after table create / alter
hello
Management Studio 2008 does not refresh after table create / alter, why?
f5 / refresh button does not work in "Object Explorer".... i always need the restart the whole application to see any changes, this is strange...
regards, janHi jm,
I’m writing to follow up with you on this post. Was the problem resolved after performing Vishal ‘s steps? If you are satisfied with our solution, I’d like to mark this issue as "Answered". Please also feel free to unmark the issue, with any new findings
or concerns you may have.
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support -
How do I refresh a table with a bind variable using a return listener?
JDev 11.1.2.1.0.
I am trying to refresh a table with a bind variable after a record is added.
The main page has a button which, on click, calls a task flow as an inline document. This popup task flow allows the user to insert a record. It has its own transaction and does not share data controls.
Upon task flow return, the calling button's return dialog listener is invoked which should allow the user to see the newly created item in the table. The returnListener code:
// retrieve the bind variable and clear it of any values used to filter the table results
BindingContainer bindings = ADFUtils.getBindings();
AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("pBpKey");
attr.setInputValue("");
// execute the table so it returns all rows
OperationBinding operationBinding = bindings.getOperationBinding("ExecuteWithParams");
operationBinding.execute();
// set the table's iterator to the newly created row
DCIteratorBinding iter = (DCIteratorBinding) bindings.get("AllCustomersIterator");
Object customerId = AdfFacesContext.getCurrentInstance().getPageFlowScope().get("newCustomerId");
iter.setCurrentRowWithKeyValue((String)customerId);
// refresh the page
AdfFacesContext.getCurrentInstance().addPartialTarget(this.getFilterText());
AdfFacesContext.getCurrentInstance().addPartialTarget(this.getCustomerTable());But the table does not refresh ... The bind variable's inputText component is empty. The table flickers as if it updates. But no new values are displayed, just the ones that were previously filtered or shown.
I can do the EXACT SAME code in a button's actionListener that I click manually and the table will refresh fine. I'm really confused and have spent almost all day on this problem.
WillBoth options invoke the create new record task flow. The first method runs the "reset" code shown above through the calling button's returnListener once the task flow is complete. The second method is simply a button which, after the new record is added and the task flow returns, runs the "reset" code by my clicking it manually.
I'm thinking that the returnListener code runs before some kind of automatic ppr happens on the table. I think this because the table contents flicker to show all customers (like I intend) but then goes back to displaying the restricted contents a split second later.
Yes, the table is in the page that invokes the taskflow.
Here are some pictures:
http://williverstravels.com/JDev/Forums/Threads/2337410/Step1.jpg
http://williverstravels.com/JDev/Forums/Threads/2337410/Step2.jpg
http://williverstravels.com/JDev/Forums/Threads/2337410/Step3.jpg
Step1 - invoke new record task flow
Step2 - enter data and click Finish
Step3 - bind parameter / table filter cleared. Table flickers with all values. Table reverts to previously filterd values. -
Refresh the table found on the same page as the form
Hi , I am doing an entry form where user will enter data that will be saved to the database. below is a table which consist of all the data entered by the specific user. When i submit the form the data is stored in the database. But the table is not refreshed. i Have to click on the header of one of the column to refresh the table how can the table be refreshed when i submit the data in the form ...
Please help me
Thanks
LutchumayaHi,
define a value of the ID property of the button. Set the same value to the PartialTrigger property of the table (or if this doesn't do it, to the surrounding af:form element)
Frank -
How to refresh interal table in Webdynpro ABAP
Hi all,
I want to delete/free/refresh interal table in webdynpro abap.
One of the form gave solution to pass blank internal table?
I cleared node and itab in webdynpro, but internally SAP doesn't delete the context node and itab values.
Please help me in how to refresh itab in webdynpro abap.
Regards,
PrasadHi Srinivas,
it doesn't work.
I wrote like this in action list method.
method lta_task.
if not lcontext_node_task is intial.
context_node_task->invalidate().
endif.
select.......
populate data into internal table lt_task_output_table .
if not lt_task_output_table is inital.
context_node_task = wd_context->get_child_node( name = 'TASK_PER').
context_node_task->bind_table( wd_this->lt_task_output_table ).
endif.
endmethod.
Starting of the mehod i have written to inavlidate, before upating the itab
but donesn;t work. Where should I write the code
Reagards,
Prasad -
Refresh of table causes NullpointerException
We have the following situation (JDev 11.1.1.3):
A table with lots of rows, and multiselect. A link opening a dialog and in the dialogListener code to check something and maybe update the selected rows. When the dialog closes we want to refresh the table, to show the updated values.
When we scroll down in the table so that the iterator has had to requery for a few times (range is 25 on the iterator), we get the following error:
<UIXInclude><tearDownVisitingContext> Vernietiging van context include-component is mislukt vanwege een niet-afgehandelde uitzondering.
java.util.NoSuchElementException
at java.util.ArrayDeque.removeFirst(ArrayDeque.java:251)
at java.util.ArrayDeque.pop(ArrayDeque.java:480)
at oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl.popContextChange(ApplicationContextManagerImpl.java:66)
at oracle.adf.view.rich.component.fragment.UIXInclude.tearDownVisitingContext(UIXInclude.java:206)
at oracle.adf.view.rich.component.fragment.UIXPageTemplate.tearDownVisitingContext(UIXPageTemplate.java:248)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.encodeEnd(ContextSwitchingComponent.java:157)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
at oracle.adfinternal.view.faces.renderkit.rich.PageTemplateRenderer.encodeAll(PageTemplateRenderer.java:69)and
<ApplicationPoolMessageHandler><doPoolMessage> [6541] **** PoolMessage REQ DETACH LWS
<RegistrationConfigurator><handleError> Server Exception during PPR, #1
java.lang.NullPointerException
at oracle.adfinternal.view.faces.model.binding.RowDataManager.getRowIndex(RowDataManager.java:191)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getRowIndex(FacesCtrlHierBinding.java:597)
at org.apache.myfaces.trinidad.component.UIXIterator._fixupFirst(UIXIterator.java:416)
at org.apache.myfaces.trinidad.component.UIXIterator.__encodeBegin(UIXIterator.java:394)
at org.apache.myfaces.trinidad.component.UIXTable.__encodeBegin(UIXTable.java:168)
at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:519)
at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1499)I tried the following code but nothing seems to work. We don't really need to keep the selection:
FacesUtils.getRRAppModuleImpl().getAanvragenRO().executeQuery();
aanvragenRoTable.getSelectedRowKeys().removeAll();
FacesUtils.findIterator("AanvragenROIterator").setCurrentRowIndexInRange(0);
AdfFacesContext.getCurrentInstance().addPartialTarget(aanvragenRoTable);aanvragenRoTable is a RichTable bound to the af:table with all the rows.
Can anyone help us?Never mind. This solved it!
http://jobinesh.blogspot.com/2010/02/common-mistake-while-iterating-through.html -
How to refresh the table control on some action
Hi All,
In a web Dynpro application, I am filling data to the Table control through Supply function. When I do some action (like save new record ) i want to refresh the table control means add the newly added record.
How to refresh the Table control.
Thanks
Hemalathahi hema........
if you are using a select query inside the supply function...
then...
you can just use node->invalidate(). method..
it just invalidates the node that is bound to the table.
so the supply function will be called again, which again uses the select query to fetch the values.. so that your table gets refreshed.
---regards,
alex b justin -
How to refresh 'Z' Table in BADI ?
Hi Experts,
How to refresh a 'Z' table in BADI. Through BADI we are updating the components items to 'Z' table.
Thanks,
vinay.Hi Abapers,
How to refresh 'Z' Table in BADI ?
Actually in BADI I am updating BOM components items to Z Table.
Useful answer rewarded points.
Thanks,
vinay. -
Perform Manual Recovery and Refresh Alarm Table in BPEL Console
Hi,
does anybody know what these options in BPEL Console (BPEL Processes tab) are for ? Thanks.
- Refresh Alarm Table. What is this for ? Why do you need it ?
- Perform Manual Recovery. Can you tell me an example when I can use this option ?Hi,
does anybody know what these options in BPEL Console (BPEL Processes tab) are for ? Thanks.
- Refresh Alarm Table. What is this for ? Why do you need it ?
- Perform Manual Recovery. Can you tell me an example when I can use this option ? -
Hi experts,
My requirement is delete the files from the KM itself.I have stored the list of files under the Km in particular folder(path)
I have a following code.
I have table with checkbox and delete button. when ever select the check box(single selection or muliple selection). the file should be deleted from the KM. but does not remove from the table. how can i remove the selected item from the table and how can i refresh the table. please help me its very urgent..
my table structure is
node_accelerator
Acc_check---boolean
Acc_file---string
try {
for (int i = 0; i < wdContext.nodeTable_accelarator().size(); i++) {
if (wdContext.nodeTable_accelarator().getTable_accelaratorElementAt(i).getAcc_check()) {
String a =
wdContext.nodeTable_accelarator().getTable_accelaratorElementAt(i).getAcc_file();
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
com.sap.security.api.IUser sapUser =
wdClientUser.getSAPUser();
//create an ep5 user from the retrieved user
IUser ep5User =
WPUMFactory.getUserFactory().getEP5User(sapUser);
ResourceContext resourseContext2 =
new ResourceContext(ep5User);
RID pathRID2 =
RID.getRID(
"/documents/SAPse/Projects/Implementaion/Accelarator/"+ a+ "/");
IResourceFactory resourseFactory2 =
ResourceFactory.getInstance();
IResource collection2 =
resourseFactory2.getResource(
pathRID2,
resourseContext2);
collection2.delete();
} catch (Exception e) {
wdComponentAPI.getMessageManager().reportSuccess("error in delete");
Regards,
P.Manivannan.Hi Sumit,
I got a solution withoutusing removeElemet().
I create a seperate method for delete() for following code
wdContext.nodeTable().invalidate();
try
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
com.sap.security.api.IUser sapUser =
wdClientUser.getSAPUser();
//create an ep5 user from the retrieved user
IUser ep5User =
WPUMFactory.getUserFactory().getEP5User(sapUser);
ResourceContext resourseContext2 =
new ResourceContext(ep5User);
RID pathRID2 =
RID.getRID(
"/documents/SAPse/Projects/Implementaion/"
+ "/Templates/");
IResourceFactory resourseFactory2 =
ResourceFactory.getInstance();
ICollection collection2 =
(ICollection) resourseFactory2.getResource(pathRID2,resourseContext2);
ICollection collection11 = (ICollection) collection2;
for (IResourceListIterator itr =
collection11.getChildren().listIterator();
itr.hasNext();
IResource res = (IResource) itr.next();
String name = res.getName();
// IPrivateRight.ITableElement contentElem = null;
contentElem =
wdContext.nodeTable().createTableElement();
contentElem.setFile(res.getDisplayName(true)); wdContext.nodeTable().addElement(contentElem);
catch(Exception e)
wdComponentAPI.getMessageManager().reportSuccess("error " +e);
NOTE: i used invalidate function in top of the table
I call the delete method in my button event...
Thanks For ur valuable replies
Regards,
P.Manivannan. -
Help on refreshing a table every second ? using table model
hi there
i have created a table using defaultTableModel. now i need to refresh the table every two seconds. to implement the refreshing, do i need to revalidate the container pane of the table every two second? i am just wondering since i use the tablemodel, maybe it can revalidate or repack automatically. please help me and thank you.hi there
thank you for your help
here is what my table does, the program connects to the database, retreive data and populate the table every two seconds to reflect the changes in the database. here is the run method that does the connecting and ...
public void run()
boolean okay = true;
boolean updated = false;
String strSQL = "sql statment"
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection(".....")
PreparedStatement ps = con.prepareStatement(strSQL);
while (okay)
rs = ps.executeQuery();
//code to query the database.....
tablemodel = (DefaultTableModel)jTable.getModel();
//code to repaint the table......
Thread.sleep(1000);
}catch (ClassNotFoundException cnfe){
}catch (SQLException sqle) {
}catch (InterruptedException e){
okay = false;
}catch (Exception ee){
System.out.println("Exception:" + ee.getMessage());
what can tablemodel do for this kind of task?
Maybe you are looking for
-
Can't get Run Time Prompts to pop up in Planning 11.1.2.1 on WebForm
Hi, Client is using Business Rules and not Calc Manager. I have a Webform that has a Business Rule attached with only Run on Save selected. In the BR there are various RTP's user needs to choose. When I navigate to the WebForm in the bottom left hand
-
Issue in converting Struts view to JSF view using struts-faces integration
Hi All, I am facing a issue in my Sruts to JSF conversion application using struts-faces.jar integration library. Need expert's help desperately as I am not able to use <s:form> tag in my new jsf page to call a struts action. I want to call a struts
-
phone can not connected to itunes bcs the device service is not started so ido not know what can i do!
-
Not sure where to post this topic- I am interested in creating and editting video with my iBook (G4, 768MB RAM, 30GB Hard Drive, 12inch). I have been offered a Power Mac G3 running OS 9.2. OK- could I use that Power Mac as an alternate Hard Drive (to
-
This is a question generally regarding the WPS protocol security issue. I have acquired a pair of TP-Link powerline plugs,( TL-WPA4220KIT) also capable of extending the WiFi signal. In order to clone my existing Wi-Fi network; run by a 3rd party rou