You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gurkan Erdogdu (JIRA)" <de...@myfaces.apache.org> on 2010/07/07 18:56:49 UTC

[jira] Created: (MYFACES-2791) render view params not working for EL expressions

render view params not working for EL expressions
-------------------------------------------------

                 Key: MYFACES-2791
                 URL: https://issues.apache.org/jira/browse/MYFACES-2791
             Project: MyFaces Core
          Issue Type: Bug
            Reporter: Gurkan Erdogdu


    	<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}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (MYFACES-2791) render view params not working for EL expressions

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Korherr resolved MYFACES-2791.
------------------------------------

    Fix Version/s: 2.0.1-SNAPSHOT
       Resolution: Fixed

> render view params not working for EL expressions
> -------------------------------------------------
>
>                 Key: MYFACES-2791
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2791
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0
>            Reporter: Gurkan Erdogdu
>            Assignee: Jakob Korherr
>             Fix For: 2.0.1-SNAPSHOT
>
>
>     	<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}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (MYFACES-2791) render view params not working for EL expressions

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Korherr reopened MYFACES-2791:
------------------------------------

      Assignee: Jakob Korherr

Actually I see the same issue on my machine when using MyFaces. Checking with Mojarra, they seem to evaluate the params for ValueExpressions, although I could not find it in the spec (javadoc). However it makes sence and thus we should do the same.

> render view params not working for EL expressions
> -------------------------------------------------
>
>                 Key: MYFACES-2791
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2791
>             Project: MyFaces Core
>          Issue Type: Bug
>            Reporter: Gurkan Erdogdu
>            Assignee: Jakob Korherr
>
>     	<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}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.