Examples of IScriptReporter


Examples of org.apache.beehive.netui.tags.javascript.IScriptReporter

        }

        // check for the nodes that are expanded...
        // Add the script support for the tree.
        if (_trs.runAtClient) {
            IScriptReporter sr = getScriptReporter();
            if (sr == null) {
                String s = Bundle.getString("Tags_TreeRunAtClientSC", null);
                registerTagError(s, null);
                reportErrors();
                return;
View Full Code Here

Examples of org.apache.beehive.netui.tags.javascript.IScriptReporter

            return null;

        // Legacy Java Script support -- This writes out a single table with both the id and names
        // mixed.  This is legacy support to match the pre beehive behavior.
        String idScript = null;
        IScriptReporter scriptReporter = getScriptReporter();
        ScriptRequestState srs = ScriptRequestState.getScriptRequestState(request);
        if (TagConfig.isLegacyJavaScript()) {
            idScript = srs.mapLegacyTagId(scriptReporter, id, _state.id);
        }
View Full Code Here

Examples of org.apache.beehive.netui.tags.javascript.IScriptReporter

        }

        WriteRenderAppender writer = new WriteRenderAppender(pageContext);

        // verify hat we are in a container with run at client on...
        IScriptReporter sr = getScriptReporter();
        ScriptRequestState srs = ScriptRequestState.getScriptRequestState(req);
        if (!srs.isFeatureWritten(CoreScriptFeature.DYNAMIC_INIT)) {
            String s = Bundle.getString("Tags_DivPanelHtmlRunAtClient", null);
            registerTagError(s, null);
            reportAndExit(SKIP_BODY);
View Full Code Here

Examples of org.apache.beehive.netui.tags.javascript.IScriptReporter

    }

    private String mapLegacyTagId(String tagId, String value)
    {
        // @todo: this is sort of broken, it needs to be updated
        IScriptReporter scriptReporter = getScriptReporter();
        ScriptRequestState srs = ScriptRequestState.getScriptRequestState((HttpServletRequest) pageContext.getRequest());
        String scriptId = srs.mapLegacyTagId(scriptReporter,tagId, value);
        return scriptId;
    }
View Full Code Here

Examples of org.apache.beehive.netui.tags.javascript.IScriptReporter

        //Emit javascript if this button needs to sumbit the form or open a popup window
        if (idScript != null || _popupSupport != null || buttonDisable || buttonDisableAndSubmit) {
            ScriptRequestState srs = ScriptRequestState.getScriptRequestState(request);
            InternalStringBuilder script = new InternalStringBuilder(32);
            StringBuilderRenderAppender scriptWriter = new StringBuilderRenderAppender(script);
            IScriptReporter sr = getScriptReporter();

            if (buttonDisableAndSubmit)
                srs.writeFeature(sr, scriptWriter, CoreScriptFeature.BUTTON_DISABLE_AND_SUBMIT, true, false, null);
            if (buttonDisable)
                srs.writeFeature(sr, scriptWriter, CoreScriptFeature.BUTTON_DISABLE, true, false, null);
View Full Code Here

Examples of org.apache.beehive.netui.tags.javascript.IScriptReporter

     * at this node an moves upward through the parental chain.
     * @return a <code>ScriptReporter</code> or null if there is not one found.
     */
    protected IScriptReporter getScriptReporter()
    {
        IScriptReporter sr = (IScriptReporter) SimpleTagSupport.findAncestorWithClass(this, IScriptReporter.class);
        return sr;
    }
View Full Code Here

Examples of org.apache.beehive.netui.tags.javascript.IScriptReporter

        }

        // check for the nodes that are expanded...
        // Add the script support for the tree.
        if (_trs.runAtClient) {
            IScriptReporter sr = getScriptReporter();
            if (sr == null) {
                String s = Bundle.getString("Tags_TreeRunAtClientSC", null);
                registerTagError(s, null);
                reportErrors();
                return;
View Full Code Here

Examples of org.apache.beehive.netui.tags.javascript.IScriptReporter

            return null;

        // Legacy Java Script support -- This writes out a single table with both the id and names
        // mixed.  This is legacy support to match the pre beehive behavior.
        String idScript = null;
        IScriptReporter scriptReporter = getScriptReporter();
        ScriptRequestState srs = ScriptRequestState.getScriptRequestState(request);
        if (TagConfig.isLegacyJavaScript()) {
            idScript = srs.mapLegacyTagId(scriptReporter, id, _state.id);
        }
View Full Code Here

Examples of org.apache.beehive.netui.tags.javascript.IScriptReporter

        if (hasErrors()) {
            reportErrors();
        }

        // Get the script reporter
        IScriptReporter sr = getScriptReporter();
        if (sr != null) {
            //if (!sr.isInitScriptWritten()) {
            //    String s = Bundle.getString("Tags_ClientReqScriptHeader", null);
            //    registerTagError(s, null);
            //}

            // write out any errors
            ErrorHandling.reportCollectedErrors(pageContext, this);

            // write out the script before the end tag.
            sr.writeScript(_writer);

            if (sr instanceof Html) {
                Html htmlSr = (Html) sr;
                if (htmlSr.getIdScope() != null) {
                    htmlSr.endScope(_writer);
View Full Code Here

Examples of org.apache.beehive.netui.tags.javascript.IScriptReporter

     * at this node an moves upward through the parental chain.
     * @return a <code>ScriptReporter</code> or null if there is not one found.
     */
    protected IScriptReporter getScriptReporter()
    {
        IScriptReporter sr = (IScriptReporter) SimpleTagSupport.findAncestorWithClass(this, IScriptReporter.class);
        return sr;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.