I can't remember if context is allowed as an informal parameter, you can
try just putting it in the HTML instead. If that doesn't work, you can
always write your own component to wrap Direct that allows for this to be
passed as an informal parameter and then just use an inherited binding (I
think you can do this...but now that I've said it, I'm not sure you can
inherit informal parameters like that. Hmmm.

-C




|--------+---------------------------------------------->
|        |          Chris Merrill <[EMAIL PROTECTED]>  |
|        |          Sent by:                            |
|        |          [EMAIL PROTECTED]|
|        |          eforge.net                          |
|        |                                              |
|        |                                              |
|        |          05/06/2002 11:43 PM                 |
|        |                                              |
|--------+---------------------------------------------->
  
>-----------------------------------------------------------------------------------------------------------|
  |                                                                                    
                       |
  |       To:     [EMAIL PROTECTED]                             
                       |
  |       cc:                                                                          
                       |
  |       Subject:     [Tapestry-developer] re-use of component declaration            
                       |
  |                                                                                    
                       |
  
>-----------------------------------------------------------------------------------------------------------|



I have a page that contains ~10 uses of a Direct
component.  Each usage is similar, except for the
binding of the context.

HTML snippet:
<A jwcid="vfr_3-4">
<IMG SRC="images/vfr/Vfr3-4-small.jpg" ALT="(click to enlarge)" WIDTH="100"
HEIGHT="132">
</A>

jwc spec snippet:
<component id="vfr_3-4" type="Direct">
     <static-binding name="context">vfr3-4.jpg</static-binding>
     <binding name="listener" property-path="listeners.displayPicture"/>
     <static-binding name="stateful">Boolean.false</static-binding>
</component>

Is there a way for me to move the values of the static
binding ("context") into the HTML.  The purpose is to
simplify the jwc spec to a single entry, and put the
specification of the value in the HTML, where the author
can provide the necessary information.


*********************************
Chris Merrill
[EMAIL PROTECTED]
*********************************


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer





_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to