嘿,我已经和学生一起创建了自己的service.xml.现在我想为学生添加我自己的searchByName方法.你能解释一下我在StudentLocalServiceImpl写的内容吗?
public class StudentLocalServiceImpl extends StudentLocalServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
*/
public List<Student> getAll() throws SystemException {
return studentPersistence.findAll();
}
public Student getStudentByName(String name) {
return studentPersistence.
}
Run Code Online (Sandbox Code Playgroud)
//我创建了一个方法getAll.
我需要另一个人的帮助.
提前致谢.
我有3个标签即.3-Jsp和一个主Jsp包括所有选项卡.所有选项卡都有searchcontainer.当我点击下一步时,它会自动将我发送到第一个标签.我的选项卡是完美的问题,只有当actioncontainer上的动作触发时才会出现.
">
<liferay-ui:search-container-results
results="<%=ListUtil.subList(users, searchContainer.getStart(), searchContainer.getEnd()) %>"
total="<%=usersNameList.size() %>"
/>
<liferay-ui:search-container-row
className="com.liferay.portal.model.User"
keyProperty="userId"
modelVar="userToDisplay"
>
<liferay-ui:search-container-column-text
name="UserName"
value="<%=userToDisplay.getFullName() %>"
/>
Run Code Online (Sandbox Code Playgroud)
我应该在iteratorurl写什么来克服这个问题..帮助我.
谢谢Jay
liferay-6 ×2