struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Wallace <>
Subject [shale] Extending components with new attributes
Date Mon, 06 Mar 2006 22:25:46 GMT

I'd like to extend the inputSecret component and give the new component 
an added attribute.  Basically, what I want to do is create a component 
that has the tomahawk equal validator attached to it.  So, what I've got 
now is:

  <component jsfid="t:validateEqual" 
      <set name="for" bindingType="Early" />
  <component jsfid="inputPasswordVerification" extends="inputSecret">
    <validator jsfid="t:validateEqual">
          <set name="for" value="password"/>

What I'd like to be able to do is replace the attribute for "for" with 
something more like "@for" or something so that I can use the component 

<input type="password" jsfid="inputSecret" id="password" />
<input type="password" jsfid="inputPasswordVerification" for="password" />

Can I add an attribute like that in clay?  That would be very cool.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message