You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Thomas Singer <wi...@regnis.de> on 2012/02/06 18:06:57 UTC
Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()
Posted by Martin Grigorov <mg...@apache.org>.
IMarkupFragment markup = component.getMarkup();
MarkupStream stream = new MarkupStream(markup);
On Tue, Feb 7, 2012 at 7:54 AM, vineet semwal
<vi...@gmail.com> wrote:
> use MarkupContainer#getAssociatedMarkupStream(boolean)
>
> On Tue, Feb 7, 2012 at 11:13 AM, Thomas Singer <wi...@regnis.de> 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 <wi...@regnis.de> 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-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
>
> --
> thank you,
>
> regards,
> Vineet Semwal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()
Posted by vineet semwal <vi...@gmail.com>.
use MarkupContainer#getAssociatedMarkupStream(boolean)
On Tue, Feb 7, 2012 at 11:13 AM, Thomas Singer <wi...@regnis.de> 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 <wi...@regnis.de> 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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
thank you,
regards,
Vineet Semwal
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()
Posted by Thomas Singer <wi...@regnis.de>.
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 <wi...@regnis.de> 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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket 1.4 -> 1.5: MarkupContainer.getMarkupStream()
Posted by Jenny Brown <je...@gmail.com>.
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 <wi...@regnis.de> 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()
Posted by Thomas Singer <wi...@regnis.de>.
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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org