Hi,
Some system commands would halt the execution if one has not enough privileges to do so. How, can I allow my runtime to try for - let's say - 10 seconds. But if nothing is return and the command is blocked, then continue.
What's a solid approach to this?
Thanks for any hints.
Hi,
I store my properties to a file after i populated them with strings using the setProperty(String key, String value) method. However, it keeps overwriting the properties that i have not changed during this action. So I first loaded the properties with an input stream of the file. Didn't help...
Hi, I'm having a listener place which is listening to file changes on my local hard drive (using JNA). works nicely.
In this class (singleton), i check if this file is a pdf document (works fine to). If yes, I would like to raise an event that could be captured by another object of my...
Hi there,
I'm a C# developer and diving into J2EE 6.0 and starting with the latest Eclipse Galileo J2EE distribution and Tomcat 6.0.
1) I create a EJB Project (no error).
2) I created a EJB 3.0 Session Bean. Error with import of javax.ejb.Stateless saying: "the import of javax.ejb cannot be...
Hi,
I tried to use an interface to enforce the plugin developers to implement the function "initialize(Composite parent, int style)".
Interface:
import org.eclipse.swt.widgets.Composite;
interface IPlugin {
void initialize(Composite parent, int style);
}
a Test-Plugin is this:
public...
Hi,
The documentation of cfajaxproxy states that the reference to the cfc can be absolute.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_a-b_3.html
I do have the authentication.cfc in a BLL directory which is placed way far from the directory where I invoke it. How do...
hi,
I've got a simple table.
ID (NUMERIC, PRIMARY KEY)
OrderID (NVARCHCHAR(50))
The OrderID should store a concatenation of the autoincremented ID and a string. how do i apply this change?
thanks heaps for any hint.
hi,
i've got a simple query (4 colums and about 6 records). All values are integers.
So, now I'd like to sum all the columns and write the total at the end. as means, records plus total of the records.
i cannot afford to execute 2 queries. somehow possible to do that with a union?
grateful...
hi,
i loop through a list of records and within that loop recursively i call the same function again (to loop children-data of the parent record). now, for some reason it does not return the max(id) respectively the correct @@IDENTITY key. it somehow seems that the resultset caches it's...
how can I append a dtd to my xml file?
this is what ai have so far.
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
Document doc = null;
try{
docBuilderFactory.setValidating(true);
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder()...
hi,
I fail to set the number of rows (staticly) displayed in a SWT table. e.g I want to show 10 records only. if more, use the scrollbar. unfortunately, it displays 1 row only. how can i extend the number of rows?
thanks
hi,
What's the best datastructure to store and resultset? arraylist? xml? i just want to pass the result set from the data access layer (DAL) over the business layer (BLL) to the GUI.
What's most easy to handle (not considering memory impacts) for the programmer?
thanks heaps
Hi,
I got a GridView. I prepared UpdateCommands, run the page, click the edit button, the row falls into edit-mode, I change a value and click the standard update button/link... the system return with an error saying: no source code available for the current position. What am I missing in this...
hi,
I'd like to fill a gridview with a list of all appartments in the database table. Now, in this list there are also appartments that do belong to the userID that has been passed by querystring. For those I want to check the checkbox. For all others not it's unchecked.
What's the best...
Hi,
I need to find the hyperlink control that I placed in the FooterTemplate of a gridview. I thought that's easy by just using myGridView.FindControl("myHyperlink")
Well, obviously it's not. What am I missing? Is the FooterTemplate a control of its own?
Thanks for any hint.
Hi,
I'm having 2 Content areas on my masterpage. One on the left, on on the right. Simple. How can I access the GridView, wich is on the left, from the DetailsView, which is on the right Content area?
I need the DetailsView to be refreshed as soon as I selected another record on the gridview...
Hi,
I try to find out if there's already an instance of a class available. If not, I would need to create one, if yes, I want to retrieve a value from it's public field.
There's a nice example on sun.com. But how do I retrieve the instance? In the field.get(OBJECT) method the ask me to pass...
Hi, I'm calling an assembly from my main WinForm. Now, that assembly is loading a file (DownloadFileGroupAsync("myFile")) in async mode. There is an eventhandler that would scream on completion of the download. Since I must return the instance to the main WinForm I wonder how I could make my...
Hi
Every controls in my application is translated into the current Culture (UICulture). Now, in a MessageBox class I want to place text to that would be translated programatically by a ResourceManager instance.
e.g. rm.GetString("MyStringToTranslate").
Now, that works fine until i do edit a...
One challange in globalizing/localizing an application is in finding the way to place dynamic values from the application into the tranlations received from the resource manager. Just appending a dynamic value to this static translation is NOT state-of-art. So while the following code outputs a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.