pbsr
Jun 3rd, 2006, 07:04 AM
I am trying to use spring form tags and I am noticing some funny behaviour. May be I am doing some thing wrong. Any pointers will b greatly appreciated.
They don't seem to work without a nested tag being present and I have to repeat the bean names both in nested tags and input tags.
This is the only way I could get it to work
<form:form command="creditcardapp"........>
<spring:nestedPath path="creditcardapp.personalInfo">
<form:input path="personalInfo.title"/>
I would have thought that the it should have worked this way
<form:form command="creditcardapp"........>
<spring:nestedPath path="personalInfo">
<form:input path="title"/>
If I don't use spring form tags and use normal bind expressions it seems to work fine like this
<spring:nestedPath path="creditcardapp.personalInfo">
<spring:bind path="title">
<TD><LABEL for="Title">Title:</LABEL></TD>
<TD><INPUT type="text" name="<c:out value="${status.expression}"/>" size="20" value="<c:out value="${status.value}"/>"></TD>
</spring:bind>
Am I doing something wrong here. Thanks in advance.
They don't seem to work without a nested tag being present and I have to repeat the bean names both in nested tags and input tags.
This is the only way I could get it to work
<form:form command="creditcardapp"........>
<spring:nestedPath path="creditcardapp.personalInfo">
<form:input path="personalInfo.title"/>
I would have thought that the it should have worked this way
<form:form command="creditcardapp"........>
<spring:nestedPath path="personalInfo">
<form:input path="title"/>
If I don't use spring form tags and use normal bind expressions it seems to work fine like this
<spring:nestedPath path="creditcardapp.personalInfo">
<spring:bind path="title">
<TD><LABEL for="Title">Title:</LABEL></TD>
<TD><INPUT type="text" name="<c:out value="${status.expression}"/>" size="20" value="<c:out value="${status.value}"/>"></TD>
</spring:bind>
Am I doing something wrong here. Thanks in advance.