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:

2007-10-05 Thread Greg Reddin
On 10/4/07, Wendy Smoak [EMAIL PROTECTED] wrote:


 There's not much development going on, but if there's interest in a
 release we can probably round up enough people to make it happen.

 I'd like to see the Tiles 2 integration sorted out first, though.


I agree. That move us closer to pushing Shale towards GA :-) I'm still here,
but I've had *0* time to contribute of late unfortunately. I feel like
upgrading the Tiles support is about a 5-minute job, but testing it is the
hard part for me. I've never actually used Tiles 2 with JSF and, in fact,
Tiles 2 itself has changed so much since I last used it I'm not sure if I'm
still up to speed on it :-)

At any rate, the biggest help we could use is someone to give testing
guidance on the Tiles 2 components. I don't want to commit code and walk
away without giving it some good test support. Someone sent me a .war file a
while back and I haven't looked at it yet. Maybe it will be a start. If
anybody else can boil your webapp down to a few tests to put it through its
paces and attach that to a JIRA, that would be most welcome.

Thanks,
Greg


Re:

2007-10-05 Thread Wendy Smoak
On 10/5/07, Greg Reddin [EMAIL PROTECTED] wrote:

 I agree. That move us closer to pushing Shale towards GA :-) I'm still here,
 but I've had *0* time to contribute of late unfortunately. I feel like
 upgrading the Tiles support is about a 5-minute job, but testing it is the
 hard part for me. I've never actually used Tiles 2 with JSF and, in fact,
 Tiles 2 itself has changed so much since I last used it I'm not sure if I'm
 still up to speed on it :-)

 At any rate, the biggest help we could use is someone to give testing
 guidance on the Tiles 2 components. I don't want to commit code and walk
 away without giving it some good test support. Someone sent me a .war file a
 while back and I haven't looked at it yet. Maybe it will be a start. If
 anybody else can boil your webapp down to a few tests to put it through its
 paces and attach that to a JIRA, that would be most welcome.

Then actually that sounds like we should get a 1.0.5 out with the
fixes people are waiting for, and then you can commit the potentially
breaking changes and sort out the Tiles stuff.

WDYT?  We should really move to dev@ now...

-- 
Wendy


Re:

2007-10-05 Thread Gary VanMatre
From: Wendy Smoak [EMAIL PROTECTED] 

 On 10/3/07, Lionel Port wrote: 
  There was a bug in Shale 1.0.4 ( 
  http://issues.apache.org/struts/browse/SHALE-409) that prevented ajax4jsf 
  working with shale. It is fixed in the nightly builds. Just waiting on the 
  release of shale 1.0.5, but the project seems to have stalled. 
 
 There's not much development going on, but if there's interest in a 
 release we can probably round up enough people to make it happen. 
 
 I'd like to see the Tiles 2 integration sorted out first, though. 
 

I'd also like to see a 1.0.5 release.  I think tiles 2 under 1.0.5 still 
assumes JSF 1.1.  I really think we need to branch off for 1.2 support. 


I'll try to make some time to look at what is going on with shale tiles if you 
guys will roll it.



 -- 
 Wendy 

Gary