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, "PMSModel", 
> sqlTerm, new NSArray("count"));
>   return ((Number) ((NSDictionary) 
> resultsRows.objectAtIndex(0)).objectForKey("count")).intValue();
> }

It takes 4 params:

1. an EOEditingContext. Take one you already have or create a new one.
2. the "name" of your model as String.
3. a SQL term. Just write plain SQL or even MySQL dialect (if you use MySQL 
only)
3. an array of key-names that are used in the dictionaries returned. In case of 
a count-query, it's pretty useless, since you get exactly one result row with a 
one-line dict.

OK?

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

> On 20.10.2016, at 17:39, Ken Anderson  wrote:
> 
> All,
> 
> Now that I have a good idea about charting, I now need to build the values 
> that will be used for the charts.  Because of the volume of data, this will 
> be a new entity that will have a bunch of totals computed and stored.
> 
> To generate the values, I need to run SQL selects that will return counts for 
> me to store.  Something like this:
> 
> select count(distinct friendID) from MemberFriend where id in (select 
> distinct memberFriendID from Fitlove where occurredAt between '2016-10-19 
> 00:00:00' and '2016-10-19 23:59:59');
> 
> In searching around, it seems like 
> ERXSQLQueryWithBindingsUtilities.rawRowsForSqlWithBindings would be perfect, 
> but I have no idea how to generate the correct query and to setup the binding 
> properly (using mysql 5.5).
> 
> Can anyone point me to some resources for doing raw rows with bindings with 
> mysql?
> 
> Thanks!
> Ken
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
> 
> This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 slack channel for 
> the WOCommunity. It’s a lovely little place for chatting about WO. Just let 
> us know if you’d like an invite so you can join.
> 
> Cheers,
> - hugi
> 
> // Hugi Thordarson
> // http://www.loftfar.is/
> // s. 895-6688
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
> 
> This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 operation, but a WORepetition 
iterating over a huge array of objects and then - inside the WORepetition - 
calling another db/eof-intensive method on each item, like e.g. 
'item.littleDatabaseWork()'.

While each 'item.littleDatabaseWork()' may only take some ms, iterating over a 
lot of items may be too much. In this case, 'pagination' of large arrays may be 
the best solution. Use a ERXDisplayGroup in this case.

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

> On 05.04.2016, at 11:23, Daniele Corti  wrote:
> 
> Hi Benjamin,
> if I understand correctly the problem is a intensive work on the DB, that, 
> added to the slow connection, make WOMonitor return the "No Instance 
> Available" error.
> 
> if used in local network, these pages use more than 3/4 seconds to load? I'm 
> asking this, because I think it's a good practice in these scenarios to 
> introduce an intermediate page with a 
> ERXLongResponseTask.DefaultImplementation subclass and a ERXLongResponsePage 
> component to let the user see a loading page while fetching from the DB 
> (example Search Result in large DB), before render the component.
> 
> Is it possible to you to alterate the WO App to do this?
> 
> Another solution can be to optimize the DB (maybe moving on a dedicate 
> machine, physical or virtual, configured to speedup db results), making the 
> fetch result in few seconds.
> 
> Bye
> 
> Il giorno mar 5 apr 2016 alle ore 11:03 Benjamin Chew  
> ha scritto:
> Hi Everyone,
> 
> I’m wondering if any of you kind souls can help me. :)
> 
> I’m in Singapore working off a VPN connection to the States, and while 
> waiting for some database-intensive components to display, I keep getting “No 
> Instance Available” because it’s taking so long to complete all the queries 
> (ping times ~ 200ms).
> 
> I’ve tried going to WOMonitor on my local machine (localhost:56789) and 
> modified the Send, Receive and Connect timeouts, but that didn’t seem to 
> help. I’ve also tried changing WOMaxSocketIdleTime and WOLifebeatInterval in 
> my Eclipse debugging profile, but that didn’t help either.
> 
> Does anyone have any ideas?
> 
> Thanks,
> Ben
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com
> 
> This email sent to ilde...@gmail.com
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
> 
> This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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.

So maybe you take a look, if your indices are set up correctly.
(In FrontBaseManager go to "Schema Objects" -> $USER -> "Tables" -> $TABLENAME 
-> click "OPEN DEFINITION"-button -> "Index")

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

> On 29.02.2016, at 18:30, OC  wrote:
> 
> Well I have implemented count using objectCountForToManyRelationship, and 
> found it is MUCH worse than before at the deployment site (whilst it runs 
> like a charm for me at my testing machine).
> 
> After lots of testing it seems the real bottleneck is the database query 
> itself. Lately, I have implemented this kind of count-of
> 
> ===
> // my ERXEnterpriseObject subclass, a superclass of all my EOs
>static ocs_count_n=0,ocs_count_time=0
>def ocs_count_of(String key) {
>def relationship=valueForKey(key)
>boolean fault=EOFaultHandler.isFault(relationship)
>if (!fault) return relationship.count()
> 
>ocs_count_n++
>def time=System.currentTimeMillis()
>def n=ERXEOControlUtilities.objectCountForToManyRelationship(this,key)
>time=System.currentTimeMillis()-time
>ocs_count_time+=time
>println "COUNTOF: $ocs_count_n: $time, average 
> ${(int)(ocs_count_time/ocs_count_n)} ms"
>return n?:0
>}
> ===
> 
> Now, testing on my development machine (2.53 GHz i5, 8 GB RAM) I am getting 
> logs like
> 
> COUNTOF: 18: 18, average 17 ms
> COUNTOF: 19: 14, average 17 ms
> COUNTOF: 20: 15, average 17 ms
> COUNTOF: 21: 14, average 17 ms
> 
> On the deployment machine though (2.26 GHz QuadCore Xeon, 24 GB RAM) the logs 
> are sort of different
> 
> COUNTOF: 18: 1911, average 1789 ms
> COUNTOF: 19: 1905, average 1795 ms
> COUNTOF: 20: 1883, average 1799 ms
> COUNTOF: 21: 1883, average 1803 ms
> 
> which sort of explains why the page generation is terribly slow.
> 
> I would be grateful for an advice to find and fix the cause of this slow DB 
> access; any idea?
> 
> Both the machines run Groovy 2.3.8 / WebObjects 5.4.3
> 
> The deployment machine runs Java 1.6.0_65 / Mac OS X 10.6.8 / FrontBase 
> 5.2.1g-64 bit (server on localhost, along with all the WO applications).
> 
> My test machine runs Java 1.7.0_13 / Mac OS X 10.8.5 / FrontBase 7.2.18 64 
> bit (localhost server, too); might anything of this cause the vast 
> difference? Does not seem to me, but of course, I might be overlooking 
> something of importance.
> 
> Thanks a lot,
> OC
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
> 
> This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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, but 
probably your java or whatever.


2. does the  section of your HTML inside ERPDFWrapper contain something 
like



I'm not 100% sure anymore, but I think it's necessary.

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)


> On 13.02.2016, at 05:13, Stavros Panidis  wrote:
> 
> Hi all,
> 
> I tried ERPDFWrapper as it is demonstrated in 'ERPDF in 60 seconds’.
> 
> Everything works fine except that Unicode characters (Greek in my case) are 
> not displayed at all.
> 
> Any more information or help?
> 
> Many thanks in advance
> 
> 
> Stavros
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
> 
> This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 
> repository, it is an abandoned project. The problem with this library is that 
> it uses very specific version of JH Labs Image filters for CAPTCHA image 
> distortion, and this version does not support JDK 1.8, it only supports 1.6.


(s. 
http://stackoverflow.com/questions/22894510/jcaptcha4struts2-plugin-image-not-loading)
 This may be something completely different, but it’s the best hint I found so 
far.

Any hint appreciated.

C.U.CW
-- 
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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. 
(Randal Schwartz)

> On 27.11.2015, at 09:08, René Bock  wrote:
> 
> Hi Mark,
> 
> last week, we had a similar issue.  The problem was that, between two regular 
> POST requests, the client requested for /App.woa
> 
> 
> As noted in http://sourceforge.net/p/wonder/mailman/message/11756245/ 
>  this request will 
> create a new session.
> 
> 
> Some "research" revealed, that
> 
>   WORequest._lookForIDsInCookiesFirst()
> 
> always will return false.  This seems the root cause of the problem. 
> Unfortunately, static methods can't overridden...
> 
> 
> Regards,
> 
>   René
> 
> 
>> Am 26.11.2015 um 23:29 schrieb Mark Wardle > >:
>> 
>> Thanks Chuck. I’m not sure. How can I check that? I haven’t got a favicon 
>> set presently. It shouldn’t default to accessing it via WO should it? I had 
>> thought it independent and a function of apache but of course, I do have a 
>> rewrite rule which redirects / to my WOA so it might well be doing that! Not 
>> entirely sure how to check or indeed fix!
>> 
>> Mark
>> 
>> 
>>> On 26 Nov 2015, at 22:25, Chuck Hill >> > wrote:
>>> 
>>> Is your web server (or Wonder) protecting /favicon.ico from getting to your 
>>> app or handling it?  That request won’t contain the cookies (IIRC) which 
>>> results in a new session getting created and the app will return the cookie 
>>> from the new session (usually with an error response as it is not handling 
>>> the request.
>>> 
>>> Chuck
>>> 
>>> 
>>> From: >> > on 
>>> behalf of Mark Wardle >
>>> Date: Thursday, November 26, 2015 at 2:18 PM
>>> To: Paul Hoadley >
>>> Cc: webobjects-dev >> >
>>> Subject: Re: Odd backtracking error
>>> 
>>> Paul,
>>> 
>>> That sounds like what might be happening and explain the inconsistency 
>>> depending on, perhaps, the URL entered.
>>> 
>>> I’ll give it a go. Thank you!
>>> 
>>> Mark
>>> 
 On 26 Nov 2015, at 22:16, Paul Hoadley > wrote:
 
 Hi Mark,
 
 On 27 Nov 2015, at 6:50 am, Mark Wardle > wrote:
 
> I’m getting a weird backtracking error. I have a component which mainly 
> uses component actions and one of these component actions uses 
> target=“_new” to show a PDF document in a new window.
> 
> The action uses
> WOResponse response = 
> WOApplication.application().createResponseInContext(context);
> to create a new response.
> 
> Sessions are stored in cookies.
> 
> On some computers (but not all), when one clicks the link, I get a login 
> page and in the log a session restoration error with no session. It works 
> fine on other computers running the same version of IE. I can’t reproduce 
> the problem at all on my development machine.
> 
> Any ideas?
 
 I’m not sure this would explain everything you’re seeing here, but you can 
 get session loss (and the resulting unexpected bounce to a login page) 
 when using cookies for session ID storage if 
 WOSession.domainForIDCookies() is returning something “too specific” for 
 your deployment setup. By default, that method returns the application’s 
 full path, right down to the “.woa” extension. So, for example, if you’re 
 using URL re-writing in deployment, there could easily be a mismatch. I 
 usually override it to return “/”. Again, not sure it explains everything 
 you’re seeing there, but it’s something to rule out.
 
 
 --
 Paul Hoadley
 http://logicsquad.net/ 
 
 
 
>>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> )
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient.de 
>> 
>> 
>> This email sent to b...@salient.de
> 
> --
> salient doremus
> 
> salient GmbH
> Kontorhaus -  Lindleystraße 12
> 60314 Frankfurt Main
> 
> Fon +49 (0)69 - 650096 -0, Durchwahl: - 18, Fax: 

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

2015-11-08 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hello Samuel,

you saved my day. Thx a lot.

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

> On 08.11.2015, at 15:58, Samuel Pelletier <sam...@samkar.com> wrote:
> 
> Hi Christoph,
> 
> All my apps are like this. The only things special I see if you need to 
> override domainForIDCookies() in the Session class but I  think it is also 
> required for non Ajax app. Does non Ajax request works ?
> 
> My generic solution is this because of an app that serve multiple domains :
> 
> Add this attribute to the session class:
>   private String cookieDomainID;
> 
> And overide thid method:
>   @Override
>   public String domainForIDCookies() {
>   if (cookieDomainID == null) {
>   cookieDomainID = super.domainForIDCookies();
>   cookieDomainID = 
> application()._rewriteURL(cookieDomainID);
>   log.warn("cookieDomain: "+ cookieDomainID);
>   }
>   return cookieDomainID;
>   }
> 
> 
> Samuel
> 
> 
>> Le 2015-11-07 à 22:09, CHRISTOPH WICK | i4innovation GmbH, Bonn 
>> <c...@i4innovation.de> a écrit :
>> 
>> 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 containing Ajax-Update-Containers is returning to 
>> the "Main"-page. Somewhere in the whole stack, WebObjects forgets the 
>> session and starts as if a new session was created.
>> 
>> And help is welcome.
>> Thx, C.U.CW
>> --
>> The three great virtues of a programmer are Laziness, Impatience and Hubris. 
>> (Randal Schwartz)
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
>> 
>> This email sent to sam...@samkar.com
> 



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 containing Ajax-Update-Containers is returning to the 
"Main"-page. Somewhere in the whole stack, WebObjects forgets the session and 
starts as if a new session was created.

And help is welcome.
Thx, C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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. YourMailComponent.class.getName(), null);
mailComponent.setBinding1(binding1Value);
mailComponent.setBinding2(binding2Value);
String htmlOfYourMailComponent = 
mailComponent.generateResponse().contentString()

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

> On 09.10.2015, at 17:39, T Worman  wrote:
> 
> Reaching out to the list to see what my fellow abandonees prefer for 
> templating. My needs are pretty simple - I’m just looking to use templates to 
> compose emails. I have far too many email methods where the bodies of the 
> emails are completely composed in code and I’d really like to move that out 
> to some template engine.
> 
> So, the question is, what template engine do you prefer for this kind of 
> work? Obviously, we’ve already got velocity producing our EO .java files - 
> and I’m sure that’s workable. Any strong preferences out there?
> 
> I really like StringTemplate (http://www.stringtemplate.org). A feature I 
> liked was the ability to pass an object to the template and the template 
> could contain “keypaths” to attributes of the object - very much like we 
> expect from the WO template engine. However, it would not work with accessors 
> that do not use the get* convention - which I haven’t. I could convert but 
> not sure it is worth it.
> 
> Tim
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
> 
> This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 programmer? Sunlight, oxygen, and the appalling 
roar of the birds.



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 ERXAttachmentExceedsLengthException or any other 
kind of exception.

If the anException is a ERXAttachmentExceedsLengthException, try to go back to 
the page where you were coming from. In my example I stored the last page with 
the ERAttachmentUpload in my session, so I can restore it (and set an error 
message for the user):

public WOResponse handleException(Exception anException, WOContext context) {

if (anException instanceof ERXAttachmentExceedsLengthException) {
ERXComponent nextPage = ((Session) 
context.session()).lastPageBeforeAttachmentExceedsLengthException();

if (nextPage instanceof Main) {
((Main) 
nextPage).setErrorMessageFromException(bERROR: This attachment is too 
big./b ...);
}
return nextPage.generateResponse();
} else {
OtherExceptionResponsePage nextPage = 
(OtherExceptionResponsePage)

pageWithName(de.i4innovation.app.components.OtherExceptionResponsePage.class);
nextPage.setTheException(anException);
return nextPage.generateResponse();
}
}


2. There is a Javascript/jQuery solution to check the file-name and file-size 
BEFORE you actually upload the file to your server.

It assumes your wo:ERAttachmentUpload has the id 'uploadButton'. The save 
button has the id 'saveButton' and an initially not displayed div has the id 
'uploadMessage'.

With jn(#uploadButton).change(function(evt) ... you bind a function to the 
Upload button that is fired during the onChange event - that means before the 
file is actually uploaded.


It works like this:

pwo:ERAttachmentUpload id=uploadButton configurationName = 
Document.attachment attachment = $theDocument.erAttachment editingContext = 
$session.defaultEditingContext /
wo:submit id=saveButton style=display: none; value = save action 
= $saveAttachmentAction /
div id=uploadMessage style=border: 1px solid red; padding: 5px; 
color: red; display: none;/div

wo:if condition = $errorMessageFromException
div style=border: 1px solid red; padding: 5px; color: 
red;wo:string value = $errorMessageFromException escapeHTML = $false 
//div
/wo:if
/p
script
/* extend js' string with an endsWith function */
function endsWith(str, suffix) {
return str.indexOf(suffix, str.length - suffix.length) !== -1;
}

/* define the max file size */
var maxFileSize = 20971520;

/* run jQuery in noConflict mode */
var jn = jQuery.noConflict();

/* attach this function to the file-upload-button's onChange event */
jn(#uploadButton).change(function(evt) {
if (window.File  window.FileReader  window.FileList  
window.Blob) {
// Great success! All the File APIs are supported.
var files = evt.target.files; // FileList object
// files is a FileList of File objects. List some 
properties.
for (var i = 0, f; f = files[i]; i++) {
var msgDiv = 
document.getElementById('uploadMessage');
var msgButton = 
document.getElementById('saveButton');
if (f.size  maxFileSize) {
var fSize = f.size/100;
var msg = bERROR: This attachment is 
too big./bbr /Maximum file size is: b10MByte/b, actual file size: 
b+fSize.toFixed(2)+ MByte/b.brPlease upload a smaller file!;
msgDiv.style.display = block;
msgDiv.innerHTML = msg;
msgButton.style.display=none;
} else {
if (!endsWith(f.name.toLowerCase(), 
zip)) {
var msg = bERROR: This file 
is not a zip file./bbr /Please choose a zip file.;
msgDiv.style.display = block;
msgDiv.innerHTML = msg;
msgButton.style.display=none;
} else {
msgDiv.style.display = none;
msgButton.className= btn 
btn-success;
msgButton.style.display = 
block;
}
}
 

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 setter method for the URL 
to redirect:

public class MyRedirectComponent extends ERXComponent {
private String url;
public MyRedirectComponent(WOContext context) {
super(context);
}
public void appendToResponse(WOResponse aResponse, WOContext aContext) {
aResponse.setHeader(this.url, location);
aResponse.setStatus(307);
}
public void setUrl(String url) {
this.url = url;
}
}

The method that submits your form should look like this:

public WOActionResults submitAction() {
MyRedirectComponent nextPage = (MyRedirectComponent)

pageWithName(your.app.components.MyRedirectComponent.class);
nextPage.setUrl(http://YOUR_REDIRECT_URL;);
return nextPage;
}

See 
http://programmers.stackexchange.com/questions/99894/why-doesnt-http-have-post-redirect

C.U.CW
--
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

 On 30.06.2015, at 09:52, Butchi Reddy Velagala v.butchire...@gmail.com 
 wrote:
 
 Hi All,
 
 We have to pass some confidential information to the URL which configured in 
 WORedirect. But WORedirect is accepting only query parameters (appended to 
 the URL). So It is the security problem.
 
 So please let us know if there is any way to redirect to the URL with POST 
 parameters or headers to hide them.
 
 
 Thanks in Advance,
 Butchi Reddy Velagala.
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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):

 wo:EGWrapper enabled=$true fileName=InfoMaterialAbo.xls
 table name=Sheet 1 border=1 cellType=CELL_TYPE_NUMERIC cellFormat=0 
   tr
   td height=20 width=30 1.1/td
   td cellType=CELL_TYPE_STRINGAAA/td
   /tr
   tr
   td1.2/td
   td cellType=CELL_TYPE_STRING2003.12.23/td
   /tr
   tr
   td20/td
   td3.2/td
   /tr
   tr
   td 2.2/td
   td cellType=CELL_TYPE_FORMULA sum(A1:A99)/td
   /tr
 /table
 /wo:EGWrapper



I get a download of InfoMaterialAbo.xls but the file contains only two 
linebreaks - no table, no excel.

Excel-framework is included, EGWrapper tag is recognized. Did I miss something? 
Is there any other configuration necessary?
HTML table is generated, if enabled=$false.

Any ideas how to debug this?

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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

2015-06-01 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Theodore,

thx for your hint. I did view the podcast, but it didn't help very much (mostly 
since I'm not using D2W).

Nevertheless, I found the culprit.

I had 2 more linebreaks after the closing /wo:EGWrapper tag in my template. I 
removed them and now everything works perfect. It seems to be the same as with 
ERPDFGenerator. If you have linebreaks after the closing /wo:ERPDFWrapper 
tag, it doesn't work either.

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

 On 01.06.2015, at 18:11, Theodore Petrosky tedp...@yahoo.com wrote:
 
 did you view 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 
 c...@i4innovation.de wrote:
 
 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):
 
 wo:EGWrapper enabled=$true fileName=InfoMaterialAbo.xls
 table name=Sheet 1 border=1 cellType=CELL_TYPE_NUMERIC 
 cellFormat=0 
 tr
 td height=20 width=30 1.1/td
 td cellType=CELL_TYPE_STRINGAAA/td
 /tr
 tr
 td1.2/td
 td cellType=CELL_TYPE_STRING2003.12.23/td
 /tr
 tr
 td20/td
 td3.2/td
 /tr
 tr
 td 2.2/td
 td cellType=CELL_TYPE_FORMULA sum(A1:A99)/td
 /tr
 /table
 /wo:EGWrapper
 
 
 
 I get a download of InfoMaterialAbo.xls but the file contains only two 
 linebreaks - no table, no excel.
 
 Excel-framework is included, EGWrapper tag is recognized. Did I miss 
 something? Is there any other configuration necessary?
 HTML table is generated, if enabled=$false.
 
 Any ideas how to debug this?
 
 C.U.CW
 --
 The three great virtues of a programmer are Laziness, Impatience and Hubris. 
 (Randal Schwartz)
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
 
 This email sent to tedp...@yahoo.com
 



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 void setUserAccount(UserAccount newUserAccount) {
this._userAccount = newUserAccount;
}

Note, that (cum grano salis) for each binding you define in the Component API 
there must be a public property or a getter/setter pair with exactly the same 
name in the java code.

2. are you sure that the property authenticatedUser in your session is not 
null when the component is rendered?

BTW: since ((Session) session()).authenticatedUser should be accessible in 
every component of your app - also the subcomponents - you may use it directly 
in your subcomponent instead of passing it via a binding. Jm2¢.

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

 On 29.05.2015, at 15:11, HOUNKPONOU Ronald ronald.hounkpo...@gmail.com 
 wrote:
 
 In A.html
 
 webobject name = template
 
 /webobject
 
 
 In A.wood
 
 template : B {
   userAccount = session.authenticatedUser;
 }
 
 
 in B.html
 
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 head
   meta http-equiv=Content-Type content=text/html; charset=utf-8/
   titleuntitled/title
 /head
 body
 webobject name = specialitemedicale
 labelLibellé/label
 webobject name = libelle/
 webobject name = enregistrer/
 /webobject
 /body
 /html
 
 in B.wood
 
 specialitemedicale : WOForm {
 }
 
 libelle : WOTextField {
   value = libelle;
 }
 
 enregistrer : WOSubmitButton {
 action=insertSpecialitemedicale;
 value=Enregistrer;
 }
 
 2015-05-29 13:15 GMT+01:00 Johann Werner j...@oyosys.de:
 What is your HTML? You need to wire up your binding with the actual 
 method/ivar of your component A:
 
 …
 wo:B userAccount=$account /
 …
 
 and in A.java:
 
 public MyAccountClass account = …;
 
 
 
 
  Am 29.05.2015 um 13:25 schrieb HOUNKPONOU Ronald 
  ronald.hounkpo...@gmail.com:
 
  I forgot the image.
 
  2015-05-29 12:23 GMT+01:00 HOUNKPONOU Ronald ronald.hounkpo...@gmail.com:
  Hi everyone,
 
  Iam facing a problem with subcomponent binding.
 
  I have 2 componets A  B. B is to be include in A.
 
  But B need some information (eg. Authenticated user object). So i have 
  create a binding as show in the attached picture and add its gette 7 setter 
  in B.java.
 
  (I dont know how to specify Value Set to be my Objet Type. so i try with 
  undefined  ressources)
 
  But the object is not passed to B.
 
  I got a NullPointerException when trying to access the passed vairable in 
  B.java
 
  Thanks for your help.
 
  Selection_005.png
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Components binding with custom object

2015-05-29 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
To check the state of session.authenticatedUser replace the public property in 
your session (if you have one) by a pair of getter/setter methods.

Then you can set a breakpoint (or write a log) in these methods to inspect the 
state of your authenticatedUser.

For your problem with the session being accessed in components of your 
framework: You could implement a class called FrameworkSession in your 
framework that extends ERXSession (or WOSession) and then extend the Session 
class in your app from that FrameworkSession.

If you then put the getter/setter for authenticatedUser in the class 
FrameworkSession, you could downcast your B's session() method to 
FrameworkSession and then access the authenticatedUser there like 
((FrameworkSession) session()).authenticatedUser()

It is technically possible, but maybe not a good idea, because you have to move 
all your Session's code to FrameworkSession. Remember: Lasagne-Code is the 
object oriented version of Spaghetti-code :-)

C.U.CW
--
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

 On 29.05.2015, at 15:54, HOUNKPONOU Ronald ronald.hounkpo...@gmail.com 
 wrote:
 
 Hi Christoph,
 
 1. Yes i have that variable.
 
 2. Not sure because I set that variable on authentication succes, but how can 
 i check it?
 
 
 I would like to use ((Session) session()).authenticatedUser  directly in all 
 my components 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 there is another way to do it.
 
 2015-05-29 14:37 GMT+01:00 CHRISTOPH WICK | i4innovation GmbH, Bonn 
 c...@i4innovation.de:
 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 void setUserAccount(UserAccount newUserAccount) {
 this._userAccount = newUserAccount;
 }
 
 Note, that (cum grano salis) for each binding you define in the Component API 
 there must be a public property or a getter/setter pair with exactly the same 
 name in the java code.
 
 2. are you sure that the property authenticatedUser in your session is not 
 null when the component is rendered?
 
 BTW: since ((Session) session()).authenticatedUser should be accessible in 
 every component of your app - also the subcomponents - you may use it 
 directly in your subcomponent instead of passing it via a binding. Jm2¢.
 
 C.U.CW
 --
 The three great virtues of a programmer are Laziness, Impatience and Hubris. 
 (Randal Schwartz)
 
  On 29.05.2015, at 15:11, HOUNKPONOU Ronald ronald.hounkpo...@gmail.com 
  wrote:
 
  In A.html
 
  webobject name = template
 
  /webobject
 
 
  In A.wood
 
  template : B {
userAccount = session.authenticatedUser;
  }
 
 
  in B.html
 
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 
  html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
  head
meta http-equiv=Content-Type content=text/html; charset=utf-8/
titleuntitled/title
  /head
  body
  webobject name = specialitemedicale
  labelLibellé/label
  webobject name = libelle/
  webobject name = enregistrer/
  /webobject
  /body
  /html
 
  in B.wood
 
  specialitemedicale : WOForm {
  }
 
  libelle : WOTextField {
value = libelle;
  }
 
  enregistrer : WOSubmitButton {
  action=insertSpecialitemedicale;
  value=Enregistrer;
  }
 
  2015-05-29 13:15 GMT+01:00 Johann Werner j...@oyosys.de:
  What is your HTML? You need to wire up your binding with the actual 
  method/ivar of your component A:
 
  …
  wo:B userAccount=$account /
  …
 
  and in A.java:
 
  public MyAccountClass account = …;
 
 
 
 
   Am 29.05.2015 um 13:25 schrieb HOUNKPONOU Ronald 
   ronald.hounkpo...@gmail.com:
  
   I forgot the image.
  
   2015-05-29 12:23 GMT+01:00 HOUNKPONOU Ronald 
   ronald.hounkpo...@gmail.com:
   Hi everyone,
  
   Iam facing a problem with subcomponent binding.
  
   I have 2 componets A  B. B is to be include in A.
  
   But B need some information (eg. Authenticated user object). So i have 
   create a binding as show in the attached picture and add its gette 7 
   setter in B.java.
  
   (I dont know how to specify Value Set to be my Objet Type. so i try with 
   undefined  ressources)
  
   But the object is not passed to B.
  
   I got a NullPointerException when trying to access the passed vairable in 
   B.java
  
   Thanks for your help.
  
   Selection_005.png
 
 
 
  ___
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list

Re: ERAttachmentUpload with AjaxSubmit

2015-02-20 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Samuel,

thx a lot. You made my day. 

Sometimes the naming of Wonder components is confusing to my limited cognitive 
faculty. Since e.g. AjaxSubmitButton can be used instead of ERXSubmitButton or 
AjaxFileUpload instead of WOFileUpload I was looking for something called 
AjaxAttachmentUpload instead of ERAttachmentUpload. So I simply should have dug 
just a little deeper into every Wonder class that starts with ERAttachment.

C.U.CW
-- 
I thought emacs was really cool, in 1986.  That’s when it was really cool 
to have a DEC VT220 terminal  in my dorm room with a 9600 baud connection 
to a VAX running BSD 4.3. Also, I listened to Depeche Mode.  (Jens Alfke)


On 20.02.2015, at 16:12, Samuel Pelletier sam...@samkar.com wrote:

 Hi Christoph,
 
 I do not think the Ajax form encoder handle the file upload, it will be 
 simply skipped.
 
 I think the ERAttachmentFlexibleUpload component can work in Ajax context.
 
 Samuel
 
 Le 2015-02-18 à 15:39, CHRISTOPH WICK | i4innovation GmbH, Bonn 
 c...@i4innovation.de a écrit :
 
 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 is uploaded.
 
 If I replace the AjaxSubmit with a plain old WOSubmit, everything works fine.
 
 Any hints? Is it impossible at all to use file uploads within Ajax submitted 
 forms?
 
 Thanks, Christoph
 -- 
 What are the three enemies of a programmer? Sunlight, oxygen, and the 
 appalling roar of the birds.
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
 
 This email sent to sam...@samkar.com
 


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 is uploaded.

If I replace the AjaxSubmit with a plain old WOSubmit, everything works fine.

Any hints? Is it impossible at all to use file uploads within Ajax submitted 
forms?

Thanks, Christoph
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 18.02.2015, at 13:07, Daniele Corti ilde...@gmail.com wrote:

 Hi List,
 Probably is a bit off topic, but I'm experiencing a strage thing on WOLips 
 and I would like to know if someone have passed the same problem.
 
 I've installed on a new installation of Yosemite, not an upgrade (on an Mac 
 Pro, Early 2008), the Eclipse 3.8.2 and the WOLips from the URL:  
 http://jenkins.wocommunity.org/job/WOLips38Community/lastSuccessfulBuild/artifact/temp/dist
 
 Ok, WO's things works with no problem, but using the Component Editor I've 
 some problems with the shortcut Command + C in order to Copy text.
 
 I mean: I select the code I would like to copy, press Apple Command + C 
 buttons, then I move where I would like to paste, and press Command + V, but 
 the code that is pasted is the previous copied text, not the last one.
 
 This only occurs with the shortcut (using the Keyboard, I mean), because if I 
 right click on the selected text and select Copy from the contextual menu, 
 the copy is correctly performed.
 
 That's very strange, even because it not happen every times, but enough to be 
 annoying. Keep tring the Command + C button on the same text, at last, exec 
 the right command, but sometimes I tried 4 or 5 times with no success, before 
 using the mouse!
 
 In the Java Editor, the copy and paste shortcut work with no problem, and 
 also in many other programs on the Mac (so I don't think is a problem with 
 the Keyboard).
 
 Has anyone experienced something like this?
 
 Thank you in advance!
 
 -- 
 Daniele Corti
 --
 I DON'T DoubleClick
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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.wocommunity.org/ubuntu/signature.gpg | sudo 
 apt-key add -

Unfortunately the key you get has expired on January, 13. 2015.

Can someone with appropriate access rights (Bastian?) create a new GPG key?

Thanks a lot,
C.U.CW
-- 
I thought emacs was really cool, in 1986.  That’s when it was really cool 
to have a DEC VT220 terminal  in my dorm room with a 9600 baud connection 
to a VAX running BSD 4.3. Also, I listened to Depeche Mode.  (Jens Alfke)




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 birds.
On 14.01.2015, at 21:18, Stefan Klein stefan.kl...@buero-sde.de wrote:

 Till the jenkins problem isn’t solved you can use 
 http://buero-sde.de/downloads/wolips4_4_0 as update site.
 To check the version see http://buero-sde.de/downloads/wolips4_4_0/site.xml 
 (It contains jrebel and jprofile support).
 
 This is the version I use in Eclipse IDE for Java Developers Version: Luna 
 Service Release 1 (4.4.1) 
 
 
 Stefan
 
 
 
 
 Am 14.01.2015 um 17:59 schrieb Pascal Robert prob...@macti.ca:
 
 The build on Jenkins complains that the properties file is missing, but it's 
 there...
 
 - Mail original -
 De: Ramsey Gurley rgur...@smarthealth.com
 À: Ken Anderson kenli...@anderhome.com
 Cc: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
 Envoyé: Mercredi 14 Janvier 2015 11:39:34
 Objet: Re: WOLips for Eclipse 4.4 binary
 
 Or just get the build set up correctly on jenkins :) I’m still using the 
 last successful build of 4.3 that I set up there.
 
 On Jan 14, 2015, at 8:57 AM, Ken Anderson kenli...@anderhome.com wrote:
 
 +1^2 !
 
 On Jan 14, 2015, at 10:54 AM, John Huss johnth...@gmail.com wrote:
 
 If anyone has a build of WOLips for Eclipse 4.4 that mostly works, can you 
 provide a binary?  I don't really want to build my own, and I bet many 
 others would also appreciate it.
 
 Thanks,
 John 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
 
 This email sent to kenli...@anderhome.com
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
 
 This email sent to prob...@macti.ca
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40buero-sde.de
 
 This email sent to stefan.kl...@buero-sde.de
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 interest would be to learn more about ERRest. I have a 
somehow good understanding about how to get it working technically. But I'd 
like to know more about the pragmatics of building applications or APIs with 
it. It feels like having understood how EOF works but not how to build a 
session based applications.
-- 
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

On 28.12.2014, at 20:10, Tobias Janz janz.tob...@gmail.com wrote:

 Hi all,
 
 i'm realy glad about WOWODC in Germany.
 I'm looking to come to the conference. Hopefully my company will pay the 
 tickets for me. But to get them to that point i need to know which 
 presentations will come up.
 
 In my company we don't use WO, but there is a lot of cool stuff which can be 
 integrated. The last weeks i've done some testing with jnario. If someone is 
 interested in it i could do a session about jnario (jnario.org). The main 
 focus of this framework is to have executable specifications and no 
 seperation between testspezification and testexcecution.
 
 Looking forward to WOWODC 2015
 
 Tobias
 
 2014-12-28 12:31 GMT+01:00 Matthias Fricke matthias.fri...@xyrality.com:
 Hi all,
 
 we have some presentations already but still looking for more.
 I will have the first draft on the website by tomorrow.
 
 Best,
 Matthias
 
 Am 28.12.2014 um 12:29 schrieb Matthias Fricke 
 matthias.fri...@xyrality.com:
 
 Hi,
 
 we have some presentations already but still looking for more.
 I will have the first draft on the website by tomorrow.
 
 Best,
 Matthias
 
 
  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/janz.tobias%40gmail.com
 
 This email sent to janz.tob...@gmail.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 htmlbody ... 
/body/html stuff), but the CSV content you need:

wo:repeat list=$myList item=$myItem
wo:string value=$myItem.property1 /, wo:string 
value=$myItem.property2 / ...
/wo:repeat

2. in MyCSVComponent.java you override the method appendToResponse like this:

public class MyCSVComponent extends ERXComponent {

public String fileName;
public NSArrayMyObject myList;
public MyObject item;

// override appendToResponse to let the browser make a download, 
// instead of displaying the result in a brwoser window
public void appendToResponse(WOResponse response, WOContext context) {
// set the mimetype to csv
response.setHeader(text/comma-separated-values, 
content-type);
// tell the browser to download the file instead of showing it 
in a window
response.setHeader(attachment; filename=\+fileName+\, 
Content-Disposition);

// create the response
super.appendToResponse(response, context);
}
}

where fileName is the name of the file you will give the download.

In your master page, create a link like this:

wo:link action = $downloadCSVActiondownload CSV/link

and in the Java-Code of your master page

public WOActionResults downloadCSVAction() {
MyCSVComponent nextPage = (MyCSVComponent) 
pageWithName(MyCSVComponent.class);
nextPage.myList = ... // set the list to an NSArray of whatever 
you need
nextPage.fileName = ... // set the fileName to whatever you need
return nextPage;
}


Does this answer your question?

C.U.CW
-- 
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

On 13.12.2014, at 21:59, Robert B. Hanviriyapunt roberth...@lstreetc.com 
wrote:

 Help!  I need some advise on how to EASILY accomplish the following:
 
 have array of ERXKey(Path)s for columns to report
 have array of EOs
 must make wo:link's action respond with CSV (browser to download, not display 
 in browser)
 
 what is the easiest way (i’m hoping it’s not D2W unless it make it really 
 easier)
 
 please a quick demo solution somewhere would be awesome!
 
 = Robert =
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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);
   
 NSLog.out.appendln(ERX 2015/2016: 
 +ERXTimestampUtilities.differenceByDay(dec312015, jan012016));
 
 NSTimestamp dec312016 = new NSTimestamp(2016, 12, 31, 0, 0, 0, null);
 NSTimestamp jan012017 = new NSTimestamp(2017,  1,  1, 0, 0, 0, null);
 
 NSLog.out.appendln(ERX 2016/2017: 
 +ERXTimestampUtilities.differenceByDay(dec312016, jan012017));

The output is:

ERX 2015/2016: 1
ERX 2016/2017: 0

This is obviously wrong because it should return 1 in both cases.

I think the culprit is 
ERXTimestampUtilities.offsetForDateInCommonEra(NSTimestamp t, int mode), 
because ERXTimestampUtilities.differenceByDay simply calculates 

 offsetForDateInCommonEra(t2, mode) - offsetForDateInCommonEra(t1, mode);


with mode=Calendar.DAY_OF_YEAR.

If you pass mode=Calendar.DAY_OF_YEAR and a timestamp to 
ERXTimestampUtilities.offsetForDateInCommonEra, it calculates

 case Calendar.DAY_OF_YEAR:
 return calendar.get(Calendar.YEAR) * 365 + 
 calendar.get(Calendar.DAY_OF_YEAR);


So it simply takes the number of years times 365. But 365 is not the right 
value for leap years.

Can someone confirm that ERXTimestampUtilities.differenceByDay is buggy? Or am 
I completely wrong?

C.U.CW
-- 
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 matthias.fri...@xyrality.com wrote:

 Hi,
 
 finally we have everything together and the WOWODC 2015 page is up an running.
 http://www.wocommunity.org/wowodc15/
 
 We will add the Registration part ASAP.
 
 Have something  to present to the community? We still looking for content. 
 Please contact me directly so that we can plan the presentations.
 
 Best,
 Matthias
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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:

wo:if condition = $ses.programmeManager.providerCanChangeStatusToSUBMITTED
 ...
/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.

Nevertheless my app crashes complaining that there is no corresponding setter 
method (Stacktrace below).

For testing I implemented an empty setter method:

  public void setProviderCanChangeStatusToSUBMITTED(boolean b) {}

and then everything works fine.

Any ideas why WO is trying to call this setter method?


Stacktrace is:

Nov 13 20:44:58 EBACMgmt[4] WARN  NSLog  - 
er.extensions.appserver.ERXComponentRequestHandler: Exception occurred while 
handling request:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message 
'de.i4innovation.ebacmgmt.eo.managers.EMEventManager 0x6abafc4c 
takeValueForKey(): attempt to assign value to unknown key: 
'providerCanChangeStatusToSUBMITTED'.
This class does not have an instance variable of the name 
providerCanChangeStatusToSUBMITTED or _providerCanChangeStatusToSUBMITTED, nor 
a method of the name setProviderCanChangeStatusToSUBMITTED or 
_setProviderCanChangeStatusToSUBMITTED' object 
'de.i4innovation.ebacmgmt.eo.managers.EMEventManager@6abafc4c' key 
'providerCanChangeStatusToSUBMITTED'
[2014-11-13 20:44:58 MEZ] WorkerThread0 
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message 
'de.i4innovation.ebacmgmt.eo.managers.EMEventManager 0x6abafc4c 
takeValueForKey(): attempt to assign value to unknown key: 
'providerCanChangeStatusToSUBMITTED'.
This class does not have an instance variable of the name 
providerCanChangeStatusToSUBMITTED or _providerCanChangeStatusToSUBMITTED, nor 
a method of the name setProviderCanChangeStatusToSUBMITTED or 
_setProviderCanChangeStatusToSUBMITTED' object 
'de.i4innovation.ebacmgmt.eo.managers.EMEventManager@6abafc4c' key 
'providerCanChangeStatusToSUBMITTED'
at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.handleTakeValueForUnboundKey(NSKeyValueCoding.java:1399)
at 
com.webobjects.foundation.NSKeyValueCoding$Utility.handleTakeValueForUnboundKey(NSKeyValueCoding.java:521)
at 
com.webobjects.foundation.NSKeyValueCoding$_KeyBinding.setValueInObject(NSKeyValueCoding.java:899)
at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.takeValueForKey(NSKeyValueCoding.java:1354)
at 
com.webobjects.foundation.NSKeyValueCoding$Utility.takeValueForKey(NSKeyValueCoding.java:471)
at 
com.webobjects.foundation.NSValidation$DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java:679)
at 
com.webobjects.foundation.NSValidation$Utility.validateTakeValueForKeyPath(NSValidation.java:504)
at 
com.webobjects.foundation.NSValidation$DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java:687)
at 
com.webobjects.foundation.NSValidation$Utility.validateTakeValueForKeyPath(NSValidation.java:504)
at 
com.webobjects.foundation.NSValidation$DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java:687)
at 
com.webobjects.appserver.WOComponent.validateTakeValueForKeyPath(WOComponent.java:1424)
at 
com.webobjects.appserver._private.WOKeyValueAssociation.setValue(WOKeyValueAssociation.java:76)
at 
ognl.helperfunction.WOHelperFunctionKeyValueAssociation.setValue(WOHelperFunctionKeyValueAssociation.java:21)
at 
com.webobjects.appserver.WOComponent._doPushValuesUp(WOComponent.java:558)
at 
com.webobjects.appserver.WOComponent.pushValuesToParent(WOComponent.java:535)
at 
com.webobjects.appserver._private.WOComponentReference._popComponentFromContext(WOComponentReference.java:109)
at 
com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:128)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
er.extensions.components._private.ERXWOForm.invokeAction(ERXWOForm.java:218)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
er.extensions.components.conditionals.ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:116)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 

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

2014-11-13 Thread Christoph Wick
Hi Chuck, 

thanks for the information.

Does it make sense to have a non-stateless non-synchronizing component?

My rule-of-thumb has always been stateless+non-synchronizing or 
non-stateless-synchronizing. But it seems to be a 2x2 matrix.

C.U.CW
-- 
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

On 13.11.2014, at 21:27, Chuck Hill ch...@gevityinc.com wrote:

 This is part of binding synchronization:
 at com.webobjects.appserver.WOComponent._doPushValuesUp(WOComponent.java:558)
 at 
 com.webobjects.appserver.WOComponent.pushValuesToParent(WOComponent.java:535)
 
 You can either implement the setter or turn off automatic synchronization.
 
 Chuck
 
 
 
 On 2014-11-13, 12:16 PM, CHRISTOPH WICK | i4innovation GmbH, Bonn wrote:
 
 I have a strange problem:
 
 in a component I use a wo:if:
 
 wo:if condition = $ses.programmeManager.providerCanChangeStatusToSUBMITTED
 ...
 /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.
 
 Nevertheless my app crashes complaining that there is no corresponding setter 
 method (Stacktrace below).
 
 For testing I implemented an empty setter method:
 
   public void setProviderCanChangeStatusToSUBMITTED(boolean b) {}
 
 and then everything works fine.
 
 Any ideas why WO is trying to call this setter method?
 
 
 Stacktrace is:
 
 Nov 13 20:44:58 EBACMgmt[4] WARN  NSLog  - 
 er.extensions.appserver.ERXComponentRequestHandler: Exception occurred 
 while handling request:
 com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message 
 'de.i4innovation.ebacmgmt.eo.managers.EMEventManager 0x6abafc4c 
 takeValueForKey(): attempt to assign value to unknown key: 
 'providerCanChangeStatusToSUBMITTED'.
 This class does not have an instance variable of the name 
 providerCanChangeStatusToSUBMITTED or _providerCanChangeStatusToSUBMITTED, 
 nor a method of the name setProviderCanChangeStatusToSUBMITTED or 
 _setProviderCanChangeStatusToSUBMITTED' object 
 'de.i4innovation.ebacmgmt.eo.managers.EMEventManager@6abafc4c' key 
 'providerCanChangeStatusToSUBMITTED'
 [2014-11-13 20:44:58 MEZ] WorkerThread0 
 com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message 
 'de.i4innovation.ebacmgmt.eo.managers.EMEventManager 0x6abafc4c 
 takeValueForKey(): attempt to assign value to unknown key: 
 'providerCanChangeStatusToSUBMITTED'.
 This class does not have an instance variable of the name 
 providerCanChangeStatusToSUBMITTED or _providerCanChangeStatusToSUBMITTED, 
 nor a method of the name setProviderCanChangeStatusToSUBMITTED or 
 _setProviderCanChangeStatusToSUBMITTED' object 
 'de.i4innovation.ebacmgmt.eo.managers.EMEventManager@6abafc4c' key 
 'providerCanChangeStatusToSUBMITTED'
 at 
 com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.handleTakeValueForUnboundKey(NSKeyValueCoding.java:1399)
 at 
 com.webobjects.foundation.NSKeyValueCoding$Utility.handleTakeValueForUnboundKey(NSKeyValueCoding.java:521)
 at 
 com.webobjects.foundation.NSKeyValueCoding$_KeyBinding.setValueInObject(NSKeyValueCoding.java:899)
 at 
 com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.takeValueForKey(NSKeyValueCoding.java:1354)
 at 
 com.webobjects.foundation.NSKeyValueCoding$Utility.takeValueForKey(NSKeyValueCoding.java:471)
 at 
 com.webobjects.foundation.NSValidation$DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java:679)
 at 
 com.webobjects.foundation.NSValidation$Utility.validateTakeValueForKeyPath(NSValidation.java:504)
 at 
 com.webobjects.foundation.NSValidation$DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java:687)
 at 
 com.webobjects.foundation.NSValidation$Utility.validateTakeValueForKeyPath(NSValidation.java:504)
 at 
 com.webobjects.foundation.NSValidation$DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java:687)
 at 
 com.webobjects.appserver.WOComponent.validateTakeValueForKeyPath(WOComponent.java:1424)
 at 
 com.webobjects.appserver._private.WOKeyValueAssociation.setValue(WOKeyValueAssociation.java:76)
 at 
 ognl.helperfunction.WOHelperFunctionKeyValueAssociation.setValue(WOHelperFunctionKeyValueAssociation.java:21)
 at com.webobjects.appserver.WOComponent._doPushValuesUp(WOComponent.java:558)
 at 
 com.webobjects.appserver.WOComponent.pushValuesToParent(WOComponent.java:535)
 at 
 com.webobjects.appserver._private.WOComponentReference._popComponentFromContext(WOComponentReference.java:109)
 at 
 com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:128)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
 at 
 com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
 at 
 er.extensions.components._private.ERXWOForm.invokeAction(ERXWOForm.java

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 something like

 public void printNumber(int start, int stop) {
   for (int i = start; i=stop; i++) {
 System.out.println(i);
   }
 }

You can make a recursive version like

 public void printNumbersRecursive(int start, int stop) {
   if (start = stop) {
 System.out.println(start);
 printNumbersRecursive(start+1, stop);
   }
 }

In this case I would aways prefer the loop-version. It somehow feels more 
natural to me.

But there are problems where recursion can be very handy. E.g. if you have 
non-linear structures like trees.

Assume the following class:

public class MyNode {

 private String name;
 private NSMutableArrayMyNode children = new NSMutableArrayMyNode();

 public MyNode(String name) {
   this.name = name;
 }
 public void addToChildren(MyNode child) {
   children.addObject(child);
 }
}

and you build the following structure with it

public static void main(String[] args) {

   MyNode root = new MyNode(root);

   MyNode child1 = new MyNode(child1);
   root.addToChildren(child1);
   MyNode child2 = new MyNode(child2);
   root.addToChildren(child2);

   MyNode child11 = new MyNode(child11);
   child1.addToChildren(child11);
   MyNode child12 = new MyNode(child12);
   child1.addToChildren(child12);
}

If you want to do something on all nodes (also called 'traversion'), e.g. write 
a debug info to the console, I would code this like

 public void debug() {
   System.out.println(node: +name);
   System.out.println(children: [);
   for (MyNode child : children) {
 // recursion
 child.debug();
   }
   System.out.println(]);
 }

A call of root.debug() in the main method would produce

node: root
children: [
node: child1
children: [
node: child11
children: [
]
node: child12
children: [
]
]
node: child2
children: [
]
]

A non-recursive version of the debug method would be much more complicated.

Jm2c

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 12.11.2014, at 12:32, Theodore Petrosky tedp...@yahoo.com wrote:

 I am trying like mad to learn more. So I have decided to put time into 
 Recursive algorithms. I do not want to start a conversation whether or not 
 one should or should not use recursion in this example. That is a 
 conversation for another day. I don’t believe that using it here will impact 
 the app at all.
 
 As an experiment I am trying to use one in my validation method. Would one of 
 you great minds take a look at this. It works, but I feel I am jumping 
 through too many hoops. This is my first attempt so have a little pity:
 
   
   public String validateHeight(String value) throws ValidationException {
   value = value.trim();
 
   if (!isNumber(value)) {
   throw new ValidationException(There can be only 
 numbers in the Height field! (value was  + value +));
   }
   return value;
   }
 
   private boolean isNumber(String stringToCheck) {
   if (stringToCheck.length() == 0) return true;
   if (!Character.isDigit(stringToCheck.charAt(0))) return false;
   return isNumber(stringToCheck.substring(1, 
 stringToCheck.length()));
   }
 
 
 My desire is to get better at this and learning recursion is very important. 
 Also, when I look at other people’s code, there are times that there are 
 recursive calls and I struggle to understand them. 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de
 



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 matthias.fri...@xyrality.com wrote:

 For now I can let you know that the conference is planed for April 25, 26 and 
 27 2015 in Hamburg, Germany. 
 

C.U.CW
-- 
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

On 09.11.2014, at 16:15, Theodore Petrosky tedp...@yahoo.com wrote:

 Don’t want to sound like an alarmist but it is getting late to make plans!
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 run, the output is:

 Client.main: single company = null

so client.objectWithPath(Company/1.json) ALWAYS returns null (although the 
URL works, if you call it manually)

After digging into the code, I found the class ClientCompanyRestDelegate.java 
with its method

 public Object objectOfEntityWithID(EOClassDescription entity, Object id, 
 ERXRestContext context) {
   return null;
 }


that is called. So, obviously I get null.

My questions are now:
- has anyone make this example running?
- or is this whole example broken?

Thx for your help.
C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Consuming REST services with a WO app

2014-10-27 Thread Christoph Wick
Sorry (it was too late yesterday):

I found it: 
http://wiki.wocommunity.org/display/documentation/Consuming+REST+services

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 27.10.2014, at 00:23, CHRISTOPH WICK | i4innovation GmbH, Bonn 
c...@i4innovation.de wrote:

 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 side, e.g. using javascript. But in my case I need something to 
 consume a REST service in the woa's java code.
 
 Thanks for any hints,
 C.U.CW
 -- 
 What are the three enemies of a programmer? Sunlight, oxygen, and the 
 appalling roar of the birds.
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 
side, e.g. using javascript. But in my case I need something to consume a REST 
service in the woa's java code.

Thanks for any hints,
C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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, at 16:44, Ken Anderson kenli...@anderhome.com wrote:

 An excellent recommendation.  And, if you have OmniGraffle 4, it will 
 actually open the eomodeld and create an initial graphic.  I *wish* they had 
 kept this feature in later version!
 
 On Oct 23, 2014, at 10:41 AM, Paul Yu p...@mac.com wrote:
 
 Omni graffle 
 
 Sent from my iPad
 
 On Oct 23, 2014, at 10:40 AM, Calven Eggert cegg...@uhnresearch.ca wrote:
 
 Hi, Fellow WOers
 
 What are people using these days to create diagrams from the EO models?
 
 Calven
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
 
 This email sent to p...@mac.com
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
 
 This email sent to kenli...@anderhome.com
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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' in Monitor or 
setting the property in the Application constructor with 
'System.setProperty(java.awt.headless, true);'

Anyway, this shouldn't happen during development on OS X, since AWT is there 
for your Java process.

C.U.CW

P.S.: I suppose you set the captcha's validated binding to a boolean?

-- 
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

On 09.10.2014, at 07:28, Klaus Berkling webobje...@berkling.us wrote:

 Hi all.
 
 I'm trying to get ERCaptcha to work.  I only get an all black image.  Is 
 there a seed I need to set or some other initialization?  Other than adding 
 the ERCaptcha component to the form (not a directAction) what is there to do? 
  Isn't there suppose to be javascript on the page when running?
 
 
 kib
 
 The trouble with normal is it always gets worse.
 Bruce Cockburn
 
 Klaus Berkling
 www.berkling.us | @kiberkli | Photography
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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);
}

To make this working during development on the Mac, I put a softlink from

/MYPATH_TO_ECLIPSE/OUR_APP_PROJECT/build/OurApp.woa -- 
/Libary/WebServer/Documents/WebObjects/OurApp.woa

This works on the Mac, since the WO-build-in development server somehow scans 
/Library/WebServer/Documents/ (the default document root for Apache on Mac) 
during startup and delivers the resources to the browser.

Problem:

Since there is no /Library/WebServer/Documents/ on Linux (default is 
/var/www/html - at least on Ubuntu), this doesn't work on Linux

Since my colleague doesn't want to create a folder 
/Library/WebServer/Documents/ (let's call this decision sort of religious but 
nevertheless :-) I was looking for the place where that 
/Library/WebServer/Documents/  information came from.

The only place I found, was 
/PATH_TO_WO_FRAMEWORKS/JavaWebObjects.framework/Resources/WebServerConfig.plist.
 Inside this plist there is an entry 'DocumentRoot = 
/Library/WebServer/Documents;'

Now, my colleague could modify the plist entry and everything works fine, but 
...

Question:
-
Is there any other way to tell the WebObjects development environment to look 
for the document root than patching the WebServerConfig.plist inside the 
JavaWebObjects.framework folder?

Side notes:
---
I tried to override the documentRoot() method of my Application class to return 
the correct path, but it's never called during startup. At least while in  
development mode.

I also tried to set the property application.documentRoot - same effect. 
Doesn't work.

Thanks for your help, C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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

2014-10-02 Thread Christoph Wick
Hi Ralf, hi list,

thanks for your answer.

Of course, I'm using wonder.

But it doesn't work the way you suggest.

If I replace

 body {
 background: 
 url(/WebObjects/OurApp.woa/Contents/WebServerResources/gfx/background.jpg) 
 repeat;
 }

with 

 body {
 background: url(gfx/background.jpg) repeat;
 }

the background image is not displayed. CSS's urls need absolute URLs.

The stylesheet itself is a static resource and is linked with

 wo:ERXStyleSheet filename=css/ourappstylesheet.css rel=stylesheet 
 media=screen/wo:ERXStyleSheet

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 r...@gmx.de wrote:

 When you are using Wonder, you can simply use a path relative to the css file 
 in the WebSeverResources directory (e.g. url(gfx/background.jpg) ) and it 
 should work in development and deployment.
 
 Ralf
 
 
 Am 02.Okt. 2014 um 10:17 schrieb CHRISTOPH WICK | i4innovation GmbH, Bonn 
 c...@i4innovation.de:
 
 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);
 }
 
 To make this working during development on the Mac, I put a softlink from
 
 /MYPATH_TO_ECLIPSE/OUR_APP_PROJECT/build/OurApp.woa -- 
 /Libary/WebServer/Documents/WebObjects/OurApp.woa
 
 This works on the Mac, since the WO-build-in development server somehow 
 scans /Library/WebServer/Documents/ (the default document root for Apache on 
 Mac) during startup and delivers the resources to the browser.
 
 Problem:
 
 Since there is no /Library/WebServer/Documents/ on Linux (default is 
 /var/www/html - at least on Ubuntu), this doesn't work on Linux
 
 Since my colleague doesn't want to create a folder 
 /Library/WebServer/Documents/ (let's call this decision sort of religious 
 but nevertheless :-) I was looking for the place where that 
 /Library/WebServer/Documents/   information came from.
 
 The only place I found, was 
 /PATH_TO_WO_FRAMEWORKS/JavaWebObjects.framework/Resources/WebServerConfig.plist.
  Inside this plist there is an entry 'DocumentRoot = 
 /Library/WebServer/Documents;'
 
 Now, my colleague could modify the plist entry and everything works fine, 
 but ...
 
 Question:
 -
 Is there any other way to tell the WebObjects development environment to 
 look for the document root than patching the WebServerConfig.plist inside 
 the JavaWebObjects.framework folder?
 
 Side notes:
 ---
 I tried to override the documentRoot() method of my Application class to 
 return the correct path, but it's never called during startup. At least 
 while in  development mode.
 
 I also tried to set the property application.documentRoot - same effect. 
 Doesn't work.
 
 Thanks for your help, C.U.CW
 -- 
 What are the three enemies of a programmer? Sunlight, oxygen, and the 
 appalling roar of the birds.
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rasc%40gmx.de
 
 This email sent to r...@gmx.de
 



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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

2014-10-02 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Johann, hi list.

Thx again. I missed, that the css and the jpg were in different folders. Now it 
works like a charm :-)

C.U.CW

P.S.: Just out of curiosity: has anybody an answer to my original question? How 
did this work, when Windows was an officially supported platform?
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 02.10.2014, at 11:20, Johann Werner j...@oyosys.de wrote:

 Hi Christoph,
 
 as Ralf said use a path relative to the css file“ so you should try:
 
 body {
   background: url(../gfx/background.jpg) repeat;
 }
 
 jw
 
 
 Am 02.10.2014 um 10:58 schrieb Christoph Wick c...@i4innovation.de:
 
 Hi Ralf, hi list,
 
 thanks for your answer.
 
 Of course, I'm using wonder.
 
 But it doesn't work the way you suggest.
 
 If I replace
 
 body {
   background: 
 url(/WebObjects/OurApp.woa/Contents/WebServerResources/gfx/background.jpg)
  repeat;
 }
 
 with 
 
 body {
   background: url(gfx/background.jpg) repeat;
 }
 
 the background image is not displayed. CSS's urls need absolute URLs.
 
 The stylesheet itself is a static resource and is linked with
 
 wo:ERXStyleSheet filename=css/ourappstylesheet.css rel=stylesheet 
 media=screen/wo:ERXStyleSheet
 
 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 r...@gmx.de wrote:
 
 When you are using Wonder, you can simply use a path relative to the css 
 file in the WebSeverResources directory (e.g. url(gfx/background.jpg) ) and 
 it should work in development and deployment.
 
 Ralf
 
 
 Am 02.Okt. 2014 um 10:17 schrieb CHRISTOPH WICK | i4innovation GmbH, Bonn 
 c...@i4innovation.de:
 
 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);
 }
 
 To make this working during development on the Mac, I put a softlink from
 
 /MYPATH_TO_ECLIPSE/OUR_APP_PROJECT/build/OurApp.woa -- 
 /Libary/WebServer/Documents/WebObjects/OurApp.woa
 
 This works on the Mac, since the WO-build-in development server somehow 
 scans /Library/WebServer/Documents/ (the default document root for Apache 
 on Mac) during startup and delivers the resources to the browser.
 
 Problem:
 
 Since there is no /Library/WebServer/Documents/ on Linux (default is 
 /var/www/html - at least on Ubuntu), this doesn't work on Linux
 
 Since my colleague doesn't want to create a folder 
 /Library/WebServer/Documents/ (let's call this decision sort of 
 religious but nevertheless :-) I was looking for the place where that 
 /Library/WebServer/Documents/ information came from.
 
 The only place I found, was 
 /PATH_TO_WO_FRAMEWORKS/JavaWebObjects.framework/Resources/WebServerConfig.plist.
  Inside this plist there is an entry 'DocumentRoot = 
 /Library/WebServer/Documents;'
 
 Now, my colleague could modify the plist entry and everything works fine, 
 but ...
 
 Question:
 -
 Is there any other way to tell the WebObjects development environment to 
 look for the document root than patching the WebServerConfig.plist inside 
 the JavaWebObjects.framework folder?
 
 Side notes:
 ---
 I tried to override the documentRoot() method of my Application class to 
 return the correct path, but it's never called during startup. At least 
 while in  development mode.
 
 I also tried to set the property application.documentRoot - same effect. 
 Doesn't work.
 
 Thanks for your help, C.U.CW
 -- 
 What are the three enemies of a programmer? Sunlight, oxygen, and the 
 appalling roar of the birds.
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rasc%40gmx.de
 
 This email sent to r...@gmx.de
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.com
 
 This email sent to j...@oyosys.com
 



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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

2014-05-28 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Bastian,

thx (again ;-) for your explanation. Maybe you can update the docs in the wiki.

Another thing: 

Line 4 of apache's config file for the webobjects module 
(/etc/apache2/mods-available/webobjects.conf) is:

 Alias /WebObjects /var/lib/webobjects/htdocs/WebObjects

Unfortunately this doesn't work out of the box. At least, it does not on Ubuntu 
14.04 LTS. According to my (limited) understanding of apache configuration, it 
should be:

 IfModule alias_module
 Alias /WebObjects /var/lib/webobjects/htdocs/WebObjects
 Directory /var/lib/webobjects/htdocs/WebObjects
 Options FollowSymlinks
 AllowOverride None
 Require all granted
 /Directory
 /IfModule  

Could you fix this as well?
C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.


On 27.05.2014, at 22:12, Bastian Triller bastian.tril...@gmail.com wrote:

 the default wotaskd and javamonitor is from the webobjects package. This is 
 kind of bad documented. webobjects is a dependency of the wonder wotaskd and 
 javamonitor, so webobjects gets installed first. with it the old applications 
 from apple, because it's practically possible to use this in deployment. but 
 since it's recommended to use the wonder versions (and distributing the stack 
 across multiple hosts isn't very common, at least it wasn't for me), i used 
 the wonder packages in the install instructions. if you want to switch 
 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 
 c...@i4innovation.de wrote:
 Hi Bastian,
 
 it works like a charm now - thx a lot. Checked on a clean fresh installation.
 
 One more question: the WOMonitor that comes with that installation LOOKS as 
 it is the old one from Apple (big fat Aqua-Tabs), not like the one from 
 Wonder (see 
 http://wiki.wocommunity.org/display/documentation/Deploying+on+Linux).
 
 On the other hand, it contains some Wonder-Frameworks (if you take a look 
 into 
 /var/lib/webobjects/Library/WebObjects/Applications/JavaMonitor.woa/Contents/Frameworks).
 
 So my question: is this intended? Are there two separat version of Wonder's 
 WOMonitor. Or is the one in you package simply outdated? (Can't remember 
 anymore when Wonder's WOMonitor got the new design. But it must haven been 
 some years ago). If so, can it be updated also?
 
 Thx again for the installer. Great to work with this community.
 C.U.CW
 --
 What are the three enemies of a programmer? Sunlight, oxygen, and the 
 appalling roar of the birds.
 
 On 27.05.2014, at 15:15, Bastian Triller bastian.tril...@gmail.com 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 GmbH, Bonn 
  wrote:
  Hi Bastian,
 
  thanks for updating the Ubuntu/Debian installer.
 
  Unfortunately, it doesn't work for me.
 
  I installed a fresh and clean Ubuntu 14 LTS and followed the instructions 
  on
 
 
  http://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu
 
 
  with
 
  DIST=ubuntu
  SUITE=trusty
 
  I get the following error:
 
 
   $ sudo apt-get install libapache2-mod-wo projectwonder-javamonitor 
   projectwonder-wotaskd
   Reading package lists... Done
   Building dependency tree
   Reading state information... Done
   Some packages could not be installed. This may mean that you have
   requested an impossible situation or if you are using the unstable
   distribution that some required packages have not yet been created
   or been moved out of Incoming.
   The following information may help to resolve the situation:
  
   The following packages have unmet dependencies:
projectwonder-javamonitor : Depends: webobjects but it is not 
   installable
Depends: libprojectwonder-ajax-java but it 
   is not going to be installed
Depends: libprojectwonder-javamonitor-java 
   but it is not going to be installed
Depends: libprojectwonder-rest-java but it 
   is not going to be installed
projectwonder-wotaskd : Depends: webobjects but it is not installable
Depends: libprojectwonder-javamonitor-java but 
   it is not going to be installed
Depends: libprojectwonder-rest-java but it is 
   not going to be installed
   E: Unable to correct problems, you have held broken packages.
 
 
 
  If I try
 
 
   $ sudo apt-get install webobjects
 
 
  I get
 
 
   Reading package lists... Done
   Building dependency tree
   Reading state information... Done
   Package webobjects is not available, but is referred to by another 
   package.
   This may mean that the package is missing, has been obsoleted

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

2014-05-27 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Bastian,

it works like a charm now - thx a lot. Checked on a clean fresh installation.

One more question: the WOMonitor that comes with that installation LOOKS as it 
is the old one from Apple (big fat Aqua-Tabs), not like the one from Wonder 
(see http://wiki.wocommunity.org/display/documentation/Deploying+on+Linux).

On the other hand, it contains some Wonder-Frameworks (if you take a look into 
/var/lib/webobjects/Library/WebObjects/Applications/JavaMonitor.woa/Contents/Frameworks).

So my question: is this intended? Are there two separat version of Wonder's 
WOMonitor. Or is the one in you package simply outdated? (Can't remember 
anymore when Wonder's WOMonitor got the new design. But it must haven been some 
years ago). If so, can it be updated also?

Thx again for the installer. Great to work with this community.
C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 27.05.2014, at 15:15, Bastian Triller bastian.tril...@gmail.com 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 GmbH, Bonn 
 wrote:
 Hi Bastian,
 
 thanks for updating the Ubuntu/Debian installer.
 
 Unfortunately, it doesn't work for me.
 
 I installed a fresh and clean Ubuntu 14 LTS and followed the instructions on 
 
 
 http://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu
 
 
 with
 
 DIST=ubuntu
 SUITE=trusty
 
 I get the following error:
 
 
  $ sudo apt-get install libapache2-mod-wo projectwonder-javamonitor 
  projectwonder-wotaskd
  Reading package lists... Done
  Building dependency tree   
  Reading state information... Done
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:
  
  The following packages have unmet dependencies:
   projectwonder-javamonitor : Depends: webobjects but it is not installable
   Depends: libprojectwonder-ajax-java but it is 
  not going to be installed
   Depends: libprojectwonder-javamonitor-java 
  but it is not going to be installed
   Depends: libprojectwonder-rest-java but it is 
  not going to be installed
   projectwonder-wotaskd : Depends: webobjects but it is not installable
   Depends: libprojectwonder-javamonitor-java but it 
  is not going to be installed
   Depends: libprojectwonder-rest-java but it is not 
  going to be installed
  E: Unable to correct problems, you have held broken packages.
 
 
 
 If I try 
 
 
  $ sudo apt-get install webobjects
 
 
 I get
 
 
  Reading package lists... Done
  Building dependency tree   
  Reading state information... Done
  Package webobjects 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 missing?
 
 C.U.CW
 
 



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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

2014-05-26 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Bastian,

thanks for updating the Ubuntu/Debian installer.

Unfortunately, it doesn't work for me.

I installed a fresh and clean Ubuntu 14 LTS and followed the instructions on 

http://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu

with

DIST=ubuntu
SUITE=trusty

I get the following error:

 $ sudo apt-get install libapache2-mod-wo projectwonder-javamonitor 
 projectwonder-wotaskd
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 Some packages could not be installed. This may mean that you have
 requested an impossible situation or if you are using the unstable
 distribution that some required packages have not yet been created
 or been moved out of Incoming.
 The following information may help to resolve the situation:
 
 The following packages have unmet dependencies:
  projectwonder-javamonitor : Depends: webobjects but it is not installable
  Depends: libprojectwonder-ajax-java but it is 
 not going to be installed
  Depends: libprojectwonder-javamonitor-java but 
 it is not going to be installed
  Depends: libprojectwonder-rest-java but it is 
 not going to be installed
  projectwonder-wotaskd : Depends: webobjects but it is not installable
  Depends: libprojectwonder-javamonitor-java but it is 
 not going to be installed
  Depends: libprojectwonder-rest-java but it is not 
 going to be installed
 E: Unable to correct problems, you have held broken packages.


If I try 

 $ sudo apt-get install webobjects

I get

 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 Package webobjects 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 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 bastian.tril...@gmail.com wrote:

 I uploaded the package for trusty/amd64 today.
 
 On Tue, 2014-05-20 at 11:12 +0200, CHRISTOPH WICK | i4innovation GmbH, Bonn 
 wrote:
 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
 
 



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Kind of virus on this list?

2014-05-26 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi List,

each time I send a mail to someone and cc to this list 
(webobjects-dev@lists.apple.com), I get 

1. a mail from system-u...@mms.mycricket.com pretending to be a system 
message telling me, that the original message could not be delivered.

2. a spam mail from supp...@lativio.com, subject Thank you for your email

Does anyone get the same messages? Is this a kind of virus in the list or is 
there something wrong with my own mailserver (I pray, it's not :-)

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

Begin forwarded message:

 From: supp...@lativio.com
 Subject: Thank you for your email
 Date: 26. Mai 2014 12:15:26 MESZ
 To: c...@i4innovation.de
 
 Thank you for your email, unfortunately this email address is no longer in 
 use.
 
 Please find below new contact details which you may use instead:
 
 SizeGenetics
 E-mail: supp...@sizegenetics.com
 Phone: +44 115 979 8446
 
 PenisHealth
 E-mail: supp...@penishealth.com
 Phone: +44 115 979 8447
 
 LoveCentria
 E-mail: supp...@lovecentria.com
 Phone: +44 115 979 8448
 
 Proactol
 E-mail: supp...@proactol.com
 Phone: +44 115 979 8449



Begin forwarded message:

 From: system-u...@mms.mycricket.com
 Subject: Delivery Status Notification
 Date: 26. Mai 2014 11:58:56 MESZ
 To: c...@i4innovation.de
 
 Your message was not delivered successfully.
 
  Subject:   Re: Any plans to build libapache2-mod-wo for Ubuntu 14.04 LTS
  Sent:  Mon, 26 May 2014 11:51:55 +0200
 
 The message could not be delivered to the following recipient:
 bastian.tril...@gmail.com
 Final-Recipient: rfc822; bastian.tril...@gmail.com
 Action: failed
 Status: 5.0.0
 
 From: c...@i4innovation.de
 Subject: Re: Any plans to build libapache2-mod-wo for Ubuntu 14.04 LTS
 Date: 26. Mai 2014 11:51:55 MESZ
 To: Bastian Triller bastian.tril...@gmail.com
 Cc: WebObjects Apple webobjects-dev@lists.apple.com
 
 
 Hi Bastian,
 
 thanks for updating the Ubuntu/Debian installer.
 
 Unfortunately, it doesn't work for me.
 
 I installed a fresh and clean Ubuntu 14 LTS and followed the instructions on 
 
 http://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu
 
 with
 
 DIST=ubuntu
 SUITE=trusty
 
 I get the following error:
 
 $ sudo apt-get install libapache2-mod-wo projectwonder-javamonitor 
 projectwonder-wotaskd
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 Some packages could not be installed. This may mean that you have
 requested an impossible situation or if you are using the unstable
 distribution that some required packages have not yet been created
 or been moved out of Incoming.
 The following information may help to resolve the situation:
 
 The following packages have unmet dependencies:
 projectwonder-javamonitor : Depends: webobjects but it is not installable
 Depends: libprojectwonder-ajax-java but it is 
 not going to be installed
 Depends: libprojectwonder-javamonitor-java but 
 it is not going to be installed
 Depends: libprojectwonder-rest-java but it is 
 not going to be installed
 projectwonder-wotaskd : Depends: webobjects but it is not installable
 Depends: libprojectwonder-javamonitor-java but it is 
 not going to be installed
 Depends: libprojectwonder-rest-java but it is not 
 going to be installed
 E: Unable to correct problems, you have held broken packages.
 
 
 If I try 
 
 $ sudo apt-get install webobjects
 
 I get
 
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 Package webobjects 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 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 bastian.tril...@gmail.com wrote:
 
 I uploaded the package for trusty/amd64 today.
 
 On Tue, 2014-05-20 at 11:12 +0200, CHRISTOPH WICK | i4innovation GmbH, Bonn 
 wrote:
 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
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/8427890616%40sms.mycricket.com
 
 This email sent to 8427890...@sms.mycricket.com

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/com/webobjects/appserver/WORequest.html#formValueKeys())

So I assume your workaround will not work always (even if it does sometimes), 
since you assume, that request.formValueKeys() gives you the right order.

If you really care about the order of the key-value-pairs in the URI, I think 
you have to parse the query string manually. 

Take a look  at NSArray's wonderful method componentsSeparatedByString(String 
string, String separator) and apply it to your WORequest's method 
queryString() with separator . then a second time on each key-value-pair 
with separator = and then you should have the key at objectAtIndex(1) in 
the same order as within the queryString.

C.U.CW

P.S.: What's the reason you want to know the exact order? I haven't needed such 
a thing in many years of web development.

-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.


On 21.05.2014, at 18:56, John Pollard j...@pollardweb.com wrote:

 My workaround to put them back in order, using a TreeMap to sort on the index 
 position within the URI.
 
NSArrayString formKeys = request().formValueKeys();
String uriStr = request().uri();
TreeMapInteger, String orderedKeysMap = new TreeMapInteger, 
 String();
for(String nextKey : formKeys)
{
   orderedKeysMap.put(uriStr.indexOf(nextKey), nextKey);
}   
 
 On 21 May 2014, at 17:26, John Pollard j...@pollardweb.com wrote:
 
 Hi List,
 
 I note that WORequest.formValues() jumbles up the order of the values from a 
 url. Is there a simple way to get them in order, or do I need to parse them 
 out myself? I understand that normally the order shouldn't be important, but 
 I have what I feel is a reasonable purpose for needing to know the order.
 
 Thanks
 John
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

On 15.05.2014, at 11:43, Bastian Triller bastian.tril...@gmail.com wrote:

 gna, I changed ssh keys yesterday. Looks like that took some time ... all 
 works fine now.
 
 On 15 May 2014 08:44, D Tim Cummings t...@triptera.com.au wrote:
 Hi Bastian
 
 I have been having ssh problems recently with Mac OS X Mavericks. I needed to 
 set the ServerAliveInterval to send a keep alive message every 30 seconds 
 otherwise my ssh session would die after a minute. Could be the same problem 
 you are having.
 
 sudo nano /etc/ssh_config
 
 ServerAliveInterval 30
 
 
 Cheers
 
 Tim
 
 
 On 15 May 2014, at 16:03, Bastian Triller bastian.tril...@gmail.com wrote:
 
 I wanted to look into it yesterday, but I   somehow screwed up my repo ssh 
 access. I get Write failed: broken pipe. Authentication looks fine. My 
 remote url is g...@github.com:btriller/wonder.git. Any ideas?
 
 On 14 May 2014 01:57, D Tim Cummings t...@triptera.com.au wrote:
 Hi all (and Bastian Triller)
 
 I have tried using the instructions at
 
 http://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu
 
 for installing WebObjects on Ubuntu 14.04 LTS but the built 
 libapache2-mod-wo doesn't work and has to be rebuilt manually. I built it 
 myself for Ubuntu 13.10, but now that 14.04 with long term support is out we 
 should probably add a built version into the repository.  
 
 http://packages.wocommunity.org/ubuntu/
 
 If Bastian could provide a procedure how he did it last time, I would be 
 happy to do this.
 
 Regards
 
 Tim
 
  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/bastian.triller%40gmail.com
 
 This email sent to bastian.tril...@gmail.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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../Adaptor  -DSINGLE_THREADED_ADAPTOR -DLINUX 
 -DCGI -c ../Adaptor/shmem.c
 ../Adaptor/shmem.c:69:38: warning: initialization makes pointer from integer 
 without a cast [enabled by default]
  static void * WOShmem_base_address = -1;
   ^
 ../Adaptor/shmem.c: In function '€˜WOShmem_alloc'€™:
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
  #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
^
 ../Adaptor/shmem.c:294:18: note: in expansion of macro '€˜offset_to_addr'€™
 r = (Region *)offset_to_addr(0);
   ^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
  #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
^
 ../Adaptor/shmem.c:305:19: note: in expansion of macro '€˜offset_to_addr'€™
  ret = offset_to_addr(r-offset);
^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
  #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
^
 ../Adaptor/shmem.c:330:41: note: in expansion of macro '€˜offset_to_addr'€™
newRegion = (Region *)offset_to_addr(r-nextRegion);
  ^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
  #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
^
 ../Adaptor/shmem.c:336:25: note: in expansion of macro '€˜offset_to_addr'€™
ret = offset_to_addr(newRegion-offset);
  ^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
  #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
^
 ../Adaptor/shmem.c:345:24: note: in expansion of macro '€˜offset_to_addr'€™
   r = (Region *)offset_to_addr(r-nextRegion);
 ^
 make[1]: *** [shmem.o] Error 1
 make[1]: Leaving directory 
 `/tmp/wocommunity-wonder-a5ffd1f/Utilities/Adaptors/CGI'
 make: *** [CGI] Error 2
 

Any ideas how to get this running?

Thx,
C.U.CW
-- 
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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../Adaptor  -DSINGLE_THREADED_ADAPTOR -DLINUX 
 -DCGI -c ../Adaptor/shmem.c
 ../Adaptor/shmem.c:69:38: warning: initialization makes pointer from integer 
 without a cast [enabled by default]
 static void * WOShmem_base_address = -1;
  ^
 ../Adaptor/shmem.c: In function '€˜WOShmem_alloc'€™:
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
 #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
   ^
 ../Adaptor/shmem.c:294:18: note: in expansion of macro '€˜offset_to_addr'€™
r = (Region *)offset_to_addr(0);
  ^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
 #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
   ^
 ../Adaptor/shmem.c:305:19: note: in expansion of macro '€˜offset_to_addr'€™
 ret = offset_to_addr(r-offset);
   ^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
 #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
   ^
 ../Adaptor/shmem.c:330:41: note: in expansion of macro '€˜offset_to_addr'€™
   newRegion = (Region *)offset_to_addr(r-nextRegion);
 ^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
 #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
   ^
 ../Adaptor/shmem.c:336:25: note: in expansion of macro '€˜offset_to_addr'€™
   ret = offset_to_addr(newRegion-offset);
 ^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
 #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
   ^
 ../Adaptor/shmem.c:345:24: note: in expansion of macro '€˜offset_to_addr'€™
  r = (Region *)offset_to_addr(r-nextRegion);
^
 make[1]: *** [shmem.o] Error 1
 make[1]: Leaving directory 
 `/tmp/wocommunity-wonder-a5ffd1f/Utilities/Adaptors/CGI'
 make: *** [CGI] Error 2
 

Any ideas how to get this running?

Thx,
C.U.CW
-- 
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs 
 --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr 
 --program-suffix=-4.8 --enable-shared --enable-linker-build-id 
 --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
 --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls 
 --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug 
 --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap 
 --enable-plugin --with-system-zlib --disable-browser-plugin 
 --enable-java-awt=gtk --enable-gtk-cairo 
 --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home 
 --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 
 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 
 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
 --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 
 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic 
 --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu 
 --target=x86_64-linux-gnu
 Thread model: posix
 gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 
 


It's the gcc you get, when you install it with sudo apt-get install gcc.

C.U.CW
-- 
The three great virtues of a programmer are Laziness, Impatience and Hubris. 
(Randal Schwartz)

On 20.05.2014, at 15:53, Markus Stoll, junidas GmbH markus.st...@junidas.de 
wrote:

 Hi,
 
 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../Adaptor  -DSINGLE_THREADED_ADAPTOR 
 -DLINUX -DCGI -c ../Adaptor/shmem.c
 ../Adaptor/shmem.c:69:38: warning: initialization makes pointer from 
 integer without a cast [enabled by default]
 static void * WOShmem_base_address = -1;
^
 ../Adaptor/shmem.c: In function '€˜WOShmem_alloc'€™:
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
 #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
 ^
 
 WOAdaptor does its pointer arithmetics in a way, that your compiler does not 
 like (well, me neither)
 Your compiler probably needs some additional flags...
 Which compiler does your Ubuntu 14 TLS use? What does „gcc -v“ give?
 
 regards, Markus
 
 
 ../Adaptor/shmem.c:294:18: note: in expansion of macro '€˜offset_to_addr'€™
  r = (Region *)offset_to_addr(0);
^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
 #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
 ^
 ../Adaptor/shmem.c:305:19: note: in expansion of macro '€˜offset_to_addr'€™
   ret = offset_to_addr(r-offset);
 ^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
 #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
 ^
 ../Adaptor/shmem.c:330:41: note: in expansion of macro '€˜offset_to_addr'€™
 newRegion = (Region *)offset_to_addr(r-nextRegion);
   ^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
 #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
 ^
 ../Adaptor/shmem.c:336:25: note: in expansion of macro '€˜offset_to_addr'€™
 ret = offset_to_addr(newRegion-offset);
   ^
 ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
 *'€™ and '€˜void *'€™)
 #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
 *)offset))
 ^
 ../Adaptor/shmem.c:345:24: note: in expansion of macro '€˜offset_to_addr'€™
r = (Region *)offset_to_addr(r-nextRegion);
  ^
 make[1]: *** [shmem.o] Error 1
 make[1]: Leaving directory 
 `/tmp/wocommunity-wonder-a5ffd1f/Utilities/Adaptors/CGI'
 make: *** [CGI] Error 2
 
 
 Any ideas how to get this running?
 
 Thx,
 C.U.CW
 -- 
 The three great virtues of a programmer are Laziness, Impatience and Hubris. 
 (Randal Schwartz)
 ___
 Do not post 

Re: Character Encoding of textfield

2014-05-14 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi Jens, hi list,

I prefer to have such things in the code since they a) are absolutely essential 
and b) never change. Especially if you have a non-english app. 

I remember, we once corrupted the content of a large database, when an 
over-ambitious dev-op apprentice removed that property because he thought it 
was the default. :-(

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 14.05.2014, at 07:50, Dipl.-Ing. Jens Lünstedt 
jens.luenst...@ritz-schmidt.de wrote:

 Good morning Christoph,
 I use
 er.extensions.ERXApplication.DefaultEncoding=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 CHRISTOPH WICK | i4innovation GmbH, Bonn 
 c...@i4innovation.de:
 
 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() {
  ...
  WOMessage.setDefaultEncoding(UTF-8);
  WOMessage.setDefaultURLEncoding(UTF-8);
  ERXMessageEncoding.setDefaultEncoding(UTF8);
  ERXMessageEncoding.setDefaultEncodingForAllLanguages(UTF8);
  ...
  }
 ...
 }
 
 I also had the problem with umlauts and this helped me.
 
 C.U.CW
 -- 
 What are the three enemies of a programmer? Sunlight, oxygen, and the 
 appalling roar of the birds.
 
 On 13.05.2014, at 17:49, Dipl.-Ing. Jens Lünstedt 
 jens.luenst...@ritz-schmidt.de wrote:
 
 Hello,
 I have a strange problem. Today I noticed in one of my apps that all german 
 characters like öäü are changed. So when I get the event that the text of 
 that field is changed the text is already changed to something not 
 readable. The last time some days ago I tested that in the app all was ok. 
 I checked the properties of the project in Eclipse and all encoding is on 
 UTF-8. I didn't changed the properties file of the project. I run another 
 application and all is fine. I moved the project to another machine and it 
 was the same. I used another fresh database but it doesn't help. I tested 
 another browser, I cleaned the project and I rebooted the machine. Nothing 
 helped.
 
 So I'm sure it has something to do with my project but where? In the 
 project preferences I use UTF-8 encoding. I think it must be on the way 
 from the browser to the event in my app, perhaps in the WO framework.
 
 Has anyone an idea?
 
 Thanks
 
 Jens
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de
 
 



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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() {
...
WOMessage.setDefaultEncoding(UTF-8);
WOMessage.setDefaultURLEncoding(UTF-8);
ERXMessageEncoding.setDefaultEncoding(UTF8);
ERXMessageEncoding.setDefaultEncodingForAllLanguages(UTF8);
...
}
...
}

I also had the problem with umlauts and this helped me.

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 13.05.2014, at 17:49, Dipl.-Ing. Jens Lünstedt 
jens.luenst...@ritz-schmidt.de wrote:

 Hello,
 I have a strange problem. Today I noticed in one of my apps that all german 
 characters like öäü are changed. So when I get the event that the text of 
 that field is changed the text is already changed to something not readable. 
 The last time some days ago I tested that in the app all was ok. I checked 
 the properties of the project in Eclipse and all encoding is on UTF-8. I 
 didn't changed the properties file of the project. I run another application 
 and all is fine. I moved the project to another machine and it was the same. 
 I used another fresh database but it doesn't help. I tested another browser, 
 I cleaned the project and I rebooted the machine. Nothing helped.
 
 So I'm sure it has something to do with my project but where? In the project 
 preferences I use UTF-8 encoding. I think it must be on the way from the 
 browser to the event in my app, perhaps in the WO framework.
 
 Has anyone an idea?
 
 Thanks
 
 Jens
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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 r...@ganymede.org 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 about WebObjects. Just curious. 

Yes, there is a wonder list. It was probably my fault to post this original 
question on this (WebObjects) list. Sorry for that.

But does it really make sense these days to distinguish between WO and Wonder? 
The community has become relatively small and I personally don't know nobody 
who is using pure WebObjects without Wonder. IMHO we should concentrate on as 
few resources as possible. And this Apple-provided list is still my first 
address.

So once again sorry, if I bothered someone.

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.


On 06.05.2014, at 21:40, Ray Kiddy r...@ganymede.org wrote:

 On Tue, 6 May 2014 09:34:30 +0200
 Markus Stoll, junidas GmbH markus.st...@junidas.de wrote:
 
 looks nice again, but why are explaining code snippets (wrapped in
 pre tags) set to display: none; ? 
 I would prefer to include them.
 
 Markus
 
 I am not sure, but obviously the new stylesheet has changed things. I
 also noticed that both the Japanese and English comments are shown even
 though the same CSS display:none; thing is supposed to block one of
 them. By default, the Japanese should not be visible. That is what I
 see at the bottom of the mystylesheet.css file.
 
 We will see.
 
 I figured it would be better to get it back up looking mostly right,
 than slow that down to fix all the issues.
 
 - ray
 
 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 about WebObjects. Just curious.
 
 
 Am 06.05.2014 um 04:44 schrieb Ray Kiddy r...@ganymede.org:
 
 
 The javadoc has been updated and is looking fairly normal. A new
 stylesheet had to be included.
 
 cheers - ray
 
 http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/javadoc/?
 
 On Sun, 04 May 2014 22:01:03 +0200
 Christoph Wick wi...@me.com wrote:
 
 Hi List,
 
 is the Wonder documentation on
 http://jenkins.wocommunity.org/job/Wonder/javadoc broken?
 
 It looks as if all the style information is missing.
 
 C.U.CW
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
 This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Wonder documentation on jenkins.wocommunity.org broken?

2014-05-04 Thread Christoph Wick
Hi List,

is the Wonder documentation on 
http://jenkins.wocommunity.org/job/Wonder/javadoc broken?

It looks as if all the style information is missing.

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

ERXApplication.replaceApplicationPath doesn't work

2014-04-14 Thread Christoph Wick
Hi list,

in one of my applications, ERXApplication.replaceApplicationPath doesn't work.

As usual, I wrote into my Properties file:

er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/ProPilotsMgmtApp.woa
er.extensions.ERXApplication.replaceApplicationPath.replace=/ProPilotsManagementApp

The values are read, as the startup log shows:

   ...
   er.extensions.ERPrototypes.hasLocalization=false
   
 er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/ProPilotsMgmtApp.woa
   
 er.extensions.ERXApplication.replaceApplicationPath.replace=/ProPilotsManagementApp
   er.extensions.ERXComponentActionRedirector.enabled=false
   ...

But the WO-generated HTML contains always the 
/cgi-bin/WebObjects/ProPilotsMgmtApp.woa.

Has anyone an idea what could make the replacements not working?

I have no glue where to look further ...

C.U.CW

P.S.: Apache rewrite rules work. 
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Screencast about Localization from WOWODC09 missing

2014-03-28 Thread Christoph Wick
Hi List,

I'd liked to watch the Screencast about Localization from WOWODC09.

It is linked on http://wiki.wocommunity.org/display/WEB/Screencasts?src=search, 
but the linked file 
(http://www.wocommunity.org/podcasts/wowodc/west09/WOWODCW09-Localization.mov) 
does not exist.


Can anyone fix this? Pascal?
Or has anyone a local copy that I could use?

C.U.CW

P.S.: The one on iTunes says This video requires Quicktime which is not 
supported by this version of iTunes ;-(

-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Screencast about Localization from WOWODC09 missing

2014-03-28 Thread Christoph Wick
Hi Pascal,

I'd really like to help fixing this (and other things too). How can I get 
access to the wiki? I can login, but not changing any page.

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 29.03.2014, at 00:31, Pascal Robert prob...@macti.ca wrote:

 http://www.wocommunity.org/podcasts/wowodc/west09/WOWODC09W-Localization.mov
 
 (the W should be after 09, not before)
 
 - Mail original -
 De: Christoph Wick wi...@me.com
 À: Webobjects-dev@lists.apple.com
 Envoyé: Vendredi 28 Mars 2014 15:34:16
 Objet: Screencast about Localization from WOWODC09 missing
 
 Hi List,
 
 I'd liked to watch the Screencast about Localization from WOWODC09.
 
 It is linked on 
 http://wiki.wocommunity.org/display/WEB/Screencasts?src=search, but the 
 linked file 
 (http://www.wocommunity.org/podcasts/wowodc/west09/WOWODCW09-Localization.mov)
  does not exist.
 
 
 Can anyone fix this? Pascal?
 Or has anyone a local copy that I could use?
 
 C.U.CW
 
 P.S.: The one on iTunes says This video requires Quicktime which is not 
 supported by this version of iTunes ;-(
 
 -- 
 What are the three enemies of a programmer? Sunlight, oxygen, and the 
 appalling roar of the birds.
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
 
 This email sent to prob...@macti.ca


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Endless logs WARN NSLog - ** DirectToWeb could not find user.d2wmodel file. One will be created if you try to save changes.

2014-03-28 Thread Christoph Wick
Hi List,

I get endless logs of 

WARN  NSLog  - ** DirectToWeb could not find user.d2wmodel file.  One will be 
created if you try to save changes.

in Eclipse. I don't use DirectToWeb in this project. 

Does anyone know how to stop that?

Thx for any hint,
C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Silly error message using wo:popupButton in WOLips' component editor

2014-03-25 Thread Christoph Wick
Hello List.

Thx for all the help - it was something different and I think, I found the 
culprit:

For an IDontKnowWhyReason, the build.properties file of my project contained 
the following lines:

 component.inlineBindingPrefix=$
 component.inlineBindingSuffix=

I assume this came from changing the value in preferences dialog of Eclipse.

I removed the second line and the error messages disappeared.

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 24.03.2014, at 14:17, David Avendasora webobje...@avendasora.com wrote:

 Hi Christopher,
 
 What Paul and Jesse said is true, WOLips’ component validation is flakey and 
 *usually* updating (F5), cleaning (without rebuilding), restarting eclipse, 
 and then rebuilding will get the component validator to pull it’s head out of 
 it’s dev/null, but not always.
 
 Out of curiosity, I usually see this problem when I’ve put components in a 
 sub-directory of the Components directory. Is the component you are seeing 
 this false-error in in the root of the Components directory?
 
 Dave
 
 
 On Mar 24, 2014, at 4:51 AM, Christoph Wick wi...@me.com wrote:
 
 Hello List,
 
 I get a silly error message in WOLips' component editor. The component 
 content is
 
 wo:popUpButton list=$customerRoleList item=$customerRoleItem 
 selection=$customerRoleSelection displayString = 
 $customerRoleDisplayString noSelectionString = $noSelectionString /
 
 seems ok so far.
 
 But in the component editor I get a silly error message:
 
 'item' must be bound when 'displayString' or 'value' is bound
 
 
 'item' is bound, so what's going on here?
 
 Project-clean in Eclipse didn't help.
 
 Any ideas? Thanks.
 
 C.U.CW
 -- 
 
 Christoph Wick - Diplom Informatiker, Managing Director
 i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany
 
 T +49 2 28 28 62 97 93
 M +49 1 51 22 65 78 90
 F +49 2 28 28 62 97 99
 M c...@i4innovation.de
 W www.i4innovation.de
 Skype: christoph_wick
 
 Geschäftsführer: Thomas Heep, Christoph Wick
 Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
 DE276502600
 
 package de.propilots.proPilotsMgmtApp.components;
 
 import com.webobjects.appserver.WOContext;
 import com.webobjects.foundation.NSArray;
 
 import de.propilots.proPilotsMgmtApp.Session;
 import de.propilots.proPilotsMgmtApp.businessLogic.PPCustomerRole;
 import er.extensions.components.ERXComponent;
 
 public class PPCustomerRolePopupComponent extends ERXComponent {
 
 private static final long serialVersionUID = -6177136293683095903L;
 
 private NSArrayPPCustomerRole  customerRoleList = null;
 private PPCustomerRole customerRoleItem;
 private PPCustomerRole customerRoleSelection;
 
 public PPCustomerRolePopupComponent(WOContext context) {
   super(context);
   }
 
 public NSArrayPPCustomerRole  customerRoleList() {
 if (null == customerRoleList) {
 customerRoleList = new 
 NSArrayPPCustomerRole(PPCustomerRole.COMPANY, PPCustomerRole.PERSONAL);
 }
 return customerRoleList;
 }
 
 public PPCustomerRole customerRoleSelection() {
 return customerRoleSelection;
 }
 
 public void setCustomerRoleSelection(PPCustomerRole 
 customerRoleSelection)   {
 this.customerRoleSelection = customerRoleSelection;
 }
 
 public String noSelectionString() {
 if (((Session) session()).locale().isDE()) {
 return - bitte auswählen -;
 } else {
 return - please choose -;
 }
 }
 
 public PPCustomerRole customerRoleItem() {
 return customerRoleItem;
 }
 
 public String customerRoleDisplayString() {
 if (((Session) session()).locale().isDE()) {
 return customerRoleItem.displayStringDE();
 } else {
 return customerRoleItem.displayStringEN();
 }
 }
 }
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
 
 This email sent to webobje...@avendasora.com
 
 
 —
 WebObjects - so easy that even Dave Avendasora can do it!™
 —
 David Avendasora
 Senior Software Abuser
 Nekesto, Inc.
 
 
 
 
 
 


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WOLips gives WO Template Problems (keypaths) even if not real problems!

2014-03-25 Thread Christoph Wick
Hi Chuck,

is there something like the // VALID marker if you are using WOOngl?

// VALID is working only if you are using WOD, isn't it?

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.


On 25.03.2014, at 17:47, Chuck Hill ch...@global-village.net wrote:

 The // VALID marker is the intended way to fix validation problems like this.
 
 Chuck
 
 
 On 2014-03-25, 7:33 AM, Filippo Laurìa wrote:
 
 Hello everybody,
 
 I have a simple `component id generator` that implements
 `NSKeyValueCodingAdditions`. Something like this:
 
 public class ComponentIDGenerator implements NSKeyValueCodingAdditions {
   private String idBase;
 
   public ComponentIDGenerator(
 WOComponent component) {
 idBase = _ + component.context().elementID().replace('.', '_');
   }
 
   public Object valueForKeyPath(String keypath) {
 return get(keypath);
   }
 
   public String get(String keypath) {
 String suffix = keypath.replace('.', '_');
 return idBase + _ + suffix;
   }
   ...
 }
 
 I pasted it because it is really simple to understand.
 
 When initializing a component (in the appendToResponse() method) the
 generator is called like this:
 `String idFor = new ComponentIDGenerator(this);`
 
 In the wod, when I try to access keys like:
 `idFor.foo` or `idFor.bar` i get WO Template errors from WOLips:
 there is no key foo for the keypath idFor.
 
 It's useless to say that at runtime everything runs fine.
 
 I found two ways to workaround this issues:
 1) use WOGNL expression in the wod. So i use ~idFor.foo
 2) foreach key create a getKey method. For example: getFoo()
   return idFor.valueForKey(foo).toString();
 
 I don't like those two ways:
 the first because it is not our purpose to use WOGNL framework in the
 application,
 the second because the work load becomes very huge.
 
 Maybe there is a third way:
 put // VALID next to the wod defecting property-value pair, like
 id = idFor.foo; // VALID
 
 I want to know if is there a correct way to remove this kind of errors
 between those i mentioned before, or maybe something better.
 
 Thank you for reading.
 
 Regards,
   Filippo Lauria
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
 
 This email sent to ch...@global-village.net
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/wicki%40me.com
 
 This email sent to wi...@me.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WOLips gives WO Template Problems (keypaths) even if not real problems!

2014-03-25 Thread Christoph Wick
Aehm, yes, sorry. I meant inline bindings.

AFAIK there's nothing like the // VALID for inline bindings. 
But I'd love to learn that there is something ...

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 25.03.2014, at 23:01, Chuck Hill ch...@global-village.net wrote:

 I would have thought that WOGNL expressions were exempt from validation.  If 
 not, the //VALID should work for them too.
 
 Did you mean inline bindings?  I am not sure if there is anything to use with 
 inline bindings.
 
 Chuck
 
 
 On 2014-03-25, 2:57 PM, Christoph Wick wrote:
 
 Hi Chuck,
 
 is there something like the // VALID marker if you are using WOOngl?
 
 // VALID is working only if you are using WOD, isn't it?
 
 C.U.CW
 --
 What are the three enemies of a programmer? Sunlight, oxygen, and the 
 appalling roar of the birds.
 
 
 On 25.03.2014, at 17:47, Chuck Hill ch...@global-village.net wrote:
 
 The // VALID marker is the intended way to fix validation problems like this.
 Chuck
 On 2014-03-25, 7:33 AM, Filippo Laurìa wrote:
 Hello everybody,
 I have a simple `component id generator` that implements
 `NSKeyValueCodingAdditions`. Something like this:
 public class ComponentIDGenerator implements NSKeyValueCodingAdditions {
private String idBase;
public ComponentIDGenerator(
 WOComponent component) {
  idBase = _ + component.context().elementID().replace('.', '_');
}
public Object valueForKeyPath(String keypath) {
  return get(keypath);
}
public String get(String keypath) {
  String suffix = keypath.replace('.', '_');
  return idBase + _ + suffix;
}
...
 }
 I pasted it because it is really simple to understand.
 When initializing a component (in the appendToResponse() method) the
 generator is called like this:
 `String idFor = new ComponentIDGenerator(this);`
 In the wod, when I try to access keys like:
 `idFor.foo` or `idFor.bar` i get WO Template errors from WOLips:
 there is no key foo for the keypath idFor.
 It's useless to say that at runtime everything runs fine.
 I found two ways to workaround this issues:
 1) use WOGNL expression in the wod. So i use ~idFor.foo
 2) foreach key create a getKey method. For example: getFoo()
return idFor.valueForKey(foo).toString();
 I don't like those two ways:
 the first because it is not our purpose to use WOGNL framework in the
 application,
 the second because the work load becomes very huge.
 Maybe there is a third way:
 put // VALID next to the wod defecting property-value pair, like
 id = idFor.foo; // VALID
 I want to know if is there a correct way to remove this kind of errors
 between those i mentioned before, or maybe something better.
 Thank you for reading.
 Regards,
Filippo Lauria
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
 This email sent to ch...@global-village.net
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/wicki%40me.com
 This email sent to wi...@me.com
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
 
 This email sent to ch...@global-village.net


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Silly error message using wo:popupButton in WOLips' component editor

2014-03-24 Thread Christoph Wick
Hello List,

I get a silly error message in WOLips' component editor. The component content 
is

 wo:popUpButton list=$customerRoleList item=$customerRoleItem 
 selection=$customerRoleSelection displayString = 
 $customerRoleDisplayString noSelectionString = $noSelectionString /

seems ok so far.

But in the component editor I get a silly error message:

 'item' must be bound when 'displayString' or 'value' is bound


'item' is bound, so what's going on here?

Project-clean in Eclipse didn't help.

Any ideas? Thanks.

C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de
Skype: christoph_wick

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600

 package de.propilots.proPilotsMgmtApp.components;
 
 import com.webobjects.appserver.WOContext;
 import com.webobjects.foundation.NSArray;
 
 import de.propilots.proPilotsMgmtApp.Session;
 import de.propilots.proPilotsMgmtApp.businessLogic.PPCustomerRole;
 import er.extensions.components.ERXComponent;
 
 public class PPCustomerRolePopupComponent extends ERXComponent {
 
   private static final long serialVersionUID = -6177136293683095903L;
 
   private NSArrayPPCustomerRole  customerRoleList = null;
   private PPCustomerRole customerRoleItem;
   private PPCustomerRole customerRoleSelection;
   
   public PPCustomerRolePopupComponent(WOContext context) {
 super(context);
 }
 
   public NSArrayPPCustomerRole  customerRoleList() {
   if (null == customerRoleList) {
   customerRoleList = new 
 NSArrayPPCustomerRole(PPCustomerRole.COMPANY, PPCustomerRole.PERSONAL);
   }
   return customerRoleList;
   }
 
   public PPCustomerRole customerRoleSelection() {
   return customerRoleSelection;
   }
 
   public void setCustomerRoleSelection(PPCustomerRole 
 customerRoleSelection)   {
   this.customerRoleSelection = customerRoleSelection;
   }
 
   public String noSelectionString() {
   if (((Session) session()).locale().isDE()) {
   return - bitte auswählen -;
   } else {
   return - please choose -;
   }
   }
   
   public PPCustomerRole customerRoleItem() {
   return customerRoleItem;
   }
   
   public String customerRoleDisplayString() {
   if (((Session) session()).locale().isDE()) {
   return customerRoleItem.displayStringDE();
   } else {
   return customerRoleItem.displayStringEN();
   }
   }
 }


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WebObjects-Projects?

2014-03-05 Thread Christoph Wick
Hello Jürgen,
hello all,

as long as I'm in the WO business (since 2001), I've never seen anybody using 
WO in big business. It has always been small to medium sized projects. I my 
case 10 to 100 kilo-Euros. Once upon a time there must have been big WO 
installations outside Apple - but that was in the pre-2000 era. 

Nevertheless, I'm still using WO as a business. I was mostly successful 
acquiring new WO projects when the client 
- had no inhouse IT department (as soon as there are already inhouse IT people, 
the chance to get WO used in new projects goes to zero),
- had no further requirements (such as using a certain technology or wants to 
use OpenSource),
- was only interested in getting the job done. 

Thanks to WO/Wonder itself as well as the excellent WO community, I was always 
able to get my customers happy. In functionality, in budget and in time!

So, my personal strategy is to find a client with
a) a problem (that can be solved)
b) money (I had endless discussion with people having a problem and wishing 
it to get solved - but no business case at all)

You won't find such clients in project marketplaces or something alike. I 
find them - more or less - by accident. But nevertheless I find them.

C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de
Skype: christoph_wick

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600

On 05.03.2014, at 12:37, Jürgen Simon si...@webtecc.com wrote:

 Hello,
 
 this is not a technical inquiry, more a temperature check on the business 
 side of WebObjects. It is my impression that at least in Germany, after the 
 2008/2009 crisis the market for WebObjects-projects has really been down a 
 lot. I have been looking hi and lo for opportunities to work with WO again, 
 but apart from self-initiated projects there was nothing going on.
 
 Is this perception limited to Germany or is it even just me? Are there any 
 project marketplaces for WO that I am not aware of? How much of a future 
 would you guys think WO really has?
 
 Kind Regards,
 Jürgen
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/wicki%40me.com
 
 This email sent to wi...@me.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Including Fonts into PDF using ERPDFGeneration

2014-01-30 Thread Christoph Wick
Hi List,

I try to include fonts into a PDF document using ERPDFGeneration. The 
documentation of ERPFDWrapper tells me that there is a binding called fonts. 
The binding is described as (optional) array of font filenames to include for 
PDF generation.

OK so far. But whatever I set the fonts bindings to, I get an 
ClassCastException that a String cannot be casted to NSArrayString. 
Stacktrace below.

I've looked into the code and I found line 120 in FlyingSaucerImpl.java:

NSArrayString fonts = (NSArrayString) 
configuration.objectForKey(fonts); 

So, what's the correct syntax of the bindings value string to be converted into 
an NSArray of Strings? I've tried ['Font 1', 'Font2'] as well as {'Font 1', 
'Font2'}, but that all doesn't work.

Thx,
C.U.CW


Stacktrace:

Error:  java.lang.ClassCastException: java.lang.String cannot be cast to 
com.webobjects.foundation.NSArray
Reason: java.lang.String cannot be cast to com.webobjects.foundation.NSArray
Stack trace:
FileLine#   Method  Package
FlyingSaucerImpl.java   120 fontsFromConfiguration  er.pdf.builder
FlyingSaucerImpl.java   91  setSource   er.pdf.builder
ERPDFUtilities.java 132 htmlAsPdf   er.pdf
ERPDFWrapper.java   89  responseAsPdf   er.pdf
ERPDFWrapper.java   66  appendToResponseer.pdf
WOComponent.java1122appendToResponsecom.webobjects.appserver
ERXComponent.java   195 appendToResponseer.extensions.components
WOSession.java  1385appendToResponsecom.webobjects.appserver
WOApplication.java  1794appendToResponsecom.webobjects.appserver
ERXApplication.java 2005appendToResponseer.extensions.appserver
ERXComponentRequestHandler.java 190 _dispatchWithPreparedPage   
er.extensions.appserver
ERXComponentRequestHandler.java 235 _dispatchWithPreparedSession
er.extensions.appserver
ERXComponentRequestHandler.java 268 _dispatchWithPreparedApplication
er.extensions.appserver
ERXComponentRequestHandler.java 302 _handleRequest  er.extensions.appserver
ERXComponentRequestHandler.java 378 handleRequest   er.extensions.appserver
WOApplication.java  1687dispatchRequest com.webobjects.appserver
ERXApplication.java 2109dispatchRequestImmediately  
er.extensions.appserver
ERXApplication.java 2074dispatchRequest er.extensions.appserver
WOWorkerThread.java 144 runOnce com.webobjects.appserver._private
WOWorkerThread.java 226 run com.webobjects.appserver._private
Thread.java 722 run java.lang


-- 
Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de
Skype: christoph_wick

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Sending a message to other application instances

2013-10-14 Thread Christoph Wick
Hi there,

is there a webobjects way to send a message to other instances of my app on a 
server running WO monitor?

I have developed a GUI to manage some app preferences. The config is stored in 
an XML file on disk. On my production machine, I have multiple instances 
running. I want to let them know, if the user has modified the configuration. 

Thx,
C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de
Skype: christoph_wick

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: unique contraint error

2013-08-21 Thread Christoph Wick
Is there a documentation about the possible keys for that? What kinds of keys 
can I put into a ValidationTemplates.string?

Thx, C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 14.08.2013, at 04:07, Theodore Petrosky tedp...@yahoo.com wrote:

 wow, that's beautiful
 
 
 
 On Aug 13, 2013, at 8:45 PM, Paul Hoadley pa...@logicsquad.net wrote:
 
 Hi Ted,
 
 On 14/08/2013, at 10:03 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I added an index and unique constraint to my User. loginName column. 
 
 I see in the logs that when I try to violate the uniqueness my d2w does the 
 correct thing and complain however this is the error:
 
 Could not save your changes: CustomMethodException
 
 I do see in the logs:
 
 ERROR: duplicate key value violates unique constraint loginname_idx
 
 did I miss something in a rule to pass the better worded error message to 
 the user?
 
 Create Resources/English.lproj/ValidationTemplate.strings and add:
 
 {
  UniqueConstraintException.loginname_idx = Please choose a different 
 username.;
 }
 
 Does that work?
 
 
 -- 
 Paul Hoadley
 http://logicsquad.net/
 
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/wicki%40me.com
 
 This email sent to wi...@me.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: @Override of EO?

2013-08-02 Thread Christoph Wick
Primary keys are not set normally (sort of ...). And you should not override 
setter methods of EOs!

The method of your choice may be overriding 
EOEnterpriseObject.awakeFromInsertion(EOEditingContext ec).

If your class is e.g. Poster (and you use EOGenerator), then use

public class Poster extends _Poster {

@Override
public void awakeFromInsertion(EOEditingContext ec) { 
super.awakeFromInsertion(ec); 
fireMyUnixProcess();
}

}

C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600


On 02.08.2013, at 19:21, Jesse Tayler jtay...@oeinc.com wrote:

 
 I have an override of a normal EO setter, but for some reason, it isn’t 
 called but the value does get updated
 
 I really just want to fire off a unix process once a new posterId has been 
 set, so maybe there’s a smarter way but I thought this would be reliably 
 called once and only after there’s a known primary key id for that poster 
 (ERAttachment)
 
 Any thoughts on that?
 
 
@Override
public void setPosterId(Integer value) {
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/wicki%40me.com
 
 This email sent to wi...@me.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

NullPointerException while using ERPersistentSessionStorage

2013-07-29 Thread Christoph Wick
Hi List,

I was trying to use ERPersistentSessionStorage (looks otherwise very promising, 
thx Ramsey).

I'm getting a silly NullPointerException (stacktrace below) in an application 
that was working perfectly before without using ERPersistantSessionStorage. I 
have no idea how to debug this to get more information.

The problem may come from storing an EO object called PMSUser in the session 
(basically a user object with name, login, passwd ... PMS=prefix for the 
project's classes). The code is:

public class Session extends ERXSession {

private PMSUser currentUser = null;

public PMSUser currentUser() {
return currentUser;
}

public void setCurrentUser(PMSUser currentUser) {
this.currentUser = currentUser;
}
...
}

The page where the error occurs is the one where the user can change his/her 
personal data using a form like 

wo:form
wo:textfield id=inputGivenName value = 
$session.currentUser.firstName /
...
wo:submitButton action=$saveAction value=save / 
/wo:form

but NOT AFTER saving, but directly before rendering the page with the form.

Any ideas? Thanks in advance,
C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600


Jul 29 14:41:01 PMS[65432] WARN  NSLog  - 
er.extensions.appserver.ERXComponentRequestHandler: Exception occurred while 
handling request:
java.lang.NullPointerException
[2013-7-29 14:41:1 MESZ] WorkerThread0 java.lang.NullPointerException
at 
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:834)
at 
er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:380)
at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
at 
er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:209)
at 
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:990)
at 
com.webobjects.eocontrol.EOEditingContext._valuesForObject(EOEditingContext.java:790)
at 
com.webobjects.eocontrol.EOCustomObject.writeObject(EOCustomObject.java:1125)
at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1362)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1170)
at java.io.ObjectOutputStream.access$300(ObjectOutputStream.java:161)
at 
java.io.ObjectOutputStream$PutFieldImpl.writeFields(ObjectOutputStream.java:1687)
at java.io.ObjectOutputStream.writeFields(ObjectOutputStream.java:478)
at 
com.webobjects.foundation.NSDictionary.writeObject(NSDictionary.java:594)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
at 
com.webobjects.appserver.WOComponent.writeObject(WOComponent.java:314)
at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601

Re: NullPointerException while using ERPersistentSessionStorage

2013-07-29 Thread Christoph Wick
Dear Ramsey,

thx for your helpful suggestions. I followed them and many bugs disappeared. 

But at the end, there are still some showstoppers of type The Fun™ - see 
stacktrace below.

It happens, if I'm trying to save something back into the DB. It seems that 
deserialization of the persistent session always fails, if the session has to 
deal with one of my PMSUsers objects. My model is basically

PMSUser.school() - PMSSchool, PMSScholl.students() - PMSUser

I don't thinks, that this is a model t complicated. But I'm not sure. I am 
afraid that fixing this is beyond my WO knowledge. But if there are any hints I 
would try to dig into that.

C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600



Jul 29 20:06:16 PMS[65432] WARN  
er.persistentsessionstorage.model.ERSessionInfo  - Failed to deserialize session
NullPointerException
  at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer.setObjectForIndex(_EOMutableKnownKeyDictionary.java:499)
  at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_GenericRecordBinding.setValueInObject(_EOMutableKnownKeyDictionary.java:594)
  at 
er.extensions.eof.ERXGenericRecord$TouchingBinding.setValueInObject(ERXGenericRecord.java:220)
  at 
com.webobjects.eocontrol.EOCustomObject.takeStoredValueForKey(EOCustomObject.java:998)
  at 
er.extensions.eof.ERXGenericRecord.takeStoredValueForKey(ERXGenericRecord.java:1261)
  at 
de.i4innovation.bwinfpms.eo.PMSGenericRecord.takeStoredValueForKey(PMSGenericRecord.java:64)
  at 
com.webobjects.eocontrol.EOEditingContext._mergeValueForKey(EOEditingContext.java:663)
  at 
com.webobjects.eocontrol.EOEditingContext._mergeObjectWithChanges(EOEditingContext.java:3457)
  at 
com.webobjects.eocontrol.EOEditingContext.readObject(EOEditingContext.java:5367)
 ... skipped 4 stack elements
  at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
  at java.io.ObjectInputStream.access$300(ObjectInputStream.java:205)
  at 
java.io.ObjectInputStream$GetFieldImpl.readFields(ObjectInputStream.java:2126)
  at java.io.ObjectInputStream.readFields(ObjectInputStream.java:537)
  at 
com.webobjects.eocontrol.EOCustomObject.readObject(EOCustomObject.java:1132)
 ... skipped 3 stack elements
  at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
  at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1685)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
  at java.io.ObjectInputStream.access$300(ObjectInputStream.java:205)
  at 
java.io.ObjectInputStream$GetFieldImpl.readFields(ObjectInputStream.java:2126)
  at java.io.ObjectInputStream.readFields(ObjectInputStream.java:537)
  at com.webobjects.foundation.NSDictionary.readObject(NSDictionary.java:599)
 ... skipped 3 stack elements
  at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
  at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
  at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)
  at com.webobjects.appserver.WOSession.readObject(WOSession.java:538)
 ... skipped 4 stack elements
  at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
  at 
er.persistentsessionstorage.model.ERSessionInfo.sessionFromArchivedData(ERSessionInfo.java:86)
  at 
er.persistentsessionstorage.model.ERSessionInfo.session(ERSessionInfo.java:51)
  at 
er.persistentsessionstorage.ERPersistentSessionStore.restoreSessionWithID(ERPersistentSessionStore.java:32)
  at 
com.webobjects.appserver.WOSessionStore.checkOutSessionWithID(WOSessionStore.java:182)
  at 
com.webobjects.appserver.WOApplication.restoreSessionWithID(WOApplication.java

How to make entity properties unique?

2013-07-19 Thread Christoph Wick
Hello list,

is there an easy, WO-style way to ensure the uniqueness of entity properties?

SQL supports it (by making columns UNIQUE), but I didn't find anything in 
EOModeler as well as in ERXMigration.

There is ERXEOControlUtilities.validateUniquenessOf(...) but I think this 
doesn't use the database level (so I think it MAY fail in a multi instance 
deployment).

Thanks in advance.
C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: NSNumberFormatter

2013-07-15 Thread Christoph Wick
Hi Oliver,

use the validateKey mechanism (where Key is the name of property, e.g. 
myNumber)

public Object validateMyNumber(Object aValue) throws 
NSValidation.ValidationException {
// 1. cast aValue to int (or whatever you need
// 2. write check method, e.g. SOMETHINGWRONGWITH_aValue
// throw exception, if aValue is not what you want it to be
if (SOMETHINGWRONGWITH_aValue) {
throw new NSValidation.ValidationException(aValue+ is 
not allowed for property 'MyNumber');
}
}

This method will be called by WO automatically before the settermethod 
setMyNumber is called.

Or you overwrite validateForSave or validateForUpdate in your entity's 
class (which should be a subclass of EOCustomObject).


For more basic information see:

https://developer.apple.com/legacy/library/#documentation/WebObjects/Enterprise_Objects/BusinessLogic/BusinessLogic.html%23//apple_ref/doc/uid/TP30001011-CH204-DontLinkElementID_12

or the documentation of NSValidation 
http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/foundation/NSValidation.html

or the documentation of EOCustomObject
http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/eocontrol/EOCustomObject.html#validateForUpdate()

Hope, this helps ...
C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600


On 15.07.2013, at 11:21, Ingenieurbüro Birnfeld - Oliver Birnfeld 
o.birnf...@ingenieurbuero-birnfeld.de wrote:

 inputFormatter=new NSNumberFormatter(0);
 The same result as with #. I think, I have to write my own validator. Any 
 newbie hints for that task?
 
 Thanks!
 
 Oliver
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/wicki%40me.com
 
 This email sent to wi...@me.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: javamonitor and wotaskd won't start after os x updates

2013-07-01 Thread Christoph Wick
Hi Greg,

can you start WOMonitor manually? Try to execute

/System/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor

(if you are using the original Apple WOMonitor, or the one from Wonder wherever 
you've installed it)

Does the log (defined in your LaunchDaemon's 
com.apple.webobjects.womonitor.plist) tells you anything?

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 01.07.2013, at 21:09, Greg Lappen g...@lapcominc.com wrote:

 Hello,
 
 We have a WebObjects app running on a Snow Leopard Server.  Some OS X updates 
 were applied recently, and now WebObjects javamontor, wotaskd, and hence our 
 app are not starting up.
 
 I saw this error in /var/log/system.log:
 
 Suspicious setup: User appserver maps to user: _appserver
 
 I modified the LaunchAgent plist files so that the user and group name now 
 have dashes in front of them and reloaded the files into launchd with 
 launchctl.  The error I see now is this:
 
  kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as 
 they are logged.
 
 This seems like some issue with java not being able to connect to the window 
 server, but I was not able to find any solutions.  Does this look familiar to 
 anyone?
 
 Much thanks,
 
 Greg
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/wicki%40me.com
 
 This email sent to wi...@me.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

ERXMigration not working in ERXAjaxApplication

2013-06-26 Thread Christoph Wick
Hi there,

I have a strange problem.

I had an ERXApplication that used ERXMigration. Everything was fine, my H2 
database schema was created on the fly.

Then I changed ERXApplication to ERXAjaxApplication and suddenly ERXMigration 
didn't work anymore.

I tried back and forth, but

ERXApplication  - ERXMigration ok
ERXAjaxApplication  - ERXMigration does not even start

Same EOModel, same Migration classes and same properties.

Can someone explain this? Is there a workaround? Thx,

C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

How to handle ERXAttachmentExceedsLengthException in ERAttachmentUpload

2013-02-01 Thread Christoph Wick
Hi List,

the ERAttachmentUpload component throws an ERXAttachmentExceedsLengthException 
in its invokeAction method, if the length of the attachment is bigger then the 
configured value (which is perfect so far). Stacktrace below, no Ajax.

How do I handle this exception? Can I catch it somewhere? At the moment it is 
caught in my Application's handleException(Exception anException, WOContext 
context) method, but that's too general.

Thanks for your help,
C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de

Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: 
DE276502600


 An exception of type 
 er.attachment.processors.ERAttachmentProcessor$ERXAttachmentExceedsLengthException
  with message The attachment bTestDoc.docx/b exceeds the maximum 
 attachment size of b10485760 bytes/b. raised on instance -1.
 
 Stacktrace is:
 
   er.attachment.processors.ERAttachmentProcessor.process 
 (ERAttachmentProcessor.java: 307)
   er.attachment.processors.ERAttachmentProcessor.process 
 (ERAttachmentProcessor.java: 282)
   er.attachment.components.ERAttachmentUpload._uploadSucceeded 
 (ERAttachmentUpload.java: 177)
   er.attachment.components.ERAttachmentUpload.invokeAction 
 (ERAttachmentUpload.java: 106)
   com.webobjects.appserver._private.WOComponentReference.invokeAction 
 (WOComponentReference.java: 127)
   com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
 (WODynamicGroup.java: 105)
   com.webobjects.appserver._private.WODynamicGroup.invokeAction 
 (WODynamicGroup.java: 115)
   er.extensions.components._private.ERXWOForm.invokeAction 
 (ERXWOForm.java: 218)
   com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
 (WODynamicGroup.java: 105)
   com.webobjects.appserver._private.WOGenericContainer.invokeAction 
 (WOGenericContainer.java: 29)
   com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
 (WODynamicGroup.java: 105)
   com.webobjects.appserver._private.WODynamicGroup.invokeAction 
 (WODynamicGroup.java: 115)
   com.webobjects.appserver.WOComponent.invokeAction (WOComponent.java: 
 1079)
   er.extensions.components.ERXComponent.invokeAction (ERXComponent.java: 
 102)
   com.webobjects.appserver._private.WOComponentReference.invokeAction 
 (WOComponentReference.java: 127)
   com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
 (WODynamicGroup.java: 105)
   com.webobjects.appserver._private.WODynamicGroup.invokeAction 
 (WODynamicGroup.java: 115)
   com.webobjects.appserver._private.WOComponentContent.invokeAction 
 (WOComponentContent.java: 38)
   com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
 (WODynamicGroup.java: 105)
   com.webobjects.appserver._private.WODynamicGroup.invokeAction 
 (WODynamicGroup.java: 115)
   com.webobjects.appserver._private.WOComponentContent.invokeAction 
 (WOComponentContent.java: 38)
   com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
 (WODynamicGroup.java: 105)
   com.webobjects.appserver._private.WODynamicGroup.invokeAction 
 (WODynamicGroup.java: 115)
   com.webobjects.appserver.WOComponent.invokeAction (WOComponent.java: 
 1079)
   er.extensions.components.ERXComponent.invokeAction (ERXComponent.java: 
 102)
   com.webobjects.appserver._private.WOComponentReference.invokeAction 
 (WOComponentReference.java: 127)
   com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
 (WODynamicGroup.java: 105)
   com.webobjects.appserver._private.WODynamicGroup.invokeAction 
 (WODynamicGroup.java: 115)
   com.webobjects.appserver.WOComponent.invokeAction (WOComponent.java: 
 1079)
   er.extensions.components.ERXComponent.invokeAction (ERXComponent.java: 
 102)
   com.webobjects.appserver._private.WOComponentReference.invokeAction 
 (WOComponentReference.java: 127)
   com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
 (WODynamicGroup.java: 105)
   com.webobjects.appserver._private.WODynamicGroup.invokeAction 
 (WODynamicGroup.java: 115)
   com.webobjects.appserver.WOComponent.invokeAction (WOComponent.java: 
 1079)
   er.extensions.components.ERXComponent.invokeAction (ERXComponent.java: 
 102)
   com.webobjects.appserver.WOSession.invokeAction (WOSession.java: 1357)
   com.webobjects.appserver.WOApplication.invokeAction 
 (WOApplication.java: 1745)
   er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction 
 (ERXAjaxApplication.java: 95)
   er.extensions.appserver.ERXApplication.invokeAction 
 (ERXApplication.java: 1963)
   
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage

Re: Internet Explorer can't download excel sheet as attachment

2012-01-03 Thread Christoph Wick
Hi,

I can't remember exactly how it worked, but I can remember that I once had a 
similar problem with IE and downloading attachments. 

I solved it by writing a direct action for the download. 

It was because IE  uses two HTTP requests to get the attachment and does not 
like it when the URL changes (or was it the HTTP headers - sorry this may sound 
silly, but I'm on vacation right now and do not have access to my dev machine). 
Just give it a try.

C.U.CW
-- 

Christoph Wick - Diplom Informatiker, Managing Director i4innovation GmbH,
Professor-Neu-Allee 39, 53225 Bonn, Germany

T +49 2 28 28 62 97 93
F +49 2 28 28 62 97 99
M c...@i4innovation.de
W www.i4innovation.de

Geschäftsführer: Thomas Heep, Dr. Duk-Ho Shin, Christoph Wick Sitz der
Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: DE276502600



Am 03.01.2012 um 05:58 schrieb pavan.jayam:

 Thanks for the reply Jeremy.
 
 --PJ.
 
 Jérémy DE ROYER [INGENCYS] wrote:
 Welcome to the IE world.
 
 That's why most of the users install chrome or firefox (or safari ?) as soon 
 as Microsoft release a new version of internet explorer with a better 
 security.
 
 No solution found except changing the security settings for me.
 
 Jérémy
 
 Le 8 déc. 2011 à 15:01, pavan.jayam a écrit :
 
   
 
 Hi List,
 
 I am attaching NSData to the WOResponse and returning as an excel page. It 
 works fine with the browsers like Safari,Chrome,Firefox and i am able to 
 download/save the excel file, but when i am trying to do the same in 
 Internet Explorer i am not able to download/save the file. A pop-up window 
 is opening and closing automatically(immediately) with out any options to 
 save or open.
 
 --
   aResponse.setContent(new NSData(data));
   aResponse.setHeader(application/vnd.ms-excel, content-type);
   aResponse.setHeader(inline; filename=\ + filename + \, 
 content-disposition);
   aResponse.setHeader( + data.length, Content-length);
  
 --
 
 If i change my IE browser Downloads option (in the Security settings of 
 Internet Options) which is disabled to enable, i can download/save the 
 attachment.
 
 Changing the IE browser setting is not acceptable from end-user. If there 
 is a solution please let me know.
 
 Help/Feedback on this would be greatly appreciated.
 
 Regards,
 PJ.
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (
 Webobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 
 http://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net
 
 
 This email sent to 
 jeremy.dero...@ingencys.net
 
 
 
 
 
 
 
   
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/wicki%40me.com
 
 This email sent to wi...@me.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Deployment question: WO puts IP address in URL when using HTTPS

2011-02-14 Thread Christoph Wick
Hi there,

one of my clients runs a WO application on a Linux box behind a firewall. The 
internal IP of the box is e.g. 192.168.1.100. The external IP (through the 
firewall) is e.g. 1.2.3.4.

Running the app using HTTP is no problem, since all Link-URLs are built as URIs 
only, e.g. a href=/cgi-bin/WebObjects/App.woa/...

But if we use HTTPS, the Link-URLs are built as full URLs using the internal IP 
address, e.g. a href=https://192.168.1.100/cgi-bin/WebObjects/App.woa/...;

Links like this are - obviously - not accessable through the firewall.
Any ideas? A magic switch in Wonder, I was missing ...

Thx,
C.U.CW
-- 
Christoph WickDirector Software Development
STAR Healthcare Management GmbH, Pierstr. 8, 50997 Cologne, Germany
Fon:+49 2236 33665-50 Fax:+49 2236 33665-90 www.starhealthcare.info
---
 Sitz der Gesellschaft: Köln, Amtsgericht Köln, Reg.Nr.: HRB 55306 





 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Deployment question: WO puts IP address in URL when using HTTPS

2011-02-14 Thread Christoph Wick
Hi John, thanks for your hint. 

Unfortunately the apache config is not the problem here, but it is WebObjects 
(or Wonder) that puts the IP-Addresses into the URL if you are using HTTPS.

What I need are relativ URLs (without IPs), because the app shall be accessible 
from both, before and behind the firewall.

C.U.CW
-- 
Christoph WickDirector Software Development
STAR Healthcare Management GmbH, Pierstr. 8, 50997 Cologne, Germany
Fon:+49 2236 33665-50 Fax:+49 2236 33665-90 www.starhealthcare.info
---
 Sitz der Gesellschaft: Köln, Amtsgericht Köln, Reg.Nr.: HRB 55306 




On 14.02.2011, at 16:13, John Huss wrote:

 This is determined by the ServerName setting in apache, which is probably not 
 matching your regular (http) settings.
 
 John
 
 On Mon, Feb 14, 2011 at 7:30 AM, Christoph Wick c.w...@academy.de wrote:
 Hi there,
 
 one of my clients runs a WO application on a Linux box behind a firewall. The 
 internal IP of the box is e.g. 192.168.1.100. The external IP (through the 
 firewall) is e.g. 1.2.3.4.
 
 Running the app using HTTP is no problem, since all Link-URLs are built as 
 URIs only, e.g. a href=/cgi-bin/WebObjects/App.woa/...
 
 But if we use HTTPS, the Link-URLs are built as full URLs using the internal 
 IP address, e.g. a 
 href=https://192.168.1.100/cgi-bin/WebObjects/App.woa/...;
 
 Links like this are - obviously - not accessable through the firewall.
 Any ideas? A magic switch in Wonder, I was missing ...
 
 Thx,
 C.U.CW
 --
 Christoph WickDirector Software Development
 STAR Healthcare Management GmbH, Pierstr. 8, 50997 Cologne, Germany
 Fon:+49 2236 33665-50 Fax:+49 2236 33665-90 www.starhealthcare.info
 ---
  Sitz der Gesellschaft: Köln, Amtsgericht Köln, Reg.Nr.: HRB 55306
 
 
 
 
 
  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
 
 This email sent to johnth...@gmail.com
 


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Cannot link against WO 542 api doc

2010-04-22 Thread Christoph Wick
It's a javadoc.xml ant file, generated by Eclipse. I call it from the command 
line ant -f javadoc.xml.

It looks pretty simple:

?xml version=1.0 encoding=UTF-8 standalone=no?
project default=javadoc
target name=javadoc
javadoc access=private author=true 
classpath=../SFWeb/Libraries/iText.jar:/Library/Frameworks/FrontBasePlugIn.framework/Resources/Java/FrontBasePlugIn.jar
 [SOME SHORTENING HERE] destdir=doc doctitle=STARFileWebDemo Documentation 
nodeprecated=false nodeprecatedlist=false noindex=false nonavbar=false 
notree=false 
packagenames=net.starhealthcare.starfilewebdemo.programConfigurations.algorithms,net.starhealthcare.starfilewebdemo,net.starhealthcare.starfilewebdemo.rightsManagement,net.starhealthcare.starfilewebdemo.components,net.starhealthcare.starfilewebdemo.programConfigurations,net.starhealthcare.starfilewebdemo.demo
 source=1.5 sourcepath=Sources splitindex=true use=true version=true

!-- this DOES NOT work -- 
!-- link 
href=http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference//
 --

!-- this WORKS --   
link 
href=http://developer.apple.com/documentation/WebObjects/Reference/WO53_Reference//
 
link href=file:/Developer/Documentation/WonderDocs/api//
link href=http://www.junit.org/junit/javadoc/4.5/
link 
href=file:/Users/wicki/Source/eclipse/Phoenix-E35/SFFoundation/doc//
link href=http://java.sun.com/javase/6/docs/api//
/javadoc
/target
/project

Thx, C.U.CW
-- 
Christoph WickDirector Software Development
STAR Healthcare Management GmbH, Pierstr. 8, 50997 Cologne, Germany
Fon:+49 2236 33665-50 Fax:+49 2236 33665-90 www.starhealthcare.info
---
 Sitz der Gesellschaft: Köln, Amtsgericht Köln, Reg.Nr.: HRB 55306 




On 22.04.2010, at 08:43, Johann Werner wrote:

 Hi Christoph,
 
 what is your custom package-list file looking like? Do you create javadocs 
 from within ant as an additional task? I have such a setup that is working 
 for me.
 
 jw
 
 
 Am 20.04.2010 um 14:58 schrieb Christoph Wick:
 
 Hi there,
 
 I try to link the javadoc for my projects against the javadocs of WebObjects 
 5.4.2.
 
 Therefore I put
 
 link 
 href=http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference//
 
 into my javadoc.xml ant file. Unfortunately I get an error message:
 
 [javadoc] javadoc: warning - Error fetching URL: 
 http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/package-list
 
 OK, the file package-list is missing.
 I downloaded the api docs and inserted a manually created package-list 
 file into the api docs.
 
 Doesn't work either :-(
 
 Funny to note, that it works with the WO 5.3 api doc using link 
 href=http://developer.apple.com/documentation/WebObjects/Reference/WO53_Reference//
 
 Any ideas?
 C.U.CW
 -- 
 Christoph Wick Director of IT Systems and Services
 ACADEMY GmbH  Co.KG,  Pierstrasse 8,  50997 Cologne,  Germany
 Fon: +49 2236 33665-0 Fax: +49 2236 33665-90 http://www.academy.de
 --
 Sitz der Gesellschaft: Köln,  Amtsgericht Köln,  Reg.Nr: HRA 16306
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de
 
 This email sent to j...@oyosys.de
 
 
 


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Cannot link against WO 542 api doc

2010-04-20 Thread Christoph Wick
Hi there,

I try to link the javadoc for my projects against the javadocs of WebObjects 
5.4.2.

Therefore I put

link 
href=http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference//

into my javadoc.xml ant file. Unfortunately I get an error message:

  [javadoc] javadoc: warning - Error fetching URL: 
http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/package-list

OK, the file package-list is missing.
I downloaded the api docs and inserted a manually created package-list file 
into the api docs.

Doesn't work either :-(

Funny to note, that it works with the WO 5.3 api doc using link 
href=http://developer.apple.com/documentation/WebObjects/Reference/WO53_Reference//

Any ideas?
C.U.CW
-- 
Christoph Wick Director of IT Systems and Services
ACADEMY GmbH  Co.KG,  Pierstrasse 8,  50997 Cologne,  Germany
Fon: +49 2236 33665-0 Fax: +49 2236 33665-90 http://www.academy.de
--
Sitz der Gesellschaft: Köln,  Amtsgericht Köln,  Reg.Nr: HRA 16306



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: recognising dead instances

2010-01-25 Thread Christoph Wick
We normally implement a direct action - let's call it checkSystemStatus - 
that performs a fetch to ensure the database operates the way we want it. If 
this fetch succeeds, we just return the string OK. Otherwise we return the 
exception message and the stack trace.

On a second system, we run a bunch of crontab controlled shell scripts (every 
10 min) that perform a wget on that direct action, e.g. 
http://YOURSERVER/cgi-bin/WebObjects/YOURAPP.woa/YOURINSTANCE/wa/checkSystemStatus;.
 If that wget returns something different from OK, we send an email with the 
result.

Very simple, but it works for us.

C.U.CW
-- 
Christoph WickDirector Software Development
STAR Healthcare Management GmbH, Pierstr. 8, 50997 Cologne, Germany
Fon:+49 2236 33665-50 Fax:+49 2236 33665-90 www.starhealthcare.info
---
 Sitz der Gesellschaft: Köln, Amtsgericht Köln, Reg.Nr.: HRB 55306 




On 25.01.2010, at 07:40, Lachlan Deck wrote:

 Hi all,
 
 just polling for ideas / techniques people use in detecting dead instances. 
 Naturally when there's lots of instances running in deployment it can be hard 
 to know if a particular instance has locked up for some reason (and this can 
 sometimes have a flow on affect with the adaptor).
 
 Thanks.
 
 with regards,
 --
 
 Lachlan Deck
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/c.wick%40academy.de
 
 This email sent to c.w...@academy.de


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


WOApplicationWizard fails to create new project

2008-06-09 Thread Christoph Wick

Hi all,

I tried to install the complete WOLips from 
http://wiki.objectstyle.org/confluence/display/WOL/Installing+WOLips

(on a complete new machine with 10.5.3).

I started Eclipse, opened the WOLips perpective, tried to create a new  
WOApplication and got the following message:



The selected wizard could not be started.

Reason:
Plug-in org.objectstyle.wolips.wizards was unable to instatiate class
org.objectstyle.wolips.wizards.WOApplicationWizard.


The details shows java.lang.NullPointerException.

What can I do?

C.U.CW
--
Better necessarily means different. (Jonathan 'Wolf' Rentzsch)



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WOApplicationWizard fails to create new project

2008-06-09 Thread Christoph Wick

The allInOne version that is currently downloadable from 
http://wiki.objectstyle.org/confluence/display/WOL/Installing+WOLips

Eclipse says Version 3.3.2 Build id: M20071205-0800
WOLips core is 3.3.5224

Meanwhile, I got it running under the account, I installed it (local  
administrator). But it does not work with my network account (from a  
Mac OS X Server and Open Directory).


C.U.CW
--
Better necessarily means different. (Jonathan 'Wolf' Rentzsch)

On 09.06.2008, at 13:33, Q wrote:


What version of WOLips and what version of Eclipse are you using?

On 09/06/2008, at 8:41 PM, Christoph Wick wrote:


Hi all,

I tried to install the complete WOLips from 
http://wiki.objectstyle.org/confluence/display/WOL/Installing+WOLips

(on a complete new machine with 10.5.3).

I started Eclipse, opened the WOLips perpective, tried to create a  
new WOApplication and got the following message:



The selected wizard could not be started.

Reason:
Plug-in org.objectstyle.wolips.wizards was unable to instatiate  
class

org.objectstyle.wolips.wizards.WOApplicationWizard.


The details shows java.lang.NullPointerException.

What can I do?

C.U.CW
--
Better necessarily means different. (Jonathan 'Wolf' Rentzsch)



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/qdolan%40gmail.com

This email sent to [EMAIL PROTECTED]




--
Seeya...Q

Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806








___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: MS Word document from Web Objects app

2006-08-11 Thread Christoph Wick

On 11.08.2006, at 17:00, Inessa Weiner wrote:

Our client would like an ability to generate a letter - MS Word  
document from Web Objects application.
Can someone who has done a similar thing point me in the right  
direction?


Have you checked Aspose.Words (http://www.aspose.com/Products/ 
Aspose.Words/Default.aspx)


I haven't used this, but the one for PowerPoints and works quite  
well. And you have to pay for a licences ... ;-)


C.U.CW
--
Better necessarily means different. (Jonathan 'Wolf' Rentzsch)


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com