Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CommandButton linked to same page causes infinite loop

843842Aug 15 2005 — edited Aug 17 2005
I'm working on an jsf application with a quite complex interface. I used to deploy it with the MyFaces implementation of jsf. Because of some irratic behavior I want to test Sun's reference implementation. Everything works just fine except when my commandButtons are linked back to the same jsp, configured as a navigation-rule in my faces-config.xml. When I click the button the configured handler-method gets called infinitely(the method works fine, no exception thrown). Any ideas why this is happening?

/Dan

From "bolagsstammoAktiebok.jspx"
<h:commandButton action="#{bolagsstammoAktiebokHandler.berakna}" styleClass="styleinput" immediate="true"
                                                 value="Ber&#228;kna"/>
From faces-config.xml
<navigation-case>           <from-action>#{bolagsstammoAktiebokHandler.berakna}</from-action>
            <from-outcome>success</from-outcome>
            <to-view-id>bolagsstammoAktiebok.jspx</to-view-id>
        </navigation-case>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2005
Added on Aug 15 2005
2 comments
83 views