On 04/02/2013 18:39, Colm O hEigeartaigh wrote:
Hi all,
Perhaps this is extremely obvious...
I'm running into a problem with a fix for SYNCOPE-215. Essentially there is
a drop down list of Virtual attribute names, and I want to make the
corresponding text field "read-only" if the Virtual attribute that is
selected is "read-only".
The DropDownChoice object in VirtualAttributesPanel already has an "onblur"
component that allows me to see what was selected. The problem is that the
"Panel" object corresponding to the text field, is passed through to a
MultiValueSelectorPanel object, which clones it:
final FieldPanel fieldPanel = panelTemplate.clone();
So even if I call "setReadOnly" on the panel in VirtualAttributesPanel, the
text field does not turn read-only. Is there an obvious way to solve this
problem?
Colm,
I can understand you completely when you have such troubles.
Maybe Fabio or Marco can help you, only they shouldn't be available
neither today nor tomorrow.
Regards.
--
Francesco Chicchiriccò
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/