Re: WOOgnl ... cool

From: Mike Schrag (mschra..dimension.com)
Date: Thu May 10 2007 - 11:14:53 EDT

  • Next message: Mike Schrag: "Re: WOOgnl ... cool"

    Yes .. and you can register your own also. TagProcessor is only
    necessary if you want to munge attributes rather than just alias.
    NotTagProcessor has to inject "negate = true" into the bindings.

    ms

    On May 10, 2007, at 10:53 AM, Kieran Kelleher wrote:

    > Answering one of my own questions .... this is the list of shortcuts.
    >
    >
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOString", "string");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOString", "str");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut("ERXElse",
    > "else");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOConditional", "if");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOConditional", "condition");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOConditional", "conditional");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOHyperlink", "link");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WORepetition", "loop");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOTextField", "textfield");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOCheckBox", "checkbox");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOHiddenField", "hidden");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOPopUpButton", "select");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WORadioButton", "radio");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOPasswordField", "password");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOFileUpload", "upload");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut("WOText",
    > "text");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut("WOForm",
    > "form");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("WOSubmitButton", "submit");
    > WOHelperFunctionHTMLTemplateParser.registerTagShortcut
    > ("ERXLocalizedString", "localized");
    >
    >
    > WOHelperFunctionHTMLTemplateParser.registerTagProcessorForElementType(
    > new NotTagProcessor(), "not");
    >
    > On May 10, 2007, at 10:45 AM, Kieran Kelleher wrote:
    >
    >> What shortcuts are included in WOOgnl? Looking at source I only
    >> see one subclass of WOTagProcessor which is the "not" tag
    >> processor. But 'if' works ... but where is it declared in
    >> WOOgnl ..... is there a list of shortcuts (which I need to define
    >> in preferences to use since they are not already in there)
    >



    This archive was generated by hypermail 2.0.0 : Thu May 10 2007 - 11:15:06 EDT