myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ivankovits (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier
Date Thu, 06 Jul 2006 11:13:30 GMT
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419481 ] 

Mario Ivankovits commented on TOMAHAWK-514:
-------------------------------------------

Do you have a h:messages in your JSF view so that you can see any validation/converter message?

It looks like JSF catched some error and so skips e.g. the MODEL_UPDATE phase. But this phase
is required for the ValueChangeCollector.

> Method not triggered by s:valueChangeNotifier
> ---------------------------------------------
>
>          Key: TOMAHAWK-514
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-514
>      Project: MyFaces Tomahawk
>         Type: Bug

>     Versions: 1.1.5-SNAPSHOT
>  Environment: JBoss 4.0.4.GA
> MyFaces 1.1.3
> Tomahawk+Sandbox 1.1.5 snapshot
>     Reporter: RD

>
> This is a snippet from my JSF page:
> 		<h:selectOneMenu id="vertragid" required="true"
> 		value="#{rufnummerEditBean.vertragid}"
> 		disabled="#{!(rufnummerEditBean.editable)}"
> 		onchange="submit()" immediate="true">
> 			<s:valueChangeNotifier method="#{rufnummerEditBean.changeVertragid}"/>
> 			<f:selectItems value="#{rufnummerEditBean.vertragidList}"/>
> 		</h:selectOneMenu>
> This is the associated piece of code:
> 	public void changeVertragid(ValueChangeEvent event) {
> 		Integer newval=(Integer)(event.getNewValue());
> 		if(debugInfo) System.out.println("changeVertragid "+newval);
> 		setVertragid(newval);
> 		List<SelectItem> listTarifs=getTarifidList();
> 		if(listTarifs.isEmpty()) setTarifid2(null);
> 		else setTarifid2((Integer)(listTarifs.get(0).getValue()));
> 	}
> When selecting some value in the combo box Vertragid, the method changeVertragid is not
called (or else I would have seen the output of System.out.println in the log).
> I have also tried with immediate="false", but there is no difference.
> What should I do to fix this?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message