Sorry to post this again but I would like to have more details about the future of the struts-faces cooperation.

Do we have to work with components in the future ? Does it make sense to implement my own components now and in the future upgrade to faces components ?

Thanks in advance

Seb

-------- Original Message --------

Hi,

I am looking at the struts faces integration ant I have a question about
it. Is there any plan to integrate the UIComponent tree in struts or is
the integration just a new tag library.
I am guessing that in the future we will put ui components in
actionforms : do I miss something (I am not an expert in both so maybe I
am in the wrong way) ?

My current problem is that I want to use the same form for both reading
and editing.
My idea is this one :

public LogonForm
{
   private UIInput login = new UIInput(); // with getter / setter
.
.
.
}

in my Action :

logonForm.getLogin().setAttribute("editable", Boolean.FALSE);

and in my jsp :

<h:input_text id="login" modelReference="logonForm.login"/>

and then my renderer uses getAttribute("editable") to know if my control
is editable or know (we can do the same thing with "visible",
"mandatory" and so on).


But this is not possible at this time and this is maybe not a viable solution. So, does somebody have any idea for a solution that is managed by the input tag. I am not really fond of lot of if constructions to distinguish edit/visu modes. Is there any alternatives ?

Thanks in advance

Seb


_____________________________________________________________________ Envie de discuter en "live" avec vos amis ? T�l�charger MSN Messenger http://www.ifrance.com/_reloc/m la 1�re messagerie instantan�e de France


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to