|
From: William G. T. Jr. <wg...@ru...> - 2004-04-29 02:30:32
|
Folks, Spring Portlet MVC layer is rendering JSTL Views with full ApplicationContext support!!! I ended having to port just about the entire org.springframework.web.servlet.* package. Should this go into the sandbox? I suspect that it may still need some refactoring...after we play with it a bit more. later. Bill -- William G. Thompson, Jr. Associate Director of New Technologies Administrative Computing Services, Rutgers University voice: 732 445-5428 | fax: 732 445-5493 | wg...@ru... |
|
From: Maxim P. <MPe...@in...> - 2004-05-31 09:40:15
|
Hello,William I did deploy on uPortal server as you say but receive the following exception: org.jasig.portal.PortalException: Unable to find portlet definition for ID 'springportlet.ExampleSpringPortlet' at org.jasig.portal.channels.portlet.CPortletAdapter.initPortletWindow (CPortletAdapter.java:194) at org.jasig.portal.channels.portlet.CPortletAdapter.renderCharacters (CPortletAdapter.java:429) at org.jasig.portal.MultithreadedCharacterChannelAdapter.renderCharacters (MultithreadedCharacterChannelAdapter.java:71) at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:481) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) I don't see any portlet definitions in webapps/uPortal dir... What I did wrong? Thank you, Maxim |
|
From: William G. T. Jr. <wg...@ru...> - 2004-05-31 12:33:35
|
Maxim, If looks like you are trying an old version...directions for the latest version are here: http://list.unm.edu/cgi-bin/wa?A2=ind0405&L=jasig-dev&P=R2654 After running, ant deployPortletApp -DportletApp=spring-example-portlet.war you should have a servlet context, ../webapps/spring-example-portlet and the portlet Id is, spring-example-portlet.spring-example-portlet later. Bill Maxim Petrashev wrote: > Hello,William > > I did deploy on uPortal server as you say but receive the following exception: > org.jasig.portal.PortalException: Unable to find portlet definition for > ID 'springportlet.ExampleSpringPortlet' > at org.jasig.portal.channels.portlet.CPortletAdapter.initPortletWindow > (CPortletAdapter.java:194) > at org.jasig.portal.channels.portlet.CPortletAdapter.renderCharacters > (CPortletAdapter.java:429) > at > org.jasig.portal.MultithreadedCharacterChannelAdapter.renderCharacters > (MultithreadedCharacterChannelAdapter.java:71) > at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:481) > at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) > > I don't see any portlet definitions in webapps/uPortal dir... > > What I did wrong? > > Thank you, > Maxim |
|
From: Les A. H. <le...@ha...> - 2004-04-29 10:45:15
|
I think this is just great. Any idea of when others can take a look at the code? Thanks for heading the effort Bill :) Regards, Les P.S. Since code has been somewhat replicated in places, what does this mean for long term maintenance for the two packages (i.e. o.s.w.servlet.* and o.s.w.portlet.*)? What kind of synchronization efforts would be required, if any? Quoting "William G. Thompson, Jr." <wg...@ru...>: > Folks, > > Spring Portlet MVC layer is rendering JSTL Views with full > ApplicationContext support!!! > > I ended having to port just about the entire > org.springframework.web.servlet.* package. > > Should this go into the sandbox? I suspect that it may still need some > refactoring...after we play with it a bit more. > > later. > Bill > -- > William G. Thompson, Jr. > Associate Director of New Technologies > Administrative Computing Services, Rutgers University > voice: 732 445-5428 | fax: 732 445-5493 | wg...@ru... > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |
|
From: William G. T. Jr. <wg...@ru...> - 2004-04-29 12:31:14
|
Les A. Hazlewood wrote: > I think this is just great. Any idea of when others can take a look at the > code? I am hoping we can get it into the sandbox soon. I can also put up a jar at a URL you can snarf later today. > > Thanks for heading the effort Bill :) No problem...it was nice to dig into the internals of Spring...anyway we need this badly as we are about to start a major Portlet dev cycle for myRutgers. > > Regards, > > Les > > P.S. Since code has been somewhat replicated in places, what does this mean for > long term maintenance for the two packages (i.e. o.s.w.servlet.* and > o.s.w.portlet.*)? What kind of synchronization efforts would be required, if > any? The MVC architecture is essentially the same and the Portlet API somewhat mirrors the Servlet API. However there are enough differences that made it necessary to have the seperate package. It is a testament to the Spring architecture that every time there was dependancy outside of o.s.w.servlet.* I could reuse that code without any modification. > > Quoting "William G. Thompson, Jr." <wg...@ru...>: > > >>Folks, >> >>Spring Portlet MVC layer is rendering JSTL Views with full >>ApplicationContext support!!! >> >>I ended having to port just about the entire >>org.springframework.web.servlet.* package. >> >>Should this go into the sandbox? I suspect that it may still need some >>refactoring...after we play with it a bit more. >> >>later. >>Bill |
|
From: Alexi P. <apo...@ya...> - 2004-04-30 15:17:12
|
Hi, Do you have any examples on how to use new portlet package ? Thanks a lot, Alexi William G. Thompson, Jr. wrote: > Les A. Hazlewood wrote: > >> I think this is just great. Any idea of when others can take a look >> at the >> code? > > > I am hoping we can get it into the sandbox soon. I can also put up a > jar at a URL you can snarf later today. > >> >> Thanks for heading the effort Bill :) > > > No problem...it was nice to dig into the internals of Spring...anyway > we need this badly as we are about to start a major Portlet dev cycle > for myRutgers. > >> >> Regards, >> >> Les >> >> P.S. Since code has been somewhat replicated in places, what does >> this mean for >> long term maintenance for the two packages (i.e. o.s.w.servlet.* and >> o.s.w.portlet.*)? What kind of synchronization efforts would be >> required, if >> any? > > > The MVC architecture is essentially the same and the Portlet API > somewhat mirrors the Servlet API. However there are enough > differences that made it necessary to have the seperate package. > > It is a testament to the Spring architecture that every time there was > dependancy outside of o.s.w.servlet.* I could reuse that code without > any modification. > > >> >> Quoting "William G. Thompson, Jr." <wg...@ru...>: >> >> >>> Folks, >>> >>> Spring Portlet MVC layer is rendering JSTL Views with full >>> ApplicationContext support!!! >>> >>> I ended having to port just about the entire >>> org.springframework.web.servlet.* package. >>> >>> Should this go into the sandbox? I suspect that it may still need some >>> refactoring...after we play with it a bit more. >>> >>> later. >>> Bill >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |
|
From: William G. T. Jr. <wg...@ru...> - 2004-05-01 16:54:52
|
the initial drop of o.s.w.portlet.* is now in the sandbox. it still
needs work, but it is doing the following:
* initialize applicationContext.xml
* initialize {portletName}-portlet.xml
* implements Spring Portlet MVC via DispatchPortlet
* can render views with o.s.w.portlet.view.JSTLView
I'll package up a SampleSpringPortlet.war shortly so you can deploy it
and play.
later.
Bill
Alexi Polenur wrote:
> Hi,
>
> Do you have any examples on how to use new portlet package ?
>
> Thanks a lot, Alexi
>
> William G. Thompson, Jr. wrote:
>
>> Les A. Hazlewood wrote:
>>
>>> I think this is just great. Any idea of when others can take a look
>>> at the
>>> code?
>>
>>
>>
>> I am hoping we can get it into the sandbox soon. I can also put up a
>> jar at a URL you can snarf later today.
>>
>>>
>>> Thanks for heading the effort Bill :)
>>
>>
>>
>> No problem...it was nice to dig into the internals of Spring...anyway
>> we need this badly as we are about to start a major Portlet dev cycle
>> for myRutgers.
>>
>>>
>>> Regards,
>>>
>>> Les
>>>
>>> P.S. Since code has been somewhat replicated in places, what does
>>> this mean for
>>> long term maintenance for the two packages (i.e. o.s.w.servlet.* and
>>> o.s.w.portlet.*)? What kind of synchronization efforts would be
>>> required, if
>>> any?
>>
>>
>>
>> The MVC architecture is essentially the same and the Portlet API
>> somewhat mirrors the Servlet API. However there are enough
>> differences that made it necessary to have the seperate package.
>>
>> It is a testament to the Spring architecture that every time there was
>> dependancy outside of o.s.w.servlet.* I could reuse that code without
>> any modification.
>>
>>
>>>
>>> Quoting "William G. Thompson, Jr." <wg...@ru...>:
>>>
>>>
>>>> Folks,
>>>>
>>>> Spring Portlet MVC layer is rendering JSTL Views with full
>>>> ApplicationContext support!!!
>>>>
>>>> I ended having to port just about the entire
>>>> org.springframework.web.servlet.* package.
>>>>
>>>> Should this go into the sandbox? I suspect that it may still need some
>>>> refactoring...after we play with it a bit more.
>>>>
>>>> later.
>>>> Bill
>>>
>>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by: Oracle 10g
>> Get certified on the hottest thing ever to hit the market... Oracle
>> 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
>> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
>> _______________________________________________
>> Springframework-developer mailing list
>> Spr...@li...
>> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: William G. T. Jr. <wg...@ru...> - 2004-05-02 05:14:41
|
Folks, I have packaged up a Portlet Application that may be of interest. The war file is available at: http://www.tnt-web.com/springportlet/springportlet.war You should be able to download the war file and then deploy using the tools for whatever portlet container you are using. I'm running this with uPortal2.3 which embeds Pluto. There are two portlets defined in WEB-INF/portlet.xml 1) InspectPortlet - a "fat" portlet that displays various bits of info available through the Portlet API (built using only GenericPortlet) 2) ExampleSpringPortlet - proof-of-concept portlet built using Spring MVC layer adapted for the Portlet API. The portlet name maps to a DispatcherPortlet which bootstraps: a) applicationContext.xml - the root PortletApplicationContext b) ExampleSpringPortlet-portlet.xml - config for the named DispatcherPortlet (handler mappings, view resolvers, controllers, etc.) As configured, ExampleSpringPortlet simply maps PortletModes to view names and finally dispatches to JSPs: WEB-INF/jsp/portlet/view.jsp WEB-INF/jsp/portlet/edit.jsp WEB-INF/jsp/portlet/help.jsp The Portlet API defines a tag-lib as well and I use that to generate the RenderURLs you will see in the views. later. Bill ps. If you are using uPortal2.3 here are the deploy steps: 1) ant deployPortletApp -DportletApp=/path/to/springportlet.war 2) bounce tomcat 3) using the Channel Manager define two new Portlet Channels. The portlet Ids are: springportlet.InspectPortlet springportlet.ExampleSpringPortlet |
|
From: Mike Cannon-B. <mi...@at...> - 2004-05-03 17:56:48
|
Bill, Excellent work - this looks superb (I can't try it now but will do when I get back to the office next week). The document below looks good, and likely to get lost in the mailing list - is it stored somewhere else? readme / wiki / docs? M -- ATLASSIAN - http://www.atlassian.com/ Confluence - the professional J2EE wiki - tried it yet? http://www.atlassian.com/confluence/ On 02/05/2004, at 1:14 AM, William G. Thompson, Jr. wrote: > Folks, > > I have packaged up a Portlet Application that may be of interest. The > war file is available at: > http://www.tnt-web.com/springportlet/springportlet.war > > You should be able to download the war file and then deploy using the > tools for whatever portlet container you are using. I'm running this > with uPortal2.3 which embeds Pluto. > > > There are two portlets defined in WEB-INF/portlet.xml > > 1) InspectPortlet - a "fat" portlet that displays various bits of info > available through the Portlet API (built using only GenericPortlet) > > 2) ExampleSpringPortlet - proof-of-concept portlet built using Spring > MVC layer adapted for the Portlet API. The portlet name maps to a > DispatcherPortlet which bootstraps: > a) applicationContext.xml - the root PortletApplicationContext > b) ExampleSpringPortlet-portlet.xml - config for the named > DispatcherPortlet (handler mappings, view resolvers, controllers, > etc.) > > As configured, ExampleSpringPortlet simply maps PortletModes to view > names and finally dispatches to JSPs: > WEB-INF/jsp/portlet/view.jsp > WEB-INF/jsp/portlet/edit.jsp > WEB-INF/jsp/portlet/help.jsp > > The Portlet API defines a tag-lib as well and I use that to generate > the RenderURLs you will see in the views. > > later. > Bill > > ps. If you are using uPortal2.3 here are the deploy steps: > 1) ant deployPortletApp -DportletApp=/path/to/springportlet.war > 2) bounce tomcat > 3) using the Channel Manager define two new Portlet Channels. The > portlet Ids are: > springportlet.InspectPortlet > springportlet.ExampleSpringPortlet > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |
|
From: Maxim P. <MPe...@in...> - 2004-05-31 09:55:08
|
Hello,William I did deploy on uPortal server as you say but receive the following exception: org.jasig.portal.PortalException: Unable to find portlet definition for ID 'springportlet.ExampleSpringPortlet' at org.jasig.portal.channels.portlet.CPortletAdapter.initPortletWindow (CPortletAdapter.java:194) at org.jasig.portal.channels.portlet.CPortletAdapter.renderCharacters (CPortletAdapter.java:429) at org.jasig.portal.MultithreadedCharacterChannelAdapter.renderCharacters (MultithreadedCharacterChannelAdapter.java:71) at org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:481) at org.jasig.portal.utils.threading.Worker.run(Worker.java:88) I don't see any portlet definitions in webapps/uPortal dir... What I did wrong? Thank you, Maxim |
|
From: Dmitriy K. <dko...@ru...> - 2004-04-29 12:15:17
|
I'll check it into the sandbox... Juergen, Alef, everyone, could you take a look at it...? Regards, Dmitriy. William G. Thompson, Jr. wrote: > Folks, > > Spring Portlet MVC layer is rendering JSTL Views with full > ApplicationContext support!!! > > I ended having to port just about the entire > org.springframework.web.servlet.* package. > > Should this go into the sandbox? I suspect that it may still need some > refactoring...after we play with it a bit more. > > later. > Bill |
|
From: Dmitriy K. <dko...@ru...> - 2004-04-29 14:14:32
|
Les, I've checked in the code into the sandbox: org.springframework.web.portlet.* Please note that it is almost 97% replica of the web.servlet package (class by class) I don't know if this would present maintenance headaches, but at this point I don't have any ideas of doing it any other ways... May be someone will have a better idea, but we had to make the first step!! Regards, Dmitriy. Les A. Hazlewood wrote: > I think this is just great. Any idea of when others can take a look at the > code? > > Thanks for heading the effort Bill :) > > Regards, > > Les > > P.S. Since code has been somewhat replicated in places, what does this mean for > long term maintenance for the two packages (i.e. o.s.w.servlet.* and > o.s.w.portlet.*)? What kind of synchronization efforts would be required, if > any? > > Quoting "William G. Thompson, Jr." <wg...@ru...>: > > >>Folks, >> >>Spring Portlet MVC layer is rendering JSTL Views with full >>ApplicationContext support!!! >> >>I ended having to port just about the entire >>org.springframework.web.servlet.* package. >> >>Should this go into the sandbox? I suspect that it may still need some >>refactoring...after we play with it a bit more. >> >>later. >>Bill >>-- >>William G. Thompson, Jr. >>Associate Director of New Technologies >>Administrative Computing Services, Rutgers University >>voice: 732 445-5428 | fax: 732 445-5493 | wg...@ru... >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: Oracle 10g >>Get certified on the hottest thing ever to hit the market... Oracle 10g. >>Take an Oracle 10g class now, and we'll give you the exam FREE. >>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >>_______________________________________________ >>Springframework-developer mailing list >>Spr...@li... >>https://lists.sourceforge.net/lists/listinfo/springframework-developer >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Dmitriy K. <dko...@ru...> - 2004-05-03 18:38:42
|
Mike, everybody, I've posted the design discussion with Juergen to the JSR 168 space: http://opensource.atlassian.com/confluence/spring/display/JSR168/SpringPortlet+module+design+discussion Regards, Dmitriy. Mike Cannon-Brookes wrote: > Bill, > > Excellent work - this looks superb (I can't try it now but will do when > I get back to the office next week). The document below looks good, and > likely to get lost in the mailing list - is it stored somewhere else? > readme / wiki / docs? > > M > -- > ATLASSIAN - http://www.atlassian.com/ > > Confluence - the professional J2EE wiki - tried it yet? > http://www.atlassian.com/confluence/ > > On 02/05/2004, at 1:14 AM, William G. Thompson, Jr. wrote: > >> Folks, >> >> I have packaged up a Portlet Application that may be of interest. The >> war file is available at: >> http://www.tnt-web.com/springportlet/springportlet.war >> >> You should be able to download the war file and then deploy using the >> tools for whatever portlet container you are using. I'm running this >> with uPortal2.3 which embeds Pluto. >> >> >> There are two portlets defined in WEB-INF/portlet.xml >> >> 1) InspectPortlet - a "fat" portlet that displays various bits of info >> available through the Portlet API (built using only GenericPortlet) >> >> 2) ExampleSpringPortlet - proof-of-concept portlet built using Spring >> MVC layer adapted for the Portlet API. The portlet name maps to a >> DispatcherPortlet which bootstraps: >> a) applicationContext.xml - the root PortletApplicationContext >> b) ExampleSpringPortlet-portlet.xml - config for the named >> DispatcherPortlet (handler mappings, view resolvers, controllers, etc.) >> >> As configured, ExampleSpringPortlet simply maps PortletModes to view >> names and finally dispatches to JSPs: >> WEB-INF/jsp/portlet/view.jsp >> WEB-INF/jsp/portlet/edit.jsp >> WEB-INF/jsp/portlet/help.jsp >> >> The Portlet API defines a tag-lib as well and I use that to generate >> the RenderURLs you will see in the views. >> >> later. >> Bill >> >> ps. If you are using uPortal2.3 here are the deploy steps: >> 1) ant deployPortletApp -DportletApp=/path/to/springportlet.war >> 2) bounce tomcat >> 3) using the Channel Manager define two new Portlet Channels. The >> portlet Ids are: >> springportlet.InspectPortlet >> springportlet.ExampleSpringPortlet >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: Oracle 10g >> Get certified on the hottest thing ever to hit the market... Oracle >> 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. >> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >> _______________________________________________ >> Springframework-developer mailing list >> Spr...@li... >> https://lists.sourceforge.net/lists/listinfo/springframework-developer >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |