Hello

        Well> actually its all already implemented.

If you have somewhere in the page s:useActionBean or s:form or s:link with  
beanclass attribute set
the actionBean variable is exposed as implicit EL variable. Its feature of  
IntelliStripes itself.

Another way is using Idea builn-in JSP annotation.
Just type actionBean in your EL expression and wait unutil it wil lbe  
markeв as warnign by IDEA's inspecitons.
Then use proposed intention to annotate your variable and in that  
annotation you can set the class of action bean used on page.



>
>
> 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.
>



-- 
Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/


------------------------------------------------------------------------------
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