Re: Updated version of TilesViewHandler

2007-11-13 Thread Gregg Leichtman
If you are willing to use JSF RI 1.2 (not MyFaces), then I posted an
experimental version as an attachment at:

http://issues.apache.org/struts/browse/SHALE-302

-= Gregg =-

Garner, Shawn wrote:
 Since the release of a GA version of Standalone Tiles when can we expect
 a new version of the TilesViewHandler compatible with 2.0.5 of
 standalone tiles?

 I tried the current one with 2.0.5 and got no class def found
 exceptions.


 Shawn


 -Message Disclaimer-

 This e-mail message is intended only for the use of the individual or
 entity to which it is addressed, and may contain information that is
 privileged, confidential and exempt from disclosure under applicable law.
 If you are not the intended recipient, any dissemination, distribution or
 copying of this communication is strictly prohibited. If you have
 received this communication in error, please notify us immediately by
 reply email to [EMAIL PROTECTED] and delete or destroy all copies of
 the original message and attachments thereto. Email sent to or from the
 Principal Financial Group or any of its member companies may be retained
 as required by law or regulation.

 Nothing in this message is intended to constitute an Electronic signature
 for purposes of the Uniform Electronic Transactions Act (UETA) or the
 Electronic Signatures in Global and National Commerce Act (E-Sign)
 unless a specific statement to the contrary is included in this message.

 While this communication may be used to promote or market a transaction
 or an idea that is discussed in the publication, it is intended to provide
 general information about the subject matter covered and is provided with
 the understanding that The Principal is not rendering legal, accounting,
 or tax advice. It is not a marketed opinion and may not be used to avoid
 penalties under the Internal Revenue Code. You should consult with
 appropriate counsel or other advisors on all matters pertaining to legal,
 tax, or accounting obligations and requirements.

   



signature.asc
Description: OpenPGP digital signature


Updated version of TilesViewHandler

2007-10-31 Thread Garner, Shawn

Since the release of a GA version of Standalone Tiles when can we expect
a new version of the TilesViewHandler compatible with 2.0.5 of
standalone tiles?

I tried the current one with 2.0.5 and got no class def found
exceptions.


Shawn


-Message Disclaimer-

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to [EMAIL PROTECTED] and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act (E-Sign)
unless a specific statement to the contrary is included in this message.

While this communication may be used to promote or market a transaction
or an idea that is discussed in the publication, it is intended to provide
general information about the subject matter covered and is provided with
the understanding that The Principal is not rendering legal, accounting,
or tax advice. It is not a marketed opinion and may not be used to avoid
penalties under the Internal Revenue Code. You should consult with
appropriate counsel or other advisors on all matters pertaining to legal,
tax, or accounting obligations and requirements.


TilesViewHandler

2006-08-29 Thread Baker,Jonathan
According to the Documentation for the shale-tiles TilesViewHandler:

*   Strips off the view ID's suffix (eg: /tiles/test.jsp becomes 
/tiles/test) 
*   Searches for a tile with the resulting name, with or without the 
leading slash (eg: /tiles/test or tiles/test) 

I was not getting this behavior at all.  My tile is defined as inbox, and my 
navigation rule points to /inbox.jsp.  The view handler cannot successfully 
find the tile named inbox.  I looked at the source for this class and even 
though the javadoc says that the leading slash is stripped off, I could find no 
code anywhere in that class that looked for the tile, and if it wasn't found 
stripped of a leading slash and looked for the tile again.

If I remove the leading slash from my navigation rule, I get the follwoing 
error:

(JspViewHandlerImpl.java:285) - ViewId must start with '/' (viewId = inbox.jsp)

I am using the shale 1.03 release.

Thanks for your help.


JB



RE: TilesViewHandler

2006-08-29 Thread Baker,Jonathan
I'm sure if I renamed my tiles to have the slash at the beginning of their 
names that it would work as well.  My confusion is over the explicit statement 
that it will look for a tile both with and without the leading slash and that 
does not seem to be the case.

JB

-Original Message-
From: Dick Starr [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 8:37 AM
To: user@shale.apache.org
Subject: RE: TilesViewHandler


Standalone Tiles works for me.

In tiles.xml I use definitions like definition name=/myDef ...

My navigation rules are like from-view-id/myDef.jsp/from-view-id

I do not have to do an extra jsp containing a tiles:insert definition=
... for my tiles - except for my very first tile (a jsp:forward from
index.jsp).

I am using the 8/3/06 release.

Dick

-Original Message-
From: Baker,Jonathan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 29, 2006 6:28 AM
To: Shale User Group (E-mail 2)
Subject: TilesViewHandler

According to the Documentation for the shale-tiles TilesViewHandler:

*   Strips off the view ID's suffix (eg: /tiles/test.jsp becomes
/tiles/test) 
*   Searches for a tile with the resulting name, with or without the
leading slash (eg: /tiles/test or tiles/test) 

I was not getting this behavior at all.  My tile is defined as inbox,
and my navigation rule points to /inbox.jsp.  The view handler cannot
successfully find the tile named inbox.  I looked at the source for this
class and even though the javadoc says that the leading slash is
stripped off, I could find no code anywhere in that class that looked
for the tile, and if it wasn't found stripped of a leading slash and
looked for the tile again.

If I remove the leading slash from my navigation rule, I get the
follwoing error:

(JspViewHandlerImpl.java:285) - ViewId must start with '/' (viewId =
inbox.jsp)

I am using the shale 1.03 release.

Thanks for your help.


JB




RE: TilesViewHandler

2006-08-29 Thread Dick Starr
When I saw that the navigation rule required a slash, I went with a
slash on the tiles defs. Per Kito's book (p 132), the view-id must
always start with a slash - but I don't know why.

Dick

-Original Message-
From: Baker,Jonathan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 29, 2006 7:48 AM
To: user@shale.apache.org
Subject: RE: TilesViewHandler

I'm sure if I renamed my tiles to have the slash at the beginning of
their names that it would work as well.  My confusion is over the
explicit statement that it will look for a tile both with and without
the leading slash and that does not seem to be the case.

JB

-Original Message-
From: Dick Starr [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 8:37 AM
To: user@shale.apache.org
Subject: RE: TilesViewHandler


Standalone Tiles works for me.

In tiles.xml I use definitions like definition name=/myDef ...

My navigation rules are like from-view-id/myDef.jsp/from-view-id

I do not have to do an extra jsp containing a tiles:insert definition=
... for my tiles - except for my very first tile (a jsp:forward from
index.jsp).

I am using the 8/3/06 release.

Dick

-Original Message-
From: Baker,Jonathan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 29, 2006 6:28 AM
To: Shale User Group (E-mail 2)
Subject: TilesViewHandler

According to the Documentation for the shale-tiles TilesViewHandler:

*   Strips off the view ID's suffix (eg: /tiles/test.jsp becomes
/tiles/test) 
*   Searches for a tile with the resulting name, with or without the
leading slash (eg: /tiles/test or tiles/test) 

I was not getting this behavior at all.  My tile is defined as inbox,
and my navigation rule points to /inbox.jsp.  The view handler cannot
successfully find the tile named inbox.  I looked at the source for this
class and even though the javadoc says that the leading slash is
stripped off, I could find no code anywhere in that class that looked
for the tile, and if it wasn't found stripped of a leading slash and
looked for the tile again.

If I remove the leading slash from my navigation rule, I get the
follwoing error:

(JspViewHandlerImpl.java:285) - ViewId must start with '/' (viewId =
inbox.jsp)

I am using the shale 1.03 release.

Thanks for your help.


JB





Re: TilesViewHandler

2006-08-29 Thread Greg Reddin


On Aug 29, 2006, at 8:13 AM, Dick Starr wrote:


When I saw that the navigation rule required a slash, I went with a
slash on the tiles defs. Per Kito's book (p 132), the view-id must
always start with a slash - but I don't know why.


Wow, I didn't know that.   Sounds kinda restrictive.  Does anyone  
have any idea why or if perhaps JSF 1.2 addresses this?


Thanks,
Greg



Re: TilesViewHandler

2006-08-29 Thread David Geary

2006/8/29, Baker,Jonathan [EMAIL PROTECTED]:


I'm sure if I renamed my tiles to have the slash at the beginning of their
names that it would work as well.  My confusion is over the explicit
statement that it will look for a tile both with and without the leading
slash and that does not seem to be the case.



It is no longer the case, and the latest documentation has been updated to
reflect that.


david

JB


-Original Message-
From: Dick Starr [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 8:37 AM
To: user@shale.apache.org
Subject: RE: TilesViewHandler


Standalone Tiles works for me.

In tiles.xml I use definitions like definition name=/myDef ...

My navigation rules are like from-view-id/myDef.jsp/from-view-id

I do not have to do an extra jsp containing a tiles:insert definition=
... for my tiles - except for my very first tile (a jsp:forward from
index.jsp).

I am using the 8/3/06 release.

Dick

-Original Message-
From: Baker,Jonathan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 6:28 AM
To: Shale User Group (E-mail 2)
Subject: TilesViewHandler

According to the Documentation for the shale-tiles TilesViewHandler:

*   Strips off the view ID's suffix (eg: /tiles/test.jsp becomes
/tiles/test)
*   Searches for a tile with the resulting name, with or without the
leading slash (eg: /tiles/test or tiles/test)

I was not getting this behavior at all.  My tile is defined as inbox,
and my navigation rule points to /inbox.jsp.  The view handler cannot
successfully find the tile named inbox.  I looked at the source for this
class and even though the javadoc says that the leading slash is
stripped off, I could find no code anywhere in that class that looked
for the tile, and if it wasn't found stripped of a leading slash and
looked for the tile again.

If I remove the leading slash from my navigation rule, I get the
follwoing error:

(JspViewHandlerImpl.java:285) - ViewId must start with '/' (viewId =
inbox.jsp)

I am using the shale 1.03 release.

Thanks for your help.


JB