myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <bierbra...@gmail.com>
Subject Re: make javascript to display just an variable as an alert
Date Thu, 21 Sep 2006 22:12:21 GMT
If it still doesn`t work, place the generated markup here.

regards,

Gerald

On 9/22/06, Gerald Müllan <bierbrauen@gmail.com> wrote:
> 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 <bsmdev@gmail.com> 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
>


-- 
http://www.irian.at

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

Professional Support for Apache MyFaces

Mime
View raw message