You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by mfaine <mf...@knology.net> on 2005/01/26 16:37:18 UTC
required input character
Has anyone ever suggested an attribute to input fields that if required
would set which character would indicate the field is required. Something
like requiredChar="*" This way I wouldn't have so many
<f:verbatim> *</f:verbatim> tags in my code.
Just a suggestion, if someone else has suggested it what is the status?
Also, if anyone has a better suggestion as to how to do this, I'm open.
Thanks,
-Mark
Re: required input character
Posted by Martin Marinschek <ma...@gmail.com>.
The problem is that peoply will want to style that little character as well.
(e.g, making it red)
I will see what we can do about your problem,
regards,
Martin
On Wed, 26 Jan 2005 19:33:42 -0600, Mark <mf...@knology.net> wrote:
> Heath Borders wrote:
>
> You can just use an <h:outputLabel> that would be easier than verbatim's.
> On Wed, 26 Jan 2005 07:37:25 -0800 (PST), mfaine <mf...@knology.net> wrote:
> Has anyone ever suggested an attribute to input fields that if required
> would set which character would indicate the field is required. Something
> like requiredChar="*" This way I wouldn't have so many
> <f:verbatim> *</f:verbatim> tags in my code. Just a suggestion, if
> someone else has suggested it what is the status? Also, if anyone has a
> better suggestion as to how to do this, I'm open. Thanks, -Mark
> Thanks, I did as you suggested and it works fine but I had to modify my
> table layout and tweak my css. Still, you are correct, it is a better
> solution than verbatim tags. Having said that, I still like the idea of a
> required character attribute.
>
> thanks also to Stefan who suggested the same thing.
>
> Thanks,
> -Mark
>
>
>
Re: required input character
Posted by Mark <mf...@knology.net>.
Heath Borders wrote:
>You can just use an <h:outputLabel> that would be easier than verbatim's.
>
>
>On Wed, 26 Jan 2005 07:37:25 -0800 (PST), mfaine <mf...@knology.net> wrote:
>
>
>>Has anyone ever suggested an attribute to input fields that if required
>>would set which character would indicate the field is required. Something
>>like requiredChar="*" This way I wouldn't have so many
>><f:verbatim> *</f:verbatim> tags in my code.
>>
>>Just a suggestion, if someone else has suggested it what is the status?
>>
>>Also, if anyone has a better suggestion as to how to do this, I'm open.
>>
>>Thanks,
>>-Mark
>>
>>
>>
>>
>
>
>
Thanks, I did as you suggested and it works fine but I had to modify my
table layout and tweak my css. Still, you are correct, it is a better
solution than verbatim tags. Having said that, I still like the idea of
a required character attribute.
thanks also to Stefan who suggested the same thing.
Thanks,
-Mark
Re: required input character
Posted by Heath Borders <he...@gmail.com>.
You can just use an <h:outputLabel> that would be easier than verbatim's.
On Wed, 26 Jan 2005 07:37:25 -0800 (PST), mfaine <mf...@knology.net> wrote:
> Has anyone ever suggested an attribute to input fields that if required
> would set which character would indicate the field is required. Something
> like requiredChar="*" This way I wouldn't have so many
> <f:verbatim> *</f:verbatim> tags in my code.
>
> Just a suggestion, if someone else has suggested it what is the status?
>
> Also, if anyone has a better suggestion as to how to do this, I'm open.
>
> Thanks,
> -Mark
>
>
--
-Heath Borders-Wing
hborders@mail.win.org
Re: required input character
Posted by Stefan Langer <my...@bettsockentraeger.de>.
Why not use the label tag and get a value that contains the
corresponding char whenever you have a required field??
Stefan
mfaine wrote:
>Has anyone ever suggested an attribute to input fields that if required
>would set which character would indicate the field is required. Something
>like requiredChar="*" This way I wouldn't have so many
><f:verbatim> *</f:verbatim> tags in my code.
>
>Just a suggestion, if someone else has suggested it what is the status?
>
>Also, if anyone has a better suggestion as to how to do this, I'm open.
>
>Thanks,
>-Mark
>
>