Batch or Online Processing?

Written on 8:33 AM by ronald

I find it very hard to accept that in certain corporate web applications. The application performance testing are subjected to 3 to 5 seconds of resposne time.

And in order to meet this kind of standards. Certain process that will take longer time is actually been shifted to batch process or system prompted batch jobs.

I feel that this has an impact on usability, as user will have to keep track whether this batch process has been run complete or not. I think from my point of view, it is ok to exceed the response time for certain process that might take longer time as long as we have a progress/loading indicator.

Java PDF Conversion Options

Written on 7:59 AM by ronald

I was assigned with the task of looking for API that will do the conversion from word, rtf or html to PDF and after some researches these are the options i can think of

Choice 1 :
Install OpenOffice in server to do conversion from word to pdf

Pros :
Easy to implement, compatiblity is good

Cons :
Dependency on OpenOffice
Security concern regarding installation of extra software


Choice 2 :
Online HTML editor to do the customization and then convert from HTML to PDF

Pros :
Quite customizable, user can change the in the system directly

Cons :
Rejected because might have cross site scripting issue
Additional javascript coding effort
No easy way to convert from html to pdf

Choice 3 :
Client side do conversion to PDF
system will only read the uploaded pdf file and do the replacement of placeholder with the actual values and generate the output PDF

Pros :
Discrepancy of the outlook of the generated PDF will be minimial

Cons :
Currently iText or other java APIs can only read in PDF as bytes. And there is a lot of effort trying to preserve the original formatting after replacing the placeholder values and then regnerating the output PDF.

I wonder if there is any other options. For now we are more of using option 2

Dynamic Application Form Generation

Written on 7:07 AM by ronald


One of my user requirement for the project was to have dynamic form generation for their web application

Exact requirements as follows

- Field Label Change
- Show/Hide field
- Edit list of options in the dropdown list
- Error message for each field
- Able to copy over sections of application form to another form.

I actually thought this kind of dynamic application form generation was kind of way too dynamic and it will be very hard to satisfy the user requirement since they will have varying expectation of how dynamic they will be able to customize the application form

I did a search and found the this. Now if anyone can provide me any review with this application, it will be great