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 7167263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:32:58+00:00 2026-05-28T14:32:58+00:00

Does anyone have a link to a concise summary of what makes a portlet

  • 0

Does anyone have a link to a concise summary of what makes a portlet “JSR-286 compliant” vs being only “JSR-168 compliant”. I’ve got a copy of the spec and that’s anything but concise so linking the spec is not a useful answer. I’ve searched the web for an hour now and I’ve found nothing that is clear (aside from the spec, which of course requires that you read the previous spec too, and then weed out the “new features” from the “required compliance”.

Particularly I’ve found that there’s quite a bit of confusion out there on the necessity of web.xml, which appears to come from people using Liferay and not realizing that Liferay is dropping in a web.xml for them.

Do JSR-286 portlets require a web.xml file in their WAR files?

What I’d really like is something that contains one or more of the following lists:

  • Things you have to do to a JSR-168 to make it become JSR-286 compliant
  • Things you must not do, that would cause an otherwise JSR-286 compliant portlet to be considered only JSR-168.

You can leave “use the portlet-app_2_0.xsd” off the list, as I consider that part obvious.

I’m open to the answer that both lists are empty aside from the DTD/xsd for portlet.xml, and the difference is only in what the portal supports, but please back that assertion up with a link or other reference.

The reason I care is I see posts about Vaadin portlets in Liferay that imply that some features are not available for JSR-168 portlets… It may also be that some logic in Liferay switches based on which version of portlet.xml it sees, but I haven’t confirmed that either so that would be interesting information too, but not the answer to my question.

  • 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-28T14:32:59+00:00Added an answer on May 28, 2026 at 2:32 pm

    According to this doc, but it’s also mentioned in jsr286:

    The JSR 286 spec(Portlet 2.0) does not break binary compatibility with JSR168(Portlet 1.0). This means that all portlets written against the Portlet 1.0 specification can run unchanged. The only exceptions to this rule are:

    renderResponse.setContentType is no longer required before calling getWriter or getOutputstream. In JSR168, calling getWriter or getOutputstream without previously setting the content type resulted in an IllegalStateException.

    getProtocol for included servlets / JSPs returns ‘HTTP/1.1’, In JSR168, it returned null.

    So as long as your jsr168 portlet doesn’t depend on the value returned by getProtocol() you’re safe (ie every jsr168 portlet is a jsr286 portlet).

    The posts you see seem to be logical as jsr286 is a newer spec and there are some features that make jsr268 portlet not a jsr168 portlet.

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

Sidebar

Related Questions

Does anyone have a link or document on how to write a screensaver for
Does anyone have an idea, link, library, source code, ... on how to convert
Does anyone have any suggestions on how to edit an <a href=''> link in
Does anyone have a good link to an HTML color chart or tool where
Does anyone have a solution/link for copying contents of a GridView/Datatable (web application aspx)to
Does anyone have an example (code or a link) that will allow me to
does anyone have a link to some code for a wizard control in asp.net
Does anyone have a link to a learning resource for using Invoke? I'm trying
Does anyone have a good link for instructions on how to make a basic
Does anyone have a link to a box-and-circle diagram of a double pointer?

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.