cstroe / intellistripes

Automatically exported from code.google.com/p/intellistripes
0 stars 0 forks source link

Stripes name attribute for lists are not getting autocompleted or ctrl+clickable when an EL is specified in the index #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
For eg. PersonActionBean has a List<Person> persons field

in jsp:

<s:form beanclass="xyz.PersonActionBean">
  <c:forEach items="${actionBean.persons}" var="person" varStatus="ctr">
  <s:text name="person[].name"/>
  </c:forEach>
  <s:submit/>
</s:form>

now as long as i hardcode the index value or not specify it as above, the
"person[].name" snippet autocompletes and remains clickable. but if i
specify an EL expression (as one would in most such cases), then
autcomplete and ctrl+click stops working.

i.e.

<s:text name="person[].name"/>
<s:text name="person[1].name"/>
etc. work fine

<s:text name="person[${ctr.index}].name"/>
does not seem to be getting resolved correctly by the plugin

Hope I'm getting my point across here. this functionality works correctly
in the intellij 7.x version of the plugin.

I have checked this with the 2.0.7 version of the plugin

Original issue reported on code.google.com by jain.k...@gmail.com on 20 Oct 2009 at 11:56

GoogleCodeExporter commented 8 years ago

Original comment by eshepel...@gmail.com on 20 Oct 2009 at 12:51

GoogleCodeExporter commented 8 years ago
Hello,
As for me - your code has no bugs.

<c:forEach items="${actionBean.persons}" var="person" varStatus="ctr">
  <s:text name="person[].name"/>
</c:forEach>

There's no setter named setPerson in your Action Bean !!!
So autocomplete should not work at all. As for 7.0.x version - bug seems to be 
there.
Not it current release.

Maybe you mistyped person with _personS_ ?

Original comment by eshepel...@gmail.com on 20 Oct 2009 at 7:41

GoogleCodeExporter commented 8 years ago
oops! yup i mistyped person. I meant

<c:forEach items="${actionBean.persons}" var="person" varStatus="ctr">
  <s:text name="persons[].name"/>
</c:forEach>

The bug can then be reproduced
i.e.

i.e.

<s:text name="persons[].name"/>
<s:text name="persons[1].name"/>
etc. work fine

<s:text name="persons[${ctr.index}].name"/>
does not seem to be getting resolved correctly by the plugin

I have a setter and getter for "persons" in the ActionBean

Original comment by jain.k...@gmail.com on 21 Oct 2009 at 4:53

GoogleCodeExporter commented 8 years ago
Pleae reopen issues if they closed by mistake !
Ok i'm on it again to see how we can fix it.

Original comment by eshepel...@gmail.com on 21 Oct 2009 at 12:47

GoogleCodeExporter commented 8 years ago
Should be fixed at 2.0.8

Original comment by eshepel...@gmail.com on 22 Oct 2009 at 8:04

GoogleCodeExporter commented 8 years ago
awesome! looks to be working fine now. how do i send you moneys for beer :)

Original comment by jain.k...@gmail.com on 26 Oct 2009 at 8:07