Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

JSF 1.1: Can't get my form to post when using valueChangeListener

Thread view: 
Mayor Curley - 28 Aug 2006 20:42 GMT
Hi, All:

I am using Java Server Faces 1.1 with Java 5 and JDeveloper 10.1.3.  I
had a JSF page that posted its submit correctly *until* I added a
valueChangeListener for a select box.  Now my form does not submit.
Has anyone had a similar problem?  I have looked everywhere and can't
seem to find where the translate problem from JSF to HTML is.

Here is a code snippet:

<h:form id="magInfo">
...
<h:selectOneMenu id="magTitleSelect"

value="#{batchOrderManager.currentBatchOrder.currentOrder.currentLineItem.magazineTitle}"

                                    immediate="true"

valueChangeListener="#{batchOrderManager.magTitleChanged}">
                                    onchange="this.form.submit()">
 <f:selectItems value="#{agentInfo.magazines}"/>
</h:selectOneMenu>
....
<h:commandButton value="Save Order"
action="#{batchOrderManager.submitLineItem}"/>
</h:form>

Before I added the immediate, valueChangeListenter and onchange
attributes to h:selectOneMenu the commandButton called the action
handler method fine.  After adding the code, the value change listener
works but the command button won't.

Any help would be appreciated.  I am currently digging and looking all
over the web.

Thanks,
John
Andrew Thompson - 28 Aug 2006 23:37 GMT
...
> I am using Java Server Faces 1.1 with Java 5 and JDeveloper 10.1.3.

Actually, this problem boils down to HTML and JavaScript.

> Any help would be appreciated.  I am currently digging and looking all
> over the web.

It is probably the JavaScript.  Try comp.lang.javascript

Andrew T.
hiwa - 29 Aug 2006 02:10 GMT
Mayor Curley のメッセージ:

> Hi, All:
>
[quoted text clipped - 33 lines]
> Thanks,
> John

> onchange="this.form.submit()"
This bypasses the submit button.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.