Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2791

render view params not working for EL expressions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1
    • JSR-314
    • None

    Description

      <navigation-case>
      <from-action>#

      {blog.addBlog}

      </from-action>
      <if>#

      {true}

      </if>
      <to-view-id>/view.xhtml</to-view-id>
      <redirect>
      <view-param>
      <name>id</name>
      <value>#

      {blog.idm}</value>
      </view-param>
      </redirect>
      </navigation-case>

      @ManagedBean(name="blog")
      @SessionScoped
      public class Blog {

      private String content;

      private static AtomicInteger id = new AtomicInteger(0);

      private String idm;

      public static AtomicInteger getId() { return id; }

      public static void setId(AtomicInteger id) { Blog.id = id; }

      public String getIdm() { return idm; }

      public void setIdm(String idm) { this.idm = idm; }

      public String addBlog(){ this.idm = Integer.toString(id.incrementAndGet()); return null; }

      public String getContent() { return content; }

      public void setContent(String content) { this.content = content; }
      }

      Produces http://localhost:8080/session_1_blog/view.jsf?id=%23{blog.idm}

      Attachments

        Activity

          People

            jakobkorherr Jakob Korherr
            gerdogdu Gurkan Erdogdu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: