Thanks for that Josh. I've fixed the typo and are not using t:id.

On 6 July 2011 21:06, Josh Canfield <joshcanfi...@gmail.com> wrote:

> You have a typo in the tml. Your parameter is "selectedBatchStatus"
> and you are binding "selectedBatchedStatus"
> >    private RepairListStatus selectedBatchStatus;
> > t:selectedBatchedStatus="selectedBatchStatus"/>
>
> As I recall t:id is special, if you have a parameter named id then try
> dropping the t: from it.
>
> Josh
>
> On Wed, Jul 6, 2011 at 10:03 AM, Jabbar <aja...@gmail.com> wrote:
> > Hello all,
> >
> > I have a base component called Dialog which has a number of parameters. I
> > have created another component DialogRepairBatches which extends Dialog
> >
> > public class Dialog {
> >    @Parameter(required=true)
> >    @Property
> >    private String id;
> >
> >    @Parameter(required=true)
> >    @Property
> >    private Boolean enabled;
> >
> >    @Parameter
> >    @Property
> >    private String title = "No title";
> >
> >    @Parameter
> >    @Property
> >    private Integer height = 650;
> >
> >    @Parameter
> >    @Property
> >    private Integer width = 450;
> >
> >    @InjectComponent
> >    private Zone zone;
> >
> >
> > public class DialogRepairBatches extends Dialog {
> >
> >    @Parameter(required=true)
> >    private long selectedItemId;
> >
> >    @Parameter(required=true)
> >    private String serialNum;
> >
> >    @Parameter(required=true)
> >    private Repair repair;
> >
> >    @Parameter(required=true)
> >    private RepairListStatus selectedBatchStatus;
> >
> >    @Property
> >    private RepairBatch repairBatch;
> >
> >    @Inject
> >    private RepairBatchDAO repairBatchDAO;
> >
> >    @Inject
> >    private ComponentResources componentResources;
> >
> > My html looks like
> >
> > <t:DialogRepairBatches t:id="dialogRepairBatches"
> > t:enabled="showRepairBatchList" t:selectedItemId="selectedItemId"
> > t:serialNum="selectedSerialNum" t:repair="repair"
> > t:selectedBatchedStatus="selectedBatchStatus"/>
> >
> > I get the following error
> >
> > Parameter(s) 'id, selectedBatchStatus' are required for
> > com.technolog.components.DialogRepairBatches, but have not been bound.
> >
> > I'm not sure why the binding is not happening.
> >
> > Anybody got any ideas?
> >
> > FYI I'm also using template inheritance. I don't think this is going to
> make
> > any difference.
> >
> > --
> > Thanks
> >
> >  A Jabbar Azam
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Thanks

 A Jabbar Azam

Reply via email to