You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Andreas Grund <an...@valtech.de> on 2007/12/04 13:06:51 UTC

Action Method not called using Myfaces 1.1.5

Hi Mailing-List,

I have a little Problem with my command button. I declared it within my 
jsf-Page as following:
<h:commandButton action="#{jobDetailBackingBean.testAction}" 
style="position:absolute;left:230px;top:400px;" 
value="#{msg.button_schedule_new_job}" />

The method testAction looks so:
public String testAction() {
		logger.info("testAction called");
		return "success";
	}

But when I press my button, nothing happens. I do not see the log-output 
created by the testAction-Method. To ensure, that I check the correct 
log-File, I implement the default constructor in the following way:
public JobDetailBackingBean() {
		logger.info("Creating an instance of the JobDetailBackingBean");
	}

This text is logged, but the action method seems not to be called. Can 
anybody tell me, why?

Thanks for your help and best regards,
Andreas Grund

PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java 1.4.2

-- 
Andreas Grund
externer Mitarbeiter Projet GUTS bei Conti
mailto:andreas.grund@valtech.de
Mobile:




Germany

Phone:
Fax:



Geschäftsführer: Ingo Kriescher
Amtsgericht Düsseldorf HRB48672

AW: AW: Action Method not called using Myfaces 1.1.5

Posted by Andreas Grund <an...@valtech.de>.
Hi Svi,

no, there are no fields marked as required and no validation activated (as far as I know). Does the tomahawk inputCalendar Component use validators, which may fail here?

Thanks for your help and best regards,
Andreas


-----Ursprüngliche Nachricht-----
Von: Svilen Ivanov [mailto:svilen.ivanov@sirma.bg]
Gesendet: Di 04.12.2007 13:32
An: MyFaces Discussion
Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
 
Do you have input fields marked as "required" or validators? Put a 
<h:messages /> to see if there is validation error.

Regards,
Svi

Andreas Grund wrote:
> Hi Matthias,
> 
> yes, it is the last element within a h:form-tag.
> 
> Greetings,
> Andreas
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> Gesendet: Di 04.12.2007 13:14
> An: MyFaces Discussion
> Betreff: Re: Action Method not called using Myfaces 1.1.5
>  
> Is the link/button nested w/in a form ?
> 
> -M
> 
> On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de> wrote:
>> Hi Mailing-List,
>>
>> I have a little Problem with my command button. I declared it within my
>> jsf-Page as following:
>> <h:commandButton action="#{jobDetailBackingBean.testAction}"
>> style="position:absolute;left:230px;top:400px;"
>> value="#{msg.button_schedule_new_job}" />
>>
>> The method testAction looks so:
>> public String testAction() {
>>                 logger.info("testAction called");
>>                 return "success";
>>         }
>>
>> But when I press my button, nothing happens. I do not see the log-output
>> created by the testAction-Method. To ensure, that I check the correct
>> log-File, I implement the default constructor in the following way:
>> public JobDetailBackingBean() {
>>                 logger.info("Creating an instance of the JobDetailBackingBean");
>>         }
>>
>> This text is logged, but the action method seems not to be called. Can
>> anybody tell me, why?
>>
>> Thanks for your help and best regards,
>> Andreas Grund
>>
>> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java 1.4.2
>>
>> --
>> Andreas Grund
>> externer Mitarbeiter Projet GUTS bei Conti
>> mailto:andreas.grund@valtech.de
>> Mobile:
>>
>>
>>
>>
>> Germany
>>
>> Phone:
>> Fax:
>>
>>
>>
>> Geschäftsführer: Ingo Kriescher
>> Amtsgericht Düsseldorf HRB48672
>>
> 
> 
> 



AW: AW: Action Method not called using Myfaces 1.1.5

Posted by Andreas Grund <an...@valtech.de>.
Hi,

yes I can post my jsp. And here it is:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh" %>
<%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr" %>
<html>
	<head>
		<title>Schedule new Job Form</title>
		<link rel="stylesheet" href="<%= request.getContextPath() %>/css/basic.css" type="text/css" />
	</head>
	<body>
		<%@ include file="header.jsp" %>
		<%@ include file="navigation2.jsp" %>
		<f:view locale="en">
		<f:loadBundle
			basename="de.conti.gutsintegration.scheduling.webapp.resource.messages"
			var="msg" />
			<h:form id="scheduleNewJob">
				<h:panelGrid columns="2" style="position:absolute;left:230px;top:95px;">
					<f:facet name="header">
						<h:outputText value="#{msg.create_trigger_form_title}" />
					</f:facet>
					<h:outputText value="#{msg.trigger_attribute_triggername}" />
					<h:inputText value="#{cronTriggerBackingBean.triggerName}" />
					<h:outputText value="#{msg.trigger_attribute_triggergroupname}" />
					<h:inputText value="#{cronTriggerBackingBean.triggerGroupName}" />
					<h:outputText value="#{msg.trigger_attribute_triggerdescription}" />
					<h:inputTextarea value="#{cronTriggerBackingBean.triggerDescription}" />
					<h:outputText value="#{msg.trigger_attribute_expression}" />
					<h:inputText value="#{cronTriggerBackingBean.triggerExpression}" />
					<h:outputText value="#{msg.trigger_attribute_start_date}"/>
					<t:inputCalendar id="tomahawkCalender_startDate"
												   renderAsPopup="true" 
												   renderPopupButtonAsImage="true"
												   popupDateFormat="dd.MM.yyyy"
												   popupWeekString="KW"
												   popupTodayString=""
												   title="Start Date"
												   value="#{cronTriggerBackingBean.startTime}"/>
					<h:outputText value="#{msg.trigger_attribute_end_date}"/>
					<t:inputCalendar id="tomahawkCalender_endDate"
												   renderAsPopup="true" 
												   renderPopupButtonAsImage="true"
												   popupDateFormat="dd.MM.yyyy"
												   popupWeekString="KW"
												   popupTodayString=""
												   title="Start Date"
												   value="#{cronTriggerBackingBean.endTime}"/>
					<h:outputText value="#{msg.trigger_attribute_priority}"/>
					<tr:inputNumberSpinbox value="#{cronTriggerBackingBean.priority}" />
				</h:panelGrid>	
				<h:panelGrid columns="2" style="position:absolute;left:600px;top:95px;">
					<f:facet name="header">
						<h:outputText value="#{msg.existing_triggers_form_title}" />
					</f:facet>
					<h:outputText value="#{msg.existing_triggers_attribute}" />
					<h:selectManyListbox style="width:100px;" value="#{jobDetailBackingBean.selectedExistingTriggers}" size="5">
						<f:selectItems binding="#{triggerNameAdapter.triggerNames}"/>
					</h:selectManyListbox>
				</h:panelGrid>
				<h:panelGrid columns="2" style="position:absolute;left:890px;top:95px;">
					<f:facet name="header">
						<h:outputText value="#{msg.create_job_form_title}" />
					</f:facet>
					<h:outputText value="#{msg.job_attribute_jobname}" />
					<h:inputText value="#{jobDetailBackingBean.jobName}" />
					<h:outputText value="#{msg.job_attribute_job_groupname}" />
					<h:inputText value="#{jobDetailBackingBean.jobGroupName}" />
					<h:outputText value="#{msg.job_attribute_jobdescription}" />
					<h:inputTextarea value="#{jobDetailBackingBean.jobDescription}" />
					<h:outputText value="#{msg.job_attribute_revorable}" />
					<h:selectBooleanCheckbox value="#{jobDetailBackingBean.recoverable}" />
					<h:outputText value="#{msg.job_attribute_durable}" />
					<h:selectBooleanCheckbox value="#{jobDetailBackingBean.durable}" />
					<h:outputText value="#{msg.job_attribute_volatility}" />
					<h:selectBooleanCheckbox value="#{jobDetailBackingBean.volatility}" />
				</h:panelGrid>
				<h:commandButton action="#{cronTriggerBackingBean.testAction}" style="position:absolute;left:230px;top:400px;" value="Test"/>
				<h:commandButton action="#{jobDetailBackingBean.scheduleNewJob}" style="position:absolute;left:430px;top:400px;" value="#{msg.button_schedule_new_job}" />  
			</h:form>
			<h:messages showDetail="true" title="Error Occurred"/>
		</f:view>
	</body>
</html>


-----Ursprüngliche Nachricht-----
Von: Hasnain Badami [mailto:hasnainbadami@gmail.com]
Gesendet: Di 04.12.2007 14:44
An: MyFaces Discussion
Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
 
Hi

This is ofcourse weird, but I have noticed that some components dont act
properly if they are enclosed within tags like verbatim. Is it possible for
you to post your JSP
On Dec 4, 2007 1:36 PM, Andreas Grund <an...@valtech.de> wrote:

> no, nothing.
>
> Greetings,
> Andreas
>
>
> -----Ursprüngliche Nachricht-----
> Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> Gesendet: Di 04.12.2007 14:29
>  An: MyFaces Discussion
> Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
>
> any JS error or something else ?
>
>
> On Dec 4, 2007 2:24 PM, Andreas Grund <an...@valtech.de> wrote:
> > Hi,
> >
> > I added the <h:messages /> tag directly after my </h:form> tag and got
> no output. So, as far as I can say, no error occurs. Very mysterious...
> >
> > Greetings,
> > Andreas
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> > Gesendet: Di 04.12.2007 13:39
> > An: MyFaces Discussion
> > Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
> >
> >
> > :-)
> > Yes, that is one of the odd things, that may happen during development
> w/ JSF.
> > Using Trinidad fixes that (no need for <messages/>).
> >
> > -Matthias
> >
> > On Dec 4, 2007 1:32 PM, Svilen Ivanov <sv...@sirma.bg> wrote:
> > > Do you have input fields marked as "required" or validators? Put a
> > > <h:messages /> to see if there is validation error.
> > >
> > > Regards,
> > > Svi
> > >
> > >
> > > Andreas Grund wrote:
> > > > Hi Matthias,
> > > >
> > > > yes, it is the last element within a h:form-tag.
> > > >
> > > > Greetings,
> > > > Andreas
> > > >
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> > > > Gesendet: Di 04.12.2007 13:14
> > > > An: MyFaces Discussion
> > > > Betreff: Re: Action Method not called using Myfaces 1.1.5
> > > >
> > > > Is the link/button nested w/in a form ?
> > > >
> > > > -M
> > > >
> > > > On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de>
> wrote:
> > > >> Hi Mailing-List,
> > > >>
> > > >> I have a little Problem with my command button. I declared it
> within my
> > > >> jsf-Page as following:
> > > >> <h:commandButton action="#{jobDetailBackingBean.testAction}"
> > > >> style="position:absolute;left:230px;top:400px;"
> > > >> value="#{msg.button_schedule_new_job}" />
> > > >>
> > > >> The method testAction looks so:
> > > >> public String testAction() {
> > > >>                 logger.info("testAction called");
> > > >>                 return "success";
> > > >>         }
> > > >>
> > > >> But when I press my button, nothing happens. I do not see the
> log-output
> > > >> created by the testAction-Method. To ensure, that I check the
> correct
> > > >> log-File, I implement the default constructor in the following way:
> > > >> public JobDetailBackingBean() {
> > > >>                 logger.info("Creating an instance of the
> JobDetailBackingBean");
> > > >>         }
> > > >>
> > > >> This text is logged, but the action method seems not to be called.
> Can
> > > >> anybody tell me, why?
> > > >>
> > > >> Thanks for your help and best regards,
> > > >> Andreas Grund
> > > >>
> > > >> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java
> 1.4.2
> > > >>
> > > >> --
> > > >> Andreas Grund
> > > >> externer Mitarbeiter Projet GUTS bei Conti
> > > >> mailto:andreas.grund@valtech.de
> > > >> Mobile:
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> Germany
> > > >>
> > > >> Phone:
> > > >> Fax:
> > > >>
> > > >>
> > > >>
> > > >> Geschäftsführer: Ingo Kriescher
> > > >> Amtsgericht Düsseldorf HRB48672
> > > >>
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > sessions: http://www.slideshare.net/mwessendorf
> > mail: matzew-at-apache-dot-org
> >
> >
>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
>
>


AW: AW: Action Method not called using Myfaces 1.1.5

Posted by Andreas Grund <an...@valtech.de>.
Hi,

I found the error. MyFaces within the BEA Weblogic Server seems to have problems with <%= include ... %> and <jsp:include /> Tags. After deleting these two Tags, it works fine. But why that? Where is the problem? Why can´t I use both? I meen include and JSF?

Greetings,
Andreas


-----Ursprüngliche Nachricht-----
Von: Hasnain Badami [mailto:hasnainbadami@gmail.com]
Gesendet: Di 04.12.2007 14:44
An: MyFaces Discussion
Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
 
Hi

This is ofcourse weird, but I have noticed that some components dont act
properly if they are enclosed within tags like verbatim. Is it possible for
you to post your JSP
On Dec 4, 2007 1:36 PM, Andreas Grund <an...@valtech.de> wrote:

> no, nothing.
>
> Greetings,
> Andreas
>
>
> -----Ursprüngliche Nachricht-----
> Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> Gesendet: Di 04.12.2007 14:29
>  An: MyFaces Discussion
> Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
>
> any JS error or something else ?
>
>
> On Dec 4, 2007 2:24 PM, Andreas Grund <an...@valtech.de> wrote:
> > Hi,
> >
> > I added the <h:messages /> tag directly after my </h:form> tag and got
> no output. So, as far as I can say, no error occurs. Very mysterious...
> >
> > Greetings,
> > Andreas
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> > Gesendet: Di 04.12.2007 13:39
> > An: MyFaces Discussion
> > Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
> >
> >
> > :-)
> > Yes, that is one of the odd things, that may happen during development
> w/ JSF.
> > Using Trinidad fixes that (no need for <messages/>).
> >
> > -Matthias
> >
> > On Dec 4, 2007 1:32 PM, Svilen Ivanov <sv...@sirma.bg> wrote:
> > > Do you have input fields marked as "required" or validators? Put a
> > > <h:messages /> to see if there is validation error.
> > >
> > > Regards,
> > > Svi
> > >
> > >
> > > Andreas Grund wrote:
> > > > Hi Matthias,
> > > >
> > > > yes, it is the last element within a h:form-tag.
> > > >
> > > > Greetings,
> > > > Andreas
> > > >
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> > > > Gesendet: Di 04.12.2007 13:14
> > > > An: MyFaces Discussion
> > > > Betreff: Re: Action Method not called using Myfaces 1.1.5
> > > >
> > > > Is the link/button nested w/in a form ?
> > > >
> > > > -M
> > > >
> > > > On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de>
> wrote:
> > > >> Hi Mailing-List,
> > > >>
> > > >> I have a little Problem with my command button. I declared it
> within my
> > > >> jsf-Page as following:
> > > >> <h:commandButton action="#{jobDetailBackingBean.testAction}"
> > > >> style="position:absolute;left:230px;top:400px;"
> > > >> value="#{msg.button_schedule_new_job}" />
> > > >>
> > > >> The method testAction looks so:
> > > >> public String testAction() {
> > > >>                 logger.info("testAction called");
> > > >>                 return "success";
> > > >>         }
> > > >>
> > > >> But when I press my button, nothing happens. I do not see the
> log-output
> > > >> created by the testAction-Method. To ensure, that I check the
> correct
> > > >> log-File, I implement the default constructor in the following way:
> > > >> public JobDetailBackingBean() {
> > > >>                 logger.info("Creating an instance of the
> JobDetailBackingBean");
> > > >>         }
> > > >>
> > > >> This text is logged, but the action method seems not to be called.
> Can
> > > >> anybody tell me, why?
> > > >>
> > > >> Thanks for your help and best regards,
> > > >> Andreas Grund
> > > >>
> > > >> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java
> 1.4.2
> > > >>
> > > >> --
> > > >> Andreas Grund
> > > >> externer Mitarbeiter Projet GUTS bei Conti
> > > >> mailto:andreas.grund@valtech.de
> > > >> Mobile:
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> Germany
> > > >>
> > > >> Phone:
> > > >> Fax:
> > > >>
> > > >>
> > > >>
> > > >> Geschäftsführer: Ingo Kriescher
> > > >> Amtsgericht Düsseldorf HRB48672
> > > >>
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > sessions: http://www.slideshare.net/mwessendorf
> > mail: matzew-at-apache-dot-org
> >
> >
>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
>
>


Re: AW: Action Method not called using Myfaces 1.1.5

Posted by Hasnain Badami <ha...@gmail.com>.
Hi

This is ofcourse weird, but I have noticed that some components dont act
properly if they are enclosed within tags like verbatim. Is it possible for
you to post your JSP
On Dec 4, 2007 1:36 PM, Andreas Grund <an...@valtech.de> wrote:

> no, nothing.
>
> Greetings,
> Andreas
>
>
> -----Ursprüngliche Nachricht-----
> Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> Gesendet: Di 04.12.2007 14:29
>  An: MyFaces Discussion
> Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
>
> any JS error or something else ?
>
>
> On Dec 4, 2007 2:24 PM, Andreas Grund <an...@valtech.de> wrote:
> > Hi,
> >
> > I added the <h:messages /> tag directly after my </h:form> tag and got
> no output. So, as far as I can say, no error occurs. Very mysterious...
> >
> > Greetings,
> > Andreas
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> > Gesendet: Di 04.12.2007 13:39
> > An: MyFaces Discussion
> > Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
> >
> >
> > :-)
> > Yes, that is one of the odd things, that may happen during development
> w/ JSF.
> > Using Trinidad fixes that (no need for <messages/>).
> >
> > -Matthias
> >
> > On Dec 4, 2007 1:32 PM, Svilen Ivanov <sv...@sirma.bg> wrote:
> > > Do you have input fields marked as "required" or validators? Put a
> > > <h:messages /> to see if there is validation error.
> > >
> > > Regards,
> > > Svi
> > >
> > >
> > > Andreas Grund wrote:
> > > > Hi Matthias,
> > > >
> > > > yes, it is the last element within a h:form-tag.
> > > >
> > > > Greetings,
> > > > Andreas
> > > >
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> > > > Gesendet: Di 04.12.2007 13:14
> > > > An: MyFaces Discussion
> > > > Betreff: Re: Action Method not called using Myfaces 1.1.5
> > > >
> > > > Is the link/button nested w/in a form ?
> > > >
> > > > -M
> > > >
> > > > On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de>
> wrote:
> > > >> Hi Mailing-List,
> > > >>
> > > >> I have a little Problem with my command button. I declared it
> within my
> > > >> jsf-Page as following:
> > > >> <h:commandButton action="#{jobDetailBackingBean.testAction}"
> > > >> style="position:absolute;left:230px;top:400px;"
> > > >> value="#{msg.button_schedule_new_job}" />
> > > >>
> > > >> The method testAction looks so:
> > > >> public String testAction() {
> > > >>                 logger.info("testAction called");
> > > >>                 return "success";
> > > >>         }
> > > >>
> > > >> But when I press my button, nothing happens. I do not see the
> log-output
> > > >> created by the testAction-Method. To ensure, that I check the
> correct
> > > >> log-File, I implement the default constructor in the following way:
> > > >> public JobDetailBackingBean() {
> > > >>                 logger.info("Creating an instance of the
> JobDetailBackingBean");
> > > >>         }
> > > >>
> > > >> This text is logged, but the action method seems not to be called.
> Can
> > > >> anybody tell me, why?
> > > >>
> > > >> Thanks for your help and best regards,
> > > >> Andreas Grund
> > > >>
> > > >> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java
> 1.4.2
> > > >>
> > > >> --
> > > >> Andreas Grund
> > > >> externer Mitarbeiter Projet GUTS bei Conti
> > > >> mailto:andreas.grund@valtech.de
> > > >> Mobile:
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> Germany
> > > >>
> > > >> Phone:
> > > >> Fax:
> > > >>
> > > >>
> > > >>
> > > >> Geschäftsführer: Ingo Kriescher
> > > >> Amtsgericht Düsseldorf HRB48672
> > > >>
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > sessions: http://www.slideshare.net/mwessendorf
> > mail: matzew-at-apache-dot-org
> >
> >
>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
>
>

AW: AW: Action Method not called using Myfaces 1.1.5

Posted by Andreas Grund <an...@valtech.de>.
no, nothing.

Greetings,
Andreas


-----Ursprüngliche Nachricht-----
Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
Gesendet: Di 04.12.2007 14:29
An: MyFaces Discussion
Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
 
any JS error or something else ?


On Dec 4, 2007 2:24 PM, Andreas Grund <an...@valtech.de> wrote:
> Hi,
>
> I added the <h:messages /> tag directly after my </h:form> tag and got no output. So, as far as I can say, no error occurs. Very mysterious...
>
> Greetings,
> Andreas
>
>
> -----Ursprüngliche Nachricht-----
> Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> Gesendet: Di 04.12.2007 13:39
> An: MyFaces Discussion
> Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
>
>
> :-)
> Yes, that is one of the odd things, that may happen during development w/ JSF.
> Using Trinidad fixes that (no need for <messages/>).
>
> -Matthias
>
> On Dec 4, 2007 1:32 PM, Svilen Ivanov <sv...@sirma.bg> wrote:
> > Do you have input fields marked as "required" or validators? Put a
> > <h:messages /> to see if there is validation error.
> >
> > Regards,
> > Svi
> >
> >
> > Andreas Grund wrote:
> > > Hi Matthias,
> > >
> > > yes, it is the last element within a h:form-tag.
> > >
> > > Greetings,
> > > Andreas
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> > > Gesendet: Di 04.12.2007 13:14
> > > An: MyFaces Discussion
> > > Betreff: Re: Action Method not called using Myfaces 1.1.5
> > >
> > > Is the link/button nested w/in a form ?
> > >
> > > -M
> > >
> > > On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de> wrote:
> > >> Hi Mailing-List,
> > >>
> > >> I have a little Problem with my command button. I declared it within my
> > >> jsf-Page as following:
> > >> <h:commandButton action="#{jobDetailBackingBean.testAction}"
> > >> style="position:absolute;left:230px;top:400px;"
> > >> value="#{msg.button_schedule_new_job}" />
> > >>
> > >> The method testAction looks so:
> > >> public String testAction() {
> > >>                 logger.info("testAction called");
> > >>                 return "success";
> > >>         }
> > >>
> > >> But when I press my button, nothing happens. I do not see the log-output
> > >> created by the testAction-Method. To ensure, that I check the correct
> > >> log-File, I implement the default constructor in the following way:
> > >> public JobDetailBackingBean() {
> > >>                 logger.info("Creating an instance of the JobDetailBackingBean");
> > >>         }
> > >>
> > >> This text is logged, but the action method seems not to be called. Can
> > >> anybody tell me, why?
> > >>
> > >> Thanks for your help and best regards,
> > >> Andreas Grund
> > >>
> > >> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java 1.4.2
> > >>
> > >> --
> > >> Andreas Grund
> > >> externer Mitarbeiter Projet GUTS bei Conti
> > >> mailto:andreas.grund@valtech.de
> > >> Mobile:
> > >>
> > >>
> > >>
> > >>
> > >> Germany
> > >>
> > >> Phone:
> > >> Fax:
> > >>
> > >>
> > >>
> > >> Geschäftsführer: Ingo Kriescher
> > >> Amtsgericht Düsseldorf HRB48672
> > >>
> > >
> > >
> > >
> >
> >
>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org


Re: AW: Action Method not called using Myfaces 1.1.5

Posted by Matthias Wessendorf <ma...@apache.org>.
any JS error or something else ?


On Dec 4, 2007 2:24 PM, Andreas Grund <an...@valtech.de> wrote:
> Hi,
>
> I added the <h:messages /> tag directly after my </h:form> tag and got no output. So, as far as I can say, no error occurs. Very mysterious...
>
> Greetings,
> Andreas
>
>
> -----Ursprüngliche Nachricht-----
> Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> Gesendet: Di 04.12.2007 13:39
> An: MyFaces Discussion
> Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
>
>
> :-)
> Yes, that is one of the odd things, that may happen during development w/ JSF.
> Using Trinidad fixes that (no need for <messages/>).
>
> -Matthias
>
> On Dec 4, 2007 1:32 PM, Svilen Ivanov <sv...@sirma.bg> wrote:
> > Do you have input fields marked as "required" or validators? Put a
> > <h:messages /> to see if there is validation error.
> >
> > Regards,
> > Svi
> >
> >
> > Andreas Grund wrote:
> > > Hi Matthias,
> > >
> > > yes, it is the last element within a h:form-tag.
> > >
> > > Greetings,
> > > Andreas
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> > > Gesendet: Di 04.12.2007 13:14
> > > An: MyFaces Discussion
> > > Betreff: Re: Action Method not called using Myfaces 1.1.5
> > >
> > > Is the link/button nested w/in a form ?
> > >
> > > -M
> > >
> > > On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de> wrote:
> > >> Hi Mailing-List,
> > >>
> > >> I have a little Problem with my command button. I declared it within my
> > >> jsf-Page as following:
> > >> <h:commandButton action="#{jobDetailBackingBean.testAction}"
> > >> style="position:absolute;left:230px;top:400px;"
> > >> value="#{msg.button_schedule_new_job}" />
> > >>
> > >> The method testAction looks so:
> > >> public String testAction() {
> > >>                 logger.info("testAction called");
> > >>                 return "success";
> > >>         }
> > >>
> > >> But when I press my button, nothing happens. I do not see the log-output
> > >> created by the testAction-Method. To ensure, that I check the correct
> > >> log-File, I implement the default constructor in the following way:
> > >> public JobDetailBackingBean() {
> > >>                 logger.info("Creating an instance of the JobDetailBackingBean");
> > >>         }
> > >>
> > >> This text is logged, but the action method seems not to be called. Can
> > >> anybody tell me, why?
> > >>
> > >> Thanks for your help and best regards,
> > >> Andreas Grund
> > >>
> > >> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java 1.4.2
> > >>
> > >> --
> > >> Andreas Grund
> > >> externer Mitarbeiter Projet GUTS bei Conti
> > >> mailto:andreas.grund@valtech.de
> > >> Mobile:
> > >>
> > >>
> > >>
> > >>
> > >> Germany
> > >>
> > >> Phone:
> > >> Fax:
> > >>
> > >>
> > >>
> > >> Geschäftsführer: Ingo Kriescher
> > >> Amtsgericht Düsseldorf HRB48672
> > >>
> > >
> > >
> > >
> >
> >
>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

AW: AW: Action Method not called using Myfaces 1.1.5

Posted by Andreas Grund <an...@valtech.de>.
Hi,

I added the <h:messages /> tag directly after my </h:form> tag and got no output. So, as far as I can say, no error occurs. Very mysterious...

Greetings,
Andreas


-----Ursprüngliche Nachricht-----
Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
Gesendet: Di 04.12.2007 13:39
An: MyFaces Discussion
Betreff: Re: AW: Action Method not called using Myfaces 1.1.5
 
:-)
Yes, that is one of the odd things, that may happen during development w/ JSF.
Using Trinidad fixes that (no need for <messages/>).

-Matthias

On Dec 4, 2007 1:32 PM, Svilen Ivanov <sv...@sirma.bg> wrote:
> Do you have input fields marked as "required" or validators? Put a
> <h:messages /> to see if there is validation error.
>
> Regards,
> Svi
>
>
> Andreas Grund wrote:
> > Hi Matthias,
> >
> > yes, it is the last element within a h:form-tag.
> >
> > Greetings,
> > Andreas
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> > Gesendet: Di 04.12.2007 13:14
> > An: MyFaces Discussion
> > Betreff: Re: Action Method not called using Myfaces 1.1.5
> >
> > Is the link/button nested w/in a form ?
> >
> > -M
> >
> > On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de> wrote:
> >> Hi Mailing-List,
> >>
> >> I have a little Problem with my command button. I declared it within my
> >> jsf-Page as following:
> >> <h:commandButton action="#{jobDetailBackingBean.testAction}"
> >> style="position:absolute;left:230px;top:400px;"
> >> value="#{msg.button_schedule_new_job}" />
> >>
> >> The method testAction looks so:
> >> public String testAction() {
> >>                 logger.info("testAction called");
> >>                 return "success";
> >>         }
> >>
> >> But when I press my button, nothing happens. I do not see the log-output
> >> created by the testAction-Method. To ensure, that I check the correct
> >> log-File, I implement the default constructor in the following way:
> >> public JobDetailBackingBean() {
> >>                 logger.info("Creating an instance of the JobDetailBackingBean");
> >>         }
> >>
> >> This text is logged, but the action method seems not to be called. Can
> >> anybody tell me, why?
> >>
> >> Thanks for your help and best regards,
> >> Andreas Grund
> >>
> >> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java 1.4.2
> >>
> >> --
> >> Andreas Grund
> >> externer Mitarbeiter Projet GUTS bei Conti
> >> mailto:andreas.grund@valtech.de
> >> Mobile:
> >>
> >>
> >>
> >>
> >> Germany
> >>
> >> Phone:
> >> Fax:
> >>
> >>
> >>
> >> Geschäftsführer: Ingo Kriescher
> >> Amtsgericht Düsseldorf HRB48672
> >>
> >
> >
> >
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org


Re: AW: Action Method not called using Myfaces 1.1.5

Posted by Matthias Wessendorf <ma...@apache.org>.
:-)
Yes, that is one of the odd things, that may happen during development w/ JSF.
Using Trinidad fixes that (no need for <messages/>).

-Matthias

On Dec 4, 2007 1:32 PM, Svilen Ivanov <sv...@sirma.bg> wrote:
> Do you have input fields marked as "required" or validators? Put a
> <h:messages /> to see if there is validation error.
>
> Regards,
> Svi
>
>
> Andreas Grund wrote:
> > Hi Matthias,
> >
> > yes, it is the last element within a h:form-tag.
> >
> > Greetings,
> > Andreas
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> > Gesendet: Di 04.12.2007 13:14
> > An: MyFaces Discussion
> > Betreff: Re: Action Method not called using Myfaces 1.1.5
> >
> > Is the link/button nested w/in a form ?
> >
> > -M
> >
> > On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de> wrote:
> >> Hi Mailing-List,
> >>
> >> I have a little Problem with my command button. I declared it within my
> >> jsf-Page as following:
> >> <h:commandButton action="#{jobDetailBackingBean.testAction}"
> >> style="position:absolute;left:230px;top:400px;"
> >> value="#{msg.button_schedule_new_job}" />
> >>
> >> The method testAction looks so:
> >> public String testAction() {
> >>                 logger.info("testAction called");
> >>                 return "success";
> >>         }
> >>
> >> But when I press my button, nothing happens. I do not see the log-output
> >> created by the testAction-Method. To ensure, that I check the correct
> >> log-File, I implement the default constructor in the following way:
> >> public JobDetailBackingBean() {
> >>                 logger.info("Creating an instance of the JobDetailBackingBean");
> >>         }
> >>
> >> This text is logged, but the action method seems not to be called. Can
> >> anybody tell me, why?
> >>
> >> Thanks for your help and best regards,
> >> Andreas Grund
> >>
> >> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java 1.4.2
> >>
> >> --
> >> Andreas Grund
> >> externer Mitarbeiter Projet GUTS bei Conti
> >> mailto:andreas.grund@valtech.de
> >> Mobile:
> >>
> >>
> >>
> >>
> >> Germany
> >>
> >> Phone:
> >> Fax:
> >>
> >>
> >>
> >> Geschäftsführer: Ingo Kriescher
> >> Amtsgericht Düsseldorf HRB48672
> >>
> >
> >
> >
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Re: AW: Action Method not called using Myfaces 1.1.5

Posted by Svilen Ivanov <sv...@sirma.bg>.
Do you have input fields marked as "required" or validators? Put a 
<h:messages /> to see if there is validation error.

Regards,
Svi

Andreas Grund wrote:
> Hi Matthias,
> 
> yes, it is the last element within a h:form-tag.
> 
> Greetings,
> Andreas
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
> Gesendet: Di 04.12.2007 13:14
> An: MyFaces Discussion
> Betreff: Re: Action Method not called using Myfaces 1.1.5
>  
> Is the link/button nested w/in a form ?
> 
> -M
> 
> On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de> wrote:
>> Hi Mailing-List,
>>
>> I have a little Problem with my command button. I declared it within my
>> jsf-Page as following:
>> <h:commandButton action="#{jobDetailBackingBean.testAction}"
>> style="position:absolute;left:230px;top:400px;"
>> value="#{msg.button_schedule_new_job}" />
>>
>> The method testAction looks so:
>> public String testAction() {
>>                 logger.info("testAction called");
>>                 return "success";
>>         }
>>
>> But when I press my button, nothing happens. I do not see the log-output
>> created by the testAction-Method. To ensure, that I check the correct
>> log-File, I implement the default constructor in the following way:
>> public JobDetailBackingBean() {
>>                 logger.info("Creating an instance of the JobDetailBackingBean");
>>         }
>>
>> This text is logged, but the action method seems not to be called. Can
>> anybody tell me, why?
>>
>> Thanks for your help and best regards,
>> Andreas Grund
>>
>> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java 1.4.2
>>
>> --
>> Andreas Grund
>> externer Mitarbeiter Projet GUTS bei Conti
>> mailto:andreas.grund@valtech.de
>> Mobile:
>>
>>
>>
>>
>> Germany
>>
>> Phone:
>> Fax:
>>
>>
>>
>> Geschäftsführer: Ingo Kriescher
>> Amtsgericht Düsseldorf HRB48672
>>
> 
> 
> 


AW: Action Method not called using Myfaces 1.1.5

Posted by Andreas Grund <an...@valtech.de>.
Hi Matthias,

yes, it is the last element within a h:form-tag.

Greetings,
Andreas


-----Ursprüngliche Nachricht-----
Von: mwessendorf@gmail.com im Auftrag von Matthias Wessendorf
Gesendet: Di 04.12.2007 13:14
An: MyFaces Discussion
Betreff: Re: Action Method not called using Myfaces 1.1.5
 
Is the link/button nested w/in a form ?

-M

On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de> wrote:
> Hi Mailing-List,
>
> I have a little Problem with my command button. I declared it within my
> jsf-Page as following:
> <h:commandButton action="#{jobDetailBackingBean.testAction}"
> style="position:absolute;left:230px;top:400px;"
> value="#{msg.button_schedule_new_job}" />
>
> The method testAction looks so:
> public String testAction() {
>                 logger.info("testAction called");
>                 return "success";
>         }
>
> But when I press my button, nothing happens. I do not see the log-output
> created by the testAction-Method. To ensure, that I check the correct
> log-File, I implement the default constructor in the following way:
> public JobDetailBackingBean() {
>                 logger.info("Creating an instance of the JobDetailBackingBean");
>         }
>
> This text is logged, but the action method seems not to be called. Can
> anybody tell me, why?
>
> Thanks for your help and best regards,
> Andreas Grund
>
> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java 1.4.2
>
> --
> Andreas Grund
> externer Mitarbeiter Projet GUTS bei Conti
> mailto:andreas.grund@valtech.de
> Mobile:
>
>
>
>
> Germany
>
> Phone:
> Fax:
>
>
>
> Geschäftsführer: Ingo Kriescher
> Amtsgericht Düsseldorf HRB48672
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org


Re: Action Method not called using Myfaces 1.1.5

Posted by Matthias Wessendorf <ma...@apache.org>.
Is the link/button nested w/in a form ?

-M

On Dec 4, 2007 1:06 PM, Andreas Grund <an...@valtech.de> wrote:
> Hi Mailing-List,
>
> I have a little Problem with my command button. I declared it within my
> jsf-Page as following:
> <h:commandButton action="#{jobDetailBackingBean.testAction}"
> style="position:absolute;left:230px;top:400px;"
> value="#{msg.button_schedule_new_job}" />
>
> The method testAction looks so:
> public String testAction() {
>                 logger.info("testAction called");
>                 return "success";
>         }
>
> But when I press my button, nothing happens. I do not see the log-output
> created by the testAction-Method. To ensure, that I check the correct
> log-File, I implement the default constructor in the following way:
> public JobDetailBackingBean() {
>                 logger.info("Creating an instance of the JobDetailBackingBean");
>         }
>
> This text is logged, but the action method seems not to be called. Can
> anybody tell me, why?
>
> Thanks for your help and best regards,
> Andreas Grund
>
> PS: I use MyFaces 1.1.5 (as told above) on a Weblogic 8.1 with java 1.4.2
>
> --
> Andreas Grund
> externer Mitarbeiter Projet GUTS bei Conti
> mailto:andreas.grund@valtech.de
> Mobile:
>
>
>
>
> Germany
>
> Phone:
> Fax:
>
>
>
> Geschäftsführer: Ingo Kriescher
> Amtsgericht Düsseldorf HRB48672
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org