Hi again! Firstly, thanks a lot Vitek for your help. I have been testing
a couple of things related with your response, and only the
setEscapeModelStrings has solve a part of the solution.

Through Google I have seen a solution for extend ComponentFeedbackPanel
and write my own html code, but it doesn't work too.

At this moment I have this situation:

Part of the Page1.class
------------------------

                MyComponentFeedbackPanel panelErrorSfid=null;
                TextField sfid = new TextField("sfid");
                sfid.setRequired(true);          
                sfid.add(StringValidator.maximumLength(15));
                sfid.setLabel(new Model("sfid"));
                sfid.setEscapeModelStrings(true);
                sfid.setRenderBodyOnly(false);
              add(sfid);
              panelErrorSfid=new MyComponentFeedbackPanel("errorsSfid",
sfid);
              add(panelErrorSfid);

-------------------------


MyComponentFeedbackPanel
-------------------------

public class MyComponentFeedbackPanel extends ComponentFeedbackPanel {
         /**
         * 
         */
        private static final long serialVersionUID = 1L;

        public MyComponentFeedbackPanel(String id,Component componente)
{
                super(id,componente);
            }    
}


HTML'S

Page1.html
----------------------------

<wicket:extend>
    <span wicket:id="feedback"></span>

    <form wicket:id=altaPrepagoForm>
        <div id="contacts">
            <div class="contact">
                <table>
                    <tr>
                        <td>
                            Sfid
                        </td>
                        <td>
                            <input wicket:id="sfid" type="text"/>
                        </td>
                        <td wicket:id="errorsSfid">
                        </td>
                    </tr>
                        </table>
                </div>
          </div>
</form>
</wicket:extend>

------------------------------------------


MyComponentFeedBackPanel.html
-----------------------------------------

<wicket:panel>
    <div wicket:id="feedbackul">        
            <div wicket:id ="messages">                
                    <p wicket:id="message" />
                                 
            </div>
    </div>
  
</wicket:panel>



Properties (Page1.properties)
-------------

altaPrepagoForm.sfid.Required=<img src="pepe.jpg" />












Sorry for the code :D. The thing is that I want to delete (if could be
possible), the extra divs associated to feedbackul and messages, and use
wicket:id="message" to show an image, but I don't know how to do it. 

My goal is to show an image icon next to each erroneous input field :D

Thanks in advance, an sorry for my English




>Hallo,
>apparently you want to have a look at
>setEscapeModelStrings()
>and
>setRenderBodyOnly()
>methods of the Label.

>Vitek

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to