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 8731471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:14:50+00:00 2026-06-13T09:14:50+00:00

I prepared a reusable panel and add it to my page. There are 2

  • 0

I prepared a reusable panel and add it to my page.
There are 2 dropdownchoice in my page’s form.
im using the ajax example from https://cwiki.apache.org/WICKET/dropdownchoice-examples.html#DropDownChoiceExamples-Note
the two DDC works fine(change one’s value then hide/unhide the other one.
but it doesnt work on my panel.
im using:

private final MyPanel panel1 = new MyPanel ("MyPanel"); 
panel1.setOutputMarkupPlaceholderTag(true); 

… in DDC1 ajax behavior method:

onUpdate(AjaxRequestTarget target) { ...
    DDC2.setVisible(true); 
    panel1.setVisible(true); 
}

I have to submit the form to hide/undide panel1 .
How can I make it work the same way as DDC2 without submitting the form?

  • 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-06-13T09:14:51+00:00Added an answer on June 13, 2026 at 9:14 am

    You need :

    panel1.setOutputMarkupId(true); 
    

    The

    panel1.setOutputMarkupPlaceholderTag(true);
    

    that you have is actually not always needed for Ajax to work, but is needed for doing a refresh driven from the client side. And it won’t hurt anything to my knowledge …

    In the behavior you need to tell the target to refresh it:

    onUpdate(AjaxRequestTarget target) { ...
        DDC2.setVisible(true); 
        panel1.setVisible(true);
        target.addComponent(DDC2);
        target.addComponent(panel1); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a prepared statement to insert values from a form into a Db,
Does using prepared statements in Zend_DB or Doctrine protect me from sql injection? example:
I prepared a simple page by using the data of a fusion table. (
Possible Duplicate: How prepared statements can protect from SQL injection attacks? If I'm using
The application prepared by me is using GCM to get push notifications from the
am using a Prepared Statement in C#. SqlCommand inscommand = new SqlCommand(supInsert, connection); inscommand.Parameters.Add(@ordQty,
Using PDO with prepared statements (I learned from here: http://www.kitebird.com/articles/php-pdo.html ) I'm using a
Is it possible to write ASP.NET (.NET 4) application using reusable page components? I
Prepared statements add a significant amount of code...yet I keep hearing mentions of using
I prepared a WLST script that prints all sever names from WebLogic cluster to

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.