Skip to content

Inconsistent capitalization of pdfRenderingService #29

Description

@micronax

When importing the service in a controller the service needs to be named PdfRenderingService but when using in the controller action it must be pdfRenderingService

class SystemController {
    def PdfRenderingService

    def compose_one_for() {
        if (!params?.id) params.id = 1
        def customer = Customer.findById(params.id)
        pdfRenderingService.render(template: "/pdfs/firstLetter", model:[customer:customer], response)
    }
}

When changing the capitalization of pdfRenderingService in one case it wont work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions