[ 
https://issues.apache.org/jira/browse/ISIS-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Deenen updated ISIS-2970:
---------------------------------
    Description: 
When creating a new entity from a menuaction and one of the mandatory 
parameters based on a TEXTfield is left empty, ISIS will throw an exception:

 

 
{code:java}
java.lang.IllegalArgumentException: Parameter message can't be null
    at 
org.apache.wicket.feedback.FeedbackMessage.<init>(FeedbackMessage.java:123) 
~[wicket-core-8.13.0.jar:8.13.0]
    at 
org.apache.wicket.feedback.FeedbackMessages.error(FeedbackMessages.java:151) 
~[wicket-core-8.13.0.jar:8.13.0]
    at org.apache.wicket.Component.error(Component.java:1214) 
~[wicket-core-8.13.0.jar:8.13.0]
    at org.apache.isis.viewer.wicket.ui.util.Wkt$18.error(Wkt.java:592) 
~[isis-viewer-wicket-ui-2.0.0-M7.jar:2.0.0-M7]
{code}
 

 

Rootcause org.apache.isis.viewer.wicket.ui.util.Wkt calls the wrong error 
method (from Component instead of FormComponent) for both 
textFieldWithConverter and passwordFieldWithConverter. Provided a fix.

  was:
When creating a new entity from a menuaction and one of the mandatory 
parameters based on a TEXTfields is left empty, ISIS will throw an exception:

 

 
{code:java}
java.lang.IllegalArgumentException: Parameter message can't be null
    at 
org.apache.wicket.feedback.FeedbackMessage.<init>(FeedbackMessage.java:123) 
~[wicket-core-8.13.0.jar:8.13.0]
    at 
org.apache.wicket.feedback.FeedbackMessages.error(FeedbackMessages.java:151) 
~[wicket-core-8.13.0.jar:8.13.0]
    at org.apache.wicket.Component.error(Component.java:1214) 
~[wicket-core-8.13.0.jar:8.13.0]
    at org.apache.isis.viewer.wicket.ui.util.Wkt$18.error(Wkt.java:592) 
~[isis-viewer-wicket-ui-2.0.0-M7.jar:2.0.0-M7]
{code}
 

 

Rootcause org.apache.isis.viewer.wicket.ui.util.Wkt calls the wrong error 
method (from Component instead of FormComponent) for both 
textFieldWithConverter and passwordFieldWithConverter. Provided a fix.


> Validation messages for textfield throw IAE
> -------------------------------------------
>
>                 Key: ISIS-2970
>                 URL: https://issues.apache.org/jira/browse/ISIS-2970
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Viewer Wicket
>    Affects Versions: 2.0.0-M7
>            Reporter: Patrick Deenen
>            Priority: Major
>
> When creating a new entity from a menuaction and one of the mandatory 
> parameters based on a TEXTfield is left empty, ISIS will throw an exception:
>  
>  
> {code:java}
> java.lang.IllegalArgumentException: Parameter message can't be null
>     at 
> org.apache.wicket.feedback.FeedbackMessage.<init>(FeedbackMessage.java:123) 
> ~[wicket-core-8.13.0.jar:8.13.0]
>     at 
> org.apache.wicket.feedback.FeedbackMessages.error(FeedbackMessages.java:151) 
> ~[wicket-core-8.13.0.jar:8.13.0]
>     at org.apache.wicket.Component.error(Component.java:1214) 
> ~[wicket-core-8.13.0.jar:8.13.0]
>     at org.apache.isis.viewer.wicket.ui.util.Wkt$18.error(Wkt.java:592) 
> ~[isis-viewer-wicket-ui-2.0.0-M7.jar:2.0.0-M7]
> {code}
>  
>  
> Rootcause org.apache.isis.viewer.wicket.ui.util.Wkt calls the wrong error 
> method (from Component instead of FormComponent) for both 
> textFieldWithConverter and passwordFieldWithConverter. Provided a fix.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to