Forums

Home » Liferay Portal » Español » 3. Desarrollo

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Joaquín Fernández
Integraciones con APP
January 2, 2012 6:05 AM
Answer

Joaquín Fernández

Rank: Junior Member

Posts: 93

Join Date: January 2, 2012

Recent Posts

Buenas,

Alguien ha integrado APP para Iphones, blackberrys o teléfonos de ese tipo, con portlets desarrollados a medida?
Existe la posibilidad de crear un portlet en LifeRay, y generar el war de ese portlet, de maner que ese sea el APP?

Un saludo!
Andrés Cerezo
RE: Integraciones con APP
January 2, 2012 6:49 AM
Answer

Andrés Cerezo

Rank: Junior Member

Posts: 92

Join Date: November 11, 2010

Recent Posts

Están montntando algo para integrar liferay con android (porltedroid o algo por el estilo) no he tenido tiempo de mirármelo pero igual te sirve de algo.
Joaquín Fernández
RE: Integraciones con APP
January 4, 2012 7:04 AM
Answer

Joaquín Fernández

Rank: Junior Member

Posts: 93

Join Date: January 2, 2012

Recent Posts

Gracias!
An error occurred while processing the template.
Unable to find resource '1#8431626#83611157'
1<style> 
2#closeButton { 
3    background-color: #fff; 
4    color: #bbb; 
5
6 
7#closeButton, #sendButton { 
8	font-weight: 600; 
9
10 
11#sendButton { 
12	background-color: #1C75B9; 
13	color: #fff; 
14	margin-right: .25em; 
15
16 
17#verifyUserPopUp .aui-buttonitem-label { 
18    font-family: source-sans-pro,Arial,Helvetica,sans-serif; 
19
20 
21#verifyUserPopUp aui-buttonitem-content { 
22    padding: 4px 8px 
23
24 
25#verifyUserPopUp .aui-dialog-content { 
26    border: none; 
27    box-shadow: 0px 2px 16px rgba(0,0,0,0.2); 
28    padding: 16px; 
29
30 
31#verifyUserPopUp .aui-dialog-bd { 
32    overflow-y: inherit; 
33
34 
35#verifyUserPopUp .aui-panel-hd { 
36    background: #fff; 
37    height: 0; 
38    padding: 0; 
39
40 
41#verifyUserPopUp .aui-panel-ft { 
42    background-color: #fff; 
43    border: 0; 
44    padding: .5em 0 .25em 0; 
45    text-align: left; 
46
47 
48#verifyUserPopUp .aui-toolbar-first, #verifyUserPopUp .aui-toolbar-last { 
49    -moz-border-radius: 3px; 
50    -webkit-border-radius: 3px; 
51    border-radius: 3px; 
52
53</style> 
54 
55<script> 
56function positionOnPage() { 
57	AUI().ready( 
58		'aui-base', 
59		'node', 
60		function(A) { 
61			var node = A.one('#verifyUserPopUp'); 
62 
63			var winHeight = window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0; 
64			var winWidth = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth; 
65 
66			var nodeHeight = node.get('clientHeight'); 
67 
68			var x = winWidth - 360; 
69			var y = winHeight - (nodeHeight + 88); 
70 
71			node.setStyle('left', x); 
72			node.setStyle('top', y); 
73
74	); 
75}; 
76 
77AUI().ready( 
78    'aui-base', 
79    'aui-dialog', 
80    'aui-io-plugin', 
81    'aui-io-request', 
82	function(A) { 
83		#set ($role_verified_user_id = 81492058) 
84		#set ($guest_user_id = 5) 
85		#set ($cur_user_id = $getterUtil.getLong($request.get("theme-display").get("user-id"))) 
86 
87		#set ($role_local_service = $serviceLocator.findService("com.liferay.portal.service.RoleLocalService")) 
88		#set ($user_local_service = $serviceLocator.findService("com.liferay.portal.service.UserLocalService")) 
89 
90		#set ($cur_user = $user_local_service.getUserById($cur_user_id)) 
91 
92		#set ($close_button_label = $htmlUtil.escapeJS($close_button_text.data)) 
93		#set ($send_button_label = $htmlUtil.escapeJS($send_button_text.data)) 
94		#set ($delay_button_label = $htmlUtil.escapeJS($delay_button_text.data)) 
95 
96		#set ($is_verified_user = $role_local_service.hasUserRole($cur_user_id, $role_verified_user_id)) 
97 
98		#set ($days = $getterUtil.getInteger($dateUtil.getDaysBetween($cur_user.getCreateDate(), $dateUtil.newDate(), $timeZoneUtil.getTimeZone("UTC")))) 
99 
100		#set ($body_content = $htmlUtil.escape($getterUtil.getString($verify_message.data))) 
101		#set ($success_message = $getterUtil.getString($sent_message.data)) 
102 
103        var buttons = [ 
104
105				handler: function() { 
106					A.io.request( 
107						'/delegate/user_email_verification', 
108
109							on: { 
110								error: function(event) { 
111									A.one('#verifyUserPopUp .aui-dialog-bd').set('innerHTML', '<liferay-ui:message key="an-error-occurred-while-sending-the-verification-email-please-try-again-in-a-few-minutes" unicode="<%= true %>" />'); 
112								}, 
113								success: function(event) { 
114									A.one('#verifyUserPopUp .aui-dialog-bd').set('innerHTML', '${htmlUtil.escape($success_message)}'); 
115 
116									document.getElementById("sendButton").classList.add('aui-helper-hidden'); 
117									document.getElementById("closeButton").textContent = '${close_button_label}'; 
118
119
120
121					); 
122				}, 
123				id: 'sendButton', 
124				label: '${send_button_label}' 
125			}, 
126
127				handler: function() { 
128					this.close(); 
129				}, 
130				id: 'closeButton', 
131				label: '${delay_button_label}' 
132
133        ]; 
134 
135        if ('${cur_user_id}' == '${guest_user_id}') { 
136            return; 
137
138 
139        if ('${is_verified_user}' == 'true') { 
140            return; 
141
142 
143        if (parseInt('${days}') < 90) { 
144			new A.Dialog( 
145
146	            	bodyContent: '${body_content}', 
147					buttons: buttons, 
148					centered: false, 
149					draggable: false, 
150					id: 'verifyUserPopUp', 
151					resizable: false, 
152					width: 328 
153
154			).render(); 
155 
156			positionOnPage(); 
157 
158			A.getWin().on( 
159				'resize', 
160				function() { 
161					positionOnPage(); 
162
163			); 
164
165
166); 
167</script>