[
https://issues.apache.org/jira/browse/TAP5-370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649145#action_12649145
]
Mark Shead commented on TAP5-370:
---------------------------------
Here is the error I'm getting:
The root element of the rendered document was <smbxml>, not <html>. A root
element of <html> is needed when linking JavaScript and stylesheet resources.
Here is the page that is causing the issue for me:
package net.xeric.client.lywa.pages;
import java.util.List;
import net.xeric.client.lywa.model.TaskBlueprint;
import net.xeric.client.lywa.model.TaskSequence;
import org.apache.tapestry5.annotations.Meta;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annotations.Property;
@Meta("tapestry.response-content-type=text/xml")
public class EventXML {
@Persist
@Property
private TaskSequence aSequence;
@Persist
private List<TaskSequence> sequenceList;
@Persist
@Property
private TaskBlueprint aTask;
public String getDueDate() {
//snip
}
public List<TaskSequence> getSequenceList() {
return sequenceList;
}
public void setSequenceList(List<TaskSequence> sequenceList) {
this.sequenceList = sequenceList;
}
}
TML page:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE smbxml SYSTEM "http://www.netledger.com/xml/dtd/smb_4_11.dtd">
<smbxml xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<t:loop source="sequenceList" value="aSequence">
<t:loop source="aSequence.tasks" value="aTask">
<request><add><task>
<title>${aTask.messageText} for ${aSequence.customerName}</title>
<assignedRef><name>${aTask.assignedRef}</name></assignedRef>
<startDate>${dueDate}</startDate>
<dueDate>${dueDate}</dueDate>
<statusRef><name>Not Started</name></statusRef>
<accessLevel>Public</accessLevel>
<taskOwnerRef><name>${aTask.taskOwnerRef}</name></taskOwnerRef>
<sendEmail>FALSE</sendEmail>
<messageText>${aTask.messageText} for
${aSequence.customerName}</messageText>
<customFieldValues><customFieldValue
name="Event">${aSequence.eventRef}</customFieldValue></customFieldValues>
<companyList><companyLine><companyRef><name>${aSequence.customerRef}</name></companyRef></companyLine></companyList>
</task></add></request>
</t:loop>
</t:loop>
</smbxml>
> Error from DocumentLinker about missing <html> tag, even for XML document w/o
> JavaScript
> ----------------------------------------------------------------------------------------
>
> Key: TAP5-370
> URL: https://issues.apache.org/jira/browse/TAP5-370
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.16
> Reporter: Howard M. Lewis Ship
> Assignee: Howard M. Lewis Ship
> Priority: Critical
>
> Haven't verified this yet, but the scenario is:
> A page that generates an XML response, with no root <html> element.
> An error *anyway* about the missing <html>.
> My current theory is that Tapestry is injecting CSS and causing the error.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]