Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6857635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:03:00+00:00 2026-05-27T02:03:00+00:00

I am unsure whether I should: Make one view where I use view-parameters Or

  • 0

I am unsure whether I should:

  • Make one view where I use view-parameters
  • Or make one view (seperate xhtml page) for each action

The list I have now displays all the questions that I have in the database, and I have added three buttons that currently toggle between ‘All’, ‘With image’ or ‘Without’.

Now I also want to toggle between ‘Submitted’, ‘Approved’ and ‘Rejected’, and possible still have the option to toggle between showing all questions, only with images or without images.

I can make one backing bean and one view for each, or I could do something like this:

www.someurl.com/path/questionlist.xhtml?toggle=all&status=approved
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:03:01+00:00Added an answer on May 27, 2026 at 2:03 am

    It’s a matter of taste but i like to think of path parameters as distinguishing between different resources and of request params as of options.

    So if your ‘submitted’, ‘approved’ and ‘rejected’ questions are separate entities do separate views for them.

    You can experiment with path variables and friendly urls and use

    www.someurl.com/path/questions
    

    to list all questions and

    www.someurl.com/path/questions/submitted
    www.someurl.com/path/questions/approved
    www.someurl.com/path/questions/rejected
    

    and use ‘all’, ‘with image’ and ‘without’ as parameters (as they don’t esentially change what you’re viewing just how you view it).

    If not, use them all as parameters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am unsure whether a statement and resultset should be closed after each query
I'm writing some Erlang code and I'm very unsure whether I should let everything
I have a Java class that I'm debating what I should make it into
I'm unsure about whether to use a mutable struct or a mutable class. My
I'm creating a multi-threaded application in C using Linux. I'm unsure whether I should
I am using NHibernate with mySQL 5 and I am a bit unsure whether
When I am unsure about some thing for a project, I usually use a
I have a class that should hold a reference to some data, without owning
I'm having trouble doing simple functions on a data frame and am unsure whether
I was unsure whether to ask here or in superuser, but this site seemed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.