History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16270
Type: New Feature New Feature
Status: Open Open
Assignee: Dmitry Avdeev
Reporter: t800t8
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Support bean id completion for <idref>'s bean attribute

Created: 09 Nov 07 11:59   Updated: 19 Nov 07 17:54
Component/s: Editor. Code Completion, J2EE.Spring

Build: 7,531


 All   Comments   Work Log   Change History      Sort Order:
Dmitry Avdeev - 19 Nov 07 16:04
It is currently supported. Please provide a code snippet.

t800t8 - 19 Nov 07 16:14
It doesn't work for me (same as in #7549)
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

    <bean id="tournamentMatchManager"
          class="org.springframework.aop.framework.ProxyFactoryBean">
        <property name="target">
            <bean class="com.apress.springbook.chapter03.DefaultTournamentMatchManager">
                <property name="matchDao" ref="matchDao"/>
            </bean>
        </property>
        <property name="proxyInterfaces">
            <list>
                <value>com.apress.springbook.chapter03.TournamentMatchManager</value>
            </list>
        </property>
        <property name="interceptorNames">
            <list>
                <idref bean="textMessageSendingAdvice1"/>
            </list>
        </property>
    </bean>

    <bean id="matchDao" class="com.apress.springbook.chapter03.JdbcMatchDao">
        <property name="dataSource" ref="dataSource"/>
    </bean>

    <bean id="textMessageSendingAdvice1"
          class="com.apress.springbook.chapter03.TextMessageSendingAdvice">
        <property name="messageSender">
            <bean class="com.apress.springbook.chapter03.MessageSender"/>
        </property>
    </bean>

</beans>

Taras Tielkes - 19 Nov 07 17:27
I'm not using my workstation at the moment, but if I remember correctly recent builds only offered completion for <idref local=".."> (perhaps through DTD/XSD editor, using regular XML ID mechanism?).

Sascha Weinreuter - 19 Nov 07 17:54
Taras, there's a slim chance that the beta version of the RELAX NG plugin I sent you had this functionality for completing ID/IDREF values - IDEA itself doesn't offer it (IDEABKL-1052). But I removed this feature because I was scared by the potential performance impact.