Re: Inline-Bindings, Integer Values

2014-09-15 Thread Thomas Grass
Hi Paul, hi Fabian, thank you both. That worked! The correct way is to make it like $0. Thomas Am 15.09.2014 um 03:09 schrieb Paul Hoadley : > Hi Thomas, > > On 15 Sep 2014, at 5:20 am, Thomas Grass > wrote: > >> How can i tell the inline-bindings that 0 should be

Re: Inline-Bindings, Integer Values

2014-09-14 Thread Paul Hoadley
Hi Thomas, On 15 Sep 2014, at 5:20 am, Thomas Grass wrote: > How can i tell the inline-bindings that 0 should be an Integer and not a > String? I know that it would be possible to add 0 to a int-variable in the > javaclass (f.e. int zero = 0;) and bind it with value=„$zero“ to it.

Re: Inline-Bindings, Integer Values

2014-09-14 Thread Fabian Peters
Hi Thomas, Just a wild guess, have you tried value = "$0"? That's the way inline bindings work for boolean values, e.g. value = "$false". Fabian Am 14.09.2014 um 21:50 schrieb Thomas Grass : > Hi to all, > > what is the right way to bind Integer values wit

Inline-Bindings, Integer Values

2014-09-14 Thread Thomas Grass
Hi to all, what is the right way to bind Integer values with inline bindings? I tried to bind 0 (zero) like this to a radio button: The problem is, that the number „0“ as value is not allowed, because it is in this case a string. The following exception will be displayed: "While tryi

Re: inline bindings and valid...

2010-06-19 Thread Theodore Petrosky
Eclipse Platform Version: 3.5.2.R35x_v20100210-0800-9hEiFzmFst-TiEn9hNYgDWg1XN8ulH_JvCNGB Build id: M20100211-1343 WOLips 3.5.6066 I will check out the warning settings... thanks, Ted --- On Sat, 6/19/10, Mike Schrag wrote: > From: Mike Schrag > Subject: Re: inline bindings and

Re: inline bindings and valid...

2010-06-19 Thread Mike Schrag
nable to verify operator 'sum.amountOfTime // VALID' >> >> >> without the // VALID I get a warning: >> >> Unable to verify operator 'sum.amountOfTime' >> >> It is just a warning, I know... but I thought I was doing something w

Re: inline bindings and valid...

2010-06-19 Thread Farrukh Ijaz
, 6/19/10, Mike Schrag wrote: > >> From: Mike Schrag >> Subject: Re: inline bindings and valid... >> To: "Theodore Petrosky" >> Cc: webobjects-dev@lists.apple.com >> Date: Saturday, June 19, 2010, 7:45 AM >>> > numberformat = "##.##"

Re: inline bindings and valid...

2010-06-19 Thread Theodore Petrosky
Ted --- On Sat, 6/19/10, Mike Schrag wrote: > From: Mike Schrag > Subject: Re: inline bindings and valid... > To: "Theodore Petrosky" > Cc: webobjects-dev@lists.apple.com > Date: Saturday, June 19, 2010, 7:45 AM > > numberformat = "##.##"/> > >

Re: inline bindings and valid...

2010-06-19 Thread Mike Schrag
> numberformat = "##.##"/> ms ___ 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/webobje

inline bindings and valid...

2010-06-19 Thread Theodore Petrosky
Is there a way to mark this line as VALID... with inline bindings... I know I can push it to the WOD and mark it there, but I thought I would ask.. Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev

Re: Inline bindings and WOConditional

2010-02-19 Thread Chuck Hill
On Feb 19, 2010, at 7:46 PM, Pascal Robert wrote: I'm trying to hide some text if an array is empty, so I tried this : "$member.organizationProfiles.isEmpty"> But I'm getting : valueForKey(): lookup of unknown key: 'isEmpty'. This class does not have an instance variable of the name

Re: Inline bindings and WOConditional

2010-02-19 Thread Pascal Robert
It works just fine. @count without checking for > 0 is working too. > In principle, all @ key will be handled by the nsarray class, so you could > try member.organizationprofil...@isempty and see if it work. > > - jfv > > Le 10-02-19 à 22:46, Pascal Robert a écrit : > >> I'm trying to hide som

Re: Inline bindings and WOConditional

2010-02-19 Thread Matthew Ness
> I'm trying to hide some text if an array is empty, so I tried this : > > > > But I'm getting : > > valueForKey(): > lookup of unknown key: 'isEmpty'. This class does not have an instance > variable of the name isEmpty or _isEmpty, nor a method of the name > isEmpty, _isEmpty, getIsEmpty, or _

Re: Inline bindings and WOConditional

2010-02-19 Thread Jean-Francois Veillette
In principle, all @ key will be handled by the nsarray class, so you could try member.organizationprofil...@isempty and see if it work. - jfv Le 10-02-19 à 22:46, Pascal Robert a écrit : I'm trying to hide some text if an array is empty, so I tried this : But I'm getting : valueForKe

Inline bindings and WOConditional

2010-02-19 Thread Pascal Robert
I'm trying to hide some text if an array is empty, so I tried this : But I'm getting : valueForKey(): lookup of unknown key: 'isEmpty'. This class does not have an instance variable of the name isEmpty or _isEmpty, nor a method of the name isEmpty, _isEmpty, getIsEmpty, or _getIsEmpty Wh

Validation Question and inline bindings again

2009-09-08 Thread Chan Yeow Heong, Jerome
I override validationFailedWithException to catch the (throwable t Object value String keyPath) and store them into a page level NSMutableDictionary using keyPath as the key and a custom class to hold the variables t and value. This custom class has isError (returns a true if the keyPath ex

Re: inline bindings and ognl

2009-08-11 Thread Mike Schrag
WOL-930 _is_ the ticket: http://issues.objectstyle.org/jira/browse/WOL-930 On Aug 11, 2009, at 5:12 PM, Sanford Selznick wrote: Hi Mike, Thank you for the insight. :-) ognl looks very powerful. Features like looking at statics could help simplify a lot of programs. Since ognl is able t

Re: inline bindings and ognl

2009-08-11 Thread Sanford Selznick
Hi Mike, Thank you for the insight. :-) ognl looks very powerful. Features like looking at statics could help simplify a lot of programs. Since ognl is able to process statements like these, it would be great to get errors on the compile-time side of the fence. Is there a ticket op

Re: inline bindings and ognl

2009-08-11 Thread Mike Schrag
Yes, a very simple reason -- what you're doing is not supported. What you're describing is requested in WOL-930. you're using a static variable, not a normal binding. If you were using a regular keypath (tag = ~person.firstName + ' ' + person.lastName) it would validate. If you find it odd,

Re: inline bindings and ognl

2009-08-11 Thread Sanford Selznick
Hi Mike, Is there some reason WOLips is not validating my variable names? Do I have to turn that on somehow? (I think I have it on in preferences.) It seems odd that it would validate text operators but not variable names. :-) That is: tag="~...@com.me.bogus._contact@BOGUS_NAME"

Re: inline bindings and ognl

2009-08-11 Thread Mike Schrag
text operators are "ne" "eq", etc .. it validates binding-style keypaths only right now. you want WOL-930 ms On Aug 11, 2009, at 2:02 PM, Sanford Selznick wrote: At 7:11 PM +0200 8/11/09, Johann Werner wrote: Question 3: How do I get the syntax checker to work so I can get compile-time err

Re: inline bindings and ognl

2009-08-11 Thread Sanford Selznick
At 7:11 PM +0200 8/11/09, Johann Werner wrote: Question 3: How do I get the syntax checker to work so I can get compile-time errors with this stuff? Question 4: Auto completion would be cool here too. Can that be enabled somehow? :-) Simple answer: it is not possible (yet). I reported th

Re: inline bindings and ognl

2009-08-11 Thread Johann Werner
Hi Sanford, Am 11.08.2009 um 18:15 schrieb Sanford Selznick: Hello, I'm a little new. I also tried: tag="~...@com.me.product._contact@ENTITY_NAME", which _is_ working. But I would _really_ like to have that syntax checked inside the wod, which is the whole point of using static str

inline bindings and ognl

2009-08-11 Thread Sanford Selznick
Hello, I'm a little new. I would like to access a "final static" string from a class from my wod in a tag, as in: tag="$com.me.product._Contact.ENTITY_NAME" But this always results in a parsing error in WOLips: "There is no com in blah." Question 1: Is this supposed to work? --

Re: MySQL and Generate SQL, and inline bindings problems

2008-10-10 Thread Simon McLean
Yep, I've been living with it - or lumping it really. I started having a look at porting the postgresql plugin a few weeks back but got bored -- er distracted by work. Anyone willing to collaborate on this? I'd be interested in helping out. I can certainly help on the testing front. happ

Re: MySQL and Generate SQL, and inline bindings problems

2008-10-09 Thread David LeBer
On 9-Oct-08, at 10:24 PM, Lachlan Deck wrote: On 06/10/2008, at 4:23 PM, Guido Neitzer wrote: On 05.10.2008, at 17:37, Thomas Worrall wrote: When I go to do Generate SQL for my EOModel, it does not escape the table or field names in backticks (`). Because of this, table names like Order

Re: MySQL and Generate SQL, and inline bindings problems

2008-10-09 Thread Guido Neitzer
On 09.10.2008, at 20:24, Lachlan Deck wrote: Yep, I've been living with it - or lumping it really. I started having a look at porting the postgresql plugin a few weeks back but got bored -- er distracted by work. Anyone willing to collaborate on this? I'm not using MySQL, but overall it's

Re: MySQL and Generate SQL, and inline bindings problems

2008-10-09 Thread Lachlan Deck
On 06/10/2008, at 4:23 PM, Guido Neitzer wrote: On 05.10.2008, at 17:37, Thomas Worrall wrote: When I go to do Generate SQL for my EOModel, it does not escape the table or field names in backticks (`). Because of this, table names like Order cause SQL errors. The problem is, that the MySQ

Re: MySQL and Generate SQL, and inline bindings problems

2008-10-05 Thread Guido Neitzer
e, maybe they invest some time into that. Second question: I can't get inline bindings to work. My Properties file (in the Resources group) has the following: # OGNL ognl.active = true ognl.helperFunctions=true ognl.inlineBindings=true But you are actually linking to WOOgnl.fra

MySQL and Generate SQL, and inline bindings problems

2008-10-05 Thread Thomas Worrall
me my tables something else. I can do that, but it seems I shouldn't have to: regardless of what words are reserved, putting them all in backticks would solve the problem entirely. Why doesn't EO do that? Second question: I can't get inline bindings to work. My Properties fi

Re: Inline Bindings and Servlet Deployment

2008-04-24 Thread David Avendasora
So, I know that regular WebObjects 5.4.x can be used along with inline bindings and the resulting WAR file can be deployed successfully to JBoss. I don't know whether there is a complication related to Wonder since I am not using it. tom On Apr 24, 2008, at 11:51 AM, Tom Pelaia wrote:

Re: Inline Bindings and Servlet Deployment

2008-04-24 Thread Tom Pelaia
Hi, I should qualify my statement by noting that I'm not using Wonder. So, I know that regular WebObjects 5.4.x can be used along with inline bindings and the resulting WAR file can be deployed successfully to JBoss. I don't know whether there is a complication related to Wonder

Re: Inline Bindings and Servlet Deployment

2008-04-24 Thread David Avendasora
simply the WAR and not a directory of _thousands_ of files, some with path names that are too long for Windows to delete Dave On Apr 24, 2008, at 11:51 AM, Tom Pelaia wrote: Hi, Yes, I have gotten inline bindings to work fine with True WAR deployment to JBoss. I have a "Hello Worl

Re: Inline Bindings and Servlet Deployment

2008-04-24 Thread Tom Pelaia
Hi, Yes, I have gotten inline bindings to work fine with True WAR deployment to JBoss. I have a "Hello World" type example that works and can send it to you if you want it. I just started with a WebObjects sample project, applied the patch that I mentioned in a previous e

Inline Bindings and Servlet Deployment

2008-04-24 Thread David Avendasora
I'm having problems getting Inline Bindings to work with a Servlet deployment (to Tomcat). I've double- and triple-checked the classpaths and .jars and everything is where and as it is supposed to be, but the inline bindings just don't work once deployed to a Servlet. They w

Re: Inline bindings: attribute string value begining with $

2008-04-06 Thread Mike Schrag
But you *can* set the pre- and postfix chars, so the question was how to escape them. Which is the same problem how to escape "[" at the start. Uh ... what he said :) ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-d

Re: Inline bindings: attribute string value begining with $

2008-04-06 Thread Mike Schrag
With WO 5.4 the syntax should be: By default the dynamic binding use [] and not $. So how do you escape the dynamic binding prefix in 5.4 if you want to show it in the string? For instance, if you actually want the string "[amount]" to appear, what does the binding look like? ms ___

Re: Inline bindings: attribute string value begining with $

2008-04-06 Thread Anjo Krank
at 8:52 PM, [EMAIL PROTECTED] wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: Inline bindings: attribute string value begining with $ To: WebObjects-Dev Mailing List Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" \$#,##0 Do I n

Re: Inline bindings: attribute string value begining with $

2008-04-06 Thread Mr. Pierre Frisch
. ms On Apr 5, 2008, at 1:09 AM, Ricardo Parada wrote: On Apr 4, 2008, at 8:52 PM, [EMAIL PROTECTED] wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: Inline bindings: attribute string value begining with $ To: WebObjects-Dev Mailing List Message-ID: <[EMAIL PROTECTED]>

Re: Inline bindings: attribute string value begining with $

2008-04-05 Thread Mike Schrag
Oh, I assumed you were using Wonder with the $ syntax ... I have no idea how to escape the attribute prefix in 5.4. ms On Apr 5, 2008, at 1:09 AM, Ricardo Parada wrote: On Apr 4, 2008, at 8:52 PM, [EMAIL PROTECTED] wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re:

Re: Inline bindings: attribute string value begining with $

2008-04-04 Thread Ricardo Parada
On Apr 4, 2008, at 8:52 PM, [EMAIL PROTECTED] wrote: From: Mike Schrag <[EMAIL PROTECTED]> Subject: Re: Inline bindings: attribute string value begining with $ To: WebObjects-Dev Mailing List Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii&qu

Re: Inline bindings: attribute string value begining with $

2008-04-04 Thread Mike Schrag
\$#,##0 ms ___ 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%40m

Inline bindings: attribute string value begining with $

2008-04-04 Thread Ricardo Parada
Hi All, If I have something like this: what do I need to do to make sure that the value for the numberformat is interpreted as a string instead of a method call to #,##0. Right now my workaround is to insert a space before the $ sign: Is there a better way than putting a space in front

Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-28 Thread Archibald Singleton
On 28 Mar 2008, at 01:26, Mike Schrag wrote: How about inserting the closing "]" as soon as one types the opening "[" in the context of a binding value? Valid point -- totally could do that ... Trying to think if there's a case where this would get confused, but it seems pretty straightforw

Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Mike Schrag
How about inserting the closing "]" as soon as one types the opening "[" in the context of a binding value? Valid point -- totally could do that ... Trying to think if there's a case where this would get confused, but it seems pretty straightforward. Patches welcome :) ms

Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Archibald Singleton
On 27 Mar 2008, at 20:19, Lachlan Deck wrote: [snip] On a related note, I wish eclipse would behave more like TextMate which always does the Right Things e.g. surrounding the selection with the opening char and corresponding closing char when one type a opening char type with some text se

Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Neil MacLennan
* $xxx is the standard inline markup of just about every template language, which, for one, also makes it consistent with the velocity templates that we use other places inside of WOLips and I wish it wasn't. Plenty times (in just about every template language) the 'xxx' makes it through to th

Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Archibald Singleton
e markup of just about every template language, which, for one, also makes it consistent with the velocity templates that we use other places inside of WOLips Which makes also most templating languages consistently ugly :-)... And you can set the WebObjects 5.4 inline bindings to use the

Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Guido Neitzer
th the velocity templates that we use other places inside of WOLips And you can set the WebObjects 5.4 inline bindings to use the $ style too. So this is currently the one working on both systems. cug -- http://www.event-s.net ___ Do not post admin

Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Mike Schrag
used to denote non-litteral expressions in ognl bindings (e.g use the WO 5.4.x "[...] " marker)? And if it is, how to do it? Not currently, though it may be coming. I still say $xxx is a better syntax than [xxx]. It may be better but I don't like special prefix characters à la perl (just a p

Re: [Wonder-disc] Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Archibald Singleton
On 27 Mar 2008, at 18:06, Mike Schrag wrote: I assume you mean WOOGNL inline bindings? Yes, the syntax is ? Yep. key="value" ... Pretty easy, huh :) Of course, thanks! I *almost* tried it but'?' not being a valid XML name character, I though it wouldn't work.

Re: Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Mike Schrag
I assume you mean WOOGNL inline bindings? Yes, the syntax is ? key="value" ... Pretty easy, huh :) On a related note is it possible to change the market ( currently "$") used to denote non-litteral expressions in ognl bindings (e.g use the WO 5.4.x "[...] " ma

Is there an equivalent for the ?key="value" syntax but for ognl inline bindings

2008-03-27 Thread Archibald Singleton
Hello, Subject line says it all. Btw I'm using WO 5.3.x NOT WO 5.4.x for which apparently such syntax exists. On a related note is it possible to change the market ( currently "$") used to denote non-litteral expressions in ognl bindings (e.g use the WO 5.4.x "[...] " marker)? And if it

Re: Inline bindings

2008-01-14 Thread Guido Neitzer
On 14.01.2008, at 02:25, Simon McLean wrote: What is the difference ? What do the [ ] imply ? The square brackets are WO 5.4 default style, you can change that to a dollar though. WOOgnl has the dollar as the inline style. cug -- Real-World WebObjects class at the Big Nerd Ranch March 2

Re: Inline bindings

2008-01-14 Thread Simon McLean
should be: Actually, it should be more like: cug Hi cug This seems to work too: What is the difference ? What do the [ ] imply ? Simon ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Web

Re: Inline bindings

2008-01-13 Thread Guido Neitzer
On 13.01.2008, at 13:51, Simon McLean wrote: should be: Actually, it should be more like: cug -- Real-World WebObjects class at the Big Nerd Ranch March 2008, Frankfurt, Germany http://www.bignerdranch.com/classes/webobjects.shtml ___ Do n

Re: Inline bindings

2008-01-13 Thread Simon McLean
Oh my goodness, I just noticed the glaring error in my code: should be: for my stupidity i am sitting in the dumb corner with people pointing at me and laughing ;-) Thanks for the nudge in the right direction Clark. Simon On 13 Jan 2008, at 20:39, Clark Mueller wrote: Well, the synta

Inline bindings

2008-01-13 Thread Simon McLean
Hi All - Ok, what am I missing ? It has to be something really stupid but it's stumped me... com.webobjects.foundation.NSForwardException for ognl.helperfunction.compatibility.WOMiddleManHTMLFormatException: "Header" span = 24 last = true> . It has no NAME=... parameter Simon

Re: WO 5.4 new parser (inline bindings) removing DOCTYPE and XML declaration

2007-12-14 Thread Les Vogel
Yep, it's a known bug. Add a space between your , the lack of !DOCTYPE is also annoying. On 12/13/07, Oswaldo Bueno <[EMAIL PROTECTED]> wrote: > > Hi, I'm staring a new project on WO 5.4 and decided to use the new > inline bindings. > >I have a component

WO 5.4 new parser (inline bindings) removing DOCTYPE and XML declaration

2007-12-13 Thread Oswaldo Bueno
Hi, I'm staring a new project on WO 5.4 and decided to use the new inline bindings. I have a component with the following first lines: http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en">

Re: WOOGNL Inline Bindings Help!

2007-11-02 Thread Mike Schrag
2007/11/1, Mike Schrag <[EMAIL PROTECTED]>: The WOOGNL framework is included in the project and my main application constructor looks like this: I think all of the shortcuts you listed are registered by default in Wonder, btw ... Where can I find the complete list of all the shortcuts? Only

Re: WOOGNL Inline Bindings Help!

2007-11-02 Thread Daniele Corti
2007/11/1, Mike Schrag <[EMAIL PROTECTED]>: > > The WOOGNL framework is included in the project and my main application > constructor looks like this: > > I think all of the shortcuts you listed are registered by default in > Wonder, btw ... > Where can I find the complete list of all the shortcut

Re: WOOGNL Inline Bindings Help!

2007-11-01 Thread Mike Schrag
The WOOGNL framework is included in the project and my main application constructor looks like this: I think all of the shortcuts you listed are registered by default in Wonder, btw ... ms ___ Do not post admin requests to the list. They will be ign

Re: WOOGNL Inline Bindings Help!

2007-10-31 Thread Jonathan Miller
Nailed it, thanks Guido! Jon On Oct 31, 2007, at 5:14 PM, Guido Neitzer wrote: On 31.10.2007, at 20:14, Jonathan Miller wrote: Trying to use WOOGNL for the first time and I'm not sure where I've gone wrong. As a first attempt I added the following line of code to my sample project , ho

Re: WOOGNL Inline Bindings Help!

2007-10-31 Thread Andrew Sardone
I believe it should be: , how are you? -Andrew On Oct 31, 2007, at 10:14 PM, Jonathan Miller wrote: Hi, Trying to use WOOGNL for the first time and I'm not sure where I've gone wrong. As a first attempt I added the following line of code to my sample project , how are you? The page r

WOOGNL Inline Bindings Help!

2007-10-31 Thread Jonathan Miller
Hi, Trying to use WOOGNL for the first time and I'm not sure where I've gone wrong. As a first attempt I added the following line of code to my sample project , how are you? The page renders but it only displays , how are you? I have the following in my properties file: ognl.active = t