Hi,

i have following facelet:

<span
  xmlns:ict="http://ict.gft.com/facelets";
  xmlns:tr="http://myfaces.apache.org/trinidad";>
  <tr:outputText
    id="#{ict:id(entity, attribute)}"
    rendered="#{readOnly}"
    value="#{entity[attribute]}"/>
  <tr:inputText
    id="#{ict:id(entity, attribute)}"
    label="#{ict:attributeTranslation(entity, attribute)}"
    rendered="#{!readOnly}"
    value="#{entity[attribute]}"/>
</span>

i use it like this:

<ict:inputText
  attribute="firstname"
  entity="#{backingBean.person}"
  readOnly="#{backingBean.readOnly}"/>

unfortunately the entity passed to the facelet sometimes is null.

When the inputText checks if the the value is isReadOnly, the entity is
null. Nevertheless the inputText renders the value of entity[attribute],
but  always readOnly.

An analog facelet with an tr:selectOneChoice works without problems.

Is this a misunderstanding on my side or is it a bug ?

thanks,

David



-- 
David Uebelacker
mailto:[EMAIL PROTECTED]
http://david.uebelacker.eu/

Reply via email to