Hi Chris,
The need is this. I need to invoke the action phase of a portlet in another page ? I found out that it requries namespace information for this.
As of now, i can...
Type: Posts; User: sarojkr; Keyword(s):
Hi Chris,
The need is this. I need to invoke the action phase of a portlet in another page ? I found out that it requries namespace information for this.
As of now, i can...
Hi,
I have few queries regarding namespace.
1. How is the namespace created for a portlet by the portlet container ?
2. How unique is it ? Is is unique for every portlet across...
Hi Chris,
Thanks for your innovative suggestion. Will try to work on it. By the way is possible to push portlet to action phase programatically without the url ?
Please suggest...
Hi,
I need to populate a bean which is commom for all portlets in a page and across page. Further i have to check whether the user is authorized or not and do corresponding redirection. Which is...
Hi spgmx,
Try lookin at the API docs. It has the work flow/life cycle of the methods called. Maybe this would help you. If you have to draw class diagram. Use the spring plugin for...
Hi,
I have portlet with 4 tabs in Page 2. Each tab is controlled by a controller. I have to create a link in page 1 which will invoke say tab 3 in page 2, (tab 1 is the default tab). Is it...
Hi,
I have to send data across to servlet from a portlet.
In my application i have to render an image based on some information in a bean. I tried to set the data in Portlet Session,...
Hi,
I found the following information regarding Scoped Session.
Bram Smeets Blog :http://bram.jteam.nl/index.php/2006/09/12/scoping-in-spring-20/
MemeStorm Blog...
Hi,
I have a Portlet Controller which implements AbstarctWizardFormController of Spring Portlet MVC. My requirement is that i have to redirect to another portal page on successful completion...
Hi Karldmoore,
I have a bean which has user specific information, some of which i use session to populate. If it has user/session specific information, it should ideally be a...
Hi All,
I need opinion on the following. What kind of variables should be class level in Spring MVC framework or what variables should be instantiated by Spring via getters/setters and...
Hi Cantor/Chris,
The problem is solved, it was basically due to use of action url and render url in tandem. I used the solution given by Chris (cmelgar) and the problem was solved.
...
Hi Cantor,
The portal page has only one portlet. The portlet i described is has a form. When the page is displayed for first time, i just use formBackingObject to populate the form. My...
Hi,
I ran across this weird issue with Spring Portlet MVC framework. I have a portlet which extends SimpleFormController. I use formBackingObject to intialize the command Object, attached to the...
Hi,
You can append request params to the url and read it with request.getParameter(). But the main crux is you have to set the parameter in the format supported by the Portal Server. Look into...
You cannot create a url with appended with query params. But you can use taglib to achive this.
If you want to read form values, in your onSubmitAction() (assuming you are using FormControllers)...
Hi ArunD,
Try to increse the size of heap allocated to your application server/servlet container. Like for tomcat you could do it like this.
On Windows
Edit the file $TOMCAT_HOME\bin\startup.bat...
Hi ArunD,
Try to increse the size of heap allocated to your application server/servlet container. Like for tomcat you could do it like this.
On Windows
Edit the file...
Hi ArunD,
Try using String Tokenizer to read content between the delimiters to get the content from the flat file. Once you have read the content, you can populate your bean. If you...
Hi,
I have this senario. I have two pages (say Page1 and Page 2) with portlet in each page (Porlet A in Page 1 and Portlet B in Page2). Portlet A has three tabs (mulitiple controllers). My...
<c:if test="${props1 ne null}">
I guess you haven't mapped your home.htm to a controllor properly. Just check this out in your springapp-servlet.xml. Below is a sample of the mapping.
<property name="urlMap">
<props>...
this is how you validate a form
BEAN
package com.model;
public class Sample {
private String myString;
Hi ArunD,
This is how i do it in Portlets.
<!-- Handler Mapping -->
<bean id="parameterMappingInterceptor" class="org.springframework.web.portlet.handler.ParameterMappingInterceptor"/>
If you have multiple action map it with multiple controllers in handler mapping. Depending on the action the corresponding controller will be called. The mapping will come in web_app-servlet.xml for...