Re: Dynamic table with editable content
Re: Dynamic table with editable content
- Subject: Re: Dynamic table with editable content
- From: Kieran Kelleher <email@hidden>
- Date: Tue, 12 Jul 2011 10:23:19 -0400
Rough example copied/contrived from an old component:
<wo:form>
<webobject name = "RegionTable"><webobject name = "RegionName" /></webobject>
<wo:submit action = "$submitRegions"></wo:submit>
</wo:form>
RegionTable: WOTable {
item = regionDictItem;
list = regionDictArray;
maxColumns = fieldsPerRow;
cellspacing = 0;
cellpadding = 0;
}
RegionName: WOTextField {
value = regionDictItem.regionName;
maxlength = 5;
size = 7;
}
On Jul 12, 2011, at 10:12 AM, <email@hidden> <email@hidden> wrote:
>
> Message du : 12/07/2011
> De : "Kieran Kelleher " <email@hidden>
> A : email@hidden
> Copie à : email@hidden
> Sujet : Re: Dynamic table with editable content
>
>
>
> Ray,
>
> At the end of the day, WOComponent response simply generates HTML. And when you submit a WOComponent generated form, the browser just sends a list of form fields and values back to the server. Tables and cells are just response presentation layout and are not relevant to form fields.
>
> I don't have an example for you at hand, but why don't you just try it and figure it out. Just look at the HTML source that is generated to get your head around concepts. Even better, open FireBug in FIreFox and look at the request when you submit a form. Getting HTML fundamentals clear in the brain is critical to understanding WOComponents and taking away some of the unknown mysteries.
> ====>I just want to know how it's look like. How ERXTable use WOFORM fields like rows and columns.
> example :
>
> in html : <wo name="ERXTableWrap">
> <wo:form>
> .... ===> How to set columns with header and rows with components WOString and WOTextFields?
> </wo>
> </wo>
>
> Regards, Kieran
>
> PS.
> Keep discussion on the list ..... there are much smarter guys on there, such as Chuck and his Canadian army .... I am omitting David Avendasora from the 'smarter guys' qualifier of course.
>
>
>
> ;-)
>
>
>
> On Jul 12, 2011, at 9:47 AM, wrote:
>
> > WOForm wrapping ERXTable with cells containing form fields.
> > ==>Cells containing form fields : it means I can use textFields in each cells of ERXTable? Do you have an example please?
> > The ERXTable columns are sortable too?
> >
> > On Jul 12, 2011, at 9:21 AM, email@hidden wrote:
> >
> > > Hi,
> > >
> > > It's possible in WO to have an ERXTable or over table component with editable content?
> > > What are the list of component we need to do that?
> > >
> > > Thanks
> > >
> > > Ray
> > >
> > > _______________________________________________
> > > Do not post admin requests to the list. They will be ignored.
> > > Webobjects-dev mailing list (email@hidden)
> > > Help/Unsubscribe/Update your Subscription:
> > >
> > > This email sent to email@hidden
> >
> >
> >
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden