Hi Matt:
IntelliJ already have a little hack to do this thing: the Commented
annotation, A year ago I post a tutorial in my blog, you can check on
http://www.jroller.com/neuronica/entry/intellij_tales_1
IntelliStripes have a partial implementation of this feature.
Following the Stripes "good praxis" when you have a <s:form
beanclass="com.funnyname.FunnyActionBean"> the "pre-action" Bean itself is
com.funnyname.FunnyActionBean so we can provide autocompletion for
${actionBean.someProperty}. we can only need to read the beanclass
atttribute on the JSP.
But the optimal solution is read all the ActionBean and search for new
Forward/RedirectResolution("/WEB-INF/my_funny.jsp") and add completion for
this bean on "/WEB-INF/my_funny.jsp"
Unfortunately this feature is very hard to implement and will require some
time to implement. we hope that the next year we can add this feature
Matt Brock wrote:
>
>
> Evgeny Shepelyuk-2 wrote:
>>
>> Well. The problem is that i'm unable to understand what you're proposing.
>> Can you illustrate it with more details and explain as clearly as
>> possible.
>>
>
> Sorry if I wasn't clear. Here's an example:
>
> In my action I have an object...
>
> MyActionBean.class:
> private Customer customer;
> public Customer getCustomer() {...}
> public void setCustomer(Customer customer) {...}
>
> I access this object and its properties in my JSPs using EL notation like
> so:
> ${actionBean.customer.name}
>
> In IntelliJ, if I ever want to access any public methods off an object,
> all I need to do is hit CTRL-SPACE and it pops up a list of possible
> public methods. This is extended to the JSPs, but only for the default
> servlet context. So, in my JSP, if I type the following:
>
> ${pageContext.
>
> ...then hit CTRL-SPACE, I get a nice list of accessible fields & methods.
> Unfortunately, this only works for the default context. If I were to do
> this:
>
> ${actionBean.customer
>
> ...then hit CTRL-SPACE, I get nothing. Because the inspections don't know
> what "actionBean" means, thus don't recognize any methods off of
> actionBean. Which is annoying, because the code analysis for any JSPs on
> a Stripes project in IntelliJ are _FILLED_ with yellow "warnings" because
> it's not smart enough to translate all the "actionBean-dot-somethings" to
> actual objects.
>
> I hope this clarifies things.
>
>
--
View this message in context:
http://www.nabble.com/IntelliStripes-1.2-fuature-proposals-tp19991284p20978049.html
Sent from the stripes-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users