cobaltolabs / IntelliStripes-NV

IntelliStripes' Next Version. This plugin add support for Stripes Framework to IntelliJ Ultimante 11 and up
2 stars 0 forks source link

Completion for name attribute not working #1

Open pshapiro4broad opened 12 years ago

pshapiro4broad commented 12 years ago

I've never used the old intellistripes plugin so I don't know if this is a regression or something that is not expected to work.

Some completions are working for me, such as the "event" attribute on a stripes:link tag in a jsp. But others aren't, such as the "name" attribute on a stripes:select tag in the same jsp.

It would be great if other attributes, such as "label" and "value" for stripes:option worked as well.

Thanks for working on this plugin! It's great to see work continuing on this useful tool.

cobaltolabs commented 12 years ago

Could you give me a small example in order to reproduce this behavior?

pshapiro4broad commented 12 years ago

Test.java:

import net.sourceforge.stripes.action.Resolution;

public class Test {
    private String something;
    public String getSomething() {
        return something;
    }
    public void setSomething(String something) {
        this.something = something;
    }

    public Resolution foo() {
        return null;
    }
}

test.jsp:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://stripes.sourceforge.net/stripes.tld" prefix="stripes" %>

<stripes:link beanclass="Test" event="foo">test</stripes:link>

<stripes:form beanclass="Test">
    <stripes:text name="something"/>
</stripes:form>

In this test case, the method Test.foo() is correctly linked to its usage in the <stripes:link> markup, but Test.getSomething()/setSomething() is not linked to the <stripes:text>.