留言板

form navigator id can not be modified? liferay 7

thumbnail
Gaurav Jain,修改在7 年前。

form navigator id can not be modified? liferay 7

Junior Member 帖子: 85 加入日期: 16-7-12 最近的帖子
Hi everyone,

while working with <liferay-ui:form-navigator> (LR7), I noticed a strange behaviour. I created a form with two categories ie name and description.
Under each category I have one section and each section has single input text field. I created jsps for each section. On deploying I found
everything was alright. I had a form as i tried to create.

Then I tried to modify my code and for this I changed the value of form navigator id constant(SAMPLE_FORM_NAVIGATOR_ID) in my constant file. This Constant is being used at all required places(). Again deployed my module, but this time I met with following exception:

10:01:54,456 ERROR [http-nio-8080-exec-8][IncludeTag:128] Current URL /web/guest/home?p_p_id=in_componence_portlet_sample_portlet_SamplePortlet_INSTANCE_Xf9IM5a9uyh7&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_in_componence_portlet_sample_portlet_SamplePortlet_INSTANCE_Xf9IM5a9uyh7_mvcPath=%2Faction-jsps%2Fadd_sample.jsp generates exception: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at org.apache.jsp.html.taglib.ui.form_005fnavigator.lexicon.page_jsp._jspService(page_jsp.java:3009)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:64)
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:380)
at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:362)
at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:206)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:88)
at org.apache.jsp.action_002djsps.add_005fsample_jsp._jspService(add_005fsample_jsp:265)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:399)

I tried to resolve this but I found that portal is not getting any sections or categories for new form navigaion id value.

Again I replaced the value of form navigaion id constant with the initial value and deployed the plugin. Everything was OK.


I do not know why is it happening? Is this a correct behaviour? Or it is going to be modified sooner ?

Thanks.
lokesh gorrela,修改在7 年前。

RE: form navigator id can not be modified? liferay 7

Regular Member 帖子: 173 加入日期: 16-3-9 最近的帖子
Hi Gaurav Jain


I am also struggling with the same issue. Did you found any solution for this issue. If you have any solution please give replay to me.

Thanks
With Regards
Lokesh