History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16307
Type: Bug Bug
Status: Open Open
Assignee: Dmitry Avdeev
Reporter: Jurn Ho
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

html:text - nested bean properties not resolved

Created: 12 Nov 07 17:26   Updated: 20 Nov 07 01:35
Component/s: J2EE.Struts

Build: 7,364
Severity: Low


 Description  « Hide
Hi Support,

I have a jsp that has nested properties. e.g.
<html:text property="entitlementCommand.name" size="50" maxlength="70"/>

entitlementCommand resolves to the javabean ok.
but the .name doesn't resolve properly and is marked as red "Cannot resolve form property name"
I would like to be able to click on it and go to the name getter/setter.

thanks,
Jurn



 All   Comments   Work Log   Change History      Sort Order:
Dmitry Avdeev - 19 Nov 07 15:59
I cannot reproduce it. How does your java bean looks like?

Jurn Ho - 20 Nov 07 01:30 - edited
Hi Dmitry,

here is another example:

<html:form styleClass="frame" action="/secure/SetPriceModifierOffering">
  <html:text property="priceModifierOfferingCommand.name" size="60" maxlength="100"/>
  </html:form>

clicking on the action brings me to a struts-config.xml:

<action path="/secure/SetPriceModifierOffering" type="org.springframework.web.struts.DelegatingActionProxy"
                name="PriceModifierOfferingCommandForm" validate="false" scope="session">
..
        </action>

clicking on the form name I get to the form bean defintion:

<form-bean name="PriceModifierOfferingCommandForm"
                   type="com...form.PriceModifierOfferingCommandForm"/>

clicking on the class i get to the java code:

public class PriceModifierOfferingCommandForm extends ActionForm
{
    private PriceModifierOfferingCommand priceModifierOfferingCommand;
   public PriceModifierOfferingCommand getPriceModifierOfferingCommand()
    {
        return priceModifierOfferingCommand;
    }
    public void setPriceModifierOfferingCommand(PriceModifierOfferingCommand priceModifierOfferingCommand)
    {
        this.priceModifierOfferingCommand = priceModifierOfferingCommand;
    }
}

the inner bean wraps a string which is what I would've liked to get at from the
beginning

public class PriceModifierOfferingCommand
{
    private String name;

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }
}