Code Monkey home page Code Monkey logo

Comments (23)

glassfishrobot avatar glassfishrobot commented on September 23, 2024

Reported by @edburns

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

@edburns said:
This is the java.net issue tracker version of JSFA162 from Scarab.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

@edburns said:
enact

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

rogerk said:
Sent proposal to EG.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

rogerk said:
Changes:

SECTION: Modified Files

M jsf-api/src/javax/faces/render/ResponseStateManager.java
---- added static RENDER_KIT_ID_PARAM String to be used as the
---- name of the hidden field for the renderKitId.
M jsf-ri/conf/share/jsf_core.tld
---- added renderKitId attribute for tag "view"
M jsf-ri/src/com/sun/faces/application/ViewHandlerImpl.java
---- in calculateRenderKitId(), check for the existence of the
---- renderKitId as a request parameter (was written as hidden field)
---- if present, return that as the renderKitId. Otherwise, return
---- the defaultRenderKitId (if present), otherwise, return HTML_BASIC.
---- Make sure we use the ResponseStateManager.writeState implementation
---- to write out the renderKitId hidden field.
---- ResponseStateManagerImpl.writeState does it for both. However, the
---- calls to that method only happen for client side state saving.
---- Hence the additional call to ResponseStateManager.writeState for server
---- side state saving.
M jsf-ri/src/com/sun/faces/renderkit/ResponseStateManagerImpl.java
---- only write out the state of the view for client side state saving;
---- However, write out the renderKitId hidden field regardless of state
---- saving mode.
M jsf-ri/src/com/sun/faces/taglib/jsf_core/ViewTag.java
---- added renderKitId attribute.
---- if there is no renderKitId attribute specified, set the UIViewRoot
---- renderKitId property to be the defaultRenderKitId (if present) or,
---- HTML_BASIC (if not present).
M jsf-ri/systest/build-tests.xml
M jsf-ri/systest/src/com/sun/faces/systest/model/TestBean.java
M jsf-ri/systest/src/com/sun/faces/systest/render/TextRenderer.java
M jsf-ri/systest/web/WEB-INF/faces-config.xml

A jsf-ri/systest/src/com/sun/faces/systest/RenderKitsTestCase.java
A jsf-ri/systest/src/com/sun/faces/systest/render/ButtonRenderer.java
A jsf-ri/systest/src/com/sun/faces/systest/render/CustomRenderKitImpl.java
A
jsf-ri/systest/src/com/sun/faces/systest/render/CustomResponseStateManagerImpl.java
A jsf-ri/systest/src/com/sun/faces/systest/render/CustomResponseWriter.java
A jsf-ri/systest/src/com/sun/faces/systest/render/FormRenderer.java
A jsf-ri/systest/web/renderkit04.jsp
A jsf-ri/systest/web/renderkit05.jsp

---- this test consists of two jsp pages. renderkit04.jsp has no
---- renderKitId specified in <f:view>; renderKit05.jsp has a
---- <f:view renderKitId="CUSTOM">; Each page has a submit button on it
---- to transer control to the other page.
---- As each page is displayed, the renderKitId and responseWriter are
---- displayed as present at the time in UIViewRoot and FacesContext.
---- Also note that renderkit05.jsp utilizes a CUSTOM renderkit/responseWriter/
---- responseStateManager/and components.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

rogerk said:
Created an attachment (id=25)
Change bundle for this issue.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

rogerk said:
Change bundle forth coming.

SECTION: Modified Files

M jsf-ri/conf/share/jsf_core.tld
---- Added renderKitId attribute for "view"
M jsf-ri/src/com/sun/faces/application/ViewHandlerImpl.java
---- calculateRenderKitId - attempt to get renderKitId from request
M jsf-ri/src/com/sun/faces/renderkit/ResponseStateManagerImpl.java
---- write out renderKitId as hidden field
---- (if there is a default specified, and the render kit identifier
---- is not the default).
M jsf-ri/src/com/sun/faces/taglib/jsf_core/ViewTag.java
---- add renderKitId
---- setProperties: set renderKitId (if not null) on UIViewRoot
---- if renderKitId is null, and renderKitId not
---- already set on UIViewRoot, use
---- defaultRenderKitId. As a last resort, use
---- HTML_BASIC.
M jsf-ri/systest/build-tests.xml
---- add new test
M jsf-ri/systest/src/com/sun/faces/systest/model/TestBean.java
M jsf-ri/systest/src/com/sun/faces/systest/render/TextRenderer.java
M jsf-ri/systest/web/renderkit03A.jsp
M jsf-ri/systest/web/WEB-INF/faces-config.xml
M jsf-ri/systest/web/golden/renderkit03A.txt
---- for new test

A jsf-ri/systest/src/com/sun/faces/systest/RenderKitsTestCase.java
A jsf-ri/systest/src/com/sun/faces/systest/render/ButtonRenderer.java
A jsf-ri/systest/src/com/sun/faces/systest/render/CustomRenderKitImpl.java
A
jsf-ri/systest/src/com/sun/faces/systest/render/CustomResponseStateManagerImpl.java
A jsf-ri/systest/src/com/sun/faces/systest/render/CustomResponseWriter.java
A jsf-ri/systest/src/com/sun/faces/systest/render/FormRenderer.java
A jsf-ri/systest/web/renderkit04.jsp
A jsf-ri/systest/web/renderkit05.jsp
---- for new test

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

rogerk said:
Created an attachment (id=28)
Issue 50 change bundle

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

rogerk said:
Another change bundle forthcoming.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

rogerk said:
SECTION: Modified Files

M jsf-ri/conf/share/jsf_core.tld
---- added renderKitId attribute for "view"
M jsf-ri/src/com/sun/faces/application/ViewHandlerImpl.java
---- calculateRenderKitId - attempt to get renderKitId from request
M jsf-ri/src/com/sun/faces/renderkit/ResponseStateManagerImpl.java
---- write out renderKitId as hidden field
---- (if there is a default specified, and the render kit identifier
---- is not the default).
M jsf-ri/src/com/sun/faces/taglib/jsf_core/ViewTag.java
---- add renderKitId
---- setProperties: set renderKitId (if not null) on UIViewRoot
---- if renderKitId is null, and renderKitId not
---- already set on UIViewRoot, use
---- defaultRenderKitId. As a last resort, use
---- HTML_BASIC.
M jsf-ri/systest/build-tests.xml
---- add new test
M jsf-ri/systest/src/com/sun/faces/systest/model/TestBean.java
M jsf-ri/systest/src/com/sun/faces/systest/render/TextRenderer.java
M jsf-ri/systest/web/renderkit03A.jsp
M jsf-ri/systest/web/WEB-INF/faces-config.xml
M jsf-ri/systest/web/golden/renderkit03A.txt

---- for new test

A jsf-ri/systest/src/com/sun/faces/systest/RenderKitsTestCase.java
A jsf-ri/systest/src/com/sun/faces/systest/render/ButtonRenderer.java
A jsf-ri/systest/src/com/sun/faces/systest/render/CustomRenderKitImpl.java
A
jsf-ri/systest/src/com/sun/faces/systest/render/CustomResponseStateManagerImpl.java
A jsf-ri/systest/src/com/sun/faces/systest/render/CustomResponseWriter.java
A jsf-ri/systest/src/com/sun/faces/systest/render/FormRenderer.java
A jsf-ri/systest/web/renderkit-default-clear.jsp
A jsf-ri/systest/web/renderkit-default.jsp
A jsf-ri/systest/web/renderkit04.jsp
A jsf-ri/systest/web/renderkit05.jsp
A jsf-ri/systest/web/renderkit06.jsp
---- for new test

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

rogerk said:
Created an attachment (id=29)
Change bundle for this issue.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

@edburns said:
M jsf-ri/src/com/sun/faces/renderkit/ResponseStateManagerImpl.java

Don't write HTML manually. Use responseWriter.startElement(),
addAttribute(), etc. Make sure to end the element.

Other than that, looks great. Make that change and
you have r=edburns.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

@edburns said:
fixed.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

@edburns said:
Prepare to delete "spec" subcomponent.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

@edburns said:
Move all to 1.2

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

@manfredriem said:
Closing resolved issue out

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

File: issue-50.zip
Attached By: rogerk

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

File: issue-50.zip
Attached By: rogerk

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

File: issue-50.zip
Attached By: rogerk

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

Issue-Links:
depends on
JAVASERVERFACES_SPEC_PUBLIC-480
JAVASERVERFACES_SPEC_PUBLIC-482

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

Was assigned to rogerk

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-50

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on September 23, 2024

Marked as fixed on Thursday, March 4th 2010, 6:09:23 am

from javaserverfaces-spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.