Forums

Home » Liferay Portal » česky a slovensky

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Roman Masarovič
service builder LocalServiceUtil.getHracsCount()) problem s aktualizaciou
March 23, 2012 4:16 PM
Answer

Roman Masarovič

Rank: New Member

Posts: 3

Join Date: March 21, 2012

Recent Posts

ahojte mozno mi budete vediet poradit robil som si priklad podla http://www.liferay.com/web/satyaranjan/blog/-/blogs/2506216 databazu mam rozbehanu len mi nechce aktualizovat na jsp stranke Util.getCount stale si drzi rovnaku hodnotu ale objekt bol pridany do databazy...
jsp stranka. a metoda out.println(HracLocalServiceUtil.getHracsCount()); sa nezmeni ale ked napriklad restartujem server tak ju prepise na aktualny stav v databaze ja tomu nechapem emoticon snad niekto mi poradi dakujem

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="javax.portlet.*"%>
<%@ page import="com.mbk.service.service.*"%>
<%@ page import="com.mbk.service.model.*"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>

<portlet:defineObjects />
<%PortletPreferences prefs = renderRequest.getPreferences();%>
<table>
<form method="POST" action="<portlet:actionURL/>">

<tr>
<td>Hrac ID:</td>
<td><Input type="text" name="id"/></td>
</tr>
<tr>
<td>Name:</td>
<td><Input type="text" name="name"/></td>
</tr>
<tr>
<td>Surname:</td>
<td><Input type="text" name="surname"/></td>
</tr>
<tr>
<td>Rok Narodenia:</td>
<td><Input type="text" name="age"/></td>
</tr>
<tr>
<td><Input type="submit"/></td>
</tr>
</form>
</table>
<H3> No of Customers in Database :
<%
out.println(HracLocalServiceUtil.getHracsCount());

%>
</H3>
Roman Masarovič
RE: service builder LocalServiceUtil.getHracsCount()) problem s aktualizaci
March 23, 2012 4:21 PM
Answer

Roman Masarovič

Rank: New Member

Posts: 3

Join Date: March 21, 2012

Recent Posts

najnovsie som zistil ze po nejako case to nabehe :/ preco nie hned?