Details
Description
Contribution from Dan Leahu:
*****
RowSelector doesn't work correctly with the GlassFish implementation of JSF 1.2 because this method:
public void setSelectionListener(MethodBinding selectionListener) {
this.selectionListener = selectionListener;
}
is never called.
We've solved this by creating a new listener type called SelectionListener and modified the method createMetaRuleset present in com.sun.facelets.tag.jsf.ComponentHandler.java to include rules for this new SelectionListener:
if (SelectionSource.class.isAssignableFrom(type)) {
m.addRule(SelectionSourceRule.Instance);
}
Also created for the proxy class MethodExpressionSelectionListener
public class MethodExpressionSelectionListener implements SelectionListener {
...
}
which knows how to call our SelectionListener.
*****
RowSelector doesn't work correctly with the GlassFish implementation of JSF 1.2 because this method:
public void setSelectionListener(MethodBinding selectionListener) {
this.selectionListener = selectionListener;
}
is never called.
We've solved this by creating a new listener type called SelectionListener and modified the method createMetaRuleset present in com.sun.facelets.tag.jsf.ComponentHandler.java to include rules for this new SelectionListener:
if (SelectionSource.class.isAssignableFrom(type)) {
m.addRule(SelectionSourceRule.Instance);
}
Also created for the proxy class MethodExpressionSelectionListener
public class MethodExpressionSelectionListener implements SelectionListener {
...
}
which knows how to call our SelectionListener.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
My assumption is that this was fixed in ICEfaces 1.6.0 DR3. But however it is, the ice:rowSelector.selectionListener and ice:rowSelector.selectionAction attributes work properly in Glassfish, with JSF RI 1.2.