Johannes,

can you wrap up a small sample application (try to reduce it as much
as possible!) and send it to my e-mail address?

I will try to help you if I can, don't expect it to be today, though.

regards,

Martin

On 6/20/05, Johannes Hiemer <[EMAIL PROTECTED]> wrote:
> Hi,
> It is me again, over the weekend, I tried several things again, for example
> I used the reference implementation provided with myfaces. But even this
> doesn't work although I used exactly the same settings as provided in the
> example.
> Why doesn't my DemoActionListener get called?
> 
> public class DemoActionListener implements ActionListener {
> 
>         /**
>          *
>          */
>         public DemoActionListener() {
>                 super();
>                 // TODO Auto-generated constructor stub
>         }
> 
>         /* (non-Javadoc)
>          * @see
> javax.faces.event.ActionListener#processAction(javax.faces.event.ActionEvent
> )
>          */
>         public void processAction(ActionEvent ae) throws
> AbortProcessingException {
>                 System.out.println(ae.getSource().toString());
> 
>         }
> 
> }
> Anything wrong with the source?
> Any ideas why it is still not working, I am using the XPanelnavigation-menu
> does block anything?
> 
> Thanks a lot for your help.
> 
> Regards Johannes
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:users-
> > [EMAIL PROTECTED] On Behalf Of Johannes
> > Hiemer
> > Sent: Freitag, 17. Juni 2005 11:46
> > To: 'MyFaces Discussion'
> > Subject: RE: Myfaces and tiles for submit
> >
> > Hi,
> > It is me again. I noticed something what could be also one reason why my
> > forms are not working when I press the form submit of sparepart.jsp
> > without
> > tiles around it I get the following output:
> > Calling: public java.lang.Object
> > de.mindmatters.faces.spring.SpringBeanScope.getObject()
> > Calling: public void
> > itecon.web.util.ApplicationContextBean.onApplicationEvent(org.springframew
> > or
> > k.context.ApplicationEvent)
> > [EMAIL PROTECTED] handled
> > request in 230 ms
> >
> > With Tiles around I get this output:
> >
> > 2005-06-17 11:42:02,476 [http-8080-Processor25] WARN - Unable to find
> > component 'sysType' (calling findComponent on component
> > 'content:sparepartForm:_id16')
> > Calling: public java.lang.Object
> > de.mindmatters.faces.spring.SpringBeanScope.getObject()
> > 2005-06-17 11:42:02,506 [http-8080-Processor25] WARN - Unable to find
> > component 'name' (calling findComponent on component
> > 'content:sparepartForm:_id20')
> > 2005-06-17 11:42:02,516 [http-8080-Processor25] WARN - Unable to find
> > component 'inventory' (calling findComponent on component
> > 'content:sparepartForm:_id24')
> > Calling: public void
> > itecon.web.util.ApplicationContextBean.onApplicationEvent(org.springframew
> > or
> > k.context.ApplicationEvent)
> > [EMAIL PROTECTED] handled
> > request in 320 ms
> >
> > The interesting is, that, he can't find some components like sysType. But
> > the labels and inputText are syntactically right.
> >
> > <h:outputLabel value="#{bundle.sparepartNumber}" for="sysType" />
> > <f:verbatim></td>
> > <td style="width: 182px; height: 32px"></f:verbatim>
> > <h:inputText id="number" value="#{sparepartSpringBean.sparepart.spnumber}"
> > valueChangeListener="#{sparepartSpringBean.valueChanged}" required="true">
> > <f:validateLength minimum="1" maximum="2" />
> > </h:inputText><x:message for="number" showDetail="true"
> > showSummary="false" styleClass="error" />
> >
> > Does this help perhaps?
> >
> > Regards Johannes
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:users-
> > > [EMAIL PROTECTED] On Behalf Of Johannes
> > > Hiemer
> > > Sent: Freitag, 17. Juni 2005 10:18
> > > To: 'MyFaces Discussion'; [EMAIL PROTECTED]
> > > Subject: RE: Myfaces and tiles for submit
> > >
> > > Hi Martin, Hi Pierpaolo,
> > > first to Martin, yeah thought of a problem like this, but I made a test
> > to
> > > it. I put a test.jsp file in my directory inserted the form code of
> > > sparepart.jsp and ran a submit without tiles. Reaction as expected the
> > > form
> > > submission was fired and a validation error was thrown. Putting the same
> > > code into the sparepart.jsp surrounded with tiles I get just the already
> > > described "blanked" form behaviour.
> > > Pierpaolo, yes I tried this two already but because of the fact, that it
> > > should no fire any specific action I thought that should not affect the
> > > navigation-rule with from-outcome anyway, or?
> > >
> > > Thanks a lot for your help guys.
> > >
> > > Regards Johannes
> > >
> > > >-----Original Message-----
> > > >From: [EMAIL PROTECTED]
> > > [mailto:users->[EMAIL PROTECTED] On Behalf
> > Of
> > > Martin >Marinschek
> > > >Sent: Freitag, 17. Juni 2005 09:45
> > > >To: MyFaces Discussion
> > > >Subject: Re: Myfaces and tiles for submit
> > > >
> > > >I didn't quite read through all of this e-mail discussion, but just
> > > >trying to shoot into the blue:
> > > >
> > > >do you have a form tag stacked in another form tag? With that, browser
> > > >play havoc with regard to submitting forms....
> > > >
> > > >regards,
> > > >
> > > >Martin
> > > >
> > > >On 6/17/05, Pierpaolo Follia <[EMAIL PROTECTED]> wrote:
> > > > Perhaps you are missing the action: the implementation below is an
> > > > action listener. You have to write a method like this:
> > > >
> > > > public String printName() {
> > > >     //Do something here...
> > > >     return "showSparepart";
> > > > }
> > > >
> > > > and try changing your navigation rule with this one:
> > > >
> > > > <navigation-rule>
> > > >         <from-view-id>*</from-view-id>
> > > >         <navigation-case>
> > > >                 <from-outcome>showSparepart</from-outcome>
> > > >                 <to-view-id>/sparepart.jspx</to-view-id>
> > > >         </navigation-case>
> > > > </navigation-rule>
> > > >
> > > >
> > > > bye
> > > >
> > > > Johannes Hiemer wrote:
> > > >
> > > > >Hi PierpaolO (sorry for that, I recognized just a few seconds after
> > > submit),
> > > > >my sparepartSpringBeanaction.printName just does nothing else than
> > > printing
> > > > >out the event it just has handled:
> > > > >
> > > > >
> > > > >public void printName(ActionEvent event) {
> > > > >               FacesContext context =
> > > FacesContext.getCurrentInstance();
> > > > >           String message = sparepart.getSpid() + " is processing
> > > action
> > > > >event of Form submit: " + event.toString();
> > > > >           FacesContext.getCurrentInstance().addMessage(null, new
> > > > >FacesMessage(FacesMessage.SEVERITY_ERROR, message, message));
> > > > >       }
> > > > >
> > > > >My navigation case for sparepart:
> > > > >
> > > > >       <navigation-rule>
> > > > >               <navigation-case>
> > > > >                       <from-outcome>showSparepart</from-outcome>
> > > > >                       <to-view-id>/sparepart.jspx</to-view-id>
> > > > >               </navigation-case>
> > > > >       </navigation-rule>
> > > > >
> > > > >Log ouput:
> > > > >
> > > > >2005-06-17 08:23:00,574 [http-8080-Processor24] DEBUG - Publishing
> > > event
> > > in
> > > > >context [Root WebApplicationContext]:
> > > >
> > >
> > >net.sf.acegisecurity.intercept.event.AuthorizedEvent[source=FilterInvocat
> > > io
> > > n
> > > > >: URL: /sparepart.jspx]
> > > > >2005-06-17 08:23:00,574 [http-8080-Processor24] DEBUG - RunAsManager
> > > did
> > > not
> > > > >change Authentication object
> > > > >2005-06-17 08:23:00,574 [http-8080-Processor24] DEBUG -
> > /sparepart.jspx
> > > > >reached end of additional filter chain; proceeding with original
> > chain
> > > > >2005-06-17 08:23:00,574 [http-8080-Processor24] DEBUG - Incoming
> > > request
> > > has
> > > > >Content-Type header without character encoding:
> > > > >application/x-www-form-urlencoded
> > > > >2005-06-17 08:23:00,574 [http-8080-Processor24] DEBUG - entering
> > > restoreView
> > > > >in org.apache.myfaces.lifecycle.LifecycleImpl
> > > > >2005-06-17 08:23:00,584 [http-8080-Processor24] DEBUG - Tree
> > structure
> > > > >restored from server session
> > > > >2005-06-17 08:23:00,615 [http-8080-Processor24] DEBUG - Restored view
> > > > >
> > > > >What else could be interesting is:
> > > > >
> > > > >Request Params:
> > > > >2005-06-17 08:23:00,635 [http-8080-Processor24] DEBUG -
> > > > >autoScroll = 0,0
> > > > >2005-06-17 08:23:00,635 [http-8080-Processor24] DEBUG -
> > > > >content:sparepartForm:_link_hidden_ =
> > > > >2005-06-17 08:23:00,635 [http-8080-Processor24] DEBUG -
> > > > >content:sparepartForm:number =
> > > > >2005-06-17 08:23:00,635 [http-8080-Processor24] DEBUG -
> > > > >content:sparepartForm:name =
> > > > >2005-06-17 08:23:00,635 [http-8080-Processor24] DEBUG -
> > > > >content:sparepartForm:inventory =
> > > > >2005-06-17 08:23:00,635 [http-8080-Processor24] DEBUG -
> > > > >content:sparepartForm:sparepartButton = Hinzufügen
> > > > >2005-06-17 08:23:00,635 [http-8080-Processor24] DEBUG -
> > > > >content:sparepartForm_SUBMIT = 1
> > > > >
> > > > >
> > > > >That's all I can provide. Do you have a working example, perhaps you
> > > can
> > > > >just send that over to me, and I try to implement regarding your
> > > > >implementation "rules".
> > > > >
> > > > >Anyway thanks a lot for your help Pierpaolo.
> > > > >
> > > > >Regards Johannes.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >>-----Ursprüngliche Nachricht-----
> > > > >>Von: [EMAIL PROTECTED]
> > > > >>[mailto:users- [EMAIL PROTECTED] Im
> > > > >>Auftrag von Pierpaolo Follia
> > > > >>Gesendet: Donnerstag, 16. Juni 2005 16:51
> > > > >>An: MyFaces Discussion
> > > > >>Betreff: Re: Myfaces and tiles for submit
> > > > >>
> > > > >> From here is quite difficult to solve your problem. I'll try.
> > > > >>What are you actually doing in the method
> > > > >>sparepartSpringBeanaction.printName?
> > > > >>Have you defined the right navigation case in the faces-config file?
> > > > >>While debugging the application are all events fired? Are the action
> > > > >>and the actionlistener invoked?
> > > > >>
> > > > >>by
> > > > >>
> > > > >>Pierpaolo (with a final O :-) )
> > > > >>
> > > > >>Johannes Hiemer wrote:
> > > > >>
> > > > >>
> > > > >>
> > > > >>>Hi Pierpaola,
> > > > >>>I tried your tip, but I got the same result as before, it seems to
> > be
> > > > >>>
> > > > >>>
> > > > >>that I get a post-event, but instead of firing the validation error
> > > > >>task, it just blanks out the input fields. In firefox, if I use a
> > > > >>javascript- debugging-console, I get an error:
> > > > >>
> > > > >>
> > > > >>>Fehler: f has no properties
> > > > >>>Quelldatei:
> > > > >>>
> > > > >>>
> > > > >>http://localhost:8080/ITecon%20Dell%20Call%20System/sparepart.jspx
> > > > >>
> > > > >>
> > > > >>>Zeile: 556
> > > > >>>Going to this line there is actually no method to see. Do I have
> > > > >>>special
> > > > >>>
> > > > >>>
> > > > >>navigation-settings in my faces-config or anything in this
> > direction?
> > > > >>Are there any special lines that need to be added to my web.xml
> > file?
> > > > >>
> > > > >>
> > > > >>>Thanks lot for your help.
> > > > >>>
> > > > >>>Regards Johannes Hiemer
> > > > >>>
> > > > >>>P.S. Sorry about my last post. I am just a bit frustrated, had a
> > > > >>>short
> > > > >>>
> > > > >>>
> > > > >>night and a lot work todo. I hope you can forgive. Sorry again.
> > > > >>
> > > > >>
> > > > >>>
> > > > >>>
> > > > >>>>"MyFaces Discussion" <[email protected]> schrieb am
> > 16.06.05
> > > > >>>>
> > > > >>>>
> > > > >>13:29:24:
> > > > >>
> > > > >>
> > > > >>>>Hi Johannes,
> > > > >>>>I saw your post about tiles: I think your problem is that in your
> > > > >>>>tile page (sparepart.jsp) you have another <f:view> tag. You
> > should
> > > > >>>>have only a f:view in your template page. Use a subview instead.
> > > > >>>>
> > > > >>>>Bye
> > > > >>>>
> > > > >>>>Johannes Hiemer wrote:
> > > > >>>>
> > > > >>>>Hi,
> > > > >>>>I posted a similiar question a bit earlyer but no one responded to
> > > it.
> > > > >>>>
> > > > >>>>
> > > > >>In the archive I saw posts with the same scenarios, but no one
> > replied
> > > > >>to it. What I would tend to say, is that the myfaces-tiles
> > > > >>implementation is useless because you can't use forms with it. Did
> > > > >>anyone here get the myfaces-tiles combination working? If someone
> > > > >>gained experience with it, please share it with us.
> > > > >>
> > > > >>
> > > > >>>>Thanks a lot.
> > > > >>>>Johannes Hiemer
> > > > >>>>______________________________________________________________
> > > > >>>>Verschicken Sie romantische, coole und witzige Bilder per SMS!
> > > > >>>>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>--
> > > > >>Pierpaolo Follia
> > > > >>Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS)
> > > > >>Telefono: +39 030 687561
> > > > >>Fax: +39 030 6875690
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > Pierpaolo Follia
> > > > Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS)
> > > > Telefono: +39 030 687561
> > > > Fax: +39 030 6875690
> > > >
> > > >
> 
>

Reply via email to