something more.

the problem is surfacing on the default tab. My login method (if successful) 
returns:

                return 
((Session)session()).navController().listAdReleaseAction();

Here is my listAdReleaseAction:

public WOComponent listAdReleaseAction() {
        EOEditingContext ec = ERXEC.newEditingContext();
        ec.lock();
        try {
                EODatabaseDataSource ds = new EODatabaseDataSource(ec, 
ADRELEASE);
                                                
                ERXFetchSpecification<AdRelease> fs = new 
ERXFetchSpecification<AdRelease>(AdRelease.ENTITY_NAME, 
        ERXQ.equals(AdRelease.IS_CLOSED_KEY, 
false).and(AdRelease.AD_TYPE.eq("P")), null);
                        
                ds.setFetchSpecification(fs);
                        
                ERDListPageInterface lpi = (ERDListPageInterface) 
pageForConfigurationNamed("ListAdRelease");
                        
                lpi.setDataSource(ds);

                if(lpi instanceof D2WPage) {
                        D2WPage page = (D2WPage)lpi;
                        page.d2wContext().takeValueForKey("ListAdRelease", 
"navigationState");
                }

                return (WOComponent) lpi;
        }
        finally {
                ec.unlock();
        }
}

What's interesting is that the LftActionCell does indeed go away on my second 
tab. the second tab's action method returns a slightly different subset of the 
data ((AdRelease.AD_TYPE.eq("D"))).

So if I am logged in as a user that has no permission to edit, tab one's table 
shows the space for the LftActionCell. But tab2 does not exhibit this anomaly.

I am going to examine my rules carefully. Maybe there is something different 
between these two tabs.

Ted


--- On Thu, 2/9/12, David LeBer <[email protected]> wrote:

> From: David LeBer <[email protected]>
> Subject: Re: isEntityEditable still showing space when false
> To: "Theodore Petrosky" <[email protected]>
> Cc: [email protected]
> Date: Thursday, February 9, 2012, 8:42 AM
> What does the method
> session.user.security.canEditAdRelease() look like?
> 
> D
> 
> --
> David LeBer
> Codeferous Software
> 
> On 2012-02-09, at 12:43 AM, Theodore Petrosky wrote:
> 
> > I have a boolean to control isEntityEditable. My users
> that have this set to false still have a  LftActionCell
> that takes up space. So, If I log in, I can edit rows and I
> see the Edit button. Jane logs in and can not edit entries.
> There are no Edit buttons but the space exists.
> > 
> > 
> > 101 : entity.name = 'AdRelease' => isEntityEditable
> = {"conditionKey" =
> "session.user.security.canEditAdRelease"; "trueValue" =
> "true"; 
> > }
> [er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment]
> > 
> > Am i doing this wrong? I would like to get rid of the
> space.
> > 
> > Ted
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list      ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> > 
> > This email sent to [email protected]
> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to