Mitch,

Please take a look at:
a) The dynamic attributes tag directive [
http://java.sun.com/products/jsp/syntax/2.0/syntaxref2011.html ]
b) The jsp:attribute element [
http://java.sun.com/products/jsp/syntax/2.0/syntaxref2014.html ]

The rdc:template tag uses the dynamic attributes directive, but for
the template the further "treatment" of the dynamic attributes is left
to the author who instantiates the template.

For the rdc:myComp example below, the myComp tag impl should deal with
the fact that the parameters can change, so a particular myComp
instance might be:

<rdc:myComp id="airlineBooking" 
  outboundDate="2005-03-17"  inboundDate="2005-03-24"
  originAirport="LHR"  destAirport"="SYD" />

while another might be:

<rdc:myComp id="airlineBooking" 
  originCity="New York, NY"  destCity"="Los Angeles, CA"
  outboundDate="2005-03-17"  />

and the tag impl knows how to deal with the variants. 

Hope that helps.
-Rahul


On Fri, 18 Mar 2005 13:04:17 -0000, Mitch Warner
<[EMAIL PROTECTED]> wrote:
> I am creating an RDC with the requirement that the parameters required
> for the component can change completely depending on the configuration
> of the component. As such, I do not want to have to define the
> paramaters as attributes of the RDC (or list them in the <input-params>
> section of the .rdc file), but rather define tham as a list of
> parameters that only need to be altered within the jsp.
> 
> In other words, I would like the content of my jsp to look like the
> following:
> 
> <vxml version="2.0" xml:lang="en-GB"
> xmlns="http://www.w3.org/2001/vxml"; >
> <jsp:useBean id="dialogMap" class="java.util.LinkedHashMap"
> scope="session"/>
> 
>  <rdc:task map="${dialogMap}">
>    <rdc:myComp id="airlineBooking">
>        <param name="outboundDate" value="2005-03-17" />
>        <param name="inboundDate" value="2005-03-24" />
>        <param name="originAirport" value="LHR" />
>        <param name="destAirport" value="SYD" />
>    </rdc>
>  </rdc:task>
> </vxml>
> 
> I do not see any examples of where this has been done in any existing
> RDCs though. Is this something that is an allowable operation?
> 
> Regards,
> Mitch
> 
> ________________________________________________________________________
> This email has been scanned for all viruses by Netscalibur Mail Scanner, 
> powered by MessageLabs. For more information on a proactive email security 
> service working around the clock, around the globe, visit
> http://www.netscalibur.co.uk/scanner/index.html
> ________________________________________________________________________
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to