Hi Howard, see snippets, js, url's below. Let me know if I could provide anything else.
CompanyTree.class Component called from layout component. @SessionState private CompanyInfo companyInfo; @Inject private Session session; @InjectPage private Index index; @Property private String searchField; @InjectComponent private Zone formZone; @Property private Company company; @Property private List<Company> companies; List<String> onProvideCompletionsFromSearchField(String partial) { List<Company> filteredList = session.createCriteria(Company.class).add(Restrictions.like("name", partial + "%").ignoreCase()).addOrder(Order.desc("name")).setMaxResults(15).list(); List<String> companyNames = new ArrayList<String>(); for (Company _company : filteredList) { companyNames.add(_company.getName()); } return companyNames; } Object onSubmit() { if(searchField != null) { searchField.replaceAll( "[^\\d]", "" ); companies = session.createCriteria(Company.class).add(Restrictions.like("name", searchField + "%")).setMaxResults(25).list(); if(companies.isEmpty()) { return null; } if (companies.size() > 1) { return formZone.getBody(); } companyInfo.setCompany((Company) session.get(Company.class, companies.get(0).getId())); return index; } return null; } CompanyTree.tml <t:Zone t:id="formZone" visible="true" update="show"> <t:security.HasRole role="admin"> <t:Form t:id="navSearch" zone="formZone" id="navSearch"> <div class="innerWrap autocomplete"> <t:TextField placeholder="Search" t:id="searchField" frequency=".1" t:mixins="jquery/autocomplete"/> <button class="searchBtn"/> </div> </t:Form> </t:security.HasRole> </t:Zone> Layout.tml //uses JqueryTabs and calls companyTree component in one of the tabs <t:If test="userInfo.user"> <div id="left-nav"> <t:jquery.tabs t:tabs="Tab1,Tab2" t:activePanelId="activeElement"> <p:Tab1> <t:CompanyTree/> </p:Tab1> <p:Tab2> Administration <hr style="margin-bottom:0"/> <ul> <li class="nav-background"><t:PageLink page="user">Contacts</t:PageLink></li> <t:security.HasRole role="admin"> <li class="nav-background"><t:ActionLink t:id="addCompany">Add Company</t:ActionLink></li> <li class="nav-background"><t:PageLink page="third_party">Programs</t:PageLink></li> <li class="nav-background"><t:PageLink page="admin">System Administration</t:PageLink></li> </t:security.HasRole> </ul> </p:Tab2> </t:jquery.tabs> </div> </t:If> <div id="content"><t:body/></div> Index.class //Sets company object from companyInfo SessionState. This is what I'm trying to set in the CompanyTree from the Search Field @SessionState private CompanyInfo companyInfo; void onActivate() { if(companyInfo.getCompany() != null) { company = (Company) session.get(Company.class, companyInfo.getCompany().getId()); } else { company = new Company(); } } inline scripts PageURL http://localhost:8080/DeepBlue/?t:lb=t Thanks Howard, hope this helps, let me know if you need anything else. I'm not aware of a js debugger for IE to get you more info. If your aware of any, feel free to let me know. -- View this message in context: http://tapestry.1045711.n5.nabble.com/t-lb-t-being-appended-to-query-parameter-tp5526503p5539711.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org