Adding a row to data table using ArrayDataModel in jsf?
How can i add a row to datatable and add new data to the table using ArrayDataModel? ...
How can i add a row to datatable and add new data to the table using ArrayDataModel? ...
I need a WebDAV library that will work on a BlackBerry, hence J2ME. Having a BSD like license (or other license that would allow use in proprietary applications) would be ideal, but if one can't be had for free, a proprietary pay-for one is fine too. ...
How the directory can be chosen as the input for the project ? Please tell me the code for it in java. How to extract the output of the sourcenav tool and store it in database... ...
Hi, I'm a begginer in java I have packet=090209153038020734.0090209153039020734.0 like this I want to split this string and store into an array like two strings: 1) 090209153038020734.0 2) 090209153039020734.0 I have done like this: String packetArray[] = packets.split(packets,Constants.SF); Where: Constants.SF=0x01. But i...
I have a Java keystore (.jks file) holding a single certificate. How can I create a .pfx file from this keystore? ...
Can anyone recommend a good Java library for supporting charts and graphs. Timeseries, Histograms (bar charts) and fan charts are especially important. Also useful is real flexibility to combine charts and extend with new types of chart (for example, if you wanted to write Fan charts. ...
Which is the best way to add a hyperlink in jLabel? I can get the view using html tags, but how to open the browser when the user clicks on it? ...
Hi guys, I was wondering if any of you EMMA users have encountered this issue. Basically I have multiple projects each with different build.xml ANT scripts that are all called from one main ANT script individually. The code is covered appropriately but when a JUnit method calls another method in a different project, that external metho...
Right - I want to delete (e.g.) 1,000,000 records from a database. This takes a long time -> the transaction times out and fails. So - I delete them in batches say 25000 records per transaction. Using the limit clause on MySQL or ROWNUM on Oracle. Great this works. I want to do this in a database indepedent way. And from an existing Jav...
Hi. I need to export jar from my Eclipse Java project and I want to include the referenced libraries. I can't use fatjar for this, which is what everyone seems to recommend. There must be another way of doing this. Does anyone know what this is?! ...
Hi, I'm using Jetty to test a webservice we have and I am trying to get it to respond with no charset under the content-type header. Does anyone know how to do this? I've tried intercepting the Response and setting the CharacterEncoding to null or "" but that gives Exceptions. I am using Jetty 6.1.6. ...
I am looking for example Java code that can construct an XML document that uses namespaces. I cannot seem to find anything using my normal favourite tool so was hoping someone may be able to help me out. ...
Hello, I have a question about throwing exceptions in Java, a kind of misunderstanding from my side, as it seems, which I would like to clarify for myself. I have been reading that the two basic ways of handling exception code are: 1.) throwing an exception in a try-block with "throw new ...", and catching it immediately in a catch-bl...
I inherited some code that is using XPath for which I am a novice. I have it now so that it loads the document, but when the document.selectPath(queryPath) it always fails with the following error: java.lang.RuntimeException: Trying XBeans path engine... Trying XQRL... Trying delegated path engine... FAILED on // at org.apache.x...
In Outlook I can remove a table column if I drag the column header out of the table. How can I do the same in Java with a Swing JTable? A default drag & drop operation is not possible because this feature is independent of the target position. It depends only from the drag source. ...
Is there is Simple way to read and write Xml in Java? I've used a SAX parser before but I remember it being unintuitive, I've looked at a couple of tutorials for JAXB and it just looks complicated. I don't know if I've been spoilt by C#'s XmlDocument class, but All I want to do is create an Xml Document that represents a a set of class...
I'm currently working on a project which exposes some functions through webservices. Trouble is, some calls should return an array of "Attribute", which is a container class for a database cell. These attributes are, obviously, of different types (int, string, date, timestamp and so on). Nothing really hard, just basic types. By now, th...
I have an XY plot of positions and want the newest point to be an icon. Is this possible in JFreeChart? ...
I am using the DFC to access documentum. I am trying to read a file. I have the r_object_id and I now wish to return the document assoicated with this. How would I do this in java? ...
Our application depends on numerous resources that are provided by another system. To ensure the existence of those resources, we currently have a JUnit test case (probably more an integration test), that takes a list of all the resources as a textfile, fetches each and tracks success/failure. This is a very long running testCase that ...