myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nuno Sousa" <wizard.ni...@gmail.com>
Subject Re: Accessing to back bean updated values
Date Sat, 07 Jun 2008 00:29:24 GMT
I'm using icefaces that i think it is imcompatible with richfaces right?


On Fri, Jun 6, 2008 at 9:33 PM, Christopher Cudennec <SmutjeJim@gmx.net> wrote:
> Ajax seems to be your solution. Try to integrate Richfaces. It's pretty easy
> to use and gives you what you need.
>
> - C
>
> Nuno Sousa schrieb:
>>
>> Something like an invisible button over each dataTable inputText could
>> be a solution?
>> On click, get the new value and focus the inputText, something like that
>> hehe.
>> Thanks
>>
>>
>> On Thu, Jun 5, 2008 at 8:03 PM, Nuno Sousa <wizard.night@gmail.com> wrote:
>>
>>>
>>> Hi,
>>>
>>> For now, I'm just trying to alert a bean value in an onClick event
>>> associated with an inputText.
>>>
>>> [b]On my backbean i have defined my HtmlInputText with the event:[/b]
>>> [code]inputText.setOnclick("jsFunction();");[/code]
>>>
>>>
>>> [b]On my xhtml page i have defined my javascript function accessing
>>> backbean:[/b]
>>>
>>>
>>>  <script language="JavaScript" type="text/javascript">
>>>  //<![CDATA[
>>>
>>>  function jsFunction() {
>>>   alert('#{myBackBean.dataTable.value.get(3).get(0).myRealValue}');
>>>  }
>>>
>>>  //]]>
>>>
>>>  </script>
>>>
>>> If i click on the inputText it alerts me the correct bean value, but
>>> if i change my bean value and click again, it shows me the same value.
>>> Only when i refresh the page, my alert gets a new value. How can i
>>> force my alert to ask allways the bean value without page refreshing?
>>>
>>> Thanks
>>>
>>> --
>>> Ping is just a number timming is everything
>>>
>>>
>>
>>
>>
>>  ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG. Version: 8.0.100 / Virus Database: 270.0.0/1485 - Release
>> Date: 05.06.2008 10:07
>>
>
>



-- 
Ping is just a number timming is everything

Mime
View raw message