In the Java class associated with your component,
PasswordField.java in this case, it must execute the
method 
 renderInformalParameters(writer, cycle);

inside the method renderComponent(IMarkupWriter
writer, IRequestCycle cycle).
You can checkout the source code of a framework
component that alllows informal parameters (eg Insert
component.)


Shing

--- JIM WEAVER <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> We have a simple component (PasswordField) that
> contains a Valid Field
> with an associated Validator.  We saw where we were
> duplicating
> validation information in the page specifications of
> several pages
> that had password fields, so we decided to create a
> component for the
> field.
> 
> This is working fine (yay for components), but we
> are losing informal
> parameters provided by the containing page despite
> the fact that the
> component's specification says to allow informal
> parameters.
> 
> Example:
> 
> Containing page snippet:
>     <input jwcid="@PasswordField"
> fieldLabel="Password"
> fieldValue="ognl:password1" size="16"/>
> 
> Password field jwc snippet:
> <component-specification
> class="org.apache.tapestry.BaseComponent"
>     allow-body="no"
>     allow-informal-parameters="yes">
>      .....
> Password field html template:
> <input jwcid="passwordField" hidden="true"/>
> 
> When this renders we lose our size="16" from the
> including page.
> 
> Ideas?
> 
> Thanks,
> jim
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

Home page :
  http://uk.geocities.com/matmsh/index.html

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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

Reply via email to