Eclipse 4.4 support for WOLips

2014-07-22 Thread Pascal Robert
Someone submitted a pull request for WOLips so that it works on Eclipse 4.4:

  https://github.com/wocommunity/wolips/tree/Wolfy42-eclipse_4_4

If you are using Eclipse 4.4, please try this branch of WOLips and submit 
feedback in the pull request (https://github.com/wocommunity/wolips/pull/109).
 ___
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

Hacking PDFs [slightly OT]

2014-07-22 Thread Markus Ruggiero
Folks,

I have a large D2W application that generates tons of product spec sheets as 
PDF. The customer requires that all the PDFs are copy restricted (no copy 
allowed, just view and print). That all works. 

Now the customer has the idea that I should bundle all the generated PDFs into 
one large PDF. I can do that, no problem. BUT (there is always one, isn't 
there?) there are externally created PDFs (also copy restricted) that I need to 
include into the compound PDF. Those 3rd party PDFs are out of my control. I 
suggested to bundle the PDFs into a ZIP archive but the customer wants ONE 
large PDF. No, they don't care about inconsistent page numbering, they just 
want ONE PDF with 150+ pages and one cover page with internal links to the 
embedded documents.

Here is my problem: I have no idea how to do this. All the code I have found 
cannot deal with protected PDFs (and I have no way to unprotect them easily). 
The customer is even willing to accept something that can circumvent the 
protection. The only way I know of to get rid of the restriction is by opening 
the PDF in ColorSync on the Mac and then print to pdf. However the production 
app runs on Solaris, there is no Mac around. I might be able to talks the 
customer into buying a Mac just for this kind of processing. But this is really 
really last resort.

Any ideas? Any PDF guru out there?
Thanks for any help, I urgently need it.

---markus---



Markus Ruggiero
mailingli...@kataputt.com
Check out the new book about Project Wonder and WebObjects on 
http://learningthewonders.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: Hacking PDFs [slightly OT]

2014-07-22 Thread Theodore Petrosky

what framework are you using to create these pdfs? I am using ERJasperReports 
(my own version to update to the newest JR). I will check again, but this was 
not difficult in jasperreports. It has a few bugaboos, but nothing 
insurmountable.



On Jul 22, 2014, at 5:59 AM, Markus Ruggiero mailingli...@kataputt.com wrote:

 Folks,
 
 I have a large D2W application that generates tons of product spec sheets as 
 PDF. The customer requires that all the PDFs are copy restricted (no copy 
 allowed, just view and print). That all works. 
 
 Now the customer has the idea that I should bundle all the generated PDFs 
 into one large PDF. I can do that, no problem. BUT (there is always one, 
 isn't there?) there are externally created PDFs (also copy restricted) that I 
 need to include into the compound PDF. Those 3rd party PDFs are out of my 
 control. I suggested to bundle the PDFs into a ZIP archive but the customer 
 wants ONE large PDF. No, they don't care about inconsistent page numbering, 
 they just want ONE PDF with 150+ pages and one cover page with internal links 
 to the embedded documents.
 
 Here is my problem: I have no idea how to do this. All the code I have found 
 cannot deal with protected PDFs (and I have no way to unprotect them easily). 
 The customer is even willing to accept something that can circumvent the 
 protection. The only way I know of to get rid of the restriction is by 
 opening the PDF in ColorSync on the Mac and then print to pdf. However the 
 production app runs on Solaris, there is no Mac around. I might be able to 
 talks the customer into buying a Mac just for this kind of processing. But 
 this is really really last resort.
 
 Any ideas? Any PDF guru out there?
 Thanks for any help, I urgently need it.
 
 ---markus---
 
 
 
 Markus Ruggiero
 mailingli...@kataputt.com
 Check out the new book about Project Wonder and WebObjects on 
 http://learningthewonders.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/tedpet5%40yahoo.com
 
 This email sent to tedp...@yahoo.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: Hacking PDFs [slightly OT]

2014-07-22 Thread Hugi Thordarson
Hi Markus.

I haven’t worked with copy restricted documents, but I use PDFBox to open and 
work with password protected documents. At first glance it looks like it might 
work for you ( 
http://stackoverflow.com/questions/14700241/remove-encryption-from-pdf-with-pdfbox-like-qpdf
 ). PDFBox also comes with a nice little utility class for merging PDFs, here’s 
an example of how to use it. Although I suspect you’ll have to preprocess the 
documents (removing access restrictions) before using the PDFMergerUtility.


public WOActionResults multipleInvoiceResponse() {
PDFMergerUtility list = new PDFMergerUtility();
list.addSource( new ByteArrayInputStream( pdfDocument1ByteArray 
) );
list.addSource( new ByteArrayInputStream( pdfDocument2ByteArray 
) );
list.addSource( /* etc… */ );

ByteArrayOutputStream out = new ByteArrayOutputStream();
list.setDestinationStream( out );

try {
list.mergeDocuments();
}
catch( COSVisitorException | IOException e ) {
throw new RuntimeException( An exception occurred 
while attempting to merge multiple invoices”, e );
}

return USHTTPUtilities.responseWithDataAndMimeType( 
“invoices.pdf, out.toByteArray(), application/pdf );
}

Cheers,
- hugi



On 22.7.2014, at 10:40, Theodore Petrosky tedp...@yahoo.com wrote:

 
 what framework are you using to create these pdfs? I am using ERJasperReports 
 (my own version to update to the newest JR). I will check again, but this was 
 not difficult in jasperreports. It has a few bugaboos, but nothing 
 insurmountable.
 
 
 
 On Jul 22, 2014, at 5:59 AM, Markus Ruggiero mailingli...@kataputt.com 
 wrote:
 
 Folks,
 
 I have a large D2W application that generates tons of product spec sheets as 
 PDF. The customer requires that all the PDFs are copy restricted (no copy 
 allowed, just view and print). That all works. 
 
 Now the customer has the idea that I should bundle all the generated PDFs 
 into one large PDF. I can do that, no problem. BUT (there is always one, 
 isn't there?) there are externally created PDFs (also copy restricted) that 
 I need to include into the compound PDF. Those 3rd party PDFs are out of my 
 control. I suggested to bundle the PDFs into a ZIP archive but the customer 
 wants ONE large PDF. No, they don't care about inconsistent page numbering, 
 they just want ONE PDF with 150+ pages and one cover page with internal 
 links to the embedded documents.
 
 Here is my problem: I have no idea how to do this. All the code I have found 
 cannot deal with protected PDFs (and I have no way to unprotect them 
 easily). The customer is even willing to accept something that can 
 circumvent the protection. The only way I know of to get rid of the 
 restriction is by opening the PDF in ColorSync on the Mac and then print to 
 pdf. However the production app runs on Solaris, there is no Mac around. I 
 might be able to talks the customer into buying a Mac just for this kind of 
 processing. But this is really really last resort.
 
 Any ideas? Any PDF guru out there?
 Thanks for any help, I urgently need it.
 
 ---markus---
 
 
 
 Markus Ruggiero
 mailingli...@kataputt.com
 Check out the new book about Project Wonder and WebObjects on 
 http://learningthewonders.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/tedpet5%40yahoo.com
 
 This email sent to tedp...@yahoo.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/hugi%40karlmenn.is
 
 This email sent to h...@karlmenn.is

 ___
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: app closing method

2014-07-22 Thread Hugi Thordarson
You can override WOSession.terminate() or listen for 
WOSession.SessionDidTimeOutNotification.

Cheers,
- hugi


On 22.7.2014, at 15:26, Theodore Petrosky tedp...@yahoo.com wrote:

 If I am in my app, and a session was created, is there a method (that I can 
 override) that is called when the session terminates? Specifically, if the 
 user closes the window (does not log out), I want to do some cleanup before 
 the session disappears totally.
 
 Ted
 ___
 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/hugi%40karlmenn.is
 
 This email sent to h...@karlmenn.is


 ___
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

app closing method

2014-07-22 Thread Theodore Petrosky
If I am in my app, and a session was created, is there a method (that I can 
override) that is called when the session terminates? Specifically, if the user 
closes the window (does not log out), I want to do some cleanup before the 
session disappears totally.

Ted
 ___
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: maven.wocommunity.org is down

2014-07-22 Thread Henrique Prange
Pascal,

Thanks for reporting. The service is back up.

Cheers,

Henrique

On 21/07/2014, at 15:12, Pascal Robert prob...@macti.ca wrote:

 I'm getting:
 
 Service Temporarily Unavailable
 The server is temporarily unable to service your request due to maintenance 
 downtime or capacity problems. Please try again later.
 
 when trying to reach maven.wocommunity.org.


 ___
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

D2W app date field is required ???

2014-07-22 Thread Theodore Petrosky
I have a simple D2W app that creates pdfs from various data. I have a report 
that requires minimally choosing a client, a location and a date for the event. 

When I am creating a new report, my fields client, date, and location are 
marked (little red asterisk) as being required.

If I leave the location blank or if I don’t choose the client, I get a very 
nice warning that these fields are mandatory. 

A Contact Report must have a Client.
Please provide a Location.


However, if I leave the date field blank (obvious op error) the app crashes.


EvaluateExpression failed: com.webobjects.jdbcadaptor.PostgresqlExpression: 
INSERT INTO contactreport(brieflogoid, iscomplete, distribution, clientid, 
jobname, meetingdate, contactreportnotes, personid, nextsteps, location, 
jobnumber, id, meetingdecisions, meetingpoints, meetingattendees, lastedited) 
VALUES (?::int4, ?::bool, NULL, ?::int4, NULL, NULL, NULL, ?::int4, NULL, 
?::text, NULL, ?::int4, NULL, NULL, NULL, ?::text) withBindings: 
1:1(briefLogoID), 2:false(isComplete), 3:2(clientID), 4:1(personID), 
5:xfgfdgn(location), 6:7(id), 7:S. Admin(lastEdited): Next exception:SQL 
State:23502 -- error code: 0 -- msg: ERROR: null value in column meetingdate 
violates not-null constraint Detail: Failing row contains (1, 2, null, null, 7, 
f, null, null, xfgfdgn, null, null, null, null, null, 1, S. Admin).

I checked the model and meetingDate is a Timestamp and does not allow nulls. I 
guess I could set up the init method to insert today’s date as a default and 
not worry about it but why is D2W blowing up here. 

Is there something special about dates and not null?

Ted ___
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

Sharing an EO model between applications... ?

2014-07-22 Thread Chris Klein/IcontactWeb

Folks,

I have a webobjects application that I want to split into two 
separate applications: one to do slow, batch-oriented tasks; the 
second to manage simple, fast user queries.


Ideally, the two applications would exchange data through a 
database using a common EO model. However, I have no idea 
whether the WO runtime provides any kind of concurrency/locking 
protection for this scenario.


I have a rudimentary understanding of locking, but this is way 
beyond my understanding, and I haven't found any hints on-line.


Any help, including a pointer to somewhere that this may have 
already have been answered, would be greatly appreciated.


WebObjects 5.3.3
OS X 10.4.11
XCode 2.4.1
(I know, old-timey)

Thanks in advance.

Chris Klein






___
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: Sharing an EO model between applications... ?

2014-07-22 Thread Chuck Hill
Hi Chris,

The word you are looking for is “framework”.  Put the model and EO classes and 
anything else you want shared in a  framework project and include that in the 
two application projects.
http://wiki.wocommunity.org/display/documentation/Development-Frameworkshttp://wiki.wocommunity.org/display/documentation/Development-Frameworks?src=search
http://wiki.wocommunity.org/display/WEB/Your+First+Frameworkhttp://wiki.wocommunity.org/display/WEB/Your+First+Framework?src=search
http://wiki.wocommunity.org/display/documentation/Add+a+Framework+Dependency


As for locking… do you run more than one instance of your application now?  If 
so, you should not run into any new problems.  If not, it is possible that your 
code is relying on there being only one process updating the database and that 
a second app could result in optimistic locking failures that you will need to 
now handle and will result in data freshness concerns that you will need to 
accommodate.


http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Optimistic+Locking
http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Concurrency
http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Problems
http://wiki.wocommunity.org/display/documentation/EOF-Using+EOF-Caching+and+Freshness


Chuck

--
Chuck Hill
Executive Managing Partner, VP Development and Technical Services

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing 
Companies in B.C!

Global Village ranks 56th in the 26th annual PROFIT 500 ranking of Canada's 
Fastest-Growing Companies by PROFIT Magazine!


On 2014-07-22, 5:03 PM, Chris Klein/IcontactWeb wrote:

Folks,

I have a webobjects application that I want to split into two
separate applications: one to do slow, batch-oriented tasks; the
second to manage simple, fast user queries.

Ideally, the two applications would exchange data through a
database using a common EO model. However, I have no idea
whether the WO runtime provides any kind of concurrency/locking
protection for this scenario.

I have a rudimentary understanding of locking, but this is way
beyond my understanding, and I haven't found any hints on-line.

Any help, including a pointer to somewhere that this may have
already have been answered, would be greatly appreciated.

WebObjects 5.3.3
OS X 10.4.11
XCode 2.4.1
(I know, old-timey)

Thanks in advance.

Chris Klein






___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.commailto: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.netmailto: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

Re: D2W app date field is required ???

2014-07-22 Thread Philippe Rabier
If you have this kind of error, check your validateForSave method.

Maybe do you just forget to call super.validateForSave()?

There is nothing related to D2W or NSTimestamp attribute. And initializing your 
attribute with now is crap. If your users delete the value you will have 
fixed nothing. 

Put a breakpoint and trace your code. 

Philippe
-
http://twitter.com/prabier

Sent from my iPad

 On 22 juil. 2014, at 21:41, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I have a simple D2W app that creates pdfs from various data. I have a report 
 that requires minimally choosing a client, a location and a date for the 
 event. 
 
 When I am creating a new report, my fields client, date, and location are 
 marked (little red asterisk) as being required.
 
 If I leave the location blank or if I don’t choose the client, I get a very 
 nice warning that these fields are mandatory. 
 
 A Contact Report must have a Client.
 Please provide a Location.
 
 
 However, if I leave the date field blank (obvious op error) the app crashes.
 
 
 EvaluateExpression failed: com.webobjects.jdbcadaptor.PostgresqlExpression: 
 INSERT INTO contactreport(brieflogoid, iscomplete, distribution, clientid, 
 jobname, meetingdate, contactreportnotes, personid, nextsteps, location, 
 jobnumber, id, meetingdecisions, meetingpoints, meetingattendees, lastedited) 
 VALUES (?::int4, ?::bool, NULL, ?::int4, NULL, NULL, NULL, ?::int4, NULL, 
 ?::text, NULL, ?::int4, NULL, NULL, NULL, ?::text) withBindings: 
 1:1(briefLogoID), 2:false(isComplete), 3:2(clientID), 4:1(personID), 
 5:xfgfdgn(location), 6:7(id), 7:S. Admin(lastEdited): Next exception:SQL 
 State:23502 -- error code: 0 -- msg: ERROR: null value in column 
 meetingdate violates not-null constraint Detail: Failing row contains (1, 
 2, null, null, 7, f, null, null, xfgfdgn, null, null, null, null, null, 1, S. 
 Admin).
 
 I checked the model and meetingDate is a Timestamp and does not allow nulls. 
 I guess I could set up the init method to insert today’s date as a default 
 and not worry about it but why is D2W blowing up here. 
 
 Is there something special about dates and not null?
 
 Ted
 ___
 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/prabier%40icloud.com
 
 This email sent to prab...@icloud.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: Hacking PDFs [slightly OT]

2014-07-22 Thread Paul Hoadley
Hi Markus,

On 22 Jul 2014, at 7:29 pm, Markus Ruggiero mailingli...@kataputt.com wrote:

 Any ideas? Any PDF guru out there?
 Thanks for any help, I urgently need it.

With the same caveat as Hugi (I haven't worked with restricted PDFs), we use 
Qoppa Software's jPDFProcess library, which at least claims to support 
restricted documents:

http://www.qoppa.com/pdfprocess/guide/#EncryptionAndPermissions


-- 
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/archive%40mail-archive.com

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