Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.BETA
-
Fix Version/s: 4.0
-
Component/s: MOBI-Components
-
Labels:None
-
Environment:Icefaces 4 trunk, mobi:sms tld doc
-
Assignee Priority:P2
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
Please change "message" and "number" attributes to Required.
These attributes are shown as not Required in the tld doc for mobi:sms. When the attributes are not included in the component an http status 500 error appears:
java.lang.NullPointerException org.icefaces.mobi.component.sms.SmsRenderer.escapeString(SmsRenderer.java:78) org.icefaces.mobi.component.sms.SmsRenderer.encodeEnd(SmsRenderer.java:57) javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)
These attributes are shown as not Required in the tld doc for mobi:sms. When the attributes are not included in the component an http status 500 error appears:
java.lang.NullPointerException org.icefaces.mobi.component.sms.SmsRenderer.escapeString(SmsRenderer.java:78) org.icefaces.mobi.component.sms.SmsRenderer.encodeEnd(SmsRenderer.java:57) javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)
Basically if a number or message is null, then a message is logged to server log and a Faces Message will be posted to the component:-
{smsBean.number}<h3> another form to test sms without message</h3>
<h:form id="test2">
<mobi:fieldsetGroup>
<mobi:fieldsetRow>
No message
</mobi:fieldsetRow>
<mobi:fieldsetRow>
<mobi:sms id="smsButton" number="#
"/>
<h:message for="smsButton"/>
</mobi:fieldsetRow>
</mobi:fieldsetGroup>
</h:form>
for testing....