Hi again:
I would like to create windows dinamically each time I push a button. Inside each window created this way I include a subview to create the content of the window(All the windows have the same view).
However I have a problem, duplicity of the ids.
As all windows created this way has the same view, all the components of the view trigger duplicity of the ids.
What should I do? Is there any way to load a view several times and get different ids for each instance?
Thanks beforehand

Ids problem
14 February, 2007 - 10:00 — AnonymousIs there any posibility of copy a component(the source and the destiny are the same view) so the ids of the new one will not be duplicated?
Any ideas?
Ids problem
14 February, 2007 - 14:10 — AnonymousOr maybe, could be possible to change dinamically the name of the subview to change the id of the child components? f:subview has its corresponding java class?
Ids problem
15 February, 2007 - 09:48 — AnonymousAnother possibility could be that a bjs:panel implements or extends the Naming Container Class somehow in order to make that the identifier will be included in the path(like a subview id does). However I cant relolve this problem either :(
Ids problem
23 February, 2007 - 15:43 — AnonymousHi ajk,
One possible solution is to use Static File Inclusion instead of Dynamic inclusion. I hope this would suit your application.
Pleas see the example below.
<bjs:window label="Window" style="height:100px; width: 120px;" windowButtons="minimize, maximize, close" show="true">
<%@ include file="view1.jsp" %>
</bjs:window>
<bjs:window label="Window2" style="height:100px; width: 120px;" windowButtons="minimize, maximize, close" show="true">
<%@ include file="view1.jsp" %>
</bjs:window>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.backbase.com/bjs/core" prefix="bjs"%>
<bjs:outputText value="FILE view1.jsp LOADED" />
Hope this helps,
Senaka
Ids problem
26 February, 2007 - 09:40 — AnonymousThanks for the answer, I have tried this idea before but I cant handle it because I need a more "dinamic" solution. I mean, the user may want open 2, 5, 10 windows... so I cant have 10 windows statically(a vaste waste of resource) and an invalid solution(the user may want open 11 windows and my app couldnt solve this). Any other idea?
Hi ajk asd, Do you solve
13 October, 2007 - 10:17 — qbomediaHi ajk asd,
Do you solve this problem?