Hi Simon,

Actually i'm using an a4j ajax functionallity. I've a table and an onchange
event on a textarea fire this onchange method:

public String change() {
        HashSet<Integer> keys = new HashSet<Integer>();
        int rowKey = getRepeater().getRowIndex();
        keys.add(rowKey);
        setKeys(keys);
        inputCountry.processValidators(FacesContext.getCurrentInstance());
        inputCountry.processUpdates(FacesContext.getCurrentInstance());

       //TO-DO catch the becking object
}


So I end up in the situation where i've a "reference" (inputCountry) to the
modified inputTextArea and the

inputCountry.processUpdates(FacesContext.getCurrentInstance())

is able to update the property of the object in the array list. What I would
like is to get only the updated object to do some business logic work
without have to take the whole list


Thanks

2009/1/15 Simon Lessard <[email protected]>

> Hi,
>
> May I inquire what your use case is? There's a way to do it, but it's very,
> very funky:
>
> 1. ValueExpression valueExpr = component.getValueExpression("value");
> 2. String expressionString = valueExpr.getExpressionString();
> 3. Parse the string the remove the last element of the EL
> 4. Recreate a ValueExpression object with the modified String
> 5. Evaluate the ValueExpression
>
> As you see, it's complex and providing us with your real use case would
> allow me to give you a better alternative.
>
>
> Regards,
>
> ~ Simon
>
>
> On Thu, Jan 15, 2009 at 10:23 AM, Pierandrea Cercato 
> <[email protected]>wrote:
>
>> I have an HtmlInputTextArea. It has as value a property of an object of an
>> arrayList.
>>
>> <h:inputTextarea  cols="30" binding="#{translationsBean.inputCountry}"
>> immediate="false" value="#{translation.localTranslation}">
>>
>> Is it possible *through binding* of the component...
>>
>> public HtmlInputTextarea getInputCountry() {
>>         return inputCountry;
>>     }
>>
>>     public void setInputCountry(HtmlInputTextarea inputCountry) {
>>         this.inputCountry = inputCountry;
>>     }
>>
>> to retrieve at runtime the corresponding backed object. Something like:
>>
>> inputCountry.getBackingBeanObject
>>
>>
>>
>>
>> Thanks
>>
>
>

Reply via email to