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?

11 comments
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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:

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

0
Comment actions Permalink

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

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
<variable>
<name-given>current</name-given>
<variable-class>java.lang.Object</variable-class>
<scope>NESTED</scope>
</variable>

>
>

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):
moz-screenshot.jpg
0
Comment actions Permalink

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

>

<tag>
<name>stateInformation</name>
<tag-class>com.appriss.jxportal.StateInformationTag</tag-class>
<body-content>scriptless</body-content>
<attribute>
<name>stateCD</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<variable>
<name-given>stateInformation</name-given>

<variable-class>com.appriss.jxportal.StateInformation</variable-class>
</variable>
</tag>
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" %>
<jxp:stateInformation stateCD="${user.stateCD}">
<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:

>
>> 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
0
Comment actions Permalink

Seems to be JSP 1.2 tld but I might be wrong.

Norris Shelton wrote:

OK, it just took FOREVER for the syntax checking to show an error. Now
<variable> 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. >> > 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 >>> >> 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!"

0
Comment actions Permalink

]]>

Is this correct for JSP 2.0?

Maxim Mossienko wrote:

Seems to be JSP 1.2 tld but I might be wrong.

>

Norris Shelton 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. >>> >> 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 >>>> >>> 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? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> >>>>>> >>>> >>>> > >]]>

0
Comment actions Permalink

that looks right

0
Comment actions Permalink

Have you tried this? I'm thinking that a bug needs to be filed.

Robert S. Sfeir wrote:

>that looks right

>

0

Please sign in to leave a comment.