You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Wong, Emmanuel (Sam)" <Wo...@SEC.GOV> on 2007/01/03 21:07:05 UTC
[Tobago} using actionListener to redisplay textbox input value
Hi:
I have an application contains 3 tabs, I am trying to use the
2nd tab contains <tc:sheet> and able to redisplay what I have selected
on the 2nd tab <tc:sheet>. I was not able to redisplay the value by
calling actionListener. The reason that I am using the actionListener
on the datasheet to bypass the validation error. If I use
Using ActionListener:
<tc:column id="creationDate" label="#{radarProperty.lbl_date}"
sortable="true">
<tc:link
actionListener="#{riskIdentifyController.displaySelectedRisk}"
immediate="true">
<tc:out
value="#{riskList.creationDate}" id="risk_creationDate" />
<f:param
name="value" value="#{riskList.riskId}"/>
</tc:link>
</tc:column>
Trying to redisplay the value on <tc:in>:
<%-- rows --%>
<tc:label value="#{radarProperty.lbl_title}:" />
<tc:cell spanX="2">
<tc:in
value="#{riskIdentifyController.currentRisk.riskTitle}"
required="false">
<f:validateLength maximum="250" />
</tc:in>
</tc:cell>
If I used action command:
<tc:column label="#{radarProperty.lbl_title}" id="riskTitle"
sortable="false"
align="left">
<tc:link
action="#{riskIdentifyController.editRisk}"
tip="#{radarProperty.tip_edit_risk}" >
<tc:out
value="#{riskList.riskTitle}" id="risk_title" />
</tc:link>
</tc:column>
I will get validation error on the 2nd tab. Any suggestion????
Re: [Tobago} using actionListener to redisplay textbox input value
Posted by Bernd Bohmann <be...@atanion.com>.
Hello,
I'm not sure that this works.
Please try to surround the tc:link with a tc:form or surround the sheet
with a tc:form.
Please consult the Forms section in the tobago-demo application.
Regards
Bernd
Wong, Emmanuel (Sam) wrote:
> Hi:
> I have an application contains 3 tabs, I am trying to use the
> 2nd tab contains <tc:sheet> and able to redisplay what I have selected
> on the 2nd tab <tc:sheet>. I was not able to redisplay the value by
> calling actionListener. The reason that I am using the actionListener
> on the datasheet to bypass the validation error. If I use
>
>
> Using ActionListener:
> <tc:column id="creationDate" label="#{radarProperty.lbl_date}"
> sortable="true">
> <tc:link
> actionListener="#{riskIdentifyController.displaySelectedRisk}"
>
> immediate="true">
> <tc:out
> value="#{riskList.creationDate}" id="risk_creationDate" />
> <f:param
> name="value" value="#{riskList.riskId}"/>
> </tc:link>
> </tc:column>
>
>
>
> Trying to redisplay the value on <tc:in>:
> <%-- rows --%>
> <tc:label value="#{radarProperty.lbl_title}:" />
> <tc:cell spanX="2">
> <tc:in
> value="#{riskIdentifyController.currentRisk.riskTitle}"
> required="false">
> <f:validateLength maximum="250" />
> </tc:in>
> </tc:cell>
>
>
>
> If I used action command:
> <tc:column label="#{radarProperty.lbl_title}" id="riskTitle"
> sortable="false"
> align="left">
> <tc:link
> action="#{riskIdentifyController.editRisk}"
>
> tip="#{radarProperty.tip_edit_risk}" >
> <tc:out
> value="#{riskList.riskTitle}" id="risk_title" />
> </tc:link>
> </tc:column>
>
> I will get validation error on the 2nd tab. Any suggestion????
>