OT: JSP 2.0 tld (variable)
Has anyone used the variable attribute in a TLD? I had been wondering
how IntelliJ would know how to auto-complete a scripting variable that
is created by a simple tag. This seems like it does that. Am I correct?
请先登录再写评论。
Yes.
Also tag file 'variable' directive (or directive.variable in XML syntax)
does this.
Norris Shelton wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Can you give me an example. Information on this is very sparse.
Maxim Mossienko wrote:
>
>
>
>> Has anyone used the variable attribute in a TLD? I had been
>> wondering how IntelliJ would know how to auto-complete a scripting
>> variable that is created by a simple tag. This seems like it does
>> that. Am I correct?
>
>
>
Hi,
http://www.onjava.com/lpt/a/4467
-Exposing Data to the Calling Page Through Variables-
Norris Shelton wrote:
>> Yes.
>>
>> Also tag file 'variable' directive (or directive.variable in XML
>> syntax) does this.
>>
>> Norris Shelton wrote:
>>
>>> Has anyone used the variable attribute in a TLD? I had been
>>> wondering how IntelliJ would know how to auto-complete a scripting
>>> variable that is created by a simple tag. This seems like it does
>>> that. Am I correct?
>>
>>
>>
>>
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Great. That example worked with tag files. Have you ran across an
example that uses simple tags? Specifically, what it needs to look like
in the .tld.
Will IntelliJ use this information? It would be uber cool if IJ used
this for the auto-complete.
Maxim Mossienko wrote:
>
>
>> Can you give me an example. Information on this is very sparse.
>>
>> Maxim Mossienko wrote:
>>
>>> Yes.
>>>
>>> Also tag file 'variable' directive (or directive.variable in XML
>>> syntax) does this.
>>>
>>> Norris Shelton wrote:
>>>
>>>> Has anyone used the variable attribute in a TLD? I had been
>>>> wondering how IntelliJ would know how to auto-complete a scripting
>>>> variable that is created by a simple tag. This seems like it does
>>>> that. Am I correct?
>>>
>>>
>>>
>>>
>>>
>
>
Basically you need to use another form of the same information, like in
tag file you have directive in the form
in tld you will have current java.lang.Object NESTED ]]>
Norris Shelton wrote:
>> Hi,
>> http://www.onjava.com/lpt/a/4467
>> -Exposing Data to the Calling Page Through Variables-
>>
>> Norris Shelton wrote:
>>
>>> Can you give me an example. Information on this is very sparse.
>>>
>>> Maxim Mossienko wrote:
>>>
>>>> Yes.
>>>>
>>>> Also tag file 'variable' directive (or directive.variable in XML
>>>> syntax) does this.
>>>>
>>>> Norris Shelton wrote:
>>>>
>>>>> Has anyone used the variable attribute in a TLD? I had been
>>>>> wondering how IntelliJ would know how to auto-complete a scripting
>>>>> variable that is created by a simple tag. This seems like it does
>>>>> that. Am I correct?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>>
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Almost. I have the following in my .tld
stateInformation com.appriss.jxportal.StateInformationTag scriptless stateCD true true stateInformation com.appriss.jxportal.StateInformation The variable block is the only change. It is colored green, but I get this when I run validate. When I go to a jsp that uses the tag, it does not autocomplete. <%@ taglib prefix="jxp" uri="http://www.justicexchange.com/jxportal-tags" %> ]]>
<c:set target="$" property="titleText"
value="${state.description}"/>
</jxp:stateInformation>
When I put my cursor on ${state. and try to get it to change it to
stateInformation, it says no suggestions.
FYI, the page renders correctly when I change the value manually.
Maxim Mossienko wrote:
>
>
>
>> Great. That example worked with tag files. Have you ran across an
>> example that uses simple tags? Specifically, what it needs to look
>> like in the .tld.
>>
>> Will IntelliJ use this information? It would be uber cool if IJ used
>> this for the auto-complete.
>>
>> Maxim Mossienko wrote:
>>
>>> Hi,
>>> http://www.onjava.com/lpt/a/4467
>>> -Exposing Data to the Calling Page Through Variables-
>>>
>>> Norris Shelton wrote:
>>>
>>>> Can you give me an example. Information on this is very sparse.
>>>>
>>>> Maxim Mossienko wrote:
>>>>
>>>>> Yes.
>>>>>
>>>>> Also tag file 'variable' directive (or directive.variable in XML
>>>>> syntax) does this.
>>>>>
>>>>> Norris Shelton wrote:
>>>>>
>>>>>> Has anyone used the variable attribute in a TLD? I had been
>>>>>> wondering how IntelliJ would know how to auto-complete a
>>>>>> scripting variable that is created by a simple tag. This seems
>>>>>> like it does that. Am I correct?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>>
>
>
Attachment(s):
moz-screenshot.jpg
OK, it just took FOREVER for the syntax checking to show an error. Now
]]> and it's closing block are underlined in red when the same
error message. Any ideas on what I am missing. I skipped the values
that said they had a default value.
Norris Shelton wrote:
>
>
>
>
>
>
>
>
>
>
>> Basically you need to use another form of the same information, like
>> in tag file you have directive in the form
>> > scope="NESTED" %> >> in tld you will have >> >> current >> java.lang.Object >> NESTED >> >> >> >> Norris Shelton wrote: >> >>> Great. That example worked with tag files. Have you ran across an >>> example that uses simple tags? Specifically, what it needs to look >>> like in the .tld. >>> >>> Will IntelliJ use this information? It would be uber cool if IJ >>> used this for the auto-complete. >>> >>> Maxim Mossienko wrote: >>> >>>> Hi, >>>> http://www.onjava.com/lpt/a/4467 >>>> -Exposing Data to the Calling Page Through Variables- >>>> >>>> Norris Shelton wrote: >>>> >>>>> Can you give me an example. Information on this is very sparse. >>>>> >>>>> Maxim Mossienko wrote: >>>>> >>>>>> Yes. >>>>>> >>>>>> Also tag file 'variable' directive (or directive.variable in XML >>>>>> syntax) does this. >>>>>> >>>>>> Norris Shelton wrote: >>>>>> >>>>>>> Has anyone used the variable attribute in a TLD? I had been >>>>>>> wondering how IntelliJ would know how to auto-complete a >>>>>>> scripting variable that is created by a simple tag. This seems >>>>>>> like it does that. Am I correct? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>> >>>> >> >>]]>
Attachment(s):
att1.dat
Seems to be JSP 1.2 tld but I might be wrong.
Norris Shelton wrote:
>> Almost. I have the following in my .tld
>>
>> >> stateInformation >> com.appriss.jxportal.StateInformationTag >> scriptless >> >> stateCD >> true >> true >> >> >> stateInformation >> >> com.appriss.jxportal.StateInformation >> >> >> The variable block is the only change. It is colored green, but I get >> this when I run validate. >> >> >> >> >> When I go to a jsp that uses the tag, it does not autocomplete. >> <%@ taglib prefix="jxp" >> uri="http://www.justicexchange.com/jxportal-tags" %> >> >>]]> <c:set target="$" property="titleText"
>> value="${state.description}"/>
>> >> >> When I put my cursor on ${state. and try to get it to change it to >> stateInformation, it says no suggestions. >> >> FYI, the page renders correctly when I change the value manually. >> >> >> Maxim Mossienko wrote: >> >>> Basically you need to use another form of the same information, like >>> in tag file you have directive in the form >>> <%@ variable name-given="current" variable- >>> scope="NESTED" %> >>> in tld you will have >>> >>> current >>> java.lang.Object >>> NESTED >>> >>> >>> >>> Norris Shelton wrote: >>> >>>> Great. That example worked with tag files. Have you ran across an >>>> example that uses simple tags? Specifically, what it needs to look >>>> like in the .tld. >>>> >>>> Will IntelliJ use this information? It would be uber cool if IJ >>>> used this for the auto-complete. >>>> >>>> Maxim Mossienko wrote: >>>> >>>>> Hi, >>>>> http://www.onjava.com/lpt/a/4467 >>>>> -Exposing Data to the Calling Page Through Variables- >>>>> >>>>> Norris Shelton wrote: >>>>> >>>>>> Can you give me an example. Information on this is very sparse. >>>>>> >>>>>> Maxim Mossienko wrote: >>>>>> >>>>>>> Yes. >>>>>>> >>>>>>> Also tag file 'variable' directive (or directive.variable in XML >>>>>>> syntax) does this. >>>>>>> >>>>>>> Norris Shelton wrote: >>>>>>> >>>>>>>> Has anyone used the variable attribute in a TLD? I had been >>>>>>>> wondering how IntelliJ would know how to auto-complete a >>>>>>>> scripting variable that is created by a simple tag. This seems >>>>>>>> like it does that. Am I correct? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> >>> >>>]]>
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
]]>
Is this correct for JSP 2.0?
Maxim Mossienko wrote:
>
>
>> OK, it just took FOREVER for the syntax checking to show an error.
>> Now and it's closing block are underlined in red when the >> same error message. Any ideas on what I am missing. I skipped the >> values that said they had a default value. >> >> Norris Shelton wrote: >> >>> Almost. I have the following in my .tld >>> >>> >>> stateInformation >>> com.appriss.jxportal.StateInformationTag >>> scriptless >>> >>> stateCD >>> true >>> true >>> >>> >>> stateInformation >>> >>> com.appriss.jxportal.StateInformation >>> >>> >>> The variable block is the only change. It is colored green, but I >>> get this when I run validate. >>> >>> >>> >>> >>> When I go to a jsp that uses the tag, it does not autocomplete. >>> <%@ taglib prefix="jxp" >>> uri="http://www.justicexchange.com/jxportal-tags" %> >>> >>>]]> <c:set target="$" property="titleText"
>>> value="${state.description}"/>
>>> >>> >>> When I put my cursor on ${state. and try to get it to change it to >>> stateInformation, it says no suggestions. >>> >>> FYI, the page renders correctly when I change the value manually. >>> >>> >>> Maxim Mossienko wrote: >>> >>>> Basically you need to use another form of the same information, >>>> like in tag file you have directive in the form >>>> <%@ variable name-given="current" variable- >>>> scope="NESTED" %> >>>> in tld you will have >>>> >>>> current >>>> java.lang.Object >>>> NESTED >>>> >>>> >>>> >>>> Norris Shelton wrote: >>>> >>>>> Great. That example worked with tag files. Have you ran across >>>>> an example that uses simple tags? Specifically, what it needs to >>>>> look like in the .tld. >>>>> >>>>> Will IntelliJ use this information? It would be uber cool if IJ >>>>> used this for the auto-complete. >>>>> >>>>> Maxim Mossienko wrote: >>>>> >>>>>> Hi, >>>>>> http://www.onjava.com/lpt/a/4467 >>>>>> -Exposing Data to the Calling Page Through Variables- >>>>>> >>>>>> Norris Shelton wrote: >>>>>> >>>>>>> Can you give me an example. Information on this is very sparse. >>>>>>> >>>>>>> Maxim Mossienko wrote: >>>>>>> >>>>>>>> Yes. >>>>>>>> >>>>>>>> Also tag file 'variable' directive (or directive.variable in >>>>>>>> XML syntax) does this. >>>>>>>> >>>>>>>> Norris Shelton wrote: >>>>>>>> >>>>>>>>> Has anyone used the variable attribute in a TLD? I had been >>>>>>>>> wondering how IntelliJ would know how to auto-complete a >>>>>>>>> scripting variable that is created by a simple tag. This >>>>>>>>> seems like it does that. Am I correct? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> >>>>>> >>>> >>>> > >]]>
that looks right
Have you tried this? I'm thinking that a bug needs to be filed.
Robert S. Sfeir wrote:
>that looks right
>