You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Joseph Leong <jo...@gmail.com> on 2008/02/07 22:50:58 UTC

Adding a page to a plugin

Hi everyone,

I'm trying to add a page to a plugin.  After tracing the code, it is running
through the handler ie.. hitting the actionBeforeView and going into the
renderView.  However nothing of my jsp page is showing up.

The steps i've taken are: 1) Create the handler page 2) create the jsp page
3) Add the "addhelper" in the ImportExportPortlet.java

Is there anything blatantly obvious that I'm missing? Or i will continue to
work with these 3 pieces.

Thanks!

-Joseph Leong

Re: Adding a page to a plugin

Posted by Manu George <ma...@gmail.com>.
Thanks all for pointing out the documentation. Looks like its pretty
detailed too. Will be very helpful. Will improve it if anything
missing

Regards
Manu

On Feb 9, 2008 1:11 AM, Joseph Leong <jo...@gmail.com> wrote:
> Just an update. I'm not sure exactly why the steps i took the first time
> didn't work... but it seems nothing was wrong with my procedure.  I
> Re-downloaded trunk, re-implemented and everything worked just like a charm.
> The only difference between the two was the way i imported the projected
> into eclipse.  The first method was unconventional and the second method was
> via mvn eclipse:eclipse
>
> Anyhow so for future reference, it is 1) Creating the handler page. 2)
> Creating the jsp page 3) Adding the addhelper in the ImportExport portlet.
>
> Now i can finally move along and finish this piece.
>
> Thanks again for everyone's input.
>
> Wishing everyone the best,
> -Joseph Leong
>
>
>
>
> On Feb 8, 2008 11:35 AM, Paul McMahan <pa...@gmail.com> wrote:
> > Right, the doc in the wiki about the extensible admin console was
> > really only helpful for Manu's followup to your question.  The
> > mutipage portlet code you referred to is internal to the admin
> > console and afaik is not documented anywhere nor is it intended to be
> > exposed as an externally supported api.   Creating an admin console
> > extension does not require you to implement your portlet this way.
> >
> > Paul
> >
> >
> >
> >
> > On Feb 8, 2008, at 10:37 AM, Joseph Leong wrote:
> >
> > > Thank you for all the responses!
> > >
> > > The piece i'm working on is the plugin installer in the console,
> > > but it seems to be built with some sort of multipage model
> > > framework. So this part of it is working a little differently than
> > > the documentation, but It just so happens that your wiki references
> > > on the extensible administration console will really help on the
> > > debug viewer plugin piece i'm working on.
> > >
> > > I'll post updates on what the missing piece was once i figure it
> > > out, feel it'll save someone down the road a good bit of time
> > > should they go down this route and find any other pieces of the
> > > console working on this multipage model framework.
> > >
> > > Wishing you all the best,
> > > Joseph Leong
> > >
> > > On Feb 7, 2008 4:50 PM, Joseph Leong <jo...@gmail.com> wrote:
> > > Hi everyone,
> > >
> > > I'm trying to add a page to a plugin.  After tracing the code, it
> > > is running through the handler ie.. hitting the actionBeforeView
> > > and going into the renderView.  However nothing of my jsp page is
> > > showing up.
> > >
> > > The steps i've taken are: 1) Create the handler page 2) create the
> > > jsp page 3) Add the "addhelper" in the ImportExportPortlet.java
> > >
> > > Is there anything blatantly obvious that I'm missing? Or i will
> > > continue to work with these 3 pieces.
> > >
> > > Thanks!
> > >
> > > -Joseph Leong
> > >
> >
> >
>
>

Re: Adding a page to a plugin

Posted by Joseph Leong <jo...@gmail.com>.
Just an update. I'm not sure exactly why the steps i took the first time
didn't work... but it seems nothing was wrong with my procedure.  I
Re-downloaded trunk, re-implemented and everything worked just like a charm.
The only difference between the two was the way i imported the projected
into eclipse.  The first method was unconventional and the second method was
via mvn eclipse:eclipse

Anyhow so for future reference, it is 1) Creating the handler page. 2)
Creating the jsp page 3) Adding the addhelper in the ImportExport portlet.

Now i can finally move along and finish this piece.

Thanks again for everyone's input.

Wishing everyone the best,
-Joseph Leong


On Feb 8, 2008 11:35 AM, Paul McMahan <pa...@gmail.com> wrote:

> Right, the doc in the wiki about the extensible admin console was
> really only helpful for Manu's followup to your question.  The
> mutipage portlet code you referred to is internal to the admin
> console and afaik is not documented anywhere nor is it intended to be
> exposed as an externally supported api.   Creating an admin console
> extension does not require you to implement your portlet this way.
>
> Paul
>
> On Feb 8, 2008, at 10:37 AM, Joseph Leong wrote:
>
> > Thank you for all the responses!
> >
> > The piece i'm working on is the plugin installer in the console,
> > but it seems to be built with some sort of multipage model
> > framework. So this part of it is working a little differently than
> > the documentation, but It just so happens that your wiki references
> > on the extensible administration console will really help on the
> > debug viewer plugin piece i'm working on.
> >
> > I'll post updates on what the missing piece was once i figure it
> > out, feel it'll save someone down the road a good bit of time
> > should they go down this route and find any other pieces of the
> > console working on this multipage model framework.
> >
> > Wishing you all the best,
> > Joseph Leong
> >
> > On Feb 7, 2008 4:50 PM, Joseph Leong <jo...@gmail.com> wrote:
> > Hi everyone,
> >
> > I'm trying to add a page to a plugin.  After tracing the code, it
> > is running through the handler ie.. hitting the actionBeforeView
> > and going into the renderView.  However nothing of my jsp page is
> > showing up.
> >
> > The steps i've taken are: 1) Create the handler page 2) create the
> > jsp page 3) Add the "addhelper" in the ImportExportPortlet.java
> >
> > Is there anything blatantly obvious that I'm missing? Or i will
> > continue to work with these 3 pieces.
> >
> > Thanks!
> >
> > -Joseph Leong
> >
>
>

Re: Adding a page to a plugin

Posted by Paul McMahan <pa...@gmail.com>.
Right, the doc in the wiki about the extensible admin console was  
really only helpful for Manu's followup to your question.  The  
mutipage portlet code you referred to is internal to the admin  
console and afaik is not documented anywhere nor is it intended to be  
exposed as an externally supported api.   Creating an admin console  
extension does not require you to implement your portlet this way.

Paul

On Feb 8, 2008, at 10:37 AM, Joseph Leong wrote:

> Thank you for all the responses!
>
> The piece i'm working on is the plugin installer in the console,  
> but it seems to be built with some sort of multipage model  
> framework. So this part of it is working a little differently than  
> the documentation, but It just so happens that your wiki references  
> on the extensible administration console will really help on the  
> debug viewer plugin piece i'm working on.
>
> I'll post updates on what the missing piece was once i figure it  
> out, feel it'll save someone down the road a good bit of time  
> should they go down this route and find any other pieces of the  
> console working on this multipage model framework.
>
> Wishing you all the best,
> Joseph Leong
>
> On Feb 7, 2008 4:50 PM, Joseph Leong <jo...@gmail.com> wrote:
> Hi everyone,
>
> I'm trying to add a page to a plugin.  After tracing the code, it  
> is running through the handler ie.. hitting the actionBeforeView  
> and going into the renderView.  However nothing of my jsp page is  
> showing up.
>
> The steps i've taken are: 1) Create the handler page 2) create the  
> jsp page 3) Add the "addhelper" in the ImportExportPortlet.java
>
> Is there anything blatantly obvious that I'm missing? Or i will  
> continue to work with these 3 pieces.
>
> Thanks!
>
> -Joseph Leong
>


Re: Adding a page to a plugin

Posted by Joseph Leong <jo...@gmail.com>.
Thank you for all the responses!

The piece i'm working on is the plugin installer in the console, but it
seems to be built with some sort of multipage model framework. So this part
of it is working a little differently than the documentation, but It just so
happens that your wiki references on the extensible administration console
will really help on the debug viewer plugin piece i'm working on.

I'll post updates on what the missing piece was once i figure it out, feel
it'll save someone down the road a good bit of time should they go down this
route and find any other pieces of the console working on this multipage
model framework.

Wishing you all the best,
Joseph Leong

On Feb 7, 2008 4:50 PM, Joseph Leong <jo...@gmail.com> wrote:

> Hi everyone,
>
> I'm trying to add a page to a plugin.  After tracing the code, it is
> running through the handler ie.. hitting the actionBeforeView and going into
> the renderView.  However nothing of my jsp page is showing up.
>
> The steps i've taken are: 1) Create the handler page 2) create the jsp
> page 3) Add the "addhelper" in the ImportExportPortlet.java
>
> Is there anything blatantly obvious that I'm missing? Or i will continue
> to work with these 3 pieces.
>
> Thanks!
>
> -Joseph Leong
>

Re: Adding a page to a plugin

Posted by Donald Woods <dw...@apache.org>.
OK, found the "source" on the Develpoer's Guide page - 
http://cwiki.apache.org/GMOxDEV/administration-console-extension-developers-guide.html

Seems that it should be in /geronimo/samples/branches/2.1 and we should 
combine these 2 wiki pages into one.

Anyway, at least its documented....


-Donald


Donald Woods wrote:
> Where is the source code for the Hello World example Portlet included at 
> the bottom of page - 
> http://cwiki.apache.org/GMOxDEV/administration-console-extension-users-guide.html 
> 
> 
> Also, shouldn't we either link or copy this into the 2.1 Docs??? Telling 
> people to look in 2 different wiki spaces screams confusion and lack of 
> usability for our users.....
> 
> 
> 
> -Donald
> 
> Joe Bohn wrote:
>> Manu George wrote:
>>> Hi,
>>>         On a related note , since the pluggable console was introduced
>>> is there any doc on how to include new portlets or on the architecture
>>> of the pluggable console. A doc will really go a long way in helping
>>> others develop new portlets. A list of files to look at will in itself
>>> be a great help.
>>>
>>> Thanks
>>> Manu
>>
>> There's some doc in the wiki:
>>
>> http://cwiki.apache.org/GMOxDEV/extensible-administration-console.html
>>
>> Joe
>>

Re: Adding a page to a plugin

Posted by Donald Woods <dw...@apache.org>.
Where is the source code for the Hello World example Portlet included at 
the bottom of page - 
http://cwiki.apache.org/GMOxDEV/administration-console-extension-users-guide.html

Also, shouldn't we either link or copy this into the 2.1 Docs??? 
Telling people to look in 2 different wiki spaces screams confusion and 
lack of usability for our users.....



-Donald

Joe Bohn wrote:
> Manu George wrote:
>> Hi,
>>         On a related note , since the pluggable console was introduced
>> is there any doc on how to include new portlets or on the architecture
>> of the pluggable console. A doc will really go a long way in helping
>> others develop new portlets. A list of files to look at will in itself
>> be a great help.
>>
>> Thanks
>> Manu
> 
> There's some doc in the wiki:
> 
> http://cwiki.apache.org/GMOxDEV/extensible-administration-console.html
> 
> Joe
> 

Re: Adding a page to a plugin

Posted by Joe Bohn <jo...@earthlink.net>.
Manu George wrote:
> Hi,
>         On a related note , since the pluggable console was introduced
> is there any doc on how to include new portlets or on the architecture
> of the pluggable console. A doc will really go a long way in helping
> others develop new portlets. A list of files to look at will in itself
> be a great help.
> 
> Thanks
> Manu

There's some doc in the wiki:

http://cwiki.apache.org/GMOxDEV/extensible-administration-console.html

Joe

Re: Adding a page to a plugin

Posted by Paul McMahan <pa...@gmail.com>.
There is some documentation on the extensible admin console here  
which describes the architecture and has samples:
http://cwiki.apache.org/GMOxDEV/extensible-administration-console.html

If you are writing a plugin for the admin console then I would  
encourage you to look over that documentation and improve/correct it  
as you see fit.

Best wishes,
Paul

On Feb 8, 2008, at 1:49 AM, Manu George wrote:

> Hi,
>         On a related note , since the pluggable console was introduced
> is there any doc on how to include new portlets or on the architecture
> of the pluggable console. A doc will really go a long way in helping
> others develop new portlets. A list of files to look at will in itself
> be a great help.
>
> Thanks
> Manu
>
> On Feb 8, 2008 3:20 AM, Joseph Leong <jo...@gmail.com> wrote:
>> Hi everyone,
>>
>> I'm trying to add a page to a plugin.  After tracing the code, it  
>> is running
>> through the handler ie.. hitting the actionBeforeView and going  
>> into the
>> renderView.  However nothing of my jsp page is showing up.
>>
>> The steps i've taken are: 1) Create the handler page 2) create the  
>> jsp page
>> 3) Add the "addhelper" in the ImportExportPortlet.java
>>
>> Is there anything blatantly obvious that I'm missing? Or i will  
>> continue to
>> work with these 3 pieces.
>>
>> Thanks!
>>
>> -Joseph Leong
>>


Re: Adding a page to a plugin

Posted by Manu George <ma...@gmail.com>.
Hi,
        On a related note , since the pluggable console was introduced
is there any doc on how to include new portlets or on the architecture
of the pluggable console. A doc will really go a long way in helping
others develop new portlets. A list of files to look at will in itself
be a great help.

Thanks
Manu

On Feb 8, 2008 3:20 AM, Joseph Leong <jo...@gmail.com> wrote:
> Hi everyone,
>
> I'm trying to add a page to a plugin.  After tracing the code, it is running
> through the handler ie.. hitting the actionBeforeView and going into the
> renderView.  However nothing of my jsp page is showing up.
>
> The steps i've taken are: 1) Create the handler page 2) create the jsp page
> 3) Add the "addhelper" in the ImportExportPortlet.java
>
> Is there anything blatantly obvious that I'm missing? Or i will continue to
> work with these 3 pieces.
>
> Thanks!
>
> -Joseph Leong
>