Retrive through uicomponent binding backing bean object

2009-01-15 Thread Pierandrea Cercato
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

Re: Retrive through uicomponent binding backing bean object

2009-01-15 Thread Simon Lessard
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

Re: Retrive through uicomponent binding backing bean object

2009-01-15 Thread Pierandrea Cercato
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() { HashSetInteger keys = new HashSetInteger(); int rowKey = getRepeater().getRowIndex(); keys.add(rowKey);

Re: Retrive through uicomponent binding backing bean object

2009-01-15 Thread Simon Lessard
Hi, Wouldn't that logic fit better in the set method of the object itself? Regards, ~ Simon On Thu, Jan 15, 2009 at 10:45 AM, Pierandrea Cercato cerca...@gmail.comwrote: Hi Simon, Actually i'm using an a4j ajax functionallity. I've a table and an onchange event on a textarea fire this

Re: Retrive through uicomponent binding backing bean object

2009-01-15 Thread Pierandrea Cercato

Re: Retrive through uicomponent binding backing bean object

2009-01-15 Thread Pierandrea Cercato

Re: Retrive through uicomponent binding backing bean object

2009-01-15 Thread Pierandrea Cercato
I'm limited by the a4j component

Re: Retrive through uicomponent binding backing bean object

2009-01-15 Thread Pierandrea Cercato
I've found a solution: Translation translationChanged = (Translation) context.getApplication().evaluateExpressionGet(context, #{translation}, Translation.*class*); I could have used a more generalized approach like you were suggesting: ValueExpression expression =