RE: How can i Customize the style of Feedback Messages ?

2008-03-11 Thread Alonso Sanchez, Daniel
Sorry again... just only one thing more (I promise this is the last).
Taking your advice as starting point... is there any way to add the
feedback message produced by the error to the image "alt" attribute?

Thanks again for all your help.

-Mensaje original-
De: Alonso Sanchez, Daniel [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 11 de marzo de 2008 12:45
Para: users@wicket.apache.org
Asunto: RE: How can i Customize the style of Feedback Messages ?

Fantastic! Sorry for disturbing :P Thanks again 

-Mensaje original-
De: Gerolf Seitz [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 11 de marzo de 2008 12:39
Para: users@wicket.apache.org
Asunto: Re: How can i Customize the style of Feedback Messages ?

> The things is that if there is an error, a red "*" is showed, not the
> image file I want... what things am I doing wrong?
>

subclass FormComponentFeedbackIndicator and provide your own markup:

MyFCFI.java:
class MyFCFI extends FormComponentFeedbackIndicator {
  ...
}

MyFcFI.html:


  Gerolf


>
> Thanks again to everybody
>
>
>
> -Mensaje original-
> De: Gerolf Seitz [mailto:[EMAIL PROTECTED]
> Enviado el: martes, 11 de marzo de 2008 12:10
> Para: users@wicket.apache.org
> Asunto: Re: How can i Customize the style of Feedback Messages ?
>
> >
> > My goal is to show an image icon next to each erroneous input field
:D
> >
>
> see FormComponentFeedbackBorder or FormComponentFeedbackIndicator
>
>  Gerolf
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



Re: How can i Customize the style of Feedback Messages ?

2008-03-11 Thread Gerolf Seitz
you're welcome.

  Gerolf

On Tue, Mar 11, 2008 at 12:44 PM, Alonso Sanchez, Daniel <
[EMAIL PROTECTED]> wrote:

> Fantastic! Sorry for disturbing :P Thanks again
>
> -Mensaje original-
> De: Gerolf Seitz [mailto:[EMAIL PROTECTED]
> Enviado el: martes, 11 de marzo de 2008 12:39
> Para: users@wicket.apache.org
> Asunto: Re: How can i Customize the style of Feedback Messages ?
>
> > The things is that if there is an error, a red "*" is showed, not the
> > image file I want... what things am I doing wrong?
> >
>
> subclass FormComponentFeedbackIndicator and provide your own markup:
>
> MyFCFI.java:
> class MyFCFI extends FormComponentFeedbackIndicator {
>  ...
> }
>
> MyFcFI.html:
> 
>
>  Gerolf
>
>
> >
> > Thanks again to everybody
> >
> >
> >
> > -Mensaje original-
> > De: Gerolf Seitz [mailto:[EMAIL PROTECTED]
> > Enviado el: martes, 11 de marzo de 2008 12:10
> > Para: users@wicket.apache.org
> > Asunto: Re: How can i Customize the style of Feedback Messages ?
> >
> > >
> > > My goal is to show an image icon next to each erroneous input field
> :D
> > >
> >
> > see FormComponentFeedbackBorder or FormComponentFeedbackIndicator
> >
> >  Gerolf
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: How can i Customize the style of Feedback Messages ?

2008-03-11 Thread Alonso Sanchez, Daniel
Fantastic! Sorry for disturbing :P Thanks again 

-Mensaje original-
De: Gerolf Seitz [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 11 de marzo de 2008 12:39
Para: users@wicket.apache.org
Asunto: Re: How can i Customize the style of Feedback Messages ?

> The things is that if there is an error, a red "*" is showed, not the
> image file I want... what things am I doing wrong?
>

subclass FormComponentFeedbackIndicator and provide your own markup:

MyFCFI.java:
class MyFCFI extends FormComponentFeedbackIndicator {
  ...
}

MyFcFI.html:


  Gerolf


>
> Thanks again to everybody
>
>
>
> -Mensaje original-
> De: Gerolf Seitz [mailto:[EMAIL PROTECTED]
> Enviado el: martes, 11 de marzo de 2008 12:10
> Para: users@wicket.apache.org
> Asunto: Re: How can i Customize the style of Feedback Messages ?
>
> >
> > My goal is to show an image icon next to each erroneous input field
:D
> >
>
> see FormComponentFeedbackBorder or FormComponentFeedbackIndicator
>
>  Gerolf
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: How can i Customize the style of Feedback Messages ?

2008-03-11 Thread Gerolf Seitz
> The things is that if there is an error, a red "*" is showed, not the
> image file I want... what things am I doing wrong?
>

subclass FormComponentFeedbackIndicator and provide your own markup:

MyFCFI.java:
class MyFCFI extends FormComponentFeedbackIndicator {
  ...
}

MyFcFI.html:


  Gerolf


>
> Thanks again to everybody
>
>
>
> -Mensaje original-
> De: Gerolf Seitz [mailto:[EMAIL PROTECTED]
> Enviado el: martes, 11 de marzo de 2008 12:10
> Para: users@wicket.apache.org
> Asunto: Re: How can i Customize the style of Feedback Messages ?
>
> >
> > My goal is to show an image icon next to each erroneous input field :D
> >
>
> see FormComponentFeedbackBorder or FormComponentFeedbackIndicator
>
>  Gerolf
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: How can i Customize the style of Feedback Messages ?

2008-03-11 Thread Alonso Sanchez, Daniel
Thanks a lot Gerolf. Great suggestions.

I have been looking some docs, and nabble forum... but (again) I've got
a problem.


Finally my webpage class looks like this (just the important part :D ):

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


And the html code...



The things is that if there is an error, a red "*" is showed, not the
image file I want... what things am I doing wrong?

Thanks again to everybody



-Mensaje original-
De: Gerolf Seitz [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 11 de marzo de 2008 12:10
Para: users@wicket.apache.org
Asunto: Re: How can i Customize the style of Feedback Messages ?

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

see FormComponentFeedbackBorder or FormComponentFeedbackIndicator

  Gerolf

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



Re: How can i Customize the style of Feedback Messages ?

2008-03-11 Thread Gerolf Seitz
>
> My goal is to show an image icon next to each erroneous input field :D
>

see FormComponentFeedbackBorder or FormComponentFeedbackIndicator

  Gerolf


RE: How can i Customize the style of Feedback Messages ?

2008-03-11 Thread Alonso Sanchez, Daniel

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











Sfid









  



--


MyComponentFeedBackPanel.html
-





 


  




Properties (Page1.properties)
-

altaPrepagoForm.sfid.Required=












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]



Re: How can i Customize the style of Feedback Messages ?

2008-03-11 Thread Vit Rozkovec

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

Vitek

Alonso Sanchez, Daniel wrote:

Hi again folks! Thanks for replying me to my first question, it wordked!
If you don't remember, I asked about how to show feedback messages
associated only with a field, so I can show a message next to a input
field.

 


The next step is that I'm trying to change the default behaviour in
order to put a simple html image tag instead of the default
"message1message2"

 


The html code that I'm getting at this moment is this:

 



  

  

  

 
The thing is that I'm putting the image tag as a property, but I don't

know how to change this, in order to show only the image tag?
 
Any kind soul knows how to solve this? Your help would be very

appreciated :D. Thanks in advance.
 
 
Daniel Alonso


 



  



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