No, I cannot to extend AbstractTableView, because I have subclasses of TableView as SearchView that contains additional functionality, and I need to extend this SearchView.
Alex Objelean wrote: > > I still think that you should not extend TableView, but AbstractTableView. > So, you hierarchy would look like this: > View (with markup) > |-- AbstractTableView > | -- MyView (provides its markup) > |-- TableView (with markup) > | -- SearchView > > Alex. > > > buealb wrote: >> >> hi, >> >> jeje, We really have AbstractTableView, but the problem is another. >> We have a hierarchy like this: >> >> View (with markup) >> |-- AbstractTableView >> |-- TableView (with markup) >> | -- SearchView >> | -- MyView >> >> Where is in MyView where I want to redefine the markup. But I don't want >> to extend the markup of TableView, I want to extend directly the markup >> of the View. I would like to specify in MyView that is extending the >> markup of the View. >> The solution of Igor is the solution that now we are using, but I don't >> really like very much, because I have to repeat the markup of the view >> and the markup of the TableView in MyView. And only we want to change the >> markup of the TableView. >> >> I don't know if you are understand me... :-(( >> >> But thanks also. >> >> >> >> >> Alex Objelean wrote: >>> >>> I think that you have a design problem. You should pull up the common >>> functionality to an abstract class (AbstractTableView) which extends >>> View, and both TableView & MyTableView should extend the >>> AbstractTableView. >>> >>> Regards, >>> Alex. >>> >>> >>> buealb wrote: >>>> >>>> Because I have a lot of functionality in TableView that I want to >>>> use... >>>> >>>> >>>> Alex Objelean wrote: >>>>> >>>>> Since you want to redefine the markup of the TableView.html, why just >>>>> not to extend the View.html? >>>>> >>>>> >>>>> buealb wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> I have this situation: >>>>>> >>>>>> View.html >>>>>> >>>>>> <border> >>>>>> .. >>>>>> <child/> >>>>>> .. >>>>>> </border> >>>>>> >>>>>> >>>>>> TableView.html (extends of View) >>>>>> >>>>>> <extend> >>>>>> .. >>>>>> <child/> >>>>>> .. >>>>>> </extend> >>>>>> >>>>>> >>>>>> MyTableView.html (extends of TableView) >>>>>> >>>>>> <extend> >>>>>> .. >>>>>> </extend> >>>>>> >>>>>> In this case, MyTableView is extending by default the markup of >>>>>> TableView, because I'm extending of TableView. >>>>>> But in other cases, (MyTableView2) I would like to extend of >>>>>> TableView, but I would like to extend the markup of the View >>>>>> directly. I don't want to use the markup of the TableView, if is >>>>>> necessary I'll redefine the markup of the TableView in my >>>>>> MyTableView2... >>>>>> >>>>>> Do you understand me? Are there a solution for that? >>>>>> >>>>>> Thanks >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Extending-parent-of-the-parent-markup-tf4895764.html#a14042395 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
