Code Monkey home page Code Monkey logo

Comments (14)

glassfishrobot avatar glassfishrobot commented on June 22, 2024

Reported by @edburns

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

@edburns said:
move to p4

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

@edburns said:
Give to Roger.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

rogerk said:
Adam Winer wrote:

Roger Kitain wrote:

Adam Winer wrote:

-1; I'd suggest instead adding "headerClass" and "footerClass" to
<h:column>.

I don't have a problem with this except for this question..
Did you intend "headerClass"/"footerClass" to be properties on the
UIColumn component? "headerClass"/"footerClass" are today are renderer
dependent attributes. And, we don't have a renderer for UIColumn.

These would definitely be renderer-specific properties, and imply
the existence of an HtmlColumn subclass. TableRenderer could still
render the UIColumns on their behalf (including getting these
properties, or you could move the rendering of , etc.) down
to the ColumnRenderer. Which way you do it is at least partly
an implementation decision, but the latter's a bit better since
it would let someone write an alternative column renderer.

– Adam

I've taken the approach of generating an HtmlColumn subclass.
TableRenderer renders the UIColumns (as it does today), and it gets
the "headerClass"/"footerClass" properties from each column.

example:

<h:dataTable......
<h:column headerClass="column-header" footerClass="column-footer".....

By default, the "headerClass"/"footerClass" at the "dataTable" level would
also be used at the column level (as it is done today), but specifying
"headerClass"/footerClass" at the column level overrides it.

-roger

SECTION: Modified Files

M jsf-api/doc/standard-html-renderkit-base.xml
M jsf-api/doc/standard-html-renderkit.xml
— added entry for HtmlColumn
— included column-props.xml
M jsf-ri/src/com/sun/faces/renderkit/html_basic/TableRenderer.java
— for each child column, render the headerClass/footerClass column
attributes (if present); Otherwise default to the table level
headerClass/footerClass (if present)
M jsf-ri/src/com/sun/faces/taglib/html_basic/ColumnTag.java
— add headerClass/footerClass properties; include in setProperties method.
M jsf-ri/web/test/RenderResponse_correct
— new golden file for test
M jsf-ri/web/test/TestRenderResponsePhase.jsp
— include h:dataTable with two nested columns
M jsf-tools/conf/TAG-DEF-12.txt
M jsf-tools/conf/TAG-DEF-21.txt
— include headerClass/footerClass attributes

A jsf-api/doc/column-props.xml
— new properties for "column" (headerClass/footerClass)

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

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

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

@edburns said:
RK> SECTION: Modified Files
RK> ----------------------------
RK> M jsf-api/doc/standard-html-renderkit-base.xml
RK> M jsf-api/doc/standard-html-renderkit.xml
RK> — added entry for HtmlColumn
RK> — included column-props.xml

Ok.

RK> M jsf-ri/src/com/sun/faces/renderkit/html_basic/TableRenderer.java
RK> — for each child column, render the headerClass/footerClass column
RK> attributes (if present); Otherwise default to the table level
RK> headerClass/footerClass (if present)

Ok.

RK> M jsf-ri/src/com/sun/faces/taglib/html_basic/ColumnTag.java
RK> — add headerClass/footerClass properties; include in setProperties method.
RK>

OK. We have to remember to convert these to the new setter type of
a javax.el.Expression subclass.

RK> M jsf-ri/web/test/RenderResponse_correct
RK> — new golden file for test
RK> M jsf-ri/web/test/TestRenderResponsePhase.jsp
RK> — include h:dataTable with two nested columns
RK> M jsf-tools/conf/TAG-DEF-12.txt
RK> M jsf-tools/conf/TAG-DEF-21.txt
RK> — include headerClass/footerClass attributes
RK>

RK> A jsf-api/doc/column-props.xml
RK> — new properties for "column" (headerClass/footerClass)

Are we sure that it's space separated, and not comma delimited? If so,
r=edburns.

Ed

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

rogerk said:
checked in.

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

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

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

@edburns said:
Move all to 1.2

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

@manfredriem said:
Closing resolved issue out

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

File: issue-4.zip.gz
Attached By: rogerk

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

Was assigned to rogerk

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

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

from javaserverfaces-spec.

glassfishrobot avatar glassfishrobot commented on June 22, 2024

Marked as fixed on Thursday, March 4th 2010, 6:09:29 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.