Class hierarchy.

On Thu, Jun 2, 2011 at 6:56 AM, James Carman <ja...@carmanconsulting.com> wrote:
> What is DetailsPage's hierarchy?
>
> On Thu, Jun 2, 2011 at 6:02 AM, henry <henstri...@yahoo.com> wrote:
>> hi guys am having some issues my code any help will do,am trying to add a
>> link to my datatable
>> firstly i created the DetailPage class
>>
>> //DetailPage class code
>> public DetailsPage(String id , IModel entryModel) {
>>        super(id,entryModel);
>>
>>        Link link = new Link("link"){
>>            @Override
>>            public void onClick() {
>>                showDetails details = new showDetails(getEntry());
>>                setResponsePage(details);
>>            }
>>        };
>>
>>        add(new Label("id",getEntry().getId()+""));
>>        add(link);
>>    }
>>
>>    private PhoneTransferRequest getEntry(){
>>        return (PhoneTransferRequest)getDefaultModelObject();
>>    }
>>
>> and i try adding the DetailPage panel to my datatable
>>
>> IColumn[]columns = {new AbstractColumn<PhoneTransferRequest>(new
>> Model<String>("id")) {
>>        public void populateItem(Item cellItem, String componentId, IModel
>> rowModel)
>>        {
>>            cellItem.add(new DetailsPage(componentId, rowModel));
>>        }
>>        },
>>        new
>> ExportablePropertyColumn<PhoneTransferRequest>(Model.of("Initiator"),
>> "customerId" ),
>>        new
>> ExportablePropertyColumn<PhoneTransferRequest>(Model.of("StartTime"),
>> "startTime" ),
>>        new
>> ExportablePropertyColumn<PhoneTransferRequest>(Model.of("switchResponse"),
>> "switchResponse"),
>>        new
>> ExportablePropertyColumn<PhoneTransferRequest>(Model.of("SourceAccount"),
>> "sourceAccount"),
>>        new
>> ExportablePropertyColumn<PhoneTransferRequest>(Model.of("DestAccount"),
>> "destAccount"),
>>        new
>> ExportablePropertyColumn<PhoneTransferRequest>(Model.of("Amount"),
>> "amount"),
>>        new
>> ExportablePropertyColumn<PhoneTransferRequest>(Model.of("Notication"),
>> "notificationSent"),};
>>
>>        //creating dataTable object
>>        DefaultDataTable dataTable1 = new
>> DefaultDataTable("datatable",columns,new PhoneTransferProvider(),30);
>>
>> any time i run this code i get
>>
>> an INTERNAL ERROR MESSAGE.
>>
>> please i need to get this sorted out today.
>>
>> Regards
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/adding-link-to-datatable-tp3567971p3567971.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to