This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JSF and the fly likes t:inputtext problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "t:inputtext problem" Watch "t:inputtext problem" New topic

t:inputtext problem

Alireza Abedini

Joined: Sep 06, 2008
Posts: 2
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 ]
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458

Please be forthright when crossposting:
Alireza Abedini

Joined: Sep 06, 2008
Posts: 2
I posted this question the other day in [ ,]], 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'>
<a4jutputPanel ajaxRendered="true" id="addoreditAAA" >
<h:inputHidden value="#{}" converter="javax.faces.Long"/>
<my:table styleClass="dialogTable" border="0" id="tblAddAAA" width="100%">
<my:td colspan="4" styleClass="dialogTableHeader label"><hutputText value="#{aaa.strMode}" /></my:td>
<my:td styleClass="text" align="left"><hutputText value="#{bundle['aaa.ip']}:" /></my:td>
<my:td>*<t:inputText styleClass="textbox" value="#{aaa.entity.ip}" />*</my:td>
<my:td styleClass="text" align="left"><hutputText value="#{bundle['aaa.mask']}:" /></my:td>
<my:td>*<t:inputText styleClass="textbox" value="#{aaa.entity.mask}" />*</my:td>
<my:td styleClass="text" align="left"><hutputText 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">
<tutputText value="#{bundle['save']}" styleClass="text" />
<t:graphicImage url="/common/images/save.png" align="absmiddle" border="0" />
<f:attribute name="projectID" value="#{}" />
<tutputText value=" " />
<a4j:commandLink style="width: 90px;" styleClass="cancelLinkButton modalClose">
<tutputText 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 agree. Here's the link:
subject: t:inputtext problem
It's not a secret anymore!