You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by nhhockeyplayer nashua <nh...@hotmail.com> on 2013/05/09 01:51:27 UTC

strange markup being injected

Hi Folks,

Sorry to present this... but I was hoping maybe anyone else has seen something like this.

I am operating a fairly stealthy crud framework. Fairly stable.

I am sensitive to the markup being spit out.

On EDIT page... I have a problem... the whole page markup becomes corrupted.

Something (actually its looking like a complete SHOW.TML page) is being injected into the top of my markup in the form of a comment. See the resulting markup below.

Any ideas how or why this is being caused ? I would like to clean it up. its making EDIT pages creepy. So you can imagine what my resulting page looks like.

Best regards 
and thanks... KEN

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" 
		xmlns:p="tapestry:parameter"
		xmlns:j="tapestry-library:jquery">

		
	<h1>${title}</h1>

	<t:grid t:id="grid" source="source" row="bean" inPlace="true" add="__id__" reorder="__id__" t:mixins="tynamo/BeanModelAdvisor">
		<p:__id__header>
		</p:__id__header>

		<p:__id__cell>
			<t:pagelink t:page="Show" context="showPageContext"><t:tynamo.identifier object="bean"/></t:pagelink>
		</p:__id__cell>
	</t:grid>	

</html>
--><html
 		 	   		  

Re: strange markup being injected

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Wed, 08 May 2013 20:51:27 -0300, nhhockeyplayer nashua  
<nh...@hotmail.com> wrote:

> Hi Folks,

Hi!

> On EDIT page... I have a problem... the whole page markup becomes  
> corrupted.

Please get the source code of the page from the browser (usually  
Control-U) and post it here as a whole. web.xml please too, as something  
like Sitemesh or anotehr servlet filter could affect the output.

As Howard said, this really doesn't look like something that Tapestry  
itself would ever output, so most probably this issue is caused by  
something else.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: strange markup being injected

Posted by Lance Java <la...@googlemail.com>.
Have you configured a non-standard XMLReader?

Take a look at the docs here
http://www.saxproject.org/apidoc/org/xml/sax/helpers/XMLReaderFactory.html#createXMLReader()

Tapestry's template parsing is done by SaxTemplateParser / XMLtokenStream
which ultimately delegates to an XMLReader created via
XMLReaderFactory.createXMLReader(). Perhaps a debug breakpoint inside the
template parsing could help track it down.

Re: strange markup being injected

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 09 May 2013 15:21:20 -0300, nhhockeyplayer nashua  
<nh...@hotmail.com> wrote:

>     @Log
>     @CommitAfter
>     @OnEvent(EventConstants.SUCCESS)
>     Link success()
>     {
>         try
>         {
>             sendBroadcast();
>         } catch (Exception ex)
>         {
>             System.out.println(ex);
>         }
>
>         persistenceService.save(bean);
>         alertManager.info(messages.getFormatter(Utils.ADDED_MESSAGE).format(bean));
>         return !continueAdding ?  
> pageRenderLinkSource.createPageRenderLinkWithContext(Show.class,  
> beanType, bean)
>                 : null;
>     }

What does sendBroadcast() do? Are you using the Response Tapestry object  
or HttpServletResponse directly?

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: strange markup being injected

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 09 May 2013 17:54:16 -0300, nhhockeyplayer nashua  
<nh...@hotmail.com> wrote:

> I had hoped that was it... but not... even though it made it into dozen  
> or more of my templates...

Tapestry does catch this kind of error because its templates must be valid  
XML and your template, before the correction, wasn't correct. By the way,  
please don't post stuff telling about stuff you'll test, just the results,  
otherwise we'll just have more noise in the mailing list.

> the problem still persists.

I asked some further questions to you and you haven't answered yet. Same  
for your web.xml. Hard to help this way. :(

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: strange markup being injected

Posted by nhhockeyplayer nashua <nh...@hotmail.com>.
Well thanks guys... I appreciate the attention.

I will see what the weekend gives.
 		 	   		  

Re: strange markup being injected

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 09 May 2013 23:09:16 -0300, nhhockeyplayer nashua  
<nh...@hotmail.com> wrote:

> Hi Thiago...

Hi!

> sorry about half answers... just trying to do things concurrently.

No problem. :) I couldn't find anything wrong or that could cause this  
weird issue you're having and I'm running out of ideas. :(

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: strange markup being injected

Posted by nhhockeyplayer nashua <nh...@hotmail.com>.
Hi Thiago...

sorry about half answers... just trying to do things concurrently.

Ok here i s my web.xml

really not doing anything else

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>

    <display-name>pphl</display-name>

    <context-param>
        <!-- The only significant configuration for Tapestry 5, this informs Tapestry
            of where to look for pages, components, mixins and entities. -->
        <param-name>tapestry.app-package</param-name>
        <param-value>org.tynamo.examples.pphl</param-value>
    </context-param>
    <!--
        Specify some additional Modules for two different execution
        modes: development and qa.
        Remember that the default execution mode is production
        -->
        
        
    <context-param>
        <param-name>tapestry.production-modules</param-name>
        <param-value>org.tynamo.examples.pphl.services.AppModule</param-value>
    </context-param>        
    <context-param>
        <param-name>tapestry.development-modules</param-name>
        <param-value>
            org.tynamo.examples.pphl.services.AppModule
        </param-value>
    </context-param>
    <context-param>
        <param-name>tapestry.qa-modules</param-name>
        <param-value>
            org.tynamo.examples.pphl.services.AppModule
        </param-value>
    </context-param>
    
     <context-param>
        <param-name>tapestry.production-mode</param-name>
        <param-value>false</param-value>
    </context-param>    
    
    
    <filter>
        <filter-name>app</filter-name>
        <filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
    </filter>
        
    <filter-mapping>
        <filter-name>app</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
 
    <session-config>
        <session-timeout>90</session-timeout>
      </session-config>

  <resource-ref>
    <description>MySQL Datasource</description>
    <res-ref-name>jdbc/tpphl</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
  </resource-ref>
  
</web-app>

 		 	   		  

RE: strange markup being injected

Posted by nhhockeyplayer nashua <nh...@hotmail.com>.
Hi Thiago... sorry for delay...been coding all day.

ok here is sendBroadcast...

it just rifles out a broadcast to a mailing list using javamail

I hid the port 3's for safety

but it works beautiful

just have to fix the rendering



    private void sendBroadcast() throws Exception
    {
        final String noReplyEmailAddress = getAdminLayout().getNoReplyEmailAddress();
        final String noReplyKnownPassword = getAdminLayout().getNoReplyPassword();    

        Properties props = new Properties();
        props.put("mail.smtp.host", "smtp.googlemail.com");
        props.put("mail.smtp.port", "");
        props.put("mail.smtp.host", "smtp.live.com");
        props.put("mail.smtp.port", "");
        props.put("mail.smtp.host", "smtp.gmail.com");
        props.put("mail.smtp.port", "");
        props.put("mail.smtp.debug", "true");
        props.put("mail.smtp.starttls.enable", "true");
        props.put("mail.smtp.auth", "true");
        boolean debug = true;
        Session session = Session.getInstance(props, new Authenticator()
        {
            final String USERNAME = noReplyEmailAddress;

            final String SECRET = noReplyKnownPassword;

            @Override
            protected PasswordAuthentication getPasswordAuthentication()
            {
                return new PasswordAuthentication(USERNAME, SECRET);
            }
        });
        session.setDebug(debug);

        // create a message
        Message msg = new MimeMessage(session);

        // set the from and to addresses
        InternetAddress addressFrom = new InternetAddress(noReplyEmailAddress);
        msg.setFrom(addressFrom);

        javax.mail.internet.InternetAddress[] recipients = new javax.mail.internet.InternetAddress[bean.getPlayers()
                .size() + bean.getTeams().size() + bean.getPeople().size() + bean.getSponsors().size()];
        int count = 0;

        for (Sponsor sponsor : bean.getSponsors())
            recipients[count++] = new InternetAddress(sponsor.getEmailAddress());

        for (Team team : bean.getTeams())
            for (Player player : team.getPlayers())
                recipients[count++] = new InternetAddress(player.getEmailAddress());

        for (Player player : bean.getPlayers())
            recipients[count++] = new InternetAddress(player.getEmailAddress());

        for (Person person : bean.getPeople())
            recipients[count++] = new InternetAddress(person.getEmailAddress());

        msg.setRecipients(Message.RecipientType.TO, recipients);

        msg.setSubject(bean.getSubject());
        msg.setText(bean.getMessage());
        if (recipients.length > 0)
            Transport.send(msg);
        else
        {
            String errormsg = "PPHL Broadcast not sent, recipient list empty";
            //logger.warn(errormsg);
            System.out.println(errormsg);
        }
    } 		 	   		  

RE: strange markup being injected

Posted by nhhockeyplayer nashua <nh...@hotmail.com>.
I had hoped that was it... but not... even though it made it into dozen or more of my templates...

the problem still persists.

half a comment.
 		 	   		  

RE: strange markup being injected

Posted by nhhockeyplayer nashua <nh...@hotmail.com>.
yikes...

            <t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor" beanmodeladvisor.key="add">

                <p:message>
                    <t:label for="message">MESSAGE</t:label> -->                        
                    <t:textarea t:id="message" value="bean.message" />
                </p:message>                
            </t:beaneditor>    

notice the "-->" on the right hand side of my property override?

i got a hunch... but testing it out now.

that might be it

sneaky little bugger...
 		 	   		  

RE: strange markup being injected

Posted by nhhockeyplayer nashua <nh...@hotmail.com>.
Basically... on SUBMIT all i want the BroadCastAdd.tml to do is fabricate and send the broadcast (which it does successfully).

but I want it to go back to show the broadcast entity or the list of broadcasts using the grid.

What I see on the screen is ... a jquery carousel showing all the images under my docroot. And the source i already posted.

This is fairly consistent throughout 80% of my custom ADD/EDIT pages. Although it doesnt happen for that few... i beat the codebase hard with fine tooth comb review.

Something is happening internally and thats why i thought maybe it was the memory or stack thing but I have allocated enough memory...

Also I deleted/repopulated my local repo and rebuilt everything clean... and it persists.

Here is the success routine for BroadCastAdd.java

    @Log
    @CommitAfter
    @OnEvent(EventConstants.SUCCESS)
    Link success()
    {
        try
        {
            sendBroadcast();
        } catch (Exception ex)
        {
            System.out.println(ex);
        }

        persistenceService.save(bean);
        alertManager.info(messages.getFormatter(Utils.ADDED_MESSAGE).format(bean));
        return !continueAdding ? pageRenderLinkSource.createPageRenderLinkWithContext(Show.class, beanType, bean)
                : null;
    }
 		 	   		  

RE: strange markup being injected

Posted by nhhockeyplayer nashua <nh...@hotmail.com>.
I modeled a thing called BROADCAST. And my page for BROADCAST is as follows...

BroadcastAdd.tml

Here that is..,.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<t:layout title="title" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" xmlns:p="tapestry:parameter">
    <p:subMenuBlock>
        <ul>
            <ul id="local">
            </ul>
        </ul>
    </p:subMenuBlock>
    <p:navBlock>
        <a style="font-weight:bolder;margin-left:10px" t:type="PageLink" page="List" context="beanType">${listAllLinkMessage}</a>
    </p:navBlock>

    <h1>${title}</h1>

     <t:alerts/>

    <br/>

    <t:form clientValidation="true" validate="bean">
        <t:errors/>

        <div class="t-beaneditor">
        
            <t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor" beanmodeladvisor.key="add">

                <p:message>
                    <t:label for="message">MESSAGE</t:label> -->                        
                    <t:textarea t:id="message" value="bean.message" />
                </p:message>                
            </t:beaneditor>        
            
            <br/>
            <div class="t-beaneditor-row">
                <t:submit t:id="saveAndStay" event="stay" class="button" value="${message:org.tynamo.i18n.apply}"/>
                <t:submit t:id="saveAndReturn" event="return" class="button" value="${message:org.tynamo.i18n.send}"/>
                &nbsp; or &nbsp;
                <t:eventlink class="button" style="color:red; font-weight:bold;" t:id="cancel">
                    ${message:org.tynamo.i18n.cancel}
                </t:eventlink>
            </div>
        </div>
    </t:form>

</t:layout>
 		 	   		  

RE: strange markup being injected

Posted by nhhockeyplayer nashua <nh...@hotmail.com>.
Thanks Thiago for the generous attention.

just waking up... been coding all night and listening to david sereda on astrophysics.
'
Ok here is the tml... 

This one is from the framework... SHOW.TML (i believe this is the guy geting injected somehow...this is reproducable everytime)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<t:layout title="title" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" xmlns:p="tapestry:parameter">
        <p:subMenuBlock>
        <ul>
            <ul id="local">
                <li>
                    <t:pagelink class="editlink" t:page="Edit" context="editPageContext">${editlinkMessage}</t:pagelink>
                </li>
                <li>
                    
                </li>
                <t:if test="deleteAllowed">
                    <li>
                        <t:eventlink class="deletelink" t:id="delete" onclick="return confirm('Are you sure ?');">${message:org.tynamo.i18n.remove}</t:eventlink>
                    </li>
                </t:if>
            </ul>
        </ul>
    </p:subMenuBlock>
    <p:navBlock>
        <a style="font-weight:bolder;margin-left:10px" t:type="PageLink" page="List" context="beanType">${listAllLinkMessage}</a>
    </p:navBlock>

    <h1>${title}</h1>

    <t:alerts/>

    <br/>

    <t:beandisplay object="bean" lean="true" t:mixins="tynamo/BeanModelAdvisor"/>

</t:layout>




 		 	   		  

Re: strange markup being injected

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 09 May 2013 02:08:09 -0300, nhhockeyplayer nashua  
<nh...@hotmail.com> wrote:

> Hi Guys,

Hi!

> Sorry if I prompted any buzz...
>
> Here is the source code...

That's quite weird. One template is inserted commented out and a little  
modified in the output of another. Is there anything else you're running?  
Another servlet? Another servlet filter? Another webserver besides  
Tomcat/Jetty you're using to run your webapp? What's the .tml of this page?

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: strange markup being injected

Posted by nhhockeyplayer nashua <nh...@hotmail.com>.
Hi Guys,

Sorry if I prompted any buzz... 

Here is the source code...

I am sure its something simple... but just wondered if anyone else seen it before.

So here is the actual source code via ctrl-U.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" 
		xmlns:p="tapestry:parameter"
		xmlns:j="tapestry-library:jquery">

		
	<h1>${title}</h1>

	<t:grid t:id="grid" source="source" row="bean" inPlace="true" add="__id__" reorder="__id__" t:mixins="tynamo/BeanModelAdvisor">
		<p:__id__header>
		</p:__id__header>

		<p:__id__cell>
			<t:pagelink t:page="Show" context="showPageContext"><t:tynamo.identifier object="bean"/></t:pagelink>
		</p:__id__cell>
	</t:grid>	

</html>
--><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta content="width=device-width, initial-scale=1.0" name="viewport"/><link type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT-1368075671612/core/default.css"/><link type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT-1368075671612/core/tapestry-console.css"/><link type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT-1368075671612/core/t5-alerts.css"/><link type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT-1368075671612/core/tree.css"/><link type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT-1368075671612/kawwa2_asset/css/k-structure.css"/><link type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT-1368075671612/kawwa2_asset/theme/css/k-theme0.css"/>
<!--[if lt IE 9]>
<link media="all" type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT-1368075671612/kawwa2_asset/theme/css/iehacks0.css"/>
<![endif]-->
<link type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT-1368075671612/kawwa2_asset/css/library.css"/><link type="text/css" rel="stylesheet" href="/assets/1.0-SNAPSHOT-1368075671612/jquery/assets/components/carousel/tango/skin.css"/><meta content="Apache Tapestry Framework (version 5.3.6)" name="generator"/><script src="/assets/1.0-SNAPSHOT-1368075671612/tap-jquery/tapestry.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/jquery_core/jquery-1.7.2.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/ui_1_8_24/jquery.ui.core.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/ui_1_8_24/jquery.ui.position.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/ui_1_8_24/jquery.ui.widget.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/ui_1_8_24/jquery.effects.core.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/jquery.json-2.2.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/ui_1_8_24/jquery.effects.highlight.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/jquery.effects.show.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/core/underscore_1_3_3.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/core/t5-core.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/core/t5-spi.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/t5-jquery.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/core/t5-init.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/core/t5-pubsub.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/core/t5-events.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/t5-dom-jquery.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/t5-console-jquery.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/t5-ajax-jquery.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/core/t5-formfragment.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/t5-alerts-jquery.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/tapestry-jquery.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/core/tapestry-console.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/t5-tree-jquery.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/core/tapestry-messages.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/tapestry-beanvalidator-jquery.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/assets/components/carousel/jquery.jcarousel.js" type="text/javascript"></script><script src="/assets/1.0-SNAPSHOT-1368075671612/jquery/assets/components/carousel/carousel.js" type="text/javascript"></script></head>


<table width="100%">
<tr><td>
<div width="100%" id="i-component" class="content"> 
	<div class="jcarousel-skin-tango" id="photoGroupCarousel"><ul>

		<li><a href="/edit"><img alt="#" width="600px" height="300px" src="/assets/1.0-SNAPSHOT-1368075671612/ctx/images/pph.board.check.jpg"/></a></li>

		<li><a href="/edit"><img alt="#" width="600px" height="300px" src="/assets/1.0-SNAPSHOT-1368075671612/ctx/images/pph.background.jpg"/></a></li>

		<li><a href="/edit"><img alt="#" width="600px" height="300px" src="/assets/1.0-SNAPSHOT-1368075671612/ctx/images/pph.header.jpg"/></a></li>

		<li><a href="/edit"><img alt="#" width="600px" height="300px" src="/assets/1.0-SNAPSHOT-1368075671612/ctx/images/pph.logo.jpg"/></a></li>

		<li><a href="/edit"><img alt="#" width="600px" height="300px" src="/assets/1.0-SNAPSHOT-1368075671612/ctx/images/noher.ice.background.jpg"/></a></li>

		<li><a href="/edit"><img alt="#" width="600px" height="300px" src="/assets/1.0-SNAPSHOT-1368075671612/ctx/images/blood.ice.01.jpg"/></a></li>

	</ul></div>
</div>
</td></tr>
</table>
<!--
	<div class="content" id="i-component"> 
		<j:carousel t:params="complexParams" t:clientId="myComplexCarousel" className="k-carousel">
			<t:Loop id="foreachphotogroupphoto" source="photos" value="currentPhoto" index="photoIndex">
				<j:carouselItem t:imageSource="asset:context:static/img/example_101x101.jpg"   />
				<a>
					<t:eventLink  t:id="IndividualPage" t:context="${pageValue}" >
						<t:outputRaw value="  ${individualPageIndex}"  /> 
					</t:eventLink>
				</a>
			</t:Loop>
		</j:carousel>	
	</div>


			<t:form t:id="photoGroupDisplayForm" id="photoGroupDisplayForm" clientValidation="false" >
				<t:errors/>
				
				<t:Gallery 
					id="photoGroupDisplayWidget"
					collectionType="photoGroupPhotoClass"
					itemsPerPage="itemsPerPage"
					tableColumns="tableColumns"
					cursor="cursor"
					/>
			</t:form>
			-->
<body><script type="text/javascript">var $ = jQuery; Tapestry.DEBUG_ENABLED = true; var selector = new Array(); Tapestry.JQUERY=true;
Tapestry.onDOMLoaded(function() {
Tapestry.init({
  "carousel" : [
    {
      "id" : "photoGroupCarousel",
      "params" : {
        "pause" : "true",
        "wrap" : "last",
        "rtl" : "true",
        "animate" : "true",
        "height" : "75",
        "animation" : "1000",
        "visible" : "1",
        "scroll" : "1",
        "horizontal" : "true",
        "ltr" : "true",
        "auto" : "3",
        "size" : "6"
      }
    }
  ]
});
});
</script></body></html>
 		 	   		  

Re: strange markup being injected

Posted by Howard Lewis Ship <hl...@gmail.com>.
There's a lot going on there far from vanilla Tapestry 5.  I'd start
looking to see if something else in the mix is involved, such as odd
client-side code. I'd also use the developer tools to verify what is coming
over the wire, and when.


On Wed, May 8, 2013 at 4:51 PM, nhhockeyplayer nashua <
nhhockeyplayer@hotmail.com> wrote:

> Hi Folks,
>
> Sorry to present this... but I was hoping maybe anyone else has seen
> something like this.
>
> I am operating a fairly stealthy crud framework. Fairly stable.
>
> I am sensitive to the markup being spit out.
>
> On EDIT page... I have a problem... the whole page markup becomes
> corrupted.
>
> Something (actually its looking like a complete SHOW.TML page) is being
> injected into the top of my markup in the form of a comment. See the
> resulting markup below.
>
> Any ideas how or why this is being caused ? I would like to clean it up.
> its making EDIT pages creepy. So you can imagine what my resulting page
> looks like.
>
> Best regards
> and thanks... KEN
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
>                 xmlns:p="tapestry:parameter"
>                 xmlns:j="tapestry-library:jquery">
>
>
>         <h1>${title}</h1>
>
>         <t:grid t:id="grid" source="source" row="bean" inPlace="true"
> add="__id__" reorder="__id__" t:mixins="tynamo/BeanModelAdvisor">
>                 <p:__id__header>
>                 </p:__id__header>
>
>                 <p:__id__cell>
>                         <t:pagelink t:page="Show"
> context="showPageContext"><t:tynamo.identifier object="bean"/></t:pagelink>
>                 </p:__id__cell>
>         </t:grid>
>
> </html>
> --><html
>




-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com