Re: How to know the markupStream of a border body

2007-12-13 Thread Jan Vermeulen

We have created an FieldSet component that automatically creates components
for the input fields in the form using information of the bean passed to its
model. One of the ways to configure the behavior of that FieldSet, is to
provide markup: that way, the user can at the same time define what fields
he wants to display, and how he wants them to display. Our FieldSet reads
the markup and creates components dynamically based on that markup: it's a
very powerful way to simplify the definition of an input form.

Problem is that if that FieldSet is defined within a Border component, we
have not been able to retrieve any markup content defined in the body.


igor.vaynberg wrote:
 
 and why do you need to know the markup stream?
 
 -igor
 
 
 On Dec 12, 2007 12:42 AM, buealb [EMAIL PROTECTED] wrote:

 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]


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

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



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: How to know the markupStream of a border body

2007-12-12 Thread Igor Vaynberg
and why do you need to know the markup stream?

-igor


On Dec 12, 2007 12:42 AM, buealb [EMAIL PROTECTED] wrote:

 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]



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