Following some guide here http://stackoverflow.com/questions/2555845/how-to-update-maven-repository-in-eclipse
I was able to finally get it running 5.4 beta 28, however I have the same issue still. I'm not really sure what else to try (I have the same doctype and almost the same .tml as the example). Finally, I was able to fix it, thanks for your help pointing me to the example (it helped me get there in the end). The doctype I had at the top of my layout.tml, but not my index.tml. So it seems that the doctype needs specifying on every component and page. I notice I also need to add this to every component else I cannot use t: or p: within the component, and sometimes this adds additional <html> tags into the middle of my page: <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd" xmlns:p="tapestry:parameter"> Is there a way use <t: and <p: inside a component without adding another html tag at the top? Thanks, Steve On 26 April 2015 at 14:05, Stephen Nutbrown <steves...@gmail.com> wrote: > I also notice if I actually remove the "/" from my input in the .tml, like > this: > > <input t:type="textfield" type="email" class="form-control input-sm" > t:id="emailAddress" placeholder="Enter email" > t:value="emailAddress"> > > I get this error: > > Exception assembling root component of page Exception: Failure > parsing template > classpath:com/promotemybrand/webapplication/components/Layout.tml: The > element type "input" must be terminated by the matching end-tag > "</input>". > > The error message itself is not correct. > > I have also tried remoiving my input tag altogether from my tml and > just using t:textfield like the example: > > <t:textfield type="email" class="form-control input-sm" > t:id="emailAddress" placeholder="Enter email" > t:value="emailAddress"/> > > The page renders, but with this: > <input placeholder="Enter email" id="emailAddress" class="form-control > form-control input-sm" name="emailAddress" type="email"></input> > > On 26 April 2015 at 13:57, Stephen Nutbrown <steves...@gmail.com> wrote: >> Hi Chris, >> >> Thanks. Seems very off that I am having this issue. This is what I >> have at the top of mine layouts .tml file, which I think should be >> correct: >> >> <!DOCTYPE html> >> >> <html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd" >> xmlns:p="tapestry:parameter"> >> >> >> When I view the source of the page it produces, it starts: >> <!DOCTYPE html> >> <html data-debug-enabled="true" data-locale="en" >> xmlns="http://www.w3.org/1999/xhtml"> >> >> But i'm still getting the same problems. As far as the tapestry >> version, this is what is confusing me: >> https://www.dropbox.com/s/ps68uzfqu4cng6t/Capture.PNG?dl=0 >> >> I have cleaned the project and ran a maven update but i'm still >> getting this. I'm wondering if updating the tapestry version to beta >> 28 will pull in the fix? Perhaps it is because I am on a slightly >> older version. >> >> Thanks, >> >> >> >> >> >> On 26 April 2015 at 13:38, Chris Poulsen <mailingl...@nesluop.dk> wrote: >>> It works as far as I know, its probably a code error. A guess could be that >>> you do not have the correct doctype in your pages. >>> >>> http://jumpstart.doublenegative.com.au/jumpstart7/examples/component/html5inputtypes >>> outputs html5 inputs if you need an online example. >>> >>> -- >>> Chris >>> >>> On Sun, Apr 26, 2015 at 2:36 PM, Stephen Nutbrown <steves...@gmail.com> >>> wrote: >>> >>>> Hi, >>>> >>>> Just an update, I found there is a newer version of Tapestry, >>>> 5.4-beta28 which I have updated my POM.xml to. I can see it should be >>>> pulling in the latest version by looking at the dependency hierarchy, >>>> but I still get this on startup: >>>> >>>> ______ __ ____ >>>> /_ __/__ ____ ___ ___ / /_______ __ / __/ >>>> / / / _ `/ _ \/ -_|_-</ __/ __/ // / /__ \ >>>> /_/ \_,_/ .__/\__/___/\__/_/ \_, / /____/ >>>> /_/ /___/ 5.4-beta-26 (development mode) >>>> >>>> As well as the problem with the input tags. Perhaps for some reason I >>>> am having trouble updating, or is there an issue with the tapestry >>>> version number? >>>> >>>> Thanks, >>>> Steve >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>>> For additional commands, e-mail: users-h...@tapestry.apache.org >>>> >>>> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org