CAST ACTION REQUEST TO PORTLETREQUEST

One side effect of using the supported AJAX mechanism for jsr portlets is the different PortletRequest implementation that you get for ResourceRequests vs ActionRequests, so if you’re looking for an explicit ActionRequest in a WEF jsr portlet, disabling the partial page AJAX request for that action is the answer which you can do with the post action behavior in a control builder for one action control, or via Theme Builder disabling Smart Refresh, if you need to disable it for an entire portlet or via the Theme file for an entire project if for some reason you need to disable it for an entire project. You say you are making a JSR portlet. Sign up or log in Sign up using Google. Hi, I am trying to open dynamic portal page but i am getting error java. In portal 6 it was working for me but for portal 7 we have to set Reload the top most page as post action behavior. This probably applies to the response object in your code also. If the container is not passing that information to the subsequent requests then you probably should grab it on the initial invocation.

Thanks for the help. The AJAX support for jsr portlets was a little more complex, using a proprietary back door to the portlet application. You have cast it to a “javax. A likely cause of that difference would be if you were using a jsr portlet in Portal6 but moved to a jsr portlet in Portal7. You say you are making a JSR portlet. These are called by the portlet container when it decides to render your portlet or handle a user action from your portlet.

One side effect of using the supported AJAX mechanism for jsr portlets is the different PortletRequest implementation that you get for ResourceRequests vs ActionRequests, so if you’re looking for an explicit ActionRequest in a WEF jsr portlet, disabling the partial page AJAX request for that action is the answer which you can do with the post action behavior requst a control builder for one action control, or via Theme Builder disabling Smart Refresh, if you need to disable it for an entire portlet or via portletrquest Theme file for an entire project if for some reason you need to disable it for an entire project.

  ARY DRAMA TOOTAY HUWAY TARAY EPISODE 1

So the only chance to get userinfo reuest is to store it on session during first portlet request. ActionRequest”, so the cast is throwing an exception. I don’t know how the pottletrequest of Portlet Factory worked that you would need to obtain a PortletRequest like that but that’s not typical portlet programming. EddyR EddyR 1 7. That servlet requests are unauthenticated maybe depends on portal server vendor. Answered question This question has been answered.

The code you’ve posted is not proprietary or specific to ICEfaces, how the request attributes are managed between Ajax requests, which happens “behind the scenes” is. How can we extract the Portlet Request Object in liferay portlet? Stack Overflow works best with JavaScript enabled. Email Required, but requrst shown.

Sign up using Email and Password.

Cast renderRequest to ActionRequest – Forums – Liferay Community

A likely cause of that difference casy be if you were using a jsr portlet in Portal6 but rfquest to a jsr portlet in Portal7. If the container is not passing that information to the subsequent requests then you probably should grab it on the initial invocation. If you want to handle all cases, then cast the request object to a “javax. In general, if you only want to handle the case of “javax.

See this URL for more info: It is passed in as the actuon argument to your processAction method, which is called by the portlet container you don’t call this method. Sign up using Facebook.

Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

  FILM NIPOTE DI NELLO ROSSATI

Portlet To implement that interface you implement: In that case your portlet class should be implementing javax.

Log in to reply. Nick Roth Nick Roth 2, 2 11 Unanswered question This question has not been answered yet. You’ll need to be programming portlets to get PortletRequests and in that case, the API interfaces and portlet container provide the PortletRequest.

When standardRequestScope is false, then ICEfaces ensures that request attributes are maintained across Ajax requests so that they are available past the original request to the portal container. But i have a common problem with your answer.

Similar Threads

You can use something like this: You say you are making a JSR portlet. This is the accepted answer.

ActionRequest”, which is a subinterface of PortletRequest. Hi, I am trying to open dynamic portal page but i actioj getting error java. To do that, you set a configuration parameter with a set of space-separated values as entries like so: You have cast it to a “javax.

Navigation

Ramakrishna Ramakrishna 21 2. Hi lallu, In your code is the line: Powered by JForum 2. Post as a guest Name. How to extract Portlet Request Object?

Any help on what am I doing wrong is much appreciated! By using our site, you acknowledge that you have read and understand casy Cookie PolicyPrivacy Policyand our Terms of Service. Sign up or log in Sign up using Google.

Feed for this topic. ResourceRequestImpl incompatible with javax. Hallo Deryk, Thank you for your answer.

Posted in War