Message Boards
Unknown tag (aui:button)
Devanshu Chakraborty, modified 5 Years ago.
Unknown tag (aui:button)
New Member Posts: 19 Join Date: 6/22/10 Recent Posts
Hi,
I am new to Liferay Development. Using latest 7.1.0 version in Liferay Developer Studio.
I just started uilding the sample application "guestbook-web" as mentioned at this page .
However, In Liferay Developer Studio, I see errors and warnings for tags as below
1. Unknown tag (portlet:renderURL).
2. Unknown tag (portlet:param).
3. Unknown tag (aui:button-row).
4. Multiple annotations found at this line:
- Unknown tag (aui:button).
- addEntryURL cannot be
resolved
- End tag of element
<aui:button>
- Start tag of element
<aui:button>
But when I see the potal page on browser, I can see the "Add Entry" button as shown in below snapshot.
My query is that, why developer studio is showing these taglib warnings and errors and how can I get rid of these.
Is there any jar file missing that should be available at compile time? My eclipse snapshots is pasted below:
I am new to Liferay Development. Using latest 7.1.0 version in Liferay Developer Studio.
I just started uilding the sample application "guestbook-web" as mentioned at this page .
However, In Liferay Developer Studio, I see errors and warnings for tags as below
1. Unknown tag (portlet:renderURL).
2. Unknown tag (portlet:param).
3. Unknown tag (aui:button-row).
4. Multiple annotations found at this line:
- Unknown tag (aui:button).
- addEntryURL cannot be
resolved
- End tag of element
<aui:button>
- Start tag of element
<aui:button>
But when I see the potal page on browser, I can see the "Add Entry" button as shown in below snapshot.
My query is that, why developer studio is showing these taglib warnings and errors and how can I get rid of these.
Is there any jar file missing that should be available at compile time? My eclipse snapshots is pasted below:
Olaf Kock, modified 5 Years ago.
RE: Unknown tag (aui:button)
Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent PostsDevanshu ChakrabortyHi,It seems the templates could be improved: This happens because at runtime the include of "/init.jsp" is resolved correctly (thus, everything works) but eclipse has a different notion of what "/" is - thus it can't find "init.jsp". A quickfix is to just omit the slash and just include "init.jsp", e.g. from the same directory. This makes eclipse happy and continues to work at runtime.
I am new to Liferay Development. Using latest 7.1.0 version in Liferay Developer Studio.
I just started uilding the sample application "guestbook-web" as mentioned at this page .
However, In Liferay Developer Studio, I see errors and warnings for tags as below
1. Unknown tag (portlet:renderURL).
2. Unknown tag (portlet:param).
3. Unknown tag (aui:button-row).
4. Multiple annotations found at this line:
...
Devanshu Chakraborty, modified 5 Years ago.
RE: Unknown tag (aui:button)
New Member Posts: 19 Join Date: 6/22/10 Recent PostsOlaf Kock====================================================================================================================================================Devanshu ChakrabortyHi,It seems the templates could be improved: This happens because at runtime the include of "/init.jsp" is resolved correctly (thus, everything works) but eclipse has a different notion of what "/" is - thus it can't find "init.jsp". A quickfix is to just omit the slash and just include "init.jsp", e.g. from the same directory. This makes eclipse happy and continues to work at runtime.
I am new to Liferay Development. Using latest 7.1.0 version in Liferay Developer Studio.
I just started uilding the sample application "guestbook-web" as mentioned at this page .
However, In Liferay Developer Studio, I see errors and warnings for tags as below
1. Unknown tag (portlet:renderURL).
2. Unknown tag (portlet:param).
3. Unknown tag (aui:button-row).
4. Multiple annotations found at this line:
...
Dear Olaf,
Thanks for the reply. Removing "/" actually worked and it got me rid of the problem of "Unknown Tag". However, two related problem still remains.
For the tag <portlet:renderURL var="addEntryURL">, I get following message shown as eclipse warning:
The TagExtraInfo class for "portlet:renderURL" (com.liferay.taglib.portlet.RenderURLTei) could not be instantiatedand for the tag <aui:button ... >, I get following message shown as eclipse warning:
addEntryURL cannot be resolvedAny pointer to get rid of these two problems also.
Olaf Kock, modified 5 Years ago.
RE: Unknown tag (aui:button)
Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent PostsDevanshu ChakrabortyI suspect that the TagExtraInfo problem has to do with either dependencies, or some other glitch in the editor. In this case I currently rely on other opinions, as I don't have the time to get down into details with it.
Dear Olaf,
Thanks for the reply. Removing "/" actually worked and it got me rid of the problem of "Unknown Tag". However, two related problem still remains.
For the tag <portlet:renderURL var="addEntryURL">, I get following message shown as eclipse warning:The TagExtraInfo class for "portlet:renderURL" (com.liferay.taglib.portlet.RenderURLTei) could not be instantiatedand for the tag <aui:button ... >, I get following message shown as eclipse warning:addEntryURL cannot be resolved
The second problem, unresolved addEntryURL, is a follow-up problem of the first: TagExtraInfo will give the editor the information that it needs to know that there will be an addEntryURL in scope. As that step fails, the editor doesn't know about it. You may be able to work around this problem temporarily by replacing <%=addEntryURL%> with ${addEntryURL}, as EL validation is more relaxed. On the other hand, it won't signal any typo in EL expressions.
Devanshu Chakraborty, modified 5 Years ago.
RE: Unknown tag (aui:button)
New Member Posts: 19 Join Date: 6/22/10 Recent Posts
Thanks for the tip, Olaf .
I could successfully test the code as provided in Liferay documentation for Guestbook Application with your tip. It worked. The IDE shows the warnings and error. Seems like some kind of IDE compile time issue. But code runs at runtime correctly.
I could successfully test the code as provided in Liferay documentation for Guestbook Application with your tip. It worked. The IDE shows the warnings and error. Seems like some kind of IDE compile time issue. But code runs at runtime correctly.
Ivano Carrara, modified 4 Years ago.
RE: Unknown tag (aui:button)
Expert Posts: 345 Join Date: 7/3/05 Recent Posts
Dear friends, I'm trying to follow the sample application "guestbook-web" to learn how to use the 7.2 version.
I'm still getting the validation errors in the IDE already described in this post.
Since I have the mission to migrate a large application from 6.25 with many JSPs, those errors give us the risk to lost real errors.
Please, there are some progress in this IDE's issue ?
Thank you to all for any help.
Ivano
I'm still getting the validation errors in the IDE already described in this post.
Since I have the mission to migrate a large application from 6.25 with many JSPs, those errors give us the risk to lost real errors.
Please, there are some progress in this IDE's issue ?
Thank you to all for any help.
Ivano
Randy Leonard, modified 3 Years ago.
RE: Unknown tag (aui:button)
New Member Posts: 11 Join Date: 2/9/07 Recent Posts
To all:It seems this same issue, or one very much like it, was identified and resolved in 2014:
https://issues.liferay.com/browse/IDE-1443
Unfortunately, this issue has resurfaced?
https://issues.liferay.com/browse/IDE-1443
Unfortunately, this issue has resurfaced?
Anu Narayanan, modified 3 Years ago.
RE: Unknown tag (aui:button)
Junior Member Posts: 50 Join Date: 4/24/15 Recent PostsI am having the same issue too. Did anyone find a solution for this? Trying to work on the sample guestbook application.