Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Richard Gibson
"Your request failed to complete."
6 luglio 2011 8.18
Risposta

Richard Gibson

Punteggio: Junior Member

Messaggi: 30

Data di Iscrizione: 19 febbraio 2010

Messaggi recenti

Does anyone know of a way to turn off the standard
"Your request failed to complete." message when the SessionErrors object is not empty?
I've added the following init parameters:

1       
2<init-param>
3    <name>add-process-action-success-action</name>
4    <value>false</value>
5</init-param>


I was hoping there would be a setting something like 'add-process-action-failure-action' but there doesn't seem to be.

Thanks
Rob Hall
RE: "Your request failed to complete."
20 luglio 2012 12.28
Risposta

Rob Hall

Punteggio: Junior Member

Messaggi: 47

Data di Iscrizione: 30 novembre 2011

Messaggi recenti

I have also been looking for a solution for this. We tried CSS, but it had negative side affects. Adding hooks for pre- and post- login events doesn't help, those don't seem to be invoked in an login failure scenario. I've been looking to see if there is a portal property I can set to suppress this message, but haven't found anything.
Jay Patel
RE: "Your request failed to complete."
20 luglio 2012 12.57
Risposta

Jay Patel

Punteggio: Regular Member

Messaggi: 119

Data di Iscrizione: 23 febbraio 2010

Messaggi recenti

Rob Hall:
I have also been looking for a solution for this. We tried CSS, but it had negative side affects. Adding hooks for pre- and post- login events doesn't help, those don't seem to be invoked in an login failure scenario. I've been looking to see if there is a portal property I can set to suppress this message, but haven't found anything.


Hook for Pre & Post Login only invoked when before & after successful login. It is not invoked at all for failed login. Try using "servlet.service.events.pre" in hook, which will be invoked every time any action is called. In hook you can create your custom action calls which overrides "com.liferay.portal.kernel.events.Action" class of Liferay.

-Jay.
Hitoshi Ozawa
RE: "Your request failed to complete."
20 luglio 2012 20.32
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

Have you checked the following lps?

http://issues.liferay.com/browse/LPS-23008
Ben Carson
RE: "Your request failed to complete."
2 agosto 2012 9.25
Risposta

Ben Carson

Punteggio: Junior Member

Messaggi: 25

Data di Iscrizione: 9 gennaio 2012

Messaggi recenti

Hitoshi Ozawa:
Have you checked the following lps?

http://issues.liferay.com/browse/LPS-23008


@Hitoshi
Thanks for the link. I want to supplement it by mentioning that you can create a PortletConfig object with the following lines of code:

1import com.liferay.portal.kernel.util.JavaConstants;

...
1
2PortletConfig portletConfig = (PortletConfig)req.getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
3SessionMessages.add(req,  portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);


I had to look up how to create this object, so I just wanted to share with others in case they were struggling as well.

Ben
Atin Agarwal
RE: "Your request failed to complete."
25 ottobre 2012 23.11
Risposta

Atin Agarwal

Punteggio: Junior Member

Messaggi: 86

Data di Iscrizione: 19 febbraio 2012

Messaggi recenti

PortletConfig portletConfig = (PortletConfig)request.getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
SessionMessages.add(request, portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);

Not working in Custom portlets.
I have tried this in hooks. It Worked perfectly.
However when i have tried this in my Custom portlet's Process Action it didn't worked..I wonder Why??
Any help wud be appreciated.


Regards
Katalina Marcos
RE: "Your request failed to complete."
15 aprile 2013 11.30
Risposta

Katalina Marcos

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 10 settembre 2012

Messaggi recenti

SessionMessages.add(actionRequest, PortalUtil.getPortletId(actionRequest) + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
Sean Gildea
RE: "Your request failed to complete."
12 giugno 2013 10.54
Risposta

Sean Gildea

Punteggio: New Member

Messaggi: 4

Data di Iscrizione: 15 dicembre 2012

Messaggi recenti

Here's a solution for those using Portlets and not hooks. Insert this JQuery code at the top of your JSP page to hide that particular DIV. Make sure you have the JQuery library before you include this.

1<script>$(".portlet-msg-error:contains('Your request failed to complete.')").hide();</script>
Hu Jun
RE: "Your request failed to complete."
28 luglio 2013 23.42
Risposta

Hu Jun

Punteggio: New Member

Messaggi: 2

Data di Iscrizione: 19 aprile 2012

Messaggi recenti

From my point of view, you could write a hook to overwrite portlet_messages.jspf file and remove related code
1
2<c:if test='<%= SessionMessages.contains(renderRequest, "request_processed") %>'>
3   <div class="portlet-msg-success">
4   ....
5   </div>
6</c:if>

or the bottom of common error information.
dfgdfg dfgdfg
RE: "Your request failed to complete."
2 ottobre 2014 2.37
Risposta

dfgdfg dfgdfg

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 10 gennaio 2014

Messaggi recenti

Thank you!