Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha1
-
Fix Version/s: 2.0-Alpha3, 2.0.0
-
Labels:None
-
Environment:server
Description
Rather than force a page reload (which is a non-Faces GET request and can discard user input), it should be possible to specify "head" requirements at the application level (also temporary, until we understand why adding script to the body is not sufficient).
Issue Links
Activity
Mircea Toma
created issue -
Mircea Toma
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Component/s | Bridge [ 10011 ] | |
Component/s | Framework [ 10013 ] |
Deryk Sinotte
made changes -
Salesforce Case | [] | |
Fix Version/s | 2.0-Alpha3 [ 10032 ] | |
Assignee | Mircea Toma [ mircea.toma ] |
Deryk Sinotte
made changes -
Deryk Sinotte
made changes -
Deryk Sinotte
made changes -
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee Priority | P1 |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21363 | Wed May 05 15:39:27 MDT 2010 | mircea.toma | |
Files Changed | ||||
MODIFY
/icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/context/DOMPartialViewContext.java
|
Mircea Toma
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 2.0.0 [ 10230 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P1 |
To detect DOM differences that reach the 'head' or 'body' elements the fix adds temporarily 'id' attributes to these elements if they're missing. By doing this the diff process will stop before reaching the 'html' element.
The 'body' update is applied properly by the JSF bridge as long as the update will look like:
<update id="javax.faces.ViewBody"><![CDATA[<body>.......</body>]]></update>
The expected 'head' update looks similar:
<update id="javax.faces.ViewHead"><![CDATA[<head>.......</head>]]></update>
Unfortunately the update is not handled currently (JSF 2.0.2) by JSF. In the future we could bypass the 'head' level update by sending 'eval' commands back to the bridge. These code sent can modify dynamically the existing head element using other JS APIs. See:
http://www.hunlock.com/blogs/Howto_Dynamically_Insert_Javascript_And_CSS
http://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript