Re: WebObjects and HTML
Re: WebObjects and HTML
- Subject: Re: WebObjects and HTML
- From: Rodolphe Prin <email@hidden>
- Date: Tue, 09 Sep 2003 09:02:12 +0200
Hi Raj,
I don't know if it can suit your need, but
suppose the variable used to represent items of the repetition is called
"item",
you can create a method to display what ever you want, testing the
content of "item".
If you bind a WOString inside the repetition to the method displayValue,
this method will be called at each step
of the process of displaying the WORepetition.
protected String item;
protected String displayValue() {
if ((item==null) || (item.length()==0)) {
return " ";
}
else {
return item;
}
}
Regards,
Rodolphe
email@hidden wrote:
just to correct some typos :
I am trying to display a grid in HTML using WebObjects. I am using
NSMutable arrays and WORepetition objects
for the content of the table. Everything works fine.
The question is : What do I need to assign in Java programmatically to a
variable bound to a cell of the table so that the converted HTML generates
in between the <td> and </td> ?
The reason I am asking this is if I default the variable to empty string
or space, the HTML table looks messy.
And I default it to , the converted HTML displays in the
cell !! Any light on this?
Thanks,
Raj
----- Forwarded by Raj Chakravarthi/hq/hjf on 09/08/2003 11:50 AM -----
Raj Chakravarthi
09/08/2003 11:48 AM
To: email@hidden
cc:
Subject: WebObjects and HTML
I am trying to display a grid in HTML using WebObjects. I am using
MSMutable arrays and WORepetition objects
for thhe content of the table. Everything works fine.
The question is : What do I need to assign in Java programmatically to a
variable bound to a cell of the table so that the converted HTML generates
in between the <td> and </td> ?
The reason I am asking this is if I default the variable to empty string
or space, the HTML table looks messy.
And I default it to , the converted HTML displays in the
cell !! Any light on this?
Thanks,
Raj
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
----------------------------
Rodolphe Prin
Centre de Ressources Informatiques
Universite de La Rochelle
tel: 05 46 45 82 14 / fax: 05 46 45 82 45
----------------------------
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.