Dave Newton wrote:
--- Allen Gilliland <[EMAIL PROTECTED]> wrote:
[...] i removed all my old validation() methods so i

know it's not that.

public class Members extends UIAction

What does UIAction look like (specifically with
regards to interfaces implements and superclasses)?

UIAction is a base class which all of my actions extend and basically it just builds some additional application specific features on top of the ActionSupport class. I won't include the whole thing, but here's a sample ...

public abstract class UIAction extends ActionSupport
        implements UIActionPreparable, UISecurityEnforced {

// a common result name used to indicate the result should list some data
    public static final String LIST = "list";

// the authenticated user accessing this action, or null if client is not logged in
    private UserData authenticatedUser = null;

// the weblog this action is intended to work on, or null if no weblog specified
    private WebsiteData actionWeblog = null;

    // page title
    protected String pageTitle = null;


    public void myPrepare() {
        // no-op
    }

    public String getAbsoluteSiteURL() {
        return RollerRuntimeConfig.getAbsoluteContextURL();
    }

    // access an application config property
    public String getProp(String key) {
        // first try static config
        String value = RollerConfig.getProperty(key);
        if(value == null) {
            value = RollerRuntimeConfig.getProperty(key);
        }

        return (value == null) ? key : value;
    }

    public void addError(String errorKey) {
        addActionError(getText(errorKey));
    }

    public void addError(String errorKey, String param) {
        addActionError(getText(errorKey, errorKey, param));
    }

    public void addError(String errorKey, List args) {
        addActionError(getText(errorKey, args));
    }

    // list of locales to display in web form dropdowns
    public List getLocalesList() {
        return UIUtils.getLocales();
    }

    // list of time zones to display in web form dropdowns
    public List getTimeZonesList() {
        return UIUtils.getTimeZones();
    }

}


As I said above, all my actions extend UIAction, so I would think if there were a problem there then i would be seeing it on all my actions.

The 2 interfaces it implements are custom interfaces which work basically the same way the struts2 XXXAware interfaces work. They are coupled with custom interceptors which take a look at the request/action before the action method is executed and do some prework. This is what they look like ...

public interface UIActionPreparable {

    public void myPrepare();
}

public interface UISecurityEnforced {

    public boolean isUserRequired();

    public boolean isWeblogRequired();

    public String requiredUserRole();

    public short requiredWeblogPermissions();
}


From the debugging output I can see that when struts2 is trying to execute the action I am chaining to it never actually gets to my custom interceptors, so I don't think the problem is there. Plus, none of my custom interceptors return "input" as a result.

not sure what else it could be :(

-- Allen



There must be *some* reason validation is running.

d.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to