Foros de discusión
Liferay-ui Icon link not working
R charan, modificado hace 14 años.
Liferay-ui Icon link not working
Junior Member Mensajes: 72 Fecha de incorporación: 28/10/08 Mensajes recientes
hi all,
i have developed a news portlet, i have the action menu in news_entry_action.jsp , the code is
You can see from the image that every thing is appearing fine even the url for view and edit are valid, but i could not able to click the options. No action is being performed.( I think it might be error in javascript because if i keep url as a normal string , then it is navigating to the page name)
When i keep mouse on 704 ID edit option , the following is the url appears
Even i tried individually also by coding like this ..
then also same problem , no action is performed on clicking, Any body went through this problem or any body know what is the solution ..
thanks in advance,
charan.
i have developed a news portlet, i have the action menu in news_entry_action.jsp , the code is
<%@ include file="/html/portlet/ext/News/init.jsp" %>
<%
ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
News news = (News)row.getObject();
%>
<liferay-ui:icon-menu>
<portlet:renderurl windowstate="<%= WindowState.MAXIMIZED.toString() %>" var="viewURL">
<portlet:param name="struts_action" value="/ext/News/displayNews" />
<portlet:param name="redirect" value="<%= currentURL %>" />
<portlet:param name="newsId" value="<%= String.valueOf(news.getNewsId()) %>" />
</portlet:renderurl>
<liferay-ui:icon image="view" url="<%= viewURL %>" />
<portlet:renderurl windowstate="<%= WindowState.MAXIMIZED.toString() %>" var="editURL">
<portlet:param name="struts_action" value="/ext/News/editNews" />
<portlet:param name="redirect" value="<%= currentURL %>" />
<portlet:param name="newsId" value="<%= String.valueOf(news.getNewsId()) %>" />
</portlet:renderurl>
<liferay-ui:icon image="edit" url="<%= editURL %>" />
</liferay-ui:icon-menu>
You can see from the image that every thing is appearing fine even the url for view and edit are valid, but i could not able to click the options. No action is being performed.( I think it might be error in javascript because if i keep url as a normal string , then it is navigating to the page name)
When i keep mouse on 704 ID edit option , the following is the url appears
javascript:%20submitForm(document.hrefFm,%20'http%3A%2F%2Flocalhost%3A9090%2Fweb%2Fguest%2Fhome%3Fp_p_id%3DNEWS%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_NEWS_struts_action%3D%252Fext%252FNews%252FeditNews%26_NEWS_redirect%3D%252Fweb%252Fguest%252Fhome%253Fp_p_id%253DNEWS%2526p_p_lifecycle%253D1%2526p_p_state%253Dmaximized%2526p_p_mode%253Dview%2526_NEWS_struts_action%253D%25252Fext%25252FNews%25252FsetNews%2526_NEWS_userId%253D11102%26_NEWS_newsId%3D704');
Even i tried individually also by coding like this ..
<liferay-security:permissionsurl modelResource="<%= News.class.getName() %>" modelResourceDescription="news" resourcePrimKey="<%= Long.toString(news.getNewsId()) %>" var="permissionsEntryURL" />
<liferay-ui:icon image="permissions" url="<%= permissionsEntryURL %>" />
then also same problem , no action is performed on clicking, Any body went through this problem or any body know what is the solution ..
thanks in advance,
charan.
Archivos adjuntos:
Ravi Muppidi, modificado hace 14 años.
RE: Liferay-ui Icon link not working
New Member Mensajes: 9 Fecha de incorporación: 3/09/09 Mensajes recientes
Hi Charan,
Are you getting any error? If so Tell me the error.
Do little modification .....
Remove the below tag inside <portlet:renderURL tag. and try it.
<portlet:param name="redirect" value="<%= currentURL %>" />
Because if "currentURL" contains any url it will redirect to that page.
Thanks
Ravi
Are you getting any error? If so Tell me the error.
Do little modification .....
Remove the below tag inside <portlet:renderURL tag. and try it.
<portlet:param name="redirect" value="<%= currentURL %>" />
Because if "currentURL" contains any url it will redirect to that page.
Thanks
Ravi
R charan, modificado hace 14 años.
RE: Liferay-ui Icon link not working
Junior Member Mensajes: 72 Fecha de incorporación: 28/10/08 Mensajes recientes
hi ravi,
i have tested with removing that line also, but not working (same result)
Thanks in advance,
charan
i have tested with removing that line also, but not working (same result)
Thanks in advance,
charan
Ravi Muppidi, modificado hace 14 años.
RE: Liferay-ui Icon link not working
New Member Mensajes: 9 Fecha de incorporación: 3/09/09 Mensajes recientes
In the same situation we are not getting any error. working finely.
What is the error or exception u facing?
Liferay version?
-Ravi
What is the error or exception u facing?
Liferay version?
-Ravi
R charan, modificado hace 14 años.
RE: Liferay-ui Icon link not working
Junior Member Mensajes: 72 Fecha de incorporación: 28/10/08 Mensajes recientes
hi ravi,
no exception or error. Nothing is performed when i click an option in menu, (version 5.1.1)
thanks ,
charan
no exception or error. Nothing is performed when i click an option in menu, (version 5.1.1)
thanks ,
charan
Jay Trivedi, modificado hace 11 años.
RE: Liferay-ui Icon link not working
Regular Member Mensajes: 109 Fecha de incorporación: 24/11/12 Mensajes recientes
Hi,
I am having similar problem with little modification, when i click on my delete icon i want a scriptlet to run on same page that deletes the record, But its deletes all the records.
Can we get clickEvent of confirmation on delete icon.
Guide me.
Thanks in advance.
I am having similar problem with little modification, when i click on my delete icon i want a scriptlet to run on same page that deletes the record, But its deletes all the records.
Can we get clickEvent of confirmation on delete icon.
Guide me.
Thanks in advance.