REST API with WebObjects
Hi All, We need to support REST APIs (HTTP GET method) in WO application. The question is how we can implement these in our WO application. We need to develop these APIs independent of Entities. Can someone give an example with ERRest framework? Thanks & Regards, Kalpana. ___ 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: Deployment question: WO puts IP address in URL when using HTTPS
Hi Christoph, We did face the same problem some time ago. Relative URLs are not getting generated with wonder. The full URLs are getting generated with the server name given in apache config. Please check the apache config. -- Kalpana. On Mon, Feb 14, 2011 at 9:15 PM, Christoph Wick wrote: > 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 > 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. > > > > But if we use HTTPS, the Link-URLs are built as full URLs using the > internal IP address, e.g. 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/kalpana.vaka%40evergent.com > > This email sent to kalpana.v...@evergent.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
Problem with EC
Hi All, I am using latest wonder frameworks for my application. I have observed problem with latest ERXEC class while generating the PDF using Jasper reports. When I use old version of wonder framework, the PDF is generating fine without any issues. With latest wonder frameworks, application is hanging on generating the PDF. I kept few debug statements in ERXEC and observed that control is not coming out of lock method with latest release. Is there any issue with latest ERXEC class? Can someone help with this? Thanks & Regards, Kalpana. ___ 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
Communication between WO Applications
Hi All, I have two WebObjects applications A and B. Application-A inserts some records into database. Application-B needs to use the data added from Application-A. If both the applications are running, the data added from Application-A is not coming in Application-B immediately. If I restart the application, then I am able to see the new data. I am trying to use ERJGroupSynchronizer.framework.What are the properties to be used to resolve the issue? Thanks in advance. -- Kalpana. ___ 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
Complete Form URL Issue with WebObjects - HTTPS
Hi All, We are trying to deploy our application (WO-5.4.3) with SSL configuration (Apache 2.2). We have included the following line in httpd.conf to consider SSL configuration. Include conf/extra/httpd-ssl.conf And we have configured the VirtualHost on port 7070 in httpd-ssl.conf. And updated the Adaptor URL in Monitor. Now the application link is working with https. But, when we click on any of the buttons in the screens, the page is breaking up (The page can't be displayed error). When we try to view the source of the form, the form action is showing the URL (https://localhost/cgi-bin/WebObjects/). But it should be (/cgi-bin/WebObjects..) Any help with the configuration? Thanks & Regards, Kalpana. ___ 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
Problem with Apache- SSL Configuration
Hi All, We are trying to deploy our application with SSL configuration (Apache). We have included the following line in httpd.conf to consider SSL configuration. Include conf/extra/httpd-ssl.conf And we have configured the VirtualHost on port 7070 in httpd-ssl.conf. And updated the Adaptor URL in Monitor. Now the application link is working with https. But, when we click on any of the buttons in the screens, the page is breaking up (The page can't be displayed error). When we try to view the source of the form, the form action is showing the URL (https://localhost/cgi-bin/WebObjects/). But it should be (/cgi-bin/WebObjects..) Any help with the configuration? Thanks & Regards, Kalpana. ___ 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: JavaScript Problems with AjaxSubmitButton
Thanks a lot Farrukh. Javascript is working with AjaxSubmit Buttons now. We are using Wonder and will try to use WOGNL framework as per your suggestion. Thanks & Regards, Kalpana. On Sun, May 30, 2010 at 11:14 AM, Farrukh Ijaz < farrukh.i...@fuegodigitalmedia.com> wrote: > Do the following and it will work: > > Add a method as follows in your script: > > function ajaxCheckValidations(o) { > checkValidations(); > return o.form.onsubmit(); > } > > And change the AjaxSubmitButton binding as follows: > > AjaxSubmitButton1: AjaxSubmitButton { > value = "Save"; > class = "ok"; > onClickBefore = "ajaxCheckValidations(this)"; > action = ajaxButtonAction; > evalScripts = true; > } > > The reason why it was not working is: > > Since WOActiveImage is not an ajax component, it causes the form's > onsubmit() event to fire. The validations get fired on form's onsubmit(). In > case of AjaxSubmitButton the onsubmit() won't get fired. So you need to > trigger it manually as I did in the javascript function. Also you need to > use onClickBefore instead of onClick. if the value of onClickBefore is > evaluated to true, the action will be called. > > I hope this will solve the problem. > > I would suggest, if you're using Wonder then try using WOGNL framework and > instead of maintaining separate binding files, use the code easy to read and maintain. > > Like e.g. in your html file, instead of using AjaxSubmitButton1> you can use something as follows: > > "ajaxCheckValidations(this)" action="$ajaxButtonAction" evalScripts= > "$true"/> > > Farrukh > > On 2010-05-29, at 8:20 PM, Kalpana Vaka wrote: > > Hi All, > > Please find the enclosed compressed file with the sample application that > depicts the Java script problems with AjaxSubmitButton. > > The application has the following components. > > 1) One *Text field* > 2) One *WOActiveImage* Button > 3) Two *AjaxSubmit**Buttons ("Save" & "SecondSave")* > 4) Javascript file that is being used for calling script validations from > WOComponent (gen_validatorv2.js). > > When we click on *WOActiveImage *without entering anything in the text box > then, Javascript validation is being executed *onClick*ing the button and > form is not getting submitted until we enter valid value in it. It is > working fine. > > And for *AjaxSubmitButton1* also, same javascript function has been given > for onClick event binding. But, the validation is not getting fired and we > are not seing alert window. > > For both of the above Submit buttons, javascript validations from > gen_validatorv2 file are being called. > > And for *AjaxSubmitButton2*, different javascript function is binded to > onClick event. This javascript function is not calling any of the methods in > gen_validatorv2.js. In this case, we are getting the alert with the > validation message. But, form is getting submitted on clicking on the OK > button in the alert box. > > So, finally the issues with AjaxSubmitButtons are summarized below. > > 1) When we use external javascript file (gen_validatorv2.js), we are not > getting alert window with the validation failure message and action method > is being called. > > 2) When we write javascript function in the WOComponent itself, we are > getting alert with the validation failure message. But, the action method is > being called in case of validation failure too. > > Any help in resolving this issue? > > Thanks & Regards, > Kalpana. > > > > ___ > 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/farrukh.ijaz%40fuegodigitalmedia.com > > This email sent to farrukh.i...@fuegodigitalmedia.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
JavaScript Problems with AjaxSubmitButton
Hi All, Please find the enclosed compressed file with the sample application that depicts the Java script problems with AjaxSubmitButton. The application has the following components. 1) One *Text field* 2) One *WOActiveImage* Button 3) Two *AjaxSubmit**Buttons ("Save" & "SecondSave")* 4) Javascript file that is being used for calling script validations from WOComponent (gen_validatorv2.js). When we click on *WOActiveImage *without entering anything in the text box then, Javascript validation is being executed *onClick*ing the button and form is not getting submitted until we enter valid value in it. It is working fine. And for *AjaxSubmitButton1* also, same javascript function has been given for onClick event binding. But, the validation is not getting fired and we are not seing alert window. For both of the above Submit buttons, javascript validations from gen_validatorv2 file are being called. And for *AjaxSubmitButton2*, different javascript function is binded to onClick event. This javascript function is not calling any of the methods in gen_validatorv2.js. In this case, we are getting the alert with the validation message. But, form is getting submitted on clicking on the OK button in the alert box. So, finally the issues with AjaxSubmitButtons are summarized below. 1) When we use external javascript file (gen_validatorv2.js), we are not getting alert window with the validation failure message and action method is being called. 2) When we write javascript function in the WOComponent itself, we are getting alert with the validation failure message. But, the action method is being called in case of validation failure too. Any help in resolving this issue? Thanks & Regards, Kalpana. TestApp.rar Description: Binary data ___ 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: Javascript is not called by AjaxSubmitButton
Hi Farurukh, Thanks for your help. My validation script is running on form's "onClick" event. If I write the javascript directly in the WOComponent, it is getting called by AjaxSubmitButton. When we use external js file, then the functions in external js functions are not getting fired. Pleae let me know your suggestions to resolve the issue. Thanks & Regards, Kalpana. On 4/23/10, Farrukh Ijaz wrote: > > If you're validation script is running on form's "onSubmit" event. I > suspect these scripts won't get fired with AjaxSubmitButton however you can > fire them in onClickBefore event of AjaxSubmitButton and if the script > returns true the data will be posted to the action E.g. > > Case 1: Normal Submit Button > > > > > > > Case 2: AjaxSubmitButton > > > > onClickBefore="someValidation()"/> > > > I hope case 2 would work for you or at least would give some hints. But > it's better if you could post some code so problem could be understood > properly. > > http://webobjects.insigno.net/wonder/api/er/ajax/AjaxSubmitButton.html > > Farrukh > > On 2010-04-22, at 8:39 PM, Kalpana Vaka wrote: > > > Hi All, > > > > I have javascript file validation.js with all the client side validations > for text, numbers, dates etc.,. > > > > When I use WOJavascript with normal submit button, the validations are > being raised. > > > > But, when I use AjaxSubmitButton instead of normal submit button, the > validations from the js file are being called. > > > > Can anyone help me with this? > > > > Thanks in advance, > > Kalpana. > > ___ > > 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/farrukh.ijaz%40fuegodigitalmedia.com > > > > This email sent to farrukh.i...@fuegodigitalmedia.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
Javascript is not called by AjaxSubmitButton
Hi All, I have javascript file validation.js with all the client side validations for text, numbers, dates etc.,. When I use WOJavascript with normal submit button, the validations are being raised. But, when I use AjaxSubmitButton instead of normal submit button, the validations from the js file are being called. Can anyone help me with this? Thanks in advance, Kalpana. ___ 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
WSDL is not complaint to WS-I
Hi Group, Does WebObjects support document/literal or wrapped style webservices? With RPC style, the WSDL generated by WebObjects is not WS-I complaint because of soapenc:ArrayType. Is there a way to make the WSDL complaint to WS-I? Any help? Thanks & Regards, Kalpana. ___ 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
Document/literal Style WebServices
Hi Group, We are using WO-5.4.3 for our application. Our application has WebServices support with RPC style. The code that we are using to install web services is *WOWSDDRegistrar*.* registerWebService(myServiceName,myClass,true).*With RPC style, we are able to define many operations (methods) in my service class (myClass). Now, we have the requirement to change the encodingStyle to document/literal. When we call the registerWebService() method with false value for last parameter, it is throwing IllegalArgumentException saying that only one handler should exist. Is there a way to have to work make the webservices to work without defining a service for each handler with document/literal style? How to test the document style web service from Soap UI? Any help? Regards, Kalpana. ___ 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: Difficulties running WebObjects on CentOS linux remote host (my website)
Hi Reyn, It seems like PATH environment variable is not set to java bin directory. Please append /usr/local/java/bin to PATH environment variable before launching the application. You can use the following commands. PATH=$PATH:/usr/local/java/bin export PATH It will fix your problem. Regards, Kalpana. > Hi, > > I have a problem running webobjects applications on a CentOS server (My > website). Everything seems to be configured according to this > http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux > Wiki. > > When I try to start the application I get this: > > [r...@srv1 JavaApplications]# Hallo.woa/Hallo _WOPort 56789 & > [1] 19347 > [r...@srv1 JavaApplications]# Reading UNIXClassPath.txt ... > Launching Hallo.woa ... > java -DWORootDirectory="/opt" -DWOLocalRootDirectory="/opt/Local" > -DWOUserDirectory="/opt/Library/WebObjects/JavaApplications" > -DWOEnvClassPath="/usr/local/java/lib:/usr/local/java/jre/lib:/usr/local/tomcat/bin/:/usr/local/tomcat/common/lib:." > -DWOApplicationClass=your.app.Application -DWOPlatform=UNIX > -Dcom.webobjects.pid=19347 -classpath WOBootstrap.jar > com.webobjects._bootstrap.WOBootstrap _WOPort 56789 -WOFrameworksBaseURL > /WebObjects/Hallo.woa/Frameworks > Hallo.woa/Hallo: line 301: exec: java: not found > > I use WebObjects 5.4 > > Can anybody advise me on how to fix things so my apps can run on this > server? > > Thanks and Regards, > > Reyn Waldram ___ > 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/kalpana.vaka%40evergent.com > > This email sent to kalpana.v...@evergent.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
WOCheckBoxList is not working in WO-5.4
Hi, We are trying to migrate our application deployment environment from WebObjects 5.2 to WebObjects 5.4. In some of the WOComponents, we are making use of WOCheckBoxList and WOCheckboxMatrix elements. In WO5.2, WOCheckBoxList is working fine and we are able to view the check boxes. But in WO5.4, WOCheckBoxList is displaying as a text box with values 0,1,2 etc., I came to know that some of these dynamic elements are deprecated in WebObjects 5. Is there any way to make WOCheckBoxList work in WebObjects 5.4 version? Thanks & Regards, Kalpana. ___ 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