Not sure if I understand you. Precisely what I want to do is to wrap the
components (field+feedback... even the label) as you say, but depending on
the feedback status I would need to: (i) show/hide the wrapper border or
(ii) change its style attribute. I would like to do this programmatically,
depending on getFeedbackMessages() being empty or not for the form field. So
I thought of AttributeModifiers with a model that take this into account to
change the style attribute of the border.

Cheers,
Carlos

On 3/30/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

If you use borders, you can wrap the form components with elements for
which you set the class or style attribute, and you can do this with
CSS, right?

Eelco


On 3/30/07, Carlos Pita <[EMAIL PROTECTED]> wrote:
> Hi all,
> I need to show errors for form fields next to the fields themselves. I
have
> tried with FormComponentFeedbackIndicator/Border, which
> just worked fine, but the fact is that I need to affect the background
of
> both the field and its error message (for example, turning it to red)
while
> these provided markup containers just show/hide some component inside
them.
> I could go low-level down to WebMarkupContainer and implement that
myself,
> for example changing the style for the entire field+error area. But I
think
> it could be done with Variations or with AttributeModifiers too. What do
you
> recommend?
> Thank you in advance.
> Cheers,
> Carlos
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to