Re: SV: Tiles integration

2007-10-05 Thread Gregg Leichtman
Sorry I didn't reply to this earlier, but I didn't see it until now.

I did not do this, because the code is RI specific. It uses a number of
Sun com classes in the imports for example. When I posted this
previously on 7/25 under topic: Any sucess with shale nightly 20070717
and RI JSF 1.2?, Mr. VanMatre correctly pointed this out and I just
thought that this meant that the Shale developers would rather just go
their own way rather than use anything from this code.

I have been using this view handler since that time and have not had
problems with it. I'm using Tiles 2.0.4, Trinidad 1.2.1, Tomahawk 1.1.6,
dojo 0.9, shale 1.1.0 snapshot 20070923. I haven't used much of Shale yet,
just really Tiles so far and I haven't mixed in Spring or Hibernate, since
I have not gotten to that part in my dev effort so I can not speak to them yet.

If there is interest I would be happy to post it as a JIRA item.

   -= Gregg =-

 Antonio Petrelli wrote:
   
 Gregg, why don't you post your work as a patch in JIRA?
 If you cannot find the right issue, open a new one. Anyway good candidates
 are:
 https://issues.apache.org/struts/browse/SHALE/component/21281

 Antonio

 2007/9/13, Gregg Leichtman [EMAIL PROTECTED]:
   
 
 I was not successful in getting the webapp stack that you mention to
 work. I ended up modifying an old TilesViewHandler to work with JSF 1.2
 RI v1.2_04-b16-p02, not MyFaces, a nightly snapshot of Shale 1.1.0 from
 July 17, 2007, the released version of Trinidad 1.2.1, Tomahawk 1.1.6,
 JSTL 1.1.2 and Tiles 2.0.4. The view handler has worked well for me so
 far, (I'm still just developing my webapp with it) so if you're willing
 to use this experimental version along with the RI until these issues
 are resolved, you can find a posted copy of the source code at:



 http://www.nabble.com/Any-sucess-with-shale-nightly-20070717-and-RI-JSF-1.2--tf4123632.html#a11784014

   -= Gregg =-

 Hermod Opstvedt wrote:
 
   
 Hi

 I don't think think MyFaces 1.2 is compatible with that Tiles version -
   
 
 Ask
 
   
 on the MyFaces list.

 Hermod

 -Opprinnelig melding-
 Fra: Edward Dowgiallo [mailto:[EMAIL PROTECTED]
 Sendt: 28. august 2007 21:31
 Til: user@shale.apache.org
 Emne: Fwd: Tiles integration

 -- Forwarded message --
 From: Edward Dowgiallo [EMAIL PROTECTED]
 Date: Aug 28, 2007 3:20 PM
 Subject: Tiles integration
 To: [EMAIL PROTECTED]

 I'm trying to get the following combination running:

- MyFaces 1.2.0
- Shale Tiles 1.0.4
- Trinidad 1.2.1

 Willing to try other combinations, especially if someone has a
 blank.warhandy.  Been at this for about 7 hours now.

 Getting the following exception:

 java.lang.IllegalStateException: Cannot create a session after the
   
 
 response
 
   
 has been committed

 org.apache.catalina.connector.Request.doGetSession(Request.java:2301)

   org.apache.catalina.connector.Request.getSession(Request.java
   
 
 :2075)
 
   
 org.apache.catalina.connector.RequestFacade.getSession(
   
 
 RequestFacade.java:83
 
   
 3)

 org.apache.myfaces.context.servlet.ServletExternalContextImpl.getSession
 (ServletExternalContextImpl.java:117)

 org.apache.myfaces.trinidad.context.ExternalContextDecorator.getSession
   
 
 (Exte
 
   
 rnalContextDecorator.java:92)

 org.apache.myfaces.trinidad.context.ExternalContextDecorator.getSession
 (ExternalContextDecorator.java:92)


   
 
 org.apache.myfaces.trinidadinternal.util.TokenCache.getTokenCacheFromSession
 
   
 (TokenCache.java:72)


   
 
 org.apache.myfaces.trinidadinternal.application.StateManagerImpl._getViewCac
 
   
 he(StateManagerImpl.java
 :548)


   
 
 org.apache.myfaces.trinidadinternal.application.StateManagerImpl.saveSeriali
 
   
 zedView(StateManagerImpl.java:265)
   javax.faces.application.StateManager.saveView(StateManager.java
   
 
 :47)
 
   
   
 
 org.apache.myfaces.application.jsp.JspViewHandlerImpl$StateMarkerAwareWriter
 
   
 .flushToWriter
 (JspViewHandlerImpl.java:387)

 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView
   
 
 (JspViewHand
 
   
 lerImpl.java:322)

 javax.faces.application.ViewHandlerWrapper.renderView(
   
 
 ViewHandlerWrapper.jav
 
   
 a:45)


   
 
 org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView
 
   
 (ViewHandlerImpl.java:174)

 org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java
   
 
 :176
 
   
 )

 javax.faces.application.ViewHandlerWrapper.renderView(
   
 
 ViewHandlerWrapper.jav
 
   
 a:45)


   
 
 org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView
 
   
 (ViewHandlerImpl.java:174)

 

Re: SV: Tiles integration

2007-10-04 Thread Gregg Leichtman


signature.asc
Description: OpenPGP digital signature


Re: SV: Tiles integration

2007-09-13 Thread Antonio Petrelli
Gregg, why don't you post your work as a patch in JIRA?
If you cannot find the right issue, open a new one. Anyway good candidates
are:
https://issues.apache.org/struts/browse/SHALE/component/21281

Antonio

2007/9/13, Gregg Leichtman [EMAIL PROTECTED]:

 I was not successful in getting the webapp stack that you mention to
 work. I ended up modifying an old TilesViewHandler to work with JSF 1.2
 RI v1.2_04-b16-p02, not MyFaces, a nightly snapshot of Shale 1.1.0 from
 July 17, 2007, the released version of Trinidad 1.2.1, Tomahawk 1.1.6,
 JSTL 1.1.2 and Tiles 2.0.4. The view handler has worked well for me so
 far, (I'm still just developing my webapp with it) so if you're willing
 to use this experimental version along with the RI until these issues
 are resolved, you can find a posted copy of the source code at:



 http://www.nabble.com/Any-sucess-with-shale-nightly-20070717-and-RI-JSF-1.2--tf4123632.html#a11784014

   -= Gregg =-

 Hermod Opstvedt wrote:
  Hi
 
  I don't think think MyFaces 1.2 is compatible with that Tiles version -
 Ask
  on the MyFaces list.
 
  Hermod
 
  -Opprinnelig melding-
  Fra: Edward Dowgiallo [mailto:[EMAIL PROTECTED]
  Sendt: 28. august 2007 21:31
  Til: user@shale.apache.org
  Emne: Fwd: Tiles integration
 
  -- Forwarded message --
  From: Edward Dowgiallo [EMAIL PROTECTED]
  Date: Aug 28, 2007 3:20 PM
  Subject: Tiles integration
  To: [EMAIL PROTECTED]
 
  I'm trying to get the following combination running:
 
 - MyFaces 1.2.0
 - Shale Tiles 1.0.4
 - Trinidad 1.2.1
 
  Willing to try other combinations, especially if someone has a
  blank.warhandy.  Been at this for about 7 hours now.
 
  Getting the following exception:
 
  java.lang.IllegalStateException: Cannot create a session after the
 response
  has been committed
 
  org.apache.catalina.connector.Request.doGetSession(Request.java:2301)
 
org.apache.catalina.connector.Request.getSession(Request.java
 :2075)
 
  org.apache.catalina.connector.RequestFacade.getSession(
 RequestFacade.java:83
  3)
 
  org.apache.myfaces.context.servlet.ServletExternalContextImpl.getSession
  (ServletExternalContextImpl.java:117)
 
  org.apache.myfaces.trinidad.context.ExternalContextDecorator.getSession
 (Exte
  rnalContextDecorator.java:92)
 
  org.apache.myfaces.trinidad.context.ExternalContextDecorator.getSession
  (ExternalContextDecorator.java:92)
 
 
 org.apache.myfaces.trinidadinternal.util.TokenCache.getTokenCacheFromSession
  (TokenCache.java:72)
 
 
 org.apache.myfaces.trinidadinternal.application.StateManagerImpl._getViewCac
  he(StateManagerImpl.java
  :548)
 
 
 org.apache.myfaces.trinidadinternal.application.StateManagerImpl.saveSeriali
  zedView(StateManagerImpl.java:265)
javax.faces.application.StateManager.saveView(StateManager.java
 :47)
 
 
 org.apache.myfaces.application.jsp.JspViewHandlerImpl$StateMarkerAwareWriter
  .flushToWriter
  (JspViewHandlerImpl.java:387)
 
  org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView
 (JspViewHand
  lerImpl.java:322)
 
  javax.faces.application.ViewHandlerWrapper.renderView(
 ViewHandlerWrapper.jav
  a:45)
 
 
 org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView
  (ViewHandlerImpl.java:174)
 
  org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java
 :176
  )
 
  javax.faces.application.ViewHandlerWrapper.renderView(
 ViewHandlerWrapper.jav
  a:45)
 
 
 org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView
  (ViewHandlerImpl.java:174)
 
  org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java
 :176
  )
 
  org.apache.myfaces.lifecycle.RenderResponseExecutor.execute
 (RenderResponseEx
  ecutor.java:41)
org.apache.myfaces.lifecycle.LifecycleImpl.render
  (LifecycleImpl.java:132)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
 
  tiles-defs.xml
 
  tiles-definitions
 
!--
  === --
 
!-- Master definition
  --
!--
  === --
 
!-- Doc index page description  --
 
definition name=test template=/page/layout.jsp
put-attribute  name=header   value=/tile/header.jsp/
put-attribute  name=footer   value=/tile/footer.jsp/
 
/definition
 
  /tiles-definitions
 
  faces-config.xml
 
  faces-config
xmlns=http://java.sun.com/xml/ns/javaee
  
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
   http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd;
version=1.2
 
application
!-- Tiles Integration --
 
 
  view-handlerorg.apache.shale.tiles.TilesViewHandler/view-handler
/application
 
  /faces-config
 
  web.xml
 
  web-app  xmlns:xsi=
  

Re: SV: Tiles integration

2007-09-12 Thread Gregg Leichtman
I was not successful in getting the webapp stack that you mention to
work. I ended up modifying an old TilesViewHandler to work with JSF 1.2
RI v1.2_04-b16-p02, not MyFaces, a nightly snapshot of Shale 1.1.0 from
July 17, 2007, the released version of Trinidad 1.2.1, Tomahawk 1.1.6,
JSTL 1.1.2 and Tiles 2.0.4. The view handler has worked well for me so
far, (I'm still just developing my webapp with it) so if you're willing
to use this experimental version along with the RI until these issues
are resolved, you can find a posted copy of the source code at:

   
http://www.nabble.com/Any-sucess-with-shale-nightly-20070717-and-RI-JSF-1.2--tf4123632.html#a11784014

  -= Gregg =-

Hermod Opstvedt wrote:
 Hi

 I don't think think MyFaces 1.2 is compatible with that Tiles version - Ask
 on the MyFaces list.

 Hermod

 -Opprinnelig melding-
 Fra: Edward Dowgiallo [mailto:[EMAIL PROTECTED] 
 Sendt: 28. august 2007 21:31
 Til: user@shale.apache.org
 Emne: Fwd: Tiles integration

 -- Forwarded message --
 From: Edward Dowgiallo [EMAIL PROTECTED]
 Date: Aug 28, 2007 3:20 PM
 Subject: Tiles integration
 To: [EMAIL PROTECTED]

 I'm trying to get the following combination running:

- MyFaces 1.2.0
- Shale Tiles 1.0.4
- Trinidad 1.2.1

 Willing to try other combinations, especially if someone has a
 blank.warhandy.  Been at this for about 7 hours now.

 Getting the following exception:

 java.lang.IllegalStateException: Cannot create a session after the response
 has been committed
   
 org.apache.catalina.connector.Request.doGetSession(Request.java:2301)

   org.apache.catalina.connector.Request.getSession(Request.java:2075)
   
 org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:83
 3)
   
 org.apache.myfaces.context.servlet.ServletExternalContextImpl.getSession
 (ServletExternalContextImpl.java:117)
   
 org.apache.myfaces.trinidad.context.ExternalContextDecorator.getSession(Exte
 rnalContextDecorator.java:92)
   
 org.apache.myfaces.trinidad.context.ExternalContextDecorator.getSession
 (ExternalContextDecorator.java:92)
   
 org.apache.myfaces.trinidadinternal.util.TokenCache.getTokenCacheFromSession
 (TokenCache.java:72)
   
 org.apache.myfaces.trinidadinternal.application.StateManagerImpl._getViewCac
 he(StateManagerImpl.java
 :548)
   
 org.apache.myfaces.trinidadinternal.application.StateManagerImpl.saveSeriali
 zedView(StateManagerImpl.java:265)
   javax.faces.application.StateManager.saveView(StateManager.java:47)
   
 org.apache.myfaces.application.jsp.JspViewHandlerImpl$StateMarkerAwareWriter
 .flushToWriter
 (JspViewHandlerImpl.java:387)
   
 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHand
 lerImpl.java:322)
   
 javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.jav
 a:45)
   
 org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView
 (ViewHandlerImpl.java:174)
   
 org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:176
 )
   
 javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.jav
 a:45)
   
 org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView
 (ViewHandlerImpl.java:174)
   
 org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:176
 )
   
 org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseEx
 ecutor.java:41)
   org.apache.myfaces.lifecycle.LifecycleImpl.render
 (LifecycleImpl.java:132)
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

 tiles-defs.xml

 tiles-definitions

   !--
 === --

   !-- Master definition
 --
   !--
 === --

   !-- Doc index page description  --

   definition name=test template=/page/layout.jsp
   put-attribute  name=header   value=/tile/header.jsp/
   put-attribute  name=footer   value=/tile/footer.jsp/

   /definition

 /tiles-definitions

 faces-config.xml

 faces-config
   xmlns=http://java.sun.com/xml/ns/javaee
 
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd;
   version=1.2

   application
   !-- Tiles Integration --

   
 view-handlerorg.apache.shale.tiles.TilesViewHandler/view-handler
   /application

 /faces-config

 web.xml

 web-app  xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
   xmlns=http://java.sun.com/xml/ns/javaee;
   xmlns:web=
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
   
 xsi:schemaLocation=http://java.sun.com/xml/ns/javaee