How to know the markupStream of a border body

2007-12-12 Thread buealb

Hi,

I have a simple border:

wicket:border
test
wicket:body/
/wicket:border

and when I use this border I add content in the body:

div wicket:id=myBorder

 more text more text

/div

Now, I want to know what is the markupStream of this border.
I'm trying with 

MarkupStream st =getBodyContainer().getAssociatedMarkupStream(false);
MarkupStream st =getBodyContainer().getMarkupStream();

But in don't receive the correct markupStream. The correct markupStream of
this example should be:


 more text more text



Thanks!!

-- 
View this message in context: 
http://www.nabble.com/How-to-know-the-markupStream-of-a-border-body-tp14291014p14291014.html
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

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 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 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: setRenderAllowed not called in Tree items

2007-09-14 Thread buealb

I'm working with the trunk.


What wicket version are you using?

-Matej

On 9/13/07, buealb [EMAIL PROTECTED] wrote:

 Hi,

 I'm using Tree component. I have problems with the rendering of the
 children
 of an TreeItem. If I look the code of Component.renderComponent, after of
 calling to beforeRender(), you check if component and its children are
 allowed to be rendered (setRenderAllowed).
 But in Tree component, when you have to do the rendering of the TreeItem,
 only beforeRender() method is called, and setRenderAllowed method of the
 children never is called.

 Is it a bug or I have to do something to call to the setRenderAllowed
 method
 of the children manually?

 Thanks
 --
 View this message in context:
 http://www.nabble.com/setRenderAllowed-not-called-in-Tree-items-tf4438712.html#a12664394
 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]




-- 
View this message in context: 
http://www.nabble.com/setRenderAllowed-not-called-in-Tree-items-tf4438712.html#a12669943
Sent from the Wicket - User mailing list archive at Nabble.com.


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



setRenderAllowed not called in Tree items

2007-09-13 Thread buealb

Hi,

I'm using Tree component. I have problems with the rendering of the children
of an TreeItem. If I look the code of Component.renderComponent, after of
calling to beforeRender(), you check if component and its children are
allowed to be rendered (setRenderAllowed).
But in Tree component, when you have to do the rendering of the TreeItem,
only beforeRender() method is called, and setRenderAllowed method of the
children never is called. 

Is it a bug or I have to do something to call to the setRenderAllowed method
of the children manually? 

Thanks
-- 
View this message in context: 
http://www.nabble.com/setRenderAllowed-not-called-in-Tree-items-tf4438712.html#a12664394
Sent from the Wicket - User mailing list archive at Nabble.com.


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