Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-3604

outjection interferes with page parameters

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 2.0.2.SP1
    • Fix Version/s: 2.1.1.CR1
    • Component/s: None
    • Labels:
      None
    • Environment:

      jboss-4.2.3.GA
      jdk1.5.0_15

      Description

      a field that has been set via a page parameter is not displayed if it is outjected

      Bug.java
      ============================
      package com.mydomain.myproject;

      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.annotations.Out;

      @Name("bug")
      public class Bug {

      private String foo;

      @Out(required = false)
      private String bar;

      public String getFoo()

      { return foo; }

      public void setFoo(String foo)

      { this.foo = foo; }

      public String getBar()

      { return bar; }

      public void setBar(String bar)

      { this.bar = bar; }

      }
      ============================

      bug.xhtml
      ============================
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      template="layout/template.xhtml">

      <ui:define name="body">
      <h:inputText id="bar" value="#

      {bug.bar}"/>
      </ui:define>

      </ui:composition>
      ============================

      bug.page.xml
      ============================
      <?xml version="1.0" encoding="UTF-8"?>
      <page xmlns="http://jboss.com/products/seam/pages"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd">
      <param name="foo" value="#{bug.foo}"/>
      <param name="bar" value="#{bug.bar}

      "/>
      </page>
      ============================

      test url: http://localhost:8080/myproject/bug.seam?foo=foo&bar=bar

      bug: bar is not displayed
      when removing the @Out it is

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                norman.richards Norman Richards
                Reporter:
                brackxm Michael Brackx
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: