cancel
Showing results for 
Search instead for 
Did you mean: 

CSS size

former_member190457
Contributor
0 Kudos

Hi developers,

I have a UI element (group), whose width I want to control explicitly through a context attribute of type string (as per api docs). This string should be in CSS size format.

If I map this context attribute to an input field and enter for example 300px (which is fine in NWDS), I get

java.lang.NullPointerException 

    at at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createReverseMappings(ComponentUsage.java:672)
    at at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:168)
    at at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:116)
    at at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createInstanceIfDemanded(ComponentUsage.java:728)
    at at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getImplementingInterfaceViewInfo(ComponentUsage.java:403)
    ... 38 more

Any suggestion? Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190457
Contributor
0 Kudos

The correct String value is 300 without the px. Percent is accepted as well.