cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: CForms and Portlets - making form ids dynamic
Date Mon, 27 Mar 2006 08:18:46 GMT
Carsten Ziegeler wrote:
> Sylvain Wallez schrieb:

>> What about simply adding Form.setId(String formId)?
> Yes, that was my first thought as well - but I was wondering if it's a
> good idea to "always"
> allow to change the id. So I thought that if the id is dynamic, it
> should be part of the constructor - therefore the above changes.
> But of course just adding setId() works fine as well.

It seems to me that the form writer should not have to care about
setting a dynamic ID on the form, as it's more an integration concern (a
form could run equally well standalone or within the portal).

Is there a simple test that can be performed (without introducing a
dependency on the portal block) that can allow us to detect that we're
running as a coplet and then set a dynamic ID on the form?


Sylvain Wallez
Apache Software Foundation Member

View raw message