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

I have a jQuery which is like this: <script type=text/javascript> $(document).ready(function () { $(#txtAgentName).click(function
Assuming I have a class like this: class Database { public static $hostname =
Assuming I have an element called menu how would I remove this element from
Assuming I have an SQL table with this schema: CREATE TABLE( foo INTEGER, bar
Assuming I have HTML like <body id=doc> <div id=container> ddd </div> </body> And my
Quick question just to verify something. If I have an HTML5 mobile advertisement that
Assuming I have a list of financial transactions, I have a need to execute
assuming i have a contacts orchard module which manages contacts can i have two
Have a WCF service in a Services directory in my asp.net web app. In
I'm implementing TinyMCE for a client so they can edit front-end content via a

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.