Package de.odysseus.calyxo.panels

Examples of de.odysseus.calyxo.panels.PanelsSupport


   * Then, push first item and evaluate body.
   */
  public int doStartTag() throws JspException {
    if (log.isTraceEnabled())
      log.trace("list " + name);
    PanelsSupport support = PanelsSupport.getInstance(pageContext);
    context = support.getContext(pageContext);

    ListConfig list = context.lookupListConfig(name);
    if (list == null) {
      throw new JspException("Could not get list " + name);
    }
View Full Code Here


   */
  public int doStartTag() throws JspException {
    if (log.isTraceEnabled())
      log.trace("panel " + name);

    PanelsSupport support = PanelsSupport.getInstance(pageContext);
    context = support.getContext(pageContext);

    panel = context.lookupPanelConfig(name);
    if (panel == null) {
      throw new JspException("Could not get panel " + name);
    }
View Full Code Here

   * forward has been done)
   * @throws ServletException
   * @throws IOException
   */
  protected boolean dispatch(HttpServletRequest request, HttpServletResponse response, String path, boolean doInclude) throws ServletException, IOException {
    PanelsSupport support = PanelsSupport.getInstance(request);
    Locale locale = I18nSupport.getInstance(request).getLocale(request);
    PanelConfig panel = support.findPanelConfig(path, locale);
    if (panel != null) {
      if (log.isTraceEnabled()) {
        log.trace("panel " + panel.getName());
      }
      String template = panel.findTemplate(locale);
      if (template == null) {
        throw new ServletException("Cannot find template for panel " + panel.getName());
      }

      PanelsContext context = support.getOrCreateContext(request, locale);

      context.push(panel);

      try {
        if (doInclude) {
View Full Code Here

    }
    if (forward.getModule() != null && !forward.getModule().equals(context.getModuleConfig().getPrefix())) {
      return false;
    }
    HttpServletRequest request = context.getRequest();
    PanelsSupport support = PanelsSupport.getInstance(request);
    Locale locale = I18nSupport.getInstance(request).getLocale(request);
    PanelConfig panel = support.findPanelConfig(forward.getPath(), locale);
    if (panel != null) {
      String template = panel.findTemplate(locale);
      if (template == null) {
        throw new ServletException("Cannot find template for panel " + panel.getName());
      }
      PanelsContext panels = support.getOrCreateContext(request, locale);
      boolean include = !panels.isEmpty() || context.getResponse().isCommitted();

      panels.push(panel);
      try {
        RequestDispatcher rd = context.getContext().getRequestDispatcher(template);
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.panels.PanelsSupport

Copyright © 2018 www.massapicom. 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.