Re: trying to get a Fetch Specification - Distinct Categories working on a WOPopupButton

2013-11-03 Thread Theodore Petrosky
gt; Specific Attributes as raw rows and have only the category attribute > selected. I am linking that to my NewCategoryPop WOPopUpButton through the > class property distinctCategories. I need this drop down to represent the > newcategory property in my form below. It seems that th

trying to get a Fetch Specification - Distinct Categories working on a WOPopupButton

2013-11-03 Thread Thomas Peters
Hi All, I created a Fetch Specification named 'DistinctCategories' in my Movie EO, and have select the Distinct rows option. I also have it set to return Specific Attributes as raw rows and have only the category attribute selected. I am linking that to my NewCategoryPop WOP

Re: WOPopUpButton not working on ipad

2012-08-08 Thread Jake Bearkley
e: > >> >> On 05/08/2012, at 10:38 PM, Jake Bearkley wrote: >> >> Hi All, >> >> I have a WOForm with multiple select which includes a WOPopUpButton >> >> It works fine in web browsers, but not on the ipad. >> >> Other WOPopUpButtons app

Re: WOPopUpButton not working on ipad

2012-08-08 Thread Jake Bearkley
> Hi All, > > I have a WOForm with multiple select which includes a WOPopUpButton > > It works fine in web browsers, but not on the ipad. > > Other WOPopUpButtons appear to work fine on the ipad, just not this one. > > When a button is pressed, html content based on the popup

Re: WOPopUpButton not working on ipad

2012-08-05 Thread Q
On 05/08/2012, at 10:38 PM, Jake Bearkley wrote: > Hi All, > > I have a WOForm with multiple select which includes a WOPopUpButton > > It works fine in web browsers, but not on the ipad. > > Other WOPopUpButtons appear to work fine on the ipad, just not this one.

WOPopUpButton not working on ipad

2012-08-05 Thread Jake Bearkley
Hi All, I have a WOForm with multiple select which includes a WOPopUpButton It works fine in web browsers, but not on the ipad. Other WOPopUpButtons appear to work fine on the ipad, just not this one. When a button is pressed, html content based on the popup button selected is displayed lower

Re: Re: WOPopUpButton - Refresh another > WOPopUpButton onChange

2011-06-24 Thread naneon . raymond
Hi Theo, Gotcha. Thanks a lot Message du : 24/06/2011 De : "Theodore Petrosky " A : webobjects-dev@lists.apple.com, naneon.raym...@neuf.fr Copie à : Sujet : Re: WOPopUpButton - Refresh another > WOPopUpButton onChange

Re: WOPopUpButton - Refresh another > WOPopUpButton onChange

2011-06-24 Thread Theodore Petrosky
t for any number of WOPopUps that I want to be > dependent on each other.  Ted  > http://services.wocommunity.org/apps/WebObjects/AjaxExample   -- > >  > Message: 3 > Date: Fri, 24 Jun 2011 > 11:46:22 +0200 (CEST) > From: naneon.raym...@neuf.f

Re: WOPopUpButton - Refresh another WOPopUpButton

2011-06-24 Thread Theodore Petrosky
- > > Message: 3 > Date: Fri, 24 Jun 2011 11:46:22 +0200 (CEST) > From: naneon.raym...@neuf.fr > Subject: WOPopUpButton - Refresh another WOPopUpButton > onChange > To: WebObjects webobjects-dev > Message-ID: > > Hi, > > > I have a l

[RESOLVED]Re: Re: WOPopUpButton - Refresh another WOPopUpButton onChange

2011-06-24 Thread naneon . raymond
Thanks a lot, You guys you rock. Envoyé depuis SFR Mail. 10 Go de stockage - en savoir plus. Message du : 24/06/2011 De : "Pascal Robert " A : "Paul D Yu" Copie à : naneon.raym...@neuf.fr, webobjects-dev@lists.apple.com Sujet

Re: WOPopUpButton - Refresh another WOPopUpButton onChange

2011-06-24 Thread Pascal Robert
riode.niveaux ) >> >> Ray >> >> >> >> Message du : 24/06/2011 >> De : "Paul D Yu " >> A : "naneon.raym...@neuf.fr" >> Copie à : webobjects-dev@lists.apple.com >> Sujet : Re: WO

Re: WOPopUpButton - Refresh another WOPopUpButton onChange

2011-06-24 Thread Paul D Yu
t list = periode.niveaux ) > > Ray > > > > Message du : 24/06/2011 > De : "Paul D Yu " > A : "naneon.raym...@neuf.fr" > Copie à : webobjects-dev@lists.apple.com > Sujet : Re: WOPopUpButton -

Re: Re: WOPopUpButton - Refresh another WOPopUpButton onChange

2011-06-24 Thread naneon . raymond
esh niveau list (list = niveaux not list = periode.niveaux ) Ray Message du : 24/06/2011 De : "Paul D Yu " A : "naneon.raym...@neuf.fr" Copie à : webobjects-dev@lists.apple.com Sujet : Re: WOPopUpButton - Refresh another WOP

Re: WOPopUpButton - Refresh another WOPopUpButton onChange

2011-06-24 Thread Paul D Yu
n of parameters by WOPupUpButton. > But the problem is when I do the 1st search (1st fetch) there are no problem > but when I want to do another search and I select another parameter in the > WOPopUpButton which refresh the second one, the display page refresh all > datas (do the fetch(

Re: WOPopUpButton - Refresh another WOPopUpButton onChange

2011-06-24 Thread naneon . raymond
parameter in the WOPopUpButton which refresh the second one, the display page refresh all datas (do the fetch(1st search) I done before) and then update parameter of second WOPopUpButton. It makes my apps slow. Here is exemple of codes : in html : Pop 1 Pop 2, data depends to Pop1

WOPopUpButton - Refresh another WOPopUpButton onChange

2011-06-24 Thread naneon . raymond
Hi, I have a little problem on my apps. When I want to search something, I do selection of parameters by WOPupUpButton. But the problem is when I do the 1st search (1st fetch) there are no problem but when I want to do another search and I select another parameter in the WOPopUpButton which

Re: WOPopupButton

2010-07-08 Thread Amiel Montecillo
Hi Jeremy, You need to pass the bindings of you WOPopupButton and WOTextField to your next page. For example using inline bindings: public Object selectedNumber; public String name; Then on the submit action: public page1 goToAnotherComponent() { page1 nextPage = (page1

WOPopupButton

2010-07-08 Thread Jeremy Doseck
Hi, I am having some problems with simple Form where couple of WOPopupButtons and WOTextFields are in. I guess it must be quite simple, I need those data to be viewed in the next page (nextpage.wo) when they are selected (PopUpButton) and inserted (Textfield) and finally processed with Button by th

Re: WOPopUpButton

2010-03-30 Thread David Holt
Thanks Chuck, On 30-Mar-10, at 2:23 PM, Chuck Hill wrote: On Mar 30, 2010, at 2:18 PM, David Holt wrote: Hi all, A WOPopUpButton I have in a project converted from WO 5.3.3 to WO 5.4.3 is no longer displaying the selected value when there is one. It always shows the noSelectionString

Re: WOPopUpButton

2010-03-30 Thread Chuck Hill
On Mar 30, 2010, at 2:18 PM, David Holt wrote: Hi all, A WOPopUpButton I have in a project converted from WO 5.3.3 to WO 5.4.3 is no longer displaying the selected value when there is one. It always shows the noSelectionString even though the value has been set in the database. Is this

WOPopUpButton

2010-03-30 Thread David Holt
Hi all, A WOPopUpButton I have in a project converted from WO 5.3.3 to WO 5.4.3 is no longer displaying the selected value when there is one. It always shows the noSelectionString even though the value has been set in the database. Is this expected behaviour? Is there a way around this

Re: WOPopUpButton Defaults

2009-07-17 Thread Joe Kramer
On Fri, Jul 17, 2009 at 4:19 PM, Chuck Hill >> wrote: >> Hi Joe, >> >> >> >> On Jul 17, 2009, at 3:10 PM, Joe Kramer wrote: >> >> Hi everyone, >> >> I have a WOPopUpButton that displays a default value automatically and its >> select

Re: WOPopUpButton Defaults

2009-07-17 Thread Chuck Hill
rApps, Inc. On Fri, Jul 17, 2009 at 4:19 PM, Chuck Hill village.net> wrote: Hi Joe, On Jul 17, 2009, at 3:10 PM, Joe Kramer wrote: Hi everyone, I have a WOPopUpButton that displays a default value automatically and its selection binding is bound to a private variable with getters and

Re: WOPopUpButton Defaults

2009-07-17 Thread Joe Kramer
3:10 PM, Joe Kramer wrote: > > Hi everyone, >> >> I have a WOPopUpButton that displays a default value automatically and its >> selection binding is bound to a private variable with getters and setters. >> I'm wondering if there is any easy way to force a call to

Re: WOPopUpButton Defaults

2009-07-17 Thread Chuck Hill
Hi Joe, On Jul 17, 2009, at 3:10 PM, Joe Kramer wrote: Hi everyone, I have a WOPopUpButton that displays a default value automatically and its selection binding is bound to a private variable with getters and setters. I'm wondering if there is any easy way to force a call t

WOPopUpButton Defaults

2009-07-17 Thread Joe Kramer
Hi everyone, I have a WOPopUpButton that displays a default value automatically and its selection binding is bound to a private variable with getters and setters. I'm wondering if there is any easy way to force a call to the setter method even if the pop up is left on the default value? T

Re: WOPopUpButton not working ?? or im stupid!

2009-06-12 Thread Gustavo Adolfo Pizano
, which I told EOModel to don't allow. I realize then that the WOPopUpButton is not putting anything in the selectedValue bind.. I then did a small test app, with 2 WOPopUpButtons, form 2 NSArray as lists , with item and selectedValue to a String bind. all that in a WOForm, t

WOPopUpButton not working ?? or im stupid!

2009-06-12 Thread Gustavo Adolfo Pizano
ok I got tired of this problem Im having with this app. When Im submitting the form and want to savechanges it jsut blow up becuase it has null relationships, which I told EOModel to don't allow. I realize then that the WOPopUpButton is not putting anything in the selectedValue bind.

wopopupbutton selection not updating in model ???

2009-05-13 Thread Theodore Petrosky
x27;t get saved. here are the popupbutton's HTML section: Category SubCategory and the WOD CategoryPopUpEE : WOPopUpButton { list = cCListForPopup; id = "categoryEEPopUpID"; displayString = categoryObjectForPopUp.categoryTitle; item = categoryObjectForPopUp; selec

Re: WOPopUpButton and noSelectionString = "" under WO 5.4.3

2009-04-23 Thread Ricardo J. Parada
I that fix in the nightly build of WO? :-) On Apr 23, 2009, at 9:22 PM, Mike Schrag wrote: fixed On Apr 23, 2009, at 9:07 PM, Chuck Hill wrote: On Apr 23, 2009, at 5:58 PM, Ricardo J. Parada wrote: I have some pop-up lists where I use noSelectionString = "" (i.e. an empty string). U

Re: WOPopUpButton and noSelectionString = "" under WO 5.4.3

2009-04-23 Thread Chuck Hill
But still vexing when converting projects to 5.4. :-) Vexed, Chuck On Apr 23, 2009, at 6:22 PM, Mike Schrag wrote: fixed On Apr 23, 2009, at 9:07 PM, Chuck Hill wrote: On Apr 23, 2009, at 5:58 PM, Ricardo J. Parada wrote: I have some pop-up lists where I use noSelectionString = "" (i.

Re: WOPopUpButton and noSelectionString = "" under WO 5.4.3

2009-04-23 Thread Mike Schrag
fixed On Apr 23, 2009, at 9:07 PM, Chuck Hill wrote: On Apr 23, 2009, at 5:58 PM, Ricardo J. Parada wrote: I have some pop-up lists where I use noSelectionString = "" (i.e. an empty string). Under WO 5.3.3, if the selection was null then the pop-up would display an empty entry and appe

Re: WOPopUpButton and noSelectionString = "" under WO 5.4.3

2009-04-23 Thread Chuck Hill
On Apr 23, 2009, at 5:58 PM, Ricardo J. Parada wrote: I have some pop-up lists where I use noSelectionString = "" (i.e. an empty string). Under WO 5.3.3, if the selection was null then the pop-up would display an empty entry and appear selected. Now, under 5.4.3 that no longer seems t

WOPopUpButton and noSelectionString = "" under WO 5.4.3

2009-04-23 Thread Ricardo J. Parada
I have some pop-up lists where I use noSelectionString = "" (i.e. an empty string). Under WO 5.3.3, if the selection was null then the pop- up would display an empty entry and appear selected. Now, under 5.4.3 that no longer seems to work. If I bind an empty string to noSelectionString

WOPopUpButton DirectActions

2008-10-08 Thread Awbrey Hughlett
I want to pass values from a WOPopUpButton and a text field to a search page using a direct action. "Main" is the component holding the form whose bindings are: directActionName = "search", and actionClass = "DirectAction". My direct action: publi

Re: wopopupbutton and selection

2008-08-23 Thread David LeBer
On 23-Aug-08, at 3:56 PM, [EMAIL PROTECTED] wrote: Thanks... this was enough for me to google and find a solution.. I added: onChange = "javascript:this.form.submit();" to the WOD definition and it works great. I guess I was 'assuming' that it woul act like a cocoa app., ie when the popu

Re: wopopupbutton and selection

2008-08-23 Thread tedpet5
Thanks... this was enough for me to google and find a solution.. I added: onChange = "javascript:this.form.submit();" to the WOD definition and it works great. I guess I was 'assuming' that it woul act like a cocoa app., ie when the popup changed it would notify the app and I didn't have to 'do'

Re: wopopupbutton and selection

2008-08-22 Thread Guido Neitzer
On 22.08.08 13:53, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I am having a problem with a popupbutton. Here is my html: > > > > > > selection = "$selectedManufacturer" displayString = > "$listItem.manufacturerName" noSelectionString = "No Manufacturer Selected" /> > > > How do yo

Re: wopopupbutton and selection

2008-08-22 Thread Mike Schrag
"$listItem" selection = "$selectedManufacturer" displayString = "$listItem.manufacturerName" noSelectionString = "No Manufacturer Selected" /> uhh .. where is this form submitted? ms ___ Do not post admin requests to the list. They will

wopopupbutton and selection

2008-08-22 Thread tedpet5
I am having a problem with a popupbutton. Here is my html: it is picking up the list of items from my postgresql backend just fine, however when I change the popup on a web page the selection object doesn't change. I am using he "AjaxExample" as the example here is the pertinen

Re: WO5.4 WOPopupButton wanting formatter

2008-07-28 Thread Chuck Hill
.java:1354) at com .webobjects .appserver.WOComponent.takeValueForKey(WOComponent.java:1748) Any suggestions? File a bug if this is a change from 5.3.3: bugreport.apple.com. A lot has changed on WOPopupButton. Try making the list it is bound to a list of Integers instead of a list

Re: WO5.4 WOPopupButton wanting formatter

2008-07-19 Thread Lachlan Deck
lot has changed on WOPopupButton. Try making the list it is bound to a list of Integers instead of a list of strings. Chuck ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@l

Re: WO5.4 WOPopupButton wanting formatter

2008-07-18 Thread Shelley Eitzen
File a bug if this is a change from 5.3.3: bugreport.apple.com. A lot has changed on WOPopupButton. Try making the list it is bound to a list of Integers instead of a list of strings. Chuck ___ Do not post admin requests to the list. Th

Re: WO5.4 WOPopupButton wanting formatter

2008-07-18 Thread Chuck Hill
at com .webobjects.appserver.WOComponent.takeValueForKey(WOComponent.java: 1748) Any suggestions? File a bug if this is a change from 5.3.3: bugreport.apple.com. A lot has changed on WOPopupButton. Try making the list it is bound to a list of Integers instead of a list of strings. Chuck -- Practical

WO5.4 WOPopupButton wanting formatter

2008-07-17 Thread Shelley Eitzen
Hi All, We have just upgraded to WO5.4. When the app is run, we have component we use for date entry with 3 popups for year, month and day.The component can not be displayed and gives the following error java.lang.IllegalArgumentException: While trying to set the field "aDay" on an object o

Re: WOPopUpButton queston/Setting relationships in WO

2008-03-24 Thread Gustavo Pizano
eck it tomorrow. Thanks Guys TTU tomorrow Gus On Mar 23, 2008, at 10:58 PM, Lachlan Deck wrote: On 24/03/2008, at 2:48 PM, Gustavo Pizano wrote: OH NO NO NO I was wrong I can't do that. in the _Person EO, the name() will return me the name of the current instance.. hehehe

Re: WOPopUpButton queston

2008-03-23 Thread Gustavo Pizano
urn me the name of the current instance.. hehehe What I meant was you can do this: PopUpButton : WOPopUpButton { list = studyLevelOptions; item = studyLevelItem; displayString = studyLevelItem.name; noSelectionString = "--" ; selection =

Re: WOPopUpButton queston

2008-03-23 Thread Lachlan Deck
On 24/03/2008, at 2:48 PM, Gustavo Pizano wrote: OH NO NO NO I was wrong I can't do that. in the _Person EO, the name() will return me the name of the current instance.. hehehe What I meant was you can do this: PopUpButton : WOPopUpButton { list = studyLevelOptions;

Re: WOPopUpButton queston

2008-03-23 Thread Art Isbell
On Mar 23, 2008, at 5:45 PM, Gustavo Pizano wrote: I hadn't think about hwat you said, but you definelty right, I can get rid o the getters and setters off, I will only need a Person attribute, When surprises occur, I have found that I need to be able to debug when an attribute's value i

Re: WOPopUpButton queston

2008-03-23 Thread Gustavo Pizano
wrote: private StudyLevel studyLevel; unless you've got a public getter the above should be public. studies = StudyLevel.fetchAllStudyLevels(session().defaultEditingContext()); PopUpButton : WOPopUpButton { list = studies; item = studyLevel; displayString = studyLevel.name; noSelec

Re: WOPopUpButton queston

2008-03-23 Thread Gustavo Pizano
x27;ve got a public getter the above should be public. studies = StudyLevel.fetchAllStudyLevels(session().defaultEditingContext()); PopUpButton : WOPopUpButton { list = studies; item = studyLevel; displayString = studyLevel.name; noSelectionString = "--" ; } so I will

Re: WOPopUpButton queston

2008-03-23 Thread Lachlan Deck
Hi Gustavo, On 23/03/2008, at 2:32 PM, Gustavo Pizano wrote: private StudyLevel studyLevel; unless you've got a public getter the above should be public. studies = StudyLevel.fetchAllStudyLevels(session().defaultEditingContext()); PopUpButton : WOPopUpButton { list = studies;

Re: WOPopUpButton queston

2008-03-23 Thread Gustavo Pizano
Hello I now which one, I made a trial and error and now i know wich one should I use for the WOPopupButton. , but for the other stuff, the one how to show 1000+ specialities Im open to hear opinions. Gus On Mar 22, 2008, at 10:32 PM, Gustavo Pizano wrote: Hello, well in the form im

WOPopUpButton queston

2008-03-22 Thread Gustavo Pizano
Hello, well in the form im creating Im generating a popUpbutton from the db, I manage to do it with the following private StudyLevel studyLevel; studies = StudyLevel.fetchAllStudyLevels(session().defaultEditingContext()); PopUpButton : WOPopUpButton { list = studies; item = studyLevel

Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Dawn Lockhart
-) Just another thing to check. > > John > > On Feb 27, 2008, at 4:57 PM, Dawn Lockhart wrote: > >> Didn't know about the noSelectionString either. So I added it and it >> is not >> returning null for me, it is returning the first item in the >> WOPopupBu

Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread John Larson
ve your submit button and the popup button in the same form :-) Just another thing to check. John On Feb 27, 2008, at 4:57 PM, Dawn Lockhart wrote: Didn't know about the noSelectionString either. So I added it and it is not returning null for me, it is returning the first item in

Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Dawn Lockhart
Didn't know about the noSelectionString either. So I added it and it is not returning null for me, it is returning the first item in the WOPopupButton. Could this be because right now I only have one item and once I add more then it will return

Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Susanne Schneider
Hi Archibald, don't you mean the "noSelectionString"? Just set this binding to a string like "- please select a value -" or anything similar. No further hassling necessary ;-) HTH Susanne -- Susanne Schneider Coordinator secuSuite Development iAS interActive Systems GmbH Dieffenbachstraße 33

Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Archibal Singleton
On 27 Feb 2008, at 12:01, Mike Schrag wrote: So I'm curious to know how you guys deal with this "problem"? Not sure if I'm reading this correctly, but you should be able to just set noSelectionString = "Select a Person" (or whatever) ... When noSelectionString is submitted, it binds back to

Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread George Domurot
r with a list of options, using a WOPopUpButton. Typically those options are some kind of EO. By default, the first time the list is presented, the selected (ideally the first item on the list) option would a *place holder* to indicate that no actual option is selected. Now my questio

Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Mike Schrag
So I'm curious to know how you guys deal with this "problem"? Not sure if I'm reading this correctly, but you should be able to just set noSelectionString = "Select a Person" (or whatever) ... When noSelectionString is submitted, it binds back to you as a null value. ms

Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread David LeBer
On 27-Feb-08, at 9:53 AM, Archibal Singleton wrote: Hi everybody, I was wondering what would be the best way to solve the following recurring problem: You want to present a user with a list of options, using a WOPopUpButton. Typically those options are some kind of EO. By default, the

Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Archibal Singleton
ons, using a WOPopUpButton. Typically those options are some kind of EO. By default, the first time the list is presented, the selected (ideally the first item on the list) option would a *place holder* to indicate that no actual option is selected. Now my question is how best to implement this? The

Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Archibal Singleton
Hi everybody, I was wondering what would be the best way to solve the following recurring problem: You want to present a user with a list of options, using a WOPopUpButton. Typically those options are some kind of EO. By default, the first time the list is presented, the selected

New WOPopUpButton noSelectionString behavior

2007-12-11 Thread Alexander Spohr
FYI: WOPopUpButton noSelectionString used to allow "" as the empty entry. This does not work any more, the empty String is ignored. You need to fill something in, like " ". atze ps. If you think my documentation-snippeting is futile, please give me a

Re: WOPopUpButton

2007-06-25 Thread Sigurður E. Vilhelmsson
uot;Professor" and "Student" entities can be defined via single-table entity inheritance. The significant thing to realize about the WOPopupButton is that you are selecting an object from a list of objects. The "displayName" binding can decide how the object gets displayed,

Re: WOPopUpButton

2007-06-25 Thread Ray Kiddy
t new tutorial by Janine Sisk. Now I'm starting to experiment on my own. I've gone through most of Apple's materials and Googled my brains out, but a WOPopUpButton has me stomped. I have a model with two tables, Course and Course_description. I have a to-one relationship in the

Re: Java Programming Conventions, was Re: WOPopUpButton

2007-06-25 Thread Ian Joyner
On 22/06/2007, at 7:27 PM, Paul Lynch wrote: On 22 Jun 2007, at 03:39, Eric Robinson wrote: Whether you like it or not, infix caps, or camel case, are part of the Official Code Conventions of the Java Programming Language, seen at http://java.sun.com/docs/codeconv/html/ CodeConventions.doc

Re: WOPopUpButton

2007-06-25 Thread Ian Joyner
On 23/06/2007, at 1:02 AM, Miguel Arroz wrote: Hi! You guys need to learn LaTeX! One of the little cool details is that it actually handles the bigger space after the periods automatically. :) Ah yes, an innovation from another ex-Burroughs programmer! :-) Ian ___

Re: WOPopUpButton

2007-06-25 Thread Ian Joyner
On 23/06/2007, at 12:36 AM, Robert Walker wrote: Interesting (somewhat off-topic) discussion. I just wanted to inject that I've recently been writing some Ruby code, which uses the underscore convention for identifiers. At first it felt really strange using the underscore identifier style

Re: WOPopUpButton

2007-06-23 Thread Jerry W. Walker
Hi, Sigurður, Apple provides a WO project template that includes the Session, Application and DirectAction classes for your customization. These are subclasses, respectively, of WOSession, WOApplication and WODirectAction which are classes defined in the com.webobjects.appserver package i

Re: WOPopUpButton

2007-06-23 Thread Paul Lynch
The method session returns an object of type WOSession; Session is a subclass of WOSession, and so requires a typecast. As you only want to retrieve the editing context with a method defined in WOSession, the cast is not required. Paul On 23 Jun 2007, at 11:23, Sigurður E. Vilhelmsson wro

Re: WOPopUpButton

2007-06-23 Thread Sigurður E. Vilhelmsson
OK, a quick Java lesson required :) What is the difference between the two, i.e. what is the top line trying to do, that the bottom one skips? ec = ((Session)session()).defaultEditingContext() and ec = session().defaultEditingContext() Just trying not to be a code monkey, I want to understand

Re: WOPopUpButton

2007-06-23 Thread Sigurður E. Vilhelmsson
It's in my application. I figured it was calling Session.java in the default package. Sigurdur 2007/6/22, Steven Mark McCraw <[EMAIL PROTECTED]>: Is your code in a framework, or in your application? If it is in a framework, chances are good that the code will not compile because it knows noth

Re: Java Programming Conventions, was Re: WOPopUpButton

2007-06-22 Thread Lachlan Deck
On 22/06/2007, at 7:27 PM, Paul Lynch wrote: On 22 Jun 2007, at 03:39, Eric Robinson wrote: Whether you like it or not, infix caps, or camel case, are part of the Official Code Conventions of the Java Programming Language, seen at http://java.sun.com/docs/codeconv/html/ CodeConventions.doc

Re: WOPopUpButton

2007-06-22 Thread Miguel Arroz
Hi! Are you sure you are including the right include for Session? Anyway, you may write only ec = session().defaultEditingContext(), without the type conversion, because the WOSession superclass has the defaultEditingContext method. Yours Miguel Arroz On 2007/06/22, at 18:15, Sigur

Re: WOPopUpButton

2007-06-22 Thread Steven Mark McCraw
Is your code in a framework, or in your application? If it is in a framework, chances are good that the code will not compile because it knows nothing about a class named Session, which is probably in your application project. There shouldn't be any need to cast session() here anyway. M

Re: WOPopUpButton

2007-06-22 Thread Sigurður E. Vilhelmsson
Sorry to stray back to the original topic :P but I'm getting an error in my java file. I used the code from David: public NSArray allCourseDescription() { EOEditingContext ec = ((Session)session()).defaultEditingContext(); return EOUtilities.objectsForEnt

Re: WOPopUpButton

2007-06-22 Thread Miguel Arroz
Hi! You guys need to learn LaTeX! One of the little cool details is that it actually handles the bigger space after the periods automatically. :) Yours Miguel Arroz On 2007/06/22, at 13:56, Ken Anderson wrote: I always type 2 spaces after a period. I thought everyone did! On Jun 2

Re: WOPopUpButton

2007-06-22 Thread Ken Anderson
Someone should tell the guy who wrote the Blackberry editor - if I type 2 spaces, it automatically puts in a period and capitalizes the next letter I type :) Ken On Jun 22, 2007, at 10:37 AM, Jerry W. Walker wrote: Hi, Ken, One space has traditionally been used in typography for a couple

Re: WOPopUpButton

2007-06-22 Thread Jerry W. Walker
Hi, Ken, One space has traditionally been used in typography for a couple reasons, not the least of which was that putting two spaces between sentences tended to overly widen the space between sentences after text justification (sometimes referenced as "rivers of white"). Typewriters used

Re: WOPopUpButton

2007-06-22 Thread Robert Walker
Interesting (somewhat off-topic) discussion. I just wanted to inject that I've recently been writing some Ruby code, which uses the underscore convention for identifiers. At first it felt really strange using the underscore identifier style. However, I very quickly came to prefer it. It

Re: WOPopUpButton

2007-06-22 Thread David LeBer
On 22-Jun-07, at 8:56 AM, Ken Anderson wrote: I always type 2 spaces after a period. I thought everyone did! The Mac is not a typewriter: ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj.

Re: WOPopUpButton

2007-06-22 Thread Ken Anderson
I always type 2 spaces after a period. I thought everyone did! On Jun 22, 2007, at 12:50 AM, Mike Schrag wrote: * Maybe I'm just a troglodyte ... Heck, I still type two spaces after periods most of the time (Note: I went back and took them out on this post :) ). _

Re: WOPopUpButton

2007-06-22 Thread Sigurður E. Vilhelmsson
2007/6/22, Ian Joyner <[EMAIL PROTECTED]>: So the fact that it is a convention should prevent anyone from pointing out that it is a bad convention? Methinks this emperor has no clothes! Hi all, I want to thank David for his help. I'm going to play around with his example today and I'm sure t

Java Programming Conventions, was Re: WOPopUpButton

2007-06-22 Thread Paul Lynch
On 22 Jun 2007, at 03:39, Eric Robinson wrote: Whether you like it or not, infix caps, or camel case, are part of the Official Code Conventions of the Java Programming Language, seen at http://java.sun.com/docs/codeconv/html/ CodeConventions.doc8.html#367 . I hadn't seen that arrangement o

Re: WOPopUpButton

2007-06-21 Thread Ian Joyner
So the fact that it is a convention should prevent anyone from pointing out that it is a bad convention? Methinks this emperor has no clothes! On 22/06/2007, at 3:49 PM, Timmy wrote: On Jun 21, 2007, at 9:11 PM, Ian Joyner wrote: On 22/06/2007, at 12:39 PM, Eric Robinson wrote: On Jun 2

Re: WOPopUpButton

2007-06-21 Thread Timmy
On Jun 21, 2007, at 9:11 PM, Ian Joyner wrote: On 22/06/2007, at 12:39 PM, Eric Robinson wrote: On Jun 21, 2007, at 7:29 PM, Ian Joyner wrote: On 22/06/2007, at 6:43 AM, David LeBer wrote: On 21-Jun-07, at 2:15 PM, Sigurður E. Vilhelmsson wrote: I figure I need to build an NSArray and pop

Re: WOPopUpButton

2007-06-21 Thread Ian Joyner
On 22/06/2007, at 2:50 PM, Mike Schrag wrote: * Maybe I'm just a troglodyte ... Heck, I still type two spaces after periods most of the time (Note: I went back and took them out on this post :) ). Thank heavens for that. So you admit you do like horizontal space. I can (uncharacterist

Re: WOPopUpButton

2007-06-21 Thread Mike Schrag
In the end, camel case isn't that bad, and it makes you a good citizen. Swallow your pride and getOverIt. It's the other way around actually. CamelCase is spurned by typographers for good reason. I guess Lemmings must be really good citizens. I'd rather think different, nothing to do with

Re: WOPopUpButton

2007-06-21 Thread Ian Joyner
On 22/06/2007, at 12:39 PM, Eric Robinson wrote: On Jun 21, 2007, at 7:29 PM, Ian Joyner wrote: On 22/06/2007, at 6:43 AM, David LeBer wrote: On 21-Jun-07, at 2:15 PM, Sigurður E. Vilhelmsson wrote: I figure I need to build an NSArray and populate it with the values from the Course_descrip

Re: WOPopUpButton

2007-06-21 Thread Eric Robinson
On Jun 21, 2007, at 7:29 PM, Ian Joyner wrote: On 22/06/2007, at 6:43 AM, David LeBer wrote: On 21-Jun-07, at 2:15 PM, Sigurður E. Vilhelmsson wrote: I figure I need to build an NSArray and populate it with the values from the Course_description table and then use that to populate the cours

Re: WOPopUpButton --> style

2007-06-21 Thread Lachlan Deck
On 22/06/2007, at 9:29 AM, Ian Joyner wrote: On 22/06/2007, at 6:43 AM, David LeBer wrote: On 21-Jun-07, at 2:15 PM, Sigurður E. Vilhelmsson wrote: I figure I need to build an NSArray and populate it with the values from the Course_description table and then use that to populate the course_d

Re: WOPopUpButton

2007-06-21 Thread Ian Joyner
On 22/06/2007, at 6:43 AM, David LeBer wrote: On 21-Jun-07, at 2:15 PM, Sigurður E. Vilhelmsson wrote: I figure I need to build an NSArray and populate it with the values from the Course_description table and then use that to populate the course_descriptionID in the Course table, but exactly h

Re: WOPopUpButton

2007-06-21 Thread David LeBer
urseDescription"); } Your .wod would look something like this: CourseDescPopup: WOPopupButton { list = allCourseDescription; item = courseDescriptionItem; displayString = courseDescription Item.name; selection = selectedCourseDescription; } -- ;david -- Da

WOPopUpButton

2007-06-21 Thread Sigurður E. Vilhelmsson
ment on my own. I've gone through most of Apple's materials and Googled my brains out, but a WOPopUpButton has me stomped. I have a model with two tables, Course and Course_description. I have a to-one relationship in the Course table, called course_descriptions, with a source attribute

Re: WOPopUpButton issue

2007-05-24 Thread Henrique Prange
g* is converted so..." That is, the escapeHTML option does not have effect on any binding other than displayString. Cheers, Henrique Guilherme melo wrote: cheers , escapeHTML is not working in WOPopUpButton , it is set to false but it does not interpret the html control characters ,

WOPopUpButton issue

2007-05-21 Thread Guilherme melo
cheers , escapeHTML is not working in WOPopUpButton , it is set to false but it does not interpret the html control characters , anyone had something like that happen ?´ thx !! \o/ Guilherme Melo , Moleque de Idéias Educação e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: [EMAIL

Re: WOPopUpButton otherTagString

2007-05-07 Thread David Holt
Hi Miguel, from the DynamicElements reference: The otherTagString Attribute All dynamic elements include an optional attribute, otherTagString, Use this attribute to have the bound string included directly in an element’s HTML tag. Some HTML elements contain parameters that are not key-va

WOPopUpButton otherTagString

2007-05-07 Thread Miguel Arroz
Hi! What does the "otherTagString" binding do? I find it nowhere on the docs. Yours Miguel Arroz "GUERRA E' PAZ LIBERDADE E' ESCRAVIDAO IGNORANCIA E' FORCA" -- 1984 Miguel Arroz http://www.ipragma.com ___ Do not p

  1   2   >