I am developing on my local system (MyEclipse + Tomcat). I added a breakpoint.
Also by looking in my DB Tables I can determine that the action wasnt called.
It works w/o:
<h:column>
<f:facet name="header">
<h:outputText
value="Kunde"></h:outputText>
</f:facet>
<h:selectOneMenu id="projectId"
value="#{entry.projectId}">
<f:selectItems
value="#{UserMgr.possibleProjects}" />
</h:selectOneMenu>
</h:column>
Sometimes when I click a button which belongs to a different <H:form> but on
the same page the action="#{UserMgr.saveEntries}" of the commandButton
mentioned below is called also. Then "saving entries" works. That looks very
strange to me.
Maybe I should use ActionListeners instead?
Can I debug MyFaces with LOG4J? What do I have to add in log4j.properties?
Ren�
-----Urspr�ngliche Nachricht-----
Von: Sean Schofield [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 22. Mai 2005 23:11
An: MyFaces Discussion
Betreff: Re: Problems with commandbutton / commandlink
How did you determine this? Did you try adding a debug statement to
the saveEntries method or did you infer this by the fact that id
didn't navigate to where you wanted. There aren't currently any
issues with commandButton or commandLink AFAIK.
sean
On 5/21/05, Rene G�nther <[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> I got a problem with commandButton. I got the following code:
>
> <h:form id="rlist">
> <h:commandButton id="save" value="Speichern"
> action="#{UserMgr.saveEntries}" />
> <h:dataTable id="tblData" var="entry" border="2">
> <...>
> </h:datatable>
> </h:form>
>
> I got a managed Bean UserMgr which is already initialized. When I click the
> button, the method saveEntries (Public String without parameters) is not
> called. The same happens with commandLink. What could be an approach to solve
> this?
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193