Issues in a page having multiple forms in tapestry 4
Hi , Currently I am using Tapestry 4 and I have a EditDetails page wherein I have two forms, One having all details related to data fields and another form having an Upload Document Component. If I upload a document in the second form and click on add document button,the doc gets added and gets shown in the page but the values entered in the first form are getting cleared or resetted. If I include the UploadDocument component in the same form then I am getting page not found error If I click on submit button once I add the document in the UploadDocument component. Regards Nazar -- View this message in context: http://tapestry.1045711.n5.nabble.com/Issues-in-a-page-having-multiple-forms-in-tapestry-4-tp5675264.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
Re: Validators of field
All fields in tapestry have a FieldValidator property @Parameter(defaultPrefix = BindingConstants.VALIDATE) private FieldValidatorObject validate; This will either be an instance of FieldValidatorImpl for a single validator or CompositeFieldValidator if there is more than one validator on a field. There is no public API to get the list of validators for a field and it will get messy if you try to inspect the FieldValidator using reflection. I would approach this by overriding or decorating the FieldValidatorSource service to store the information you want in the environment. Take a look at FieldValidatorSourceImpl for inspiration http://tapestry.apache.org/5.3/apidocs/src-html/org/apache/tapestry5/internal/services/FieldValidatorSourceImpl.html http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/services/Environment.html
Re: Exception report Tapestry + Hibernate HTTP 500
Hi! Please get the stack trace from the console or log instead of the Tapestry page error. In addition, it looks like you have mixed Hibernate JAR versions. Error invoking service builder method org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service 'HibernateSessionSource'): org/hibernate/cfg/ExtendedMappings [at classpath:org/apache/tapestry5/corelib/components/ExceptionDisplay.tml, line 3] -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Validators of field
On Sun, 29 Apr 2012 17:52:48 -0300, Dimitris Zenios dimitris.zen...@gmail.com wrote: Nobody else want to do such kind of things?I dont think what i am trying to achieve is something special.There must be a way I don't think there's a direct way of doing what you want, as each validator has a hook for adding attributes or elements to the label and the form field itself. So you can file a JIRA asking for the validators to add a CSS class automatically to both the field and label. Or, better yet, some new per-thread service that stores the validations applied to the fields. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Configuring pom to use .properties from root.
Hello, I'm trying to get my project to use a login.properties file that has been placed in the java package. I'm not entirely sure this is where it should be placed. In order to get it to work, I needed to had the following build code to my pom build resources resource directorysrc/main/java/directory includes include**/*.properties/include /includes /resource /resources /build This resulted with the application leaving out my hibernate xml files at build time. My hibernate config files are placed within my resource package. To get this to work, I needed to add the following xml to my pom, build resources resource directorysrc/main/java/directory includes include**/*.properties/include /includes /resource resource directorysrc/main/resources/directory includes include**/*/include /includes /resource /resources /build This does work, however I'm wondering if there is a better/proper way to handle this. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Configuring-pom-to-use-properties-from-root-tp5676092.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
Re: Configuring pom to use .properties from root.
On Mon, 30 Apr 2012 11:41:42 -0300, George Christman gchrist...@cardaddy.com wrote: Hello, Hi! This is a pure Maven question. Please avoid asking non-Tapestry related questions in the Tapestry mailing lists. I'm trying to get my project to use a login.properties file that has been placed in the java package. I'm not entirely sure this is where it should be placed. If you want to use the Maven standards, which have the huge advantage of not needing any configuration for Maven to find stuff, just place your .properties file under src/main/resources. src/main/java should have only Java files. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Configuring pom to use .properties from root.
I'm a bit of a maven purist and I think that src/main/java is for java files only and any resource files should go in src/main/resources If you still want to do this, instead of whitelisting property files, you should blacklist *.java instead. Also, you don't need to include **/* in your second resource as this is the default.
Re: Configuring pom to use .properties from root.
Sorry Thiago, I didn't realize this was a pure maven issue. I really need Howards Tap class to better understand the workings of tap so I can define what is tap related and what's not. I didn't feel java was the right spot for this, but was directed to place it there by a non tapestry developer, but senior java developer in our organization. I'll move it to src/main/resources and look at some maven docs to see how to configure it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Configuring-pom-to-use-properties-from-root-tp5676092p5676154.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
Re: Configuring pom to use .properties from root.
On Mon, 30 Apr 2012 12:07:55 -0300, George Christman gchrist...@cardaddy.com wrote: Sorry Thiago, I didn't realize this was a pure maven issue. I really need Howards Tap class to better understand the workings of tap so I can define what is tap related and what's not. In your e-mail, you haven't mentioned the word 'tapestry' not even once and asked about Maven configuration, so I thought you knew you were posting an off-topic message. I'm sorry for that. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Configuring pom to use .properties from root.
I just assumed it was part of the Tapestry's configuration and felt adding Tapestry to the question would of just been redundant on a Tapestry mailing list. Just FYI, up until about 6 months ago, I've only ever really did front end development, so back end is pretty new. I was recently handed this entire project with most of it configured from a previous project by another developer. That being said, I have very limited knowledge of maven/hibernate/tapestry and some of the other non tap questions I accidentally may ask. However, thanks for being so supportive. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Configuring-pom-to-use-properties-from-root-tp5676092p5676253.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
PerThread service unique?
Hi all, I have a service that is marked with @Scope(ScopeConstants.PERTHREAD). Can I assume that there will be just *one* instance of this service per thread or there may be multiple instances?. I was under the impression that this service will be unique per thread but am facing a problem that might be explained if there are multiple instances of it. Any pointers to the documentation will be appreciated. My reading of http://tapestry.apache.org/defining-tapestry-ioc-services.html suggests me that there will be just one instance but wanted to be sure. Regards, Manuel.
Re: Configuring pom to use .properties from root.
On Mon, 30 Apr 2012 12:53:09 -0300, George Christman gchrist...@cardaddy.com wrote: I just assumed it was part of the Tapestry's configuration Tapestry isn't built on Maven. By the way, since some months ago, Tapestry isn't built using Maven anymore (but this won't make any difference for anyone who doesn't use Tapestry sources directly). -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: PerThread service unique?
On Mon, 30 Apr 2012 13:15:22 -0300, Manuel Sugawara manuel.sugaw...@gmail.com wrote: Hi all, Hi! I have a service that is marked with @Scope(ScopeConstants.PERTHREAD). Can I assume that there will be just *one* instance of this service per thread or there may be multiple instances?. One per thread (maybe zero, if it ends up not being used in a given thread). If you take a look at them in a debugger, the injected service object may look like there's a single shared instance, but actually it acts as a proxy and delegates method calls to the appropriate service instance for that thread. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Exception report Tapestry + Hibernate HTTP 500
The thing is I don't think JARs are mixed. Main reason for this behavior could be possibly find in the following scenario: When I implemented this like inheritance: @Entity @Table(name = Article) @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) public class Articleimplements Serializable { @Id @GeneratedValue(strategy=GenerationType.AUTO) @Basic(optional = false) @Column(name = ART_ID) private Long id; @Basic(optional = false) @Column(name = ART_NAME) private String name; @Basic(optional = true) @Column(name = ART_COST) private double cost; @Basic(optional = true) @Column(name = ART_DESC) private String description; @Basic(optional = true) @Column(name = ART_IMG) private String image; ... @Entity @Table(name=Fruits) @AttributeOverrides({ @AttributeOverride(name=name, column=@Column(name=ART_NAME)), @AttributeOverride(name=cost, column=@Column(name=ART_COST)), @AttributeOverride(name=description, column=@Column(name=ART_DESC)), @AttributeOverride(name=image, column=@Column(name=ART_IMG)) }) @IdClass(Article.class) public class Fruits extends Article { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Basic(optional = false) @Column(name = FRU_ID) private long fruitID; @Basic(optional = false) @Column(name = FRU_FROZEN) private String fruitFrozen; and I wanted to list all the fruits, like this public class ShowFruits { @Persist(value=flash) @Property private String tag; @Property private Fruits fruit; @Property private Article article; @Inject private Session _hibernate; @SessionState @Property private Korisnik _User; @Property private boolean _ifUSerExists; @InjectPage private ShowFruits _showFruits; /** * Returns the list of the fruits articles * @return list */ public List getFruits() { List l; if(tag == null || tag.isEmpty()) l = _hibernate.createCriteria(Fruit.class).list(); else l = _hibernate.createCriteria(Fruit.class) .add(Restrictions.like(tags, tag, MatchMode.ANYWHERE)).list(); System.out.println(l.size()); return l; } /** * Sets tag * @param tag tag */ public void setData(String tag) { this.tag = tag; } /** * Returns the image * @return image path */ public String getImagePath() { if(fruit.getImage() == null || fruit.getImage().isEmpty()) return gfx/no_image.jpg; return gfx/+fruit.getImage(); } and the showFruits.tml PostDisplay xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; t:loop source=fruits value=fruit div class=section div class=article-title t:actionlink t:id=clanak t:context=pelet${fruit.name}/t:actionlink!-- /div img class=article-image src=${imagePath} / p${fruits.description}/p div class=basket-box div class=basket-commentPrice ${message:cost} : t:output format=numberFormat value=fruits.cost/ /div div/div /div /div /t:loop /PostDisplay and I have mapped them in mapping class=workplace.projectAlpha.Article/ mapping class=workplace.projectAlpha.Fruit/ snatch of my code in hibernate.cfg.xml So the main reason is I think the inheritance, ie I am not using extended mapping. What do you think, Thiago? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5676335.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
Re: Configuring pom to use .properties from root.
This is where the Tap training would come in real handy. Is there any good setup tutorials using the new method? If you wouldn't mind answering this question, I moved the .properties to the resources as you and lance both suggested. Should the application automatically pick this up? or would I need to configure it in the pom using include? Thanks Thiago. On Mon, Apr 30, 2012 at 12:29 PM, Thiago H de Paula Figueiredo [via Tapestry] ml-node+s1045711n5676326...@n5.nabble.com wrote: On Mon, 30 Apr 2012 12:53:09 -0300, George Christman [hidden email] http://user/SendEmail.jtp?type=nodenode=5676326i=0 wrote: I just assumed it was part of the Tapestry's configuration Tapestry isn't built on Maven. By the way, since some months ago, Tapestry isn't built using Maven anymore (but this won't make any difference for anyone who doesn't use Tapestry sources directly). -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5676326i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5676326i=2 -- If you reply to this email, your message will be added to the discussion below: http://tapestry.1045711.n5.nabble.com/Configuring-pom-to-use-properties-from-root-tp5676092p5676326.html To unsubscribe from Configuring pom to use .properties from root., click herehttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5676092code=Z2NocmlzdG1hbkBjYXJkYWRkeS5jb218NTY3NjA5MnwxNjMyOTYxMjA3 . NAMLhttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- George Christman www.CarDaddy.com P.O. Box 735 Johnstown, New York -- View this message in context: http://tapestry.1045711.n5.nabble.com/Configuring-pom-to-use-properties-from-root-tp5676092p5676389.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: Exception report Tapestry + Hibernate HTTP 500
On Mon, 30 Apr 2012 13:33:36 -0300, TechniciuM a1098...@rppkn.com wrote: So the main reason is I think the inheritance, ie I am not using extended mapping. What do you think, Thiago? Without the full stack trace from the console or log, I can't say anything. ;) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Configuring pom to use .properties from root.
On Mon, 30 Apr 2012 13:58:17 -0300, George Christman gchrist...@cardaddy.com wrote: If you wouldn't mind answering this question, I moved the .properties to the resources as you and lance both suggested. Should the application automatically pick this up? or would I need to configure it in the pom using include? Thanks Thiago. Another pure Maven question. I don't know which code or package will read this file, but Maven will include it in the classpath. Remember, Maven is a build tool: it doesn't change how your application works. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: PerThread service unique?
On Mon, Apr 30, 2012 at 11:32 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: One per thread (maybe zero, if it ends up not being used in a given thread). If you take a look at them in a debugger, the injected service object may look like there's a single shared instance, but actually it acts as a proxy and delegates method calls to the appropriate service instance for that thread. I was trying to explain the symptoms with a colleague and all the sudden I learnt where the problem was, and of course, It was not tapestry. Sorry about the noise Regards, Manuel.
Re: Exception report Tapestry + Hibernate HTTP 500
On Mon, Apr 30, 2012 at 9:33 AM, TechniciuM a1098...@rppkn.com wrote: The thing is I don't think JARs are mixed. Main reason for this behavior Which versions of T5 and Hibernate are you using? I don't think it has anything to do with your entities but the IncompatibleClassChangeError you see in the trace. Kalle - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Configuring pom to use .properties from root.
All set, If you could point me to something in regards to using tapestry without maven, it would be greatly appreciated. Thanks Thiago. On Mon, Apr 30, 2012 at 1:06 PM, Thiago H de Paula Figueiredo [via Tapestry] ml-node+s1045711n5676414...@n5.nabble.com wrote: On Mon, 30 Apr 2012 13:58:17 -0300, George Christman [hidden email] http://user/SendEmail.jtp?type=nodenode=5676414i=0 wrote: If you wouldn't mind answering this question, I moved the .properties to the resources as you and lance both suggested. Should the application automatically pick this up? or would I need to configure it in the pom using include? Thanks Thiago. Another pure Maven question. I don't know which code or package will read this file, but Maven will include it in the classpath. Remember, Maven is a build tool: it doesn't change how your application works. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5676414i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5676414i=2 -- If you reply to this email, your message will be added to the discussion below: http://tapestry.1045711.n5.nabble.com/Configuring-pom-to-use-properties-from-root-tp5676092p5676414.html To unsubscribe from Configuring pom to use .properties from root., click herehttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5676092code=Z2NocmlzdG1hbkBjYXJkYWRkeS5jb218NTY3NjA5MnwxNjMyOTYxMjA3 . NAMLhttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- George Christman www.CarDaddy.com P.O. Box 735 Johnstown, New York -- View this message in context: http://tapestry.1045711.n5.nabble.com/Configuring-pom-to-use-properties-from-root-tp5676092p5676465.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: Configuring pom to use .properties from root.
On Mon, 30 Apr 2012 14:29:54 -0300, George Christman gchrist...@cardaddy.com wrote: If you could point me to something in regards to using tapestry without maven, it would be greatly appreciated. Thanks Thiago. There is no difference between Tapestry with Maven and Tapestry without Maven. Again, Maven is a build tool and Tapestry doesn't depend nor use it. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Exception report Tapestry + Hibernate HTTP 500
It all goes fine untill I implemented that Fruits extends Article. That's where it stopped and shows me that kind of exception. I am using Tap 5.2.( all taps liba ) and Hibernate 3.6.0 (Hibernate core 3.6.0, Hibernate JPA 2.0 Final, Hibernate c3p0 3.6.0, Hibernate annotations 3.2.0 ). @Thiago I have 4 logs here from my Apache Tomcat server. Is that what you need? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5676497.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
Re: Exception report Tapestry + Hibernate HTTP 500
On Mon, 30 Apr 2012 14:45:01 -0300, TechniciuM a1098...@rppkn.com wrote: @Thiago I have 4 logs here from my Apache Tomcat server. Is that what you need? No. I want the console or log, but just the part containing the full stack trace of the problem and nothing more. How do you run your Tomcat while developing, by the way? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Exception report Tapestry + Hibernate HTTP 500
I run it using NetBeans IDE. Apache Tomcat is added to the server list. When I start the project, it is automatically built. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5676579.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
Re: Exception report Tapestry + Hibernate HTTP 500
On Mon, 30 Apr 2012 15:29:24 -0300, TechniciuM a1098...@rppkn.com wrote: I run it using NetBeans IDE. Apache Tomcat is added to the server list. When I start the project, it is automatically built. So the Tomcat log is probably sent to the NetBeans console. You should take a look there. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Apache Tapestry, Welcome to CodeMaps!
Thanks for pointing it out. We are looking into why tap hibernate was not included in the setup. I'll notify you guys as soon as the issue is resolved. Thanks - CodeMaps Team On Sun, Apr 29, 2012 at 11:30 AM, TechniciuM a1098...@rppkn.com wrote: Great news, however I can't see it's fully accomplished, since tap hibernate is missing from the review. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Apache-Tapestry-Welcome-to-CodeMaps-tp5674063p5674179.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
T5.3 Component with AJAX Form?
I'm trying to make a lookup dialog that lets users lookup accounts by name. It obviously has a form where the user can enter a partial name. The form has a t:zone and the onSuccess handler either tries to return the zone or use AjaxResponseRenderer to return the content of the zone. which has the list of matching accounts. My component via javascript automatically clicks a hidden submit button to submit the form. The form, zone and list are all in the component. It works fine when in a page, but when this is run as a component I get this error: Page must be specified before initializing for partial page render. Not very helpful. It appears that the form is not being submitted via AJAX (request.isXHR is false.) Can one submit a form inside a component via AJAX that updates a zone inside that component? I can't put the zone outside the component and update the entire thing, since it messes up the value of the text field. This is using Tapestry 5.3.3. Norman Franke Answering Service for Directors, Inc. www.myasd.com
Re: Exception report Tapestry + Hibernate HTTP 500
This is the log of my Tomcat server, Thiago, http://shrib.com/45eMiypR . -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677005.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
Re: Tapestry and inline Handlebars.js
trsvax, Trying to implement this, but I'm getting an error along the lines of: Parameter(s) 'template' are required for com.beckon.app.components.widgets.script.ClientHtmlTemplate, but have not been bound. My java is limited, but it looks like it's expecting us to pass in a template? Should this be something along of the lines of @SupportInformalParameters so that if you pass in p:script/ it will take that as its template parameter? Also, it looks like this is just designed to not have a .tml? Not sure what I'm missing here. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-and-inline-Handlebars-js-tp5660756p5677007.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
Re: Exception report Tapestry + Hibernate HTTP 500
On Mon, 30 Apr 2012 18:10:10 -0300, TechniciuM a1098...@rppkn.com wrote: This is the log of my Tomcat server, Thiago, http://shrib.com/45eMiypR . It's quite obvious what the problem is in the log: Caused by: java.lang.RuntimeException: Exception constructing service 'HibernateSessionSource': Error invoking service builder method org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service 'HibernateSessionSource'): Could not parse configuration: /hibernate.cfg.xml -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry and inline Handlebars.js
Here's what I'm trying to pass in: t:widgets.script.clienthtmltemplate t:id=testTemplate p:script /p:script /t:widgets.script.clienthtmltemplate -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-and-inline-Handlebars-js-tp5660756p5677026.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
Re: Tapestry and inline Handlebars.js
So DUHuser error! I was passing in a p:script and it was looking for p:template. Thanks for the help! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-and-inline-Handlebars-js-tp5660756p5677055.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
Re: Exception report Tapestry + Hibernate HTTP 500
But why is that? Do I have to make my own service in order that to work? So far my xml was parsing just fine, but when I implemented the entities like I did, it throws me that exception. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677063.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
Re: Exception report Tapestry + Hibernate HTTP 500
And from the same log: Caused by: org.dom4j.DocumentException: Error on line 32 of document : Element type listener must be followed by either attribute specifications, or /. Nested exception: Element type listener must be followed by either attribute specifications, or /. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2208) ... 176 more do read the error messages. Kalle On Mon, Apr 30, 2012 at 2:39 PM, TechniciuM a1098...@rppkn.com wrote: But why is that? Do I have to make my own service in order that to work? So far my xml was parsing just fine, but when I implemented the entities like I did, it throws me that exception. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677063.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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Exception report Tapestry + Hibernate HTTP 500
Lol :) I couldn't see I didn't close the listener tag. :D -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677078.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
Re: Exception report Tapestry + Hibernate HTTP 500
This is what I wanted at first to post : http://shrib.com/902LeAu6 This is my issue. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677101.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
Re: Exception report Tapestry + Hibernate HTTP 500
On Mon, 30 Apr 2012 18:58:57 -0300, TechniciuM a1098...@rppkn.com wrote: This is what I wanted at first to post : http://shrib.com/902LeAu6 java.lang.IncompatibleClassChangeError: org/hibernate/cfg/ExtendedMappings at org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:182) Again, most probably incompatible Hibernate JAR versions. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Configuring pom to use .properties from root.
Dear Tap List [ Attn: George], Just to put my 2cents into the [OT] subject. This book from Packt publishing will get you going with maven well enough http://www.packtpub.com/apache-maven-2-effective-implementation/book The author(s) is from the Apache Archiva project (http://archiva.apache.org)- which is an alternative open source repository manager to the Sonatype product. It is also covered in the book as well as Apache Continuum for CI although I have not gone through the book myself, I got what I needed and plugged away (http://continuum.apache.org) It is available through Oreilly's Book Safari subscription service if your organisation has this service for you. http://my.safaribooksonline.com/?portal=oreilly /plug Cheerio Chris On 01/05/2012, at 3:29 AM, George Christman wrote: All set, If you could point me to something in regards to using tapestry without maven, it would be greatly appreciated. Thanks Thiago. On Mon, Apr 30, 2012 at 1:06 PM, Thiago H de Paula Figueiredo [via Tapestry] ml-node+s1045711n5676414...@n5.nabble.com wrote: On Mon, 30 Apr 2012 13:58:17 -0300, George Christman [hidden email] http://user/SendEmail.jtp?type=nodenode=5676414i=0 wrote: If you wouldn't mind answering this question, I moved the .properties to the resources as you and lance both suggested. Should the application automatically pick this up? or would I need to configure it in the pom using include? Thanks Thiago. Another pure Maven question. I don't know which code or package will read this file, but Maven will include it in the classpath. Remember, Maven is a build tool: it doesn't change how your application works. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5676414i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5676414i=2 -- If you reply to this email, your message will be added to the discussion below: http://tapestry.1045711.n5.nabble.com/Configuring-pom-to-use-properties-from-root-tp5676092p5676414.html To unsubscribe from Configuring pom to use .properties from root., click herehttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5676092code=Z2NocmlzdG1hbkBjYXJkYWRkeS5jb218NTY3NjA5MnwxNjMyOTYxMjA3 . NAMLhttp://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- George Christman www.CarDaddy.com P.O. Box 735 Johnstown, New York -- View this message in context: http://tapestry.1045711.n5.nabble.com/Configuring-pom-to-use-properties-from-root-tp5676092p5676465.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: Tapestry and inline Handlebars.js
The issue here is that Tapestry uses an off-the-shelf XML parser for the templates. That affects how HTML-ish content is going to be parsed and interpreted, and also affects who content that looks like a Tapestry expansion (${ }) will be interpreted. I can see adding a new special Tapestry element that is used to delimit a portion of the template where expansions should by treated as literal text. That could be added to 5.4. I think a better interrum solution would be to create a component that renders out the script type=text/template tag, and reads the contents of a file to provide the inside content, using MarkupWriter.writeRaw(). You could easily establish a naming convention so that the component would automatically read the correct file by default, and perhaps add some caching to ensure things are performant. In other words, move the content that is not working properly inside a Tapestry template outside of the template. On Tue, Apr 24, 2012 at 11:44 AM, yazdog8 j...@paulsenweb.com wrote: So...been experimenting more...and from the fine folks at Stack Overflow...this solution for pulling HTML out of CDATA. Fine point, it has to be CDATA and not the JS/CSS commented CDATA. You will then have to unescape the content before compiling with Handlebars.compile. var template=Handlebars.compile($(div/).html($('#entry-template').html()).text()) template({'title': 'New Title', 'body' : 'New Body'}) This actually seems to work, and the TML doesn't force validation. One question though...as micro templating on the client side grows in popularity, are we going to seriously have client side developers consistently jump through this hoop to use Mustache, Handlebars, icanhaz, etc? It seems like there's a better, more direct way, and one that doesn't put the onus on the FE developer to find a way around rigid Tapestry convention in order to do so. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-and-inline-Handlebars-js-tp5660756p5662963.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 -- 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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry and inline Handlebars.js
Ah ... kind of looks like you figured this out a couple of hours ago. Long day for me. On Mon, Apr 30, 2012 at 5:33 PM, Howard Lewis Ship hls...@gmail.com wrote: The issue here is that Tapestry uses an off-the-shelf XML parser for the templates. That affects how HTML-ish content is going to be parsed and interpreted, and also affects who content that looks like a Tapestry expansion (${ }) will be interpreted. I can see adding a new special Tapestry element that is used to delimit a portion of the template where expansions should by treated as literal text. That could be added to 5.4. I think a better interrum solution would be to create a component that renders out the script type=text/template tag, and reads the contents of a file to provide the inside content, using MarkupWriter.writeRaw(). You could easily establish a naming convention so that the component would automatically read the correct file by default, and perhaps add some caching to ensure things are performant. In other words, move the content that is not working properly inside a Tapestry template outside of the template. On Tue, Apr 24, 2012 at 11:44 AM, yazdog8 j...@paulsenweb.com wrote: So...been experimenting more...and from the fine folks at Stack Overflow...this solution for pulling HTML out of CDATA. Fine point, it has to be CDATA and not the JS/CSS commented CDATA. You will then have to unescape the content before compiling with Handlebars.compile. var template=Handlebars.compile($(div/).html($('#entry-template').html()).text()) template({'title': 'New Title', 'body' : 'New Body'}) This actually seems to work, and the TML doesn't force validation. One question though...as micro templating on the client side grows in popularity, are we going to seriously have client side developers consistently jump through this hoop to use Mustache, Handlebars, icanhaz, etc? It seems like there's a better, more direct way, and one that doesn't put the onus on the FE developer to find a way around rigid Tapestry convention in order to do so. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-and-inline-Handlebars-js-tp5660756p5662963.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 -- 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 -- 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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Exception report Tapestry + Hibernate HTTP 500
Hi Thiago. Suprisingly I have been left with some old Hibernate libs in my stack, so I had to delete them manually as they haven't been seen by my IDE. I have done it, but the issue persists, but I have got a couple of issues here that I wanted to share with you, and I think are the main reason why my app fails to process it in the right way. This is the the new log http://shrib.com/GebWbwlN -- View this message in context: http://tapestry.1045711.n5.nabble.com/Exception-report-Tapestry-Hibernate-HTTP-500-tp5674051p5677252.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
Re: Tynamo's tapestry-jdo and JDOEntityValueEncoder not getting registered
Paulo, I'll have a look at the logs and see if I can reproduce it using the high level approach you mention. Do let me know if you are able to create a sample project w/ this problem or if you figure out anything else that might be relevant. Cheers, Alex K On Sat, Apr 28, 2012 at 10:32 AM, Paulo Andrade pauloandr...@ist.utl.ptwrote: Forgot to attach the files. On Apr 28, 2012, at 9:30 AM, Paulo Andrade wrote: Hello Alex, Trying to create the sample project, I have figured how to reproduce the bug consistently. Basically it manifest itself depending on which page I open first after the application boots. If I open my / page that has no knowledge of JDO, later when I do visit a page that has links to JDO objects they won't work. If I visit /admin/ first, which has links to JDO objects, everything is fine. For now I'm attaching the two boot sequences: boot1.txt fails, boot2.txt succeeds. I'll see if I can send you a project that reproduces this. Regards Paulo Andrade On Apr 27, 2012, at 3:03 AM, Alex Kotchnev wrote: Paulo, would you be able to put together a sample project that does this ? I'll have another look at the jdo sample project but I'm pretty sure this worked OK there (although it wasn't tested w/ T5.3.x). Cheers, Alex K On Thu, Apr 26, 2012 at 5:45 PM, Paulo Andrade pauloandr...@ist.utl.pt wrote: On Apr 26, 2012, at 10:09 PM, Thiago H. de Paula Figueiredo wrote: On Thu, 26 Apr 2012 18:01:14 -0300, Paulo Andrade pauloandr...@ist.utl.pt wrote: Hello, Hi! http://example.com/app/foo/com.example.entity.foo$a4c34 http://example.com/app/foo/1 To fix this I simply restart the application and it usually returns to a working state. Anyone has clues on why this might be happening? By any chance are you using ${} expansions when passing the value to the context parameter of PageLink? I'm generating the links like so: a t:type=ActionLink t:id=editBeach t:context=beach t:zone=beachFormZone${beach.name}/a And it works. Well... sometimes at least. - 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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Exception report Tapestry + Hibernate HTTP 500
On Mon, 30 Apr 2012 21:58:59 -0300, TechniciuM a1098...@rppkn.com wrote: Hi Thiago. Hi! Suprisingly I have been left with some old Hibernate libs in my stack, so I had to delete them manually as they haven't been seen by my IDE. I have done it, but the issue persists, but I have got a couple of issues here that I wanted to share with you, and I think are the main reason why my app fails to process it in the right way. This is the the new log http://shrib.com/GebWbwlN As you could already see for yourself, the exact same error happened. You still have a mismatch of Hibernate JARs in your classpath. This isn't related to Tapestry at all, so I think this thread should end here. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Hooking a custom InjectionProvider into the IoC container
Tapestry Users, I'd like to contribute an InjectionProvider2http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/transform/InjectionProvider2.html into the chain that processes @Inject annotations. The cookbook example that illustrates the chain of command patternhttp://tapestry.apache.org/ioc-cookbook-patterns.html cites how Tapestry IOC's own injection provider is built. The example says, And, of course, other contributions could be made in other modules ... if you wanted to add in your own form of injection. So, I tried copying a similar method into my AppModule: public static void contributeInjectionProvider2( OrderedConfigurationInjectionProvider2 configuration, MasterObjectProvider masterObjectProvider, ObjectLocator locator, SymbolSource symbolSource, AssetSource assetSource) { configuration.add(BeckonLogger, new InjectionProvider2() { public boolean provideInjection(PlasticField field, ObjectLocator locator1, MutableComponentModel componentModel) { if (field.getTypeName().equals(com.beckon.app.util.log.BeckonLogger)) { field.inject(BeckonLoggerImpl.getLogger(field.getPlasticClass().getClassName())); return true; } return false; } }); } But that gives me the following error: java.lang.IllegalArgumentException: Contribution com.beckon.app.services.AppModule.contributeInjectionProvider2(OrderedConfiguration, MasterObjectProvider, ObjectLocator, SymbolSource, AssetSource) (at AppModule.java:92) is for service 'InjectionProvider2', which does not exist. Is there a different way that I should contribute my InjectionProvider2? More generally, what is the best way to add a custom form of injection? More generally still, my overarching goal is to be able to instiate my own logger with the name of the owning class and to use @Inject to describe the dependency--is there a way to customize or otherwise use one of the existing InjectionProviders to do that? Thank you in advance, - Pavel
Re: T5.3 Component with AJAX Form?
http://code.google.com/p/flowlogix/source/browse/tapestry-services/src/main/resources/com/flowlogix/web/mixins/DisableAfterSubmit.js search for setSubmittingElement Perhaps you are missing that, if that's not the case, debugging Tap JS code might help On Apr 30, 2012, at 4:52 PM, Norman Franke wrote: I'm trying to make a lookup dialog that lets users lookup accounts by name. It obviously has a form where the user can enter a partial name. The form has a t:zone and the onSuccess handler either tries to return the zone or use AjaxResponseRenderer to return the content of the zone. which has the list of matching accounts. My component via javascript automatically clicks a hidden submit button to submit the form. The form, zone and list are all in the component. It works fine when in a page, but when this is run as a component I get this error: Page must be specified before initializing for partial page render. Not very helpful. It appears that the form is not being submitted via AJAX (request.isXHR is false.) Can one submit a form inside a component via AJAX that updates a zone inside that component? I can't put the zone outside the component and update the entire thing, since it messes up the value of the text field. This is using Tapestry 5.3.3. Norman Franke Answering Service for Directors, Inc. www.myasd.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5.3 Component with AJAX Form?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have the same problem. Googling, the only thing I came up with was this: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-rc3-Page-must-be-specified-before-initializing-for-partial-page-render-td4966505.html It mentions creating an AjaxLink component, and that asking Tapestry to generate the links is simple. Since I am fairly new to Tapestry, a pointer to this would be much appreciated. Thanks - - Arno Am 30.04.2012 22:52, schrieb Norman Franke: I'm trying to make a lookup dialog that lets users lookup accounts by name. It obviously has a form where the user can enter a partial name. The form has a t:zone and the onSuccess handler either tries to return the zone or use AjaxResponseRenderer to return the content of the zone. which has the list of matching accounts. My component via javascript automatically clicks a hidden submit button to submit the form. The form, zone and list are all in the component. It works fine when in a page, but when this is run as a component I get this error: Page must be specified before initializing for partial page render. Not very helpful. It appears that the form is not being submitted via AJAX (request.isXHR is false.) Can one submit a form inside a component via AJAX that updates a zone inside that component? I can't put the zone outside the component and update the entire thing, since it messes up the value of the text field. This is using Tapestry 5.3.3. Norman Franke Answering Service for Directors, Inc. www.myasd.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+fZ2QACgkQbmZsMyUPuXTD5QCg1CJex9Gf/QHVnWtDInSiOFS4 hfIAoIjCK1WL+7NewWDnUS+MCZlWKIc4 =1FBG -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5.3 Component with AJAX Form?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks! This looks like what I was looking for. Looking forward to playing around with it ;-) Am 01.05.2012 06:29, schrieb Lenny Primak: http://code.google.com/p/flowlogix/source/browse/tapestry-services/src/main/resources/com/flowlogix/web/mixins/DisableAfterSubmit.js search for setSubmittingElement Perhaps you are missing that, if that's not the case, debugging Tap JS code might help On Apr 30, 2012, at 4:52 PM, Norman Franke wrote: I'm trying to make a lookup dialog that lets users lookup accounts by name. It obviously has a form where the user can enter a partial name. The form has a t:zone and the onSuccess handler either tries to return the zone or use AjaxResponseRenderer to return the content of the zone. which has the list of matching accounts. My component via javascript automatically clicks a hidden submit button to submit the form. The form, zone and list are all in the component. It works fine when in a page, but when this is run as a component I get this error: Page must be specified before initializing for partial page render. Not very helpful. It appears that the form is not being submitted via AJAX (request.isXHR is false.) Can one submit a form inside a component via AJAX that updates a zone inside that component? I can't put the zone outside the component and update the entire thing, since it messes up the value of the text field. This is using Tapestry 5.3.3. Norman Franke Answering Service for Directors, Inc. www.myasd.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+fbbQACgkQbmZsMyUPuXSSxgCg3kMMcIrK0euVk8fqenB+ypyD Js8AoNbrKrUuAuAvhvJ16T5XRohNtXxt =cJ2J -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: File System Asset Factory help needed and petition wanted
Speak in English so that other can follow :) I dont really have any influence into inserting anything into tapestry. Do you? Also if you are interested in this maybe you can help me out. I couldn't make the images to work as they should. It is as if the mime file is not added correctly. If you want give code a try and let me know if you can help me solve the problem cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/File-System-Asset-Factory-help-needed-and-petition-wanted-tp5641308p5677460.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