Re: AW: AW: Clay Using Taglibs (e.g validation)

2007-02-12 Thread Gary VanMatre
>From: Bernhard Slominski <[EMAIL PROTECTED]> 
>
> > -Ursprüngliche Nachricht- 
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > > 
> > > Hermond, thanks for the answer. 
> > > This looks not so difficult. 
> > > 
> > 
> > I'm glad you said that it didn't look difficult. It sounds 
> > like you are also a believer that "inheritance" should be 
> > part of object oriented programming even as it relates to 
> > presentation (visual metadata inheritance :-). 
> > 
> 
> When trying to get the E-Mail validation working it turned out to be a bit 
> painful, because even in the Clay usecases it's not working correctly. The 
> reason was just a missing jar file, I added it to the Issue Tracker 
> (http://issues.apache.org/struts/browse/SHALE-407). 
> Concerning inheritance in the presentation layer, I'm sure it makes sense 
> and it's a useful concept. 


Definitely, think about the visual inheritance we had with tools like 
PowerBuilder and Delphi.  These languages had a metadata layer to provide this 
layer of indirection and it was very useful.  Why should we expect less from 
JSF?

I'm not saying that Clay is the perfect implementation but I think it's 
something we should be thinking about for the future.




> Gary, also thanks for the other links. 
> 


Thanks for reporting this issue.  We must of lost the dependency thru the 
refactoring of the validator into it's own library.  Or, it could be that since 
this example is using client side validation, the server side logic was not 
invoked.


> Bernhard


Gary 

AW: AW: Clay Using Taglibs (e.g validation)

2007-02-12 Thread Bernhard Slominski
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >
> > Hermond, thanks for the answer. 
> > This looks not so difficult. 
> >
> 
> I'm glad you said that it didn't look difficult.  It sounds 
> like you are also a believer that "inheritance" should be 
> part of object oriented programming even as it relates to 
> presentation (visual metadata inheritance :-).
> 

When trying to get the E-Mail validation working it turned out to be a bit
painful, because even in the Clay usecases it's not working correctly. The
reason was just a missing jar file, I added it to the Issue Tracker
(http://issues.apache.org/struts/browse/SHALE-407).
Concerning inheritance in the presentation layer, I'm sure it makes sense
and it's a useful concept.
Gary, also thanks for the other links.

Bernhard


Re: AW: Clay Using Taglibs (e.g validation)

2007-02-09 Thread Gary VanMatre
>From: Bernhard Slominski <[EMAIL PROTECTED]> 
>
> Hermond, thanks for the answer. 
> This looks not so difficult. 
>

I'm glad you said that it didn't look difficult.  It sounds like you are also a 
believer that "inheritance" should be part of object oriented programming even 
as it relates to presentation (visual metadata inheritance :-).

We bundle a couple tomahawk configurations with the clay archive [1].  We also 
have the Trinidad components covered in a project in the sandbox [2].  This 
project shows how to add hooks to handle components that have special method 
binding requirements and action listeners with value binding properties.  The 
extensions are registered using common chains [3] and then there are a couple 
commands to handle the special processing [4]

Hermod's plugin that generates the configs from the TLD's is also very helpful. 
 You need to first build the tools project [5] and then the maven plugin [6].  
The only problem is that it can't extract the converterId, validatorId and 
class path to listeners from the JSP Tag.  I think Hermond has some pending 
patches in this area but I've not had time to put them in.



[1] 
http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/main/resources/META-INF/
[2] 
http://svn.apache.org/viewvc/shale/sandbox/shale-clay-trinidad/src/main/resources/META-INF/
[3] 
http://svn.apache.org/viewvc/shale/sandbox/shale-clay-trinidad/src/main/webapp/WEB-INF/chain-config.xml?view=markup
[4] 
http://svn.apache.org/viewvc/shale/sandbox/shale-clay-trinidad/src/main/java/org/apache/shale/clay/component/chain/trinidad/
[5] http://svn.apache.org/viewvc/shale/tools/trunk/tld2claycfg/
[6] http://svn.apache.org/viewvc/shale/maven/trunk/tld2claycfg/

 
> Bernhard 
> 

Gary


> > -Ursprüngliche Nachricht- 
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > Gesendet: Freitag, 9. Februar 2007 14:03 
> > An: user@shale.apache.org 
> > Betreff: RE: Clay Using Taglibs (e.g validation) 
> > 
> > 
> > Hi 
> > 
> > You need to configure these as Clay components. Have a look 
> > at some of the Clay sample apps, specifically the 
> > clay-config.xml files. To integrate other libs, there must be 
> > a mapped clay-config file for them, or you need to run the 
> > Tld2ClayCfg tool on the tld files for these 3rd party libs. 
> > There is a sample app in the sandbox which demonstrates this. 
> > 
> > A sample Clay component definition with validation (using 
> > commons validator) from the shale-clay-usecases: 
> > 
> > 
> > 
> > > > value="[EMAIL PROTECTED]" /> 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > > value="#{messages['rolodex.email']}" /> 
> > 
> > 
> > 
> > 
> > Hermod 
> > 
> > -Original Message- 
> > From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, February 09, 2007 8:58 AM 
> > To: user@shale.apache.org 
> > Subject: Clay Using Taglibs (e.g validation) 
> > 
> > 
> > Hi, 
> > 
> > I want to use the Clay HTML views together with the Shale validation. 
> > How do I integrate the taglib directive 
> > 
> > into my HTML view? 
> > How can I integrate other 3rd Party taglibs? 
> > 
> > Bernhard 
> > 
> > 
> > 
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> > * * * * * * * 
> > 
> > This email with attachments is solely for the use of the individual or 
> > entity to whom it is addressed. Please also be aware that the 
> > DnB NOR Group 
> > cannot accept any payment orders or other legally binding 
> > correspondence with 
> > customers as a part of an email. 
> > 
> > This email message has been virus checked by the anti virus 
> > programs used 
> > in the DnB NOR Group. 
> > 
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> > * * * * * * * 
> > 

AW: Clay Using Taglibs (e.g validation)

2007-02-09 Thread Bernhard Slominski
Hermond, thanks for the answer.
This looks not so difficult.

Bernhard

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 9. Februar 2007 14:03
> An: user@shale.apache.org
> Betreff: RE: Clay Using Taglibs (e.g validation)
> 
> 
> Hi
> 
> You need to configure these as Clay components. Have a look 
> at some of the Clay sample apps, specifically the 
> clay-config.xml files. To integrate other libs, there must be 
> a mapped clay-config file for them, or you need to run the 
> Tld2ClayCfg tool on the tld files for these 3rd party libs. 
> There is a sample app in the sandbox which demonstrates this.
> 
> A sample Clay component definition with validation (using 
> commons validator) from the shale-clay-usecases:
> 
>   
>   
>value="[EMAIL PROTECTED]" />
>   
>   
>   
>   
>   
>   
>   
>   
>   
>value="#{messages['rolodex.email']}" />
>   
>   
>   
> 
> Hermod
> 
> -Original Message-
> From: Bernhard Slominski [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 09, 2007 8:58 AM
> To: user@shale.apache.org
> Subject: Clay Using Taglibs (e.g validation)
> 
> 
> Hi,
> 
> I want to use the Clay HTML views together with the Shale validation.
> How do I integrate the taglib directive
> <%@ taglib uri="http://shale.apache.org/core"; prefix="val" %>
> into my HTML view?
> How can I integrate other 3rd Party taglibs?
> 
> Bernhard
> 
> 
> 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * * * * * * *
> 
> This email with attachments is solely for the use of the individual or
> entity to whom it is addressed. Please also be aware that the 
> DnB NOR Group
> cannot accept any payment orders or other legally binding 
> correspondence with
> customers as a part of an email. 
> 
> This email message has been virus checked by the anti virus 
> programs used
> in the DnB NOR Group.
> 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * * * * * * *
>