thanks you very much !!!!!

I didn't know about this component ... Finally I realized that I can use the
RenderBody component in an smarter way and solve my problem.

r.

On 10/24/06, Jiří Mareš <[EMAIL PROTECTED]> wrote:


Hi,

In component-specification:

<component-specification>
  ...
  <parameter name="myParamComp"/>
  ...
</component-specification>

Then in component template can be component referenced e.g.:

<spand jwcid="@RenderBlock" block="ognl:myParamComp"/>

And when you use the component and wants to pass the component as
parameter:

<span jwcid="..." ... header="ognl:
components.nameOfComponentToPassAsParameter" ... />

Jirka

> I am working with tap 4.0, in tomcat 5.5.14 with jdk 1.5.
>
> I would like to create my own component. This component should receive a

> parameter (not required) that specify another component (in this case is
a
> submit button component), I would like to use the container defined
> component in the custom component, but I don't know how to do this. I'll

> try
> to explain this more carefully with an example:
>
> containerPage.page
> ...
> <component id="definedButon" type="Submit">
>    <binding name="action">listener:onSubmit</binding>
>    <binding name="selected" value="selectedEvent"/>
>    <binding name="tag" value="currentElement"/>
> </component>
>
>
> <component id="customComponentId" type="customComponnent">
>     <binding id="submitButtonParameter" value="definedButon"/>
> </component>
> ....
> componentPage.jwc (here is my biggest doubt!)
> ...
> <parameter name="submitButtonParameter" required="false"/>
>
> <component id="submitButton" type="Submit">
>    <!-- Here I should add something to copy the parameter in this
component
> -->
> </component>
> ...
>
> componentPage.html
> ...
> <input type="Submit" jwcid="submitButton"/>
> ...
>
> The componentPage.html should show the button passed as a parameter from

> the
> containerPage.page ... this parameter will call the onSubmit of the
class
> containerPage.
>
> Any one has done this ??? There is an easy and clean way to do this ?
>
> Thanks in advance.
>

--
Jiří Mareš (mailto:[EMAIL PROTECTED])
ČSAD SVT Praha, s.r.o. (http://www.svt.cz)
Czech Republic

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




--
Robert Ramírez Vique
Computer Science Engineer

Reply via email to