Re: remove red cross from the field vlidator

2011-08-22 Thread leothelion
Thank you so much! Also, thank you Thiago and Dusko. 
This is a great place for Tapestry lovers.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/remove-red-cross-from-the-field-vlidator-tp4717200p4724060.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: remove red cross from the field vlidator

2011-08-20 Thread Dusko Jovanovski
Try overriding the img.t-error-icon rule in your css.

Sample:
img.t-error-icon{

margin-left: 0;
width: 0;
height: 0;
background: none;

}

The background: none; line would get rid of the image, but you would still
have some white space, so i added the other rules

On Sat, Aug 20, 2011 at 4:20 AM, Thiago H. de Paula Figueiredo 
thiag...@gmail.com wrote:

 On Fri, 19 Aug 2011 19:33:47 -0300, leothelion okram...@hotmail.com
 wrote:

  Hi all,


 Hi!


  I want to disable the red cross from the field validator and keep all
 other stuff.
 Does anyone know how to do so?
 By the way, I am using Tapestry 5.2.5


 I've never tried it, but I'm almost sure you can do that by adding some CSS
 to override this.

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, Ars Machina Tecnologia da Informação Ltda.
 http://www.arsmachina.com.br


 --**--**-
 To unsubscribe, e-mail: 
 users-unsubscribe@tapestry.**apache.orgusers-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: remove red cross from the field vlidator

2011-08-20 Thread nillehammer
The easyest way is, what Thiago already suggested. Make it invisible with
css. Tapestry adds the css class t-error-icon to the img-Tag so you could
add the following:

.t-error-icon {
  display: none;
}

But this way you would still have the img-Tag in your markup. If you want to
get rid of that, you'll have to provide a custom implementation of
ValidationDecorator and override the method public void afterField(Field
field). Take a look at Tapestry's DefaultValidationDecorator to see how it
works. Then implement a Subclass of BaseValidationDecorator doing what you
want. Then you'll have to push instances of it into the environment at an
appropriate place. I myself have created a mixin for forms and use the
mixnin's @SetupRender and @CleanupRender for that. But if you want it to be
used everywhere you can also contribute it to the MarkupRenderer service.
Look at public void contributeMarkupRenderer in TapestryModule to see how
that works.

-
http://www.winfonet.eu
--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/remove-red-cross-from-the-field-vlidator-tp4717200p4718140.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



remove red cross from the field vlidator

2011-08-19 Thread leothelion
Hi all,

I want to disable the red cross from the field validator and keep all other
stuff. 
Does anyone know how to do so?
By the way, I am using Tapestry 5.2.5

Thank you!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/remove-red-cross-from-the-field-vlidator-tp4717200p4717200.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: remove red cross from the field vlidator

2011-08-19 Thread Thiago H. de Paula Figueiredo
On Fri, 19 Aug 2011 19:33:47 -0300, leothelion okram...@hotmail.com  
wrote:



Hi all,


Hi!

I want to disable the red cross from the field validator and keep all  
other stuff.

Does anyone know how to do so?
By the way, I am using Tapestry 5.2.5


I've never tried it, but I'm almost sure you can do that by adding some  
CSS to override this.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org