myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: selectOneListbox onclick - navigation
Date Mon, 17 Mar 2008 07:55:20 GMT
It’s not my idea – i must do it with onClick – is it possible? Someone know


This JS is not from me – I found it there:


Von: [] 
Gesendet: Montag, 17. März 2008 08:45
Betreff: RE: selectOneListbox onclick - navigation


why do you want to use onclick for submiting? you can use any of the
listeners in jsf.

btw, returning false in script method will not submit the form.



From: [] 
Sent: Monday, March 17, 2008 1:11 PM
To: 'MyFaces Discussion'
Subject: AW: selectOneListbox onclick - navigation

Noone tried this before? 


Von: [] 
Gesendet: Freitag, 14. März 2008 13:13
Betreff: h:selectOneListbox onclick - navigation



I tried to use the onClick Event from selectOneListBox for navigation, but
the action method get not called:


<%@ taglib uri="" prefix="h"%>

<%@ taglib uri="" prefix="f"%>

<%@ taglib uri="" prefix="t"%>

<script type="text/javascript">

                  function executeCommandLink(idLink,formName){






            return false;



<f:subview id="subViewSelect" rendered="#{mainContrl.renderSelect}">

      <h:form id="fSelect" enctype="UTF-8">

            <h:panelGroup id="selectPG2">

                  <h:selectOneListbox id="selectTransportListTitle"



                        <f:converter converterId="transportConverter" />

                        <f:selectItems value="#{selectContrl.transportList}"



            <h:commandLink id="cmdLink1" action="#{selectContrl.showDetail}"















private static final String SHOW_DETAIL = "success";

      public String showDetail() {

            return SelectController.SHOW_DETAIL;


The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

View raw message