Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3632448
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:31:35+00:00 2026-05-19T00:31:35+00:00

Assuming I have markup that looks like this : <span wicket:id=text>Some text that I’d

  • 0

Assuming I have markup that looks like this :

<span wicket:id="text">Some text that I'd like to read</span>

Is it possible to get the content of the body of the tag somewhere, or is it irremediably stripped by wicket?

Edit :
My intent is to implement some kind of simple CMS. Users need to be able to enter LaTeX formulas, in the form of tex>a^2</tex> that I would then render with a RenderedDynamicImageResource. Other tags need to be interpreted in a similar way. I envisioned to do it in two steps with a Panel like this :

public class LightweightMarkupPanel extends Panel implements IComponentResolver {
    public LightweightMarkupPanel ( String id ) {
        super( id );
    }

    @Override
    public MarkupStream getAssociatedMarkupStream( boolean throwException ) {
        // Get the lightweight markup and convert it to wicket markup
        ...
    }

    @Override
    public boolean resolve( MarkupContainer container, MarkupStream markupStream, ComponentTag tag ) {
        // AutoAdd components as needed
        ...
    }
}

I’ve been struggling with this problem for a while, so maybe I’m searching in the wrong direction.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:31:36+00:00Added an answer on May 19, 2026 at 12:31 am

    The MarkupStream object of the Component contains the raw HTML body.
    You can retrieve it using the markupStream.get().toString() method like this:

    // <span wicket:id="message">message will be here</span>
    add(new Label("message", "If you see this message ..."){
         @Override
         protected void onComponentTagBody(
             MarkupStream markupStream, ComponentTag openTag) {
             markupStream.get(); // "message will be here"
             super.onComponentTagBody(markupStream, openTag);
         }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assuming I have an Entity Framework 4.2 class like this: class Company { public
Assuming you have a hypothetical enum in java like this (purely for demonstration purposes,
Let's say I have markup like this: <form action=foo> <input name=bar /> <button type=button>Save</button>
Assuming I have something like this: <div class=testdiv> <a href=/link1>link 1</a> </div> <div class=testdiv>
I have a jQuery which is like this: <script type=text/javascript> $(document).ready(function () { $(#txtAgentName).click(function
Assuming I have a tuple like: [('text-1','xxx'), ('img-1','iii'), ('img-2','jjj'), ('text-2','xxx')] I want to filter
Assuming I have a List<Stuff> listA that has some items in it. I create
My markup: <ul id=playerControls> <li class=play-bt></li> </ul> And I have this event that fires
Assuming I have a class like this: class Base { } class A :
Assuming I have a ASP.NET MVC 3 application that runs in a web farm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.