mobile,liferay,liferay-6 , Difference between Liferay Mobile SDK and Liferay Screens

Difference between Liferay Mobile SDK and Liferay Screens


Tag: mobile,liferay,liferay-6

Can someone tell me the difference between Liferay Mobile SDK and Liferay Screens?

Thanks a lot.


From the respective homepages of the products, first hits on google on the product names (bold by me):

Liferay Mobile SDK is a framework for building native mobile apps that integrate with your different Liferay Portal instances and their portlets. The SDK provides the means for your mobile apps to easily consume Liferay Portal's core web services and the web services of your custom portlets. It wraps Liferay JSON web services, takes care of authentication, makes HTTP requests (synchronously or asynchronously), parses JSON results and handles server side exceptions.

Liferay Screens is a collection of fully native mobile components, ...

Thus, with the Mobile SDK you have components to call services on Liferay Portal (and your plugins). Liferay Screens provides you with building blocks that allow you to build the full frontend of your application built with a Liferay backend.

With Mobile SDK you'll have to build the UI yourself, but it's easy to embed Liferay's data.

More details than these on the linked homepages


Single page app viewport mobile using Foundation

I am using Foundation for a responsive website and have a problem with SOME mobile devices not properly scaling the viewport ONLY when you load another page via our ng-include. This loads new content into the page and the width of the page then breaks and requires horizontal scrolling. This...

CSS / Bootstrap - font-size not properly resizing from computer to mobile device: Font on Mobile device looks so small

This is my CSS: @media(max-width:767px){body { font-size: 22px; }} @media(min-width:768px){body { font-size: 20px; }} @media(min-width:992px){body { font-size: 16px; }} When I resize my browser window on my laptop, it properly resizes. But this is my issue: When I visit my website from my mobile device, the font-size is way too...

Background image issues

I'm getting this issue. Also the background is going on all of my pages and I just want it at home. On the other pages however, it is showing as a banner under the header. I can't get the image to work on jsfiddle but here is the link Also,...

Loopback passport mobile login

I'm developing an API with loopback and passport. I've seen this example, which is quite good: In the documentation, they say loopback follows this step to authenticate users via third party providers: A visitor requests to log in using Facebook by clicking on a link or button backed by...

How to pass HTTP request to Web-Service

From my portlet JSP, I am trying to make a Ajax call to web-service. My aim is to pass HTTP request object as a parameter to web-service method. Please suggest.

How manage styles in Vaadin portlet in Liferay

I have a Portlet, where is used Valo theme. Most graphical components are displayed properly, but TextField not. It should have rounded border radius and height should be about 35px. It has normally about 15px and the field is angular. When I narrow width of browser window to about 200px...

Efficiently sorting large arrays of people by their proximity to the user

So I'm trying to create a list of the 15 closest people in an array of varying sizes. The array will almost always be ~100 objects in size, but for the sake of testing, I'm trying to make it work with 10,000 (there may be need for the project to...

How do I vertically fix an element in a mobile browser but still allow for horizontal scroll?

On a Desktop browser, I can use the following javascript to vertically fix an element, but still allow for horizontal scroll. As you see, it re-positions the element on every scroll event. To see what I mean, try horizontally and vertically scrolling in this JSFiddle. var verticallyFixedBox = document.getElementById('verticallyFixedBox'); window.addEventListener('scroll',...

bootstrap responsive navigation. Toggle button position

I'm working on a responsive template and I can not sort this out!!! So.... My header and navigation HAS TO LOOk like this in mobile screen: But I'm struggling because the natural behave of the navigation, as you see in desktop size: The navigation is the grey bar, so when...

How to create service builder for liferay plugin project with maven

I have Already create Liferay Plugin project. and maven install also over. it gives ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] --------------------------------------------------------------------- [INFO] Total time: 1:29.773s [INFO] Finished at: Wed Jun 17 15:46:10 IST 2015 [INFO] Final Memory: 34M/151M [INFO] -----------------------------. But unable to add service builder. When i try to add...

In liferay market place, I am unable to submit the project

In Liferay market place i am stuck at the place "Upload Liferay Plugin Packages " When ever i am trying to upload a war file Please help me to short it out :)...

How to pass data from page to Portlet class through AJAX call?

I'm trying to pass a value in an AJAX 'GET' request to my Portlet class, but I can't quite figure out a way to access such variable's value in the class. My AJAX code is: function loadXMLDoc() { var nocache = new Date().getTime(); var xmlhttp=new XMLHttpRequest(); var url = "${mURL}";...

How can I change the zIndex attribute of aui-datepicker in Liferay Portlet 6.2

I have discoveder one problem with date field in portlet in LF 6.2. The problem is that after clicking on the input field, the datepicker is displaying, but with zIndex=0, that means it is under the portlet. If I change on firebug that parameter to 1, everything is OK. I...

I'm using htaccess to redirect mobile users from desktop to website but i keep getting the $_GET variables inside

This question may look like its been asked already and i have seen them all, i've been looking and attempting a lot of answers AND answers that weren't approved. I have successfully made it so that if the user goes to desktop version it will go to the mobile site...

Javascript Battery API returning Infinite discharging time

It is the wish of every smartphone user if it could come true but unfortunatly this doesn't represent reality. Meanwhile... I'm getting that the battery.dischargingTime of my android phone is Inifinite...! (and I wish it was, but it isn't) This is my code: if(navigator.getBattery){ var battery = navigator.getBattery().then(function(battery){ var level...

How do you force a website to be in landscape mode when viewed on a mobile device?

I've seen a lot of questions about this, but no definitive answer on how to do this in a Razor/MVC site where the mobile site is determined using the DefaultDisplayMode class. Also, a lot of the answers are just code snippets without details on where the code goes (is it...

Cons of a liferay cms while website development using Community Edition

I am new to LIFERAY CMS. i need cons of a liferay cms i.e., difficulties faced while developing and using liferay cms. can you please list cons of liferay cms.

menu for mobiles no longer working

When I view this page for mobiles, the navigation menu no longer works.I don't know why because it was working before I put the image slider in . here is the html markup: <!DOCTYPE html> <html lang="en"> <head> <script src=""></script> <script src="assets/jquery.flexslider.js"></script> <script type="text/javascript" charset="utf-8"> $(window).load(function() { $('.flexslider').flexslider(); }); </script>...

Rendering Error with Devise and Mobylette

I am using Mobylette with Devise on my Rails 4 app. When I try to sign up, sign in, or reset my password on my mobile device I get this error: ActionController::MissingRenderer (No renderer defined for format: mobile) Has anyone else had this issue? I've tried setting up a fallback...

Stop Prevent Default in else clause

Hello I have a mobile nav where some items have a subnav so I have set a preventDefault to stop these doing there normal actions and open the sub menu but some don't have a submenu ad now these don't work as normal. Any help would be great here is...

uncaught typeError: cannot read property 'querySelectorAll' of null

I am trying to use this menu for mobile on a site. I have it working but one ie11 user is reporting an error and i am seeing the following error in console Uncaught TypeError: Cannot read property 'querySelectorAll' of nullmlPushMenu._init @ mlpushmenu.js:89mlPushMenu @ mlpushmenu.js:67(anonymous function) @ (index):1062 Here...

Variable price for mobile app for various countries [closed]

Can I provide a different price (not just a converted currency) for my app for different countries stores? p.s.1 I want to do this for apple's app store and google's play store. p.s.2 I don't want to upload a separate app for each country's store. I want it to be...

How to make :hover more mobile friendly and accessible? [closed]

I'm using SCSS to make a dropdown menu. Here is an excerpt of how it works: li { font: bold 12px/18px sans-serif; display: inline-block; margin-right: -4px; position: relative; padding: 15px 20px; background: $menuBG; color: $menuColor; cursor: pointer; transition: all 0.2s; &:hover { background: $hoverBG; color: $hoverColor; } Now what I'd...

Mobile parallax with fixed background

I would like to know how to achieve the parallax effect in mobile devices with a fixed background. Is there any plugin available to achieve the same? I could see that background-attachment fixed not working on mobile. For eg: I need to achieve the same effect like the one in...

Lifefay freemarker ADT: methods unavailable?

I'm trying to work on some ADT for asset publisher (Documents and Media type), but I often have a message telling me that : Expression assetRenderer.getDataRepositoryId is undefined or Expression assetRenderer.getFileEntryId is undefined I found some threads where people said that we must add velocity.engine.restricted.classes= velocity.engine.restricted.variables= freemarker.engine.restricted.classes= freemarker.engine.restricted.variables= in

AJAX Call not working in liferay 6.2.2?

I am trying to perform a AJAX Call. But what i get is ResourceURL as undefined when i see the error in chrome. Below is my code. Declaration: <liferay-portlet:resourceURL copyCurrentRenderParameters="<%= false %>" var="mainURL" /> Implementation:"POST", resourceURL , false); But at implmentation i get resourceURL as undefined. In 6.1 it...

Display Mobile Compatible when it's on mobile

Please allow me to ask a silly question about Google's site( I have tested their site with computer browsers and smartphone browsers. Okay! Here is the question that i have, when the time i make the computer browser to a small screen, the layout of Google's site does not fit...

no more allow open Drawer layout from right side in navigation drawer

I want to open drawer from right side, but when swite it works but when i click on toggle button in action bar it force close and give error that "No drawer view found with gravity LEFT" please help... I add layout like <ListView android:layout_gravity="right|end" android:id="@+id/left_drawer" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentTop="true" android:divider="#ccc"...

How to update value in Autoform Placeholder

I have a form where I want to update user information. I want to provide the update form with current user data located in placeholder. This data will be provided using a routecontroller. However it does not work. I was wondering if there is any solution to this. {{> afFieldInput...

How to upload file in relative directory

I have made a application where we can upload any file which will save in our local given directory. I want to modify it, i want to add a drop down (with multiple option i.e floor, store, section) for department. i.e if we want to upload a file in 'Store'...

Navigation icon not showing up on mobile version?

So i've modified the css elements to add the background image but so far nothing succeeded in displaying the navigation icon on mobile devices. Please assist me in debuging the code in responsive design view at Link and tell me what worked. thanks for your time.regular css down below #menu-icon...

CKEditor 4.4.7 does not show up on any mobile browsers

I am creating an internal CMS for work, and it is important that all pages be mobile-friendly. When you view a page with CKEditor 4.4.7 installed from a phone, the editor shows up as a normal textarea and none of the HTML or text within it is properly formatted. I...

How to use media query with div as screen for mobile preview in desktop website?

I need to show a preview of the code responsive in a div that has the size of a mobile phone, how can I use media queries? or i can do it with jquery? Thanks a lot !

Jquery Mobile: Horizontal Buttons, fill container

Working on a mobile app, I am trying to create two buttons, that should grow and fill their container. So in portrait view, the two buttons should use up the entire width of their parent, and in landscape view, they should also grow to fill up their entire parent. I...

How to Remove class or activate class for specific view port only

Not sure if this would require Javascript, or if there is a way to do this with CSS alone. Basically I want to have a class active only for medium and small size browswers. Example: <style> .big {font-size: 2em;} .normal {font-size: 1em;} </style> <div class="big"> <p> This text is huge...

Form submit portlet with Spring MVC

I'm trying to achieve a Liferay portlet of submit form using spring MVC. The model: package com.model; public class Person { String firstName; String middleName; public String getFirstName() { return this.firstName; } public String getMiddleName() { return this.middleName; } public void setFirstName(String firstName) { this.firstName=firstName; } public void setMiddleName(String middleName)...

My background isn't appearing on some mobile browsers

I know there are a few other similar posts to my question so apologies for that. I've tried out all the solutions that were offered in those posts before posting. I have a table on my page that has a background image using css. html { width:100% height: 100%; margin:...

ASP.NET Web Forms Switch from Site.Mobile.Master,mobile
I have an ASP.NET 4.5 Web Forms Application utilizing Bootstrap. I had a problem whereby Site.Mobile.Master was being utilized whenever the website was being rendered in Extra Small ViewPort. Since using Bootstrap I did not need this Site.Mobile.Master. I had implemented a solution that would cause Site.Mobile.Master to not...

Javascript, Array of Objects?

I am a bit of a JS noob, but have good .net experience in my pocket. I am working on a mobile website/app, and I have collected some data similar to business listings from a custom web service. On .net, I would have, at this time, started building a custom...

Incorrect liferay-plugins dependency

In following dependency is defined: dependencies { classpath group: "com.liferay.portal", name: "portal-service", version: "7.0.0-SNAPSHOT" } How can a 6.2.x version have a dependency on 7.0.0 version? Is it a bug? When I peek to the history of the file, the dependency has always been there. I am not able...

Controlling a player using touch input on the mobile device

I am new to Unity, and was following the tutorials of roll a ball. I was to create it for both mobile and desktop and it is working but the only problem I have is that I am unable to create touch keys arrows(left,right,up,down) to control the player on the...

Scaling Website to Fit Mobile Screens

So I'm working on a small website,, as a summer project just to get better at web design and programming. Everything is going great so far design wise, but I'm having a ton of trouble getting it to fit on mobile - it displays the full site every time....

Mobile Apps using MVC ? Can we develope?,mobile
Using MVC 4, can we develop android mobile app and window mobile app also. visual studio 2012 is enough or i have to add some other tools, while i am searching in google i found xamarin like that any other tools or we can directly develop the mobile app...

Include ftl file in ext plugin

I have ext-plugin and I would like to override this file: portal-impl\src\com\liferay\portlet\dynamicdatamapping\dependencies\ddm\documentlibrary.ftl. After maven build, this file isn't include in my porta-impl-ext.jar. In my portal-impl-ext's pom.xml I have this code: <build> <plugins> <plugin> <groupId>com.liferay.maven.plugins</groupId> <artifactId>liferay-maven-plugin</artifactId> <version>${liferay.maven.plugin.version}</version> <configuration>...

Fix horizontal scrolling

Trying to fix horizontal scrollbar on the page I'm building, and can't figure out what might cause this issue... The issue appears only on max-width : 767px, where the width of the contentWrapper is off for some reason, causing horizontal scrollbar to appear....

Get list of users in liferay

I want to display users list on liferay. and I am having problem with it. Here is my action class. public void userList(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { // Todo Logic for user code try { int countUser = UserLocalServiceUtil.getUsersCount();"User Present In DB" + countUser); List < User...

ng-view will not auto hide address/navigation bar on mobile devices

I am building a mobile website using Mobile Angular UI. After almost completion I tried to finally test it on my mobile devices. I realized that: when I scroll down the page, the navigation bar of the browser(i.e. Safari on iPhone, Chrome on Android devices) does not auto hide like...

Increase fonts for mobile devices with Zurb Foundation

I've created a clean new web project with Zurb Foundation 5. On desktop and laptop it looks great. I use rem units for font sizes. On small devices the layout is responsive but the font is much smaller - I guess because of higher pixel density. The solutions (this for...

how to bypass the necessity of having to have email address firstname and lastname in liferay to import authenticating users

My application uses liferay to connect to LDAP server and import authenticating users. But many of the user records in the ldap schema doesn't have email id. This seems to be preventing me from importing these users as liferay requires email id, among other things, inorder to successfully import new...

Avoid long-tap behaviour on mobile devices while pressing a button

In my HTML there is a button that can be short- and long-clicked. If you click on it shortly (like on every other button) it executes a given callback function. When you keep pressing the button the callback will be repeatedly executed until a mouseup or mouseout event is detected....