update from the dumb front...
Well The last one was my fault, sorry, I left a foreach loop test
before the component was rendered. Anyway, why does it happens? After
a foreach isn't the pointer returned to the first position of the
list? I wonder...
Ok, So I finally got What I want, almost to be honest.
I spiced it a bit and add a link. My link is declared as...
<component id="link" type="DirectLink">
<binding name="listener" expression="listeners.selectBlock"/>
<binding name="parameters" expression="components.foreach.value"/>
<binding name="disabled" expression="currentBlock.title ==
selectedBlock.title"/>
<binding name="stateful" expression="false"/>
</component>
and the method :
public void selectBlock(IRequestCycle cycle){
Object o = cycle.getServiceParameters()[0];
setSelectedBlock(o);
Group group = (Group)getSelectedBlock();
Visit visit = (Visit)getPage().getVisit();
List groupList = visit.getUser().getGroupList();
Group selected = (Group)CollectionUtils.find(groupList,new
GroupTitlePredicate(group));
visit.setDefaultGroup(selected);
cycle.activate("Start");
}
ok, so I click on the second pane of the panel and wooohooo! It works.
But on any other subsequent click to a link. an alert: "document
contains no data" is shown.
Any ideas on this?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]