Giter Site home page Giter Site logo

Comments (5)

stolp avatar stolp commented on May 27, 2024

I also have this issue with DataTableExporter:

    protected void exportRow(FacesContext context, DataTable table, int rowIndex) {
        if (rowIndex != NO_ROW_INDEX_REQUIRED) {
            table.setRowIndex(rowIndex);
            if (!table.isRowAvailable()) {
                return;
            }
        }

        super.addCells(context, table);
    }

This should be addCells(context, table); at the end of the method instead, to make the addCells method effectivly overwritable.

from primefaces.

Rapster avatar Rapster commented on May 27, 2024

I'll most probably deprecate ExporterUtils and put everything back in TableExporter 😢

from primefaces.

stolp avatar stolp commented on May 27, 2024

I still have a suggestion for improving this:

I think it would be beneficial if utility methods in TableExporter were protected, so users can override them individually.

Right now, to have a custom implementation of getComponentValue(), I have to override both getColumnValue() and addCells() as well.

Or am I missing something? Sorry for not having noticed that during review.

from primefaces.

Rapster avatar Rapster commented on May 27, 2024

They're all public or protected, what am I missing?

from primefaces.

stolp avatar stolp commented on May 27, 2024

Right. My excuses, I was apparently overthinking this.

It is good enough as it is I guess.

from primefaces.

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.