Re: UtilTimer Question

2007-11-21 Thread Jacques Le Roux
Don't you have information like this on the beginning of each console.log lines (or any log name you use for that) ? 2007-11-21 08:18:46,578 (main) [ CatalinaContainer.java:234:INFO ] Started Apache Tomcat/5.5.23 Jacques De : Bilgin Ibryam [EMAIL PROTECTED] I tried with print.timing=true

Re: How to model a class

2007-11-21 Thread BJ Freeman
that would be similar to a hotel room with occupants if you want to look at how hans did it. Al Byers sent the following on 11/20/2007 11:11 PM: What is the best way to model a class (an instance of a class - with a meeting time and students, etc.) - as a PartyGroup or WorkEffort or something

Re: UtilTimer Question

2007-11-21 Thread Bilgin Ibryam
Yes, i have. But if you look at CatalinaContainer.java:234 (your example) it does this way: Debug.logInfo(Started + ServerInfo.getServerInfo(), module); I wanted to print logs using UtilTimer class (because i want to track how long it takes the execution of my code snippets). Here an example

Re: Service cannot be called

2007-11-21 Thread BJ Freeman
first assignment should be to read the documentation on ofbiz. http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index then go thru the code to find examples of what you want to do. get something like xmlbuddy to view and create your xml files. from what I see your xml is not formatted

Re: Service cannot be called

2007-11-21 Thread BJ Freeman
http://ofbizwiki.go-integral.com/Wiki.jsp?page=ProposedOFBizTestFramework BJ Freeman sent the following on 11/21/2007 12:48 AM: first assignment should be to read the documentation on ofbiz. http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index then go thru the code to find

Re: UtilTimer Question

2007-11-21 Thread Jacques Le Roux
Hi Bilgin, Quick answer, in the meantime (have no time to dig in) why not put begin and end marks and look their times in log ? Jacques Yes, i have. But if you look at CatalinaContainer.java:234 (your example) it does this way: Debug.logInfo(Started + ServerInfo.getServerInfo(),

Re: UtilTimer Question

2007-11-21 Thread Bilgin Ibryam
Jacques, I try to use as much as possible existing ofbiz functionalities and UtilTimer seemed to me designed for this purpose. But now i could not find a way to use this class and i print manually, as you sugested. -- View this message in context:

Re: Write to Browser

2007-11-21 Thread Adrian Crum
FileInputStream zipInStream = new FileInputStream(zipFile); OutputStream browserOutStream = response.getOutputStream(); response.setContentLength((int)zipFile.length()); response.setContentType(application/zip); // Call a routine to copy bytes from zipInStream to browserOutStream -Adrian Chris

RE: Entity View Problem

2007-11-21 Thread clearchris
Added to wiki per your request. C -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 12:00 AM To: clearchris Subject: RE: Entity View Problem clearchris A very useful tip and it pointed out the problem instantly. Thanks. This in

Re: Write to Browser

2007-11-21 Thread Chris Howe
It won't let me do response.getOutputStream. I get an error that says getWriter() has already been called for this response - Original Message From: Adrian Crum [EMAIL PROTECTED] To: user@ofbiz.apache.org Sent: Wednesday, November 21, 2007 9:45:47 AM Subject: Re: Write to Browser

return adjustment without item

2007-11-21 Thread William Perng
Hi, I would like to use return without returning any items, just return adjustment. But I have problem to have the payment to be refunded to credit card automatically after the return adjustment item is created. Can anyone please tell me what should be the next step after the Accept Return

Re: Write to Browser

2007-11-21 Thread Adrian Crum
You'll have to back up in the code some and see how the writer is being used. If nothing has been written already, then you can copy the InputStream to the Writer. If your code is being called from the screen widget, then things get tricky - since it has probably already sent out HTML text to

Re: UtilTimer Question

2007-11-21 Thread Jacques Le Roux
De : Bilgin Ibryam [EMAIL PROTECTED] Jacques, I try to use as much as possible existing ofbiz functionalities and UtilTimer seemed to me designed for this purpose. But now i could not find a way to use this class and i print manually, as you sugested. I agree, I will try to have a look

Re: complex-alias operator

2007-11-21 Thread Jacques Le Roux
From recent discussions in ML, I'm not sure you need it anymore but did you look into entitymodel.xsd ? Jacques Can anyone point me to some documentation on what operators are implemented for complex-alias operator=?. I've done a search and can find only -. Skip

RE: Warehouse manegment barcode

2007-11-21 Thread clearchris
In the warehouse apps that I have seen, the barcode scanners act as if they were typed input. The workflow of the worker usually involves getting to the proper field in the app, then using the scanner to input the code. -Original Message- From: Christoffer Munck [mailto:[EMAIL

Re: Write to Browser

2007-11-21 Thread Chris Howe
Thanks for your help Adrian! That helped me track down a workaround (big smile). in ScreenWidgetViewHandler.java#render(..,..,..,...,.) there is the section if (useOutputStreamNotWriter) { ServletOutputStream ros = response.getOutputStream(); writer =

RE: complex-alias operator

2007-11-21 Thread [EMAIL PROTECTED]
Jacques Thanks for the response. Its not in the entitymodel.xsd. This contains the functions you can call, but not the operators used to create a complex sql expression. And it is platform specific I come to find out. Everything with Ofbiz zeems to take tons of research to figure out. But, I

Tomcat 6 ofbiz

2007-11-21 Thread Ján Valkovič
Hi, I want to build Claros inTouch (http://www.trlinux.com/web/showProduct.do?id=1) into ofbiz, but inTouch run on tomcat 6.0.x and ofbiz on 5.5.x. I'v tried to replace embeded tomcat with 6.0.14 (and some part of geronimo, because tomcat6 supports jsp 2.1 and servlet 2.5 and tomcat55 only jsp

Re: Warehouse manegment barcode

2007-11-21 Thread Adrian Crum
It would be easier to create a small task-oriented UI that's wrapped around existing services. -Adrian Christoffer Munck wrote: Hi Jacopo, thank you. I was unaware of this :). But the thing is that I need a barcode scanner. So a handheld device, where you type in the stuff is not good

Re: Warehouse manegment barcode

2007-11-21 Thread Christoffer Munck
Hi Jacopo, thank you. I was unaware of this :). But the thing is that I need a barcode scanner. So a handheld device, where you type in the stuff is not good enough. I need it to be fully automatic, this means scanning a purchase order (with a predefined barcode), and this is registered in

RE: compressHTML ON by default ?

2007-11-21 Thread [EMAIL PROTECTED]
I think it should be on by default. It doesnt hurt anything and the javascript compression work I have seen suggests that it helps. If you are trying to debug, which would be the only time it would be needed that I can see, you can turn it on. My two cents. Skip -Original Message-

Link to download OFBiz 4.0

2007-11-21 Thread Vedam B

RE: Warehouse manegment barcode

2007-11-21 Thread [EMAIL PROTECTED]
Christoffer I did exactly this about 10 years ago for another appliction and it is easy. Most of the handheld scanners are programmable so that the barcode scanned outputs CR/LF or not and such things. It should be a simple matter to program the scanner to work with a screen. What I did was

compressHTML ON by default ?

2007-11-21 Thread Jacques Le Roux
Hi all, I commited recently (in trunk revision: 594042) a patch from Adrian. I then asked in the corresponding Jira issue https://issues.apache.org/jira/browse/OFBIZ-1318 I just wondered if we should not use the compressHTML by default (ON) from a property in general.properties ? I know

UNIQUE constraints

2007-11-21 Thread Vedam B
Dear all, Any suggestion on enforcing constraints on ENTITY. One soultion i amable tot hink is create tables using entity engine and ALTER the tables. Regards Vedam

RE: UNIQUE constraints

2007-11-21 Thread [EMAIL PROTECTED]
Thats exactly what I do for unique and a variety of other constraints. Skip -Original Message- From: Vedam B [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 11:25 AM To: user@ofbiz.apache.org Subject: UNIQUE constraints Dear all, Any suggestion on enforcing constraints on

Re: Tomcat 6 ofbiz

2007-11-21 Thread David E Jones
Just as with any library, or set of libraries, that OFBiz uses the code that uses them will need to be updated if there are non-backward compatible changes in the library. This happens all the time. If you'd like to make the changes yourself feel free to create a patch with them and

Re: Write to Browser

2007-11-21 Thread Adrian Crum
Chris, I'm not sure what the proper solution would be. Your case is very similar to the one I faced while refactoring the FOP rendering - that's why I was thinking a generic file view handler would be handy. It would work something like this: Render the specified screen to a temp file

Re: compressHTML ON by default ?

2007-11-21 Thread David E Jones
The general practice (kind of policy...) for SVN is that everything in it should be development oriented. When you check out from SVN, you get a set of configuration values that put timeouts on caches for auto- reloading, and so on. This is why we have production setup documentation,

Re: compressHTML ON by default ?

2007-11-21 Thread Adrian Crum
David, Your reply got me to thinking... should we have screen widget boundary comments turned ON by default? -Adrian David E Jones wrote: The general practice (kind of policy...) for SVN is that everything in it should be development oriented. When you check out from SVN, you get a set

Re: compressHTML ON by default ?

2007-11-21 Thread David E Jones
It wouldn't be appropriate for me to make that decision, and I don't really have a strong opinion on it either way. That would be consistent with these other things so we certainly could do it that way. We should solicit opinions on it, but that should really happen on the dev list.

RE: Tomcat 6 ofbiz

2007-11-21 Thread [EMAIL PROTECTED]
I would like to see the move to Tomcat 6, but don't have time atm to get to it. Skip -Original Message- From: David E Jones [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 11:30 AM To: user@ofbiz.apache.org Subject: Re: Tomcat 6 ofbiz Just as with any library, or set of

Re: compressHTML ON by default ?

2007-11-21 Thread Jacques Le Roux
Thanks David and Adrian, I have added your advices into the doc from the link below. Jacques The general practice (kind of policy...) for SVN is that everything in it should be development oriented. When you check out from SVN, you get a set of configuration values that put timeouts on

Re: compressHTML ON by default ?

2007-11-21 Thread Jacques Le Roux
De : David E Jones [EMAIL PROTECTED] It wouldn't be appropriate for me to make that decision, and I don't really have a strong opinion on it either way. That would be consistent with these other things so we certainly could do it that way. We should solicit opinions on it, but that

Re: Link to download OFBiz 4.0

2007-11-21 Thread Ashish Vijaywargiya
https://svn.apache.org/repos/asf/ofbiz/branches/release4.0 On Nov 22, 2007 12:46 AM, Vedam B [EMAIL PROTECTED] wrote: - Thanks Regards Ashish Vijaywargiya +919893479711

Re: UNIQUE constraints

2007-11-21 Thread BJ Freeman
http://lists.ofbiz.org/pipermail/users/2002-September/000177.html Vedam B sent the following on 11/21/2007 11:25 AM: Dear all, Any suggestion on enforcing constraints on ENTITY. One soultion i amable tot hink is create tables using entity engine and ALTER the tables. Regards Vedam

Re: UNIQUE constraints

2007-11-21 Thread BJ Freeman
http://mail-archives.apache.org/mod_mbox/ofbiz-commits/200706.mbox/[EMAIL PROTECTED] BJ Freeman sent the following on 11/21/2007 3:29 PM: http://lists.ofbiz.org/pipermail/users/2002-September/000177.html Vedam B sent the following on 11/21/2007 11:25 AM: Dear all, Any suggestion on

Re: GUI Modin

2007-11-21 Thread BJ Freeman
/framework/widgets is where the ofbiz screen, forms, tree, menus reside. here is the built in example for forms https://demo.hotwaxmedia.com/example/control/FormWidgetExamples or https://localhost:8443/example/control/FormWidgetExamples if you running from the svn trunk Tabs like those on the top

GUI Modin

2007-11-21 Thread Daniel Haddad
Hello, I'd like to add a few buttons and maybe even a tab to the whole GUI system that will be responsible for several things that a friend of mine would like me to add. I'm not sure how the button system is done, nor where in the code exactly it is, can anyone shed a bit of light on that?? Thanks

Re: Write to Browser

2007-11-21 Thread Jonathon -- Improov
Why render to a temp file? Why not simply render to a byte array like ScreenFopViewHandler (pdf) does? Temp files need cleaning up. The best way I can think of now is to have a generic ByteArrayViewHandler or similar, that outputs any arbitrary byte array to the browser (via

RE: GUI Modin

2007-11-21 Thread [EMAIL PROTECTED]
Lol -Original Message- From: Daniel Haddad [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 3:50 PM To: user@ofbiz.apache.org Subject: GUI Modin Hello, I'd like to add a few buttons and maybe even a tab to the whole GUI system that will be responsible for several things that

New member

2007-11-21 Thread Sunder Anand
Dear All, I am V.Sunder Anand recently joined your family to learn Ofbiz framework and benefit out of it. What I hope to achieve is to build a simple inventory management system based on ofbiz and gradually add other component to it, Of course inventory itself will need party and product. So

RE: Write to Browser

2007-11-21 Thread [EMAIL PROTECTED]
I'm feeling like I need a stretch, and may implement this just for fun. Gads Jonathon, your are worse than me. Skip

Re: compressHTML ON by default ?

2007-11-21 Thread Jonathon -- Improov
About SVN being development oriented, I agree! As for whether compressHTML would make any diff, I thought it won't. Extra spaces compress really well with zip, so traffic won't be affected much. Maybe javascript works faster (gets parsed more quickly) with compressedHTML on? Jonathon David

RE: Write to Browser

2007-11-21 Thread [EMAIL PROTECTED]
Jonathon Oh, there is a never ending supply of clients who want to pay for your hamburger tomorrow (cartoon character of great fame in the US in case you have never heard that expression) and I have happily, to my great misfortune, worked for what I am sure is the majority of them. Not sure what

Re: New member

2007-11-21 Thread vijay Si
Welcome to ofbiz family!!! On Nov 22, 2007 9:42 AM, Sunder Anand [EMAIL PROTECTED] wrote: Dear All, I am V.Sunder Anand recently joined your family to learn Ofbiz framework and benefit out of it. What I hope to achieve is to build a simple inventory management system based on ofbiz and

Re: New member

2007-11-21 Thread David E Jones
On Nov 21, 2007, at 9:12 PM, Sunder Anand wrote: Dear All, I am V.Sunder Anand recently joined your family to learn Ofbiz framework and benefit out of it. What I hope to achieve is to build a simple inventory management system based on ofbiz and gradually add other component to it, Of course