Re: Extending parent of the parent markup

2007-11-30 Thread buealb

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]



Re: Extending parent of the parent markup

2007-11-30 Thread Alex Objelean

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#a14042380
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Extending parent of the parent markup

2007-11-30 Thread buealb

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#a14042372
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Extending parent of the parent markup

2007-11-29 Thread buealb

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#a14021369
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Extending parent of the parent markup

2007-11-29 Thread Alex Objelean

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#a14026939
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Extending parent of the parent markup

2007-11-29 Thread buealb

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#a14028872
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Extending parent of the parent markup

2007-11-29 Thread Igor Vaynberg
if your subclass' markup doesnt start with wicket:extend tag it will
not extend but rather override the parent's markup entirely

-igor


On Nov 29, 2007 12:53 AM, buealb [EMAIL PROTECTED] 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#a14021369
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Extending parent of the parent markup

2007-11-29 Thread Alex Objelean

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#a14041704
Sent from the Wicket - User mailing list archive at Nabble.com.


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