[JAVA] I want to know the JSP of the open portlet when developing Liferay

If you want to know the JSP of an open portlet during development

Gregory Amerson, the chief engineer of Liferay development tools, displays the corresponding JSP of the portlet used on Chrome, called JSP Spy He created extensions and bundles.

Now that you've set up Liferay and have the Liferay Blade tool installed, let's move on.

How to use

First, set the following in portal-ext.properties.

include-and-override=portal-developer.properties
direct.servlet.context.enabled=false
  1. git clone the JSP Spy repository.
  2. Initialize your Liferay server with blade server init.
  3. blade server run starts the Liferay server
  4. Deploy the bundle to your Liferay server with blade deploy.
  5. If you are using the Chrome browser, click [Open extension page. ](Chrome: // extensions)
  6. Enable developer mode. (On the right side)
  7. Select Load unpackaged extension and select [jsp-spy-chrome-extension] on disk (https://github.com/gamerson/jsp-spy-demomodules/jsp-spy-chrome- (extension) is specified.
  8. Go to Liferay and go to the Chrome browser development tools. (Shortcut is Cmd + Option + I)
  9. In Select Element, select the DOM element for your page.
  10. Click the JSP Spy pane in the element sidebar, and the path of the corresponding JSP will be displayed there.

How about that? When you follow the code, you don't have to go through the steps of finding the portlet name, finding view.jsp, looking at the code and predicting the link destination ...!

Happy Liferay Coding!

Recommended Posts

I want to know the JSP of the open portlet when developing Liferay
I want to know the answer of the rock-paper-scissors app
I want to output the day of the week
I want to var_dump the contents of the intent
I want to display the name of the poster of the comment
I want to be aware of the contents of variables!
I want to return the scroll position of UITableView!
I want to expand the clickable part of the link_to method
I want to change the log output settings of UtilLoggingJdbcLogger
When you want to change the MySQL password of docker-compose
I want to narrow down the display of docker ps
[Ruby] I want to reverse the order of the hash table
I want to temporarily disable the swipe gesture of UIPageViewController
I want to control the display of the upper management navigation bar (Control menu) in Liferay 7 / DXP
I want to change the color of the upper control navigation bar (Control menu) in Liferay 7 / DXP
I want to understand the flow of Spring processing request parameters
The story of Collectors.groupingBy that I want to keep for posterity
Want to know what Ruby n is the power of 2? (Power judgment of 2)
[Eclipse] I want to open the same file twice [Split editor]
I want to limit the input by narrowing the range of numbers
I want to control the default error message of Spring Boot
I want to change the value of Attribute in Selenium of Ruby
[Swift] When you want to know if the number of characters in a String matches a certain number ...
I want to judge the necessity of testing by comparing the difference of class files when refactoring Java
Know the convenience of Docker (-compose) now (information list that I referred to when using it)
I want to make the frame of the text box red when there is an input error
I want to know the Method of the Controller where the Exception was thrown in the ExceptionHandler of Spring Boot
A memo when you want to clear the time part of the calendar
I want to write JSP in Emacs more easily than the default.
I want to display the number of orders for today using datetime.
I tried to summarize the stumbling points when developing an Android application
[Ruby] I want to extract only the value of the hash and only the key
I want to pass the argument of Annotation and the argument of the calling method to aspect
I want to get the IP address when connecting to Wi-Fi in Java
I want to display an error message when registering in the database
I want to get the field name of the [Java] field. (Old tale tone)
I want you to use Enum # name () for the Key of SharedPreference
What is JSP? ~ Let's know the basics of JSP !! ~
[RxSwift] I want to deepen my understanding by following the definition of Observable
I want to get the value of Cell transparently regardless of CellType (Apache POI)
When you want to use the method outside
I want to truncate after the decimal point
I want to separate the handling of call results according to the API caller (call trigger)
I managed to get a blank when I brought the contents of Beans to the textarea
I want to see the contents of Request without saying four or five
I want to recursively get the superclass and interface of a certain class
I want to get the value in Ruby
[JavaScript] I want to limit the processing by checking the input items when the specified time elapses at the time of focus out.
I want you to put the story that the error was solved when you stabbed the charger in the corner of your head
Rspec: I want to test the post-execution state when I set a method on subject
[Ruby] I want to make a program that displays today's day of the week!
Rails The concept of view componentization of Rails that I want to convey to those who want to quit
[rails] After option useful when you want to change the order of DB columns
If you want to know the options when configuring Ruby, see `RbConfig :: CONFIG ["configure_args "]`
[Active Admin] I want to specify the scope of the collection to be displayed in select_box
[Rails] I want to display the link destination of link_to in a separate tab
I want to reduce the number of unnecessary queries. From considering counter_cache to introducing counter_culture.
When the hover of Eclipse is hard to see
I want to call a method of another class
[Java] I want to calculate the difference from the date
I was addicted to the record of the associated model