Skip to content

View Helper pattern #1263

Open
Open
@iluwatar

Description

@iluwatar
Owner

Description:
The View Helper design pattern aims to separate the business logic from the presentation layer by using helper components to handle processing and formatting. This enhances the maintainability and modularity of the code by promoting a clear separation of concerns.

Main Elements of the Pattern:

  • View Helper: A component that performs complex formatting or data processing tasks.
  • Controller: Directs the request to the appropriate View Helper and subsequently to the view.
  • View: Renders the final output using data prepared by the View Helper.

References:

  1. View Helper Design Pattern - Oracle
  2. Java Design Patterns - Project Contribution Guidelines

Acceptance Criteria:

  1. Create a View Helper class that handles data formatting or processing tasks.
  2. Ensure the Controller directs requests to the appropriate View Helper.
  3. Implement a view that utilizes the data provided by the View Helper to render the final output.

Activity

Linly1080

Linly1080 commented on Apr 23, 2022

@Linly1080

Hi, I'd like to work on this issue. Could it be assigned to me if still available?

iluwatar

iluwatar commented on Sep 10, 2022

@iluwatar
OwnerAuthor
Linly1080

Linly1080 commented on Sep 17, 2022

@Linly1080

@iluwatar sorry, I have no time to do the work now.

24 remaining items

added 10 commits that reference this issue on May 13, 2025

iluwatar#1263 - creating new module for view-helper

iluwatar#1263 - creating Product and ProductViewModel

iluwatar#1263 - creating interfaces for View and ViewHelper

iluwatar#1263 - creating ProductViewHelper and its test

iluwatar#1263 - creating Console View for Product

iluwatar#1263 - creating ProductController

iluwatar#1263 - creating main App and its test

iluwatar#1263 - adding license header

iluwatar#1263 - keeping module in alphabetical order

iluwatar#1263 - creating README and diagrams

linked a pull request that will close this issue on May 13, 2025
added a commit that references this issue on May 13, 2025

iluwatar#1263 apply spotless

moved this from Todo to In Progress in Java Design Patterns projecton May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @iluwatar@Linly1080@PlumHeadd@mernaahmed2020@e5LA

    Issue actions

      View Helper pattern · Issue #1263 · iluwatar/java-design-patterns