Hi Christoph When removing the selected card (note that setComponentAt() first removes the old card and then adds the new card) the ULCCardPane does not correctly update the selection state on the server side. Because of this, your subsequent call to setSelectedName() or setSelectedComponent() is ignored: as the given name is already selected on the server side, the change is not propagated to the client side.
I created the issue http://www.canoo.com/jira/browse/UBA-7135 for this. It will be fixed in 6.1.3. As a workaround, you need to first select another component - just like you proposed in your sample. Cheers Rolf > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Christoph > Bucher > Sent: Samstag, 30. Dezember 2006 22:49 > To: [EMAIL PROTECTED] > Subject: [ULC-developer] ULCCardPane: Problem with showing a replaced > selected card - enhanced > > > Hi, > > If the selected (active) card of an ULCCardPane is replaced by the > setComponentAt() - method > it cannot be selected (made active) by setSelectedName() or > setSelectedComponent() methods, > another card has to be selected first and then the replaced card has to > be reselected to be shown. > > The same effect can be observed when setComponentAt() is replaced by > removeCard() - add() card methods. > > See attached code snippet. > > Thanks and regards, Christoph > _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
