Re: AjaxTabbedPanel ??? V2
Re: AjaxTabbedPanel ??? V2
- Subject: Re: AjaxTabbedPanel ??? V2
- From: Theodore Petrosky <email@hidden>
- Date: Sun, 16 Jan 2011 10:13:49 -0800 (PST)
I have one form:
<wo:WOForm multipleSubmit = true>
<div class = "tabBox">
<webObject name = "TabbedPanel">
<webObject name = "Tab1">
<table class = "tableDefs" width = "550">
<tr class = "meta1">
<td width = "110">First Name</td>
<td><wo:WOTextField value = "$theUser.firstName" size = "65" /></td>
</tr>
<tr class = "meta1">
<td width="35%">Last Name</td>
<td><wo:WOTextField value = "$theUser.lastName" size = "65" /></td>
</tr>
<tr class = "meta1">
<td>Title</td>
<td><webobject name = "EmployeeTitlePopUp" /></td>
</tr>
</table>
</webObject name = "Tab1">
<webObject name = "Tab2">
<table width = "250">
<tr>
<td>
<div class = "twoLine">Sees Employee Management:
<wo:WOCheckBox checked = "$theSecuritySettings.seesUserManagement" />
<br />
<br />
Sees Client Management:
<wo:WOCheckBox checked = "$theSecuritySettings.seesClientManagement" />
<br />
<br />
Sees Settings Management:
<wo:WOCheckBox checked = "$theUser.securitySettings.seesSettingsManagement" />
</div>
<br />
</td>
</tr>
</table>
</webObject>
</webObject>
</div>
<br />
<wo:AjaxSubmitButton action = "$save" value = "Save" /><wo:AjaxSubmitButton action = "$cancelEdits" value = "Cancel" />
</wo:WOForm>
--- On Sun, 1/16/11, Farrukh Ijaz <email@hidden> wrote:
> From: Farrukh Ijaz <email@hidden>
> Subject: Re: AjaxTabbedPanel ??? V2
> To: "Theodore Petrosky" <email@hidden>
> Cc: email@hidden
> Date: Sunday, January 16, 2011, 12:24 PM
> Are you using a separate WOForm for
> each tab? If yes, then you should revise your code and use 1
> form for all your fields no matter they span across multiple
> tabs.
>
> Farrukh
>
> On 2011-01-16, at 5:32 PM, Theodore Petrosky wrote:
>
> > I am copying from the ajaxexample.
> >
> > in a nutshell I have:
> >
> > Tab1 displays and edits "$theUser.firstName" and
> various other fields.
> > Tab2 displays checkboxes for various fields like:
> >
> > <wo:WOCheckBox checked =
> "$theUser.securitySettings.seesUserManagement" />
> >
> > Tab1 is set as isSelected = true;
> >
> > when i display the AMD, Tab1 looks beautiful however,
> when I display Tab2 all the securitySettings are unchecked
> (this user should have them all checked (true)).
> >
> > If I make a change on Tab1, and save the EC, all the
> securitySettings are set to false and overwritten. If I go
> to Tab2 and check the settings to make them true, saving
> saves these settings.
> >
> > So although I can set the values from Tab2, it doesn't
> display the current settings.
> >
> > If you understand better the workings of the
> AjaxTabbedPanel, maybe you could look at my code from last
> week and see if my error is obvious.
> >
> >
> > You did say,
> >
> > "> I think you need to specify the name property
> for you
> >> tabbed panel."
> >
> > What does this mean?
> >
> >
> > Thanks,
> >
> > Ted
> >
> >
> >
> >
> > --- On Sun, 1/16/11, Farrukh Ijaz <email@hidden>
> wrote:
> >
> >> From: Farrukh Ijaz <email@hidden>
> >> Subject: Re: AjaxTabbedPanel ??? V2
> >> To: "Theodore Petrosky" <email@hidden>
> >> Cc: email@hidden
> >> Date: Sunday, January 16, 2011, 8:24 AM
> >> Hi Ted,
> >>
> >> I think you need to specify the name property for
> you
> >> tabbed panel. Anyhow, working with AjaxTabbedPanel
> is a bit
> >> tricking. The easiest way is to copy the code from
> the Ajax
> >> examples and tweak it for your need.
> >>
> >> Farrukh
> >>
> >> On 2011-01-16, at 4:20 PM, Theodore Petrosky
> wrote:
> >>
> >>> Is there some secret that I am missing about
> using the
> >> AjaxTabbedPanel?
> >>>
> >>> Nothing I do seems to allow it to display the
> data I
> >> need. I posted earlier in the week my problem, if
> anyone has
> >> an idea what I can do to learn this feature.
> >>>
> >>> I posted what I thought was an appropriate
> amount of
> >> detail (including my code) last week. I could
> repost it.
> >>>
> >>> Help, I really like what this looks like if
> only I
> >> could get it to work.
> >>>
> >>> Ted
> >>>
> >>>
> >
> >
> >
> >
>
>
_______________________________________________
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