Re: Next step: running complex queries that return counts

2016-10-20 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Ken, I'm using EOUtilities.rawRowsForSQL Here's an example from my code > public int numOfTotalMessages(EOEditingContext ec) { > String sqlTerm = "SELECT COUNT(*) FROM PMSMessage WHERE ownerUserID = > "+this.primaryKey(); > NSArray resultsRows = EOUtilities.rawRowsForSQL(ec, "PMS

Re: The WOCommunity slack channel

2016-10-07 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi all, can you add me too? Thanks. c...@i4innovation.de C.U.CW -- What are the three enemies of a programmer? Sunlight, oxygen, and the appalling roar of the birds. > On 06.09.2016, at 14:01, Hugi Thordarson wrote: > > Hi all, > just wanted to remind you that Samuel Pelletier created a slac

Re: Extending the "No Instance Available" timeout

2016-04-05 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
My understanding is that a "No instance available" comes from your Apache's WOAdaptor. Therefore it shouldn't basically have nothing to do with your VPN or slow internet connection. Daniele has already suggested using a ERXLongResponsePage. Sometimes the problem is not a single database operati

Re: slooow DB access at the deployment site (was: relationship count without fetching)

2016-02-29 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi OC, I once had a deployment machine with FrontBase on which – I don't remember why anymore – the indices of the tables where not set. The database was working but it was very very slow. After generating the indices and setting the index mode to "preserve time" the speed was back as expected.

Re: ERPDFWrapper unicode characters

2016-02-13 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Stavros, I have ERPDF working with german umlauts (äöü...) pretty well, so I think it basically works with UTF-8. Just two simple questions: 1. if you set the "enabled" binding of ERPDFWrapper to "$false", do you get a (html) page with greek characters? If not, your problem may not be ERPDF

ERCaptcha with Java 1.8 shows black image only

2015-12-30 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi List, has anyone running ERCaptcha with Java 1.8 successfully? All I get is a black image when running Java 1.8 - in a project that works perfectly on my other machine with Java 1.7. I found this on StackOverflow: > This JCaptcha library is really old, and going by the state of their code

Re: Odd backtracking error

2015-11-27 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Mark, if you are using the new window to show a PDF (which should not have any further links or buttons), it may be a better solution to use a direct action to show it and pass all necessary params to it. C.U.CW -- The three great virtues of a programmer are Laziness, Impatience and Hubris.

Re: Combination of ERXApplication.replaceApplicationPath, Session-Cookies and Ajax doesn't work

2015-11-08 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
kieDomainID = > application()._rewriteURL(cookieDomainID); > log.warn("cookieDomain: "+ cookieDomainID); > } > return cookieDomainID; > } > > > Samuel > > >> Le 2015-11-07 à 22:09, CHRIS

Combination of ERXApplication.replaceApplicationPath, Session-Cookies and Ajax doesn't work

2015-11-07 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi list, has anyone the combination of - ERXApplication.replaceApplicationPath and - SessionID stored in cookies and - Ajax (from Wonder's Ajax-Framework) successfully working in combination? I don't get it up and running on a test-server. In my case each click on a submit button in a form con

Re: velocity or.....for templates?

2015-10-09 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Tim, if you're are using Wonder, it seems obvious to me to use WOComponent as a template engine. 1. define your component as you do with normal wocomponents 2. Instantiate like this: YourMailComponent mailComponent = (YourMailComponent) ERMailUtils.instantiatePage(your.app. YourMailCompone

ERMailDeliveryHTML outside the RR-Loop

2015-10-04 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi List, I'd like to send batch emails in a separate thread using ERMailDeliveryHTML and a Component based HTML. Unfortunately, I need a WOContext to generate my subclass of WOComponent. Is there a way to generate the WOContext outside the RR-Loop? C.U.CW -- What are the three enemies of a pro

Re: Catching ERXAttachmentExceedsLengthException

2015-08-04 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Miguel, AFAIK (and I even wrote a mail to Mike Shrag, who wrote this code) there is no real good way to catch an ERXAttachmentExceedsLengthException. What I did was: 1. in your application class, override the "handleException" method and check if anException isinstanceof ERXAttachmentExceed

Re: How to pass confidential information with WORedirect.

2015-06-30 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
POST doesn't solve a "security" problem. It maybe obfuscates the parameters for a layman but it doesn't encrypt them. Anyway ... WORedirect uses HTTP status code 302 which makes the browser using GET. What you need is HTTP status code 307. So, write your own subclass of WOCompnentent with a set

Re: Help with EGWrapper / generated Excel file is always empty

2015-06-01 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
the podcast from June 9, 2009 “Using EREXcelLook”? > > I thought I used it and just following the podcast resulted in a working app > that exported my data to excel. > > > > On Jun 1, 2015, at 12:02 PM, CHRISTOPH WICK | i4innovation GmbH, Bonn > wrote: > >> Hi

Help with EGWrapper / generated Excel file is always empty

2015-06-01 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi List, after some years of not using it, I tried to use EGWrapper from Wonder's Excel framework today and unfortunately it doesn't work. My HTML is pretty simple (this one copied from the example, doesn't work also): > > > > 1.1 > AAA > > >

Re: Components binding with custom object

2015-05-29 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
omponents but i have customs Frameworks thats contains some of my > components. And I am unable to have access to ((Session) > session()).authenticatedUser in those components. > > that why i am trying to bind that object to the components in framework. > > I don't know if t

Re: Components binding with custom object

2015-05-29 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Ronald, 1. does your B.java contains a either a public property e.g. public UserAccount userAccount; or a getter/setter pair, e.g. private UserAccount _userAccount; public UserAccount userAccount() { return this._userAccount; } public

Re: importing a csv file into a wonder application

2015-04-17 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Old NeXT-style would be using the method "componentsSeparatedByString" of NSArray. So, this is how I make it (assuming '\n' is used for linebreak and '\t' for cell) and Apache Commons IO for file reading: String contentOfFile = FileUtils.readFileToString("/my/file.csv", "UTF-8"); NSArray lines

Re: Display group example?

2015-04-08 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Alberto, on https://wiki.wocommunity.org/display/WEB/Your+First+Stateful+Project you find an example that uses a display group. AFAICS it doesn't show to full beauty of display groups but it should give you first hints how to use it. WebObjectsBuilder once had this wonderful feature

Re: Curl with javamonitor direct actions

2015-03-16 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Jeff, did you use the JavaMonitor that comes with Wonder (https://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/artifact/Root/Roots/JavaMonitor.tar.gz) or the one that comes from Apple with WO. AFAIK only the Wonder version can handle the DAs. The Apple version cannot. (to to discr

Re: ERAttachmentUpload with AjaxSubmit

2015-02-20 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
component can work in Ajax context. > > Samuel > >> Le 2015-02-18 à 15:39, CHRISTOPH WICK | i4innovation GmbH, Bonn >> a écrit : >> >> Hi there, >> >> I try to use an ERAttachmentUpload within a form that's submitted by an >> Aja

Re: WOLips Copy & Paste issue on Yosemite

2015-02-18 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Daniele, I remember that I experienced the very same problem some time ago (not on Yosemite but on Mavericks). I didn't found a reliable solution. :-( But I stopped investigating since the problem disappeared after a complete reboot of my laptop. So - at least - you are not alone ... C.U.C

ERAttachmentUpload with AjaxSubmit

2015-02-18 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi there, I try to use an ERAttachmentUpload within a form that's submitted by an AjaxSubmitButton - but it doesn't work. The action method bound to the AjaxSubmitButton is called BEFORE the setter method of the fileupload is called. (Should be the other way around??). Therefore no attachment

Expired GPG-Key for Debian or Ubuntu deployment installation

2015-02-13 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi List, there is this wonderful description on "Installing a deployment environment on Debian or Ubuntu" on https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu First, it tells you to import the GPG-Key with > $ wget -qO- http://packages.w

Re: WOLips for Eclipse 4.4 binary

2015-01-15 Thread CHRISTOPH WICK | i4innovation GmbH | Bonn
Stefan, you made my day. Thx a lot. For all of you who are still on Eclipse 3.7: My first impression is that the 4.4-Version of Eclipse/WOLips seems to be a lot faster. Especially on OS X. C.U.CW -- What are the three enemies of a programmer? Sunlight, oxygen, and the appalling roar of the bir

Re: WOWODC 2015

2014-12-31 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi all, are there any wishes for a presentation topic? Maybe some of the participants want to learn something on WO/Wonder that is otherwise pretty old or easy for others. So if we knew what's of interest, maybe someone could easily make a presentation about it. C.U.CW P.S.: My personal in

Re: Help! Have array of EOs. Need convert to CSV (selected key paths)

2014-12-14 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Robert, Maybe this helps: 1. create a ordinary WOComponent, e.g. MyCSVComponent.wo In the HTML part, you don't write HTML (skip the whole " ... " stuff), but the CSV content you need: "", "" ... 2. in MyCSVComponent.java you override the method "appendToResponse" like this: public clas

ERXTimestampUtilities.differenceByDay doesn't work correctly

2014-11-30 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hello there, is it possible, that ERXTimestampUtilities.differenceByDay doesn't work correctly? I have the following piece of code: > NSTimestamp dec312015 = new NSTimestamp(2015, 12, 31, 0, 0, 0, null); > NSTimestamp jan012016 = new NSTimestamp(2016, 1, 1, 0, 0, 0, null); > >

Re: WOWODC 2015 - April 25, 26 and 27 2015

2014-11-17 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Great news. Will there be a hotel discount? Oder do we have to pay the standard rates? C.U.CW -- What are the three enemies of a programmer? Sunlight, oxygen, and the appalling roar of the birds. On 17.11.2014, at 11:28, Matthias Fricke wrote: > Hi, > > finally we have everything together a

WO Crashs while trying to set a boolean property used in a wo:if

2014-11-13 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
I have a strange problem: in a component I use a wo:if: ... Its 'condition' property is bound to a method that calculates true or false. There is no corresponding setter method like 'setProviderCanChangeStatusToSUBMITTED(boolean b)' because it's not necessary to store such a value. Neverth

Re: little off topic, need help understand a recursive call

2014-11-12 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Theodore, AFAICS there is nothing wrong with your "isNumber" method (besides that Integer.parseInt(String s) and catching the NumberFormatException is much shorter). I have no proof at hand, but I remember that each recursive call has a loop equivalent and vice versa. So assume you have a

Re: is there a WOWODC15?

2014-11-09 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Theodore, the guys from Xyrality have agreed to organize the 2015' WOWODC in Hamburg, Germany. Planed date ist April, 25 - 27 2015 - see Matthias' mail: On 30.10.2014, at 18:19, Matthias Fricke wrote: > For now I can let you know that the conference is planed for April 25, 26 and > 27 2015

ERRestRouteExample not working

2014-10-27 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi list, I try to get the "Client" example of the ERREstRouteExample application running. But it doesn't work. Lines 29/30 of "Client.java" are > ClientCompany c = client.objectWithPath("Company/1.json"); > System.out.println("Client.main: single company = " + c); But if you let the example ru

Consuming REST services with a WO app

2014-10-26 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi list, is there a webobjects/wonder way to *consume* a REST service in a wonder app? All the RESt examples on the wiki show how to produce a REST service using Wonder. But I can't find a good way to consume them. (Sidenote: yes, I know, that you can/should/whatever consume them on the client

Re: EO Modeling tool?

2014-10-23 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
I can't speak for the latest version (6), but my 5.4.4 can still display EO Models. OmniGraffle is also my favorite diagram tool since Diagram.app disappeared with NeXT ;-) C.U.CW -- The three great virtues of a programmer are Laziness, Impatience and Hubris. (Randal Schwartz) On 23.10.2014,

Re: ERCaptcha shows all black image

2014-10-09 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Klaus, I remember that I once had trouble with ERCaptcha on a Linux deployment machine. I think I was because ERCaptcha somehow uses AWT internally and the Java process tried to connect to a Windowserver (which wasn't running). The solution was to start the app with '-Djava.awt.headless=true

Re: Static resources in CSS file while using Linux as dev platform

2014-10-02 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
uot;screen"> >> >> C.U.CW >> -- >> The three great virtues of a programmer are Laziness, Impatience and Hubris. >> (Randal Schwartz) >> >> On 02.10.2014, at 10:36, Ralf Schuchardt wrote: >> >>> When you are using Wonder, you can simply us

Static resources in CSS file while using Linux as dev platform

2014-10-02 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi List, I have a question because a colleague of mine wants to test Linux as development platform. Background: --- I the css file of OurApp.woa we refer to background images like e.g. #a-div { background: url("/WebObjects/OurApp.woa/Contents/WebServerResources/gfx/background.jpg")

Re: Any plans to build libapache2-mod-wo for Ubuntu 14.04 LTS

2014-05-28 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
> versions, you can configure them with > update-alternatives --config wotaskd > respectively > update-alternatives --config javamonitor > On 27 May 2014 16:23, "CHRISTOPH WICK | i4innovation GmbH, Bonn" > wrote: > Hi Bastian, > > it works like a charm now - thx a

Re: Any plans to build libapache2-mod-wo for Ubuntu 14.04 LTS

2014-05-27 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
of a programmer? Sunlight, oxygen, and the appalling roar of the birds. On 27.05.2014, at 15:15, Bastian Triller wrote: > I forgot to include the webobjects package as well. It would be nice, if you > can test again. > > On Mon, 2014-05-26 at 11:51 +0200, CHRISTOPH WICK | i4innovation

Kind of virus on this list?

2014-05-26 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
cts is not available, but is referred to by another package. >> This may mean that the package is missing, has been obsoleted, or >> is only available from another source >> >> E: Package 'webobjects' has no installation candidate > > > Is there anything mi

Re: Any plans to build libapache2-mod-wo for Ubuntu 14.04 LTS

2014-05-26 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
t; > E: Package 'webobjects' has no installation candidate Is there anything missing? C.U.CW -- The three great virtues of a programmer are Laziness, Impatience and Hubris. (Randal Schwartz) On 24.05.2014, at 22:54, Bastian Triller wrote: > I uploaded the package for trus

Re: Retaining order of values in a url

2014-05-22 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi John, If you read the documentation of WORequest's formValueKeys method, it says: "The returned array is not sorted in any particular order, and is not necessarily sorted in the same order on successive invocations of this method." (http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/c

Re: Building Apache Adaptor on Ubuntu 14 LTS

2014-05-20 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hallo Markus, thanks for your help. My compiler says: > $ gcc -v > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper > Target: x86_64-linux-gnu > Configured with: ../src/configure -v --with-pkgversion='Ubuntu > 4.8.2-19ubuntu1' --with-bug

Building Apache Adaptor on Ubuntu 14 LTS

2014-05-20 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi List, I'm trying to build the Apache Adaptor for Ubuntu 14 LTS manually following the instructions on http://wiki.wocommunity.org/display/documentation/Compiling+the+HTTP+adaptor+on+Linux If I try to execute "make CC=gcc", I get the following error: > gcc -I/usr/local/include -O2 -I../Adapt

Building Apache Adaptor on Ubuntu 14 LTS

2014-05-20 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi List, I'm trying to build the Apache Adaptor for Ubuntu 14 LTS manually following the instructions on http://wiki.wocommunity.org/display/documentation/Compiling+the+HTTP+adaptor+on+Linux If I try to execute "make CC=gcc", I get the following error: > gcc -I/usr/local/include -O2 -I../Adapt

Re: Any plans to build libapache2-mod-wo for Ubuntu 14.04 LTS

2014-05-20 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Bastian, are there any news about the webobjects installer for Ubuntu 14 LTS (Trusty Tahr)? (http://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu) If I can help somehow, please let me know. C.U.CW -- The three great virtues of a programm

Re: Character Encoding of textfield

2014-05-14 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
faultEncoding=UTF-8 > er.extensions.ERXApplication.DefaultMessageEncoding=UTF-8 > in the Properties file and all is fine now. > > For file upload I use the AjaxFileUpload. That looks nicer. > > Grüße nach Bonn > Jens > > > > Am 14.05.2014 um 01:16 schrieb CHRISTO

Re: Character Encoding of textfield

2014-05-13 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Jens, does your wo-form set 'enctype="multipart/form-data"' ? (AFAIK it is necessary, if you are using WOFileUpload) If so, try to use the following in your Application's constructor: public class Application extends ERXApplication { ... public Application() { ...

Re: Wonder documentation on jenkins.wocommunity.org broken?

2014-05-06 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi there, First of all thanks to those who fixed it. Second: On 06.05.2014, at 21:40, Ray Kiddy wrote: > ps: By the way, is there a reason that this entire question has been on > the WO list? There is a wonder list, yes? And this question does seem > to be completely wonder-specific and not abo