Re: Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread Martin Grigorov
IMarkupFragment markup = component.getMarkup();
MarkupStream stream = new MarkupStream(markup);

On Tue, Feb 7, 2012 at 7:54 AM, vineet semwal
 wrote:
> use MarkupContainer#getAssociatedMarkupStream(boolean)
>
> On Tue, Feb 7, 2012 at 11:13 AM, Thomas Singer  wrote:
>> MarkupContainer.getMarkupStream()
>>
>> does not exist any more in Wicket 1.5.
>>
>> Tom
>>
>>
>> On 07.02.2012 06:37, Jenny Brown wrote:
>>> I'm still a beginner myself, but upon looking at the Javadocs for
>>> MarkupContainer and MarkupStream, I am not sure where exactly the code is
>>> giving you trouble.  Compile error?  Runtime exception?  Can you be more
>>> specific?
>>>
>>>
>>> On Mon, Feb 6, 2012 at 11:14 PM, Thomas Singer  wrote:
>>>
 Does nobody have an idea? This code prevents me from making progress in
 converting our application to Wicket 1.5.

 Tom
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
>
> --
> thank you,
>
> regards,
> Vineet Semwal
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread vineet semwal
use MarkupContainer#getAssociatedMarkupStream(boolean)

On Tue, Feb 7, 2012 at 11:13 AM, Thomas Singer  wrote:
> MarkupContainer.getMarkupStream()
>
> does not exist any more in Wicket 1.5.
>
> Tom
>
>
> On 07.02.2012 06:37, Jenny Brown wrote:
>> I'm still a beginner myself, but upon looking at the Javadocs for
>> MarkupContainer and MarkupStream, I am not sure where exactly the code is
>> giving you trouble.  Compile error?  Runtime exception?  Can you be more
>> specific?
>>
>>
>> On Mon, Feb 6, 2012 at 11:14 PM, Thomas Singer  wrote:
>>
>>> Does nobody have an idea? This code prevents me from making progress in
>>> converting our application to Wicket 1.5.
>>>
>>> Tom
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
thank you,

regards,
Vineet Semwal

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



Re: Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread Thomas Singer
MarkupContainer.getMarkupStream()

does not exist any more in Wicket 1.5.

Tom


On 07.02.2012 06:37, Jenny Brown wrote:
> I'm still a beginner myself, but upon looking at the Javadocs for
> MarkupContainer and MarkupStream, I am not sure where exactly the code is
> giving you trouble.  Compile error?  Runtime exception?  Can you be more
> specific?
> 
> 
> On Mon, Feb 6, 2012 at 11:14 PM, Thomas Singer  wrote:
> 
>> Does nobody have an idea? This code prevents me from making progress in
>> converting our application to Wicket 1.5.
>>
>> Tom
> 

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



Re: Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread Jenny Brown
I'm still a beginner myself, but upon looking at the Javadocs for
MarkupContainer and MarkupStream, I am not sure where exactly the code is
giving you trouble.  Compile error?  Runtime exception?  Can you be more
specific?


On Mon, Feb 6, 2012 at 11:14 PM, Thomas Singer  wrote:

> Does nobody have an idea? This code prevents me from making progress in
> converting our application to Wicket 1.5.
>
> Tom


Re: Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread Thomas Singer
Does nobody have an idea? This code prevents me from making progress in
converting our application to Wicket 1.5.

Tom


On 06.02.2012 18:06, Thomas Singer wrote:
> I need help for converting our application from Wicket 1.4 to 1.5. We have
> following code:
> 
>   MarkupContainer container = ...
>   ...
>   MarkupStream markupStream = container.getMarkupStream();
>   if (markupStream == null) {
>   return null;
>   }
> 
>   Class tagMarkupClass = markupStream.atTag()
>   ? markupStream.getTag().getMarkupClass()
>   : null;
>   if (tagMarkupClass == null) {
>   return markupStream.getContainerClass();
>   }
> 
>   return tagMarkupClass;
> 
> How to write it using Wicket 1.5? Thanks in advance.
> 
> Tom
> 
> -
> 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



Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread Thomas Singer
I need help for converting our application from Wicket 1.4 to 1.5. We have
following code:

  MarkupContainer container = ...
  ...
  MarkupStream markupStream = container.getMarkupStream();
  if (markupStream == null) {
return null;
  }

  Class tagMarkupClass = markupStream.atTag()
  ? markupStream.getTag().getMarkupClass()
  : null;
  if (tagMarkupClass == null) {
return markupStream.getContainerClass();
  }

  return tagMarkupClass;

How to write it using Wicket 1.5? Thanks in advance.

Tom

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