Change isRequired star position in Struts 1 -
I am using String 1 on a form and need to mark some input as needed. The thing is that The red color (* *) showing the required fields when it marks them with isRequired = "true"
, then the original text is displayed immediately after the box:
< / P>
Is there a way to change the status of the star to the left before "Input"?
If necessary, its code is now:
& lt; Layout: Text Property = "Input" key = "form.input" styleClass = "FormInput" mode = "E, E, I" isRequired = "true" />
You have to type your own custom tag which basically increases the layout : Text tags but overrides the output (i.e. wire is generated only if there is an error in the field). Start here: You can probably go to the "Examples" page, but it is also good to know other stuff.
Comments
Post a Comment