I use IDEA 7.0.2.

I use html extension not tml. So my templates is html type by default not xml.
If you add tml extension like html type that do the same too.

My every template is start with a html tag. The first tag is contains the xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd attribute.
I actually download this xsd file and put somewhere my hdd.
In IDEA preferences I select the Resources option and add this resource:

URI: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd
PATH: $THE_PATH_WHERE_I_PUT_THIS_FILE/tapestry_5_0_0.xsd

In the "Inspection profile/HTML Inspections/Unknown HTML tag" I add the Tapestry own tags to the "Custom HTML tags".

That works fine for me. I hope this help for you.

The tapestry own tags I add
On Jan 3, 2008, at 09:58, Paudi Moriarty wrote:

Yes, I used that intention to fetch the external resource and then ended up
with the same error.

I tried to add xmlns="http://www.w3.org/1999/xhtml"; to the <html> element
but that precludes using the tapestry namespace!

I guess I can live with it, but it would be nice to have proper validation.

On 02/01/2008, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:

I'm on IDEA 7 and have no problems at all with this stuff.

I can't remember doing any special configuration, beyond adding
"*.tml" as an XML file (in the File Types view of the preferences
panel).

Hm. Actually, I do see one intention error, "URI is not registerred".

Used the intention ... ok, now I'm getting the error "cannot find
declaration of not element html".

On Jan 2, 2008 1:53 AM, Paudi Moriarty <[EMAIL PROTECTED]> wrote:
Howard,

You switched to Idea recently, does this work for you?


On 21/12/2007, Paudi Moriarty <[EMAIL PROTECTED]> wrote:

There is probably an easier way to do it, and it probably doesn't
(or
shouldn't) happen if you associate the file as an xml file type.

I have associated *.tml with the XML file type and have the same
problem.
Attributes are recognised as being part of the namespace but tags
aren't and
produce "Cannot resolve symbol t:xxxx" errors.

Has anyone got this to work?

On 19/12/2007, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

-) Go to Settings -> Errors -> choose either the global ide profile
or
a
project specific profile
-) Go to Inspections -> HTML Inspections -> Unknown HTML tag
attribute
-) Add whatever attribute tags you want under "Custom HTML tag
attributes"
on the left.

There is probably an easier way to do it,  and it probably doesn't
(or
shouldn't) happen if you associate the file as an xml file type.

On Dec 19, 2007 3:26 PM, Filip S. Adamsen < [EMAIL PROTECTED]> wrote:

Hi,

Thank you for the tips. Now IDEA is complaining that "t:label is
not
allowed here" etc. Am I missing something? I'd really just like
IDEA
to
mind its own business wrt. the Tapestry-related tags etc. in my
templates.

-Filip

Michael Lake skrev:
Filip,

make sure your encapsulating tags define the "t" namespace.

<html xmlns:t="
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd
">
MAIN BODY HERE
</html>



also, in your settings under "file types", make sure you've got
.tml
under the XML file type.

if the reference to the .xsd is red, put the cursor on it, wait
for
the
red light bulb on the left, then click "fetch external resource"

-mike

Filip S. Adamsen wrote:
Hi there,

Just a quick question: Is there a way to prevent IDEA
complaining
about unresolvable symbols in .tml files? I get hundreds of
"Cannot
resolve symbol t:label" etc. when performing code analysis.

-Filip



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Jesse Kuhnert
Tapestry / OGNL / Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com







--
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to