I think, that tc:page is fine. -Matthias
On 9/18/07, Zied Hamdi <[EMAIL PROTECTED]> wrote: > Hi Mario, > > You didn't declare a form (tc:form), is it intentional? > > Regards, > Zied > > > 2007/9/18, Schröder, Mario <[EMAIL PROTECTED]>: > > > > > > > > > > Hi Pedro, > > > > > > > > thanks fort he tip. Butt he tag ‚autoSubmit' does not exists in the TLD ( > http://myfaces.apache.org/tobago/tobago-core/tlddoc-1.0.11/tc/in.html). > Or do you mean to declare it somewhere else? > > > > > > > > Mario > > > > > > > > > > > > ________________________________ > > > > > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von > Pedro Calcao > > Gesendet: Dienstag, 18. September 2007 10:30 > > An: MyFaces Discussion > > Betreff: Re: Input & ValueChangeListener > > > > > > > > > > Hi Mario, > > > > Not sure if that can be the problem, but don't you need to set > autoSubmit="true" in your input component so that the event gets fired? > > > > Hope it helps :) > > > > Pedro > > > > > > On 9/18/07, Schröder, Mario < [EMAIL PROTECTED]> wrote: > > > > > > > > Hi, > > > > > > > > I'm having a problem with a valuechangelistener attached to an input field > in Tobago. > > > > The method in the Bean is never been called. Strange enough, with Sun's > JSF reference implementation and just one input field the listener works > fine. But as soon as I add another input field nothing happens. > > > > What might be the problem? > > > > > > > > Any suggestions are appreciated. > > > > > > > > > > > > Here are snippets of my code: > > > > > > > > The Controller: > > > > > > > > … > > > > > > > > public class EventController{ > > > > private Log log; > > > > private String someValue; > > > > > > > > public EventController() { > > > > log = LogFactory.getLog( this.getClass()); > > > > } > > > > > > > > public String getSomeValue() { > > > > return someValue; > > > > } > > > > > > > > public void setSomeValue(String someValue) { > > > > this. someValue = someValue; > > > > } > > > > > > > > public void processValueChange(ValueChangeEvent e) > > > > throws AbortProcessingException { > > > > log.info( "==== Change Event: " +e); > > > > } > > > > } > > > > > > > > The jsp: > > > > < tc:page> > > > > <f:facet name= "layout"> > > > > <tc:gridLayout rows= "fixed" columns ="fixed;fixed " /> > > > > </f:facet > > > > > > > > > <tc:out value= "Value:"/> > > > > <tc:in value="#{ controller.someValue}" id= "in" > valueChangeListener="#{controller.processValueChange }" /> > > > > > > > > </ tc:page > > > > > > > > > Faces-config.xml: > > > > > > > > < managed-bean> > > > > <managed-bean-name >controller </managed-bean-name > > > > > <managed-bean-class >EventController </managed-bean-class > > > > > <managed-bean-scope >session </managed-bean-scope > > > > > </ managed-bean > > > > > > > > > > > > > > > > > -- > Zied Hamdi > zatreex.sourceforge.net -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ mail: matzew-at-apache-dot-org

