Re: Re: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread naneon . raymond
Hi Hee
  
No prob. Then you may just need to add an  index counter to track down the 
object that you are interested to  alter its string value, as mentioned.
==>I don't understand very well. Do you have a code to clear all your words?
   ...
   movieTitleChanged=movieToCheck.title() + "Add more info .." ; I don't 
want to add info to the title for each movie.
 ... 



 
  
Cheers 
  
Ray 
 
- Original Message -
From:naneon.raym...@neuf.fr
To: Cheong Hee (Gmail) ; WebObjects webobjects-dev   
Sent: Monday, August 01, 2011 6:01    PM   
Subject: Re: Re: Re: Re: Re: Using    AjaxInPlaceEditor in WORepetition   

   
Hi Hee   

I made a mistake in my example. Inrepetition, it's not index but item (WOD) 
  
example :   
java class :   

   
   
String critical   
NSArray Movies;   
Movie movieRepetition;   

   
...   

   
public void saveInPlaceEditor (){   

   
...   

   
}   

   
Html :   
...   
   
   
name   
   
   
   
   
   
   
   
   
   
...   

WOD:   

   
repeat: WORepetition {   
list= Movies;   
item= movieRepetition;   
}   

   
movieView : WOString {   
value = movieRepetition.title;   
}   

   
criticalEditor : AjaxInPlaceEditor {   
value = critical;   
action = saveInPlaceEditor;
...   
}



Ooops,you need to change "ui.index" to "movieIndex".

and may be an item inthe WORepetition:

repeat : WORepetition {
item = Movie;
list =Movies;
index = movieIndex;
}   

   
==> What about AjaxInPlaceEditor? You don't use it in your examplecode? In 
my app,   
I would like to give hand to people to write a critical for the moviethey 
chose in my table of movies and it's the utility of
ajaxInPlaceEditor.   

   
Ray


- Original Message - 
From: "Cheong Hee(Gmail)" 
To: ; "WebObjects    webobjects-dev"

Sent: Monday, August01, 2011 4:38 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor inWORepetition


> Hi Ray
>
> Using your info, may bethese are the changes you need:
>
> Declare this integer in javafile:
> int movieIndex;
>
>
> in wod:
>
>repeat : WORepetition {
> list = Movies;
> index =movieIndex;
> }
>
>
> movieView : WOString {
>value = movieViewToShow;
> }
>
>
> In the java file,declare something like this:
>
> public StringmovieViewToShow(){
> String movieTitleChanged=null;
> MoviemovieToCheck = (Movie)Movies.objectAtIndex(ui.index);
> if((movieToCheck !=null) && (...do your validation ...))
>movieTitleChanged=movieToCheck.title() + "Add more info .." ;
> return(movieTitleChanged!=null) ? movieTitleChanged : movieToCheck
>.title();
> }
>
> I am not familiar with AjaxInPlaceEditoryet, however don't think it will
> affect the abovecode.
>
> Cheers
>
> Cheong Hee
>
> -    Original Message - 
> From: naneon.raym...@neuf.fr
> To:Cheong Hee (Gmail) ; WebObjects webobjects-dev
> Sent: Monday, August01, 2011 4:19 PM
> Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor inWORepetition
>
>
> Hi Hee
>
> Hope I get itright and may be this is what you need. To manupulate the
> string foreach iterative object in an array, you could set the index of
>WORepetition to an integer.
> Then before display the string, check theobjectAtIndex of the array and
> decide if the the string is to alteraccordingly for that object.
> ==> If the string I have declared isthe same for all objects and if I
> want to give information aboutobject at "index+1".
> The string I put in object at "index" will takevalue of string of object
> at "index +1". So if I check the string ofobject at "index" and I see
> it's modify because object at"index+1"
> give it another information of string. I can't hold thisstring for the
> object at "index" because there is one variable whichloop.
> example :
> java class :
>
>
>
> String critical
> NSArray Movies;
> MoviemovieRepetition;
>
>
> ...
>
>
> publicvoid saveInPlaceEditor () {
>
>
>...
>
>
> }
>
>
> Html :
>...
> 
> 
> name
> 
> 
> 
> 
> 
> 
> 
>
> 
> ...
>
> WOD:
>
>
> repeat : WORepetition {
> list =Movies;
> index = movieRepetition;
> }
>
>
>movieView : WOString {
> value = movieRepetition.title;
>}
>
>
> criticalEditor : AjaxInPlaceEditor {
> value =critical;
> action = saveInPlaceEditor;
> ...
>}
>
>
> Ch

Re: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread Cheong Hee (Gmail)
Hi Ray

No prob. Then you may just need to add an index counter to track down the 
object that you are interested to alter its string value, as mentioned.

Cheers

Cheong Hee

  - Original Message - 
  From: naneon.raym...@neuf.fr 
  To: Cheong Hee (Gmail) ; WebObjects webobjects-dev 
  Sent: Monday, August 01, 2011 6:01 PM
  Subject: Re: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


  Hi Hee

  I made a mistake in my example. In repetition, it's not index but item (WOD)
  example :
  java class :


  
  String critical
  NSArray Movies;
  Movie movieRepetition;


  ...


  public void saveInPlaceEditor () {


  ...


  }


  Html :
  ...
  
  
  name
  
  
  
  
  
  
  
  
  
  ...

  WOD :


  repeat : WORepetition {
  list = Movies;
  item = movieRepetition;
  }


  movieView : WOString {
  value = movieRepetition.title;
  }


  criticalEditor : AjaxInPlaceEditor {
  value = critical;
  action = saveInPlaceEditor; 
  ...
  }


  

  Ooops, you need to change "ui.index" to "movieIndex".

  and may be an item in the WORepetition:

  repeat : WORepetition {
  item = Movie;
  list = Movies;
  index = movieIndex;
  }


  ==> What about AjaxInPlaceEditor? You don't use it in your example code? In 
my app,
  I would like to give hand to people to write a critical for the movie they 
chose in my table of movies and it's the utility of 
  ajaxInPlaceEditor.


  Ray


  - Original Message - 
  From: "Cheong Hee (Gmail)" 
  To: ; "WebObjects webobjects-dev"

  Sent: Monday, August 01, 2011 4:38 PM
  Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


  > Hi Ray
  >
  > Using your info, may be these are the changes you need:
  >
  > Declare this integer in java file:
  > int movieIndex;
  >
  >
  > in wod:
  >
  > repeat : WORepetition {
  > list = Movies;
  > index = movieIndex;
  > }
  >
  >
  > movieView : WOString {
  > value = movieViewToShow;
  > }
  >
  >
  > In the java file, declare something like this:
  >
  > public String movieViewToShow(){
  > String movieTitleChanged=null;
  > Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
  > if ((movieToCheck !=null) && (...do your validation ...))
  > movieTitleChanged=movieToCheck.title() + "Add more info .." ;
  > return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck
  > .title();
  > }
  >
  > I am not familiar with AjaxInPlaceEditor yet, however don't think it will
  > affect the above code.
  >
  > Cheers
  >
  > Cheong Hee
  >
  > - Original Message - 
  > From: naneon.raym...@neuf.fr
  > To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
  > Sent: Monday, August 01, 2011 4:19 PM
  > Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition
  >
  >
  > Hi Hee
  >
  > Hope I get it right and may be this is what you need. To manupulate the
  > string for each iterative object in an array, you could set the index of
  > WORepetition to an integer.
  > Then before display the string, check the objectAtIndex of the array and
  > decide if the the string is to alter accordingly for that object.
  > ==> If the string I have declared is the same for all objects and if I
  > want to give information about object at "index+1".
  > The string I put in object at "index" will take value of string of object
  > at "index +1". So if I check the string of object at "index" and I see
  > it's modify because object at "index+1"
  > give it another information of string. I can't hold this string for the
  > object at "index" because there is one variable which loop.
  > example :
  > java class :
  >
  >
  > 
  > String critical
  > NSArray Movies;
  > Movie movieRepetition;
  >
  >
  > ...
  >
  >
  > public void saveInPlaceEditor () {
  >
  >
  > ...
  >
  >
  > }
  >
  >
  > Html :
  > ...
  > 
  > 
  > name
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > ...
  >
  > WOD :
  >
  >
  > repeat : WORepetition {
  > list = Movies;
  > index = movieRepetition;
  > }
  >
  >
  > movieView : WOString {
  > value = movieRepetition.title;
  > }
  >
  >
  > criticalEditor : AjaxInPlaceEditor {
  > value = critical;
  > action = saveInPlaceEditor;
  > ...
  > }
  >
  >
  > Cheers
  >
  > Ray
  >
  > - Original Message - 
  > From: naneon.raym...@neuf.fr
  > To: Theodore Petrosky ; WebObjects webobjects-dev
  > Sent: Monday, August 01, 2011 2:48 AM
  > Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition
  &

Re: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread naneon . raymond

Hi Hee
 
I made a mistake in my example. In repetition, it's not index but item (WOD)
example :
java class :



String critical
NSArray Movies;
Movie movieRepetition;


...


public void saveInPlaceEditor () {


...


}


Html :
...


name









...
 
WOD :


repeat : WORepetition {
list = Movies;
item = movieRepetition;
}


movieView : WOString {
value = movieRepetition.title;
}


criticalEditor : AjaxInPlaceEditor {
value = critical;
action = saveInPlaceEditor; 
...
}


 
Ooops, you need to change "ui.index" to "movieIndex".

and may be an item in the WORepetition:

repeat : WORepetition {
item = Movie;
list = Movies;
index = movieIndex;
 }


==> What about AjaxInPlaceEditor? You don't use it in your example code? In my 
app,
I would like to give hand to people to write a critical for the movie they 
chose in my table of movies and it's the utility of 
ajaxInPlaceEditor.


Ray


- Original Message - 
From: "Cheong Hee (Gmail)" 
To: ; "WebObjects webobjects-dev"

Sent: Monday, August 01, 2011 4:38 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


> Hi Ray
>
> Using your info, may be these are the changes you need:
>
> Declare this integer in java file:
> int movieIndex;
>
>
> in wod:
>
> repeat : WORepetition {
>list = Movies;
>index = movieIndex;
> }
>
>
> movieView : WOString {
>value = movieViewToShow;
> }
>
>
> In the java file, declare something like this:
>
> public String movieViewToShow(){
>String movieTitleChanged=null;
>Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
>if ((movieToCheck !=null) && (...do your validation ...))
>movieTitleChanged=movieToCheck.title() + "Add more info .." ;
>return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck
> .title();
> }
>
> I am not familiar with AjaxInPlaceEditor yet, however don't think it will
> affect the above code.
>
> Cheers
>
> Cheong Hee
>
> ----- Original Message - 
> From: naneon.raym...@neuf.fr
> To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
> Sent: Monday, August 01, 2011 4:19 PM
> Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition
>
>
> Hi Hee
>
> Hope I get it right and may be this is what you need.  To manupulate the
> string for each iterative object in an array, you could set the index of
> WORepetition to an integer.
> Then before display the string, check the objectAtIndex of the array and
> decide if the the string is to alter accordingly for that object.
> ==> If the string I have declared is the same for all objects and if I
> want to give information about object at "index+1".
> The string I put in object at "index" will take value of string of object
> at "index +1". So if I check the string of object at "index" and I see
> it's modify because object at "index+1"
> give it another information of string. I can't hold this string for the
> object at "index" because there is one variable which loop.
> example :
> java class :
>
>
> 
> String critical
> NSArray Movies;
> Movie movieRepetition;
>
>
> ...
>
>
> public void saveInPlaceEditor () {
>
>
> ...
>
>
> }
>
>
> Html :
> ...
> 
> 
> name
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ...
>
> WOD :
>
>
> repeat : WORepetition {
> list = Movies;
> index = movieRepetition;
> }
>
>
> movieView : WOString {
> value = movieRepetition.title;
> }
>
>
> criticalEditor : AjaxInPlaceEditor {
> value = critical;
> action = saveInPlaceEditor;
> ...
> }
>
>
> Cheers
>
> Ray
>
> - Original Message - 
> From: naneon.raym...@neuf.fr
> To: Theodore Petrosky ; WebObjects webobjects-dev
> Sent: Monday, August 01, 2011 2:48 AM
> Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition
>
>
> Hi Ted,
>
>
> if you have a list (an array) to create the objects in the repetition,
> then each object will have an attribute (string) to use for the binding of
> the in place editor.
> ==> I have an array to create the objects in repetition but each object
> don't have an attribute string. I created independent
> variable which give an information about theses objects in the loop (that
> mean each object have the "same variable" for the editor and it's my
> problem).
>
>
> There is another way to use the InPlaceEditor in the loop without using
> the same variable for each object?
>
>
> 
>

Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread Cheong Hee (Gmail)

Ooops, you need to change "ui.index" to "movieIndex".

and may be an item in the WORepetition:

repeat : WORepetition {
   item = Movie;
   list = Movies;
   index = movieIndex;
}


- Original Message - 
From: "Cheong Hee (Gmail)" 

To: ; "WebObjects webobjects-dev"

Sent: Monday, August 01, 2011 4:38 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition



Hi Ray

Using your info, may be these are the changes you need:

Declare this integer in java file:
int movieIndex;


in wod:

repeat : WORepetition {
   list = Movies;
   index = movieIndex;
}


movieView : WOString {
   value = movieViewToShow;
}


In the java file, declare something like this:

public String movieViewToShow(){
   String movieTitleChanged=null;
   Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
   if ((movieToCheck !=null) && (...do your validation ...))
   movieTitleChanged=movieToCheck.title() + "Add more info .." ;
   return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck
.title();
}

I am not familiar with AjaxInPlaceEditor yet, however don't think it will
affect the above code.

Cheers

Cheong Hee

- Original Message - 
From: naneon.raym...@neuf.fr

To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 4:19 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Hee

Hope I get it right and may be this is what you need.  To manupulate the
string for each iterative object in an array, you could set the index of
WORepetition to an integer.
Then before display the string, check the objectAtIndex of the array and
decide if the the string is to alter accordingly for that object.
==> If the string I have declared is the same for all objects and if I
want to give information about object at "index+1".
The string I put in object at "index" will take value of string of object
at "index +1". So if I check the string of object at "index" and I see
it's modify because object at "index+1"
give it another information of string. I can't hold this string for the
object at "index" because there is one variable which loop.
example :
java class :



String critical
NSArray Movies;
Movie movieRepetition;


...


public void saveInPlaceEditor () {


...


}


Html :
...


name









...

WOD :


repeat : WORepetition {
list = Movies;
index = movieRepetition;
}


movieView : WOString {
value = movieRepetition.title;
}


criticalEditor : AjaxInPlaceEditor {
value = critical;
action = saveInPlaceEditor;
...
}


Cheers

Ray

- Original Message - 
From: naneon.raym...@neuf.fr

To: Theodore Petrosky ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 2:48 AM
Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Ted,


if you have a list (an array) to create the objects in the repetition,
then each object will have an attribute (string) to use for the binding of
the in place editor.
==> I have an array to create the objects in repetition but each object
don't have an attribute string. I created independent
variable which give an information about theses objects in the loop (that
mean each object have the "same variable" for the editor and it's my
problem).


There is another way to use the InPlaceEditor in the loop without using
the same variable for each object?




Message du : 31/07/2011
De : "Theodore Petrosky " 
A : "WebObjects webobjects-dev" ,
naneon.raym...@neuf.fr
Copie à :
Sujet : Re: Re: Using AjaxInPlaceEditor in WORepetition



I am lost.
if you have a list (an array) to create the objects in the repetition,
then each object will have an attribute (string) to use for the binding of
the in place editor. Ted --- On Sat, 7/30/11, naneon.raym...@neuf.fr
wrote: From: naneon.raym...@neuf.fr Subject: Re: Re: Using
AjaxInPlaceEditor in WORepetition To: "Theodore Petrosky" , "WebObjects
webobjects-dev" Date: Saturday, July 30, 2011, 3:52 PM Hi Ted, Thanks for
your quick reply but in my case the editor is not bound to the
item.variable. The variable is not an item but a simple String. Let me
explain, in the repetition I have item.variable and for each
item.variable, I have an information to give.So the table have 2 columns,
one for item.variable and the second is a variable string for the editor.
So when for the first item.variable I give an information, this
information is apply for all item.variable because there is one variable
bound to the editor which loop for each item.variable. So I want to know
if there is another to do it or how to fix it. Ray
 Message du : 30/07/2011 De :
"Theodore Petrosky " A : webobjects-dev@lists.apple.com Copie à :
naneon.raym...@neuf.fr Sujet : Re: Using AjaxInPlaceEditor in WORepetition
It sounds li

Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread Cheong Hee (Gmail)

Ooops, you need to change "ui.index" to "movieIndex".

and may be an item in the WORepetition:

repeat : WORepetition {
   item = Movie;
   list = Movies;
   index = movieIndex;
}


- Original Message - 
From: "Cheong Hee (Gmail)" 
To: ; "WebObjects webobjects-dev" 


Sent: Monday, August 01, 2011 4:38 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition



Hi Ray

Using your info, may be these are the changes you need:

Declare this integer in java file:
int movieIndex;


in wod:

repeat : WORepetition {
   list = Movies;
   index = movieIndex;
}


movieView : WOString {
   value = movieViewToShow;
}


In the java file, declare something like this:

public String movieViewToShow(){
   String movieTitleChanged=null;
   Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
   if ((movieToCheck !=null) && (...do your validation ...))
   movieTitleChanged=movieToCheck.title() + "Add more info .." ;
   return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck 
.title();

}

I am not familiar with AjaxInPlaceEditor yet, however don't think it will 
affect the above code.


Cheers

Cheong Hee

- Original Message - 
From: naneon.raym...@neuf.fr

To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 4:19 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Hee

Hope I get it right and may be this is what you need.  To manupulate the 
string for each iterative object in an array, you could set the index of 
WORepetition to an integer.
Then before display the string, check the objectAtIndex of the array and 
decide if the the string is to alter accordingly for that object.
==> If the string I have declared is the same for all objects and if I 
want to give information about object at "index+1".
The string I put in object at "index" will take value of string of object 
at "index +1". So if I check the string of object at "index" and I see 
it's modify because object at "index+1"
give it another information of string. I can't hold this string for the 
object at "index" because there is one variable which loop.

example :
java class :



String critical
NSArray Movies;
Movie movieRepetition;


...


public void saveInPlaceEditor () {


...


}


Html :
...


name









...

WOD :


repeat : WORepetition {
list = Movies;
index = movieRepetition;
}


movieView : WOString {
value = movieRepetition.title;
}


criticalEditor : AjaxInPlaceEditor {
value = critical;
action = saveInPlaceEditor;
...
}


Cheers

Ray

- Original Message - 
From: naneon.raym...@neuf.fr

To: Theodore Petrosky ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 2:48 AM
Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Ted,


if you have a list (an array) to create the objects in the repetition, 
then each object will have an attribute (string) to use for the binding of 
the in place editor.
==> I have an array to create the objects in repetition but each object 
don't have an attribute string. I created independent
variable which give an information about theses objects in the loop (that 
mean each object have the "same variable" for the editor and it's my 
problem).



There is another way to use the InPlaceEditor in the loop without using 
the same variable for each object?





Message du : 31/07/2011
De : "Theodore Petrosky " 
A : "WebObjects webobjects-dev" , 
naneon.raym...@neuf.fr

Copie à :
Sujet : Re: Re: Using AjaxInPlaceEditor in WORepetition



I am lost.
if you have a list (an array) to create the objects in the repetition, 
then each object will have an attribute (string) to use for the binding of 
the in place editor. Ted --- On Sat, 7/30/11, naneon.raym...@neuf.fr 
wrote: From: naneon.raym...@neuf.fr Subject: Re: Re: Using 
AjaxInPlaceEditor in WORepetition To: "Theodore Petrosky" , "WebObjects 
webobjects-dev" Date: Saturday, July 30, 2011, 3:52 PM Hi Ted, Thanks for 
your quick reply but in my case the editor is not bound to the 
item.variable. The variable is not an item but a simple String. Let me 
explain, in the repetition I have item.variable and for each 
item.variable, I have an information to give.So the table have 2 columns, 
one for item.variable and the second is a variable string for the editor. 
So when for the first item.variable I give an information, this 
information is apply for all item.variable because there is one variable 
bound to the editor which loop for each item.variable. So I want to know 
if there is another to do it or how to fix it. Ray 
 Message du : 30/07/2011 De : 
"Theodore Petrosky " A : webobjects-dev@lists.apple.com Copie à : 
naneon.raym...@neuf.fr Sujet : Re: Using AjaxInP

Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread Cheong Hee (Gmail)

Hi Ray

Using your info, may be these are the changes you need:

Declare this integer in java file:
int movieIndex;


in wod:

repeat : WORepetition {
   list = Movies;
   index = movieIndex;
}


movieView : WOString {
   value = movieViewToShow;
}


In the java file, declare something like this:

public String movieViewToShow(){
   String movieTitleChanged=null;
   Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
   if ((movieToCheck !=null) && (...do your validation ...))
   movieTitleChanged=movieToCheck.title() + "Add more info .." ;
   return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck 
.title();

}

I am not familiar with AjaxInPlaceEditor yet, however don't think it will 
affect the above code.


Cheers

Cheong Hee

- Original Message - 
From: naneon.raym...@neuf.fr

To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 4:19 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Hee

Hope I get it right and may be this is what you need.  To manupulate the 
string for each iterative object in an array, you could set the index of 
WORepetition to an integer.
Then before display the string, check the objectAtIndex of the array and 
decide if the the string is to alter accordingly for that object.
==> If the string I have declared is the same for all objects and if I want 
to give information about object at "index+1".
The string I put in object at "index" will take value of string of object at 
"index +1". So if I check the string of object at "index" and I see it's 
modify because object at "index+1"
give it another information of string. I can't hold this string for the 
object at "index" because there is one variable which loop.

example :
java class :



String critical
NSArray Movies;
Movie movieRepetition;


...


public void saveInPlaceEditor () {


...


}


Html :
...


name









...

WOD :


repeat : WORepetition {
list = Movies;
index = movieRepetition;
}


movieView : WOString {
value = movieRepetition.title;
}


criticalEditor : AjaxInPlaceEditor {
value = critical;
action = saveInPlaceEditor;
...
}


Cheers

Ray

- Original Message - 
From: naneon.raym...@neuf.fr

To: Theodore Petrosky ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 2:48 AM
Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Ted,


if you have a list (an array) to create the objects in the repetition, then 
each object will have an attribute (string) to use for the binding of the in 
place editor.
==> I have an array to create the objects in repetition but each object 
don't have an attribute string. I created independent
variable which give an information about theses objects in the loop (that 
mean each object have the "same variable" for the editor and it's my 
problem).



There is another way to use the InPlaceEditor in the loop without using the 
same variable for each object?





Message du : 31/07/2011
De : "Theodore Petrosky " 
A : "WebObjects webobjects-dev" , 
naneon.raym...@neuf.fr

Copie à :
Sujet : Re: Re: Using AjaxInPlaceEditor in WORepetition



I am lost.
if you have a list (an array) to create the objects in the repetition, then 
each object will have an attribute (string) to use for the binding of the in 
place editor. Ted --- On Sat, 7/30/11, naneon.raym...@neuf.fr wrote: From: 
naneon.raym...@neuf.fr Subject: Re: Re: Using AjaxInPlaceEditor in 
WORepetition To: "Theodore Petrosky" , "WebObjects webobjects-dev" Date: 
Saturday, July 30, 2011, 3:52 PM Hi Ted, Thanks for your quick reply but in 
my case the editor is not bound to the item.variable. The variable is not an 
item but a simple String. Let me explain, in the repetition I have 
item.variable and for each item.variable, I have an information to give.So 
the table have 2 columns, one for item.variable and the second is a variable 
string for the editor. So when for the first item.variable I give an 
information, this information is apply for all item.variable because there 
is one variable bound to the editor which loop for each item.variable. So I 
want to know if there is another to do it or how to fix it. Ray 
 Message du : 30/07/2011 De : 
"Theodore Petrosky " A : webobjects-dev@lists.apple.com Copie à : 
naneon.raym...@neuf.fr Sujet : Re: Using AjaxInPlaceEditor in WORepetition 
It sounds like it is giving you exactly what you are asking for. a 
WORepetition with the same piece of data on every line. I have a table with 
a repetition and the editor is bound the the item.variable of the line with 
no problem. a string ImageEditInPlace : AjaxInPlaceEditor { value = 
theGridItem.image; submitOnBlur = true; okButton = false; cancelLink = 
false; action = saveAfterLeavingIn

Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread naneon . raymond

Hi Hee 
  
Hope I get it right and may be this is what  you need.  To manupulate the 
string for each iterative object in an  array, you could set the index of 
WORepetition to an integer.  
Then before  display the string, check the objectAtIndex of the array and 
decide if the the  string is to alter accordingly for that object.  
==> If the string I have declared is the same for all objects and if I want to 
give information about object at "index+1". 
The string I put in object at "index" will take value of string of object at 
"index +1". So if I check the string of object at "index" and I see it's modify 
because object at "index+1" 
give it another information of string. I can't hold this string for the object 
at "index" because there is one variable which loop.
example :
java class :



String critical
NSArray Movies;
Movie movieRepetition;


...


public void saveInPlaceEditor () {


...


}


Html :
...


name









... 
 
WOD :


repeat : WORepetition {
list = Movies;
index = movieRepetition;
}


movieView : WOString {
value = movieRepetition.title;
}


criticalEditor : AjaxInPlaceEditor {
value = critical;
action = saveInPlaceEditor; 
...
}

 
Cheers 
  
Ray 
 
- Original Message -
From:naneon.raym...@neuf.fr
To: Theodore Petrosky ; WebObjects webobjects-dev   
Sent: Monday, August 01, 2011 2:48AM   
Subject: Re: Re: Re: UsingAjaxInPlaceEditor in WORepetition   

Hi Ted,   

   
 if you have a list (an array) to create the objects in therepetition, then 
each object will have an attribute (string) to use for thebinding of the in 
place editor.   
==> I have an array to create the objects in repetition but eachobject 
don't have an attribute string. I created independent
variable which give an information about theses objects in the loop (that
mean each object have the "same variable" for the editor and it's my
problem).   

   
There is another way to use the InPlaceEditor in the loop without usingthe 
same variable for each object?   




Messagedu : 31/07/2011
De : "Theodore Petrosky " 
A :"WebObjects webobjects-dev" ,
naneon.raym...@neuf.fr
Copie à : 
Sujet : Re: Re: UsingAjaxInPlaceEditor in WORepetition



I am lost.
 if you have a list (an array) to create the objects in therepetition, then 
each object will have an attribute (string) to use for thebinding of the in 
place editor. Ted --- On Sat, 7/30/11,naneon.raym...@neuf.fr wrote: From:   
 naneon.raym...@neuf.fr Subject: Re: Re: UsingAjaxInPlaceEditor in 
WORepetition To: "Theodore Petrosky" ,"WebObjects webobjects-dev" Date: 
Saturday,July 30, 2011, 3:52 PM Hi Ted, Thanks for your quick reply but in 
my case theeditor is not bound to the item.variable. The variable is not an 
item but asimple String. Let me explain, in the repetition I have 
item.variable and foreach item.variable, I have an information to give.So 
the table have 2 columns,one for item.variable and the second is a variable 
string for the editor. Sowhen for the first item.variable I give an 
information, this informationis apply for all item.variable because there 
is one variable bound to theeditor which loop for each item.variable. So I 
want to know if there isanother to do it or how to fix it. Ray
 Message du : 30/07/2011 De :
"Theodore Petrosky " A : webobjects-dev@lists.apple.comCopie à : 
naneon.raym...@neuf.fr Sujet : Re: Using AjaxInPlaceEditor inWORepetition 
It sounds like it is giving you exactly what you are asking for.a 
WORepetition with the same piece of data on every line. I have a table with
a repetition and the editor is bound the the item.variable of the line with no  
  problem. a string ImageEditInPlace : AjaxInPlaceEditor { value =
theGridItem.image; submitOnBlur = true; okButton = false; cancelLink = false;   
 action = saveAfterLeavingInPlaceEditor; size = "15"; clickToEditText
="HeadLine"; editClass="editInPlaceClass"; } Ted >
-- > > Message: 8 > Date: Sat, 30 Jul2011 
18:58:20 +0200 (CEST) > From: naneon.raym...@neuf.fr > Subject:Using 
AjaxInPlaceEditor in WORepetition > To: WebObjects webobjects-dev> 
Message-ID: ><18747875.180751312045100987.JavaMail.www@wsfrf1217> > 
Content-Type:text/plain; charset="utf-8" > > Hi, > > > I have a little
problem with AjaxInPlaceEditor in a > WORepetition. The Problem is the
variable I declared for > AjaxInPlaceEditor. > In the WORepetition Ihave 
the same variable in each line > of the repetition and when I choosein 
example line 2 and > edit it and put an information, > the sameinformation 
is repeat on all other line. > > > So How can I fix it?How can I use an 
AjaxInPlaceEditor in > a WORepetition with one variableand isolate it when 
I edit > a line in the repetitio