Hi everybody!
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.
--
Robert Ramírez Vique
Computer Science Engineer