• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebObjects and HTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 "&nbsp;";
}
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 &nbsp; 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 &nbsp; , the converted HTML displays &nbsp; 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 &nbsp; 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 &nbsp; , the converted HTML displays &nbsp; 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.

  • Prev by Date: Re: Code for https?
  • Next by Date: WebObjects application without a browser?
  • Previous by thread: Re: WebObjects and HTML
  • Next by thread: [Hints] Generating JavaDoc documentation with a Project Builder target
  • Index(es):
    • Date
    • Thread