[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread stephen.friedrich
Ok, I am more or less at the end of my wisdom :-( Maybe you'll get more info out of h:messages by adding attribute showDetail="true". Else I would put a breakpoint on FacesContext.addMessage() and try to figure it out from the call stack. View the original post : http://www.jboss.com/index.h

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi Stephen, this is offer without irrelevant information: | public class Offer implements Serializable, Cloneable { | | private BigDecimal price; | | public BigDecimal getPrice() { | return price; | } | | public void setPrice(BigDecimal price) {

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread stephen.friedrich
Hm, let's see how your "offer" bean and especially the "price" property is defined. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083512#4083512 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083512 __

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi, it was validation error. I got ""price": Conversion error occurred." from h:messages. BUT why is validation happening? I even changed "getAsObject" method body to: public Object getAsObject(FacesContext arg0, UIComponent arg1, String string) { | return new BigDecimal(0); |

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread stephen.friedrich
Well have you simply tried to add a single h:messages tag to your page? Let's see if you get any messages. For example when you use hibernate validation annotations on your entity beans, then seam will add matching jsf validators by itself. The behaviour you describe is consistent with that: Th

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi Stephen, as "validation" are you referring to explicitly added jsf validation, because I don't use that? This is html code: I think is important to add that set-er for "offerBean.offer.price" is never executed. After "getAsObject" it's going directly to "getAsString" - by directly I mean i

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread stephen.friedrich
First assumption whenever the same page gets redisplayed: Validation failed and your page is missing h:message(s) tags to actually display the validation error messages. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083458#4083458 Reply to the post : http: