[JBoss JIRA] Created: (RF-6978) realworld/shelves, albums: Changed shelf or album names didn't change in the tree
by Inna Shchibrya (JIRA)
realworld/shelves, albums: Changed shelf or album names didn't change in the tree
---------------------------------------------------------------------------------
Key: RF-6978
URL: https://jira.jboss.org/jira/browse/RF-6978
Project: RichFaces
Issue Type: Bug
Components: examples
Affects Versions: 3.3.1
Environment: All browsers
Reporter: Inna Shchibrya
Assignee: Andrey Markhel
Priority: Minor
1. Login to application.
2. Select your shelf and click Edit shelf properties link.
3. Change shelf name and click Save button. --> Shelf name is changed on the page but isn't changed in the tree.
4. Click on any shelf or album. --> Shelf name is changed in the tree.
5. Repeat 2-4 steps for Edit album properties. --> There is the same result.
Expected result: Shelf and album names should be changed on the page and in the tree simultaneously.
--
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
15 years, 7 months
[JBoss JIRA] Resolved: (RF-6746) a4j:include - FacesContext.getCurrentInstance().getViewRoot().getViewId() isn't always correct
by Alexander Smirnov (JIRA)
[ https://jira.jboss.org/jira/browse/RF-6746?page=com.atlassian.jira.plugin... ]
Alexander Smirnov resolved RF-6746.
-----------------------------------
Fix Version/s: 3.3.2.GA
(was: Future)
Resolution: Done
encodeAll method now implemented as all other lifecycle methods.
> a4j:include - FacesContext.getCurrentInstance().getViewRoot().getViewId() isn't always correct
> ----------------------------------------------------------------------------------------------
>
> Key: RF-6746
> URL: https://jira.jboss.org/jira/browse/RF-6746
> Project: RichFaces
> Issue Type: Bug
> Reporter: David Schlotfeldt
> Assignee: Alexander Smirnov
> Fix For: 3.3.2.GA
>
>
> When a request is made by from inside a a4j:include component UIInclude will set the ViewIdHolder to it self. It does this to ensure FacesContext.getCurrentInstance().getViewRoot().getViewId() returns the viewId of the a4j:include.
> Everything works fine if you only need to access the viewId when its already rendered and its posting back.
> If you, as I am, change the viewId of the UIInclude (the UIInclude is bound to a property of a managed bean), when the page is rendered back it renders the new "view" assigned to the UIInclude. When its rendered any manage-bean used from inside the a4j:include will see the viewId as the "outter view" not the view assigned to the a4j:include.
> I believe the simplest and best solution easiest solution is when rendering the children of uiinclude to:
> ---
> AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
> ViewIdHolder viewIdHolder = ajaxContext.getViewIdHolder(); // Store reference to current
> ajaxContext.setViewIdHolder(this); // This is UIInclude
> // render children here...
> ajaxContext.setViewIdHolder(viewIdHolder ); // Put previous back
> ---
--
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
15 years, 7 months