Basic hands-on Zoltán Farkas, MTA SZTAKI

Slides:



Advertisements
Similar presentations
Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Advertisements

Site Collection, Sites and Sub-sites
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
JSF Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
The basics of the Online Portal
Business Optix Library Service – Workflow
Microsoft Office 2007 Access 2007 Chapter 9 Administering a Database System.
MIP Workbench: Revisions FEMA Learning Management System PROJECT ADMINISTRATION ROLE.
CloudBroker integration to WS- PGRADE/gUSE Zoltán Farkas MTA SZTAKI LPDS
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Vendor Module Screens. Screen 1 - Vendor Material This feature allows VENDOR to enter PO and list all the material from that vendor. This will help vendor.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
CIS 205—Web Design & Development Dreamweaver Chapter 1.
Microsoft FrontPage 2003 Illustrated Complete Finalizing a Web Site.
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI Creating the Autodock gateway from WS-PGRADE/gUSE and making it cloud-enabled.
1. 2 Introductions  Name?  What do you want to get out of this session?  To follow along with this presentation go to
Dreamweaver MX. 2 Overview of Templates n Templates represent a web page design or _______ that will be common to multiple pages. n There are two situations.
ASM Hands-on. What will we learn? ● How to install an ASM-based web-application in gUSE ● How to develop ASM-related parts of an interface for – Importing.
LDAP Authentication Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Application Specific Module Tutorial Akos Balasko 02/07/
How to Use Facebook This guide will help you navigate around the social networking site, Facebook.
Microsoft Access 2010 Chapter 10 Administering a Database System.
Mrs. Knopp Library Media Specialist.  The term wiki comes from the phrase Wiki- Wiki which is the Hawaiian word for quick.  A wiki is a website that.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Packaging for Voracity Solutions Control Panel David Turner.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 41 JavaServer Face.
South Dakota Library Network MetaLib Management Basics Categories Administration South Dakota Library Network 1200 University, Unit 9672 Spearfish, SD.
Hubnet Training One Health Network South East Asia Network Overview | Public and Members-only Pages; Communicating and Publishing using Blogs and News.
Basic Portlet Copyright © 2000 – 2007 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Step 1 Log in with your username and password Adding direct links to online archives from your VLE.
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI Accessing Cloud Systems from WS-PGRADE/gUSE Zoltán Farkas MTA SZTAKI LPDS.
FHA Training Module 1 This document reflects current policy related to this topic. Its content is approved for use in all external and internal FHA-related.
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI CloudBroker usage Zoltán Farkas MTA SZTAKI LPDS
Convert generic gUSE Portal into a science gateway Akos Balasko.
Convert generic gUSE Portal into a science gateway Akos Balasko.
WS-PGRADE + ASM Basic hands-on Zoltán Farkas, MTA SZTAKI
Chapter 5 Using a Template to Create a Resume and Sharing a Finished Document Microsoft Word 2013.
Core LIMS Training: Entering Experimental Data – Simple Data Entry.
PlanBuilder How-To.
Welcome to the ABC Bakers PowerPoint on Girls Selling Cookies Online with E-Cards. ABCSmartcookies.com is your Girl Scout’s all-in-one access to learn.
Objectives Create a folder in Google Drive.
Your Name Proposal Creation Module 5 Your Name
Setting up Categories, Grading Preferences and Entering Grades
Getting Started 27-September-2012
Using iLocker.
Configuring Applications
Copyright © Liferay, Inc.
LMEvents SharePoint Portal How-to Guide
Welcome to the ABC Bakers PowerPoint on Girls Selling Cookies Online with E-Cards. ABCSmartcookies.com is your Girl Scout’s all-in-one access to learn.
Core LIMS Training: Advanced Administration
Lightweight introduction
Lightweight introduction
Quickr Places & Templates Introduction
Bomgar Remote support software
Microsoft FrontPage 2003 Illustrated Complete
Midwest NASCOE Tutorial
B2B Portal Training Materials
Configuring Internet-related services
تنظیم مودم D-Link به حالت NAT
Add Image and Title to Individual Page
Create a Portlet Project in RAD
Microsoft PowerPoint 2007 – Unit 2
Shelly Cashman: Microsoft Word 2016
Home Tab – Task List Now please remember that in order to utilize this functionality trade users will need “Full Access” to “Forms” and the mode of communication.
Local Review is a web site used by state industry projections analysts to obtain, from local area experts, information about economic activity and any.
B2B Portal Training Materials
PCP Super User.
Presentation transcript:

Basic hands-on Zoltán Farkas, MTA SZTAKI zfarkas@sztaki.hu WS-PGRADE + ASM Basic hands-on Zoltán Farkas, MTA SZTAKI zfarkas@sztaki.hu

Outline What we will do Development environment Modification steps Deployment of the new ASM portlet Try it out!

Topic of the hands-on I. Modify an existing, simple ASM portlet: Remove some features, Present some features in a different way Add some error handling Necessary modifications in: Java, JSP and XML files Application of the ASM portlet: Add two integers One coming through a file One coming through command line

Topic of the hands-on II.

Development Environment Ubuntu VM in VirtualBox: 2G RAM NAT network gUSE automatically started NetBeans contains the starting project: ASM_Sample

Modification Step 1 – Copy the application Really simple! In NetBeans: Right-click on the ASM_Sample project Select “Copy” Enter a new project name, e.g. MyASM_Sample Click “Copy”

Modification Step 1 – Copy the application Really simple! In NetBeans: Right-click on the ASM_Sample project Select “Copy” Enter a new project name, e.g. MyASM_Sample Click “Copy”

Modification Step 2 – Rename files and classes Expand “Source packages” Expand “hu.sztaki.lpds...” Right-click on “ASM_SamplePortlet.java” Select “Refactor”/“Rename” Enter a new class name, e.g. “MyASM_SamplePortlet” (You can apply rename of comments, if you like) Click “Refactor”

Modification Step 2 – Rename files and classes Expand “Source packages” Expand “hu.sztaki.lpds...” Right-click on “ASM_SamplePortlet.java” Select “Refactor”/“Rename” Enter a new class name, e.g. “MyASM_SamplePortlet” (You can apply rename of comments, if you like) Click “Refactor”

Modification Step 3 – Modify portlet layout I. Expand “Web Pages” Expand “jsp” Expand “asm_sample” Open “asm_sample.jsp”

Modification Step 3 – Modify portlet layout I. Expand “Web Pages” Expand “jsp” Expand “asm_sample” Open “asm_sample.jsp”

Modification Step 3 – Modify portlet layout II. Remove “Get Input”: Search for the “div_getinput” div Remove it (along with its parent <td>)!

Modification Step 3 – Modify portlet layout II. Remove “Get Inputs” Search for the “div_getinputs” div Remove it (along with its parent <td>)!

Modification Step 3 – Modify portlet layout III. Modify “Set Input” to “Set Inputs”: Search for the “doSetInput” hidden input action

Modification Step 3 – Modify portlet layout III. Modify “Set Input” to “Set Inputs”: Update as follows:

Modification Step 3 – Modify portlet layout IV. Remove “Upload”: Search for the “Upload” button Remove it (along with its parent <td>)!

Modification Step 3 – Modify portlet layout V. Add an error message: Append the following to the end of the JSP file:

Modification Step 4 – Modify portlet class I. Necessary modifications: Read additional input and update workflow's input file with it Report error message if inputs are not integers Open “MyASM_SamplePortlet.java” Check out the “doSetInput” method

Modification Step 4 – Modify portlet class II. Original version

Modification Step 4 – Modify portlet class III. Updated version Define input file's port number Get input file's content Input validation Update Input Port

Modification Step 5 – Modify XML files Expand “Configuration Files” Open “web.xml” Select the “XML” view Modify any occurences of “ASM_Sample” to the name of your new project (e.g. “MyASM_Sample”)

Modification Step 5 – Modify XML files Expand “Configuration Files” Open “web.xml” Select the “XML” view Modify any occurences of “ASM_Sample” to the name of your new project (e.g. “MyASM_Sample”)

Modification Step 5 – Modify XML files Expand “Configuration Files” Open “portlet.xml” Select the “XML” view Change the “portlet-class” tag to the name of the class you renamed “ASM_SamplePortlet” to You are welcome to change any of the “portlet-info” sub-tags

Modification Step 5 – Modify XML files Expand “Configuration Files” Open “portlet.xml” Select the “XML” view Change the “portlet-class” tag to the name of the class you renamed “ASM_SamplePortlet” to You are welcome to change any of the “portlet-info” sub-tags

Deploy it to Liferay-based gUSE Sign in as a user with admin roles (default username is : test@liferay.com, password is : test )

Deploy it to Liferay-based gUSE Navigate to Plugin Installer panel by clicking Manage -> Control Panel, and by selecting Plugins Installation from the menu in the left hand-side, finally clicking install More Portlets button and upload File link.

Adjusting it as a new component (just once) As admin, please go to Settings menu and select Internal Services

Adjusting it as a new component (just once) Click to New button and set the followings: Type of Component: portal Service group: gUSE URL of Component: http://localhost:8080/MyASM_Sample URL to initialize Component: http://localhost:8080/MyASM_Sample/init Public URL of Component: http://localhost:8080/MyASM_Sample State: active Then click to Save button!

Adjusting it as a new component (just once) Click to copy component Properties tab Set http://localhost:8080/wspgrade as Source component and http://localhost:8080/MyASM_Sample as Destination one, then click to copy

Adjusting it as a new component Finally initialize the whole portal again by calling http://localhost:8080/information/init.jsp (in some cases portal restart required.)

Creating new menuitem for it (just once)

Adding the portlet under this menu (just once) Click to „Add” and select „more” The newly developed portlet should be available under undefined group. Finally click to „add” in the row of the portlet