Skip to content

make selection machinery pluggable so that for instance we can use an… - #1537

Open
reiern70 wants to merge 2 commits into
wicketstuff:masterfrom
reiern70:reiern70/custom-selection
Open

make selection machinery pluggable so that for instance we can use an…#1537
reiern70 wants to merge 2 commits into
wicketstuff:masterfrom
reiern70:reiern70/custom-selection

Conversation

@reiern70

Copy link
Copy Markdown
Contributor

… ID based mechanism

@solomax solomax left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need tests for this functionality? :)

}

/**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

}
}
@Override
public void onSelect(AjaxRequestTarget target, T choice,String identifier) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public void onSelect(AjaxRequestTarget target, T choice,String identifier) {
public void onSelect(AjaxRequestTarget target, T choice, String identifier) {

@Override
public void onSelect(AjaxRequestTarget target, T choice,String identifier) {
if (choice != null) {
LOG.error("Cannot select choice with ID: {}", identifier);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this code :(
Why choice can't be selected if it is choice != null?
Why it is selected after logging ERROR? :)

Comment thread pom.xml
<link>https://nightlies.apache.org/wicket/apidocs/11.x</link>
<link>https://docs.spring.io/spring-framework/docs/6.0.x/javadoc-api</link>
<link>https://logback.qos.ch/apidocs</link>
<link>https://javadoc.io/doc/ch.qos.logback/logback-classic/1.5.18</link>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this one :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants