Re: Newbie question about REST

2012-10-23 Thread Philippe Rabier
Thanks Mike. Makes sense. Don't know why I was considering DA differently. Anyway, a last question to be sure. In ERXEORestDelegate.java ( https://github.com/projectwonder/wonder/blob/integration/Frameworks/EOF/ERRest/Sources/er/rest/ERXEORestDelegate.java ), you lock the ec because you can't

Re: Newbie question about REST

2012-10-22 Thread Philippe Rabier
Hi All, Me again. I need help from the ERRest gurus. Finally, if I'm right, all examples are wrong. The example developed by Mike, the one made by Pascal in the wiki - http://wiki.wocommunity.org/display/documentation/Your+First+Rest+Project ... I read more carefully the source code of ERRest

Re: Newbie question about REST

2012-10-22 Thread Mike Schrag
if you run wonder with auto locking, you'll auto lock. if you don't, you need to lock. same rules as normal WO. ms On Oct 22, 2012, at 11:00 AM, Philippe Rabier prab...@me.com wrote: Hi All, Me again. I need help from the ERRest gurus. Finally, if I'm right, all examples are wrong. The

Newbie question about REST

2012-10-21 Thread Philippe Rabier
Hi all, If we do some fetches or updates manually in our controllers (in the createAction(), indexAction(), …) I suppose we have to manually lock the editingContext returned by the provided method edtingContext(). Is my assumption correct? Philippe

Re: Newbie question about REST

2012-10-21 Thread Philippe Rabier
Sorry. I read the ERXEORestDelegate code and I got my answer. We have to lock/unlock the ec manually. Philippe On 21 oct. 2012, at 14:47, Philippe Rabier wrote: Hi all, If we do some fetches or updates manually in our controllers (in the createAction(), indexAction(), …) I suppose we

Re: Newbie question about on WOInject (so for Henrique)

2012-04-05 Thread Ron X
Are you able to run the same Application without the WOInject integration? yes Looks like the import com.ronx.module. SocialModule is missing in your Application class. yes, eclipse says that it can not import such class. But with out WOInject - class imports successfully. 5 апреля 2012 г. 2:19

Re: Newbie question about on WOInject (so for Henrique)

2012-04-05 Thread Henrique Prange
Hi Ron, It seems you have a problem in the Eclipse build path. Are you using the m2e plugin? What happen if you build the project in terminal? Cheers, Henrique Sent from my iPhone On 05/04/2012, at 03:54, Ron X ron.x.by...@gmail.com wrote: Are you able to run the same Application without

Re: Newbie question about on WOInject (so for Henrique)

2012-04-04 Thread Brook, James
Sent from my iPhone - is the injection mechanism efficient (in our case, a new object is created each time there is an http request)? I still don't have any benchmarks comparing an application running with WOInject and without it. Our empirical analysis didn't capture any

Re: Newbie question about on WOInject (so for Henrique)

2012-04-04 Thread Philippe Rabier
Thanks for your replies/feedback Henrique and James. Happy you are to have an average transaction of 10ms. I'm fighting against Mysql at this moment. But it's another problem ;-) Philippe Sent from my iPhone On 4 avr. 2012, at 09:17, Brook, James jbr...@upcbroadband.com wrote: Sent

Re: Newbie question about on WOInject (so for Henrique)

2012-04-04 Thread Ron X
i have created simple app: package com.ronx; import com.google.inject.Module; import com.woinject.InjectableApplication; import com.woinject.WOInject; public class Application extends InjectableApplication { public static void main(String[] argv) {

Re: Newbie question about on WOInject (so for Henrique)

2012-04-04 Thread Henrique Prange
Hi Ron, On 04/04/2012, at 12:24, Ron X wrote: ... at com.ronx.Application.main(Application.java:10) Caused by: java.lang.IllegalStateException: Main bundle 'Properties' file can't be read. Did you run as a Java Application instead of a WOApplication in WOLips? Please post your

Re: Newbie question about on WOInject (so for Henrique)

2012-04-03 Thread Henrique Prange
Hi Philippe, Sorry for the delay. On 02/04/2012, at 06:25, Philippe Rabier wrote: Hi Henrique, I prepare my brain to use WOInject. I have a specific case where I need your help. We have 2 frameworks: - web services - foundation which have no dependency with WO, EOF, … (pure java

Newbie question about on WOInject (so for Henrique)

2012-04-02 Thread Philippe Rabier
Hi Henrique, I prepare my brain to use WOInject. I have a specific case where I need your help. We have 2 frameworks: - web services - foundation which have no dependency with WO, EOF, … (pure java I could say). Foundation provides factories used by web services but they return objects

Newbie question about ERRest

2011-09-02 Thread Philippe Rabier
Hi all, We are starting using ERRest in our team and I have a first question: The default way to get an object (in our case a Project) is : GET /ra/Project/id But suppose we have our own globalUID that is not the primary key or if we want to use something else (for example login for a user as

Re: Newbie question about ERRest

2011-09-02 Thread Pascal Robert
Le 2011-09-02 à 08:49, Philippe Rabier a écrit : Hi all, We are starting using ERRest in our team and I have a first question: The default way to get an object (in our case a Project) is : GET /ra/Project/id But suppose we have our own globalUID that is not the primary key or if we

Re: Newbie question about ERRest

2011-09-02 Thread Philippe Rabier
Thanks Pascal but we are still a little bit confused. I answer the last Q first which is simple: it was not the idea to pass the username and password as in your WOWODC slide. I thought about the login value like www.wocommunity.org/ra/user/probert if probert is your login. But not sure it's a

Re: Newbie question about ERRest

2011-09-02 Thread Pascal Robert
Le 2011-09-02 à 09:28, Philippe Rabier a écrit : Thanks Pascal but we are still a little bit confused. I answer the last Q first which is simple: it was not the idea to pass the username and password as in your WOWODC slide. I thought about the login value like

Re: Newbie question about ERRest

2011-09-02 Thread Mike Schrag
So by convention and I should say, the default implementation, everything has been designed to get object based on their primary key, isn't it? yes, the default impl is PK ... you can write a custom IERXRestDelegate implementation that uses something other than PK, though, but it means you

Re: Newbie question about ERRest

2011-09-02 Thread Philippe Rabier
Thanks Mike. I deduced that when I read the source code of your example. Philippe Sent from my iPhone On 2 sept. 2011, at 16:55, Mike Schrag msch...@pobox.com wrote: So by convention and I should say, the default implementation, everything has been designed to get object based on their

Re: Newbie question

2011-04-07 Thread Pascal Robert
Le 2011-04-06 à 23:48, Chuck Hill a écrit : That is going to leave you with a race condition. The only certain way to prevent the creation of duplicates is to put an unique constraint on the database. Then you have to catch the database exception (EOGeneralAdaptorException) in your code

Re: Newbie question

2011-04-07 Thread Amedeo Mantica
do you insert the Enterprise Object in the Editing Context immediately after creation or when submitting form ? On 07/apr/2011, at 12.39, Pascal Robert wrote: Le 2011-04-06 à 23:48, Chuck Hill a écrit : That is going to leave you with a race condition. The only certain way to prevent

Newbie question

2011-04-06 Thread Mr Tonnew
Hi, How do I avoid committing duplicate entries in the DB? I have a form from where I take entries. Is there a single line of code that can accomplish this? MR ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing

Re: Newbie question

2011-04-06 Thread Paul D Yu
Based on the column/attribute in your DB/EOModel that would make your consider the record/EO to be duplicate of another, you should implement a method that would check for those values in the existing set. I don't think there is a one line solution to what you are seeking. Paul On Apr 6, 2011,

Re: Newbie question

2011-04-06 Thread Chuck Hill
That is going to leave you with a race condition. The only certain way to prevent the creation of duplicates is to put an unique constraint on the database. Then you have to catch the database exception (EOGeneralAdaptorException) in your code and handle appropriately. The ugly part is that

Re: Newbie question

2011-04-06 Thread Amiel Montecillo
I agree with Chuck. To display a more meaningful error message, I've been putting a mapping in my ValidationTemplate.strings something like: User.USERNAME_DUP_IDX = Username already exists; where User = modelname USERNAME_DUP_IDX = name of your unique index. HTH, Amiel On Thu, Apr 7, 2011 at

Newbie question about WebObjects suitability for social game (Facebook) development

2010-07-01 Thread Nalin Sharma
Hi Apologies if this is a stupid question, but if anyone has any views / insights on this topic then I would much appreciate hearing them. I am currently trying to assess how suitable WO might be as an application server for social game development on Facebook Typically these games have an

Re: Newbie question about WebObjects suitability for social game (Facebook) development

2010-07-01 Thread Anjo Krank
Hm. Currently EOF doesn't have built-in support for the NoSQL stuff. Neither does it support sharding. Or stuff like distributed caching (we do have tons of caching helpers in Wonder, but they won't help you when you need distributed updates). Also the EOF caching might get in your way when

Another newbie question

2010-01-02 Thread Mark Woollard
I have a component (java/html/api/woo/wod) and want to create a derived component that specialises some of the java functionality, but doesn't need to modify the html of the base component. I can't figure out how to get the derived component to return the base class html since the derived

Re: Another newbie question

2010-01-02 Thread Andrew Lindesay
Hi Mark; If I understand you correctly, I would typically create smaller re-usable components to put into two different larger components. cheers. I have a component (java/html/api/woo/wod) and want to create a derived component that specialises some of the java functionality, but doesn't

Re: Another newbie question

2010-01-02 Thread Mark Woollard
Maybe expanding will make things clearer... There is a base component FieldEditor which does in-place editing using the AjaxInPlace component + 2 ERXWOTemplate instances for the edit and view modes. I then am wanting to derive from this to create StringFieldEditor / IntegerFieldEditor / etc

Re: Another newbie question

2010-01-02 Thread Chuck Hill
Hi Mark, This not part of WO, possibly due to concerns about efficiency and optimization (see JavaDoc below). You can add a method to your component (or better, to a custom super class) to achieve this: /** * Allows a component to inherit the template (.html and .wod files)

Re: Another newbie question

2010-01-02 Thread Andrew Lindesay
Hello Mark; Could you use a java.text.Format subclass and bind this into the FieldEditor component using a format binding to provide for the differing parser/formatter -- much in the fashion by which WOTextField works? cheers. There is a base component FieldEditor which does in-place editing

Re: Another newbie question

2010-01-02 Thread Mark Woollard
Thanks for the input - a couple of questions on this. 1) Can't find ResourceManagerAdditions - what do I need to add? 2) Although not relevant for what I want to do, the frameworkName parameter isn't used. Thanks Mark On 3 Jan 2010, at 02:24, Chuck Hill wrote: Hi Mark, This not part of

Re: Another newbie question

2010-01-02 Thread Chuck Hill
On Jan 2, 2010, at 6:52 PM, Mark Woollard wrote: Thanks for the input - a couple of questions on this. 1) Can't find ResourceManagerAdditions - what do I need to add? This is from the GVC Frameworks (http://www.global-village.net/chill/gvc_frameworks ). File attached.

Re: Another newbie question

2010-01-02 Thread Mark Woollard
Thanks - subclasses are now working:-) Mark On 3 Jan 2010, at 03:08, Chuck Hill wrote: On Jan 2, 2010, at 6:52 PM, Mark Woollard wrote: Thanks for the input - a couple of questions on this. 1) Can't find ResourceManagerAdditions - what do I need to add? This is from the GVC

Newbie question about passing arguments into an WO app

2007-01-22 Thread Seth Norris
Hi all, I am new to WO - you may remember back in September I asked about what I should know when applying for a job that used WebObjects - well I got the job and now I have a lot to learn :) Anyway, I am trying to figure out how to pass an argument in to a WO app. We have two

newbie question

2006-09-25 Thread mike
Hi everyone, I'm totally new to webobjects. I was just looking around for something to fit my needs for a project I was thinking of doing and webobjects seemed perfect. Only problem was that I at the same time I just discovered that all the dev. tools have been deprecated by apple. :(

Re: newbie question

2006-09-25 Thread Guido Neitzer
Hi Mike. Only problem was that I at the same time I just discovered that all the dev. tools have been deprecated by apple. Don't be scared - it's only the developer tools from Apple. Something a lot of people here have dropped way earlier and switched to Eclipse/WOLips or IntelliJ IDEA /

Re: newbie question

2006-09-25 Thread Chuck Hill
Hi Mike, On Sep 25, 2006, at 10:40 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm totally new to webobjects. I was just looking around for something to fit my needs for a project I was thinking of doing and webobjects seemed perfect. And what is that project? A lot depends

Re: Another newbie question concerning Hyperlink

2006-09-07 Thread John Larson
I have to second this because it is often overlooked or misunderstood. Unless you are going to some outside page, (even in some cases if you are), it is almost always best to handle these with direct actions. This way your navigation all happens within the session and is all kept track

Another newbie question concerning Hyperlink

2006-09-06 Thread Gilles MATHURIN
Hello list As a newbie, i noticed it was easy to make hyperlink to static page from a WebApp, just do as usual… put in the path in a relative or absolute way, but what is the method to come back to the WO Page from this static web page u just gone to ? Regards. GM

Re: Another newbie question concerning Hyperlink

2006-09-06 Thread James Cicenia
Maybe with some Javascript. Since you are going to a static page, I presume you mean outside of the app? Also, lookup DirectActions as they will be of great help to you. James On Sep 6, 2006, at 8:42 PM, Gilles MATHURIN wrote: Hello list As a newbie, i noticed it was easy to make

Newbie question about highlighting rows

2006-07-25 Thread Chip Myers
I'm currently generating a series of rows within a WORepetition. The best way to show the structure is as follows:SELECT PERSON A CITY A STATE A SELECT PERSON B CITY B STATE B SELECT PERSON C CITY C

Re: Newbie question about highlighting rows

2006-07-25 Thread Sacha Michel Mallais
On Jul 25, 2006, at 7:13 AM, Chip Myers wrote: I'm currently generating a series of rows within a WORepetition. The best way to show the structure is as follows: SELECT PERSON ACITY ASTATE A SELECT PERSON BCITY BSTATE B

Re: Newbie question about highlighting rows

2006-07-25 Thread Chip Myers
: JDBCChannel method failed to update (Kieran Kelleher) 3. EOObjectNotAvailableException (Watkins, Garry) 4. Re: EOObjectNotAvailableException (Ken Anderson) 5. RE: EOObjectNotAvailableException (Watkins, Garry) 6. Re: Newbie question about highlighting rows (

Re: Newbie question about highlighting rows

2006-07-25 Thread Chip Myers
Thanks, that worked fantastically! ___ 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:

Re: Newbie question about highlighting rows

2006-07-25 Thread Sacha Michel Mallais
On Jul 25, 2006, at 12:48 PM, Guido Neitzer wrote: On 25.07.2006, at 17:54 Uhr, Sacha Michel Mallais wrote: Then, inside the repetition, modify the tr tag to be tr WEBOBJECT NAME=HighlightConditionalstyle=background: grey;/ WEBOBJECT, where HighlightConditional is a WOConditional bound to

Re: Newbie question about highlighting rows

2006-07-25 Thread Guido Neitzer
On 25.07.2006, at 21:58 Uhr, Sacha Michel Mallais wrote: Yeah, it looks strange but is perfectly allowed (remember that WO tags and HTML tags are two different beasts...). Right. I know that. But I don't like it ... ;-) It's the look that disturbs me. As I normally don't use WO Builder at

Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Chip Myers
I'm currently displaying a list of objects in a WORepetition, with each object having a WORadioButton displayed beside it. Once the list finishes generating, I display 2 hyperlinks, edit and delete, whose operations can then be performed on any one object in the list. Within the WORepetition,

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Sacha Michel Mallais
On Jul 19, 2006, at 8:38 AM, Chip Myers wrote: I'm currently displaying a list of objects in a WORepetition, with each object having a WORadioButton displayed beside it. Once the list finishes generating, I display 2 hyperlinks, edit and delete, whose operations can then be performed on

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Jerry W. Walker
Hi, Chip, I will often embed the Object's display string in a WOHyperlink for editing the object and add a WOHyperlink for Delete beside it in the list. When the user clicks on either link, you have immediate access to the bound item from the list. This also allows the user to perform

Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Chip Myers
Actually, my objective is to NOT generate a button beside each object, but to have one row of buttons located below my list of objects. Thus, I'm still having the same problem capturing the selected objectItem to pass to a method that my "Edit" button calls. Because the entire objectList is

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Jerry W. Walker
Hi, Chip, First, you want to use the name/selection/value bindings of the WORadioButton. The name binding must be identical for all the WORadioButtons to function as a group. Use the object bound to the WORepetition's item binding to create a unique identifiable value to set the value

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Jean-François Veillette
Chip, try to capture selected/unselected as part of 'takeValueFromRequest' of your component. One way to do is to use a selection method like this : Object myItem; // this is your item of your repetition NSMutableDictionary itemSelected; // probably instantiated in your constructor, cleard as

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Randy Wigginton
Chip, this is pretty easy. Implement a set method that adds the item into a vector (or NSArray) for buttons. On Jul 19, 2006, at 1:17 PM, Chip Myers wrote: Actually, my objective is to NOT generate a button beside each object, but to have one row of buttons located below my list of

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Jean-François Veillette
sorry, I should read myself before sending it to the list ... try to capture selected/unselected as part of 'takeValueFromRequest' of your component. One way to do is to use a selection method like this : Object myItem; // this is the item of the repetition NSMutableDictionary itemSelection;

Re: WO Newbie Question.

2006-06-12 Thread logan . allred
Mike wrote on 06/07/2006 11:39:23 PM: Hi Guys, I haven't touched WO in a few years. But I got a problem at work that in my mind just screams for WO D2W. So I managed to convince my boss that it's worth at least a prototype. But he ain't going to let me have a Mac just yet, so I'm looking

RE : WO Newbie Question.

2006-06-08 Thread ashenshugar62-wo
Hello I do not arrive has to load the synonyms for Oracle in EOmodeler. I have already tried: http://docs.info.apple.com/article.html?artnum=75219 Have you an idea? I use: - Windows XP - WebObjects 5.2.4 Eric __ Do You Yahoo!? En finir

RE : WO Newbie Question.

2006-06-08 Thread ashenshugar62-wo
Excuse me an error --- Mike Little [EMAIL PROTECTED] a écrit : Hi Guys, I haven't touched WO in a few years. But I got a problem at work that in my mind just screams for WO D2W. So I managed to convince my boss that it's worth at least a prototype. But he ain't going to let me have a

Re: WO Newbie Question.

2006-06-08 Thread Art Isbell
On Jun 7, 2006, at 7:39 PM, Mike Little wrote: But I got a problem at work that in my mind just screams for WO D2W. So I managed to convince my boss that it's worth at least a prototype. But he ain't going to let me have a Mac just yet, so I'm looking at using 5.2.4 on Windows. The WO

newbie question regarding WOPopUp

2006-05-30 Thread Timmy
WOList: I'm adding a WOPopUp element to a search page I am creating. I am manually creating the NSArray with String values that will populate the pop-up rather than using EO's. I am building my list like so: NSArray buildingList = new NSArray(new Object[] {Building One,Building

Re: newbie question regarding WOPopUp

2006-05-30 Thread Pierce T. Wetter III
On May 30, 2006, at 11:15 AM, Timmy wrote: WOList: I'm adding a WOPopUp element to a search page I am creating. I am manually creating the NSArray with String values that will populate the pop-up rather than using EO's. I am building my list like so: NSArray buildingList = new

Re: newbie question regarding WOPopUp

2006-05-30 Thread Timmy
Pierce, Thanks for the tip. When I bind my selectedBuilding variable to value I actually get null in my DirectAction for request ().formValueForKey(buildingString). So, actually a step back - or I'm doing something else wrong. Here is what my current bindings look like. displayString

Re: newbie question regarding WOPopUp

2006-05-30 Thread Pierce T. Wetter III
On May 30, 2006, at 11:45 AM, Timmy wrote: Pierce, Thanks for the tip. When I bind my selectedBuilding variable to value I actually get null in my DirectAction for request ().formValueForKey(buildingString). So, actually a step back - or I'm doing something else wrong. Here is what my

Re: newbie question regarding WOPopUp

2006-05-30 Thread wojingo
Hi, I dont use direct actions much, but from memory you use the selectedValue on a WOPopUpButton with DirectActions. There is a document called WO Dynamic Element reference that lists the pupose of the bindings for the Dynamic Elements. cheers, - shaun Pierce T. Wetter III wrote: On

Newbie question WebObjects and PostgresQL

2006-02-22 Thread Luc Potron
Title: Newbie question WebObjects and PostgresQL Hi, Im about starting a project using WebObjects. The database choice has not yet been made. I was wandering if its possible to use PostgresQL together with WebObjects? In the WebObjects documentation, PostgresQL is not listed. Could someone

Re: Newbie question WebObjects and PostgresQL

2006-02-22 Thread WebObjects
Title: Re: Newbie question WebObjects and PostgresQL Typically any database, for the most part, that supports JDBC will support EOModeler. The mfgrs web site does list their support of this connection: http://www.postgresql.org/docs/7/static/jdbc.htm Ive never used this dbase before myself

Re: Newbie question WebObjects and PostgresQL

2006-02-22 Thread Miguel Arroz
Hi! You can use the PostgreSQL plugin that comes bundled with Project Wonder. Yours Miguel Arroz On 2006/02/22, at 14:53, Luc Potron wrote: Hi, I’m about starting a project using WebObjects. The database choice has not yet been made. I was wandering if it’s possible to use

Re: Newbie question WebObjects and PostgresQL

2006-02-22 Thread WebObjects
Title: Newbie question WebObjects and PostgresQL Hello, Yes you can use it. I love PostgresSQL with WO. You will face the following problems, dont get panic :) 1. you cant import relationships in the DB to EOModeler. This could be a feature :) no need for relations in the DB. keep your

Newbie question, please help with WOPopupButton

2005-12-04 Thread Jan Verrept
I've made a Class "Language" containing two vars "language" and "languageCode" of type StringIn Session I create and populate an NSMutableArray "languages" of type "Language"IN SessionI create a var "language" of type LanguageIn Session I create a var "languageCodeToStore" of type String (the goal

Re: Newbie question - Return Date from Calendar

2005-11-23 Thread Jerry W. Walker
I agree with Art, use a JavaScript calendar. I haven't tried the one he recommended, but for a second recommendation, we have a couple applications that use Softricks Popup Date Picker Calendar Script. It's freeware for personal use, needs a license for commercial use.

Re: Newbie question - Return Date from Calendar

2005-11-22 Thread csengbusch
webobjects-dev@lists.apple.com | | cc: | | Subject: Re: Newbie question - Return Date from Calendar

Re: Newbie question - Return Date from Calendar

2005-11-22 Thread David LeBer
On 22-Nov-05, at 11:34 AM, [EMAIL PROTECTED] wrote I am using a wohyperlink to open a new browser window that displays a calendar (one month only). I would like the user to select a date (wohyperlink) from the calendar and return the selected date to referring page. There

Newbie question - Return Date from Calendar

2005-11-17 Thread csengbusch
Hi All - I am using a wohyperlink to open a new browser window that displays a calendar (one month only). I would like the user to select a date (wohyperlink) from the calendar and return the selected date to referring page. Currently I set a String variable in the session that collects the

Newbie Question about Assistant request for URL

2005-11-16 Thread David Howes
HI All, I was going through the Admissions tutorial in the WebObjects Java Client Programming Guide on Xcode 2.1, with the WebObjects Direct to Java Client Application (Three Tier) Project Template. The guide says to open Assistant from the Tools menu, but it wasn't there. I opened