You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Vladimir Simjanoski <vl...@gmail.com> on 2005/03/23 12:22:27 UTC

Portlet body not shown

Hello!
I've Tomcat 5.0.28 with J2 (binary) installed.

Done one simple portlet and deployed it like it's explained in the
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
The problem is that I only got the portlet title in the default page
(the portlet body is missing).
Since I couldn't find anything in the logs, I don't know what could be
the problem.

I'm trying to push J2 as a JSR168 implementation for the student's
portal in my university.
So, I need to show something very quickly. PLEASE, HELP!!!


Regards, 
Vladimir

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Portlet body not shown

Posted by Vladimir Simjanoski <vl...@gmail.com>.
Just to share my experience with the others who might read this...
I've took some time to read Jetspeed doc, get Eclipse, XDoclet, write
the same portlet
again using the XDoclet for generating portlet.xml and web.xml and
deployed it using OTHER war name then previously deployed (I didn't
have time to investigate why the hot undeploy/deploy schema doesn't
work for me...).
Anyway, the portlet body is shown now and I'm looking forward at
deploying other portlets in J2. :)

Thanx for help, Thomas

 On Wed, 23 Mar 2005 14:43:22 +0100, Thomas.Koch@nepatec.de
<Th...@nepatec.de> wrote:
> in this example, someone use the write()-method.....
> 
> public void render(
> RenderRequest request,
> RenderResponse response)
> throws PortletException, IOException
> {
> renderCounter++;
> response.setTitle("Simple Portlet");
> response.setContentType("text/html");
> PrintWriter out = response.getWriter();
> out.write("The server has instantiated " +
> portletCounter +
> " copies of the portlet<br>");
> out.write("This portlet has been rendered " +
> renderCounter +
> " times (including this one)<br>");
> out.write("This portlet has received " +
> actionCounter +
> " action requests<br>");
> PortletURL action = response.createActionURL();
> out.write("Click <a href=\"");
> out.write(action.toString());
> out.write("\">here</a> to trigger an action.<br>");
> }
> 
> ____________________________________________
> thomas koch
> nepatec gmbh
> glashüttenstr. 2, 30165 hannover
> fon +49(0)511 935 946.51, fax +49(0)511 935 946.57
> mailto:thomas.koch@nepatec.de
> http://www.nepatec.de
> 
> 
> Vladimir Simjanoski <vl...@gmail.com>
> 23.03.2005 13:29
> Please respond to "Jetspeed Users List"
> 
>         To:     Jetspeed Users List <je...@jakarta.apache.org>
>         cc:
>         Subject:        Re: Portlet body not shown
> 
> yes, it's in the root of the portlet application.
> I've tried both ways:
>   - redirect to view.jsp from the doVIew() of the portlet
>   - just put this in doView()
>        - response.setContentType("text/html");
>        - response.getWriter().print("<p>Something...</p>");
> The effect is the same in both ways...
> Any idea what am I doing wrong?
> 
> On Wed, 23 Mar 2005 13:16:03 +0100, Thomas.Koch@nepatec.de
> <Th...@nepatec.de> wrote:
> > du you have a view.jsp ?
> > <name>jspView</name>
> >        <value>/view.jsp</value>
> >
> > Vladimir Simjanoski <vl...@gmail.com>
> > 23.03.2005 13:05
> > Please respond to "Jetspeed Users List"
> >
> >         To:     Jetspeed Users List <je...@jakarta.apache.org>
> >         cc:
> >         Subject:        Re: Portlet body not shown
> >
> > I've just added this to default-page.psml
> >     <fragment id="dp-26" type="portlet" name="first::FirstPortlet">
> >       <property layout="TwoColumns" name="row" value="4" />
> >       <property layout="TwoColumns" name="column" value="0" />
> >     </fragment>
> >
> > My first.war(deployed in \WEB-INF\deploy) has the following structure
> >  - WEB-INF
> >       - classes/ (with only the portlet class)
> >       - lib/
> >       - portlet.xml
> >       - web.xml
> >
> > and the portlet.xml looks like:
> > <portlet-app id="first" version="1.0">
> >
> > <portlet id="FirstPortlet">
> >      <init-param>
> >        <name>jspView</name>
> >        <value>/view.jsp</value>
> >      </init-param>
> >     <portlet-name>FirstPortlet</portlet-name>
> >     <display-name>FirstPortlet Wrapper</display-name>
> >     <description>This is a test</description>
> >     <portlet-class>test.FirstPortlet</portlet-class>
> >     <expiration-cache>-1</expiration-cache>
> >     <supports>
> >       <mime-type>text/html</mime-type>
> >       <portlet-mode>EDIT</portlet-mode>
> >       <portlet-mode>VIEW</portlet-mode>
> >       <portlet-mode>HELP</portlet-mode>
> >     </supports>
> >     <supported-locale>en</supported-locale>
> >     <portlet-info>
> >       <title>FirstPortlet Title</title>
> >       <short-title>the very first</short-title>
> >       <keywords>First</keywords>
> >     </portlet-info>
> >   </portlet>
> > </portlet-app>
> >
> > Users List"
> > >
> > >         To:     Jetspeed Users List <je...@jakarta.apache.org>
> > >         cc:
> > >         Subject:        Re: Portlet body not shown
> > >
> > >
> > > Hi!
> > > It's just a dummy portlet that extends GenericPortlet and in doView()
> > > and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
> > > no forwarding.
> > >
> > > vladimi
> > >
> > > On Wed, 23 Mar 2005 12:24:20 +0100, Thomas.Koch@nepatec.de
> > > <Th...@nepatec.de> wrote:
> > > > hi !
> > > > what kind of portlet it is ?
> > > >
> > > > i had the problem with a struts-portlet if i used wrong
> > > > jars and tld's or put too much redirects in my struts-config
> > > >
> > > > thomas
> > > >
> > > > Vladimir Simjanoski <vl...@gmail.com>
> > > > 23.03.2005 12:22
> > > > Please respond to "Jetspeed Users List"
> > > >
> > > >         To:     jetspeed-user@jakarta.apache.org
> > > >         cc:
> > > >         Subject:        Portlet body not shown
> > > >
> > > >
> > > > Hello!
> > > > I've Tomcat 5.0.28 with J2 (binary) installed.
> > > >
> > > > Done one simple portlet and deployed it like it's explained in the
> > > > http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> > > > The problem is that I only got the portlet title in the default page
> > > > (the portlet body is missing).
> > > > Since I couldn't find anything in the logs, I don't know what could
> be
> > > > the problem.
> > > >
> > > > I'm trying to push J2 as a JSR168 implementation for the student's
> > > > portal in my university.
> > > > So, I need to show something very quickly. PLEASE, HELP!!!
> > > >
> > > > Regards,
> > > > Vladimir
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Portlet body not shown

Posted by Th...@nepatec.de.
i'am not fit in normal portlets, but perhaps:

the portlet.xml execute the veiw.jsp.
what is in this jsp ?

and in your portlet u write into the response the a "<p>.."

it's possible that one of both will not use ?





yes, it's in the root of the portlet application.
I've tried both ways:
  - redirect to view.jsp from the doVIew() of the portlet
  - just put this in doView()
       - response.setContentType("text/html");
       - response.getWriter().print("<p>Something...</p>");
The effect is the same in both ways...
Any idea what am I doing wrong?

On Wed, 23 Mar 2005 13:16:03 +0100, Thomas.Koch@nepatec.de
<Th...@nepatec.de> wrote:
> du you have a view.jsp ?
> <name>jspView</name>
>        <value>/view.jsp</value>
> 
> Vladimir Simjanoski <vl...@gmail.com>
> 23.03.2005 13:05
> Please respond to "Jetspeed Users List"
> 
>         To:     Jetspeed Users List <je...@jakarta.apache.org>
>         cc:
>         Subject:        Re: Portlet body not shown
> 
> I've just added this to default-page.psml
>     <fragment id="dp-26" type="portlet" name="first::FirstPortlet">
>       <property layout="TwoColumns" name="row" value="4" />
>       <property layout="TwoColumns" name="column" value="0" />
>     </fragment>
> 
> My first.war(deployed in \WEB-INF\deploy) has the following structure
>  - WEB-INF
>       - classes/ (with only the portlet class)
>       - lib/
>       - portlet.xml
>       - web.xml
> 
> and the portlet.xml looks like:
> <portlet-app id="first" version="1.0">
> 
> <portlet id="FirstPortlet">
>      <init-param>
>        <name>jspView</name>
>        <value>/view.jsp</value>
>      </init-param>
>     <portlet-name>FirstPortlet</portlet-name>
>     <display-name>FirstPortlet Wrapper</display-name>
>     <description>This is a test</description>
>     <portlet-class>test.FirstPortlet</portlet-class>
>     <expiration-cache>-1</expiration-cache>
>     <supports>
>       <mime-type>text/html</mime-type>
>       <portlet-mode>EDIT</portlet-mode>
>       <portlet-mode>VIEW</portlet-mode>
>       <portlet-mode>HELP</portlet-mode>
>     </supports>
>     <supported-locale>en</supported-locale>
>     <portlet-info>
>       <title>FirstPortlet Title</title>
>       <short-title>the very first</short-title>
>       <keywords>First</keywords>
>     </portlet-info>
>   </portlet>
> </portlet-app>
> 
> Users List"
> >
> >         To:     Jetspeed Users List <je...@jakarta.apache.org>
> >         cc:
> >         Subject:        Re: Portlet body not shown
> >
> >
> > Hi!
> > It's just a dummy portlet that extends GenericPortlet and in doView()
> > and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
> > no forwarding.
> >
> > vladimi
> >
> > On Wed, 23 Mar 2005 12:24:20 +0100, Thomas.Koch@nepatec.de
> > <Th...@nepatec.de> wrote:
> > > hi !
> > > what kind of portlet it is ?
> > >
> > > i had the problem with a struts-portlet if i used wrong
> > > jars and tld's or put too much redirects in my struts-config
> > >
> > > thomas
> > >
> > > Vladimir Simjanoski <vl...@gmail.com>
> > > 23.03.2005 12:22
> > > Please respond to "Jetspeed Users List"
> > >
> > >         To:     jetspeed-user@jakarta.apache.org
> > >         cc:
> > >         Subject:        Portlet body not shown
> > >
> > >
> > > Hello!
> > > I've Tomcat 5.0.28 with J2 (binary) installed.
> > >
> > > Done one simple portlet and deployed it like it's explained in the
> > > http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> > > The problem is that I only got the portlet title in the default page
> > > (the portlet body is missing).
> > > Since I couldn't find anything in the logs, I don't know what could 
be
> > > the problem.
> > >
> > > I'm trying to push J2 as a JSR168 implementation for the student's
> > > portal in my university.
> > > So, I need to show something very quickly. PLEASE, HELP!!!
> > >
> > > Regards,
> > > Vladimir
> > >
> > > 
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: 
jetspeed-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org



Re: Portlet body not shown

Posted by Th...@nepatec.de.
in this example, someone use the write()-method.....

public void render(
RenderRequest request,
RenderResponse response)
throws PortletException, IOException
{
renderCounter++;
response.setTitle("Simple Portlet");
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.write("The server has instantiated " +
portletCounter +
" copies of the portlet<br>");
out.write("This portlet has been rendered " +
renderCounter +
" times (including this one)<br>");
out.write("This portlet has received " +
actionCounter +
" action requests<br>");
PortletURL action = response.createActionURL();
out.write("Click <a href=\"");
out.write(action.toString());
out.write("\">here</a> to trigger an action.<br>");
}


____________________________________________
thomas koch
nepatec gmbh
glashüttenstr. 2, 30165 hannover
fon +49(0)511 935 946.51, fax +49(0)511 935 946.57
mailto:thomas.koch@nepatec.de
http://www.nepatec.de




Vladimir Simjanoski <vl...@gmail.com>
23.03.2005 13:29
Please respond to "Jetspeed Users List"
 
        To:     Jetspeed Users List <je...@jakarta.apache.org>
        cc: 
        Subject:        Re: Portlet body not shown


yes, it's in the root of the portlet application.
I've tried both ways:
  - redirect to view.jsp from the doVIew() of the portlet
  - just put this in doView()
       - response.setContentType("text/html");
       - response.getWriter().print("<p>Something...</p>");
The effect is the same in both ways...
Any idea what am I doing wrong?

On Wed, 23 Mar 2005 13:16:03 +0100, Thomas.Koch@nepatec.de
<Th...@nepatec.de> wrote:
> du you have a view.jsp ?
> <name>jspView</name>
>        <value>/view.jsp</value>
> 
> Vladimir Simjanoski <vl...@gmail.com>
> 23.03.2005 13:05
> Please respond to "Jetspeed Users List"
> 
>         To:     Jetspeed Users List <je...@jakarta.apache.org>
>         cc:
>         Subject:        Re: Portlet body not shown
> 
> I've just added this to default-page.psml
>     <fragment id="dp-26" type="portlet" name="first::FirstPortlet">
>       <property layout="TwoColumns" name="row" value="4" />
>       <property layout="TwoColumns" name="column" value="0" />
>     </fragment>
> 
> My first.war(deployed in \WEB-INF\deploy) has the following structure
>  - WEB-INF
>       - classes/ (with only the portlet class)
>       - lib/
>       - portlet.xml
>       - web.xml
> 
> and the portlet.xml looks like:
> <portlet-app id="first" version="1.0">
> 
> <portlet id="FirstPortlet">
>      <init-param>
>        <name>jspView</name>
>        <value>/view.jsp</value>
>      </init-param>
>     <portlet-name>FirstPortlet</portlet-name>
>     <display-name>FirstPortlet Wrapper</display-name>
>     <description>This is a test</description>
>     <portlet-class>test.FirstPortlet</portlet-class>
>     <expiration-cache>-1</expiration-cache>
>     <supports>
>       <mime-type>text/html</mime-type>
>       <portlet-mode>EDIT</portlet-mode>
>       <portlet-mode>VIEW</portlet-mode>
>       <portlet-mode>HELP</portlet-mode>
>     </supports>
>     <supported-locale>en</supported-locale>
>     <portlet-info>
>       <title>FirstPortlet Title</title>
>       <short-title>the very first</short-title>
>       <keywords>First</keywords>
>     </portlet-info>
>   </portlet>
> </portlet-app>
> 
> Users List"
> >
> >         To:     Jetspeed Users List <je...@jakarta.apache.org>
> >         cc:
> >         Subject:        Re: Portlet body not shown
> >
> >
> > Hi!
> > It's just a dummy portlet that extends GenericPortlet and in doView()
> > and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
> > no forwarding.
> >
> > vladimi
> >
> > On Wed, 23 Mar 2005 12:24:20 +0100, Thomas.Koch@nepatec.de
> > <Th...@nepatec.de> wrote:
> > > hi !
> > > what kind of portlet it is ?
> > >
> > > i had the problem with a struts-portlet if i used wrong
> > > jars and tld's or put too much redirects in my struts-config
> > >
> > > thomas
> > >
> > > Vladimir Simjanoski <vl...@gmail.com>
> > > 23.03.2005 12:22
> > > Please respond to "Jetspeed Users List"
> > >
> > >         To:     jetspeed-user@jakarta.apache.org
> > >         cc:
> > >         Subject:        Portlet body not shown
> > >
> > >
> > > Hello!
> > > I've Tomcat 5.0.28 with J2 (binary) installed.
> > >
> > > Done one simple portlet and deployed it like it's explained in the
> > > http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> > > The problem is that I only got the portlet title in the default page
> > > (the portlet body is missing).
> > > Since I couldn't find anything in the logs, I don't know what could 
be
> > > the problem.
> > >
> > > I'm trying to push J2 as a JSR168 implementation for the student's
> > > portal in my university.
> > > So, I need to show something very quickly. PLEASE, HELP!!!
> > >
> > > Regards,
> > > Vladimir
> > >
> > > 
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: 
jetspeed-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org



Re: Portlet body not shown

Posted by Vladimir Simjanoski <vl...@gmail.com>.
yes, it's in the root of the portlet application.
I've tried both ways:
  - redirect to view.jsp from the doVIew() of the portlet
  - just put this in doView()
       - response.setContentType("text/html");
       - response.getWriter().print("<p>Something...</p>");
The effect is the same in both ways...
Any idea what am I doing wrong?

On Wed, 23 Mar 2005 13:16:03 +0100, Thomas.Koch@nepatec.de
<Th...@nepatec.de> wrote:
> du you have a view.jsp ?
> <name>jspView</name>
>        <value>/view.jsp</value>
> 
> Vladimir Simjanoski <vl...@gmail.com>
> 23.03.2005 13:05
> Please respond to "Jetspeed Users List"
> 
>         To:     Jetspeed Users List <je...@jakarta.apache.org>
>         cc:
>         Subject:        Re: Portlet body not shown
> 
> I've just added this to default-page.psml
>     <fragment id="dp-26" type="portlet" name="first::FirstPortlet">
>       <property layout="TwoColumns" name="row" value="4" />
>       <property layout="TwoColumns" name="column" value="0" />
>     </fragment>
> 
> My first.war(deployed in \WEB-INF\deploy) has the following structure
>  - WEB-INF
>       - classes/ (with only the portlet class)
>       - lib/
>       - portlet.xml
>       - web.xml
> 
> and the portlet.xml looks like:
> <portlet-app id="first" version="1.0">
> 
> <portlet id="FirstPortlet">
>      <init-param>
>        <name>jspView</name>
>        <value>/view.jsp</value>
>      </init-param>
>     <portlet-name>FirstPortlet</portlet-name>
>     <display-name>FirstPortlet Wrapper</display-name>
>     <description>This is a test</description>
>     <portlet-class>test.FirstPortlet</portlet-class>
>     <expiration-cache>-1</expiration-cache>
>     <supports>
>       <mime-type>text/html</mime-type>
>       <portlet-mode>EDIT</portlet-mode>
>       <portlet-mode>VIEW</portlet-mode>
>       <portlet-mode>HELP</portlet-mode>
>     </supports>
>     <supported-locale>en</supported-locale>
>     <portlet-info>
>       <title>FirstPortlet Title</title>
>       <short-title>the very first</short-title>
>       <keywords>First</keywords>
>     </portlet-info>
>   </portlet>
> </portlet-app>
> 
> Users List"
> >
> >         To:     Jetspeed Users List <je...@jakarta.apache.org>
> >         cc:
> >         Subject:        Re: Portlet body not shown
> >
> >
> > Hi!
> > It's just a dummy portlet that extends GenericPortlet and in doView()
> > and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
> > no forwarding.
> >
> > vladimi
> >
> > On Wed, 23 Mar 2005 12:24:20 +0100, Thomas.Koch@nepatec.de
> > <Th...@nepatec.de> wrote:
> > > hi !
> > > what kind of portlet it is ?
> > >
> > > i had the problem with a struts-portlet if i used wrong
> > > jars and tld's or put too much redirects in my struts-config
> > >
> > > thomas
> > >
> > > Vladimir Simjanoski <vl...@gmail.com>
> > > 23.03.2005 12:22
> > > Please respond to "Jetspeed Users List"
> > >
> > >         To:     jetspeed-user@jakarta.apache.org
> > >         cc:
> > >         Subject:        Portlet body not shown
> > >
> > >
> > > Hello!
> > > I've Tomcat 5.0.28 with J2 (binary) installed.
> > >
> > > Done one simple portlet and deployed it like it's explained in the
> > > http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> > > The problem is that I only got the portlet title in the default page
> > > (the portlet body is missing).
> > > Since I couldn't find anything in the logs, I don't know what could be
> > > the problem.
> > >
> > > I'm trying to push J2 as a JSR168 implementation for the student's
> > > portal in my university.
> > > So, I need to show something very quickly. PLEASE, HELP!!!
> > >
> > > Regards,
> > > Vladimir
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Portlet body not shown

Posted by Th...@nepatec.de.
du you have a view.jsp ?
<name>jspView</name>
       <value>/view.jsp</value>





Vladimir Simjanoski <vl...@gmail.com>
23.03.2005 13:05
Please respond to "Jetspeed Users List"
 
        To:     Jetspeed Users List <je...@jakarta.apache.org>
        cc: 
        Subject:        Re: Portlet body not shown


I've just added this to default-page.psml
    <fragment id="dp-26" type="portlet" name="first::FirstPortlet">
      <property layout="TwoColumns" name="row" value="4" />
      <property layout="TwoColumns" name="column" value="0" />
    </fragment>

My first.war(deployed in \WEB-INF\deploy) has the following structure
 - WEB-INF
      - classes/ (with only the portlet class)
      - lib/ 
      - portlet.xml
      - web.xml

and the portlet.xml looks like:
<portlet-app id="first" version="1.0">

<portlet id="FirstPortlet">
     <init-param>
       <name>jspView</name>
       <value>/view.jsp</value>
     </init-param>
    <portlet-name>FirstPortlet</portlet-name>
    <display-name>FirstPortlet Wrapper</display-name>
    <description>This is a test</description>
    <portlet-class>test.FirstPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>EDIT</portlet-mode>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <portlet-info>
      <title>FirstPortlet Title</title>
      <short-title>the very first</short-title>
      <keywords>First</keywords>
    </portlet-info>
  </portlet>
</portlet-app>


Users List"
> 
>         To:     Jetspeed Users List <je...@jakarta.apache.org>
>         cc:
>         Subject:        Re: Portlet body not shown
> 
> 
> Hi!
> It's just a dummy portlet that extends GenericPortlet and in doView()
> and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
> no forwarding.
> 
> vladimi
> 
> On Wed, 23 Mar 2005 12:24:20 +0100, Thomas.Koch@nepatec.de
> <Th...@nepatec.de> wrote:
> > hi !
> > what kind of portlet it is ?
> >
> > i had the problem with a struts-portlet if i used wrong
> > jars and tld's or put too much redirects in my struts-config
> >
> > thomas
> >
> > Vladimir Simjanoski <vl...@gmail.com>
> > 23.03.2005 12:22
> > Please respond to "Jetspeed Users List"
> >
> >         To:     jetspeed-user@jakarta.apache.org
> >         cc:
> >         Subject:        Portlet body not shown
> >
> >
> > Hello!
> > I've Tomcat 5.0.28 with J2 (binary) installed.
> >
> > Done one simple portlet and deployed it like it's explained in the
> > http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> > The problem is that I only got the portlet title in the default page
> > (the portlet body is missing).
> > Since I couldn't find anything in the logs, I don't know what could be
> > the problem.
> >
> > I'm trying to push J2 as a JSR168 implementation for the student's
> > portal in my university.
> > So, I need to show something very quickly. PLEASE, HELP!!!
> >
> > Regards,
> > Vladimir
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org



Re: Portlet body not shown

Posted by Vladimir Simjanoski <vl...@gmail.com>.
I've just added this to default-page.psml
    <fragment id="dp-26" type="portlet" name="first::FirstPortlet">
      <property layout="TwoColumns" name="row" value="4" />
      <property layout="TwoColumns" name="column" value="0" />
    </fragment>

My first.war(deployed in \WEB-INF\deploy) has the following structure
 - WEB-INF
      - classes/ (with only the portlet class)
      - lib/ 
      - portlet.xml
      - web.xml

and the portlet.xml looks like:
<portlet-app id="first" version="1.0">

<portlet id="FirstPortlet">
     <init-param>
       <name>jspView</name>
       <value>/view.jsp</value>
     </init-param>
    <portlet-name>FirstPortlet</portlet-name>
    <display-name>FirstPortlet Wrapper</display-name>
    <description>This is a test</description>
    <portlet-class>test.FirstPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>EDIT</portlet-mode>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <portlet-info>
      <title>FirstPortlet Title</title>
      <short-title>the very first</short-title>
      <keywords>First</keywords>
    </portlet-info>
  </portlet>
</portlet-app>


Users List"
> 
>         To:     Jetspeed Users List <je...@jakarta.apache.org>
>         cc:
>         Subject:        Re: Portlet body not shown
> 
> 
> Hi!
> It's just a dummy portlet that extends GenericPortlet and in doView()
> and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
> no forwarding.
> 
> vladimi
> 
> On Wed, 23 Mar 2005 12:24:20 +0100, Thomas.Koch@nepatec.de
> <Th...@nepatec.de> wrote:
> > hi !
> > what kind of portlet it is ?
> >
> > i had the problem with a struts-portlet if i used wrong
> > jars and tld's or put too much redirects in my struts-config
> >
> > thomas
> >
> > Vladimir Simjanoski <vl...@gmail.com>
> > 23.03.2005 12:22
> > Please respond to "Jetspeed Users List"
> >
> >         To:     jetspeed-user@jakarta.apache.org
> >         cc:
> >         Subject:        Portlet body not shown
> >
> >
> > Hello!
> > I've Tomcat 5.0.28 with J2 (binary) installed.
> >
> > Done one simple portlet and deployed it like it's explained in the
> > http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> > The problem is that I only got the portlet title in the default page
> > (the portlet body is missing).
> > Since I couldn't find anything in the logs, I don't know what could be
> > the problem.
> >
> > I'm trying to push J2 as a JSR168 implementation for the student's
> > portal in my university.
> > So, I need to show something very quickly. PLEASE, HELP!!!
> >
> > Regards,
> > Vladimir
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Portlet body not shown

Posted by Th...@nepatec.de.
i only worked with struts-portlets.

perhaps u could post your psml and other sources ?





Vladimir Simjanoski <vl...@gmail.com>
23.03.2005 12:42
Please respond to "Jetspeed Users List"
 
        To:     Jetspeed Users List <je...@jakarta.apache.org>
        cc: 
        Subject:        Re: Portlet body not shown


Hi!
It's just a dummy portlet that extends GenericPortlet and in doView()
and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
no forwarding.

vladimir

On Wed, 23 Mar 2005 12:24:20 +0100, Thomas.Koch@nepatec.de
<Th...@nepatec.de> wrote:
> hi !
> what kind of portlet it is ?
> 
> i had the problem with a struts-portlet if i used wrong
> jars and tld's or put too much redirects in my struts-config
> 
> thomas
> 
> Vladimir Simjanoski <vl...@gmail.com>
> 23.03.2005 12:22
> Please respond to "Jetspeed Users List"
> 
>         To:     jetspeed-user@jakarta.apache.org
>         cc:
>         Subject:        Portlet body not shown
> 
> 
> Hello!
> I've Tomcat 5.0.28 with J2 (binary) installed.
> 
> Done one simple portlet and deployed it like it's explained in the
> http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> The problem is that I only got the portlet title in the default page
> (the portlet body is missing).
> Since I couldn't find anything in the logs, I don't know what could be
> the problem.
> 
> I'm trying to push J2 as a JSR168 implementation for the student's
> portal in my university.
> So, I need to show something very quickly. PLEASE, HELP!!!
> 
> Regards,
> Vladimir
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org



Re: Portlet body not shown

Posted by Vladimir Simjanoski <vl...@gmail.com>.
Hi!
It's just a dummy portlet that extends GenericPortlet and in doView()
and doEdit() renders just one line (i.e. "FIRST TEST..."). No Struts,
no forwarding.

vladimir

On Wed, 23 Mar 2005 12:24:20 +0100, Thomas.Koch@nepatec.de
<Th...@nepatec.de> wrote:
> hi !
> what kind of portlet it is ?
> 
> i had the problem with a struts-portlet if i used wrong
> jars and tld's or put too much redirects in my struts-config
> 
> thomas
> 
> Vladimir Simjanoski <vl...@gmail.com>
> 23.03.2005 12:22
> Please respond to "Jetspeed Users List"
> 
>         To:     jetspeed-user@jakarta.apache.org
>         cc:
>         Subject:        Portlet body not shown
> 
> 
> Hello!
> I've Tomcat 5.0.28 with J2 (binary) installed.
> 
> Done one simple portlet and deployed it like it's explained in the
> http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
> The problem is that I only got the portlet title in the default page
> (the portlet body is missing).
> Since I couldn't find anything in the logs, I don't know what could be
> the problem.
> 
> I'm trying to push J2 as a JSR168 implementation for the student's
> portal in my university.
> So, I need to show something very quickly. PLEASE, HELP!!!
> 
> Regards,
> Vladimir
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Portlet body not shown

Posted by Th...@nepatec.de.
hi !
what kind of portlet it is ?

i had the problem with a struts-portlet if i used wrong 
jars and tld's or put too much redirects in my struts-config

thomas






Vladimir Simjanoski <vl...@gmail.com>
23.03.2005 12:22
Please respond to "Jetspeed Users List"
 
        To:     jetspeed-user@jakarta.apache.org
        cc: 
        Subject:        Portlet body not shown


Hello!
I've Tomcat 5.0.28 with J2 (binary) installed.

Done one simple portlet and deployed it like it's explained in the
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets.
The problem is that I only got the portlet title in the default page
(the portlet body is missing).
Since I couldn't find anything in the logs, I don't know what could be
the problem.

I'm trying to push J2 as a JSR168 implementation for the student's
portal in my university.
So, I need to show something very quickly. PLEASE, HELP!!!


Regards, 
Vladimir

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org