You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "RD (JIRA)" <de...@myfaces.apache.org> on 2006/07/04 14:55:29 UTC

[jira] Created: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419467 ] 

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

Please check if ValueChangePhaseListener.afterPhase gets called.

Do you use the MyFaces JSF impl or Suns JSF RI?

In case of MyFaces JSF you can check if PhaseListenerManager.informPhaseListenersAfter gets called and if
a) the ValueChangePhaseListener is in the phaseListeners list
b) it reach the ValueChangePhaseListener

Happy debugging ;-)

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419130 ] 

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

Thats too bad, I checked the sandbox example and there it works as expected.

Maybe you are able to kick in a debugger and see if the system enters

ValueChangeCollector.processValueChange

and later if

ValueChangeManager.fireEvents will be executed

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "RD (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419111 ] 

RD commented on TOMAHAWK-514:
-----------------------------

Should I place those lines within <application>, right after <view-handler>org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl</view-handler>?

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419108 ] 

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

Placing the tomahawk-sandbox jar in your classpath should install a PhaseListener, though, I dont know much about the jboss environment.

Try adding the following to your faces-config.xml

  <lifecycle>
          <phase-listener>org.apache.myfaces.custom.valueChangeNotifier.ValueChangePhaseListener</phase-listener>
  </lifecycle>

Hmmmm .... but this should definitely not be be required.
Just, please try it.

Thanks!

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419117 ] 

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

no, the lifecycle is its own element, just put it within faces-config.


> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "RD (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419288 ] 

RD commented on TOMAHAWK-514:
-----------------------------

Ok, I got rid of the problem.

ValueChangeCollector.processValueChange and ValueChangeManager.fireEvents are NOT reached, with or without  <lifecycle> <phase-listener>org.apache.myfaces.custom.valueChangeNotifier.ValueChangePhaseListener</phase-listener> </lifecycle>.

What should I try next?

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419275 ] 

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

Do you use the updateActionListener tag on your page?
If so, do it point to a property which holds a list/map ?

For some reason JSF cant determine the type of the property. Say, which is the return class or the class used in its setter.

But, for sure,  this exception might break the event flow.

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "RD (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419488 ] 

RD commented on TOMAHAWK-514:
-----------------------------

Yes, I have h:messages in my JSF view. And yes, after I select a value in the combo box Vertragid, an error is shown for some field ("tarifid": Value is required). Does that have any impact?

> 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


[jira] Resolved: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=all ]
     
Mario Ivankovits resolved TOMAHAWK-514:
---------------------------------------

    Resolution: Invalid

Yes, thats the problem.

A validation error prevents the model from being updated. The model_update phase will be skipped. JSF avoid setting invalid values on the model.

You can workaround this problem using the tomahawk sandbox subForm tag.
With this you can create logical groups of your form - each has its own validation scope.

Please start a topic at myfaces-user if you require support with this tag.

Ciao,
Mario

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "RD (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419475 ] 

RD commented on TOMAHAWK-514:
-----------------------------

Yes, I use MyFaces JSF.

PhaseListenerManager.informPhaseListenersAfter gets called (with phaseId._name="RESTORE_VIEW", ValueChangePhaseListener is in the phaseListeners list). Then ValueChangeCollector.processValueChange is called (with _phaseId="ANY_PHASE"). Then PhaseListenerManager.informPhaseListenersAfter is called (phaseId="APPLY_REQUEST_VALUES"). Then again PhaseListenerManager.informPhaseListenersAfter (phaseId="RENDER_RESPONSE").

I have set breakpoints on ValueChangePhaseListener.beforePhase and .afterPhase, but they were not called.

What should I try next?

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "RD (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419465 ] 

RD commented on TOMAHAWK-514:
-----------------------------

I have run my program again and it seems ValueChangeCollector.processValueChange gets called (with event._newValue and ._oldValue set to the right values and ._phaseId=ANY_PHASE), but ValueChangeManager.fireEvents is not called.

<lifecycle> is defined in faces-config.xml.

Any suggestions?

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "RD (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419123 ] 

RD commented on TOMAHAWK-514:
-----------------------------

jboss uses Tomcat 5.5, if that is of any use to you.

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "RD (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419121 ] 

RD commented on TOMAHAWK-514:
-----------------------------

I have done it. The problem still persists.

What should I try next?

> 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


[jira] Commented: (TOMAHAWK-514) Method not triggered by s:valueChangeNotifier

Posted by "RD (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-514?page=comments#action_12419246 ] 

RD commented on TOMAHAWK-514:
-----------------------------

I have tried to do that yesterday, but as soon as I've set breakpoints on the two methods, Eclipse (or jboss, I don't know) has begun to operate in a strange manner.

I get the following error messages, whether I use breakpoints or not:

12:10:52,468 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
	at org.apache.myfaces.custom.updateactionlistener.UpdateActionListener.processAction(UpdateActionListener.java:134)
	at javax.faces.event.ActionEvent.processListener(ActionEvent.java:48)
	at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:484)
	at javax.faces.component.UICommand.broadcast(UICommand.java:75)
	at org.apache.myfaces.custom.navmenu.htmlnavmenu.HtmlCommandNavigationItem.broadcast(HtmlCommandNavigationItem.java:302)
	at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
	at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:136)
	at org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
	at java.lang.Thread.run(Thread.java:595)

It seems that my application doesn't run at all.

> 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