tnx this is exactly what i need :)
----- Original Message ----- From: "Volker Weber" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Sunday, February 05, 2006 12:16 PM
Subject: Re: Redisplay Problem


Hi Francesco,

... the AccountBean is in request-scope

thats the reason for recreating this bean every request ;-).

You can hold a request-scope bean over multiple requests using the
t:saveState tag: <t:saveState value="#{AccountBean}" />

See: http://myfaces.apache.org/tlddoc/tomahawk/t/saveState.html

Regards,
 Volker

Francesco Persico wrote:
*viewAccount.jsp
*

<f:view>
<h:form>
<h:inputHidden id="id" value="#{AccountBean.id}"></h:inputHidden>
<h:outputText value="#{AccountBean.id}"></h:outputText><br/>
<h:outputText value="#{AccountBean.username}"></h:outputText><br/>
<h:outputText value="#{AccountBean.email}"></h:outputText><br/>
<h:outputText value="#{AccountBean.firstName}"></h:outputText><br/>
<h:outputText value="#{AccountBean.lastName}"></h:outputText><br/>
<h4>Account Roles:</h4>
<h:dataTable value="#{AccountBean.roles}" var="role">
<h:column>
<h:outputText value="#{role.description}"></h:outputText>
</h:column>
<h:column>
<h:commandLink action="#{AccountBean.removeRoleAction}">
<h:outputText value="Remove" ></h:outputText>
<f:param name="roleName" value="#{role.name}"></f:param>
</h:commandLink>
</h:column>
</h:dataTable>
</h:form>
</f:view>



after the AccountBean.removeRoleAction is finished the method return
"success" and the page is redisplayed but the outputText fields are all
blank in exception of id(i have the inputHidden field) because ,from a
debug, it seem that a new AccountBean is created :( how can i redisplay
the same account of the old request? the AccountBean is in request-scope
because i am the admin of the web application and i am managing the
roles of other registered user

i hope someone will help me, tnx



----
Email.it, the professional e-mail, gratis per te:clicca qui
<http://www.email.it/cgi-bin/start?sid=3>

Sponsor:
Logos Finanziaria SPA. Società di credito ad erogazione diretta. Fino a
30.000 euro in 24 ore! Clicca e scopri come

Clicca qui <http://adv.email.it/cgi-bin/foclick.cgi?mid=2909&d=5-2>


--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

__________ NOD32 1.1393 (20060203) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com





--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Telefonare all'estero risparmiando fino all'80%? Con Email.it Phone Card puoi, 
clicca e scopri tutti i vantaggi
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2683&d=5-2

Reply via email to