Re: need rule help
Re: need rule help
- Subject: Re: need rule help
- From: Theodore Petrosky <email@hidden>
- Date: Wed, 13 Mar 2013 11:29:35 -0700 (PDT)
exactly,
this is working fine when I create the listpage
((D2WPage) lpi).d2wContext().takeValueForKey("AgendaInstructions", "headerInstructionComponentName");
So this is what I am mucking with now, and it seems to be working:
100 : pageConfiguration like '*Agenda' => headerInstructionComponentName = "AgendaInstructions" [Assignment]
Interesting if I used a com.webobjects.directtoweb.Assignment then it doesn't work. But Assignment worked.
Sometimes I hate this crapola.
Ted
--- On Wed, 3/13/13, Jesse Tayler <email@hidden> wrote:
> From: Jesse Tayler <email@hidden>
> Subject: Re: need rule help
> To: "Theodore Petrosky" <email@hidden>
> Cc: "WebObjects Development" <email@hidden>
> Date: Wednesday, March 13, 2013, 2:02 PM
> unless I'm misunderstanding,
>
> it looks like you have a switch component that is expecting
> a componentName to return something but instead for whatever
> reason, it is returned null from it's d2wContext
>
> no?
>
> On Mar 13, 2013, at 1:50 PM, Theodore Petrosky <email@hidden>
> wrote:
>
> > I think I am finally understanding the issue. in my d2w
> app, when I click the tab for a 'ListAgenda' page, I fire a
> method that ultimately does:
> >
> > ((D2WPage)
> lpi).d2wContext().takeValueForKey("AgendaInstructions",
> "headerInstructionComponentName");
> >
> > but when I click the submit button on the query page,
> there is no assignment of this key. So, I get this error:
> >
> > (ListAgenda) -
> <er.extensions.appserver.ERXComponentRequestHandler>:
> Exception occurred while handling request:
> > java.lang.IllegalStateException:
> <er.extensions.components._private.ERXSwitchComponent>
> : componentName not specified or componentName association
> evaluated to null.
> >
> > If I understand the problem, when I enter the
> QueryAgenda page, there is no assignment of the key
> 'headerInstructionComponentName' to 'AgendaInstructions'.
> this is why WO is throwing the error.
> >
> > I have tried a few iterations of rules:
> >
> > 100 : (task = 'query' and entity.name = 'Agenda') =>
> headerInstructionComponentName = "AgendaInstructions"
> [ERDKeyValueAssignment]
> >
> > 100 : (task = 'query' and entity.name = 'Agenda') =>
> headerInstructionComponentName = "AgendaInstructions"
> [ERDDelayedKeyValueAssignment]
> >
> > but no Joy!!
> >
> > Am I barking up the wrong tree? Could Joy help? Does
> anyone know Joy?
> >
> > 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
>
>
_______________________________________________
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