Hi Matt,
this works  in Idea, it needs some help though,
just select ${actionBean} and Idea will suuggest you to
"declare external variable as annotation" (dunno exactly the name.),
then you can define your bean e.g. like:
<%...@elvariable id="actionBean" type="com.foo.YourAction"--%>

(I beleive IntelliStripes helps here by autoselecting all Action beans)


-m

On 12/12/2008 04:12 PM, 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-tp19991284p20977554.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
------------------------------------------------------------------------------
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

Reply via email to