[richfaces-issues] [JBoss JIRA] Updated: (RF-4166) Ajax4J - KeepAlive - ajaxOnly Attribute

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Tue Aug 12 07:43:40 EDT 2008


     [ https://jira.jboss.org/jira/browse/RF-4166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski updated RF-4166:
-------------------------------

    Workaround Description: 
to fix this bug, just put an () in the expression around the ternary operator.

 String beanAttributeName = (isAjaxOnly?AjaxPhaseListener.AJAX_BEAN_PREFIX:AjaxPhaseListener.VIEW_BEAN_PREFIX)+beanName;

is there a possibilite to run maven to generate the jar?

Nick: you can recompile just the tag file using whole jar as classpath and then replace it in jar file






  was:
to fix this bug, just put an () in the expression around the ternary operator.

 String beanAttributeName = (isAjaxOnly?AjaxPhaseListener.AJAX_BEAN_PREFIX:AjaxPhaseListener.VIEW_BEAN_PREFIX)+beanName;

is there a possibilite to run maven to generate the jar?






             Fix Version/s: 3.2.2
                  Assignee: Nick Belaevski


> Ajax4J - KeepAlive - ajaxOnly Attribute
> ---------------------------------------
>
>                 Key: RF-4166
>                 URL: https://jira.jboss.org/jira/browse/RF-4166
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>         Environment: WebLogic 10.x  and TomCat6
> JDK 5
>            Reporter: Denis Silva
>            Assignee: Nick Belaevski
>             Fix For: 3.2.2
>
>   Original Estimate: 50 minutes
>  Remaining Estimate: 50 minutes
>
> I had a problem when using, Ajax4j Tag, KeePAlive, if the attribute ajaxOnly set to true.
> There is a simple error in a expression, that put the Bean in FacesContext. 
> When the ajaxOnly is set to true, the beanName is not placed in FacesContext Map properly.
>  String beanAttributeName = isAjaxOnly?AjaxPhaseListener.AJAX_BEAN_PREFIX:AjaxPhaseListener.VIEW_BEAN_PREFIX+beanName;
>         facesContext.getViewRoot().getAttributes().put(beanAttributeName, bean);
> 		return Tag.SKIP_BODY;
> when isAjaxOnly evaluate to true, the String AjaxPhaseListener.AJAX_BEAN_PREFIX is setted to beanAttributeName. and the Bean.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list