• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

t:inputtext problem

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use t:inputtext and work correctly at all page but one of them

<t:inputText styleClass="textbox" value="#{aaa.entity.ip}" />

Problem: value load only textbox is readonly or disabled

Can you help me?
[ September 06, 2008: Message edited by: Alireza Abedini ]
Ranch Hand
Posts: 2458
Alireza Abedini
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I posted this question the other day in forums.sun.com [ ,]http://forums.sun.com/thread.jspa?messageID=10414007], but wasn't able to get a good answer, so now I'm asking here... !

I have a page, contain a div that shown for edit a row of table.

<t:div id="divAddAAA" forceId="true" style='display: none'>
<a4j:outputPanel ajaxRendered="true" id="addoreditAAA" >
<h:inputHidden value="#{aaa.entity.id}" converter="javax.faces.Long"/>
<my:table styleClass="dialogTable" border="0" id="tblAddAAA" width="100%">
<my:td colspan="4" styleClass="dialogTableHeader label"><h:outputText value="#{aaa.strMode}" /></my:td>
<my:td styleClass="text" align="left"><h:outputText value="#{bundle['aaa.ip']}:" /></my:td>
<my:td>*<t:inputText styleClass="textbox" value="#{aaa.entity.ip}" />*</my:td>
<my:td styleClass="text" align="left"><h:outputText value="#{bundle['aaa.mask']}:" /></my:td>
<my:td>*<t:inputText styleClass="textbox" value="#{aaa.entity.mask}" />*</my:td>
<my:td styleClass="text" align="left"><h:outputText value="#{bundle['aaa.certificate']}:" /></my:td>
<t:inputTextarea styleClass="textbox" value="#{aaa.entity.certificate}" />
<my:td colspan="4" align="left">
<a4j:commandLink actionListener="#{aaa.saveAAA}" style="width: 90px;"
reRender="tblAAAsList,paging1,paging2" styleClass="saveLinkButton modalClose">
<t:outputText value="#{bundle['save']}" styleClass="text" />
<t:graphicImage url="/common/images/save.png" align="absmiddle" border="0" />
<f:attribute name="projectID" value="#{aaa.entity.project.id}" />
<t:outputText value=" " />
<a4j:commandLink style="width: 90px;" styleClass="cancelLinkButton modalClose">
<t:outputText value="#{bundle['cancel']}" styleClass="text" />
<t:graphicImage url="/common/images/cancel.png" align="absmiddle" border="0" />

at this div there are some <t:inputtext>. but when this inputtext is editable value is null. when i set readonly or disable to true, the value assign correctly
[ September 08, 2008: Message edited by: Alireza Abedini ]
I've been selected to go to the moon! All thanks to this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic