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=FilterInvocation
> >: 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