[Beginners Corner] - Simple action not called
by hispeedsurfer
Hi,
perhaps a cap in my mind.
I try to call an action, but the method is never called
here the jsf code fragement
<div class="entry">
| <a4j:log hotkey="M" />
| <a4j:commandButton value="Reload" action="#{measureEdit.onListLoad}" reRender="Sensor"/>
| <div class="label">Sensor:</div>
| <div class="input">
| <a4j:region renderRegionOnly="false">
| <h:selectOneMenu id="Sensor" value="#{messkette.sensor}"
| converter="#{selectItemHelfer}" required="true" disabled="#{gesperrt}">
| <f:selectItems value="#{measureEdit.alleSensorenMitBlank}" />
| <a4j:support event="onchange" reRender="Funktion, Sensormessbereich, Einheit, Sensorwarnung" />
| </h:selectOneMenu>
| </a4j:region>
| <h:message for="Sensor" styleClass="message" />
| <div><h:outputText id="Sensorwarnung" value="#{measureEdit.sensorWarnung}" styleClass="kursiv" /></div>
| </div>
| </div>
When I press the button the onListLoad() method from class MeasureEdit should be called, but nothing is done.
<a4j:commandButton value="Reload" action="#{measureEdit.onListLoad}" reRender="Sensor"/>
The pojos
MeasureEditBean.java
@Stateful
| @Scope(ScopeType.CONVERSATION)
| @Name("measureEdit")
| public class MeasureEditBean extends AbstractUnderEditorBean< MeasuringChain, Testbed> implements MeasureEdit{
| ....
| public String onListLoad() {
| // TODO Auto-generated method stub
| System.out.println("invoked");
| selectItemHelfer.onListLoad();
| return null;
| }
| }
MeasureEdit.java
@Local
| public interface MeasureEdit extends AbstractEditor<MeasuringChain> {
|
| ...
|
| public String onListLoad();
| }
What's wrong in my mind?
Thanks
andi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001704#4001704
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001704
19 years, 3 months
[JBoss Seam] - Re: Navigation
by lightbulb432
It's probably a good time to bump this post to the top (sorry :), because I am starting to use and learn about conversations. With so many different paths a conversation can take, it seems like almost every method on my SFSBs have both a @Begin and an @End, because of that method's role in one conversation or another...
e.g. If my SFSB has 10 methods with a large number of paths that the conversation can legally take, I start annotating those 10 methods with @Begin and @End for every conversation, one by one. Once annotating all conversations is done, I figure out too many methods have @Begin and @End, and it's totally inaccurate...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001684#4001684
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001684
19 years, 3 months