Hi,

your statement should work perfectly, to be sure i have tested it out
with venkman :)

Only when inserting the ['search_text] clause there is the last '
missing, but don`t know if its only a typo when copying it here.

Otherwise, test out if the generated markup is correct (id etc.).

cheers,

Gerald

On 9/21/06, bs <[EMAIL PROTECTED]> wrote:
Hi,

<h:form id="input-form">
...
<t:inputText forceId = "true" id = "search_txt" value = "#{bean.method1}"
forceId="true"/>

<t:selectOneMenu id="query_menu" value = "#{ bean.metnod2}" onclick
="alert('hi how are you')">
....
</h:form>

<t:selectOneMenu id="query_menu" value = "#{bean.metnod2}" onclick
="alert(document.forms['input-form'].elements['search_text].value)">

in the onclick method i display an alert, it works fine if i choose a
string("hi how are you") but if i try to dynamically display a value from
the text it gives me a errot telling that " properties not found".

this error is bugging me for quiet some time, am i writing the syntax for
javascript correct?

Thank you for reading my message






--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to