on 05-22-2006 4:29 PM
Hello,
I´m working with data binding in a new BSP and have the following code:
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title=" " >
<htmlb:form>
<htmlb:label for="//model/ORGANISATION" />
the page will not be displayed; instead, I get an error message "500 SAP Internal Server Error - The class could not be found for dynamic method call". The object MODEL certainly exists as well as the field ORGANISATION.
What is the problem here ?? Thanks a lot.
Hi Jorge,
Is there a Dump for that error in ST22 ?
Could it be a case-sensitive problem on the field 'ORGANIZATION' ?
How is that field declared in the DDIC ?
Best regards,
Guillaume
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jorge,
if I'm not mistaken the "label" element is used to show a text in reference to another form element. So the "for" attribute should not hold a model attribute but instead the id of the element that the label text belongs to.
Label itself has no corresponding HTML form element that can hold a value.
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>So the "for" attribute should not hold a model attribute but instead the id of the element that the label text belongs to.
Actually it is perfectly fine if the "for" attribute holds a model attribute binding. In fact this is really the only attribute you need to use in MVC. The label will then read the model attribute that you provide and dynamically pull the data dictionary description for the data type used to define the model attribute.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.