problem with rich text editor
Hi everyone, I'm using tynamo rich text area (tapestry-ckeditor-0.0.1.jar) I also use tapestry-jquery-3.4.1 I have a js error: document.observe is not a function. It looks like jquery breaks prototype, how can I fix this? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
problem with jquery.DialogAjaxLink
I have the following code: t:jquery.DialogAjaxLink t:id=linkCreate t:dialog=editDialog t:zone=editZone t:context=0 img src=${asset:context:img/new-24.png} / /t:jquery.DialogAjaxLink I have the zone and the dialog inside it... And everything works on my local, when I click the link I see the following request: POST http://localhost:8080/MyPrj/mainadminpage.halfseasoneditcomponent.linkedit/2 The problem comes when I deploy the war on my prod env, and the domain is not localhost, but it still makes the same request to localhost, so I receive CORS. Any ideas?! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Inject dynamic number of components
I have a form with many inputs, selects, etc, which I want to submit. Some of these inputs are in some custom components in order to reduce repeating code and to add some specific behavior visual as some dynamic css passed to the custom components and functional as some of them are fileuploads for example so I need to access them and get the files or do something by the submit. The form also have dynamic number of components. Let's say I have a list of people in the db, so when I get the whole list, I want to render a form with upload profile picture for all these people, also some other inputs... so in a loop, I'm listing all these input fields, so after fill in I want to submit the whole form, but right before submits I have to access the UploadedFile-s, which are wrapped in custom component with method which does this. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to call onSuccess in components from page
Hi everyone, I have a page with a couple of custom components in it, most of them are containing different inputs. In the page after all components I have submit button. By pressing the submit button I want to execute different things in the components. I thought the onSuccess methods in the components will be called, but they are not. I want to call some methods from the components but I can not access them, because these components are not injected in my java class, they are only injected in the tml file as markup, because it's being done inside a loop, they are dynamic number. Is there a way to fire event from the page and to be caught in the components? I saw only the onValidate is called everywhere, but onSuccess, onSubmit, etc. - not - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Inject dynamic number of components
Hi all, how can I inject and access dynamic number of custom components, I want to access them in the Java class. I have: loop t:myCustomComponent/ /loop I want to access these components as they are injected and to execute in the onSuccess for everyone of them some method as if it is a single component: @inject MyCustomComponent component; void onSuccess() { component.method(); } I want to the the same for dynamic number of components, created by the loop - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
how to implement login access
Hi, I want to create login page and validate the login against my db, which is easy and I have already implemented. But, how could I restrict the access to some pages if user is not verified, as it is possible to access some page by just writing ../pageName in the url? Thanks in advance! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Problem by editing form in loop
Hi, I have the following code: t:zone id=gamesZone t:id=gamesZone t:form t:id=gamesForm id=gamesForm t:zone=gamesZone t:Loop t:source=game.gameResultsByPeriod t:value=gameResult div class=t-beaneditor-row labelPeriod:/label ${gameResult.gamePeriod.name} /div div class=t-beaneditor-row labelFirst Team Goals/label t:textfield t:value=gameResult.firstTeamGoals/t:textfield /div div class=t-beaneditor-row labelSecond Team Goals/label t:textfield t:value=gameResult.secondTeamGoals/t:textfield /div /t:Loop div class=t-beaneditor-row input t:type=submit value=Save / /div /div /t:form /t:zone By pressing the submit, I receive Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException: Property 'gameResult' (within property expression 'gameResult.firstTeamGoals', of com.empters.football.pages.AdminPage@7752bd97) is null. [at classpath:com/empters/football/pages/AdminPage.tml, line 442] at org.apache.tapestry5.internal.bindings.PropBinding.set(PropBinding.java:76) [tapestry-core-5.3.7.jar:] at org.apache.tapestry5.internal.transform.ParameterWorker$3$1.writeToBinding(ParameterWorker.java:298) [tapestry-core-5.3.7.jar:] ... 85 more Caused by: java.lang.NullPointerException: Property 'gameResult' (within property expression 'gameResult.firstTeamGoals', of com.empters.football.pages.AdminPage@7752bd97) is null. at org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.nullTerm(PropertyConduitSourceImpl.java:1537) [tapestry-core-5.3.7.jar:] at $InternalPropertyConduit_1a24021095bb.navigate(Unknown Source) at $InternalPropertyConduit_1a24021095bb.set(Unknown Source)at org.apache.tapestry5.internal.bindings.PropBinding.set(PropBinding.java:72) [tapestry-core-5.3.7.jar:] ... 86 more - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
tapestryZone is not a function
Hi I have the following code: t:zone id=playerPenaltiesZone t:id=playerPenaltiesZone /t:zone t:select t:event=playerTeamChange t:model=prop:teamModel t:value=team zoneUpdater.zone=playerPenaltiesZone t:mixins=jquery/zoneUpdater t:clientEvent=change /t:select When I try change the select I see the folling in the firebug console: TypeError: $zone.tapestryZone is not a function zoneupdater.js (line 16) params : params Any Ideas? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
why is tynamo rich text editor overriding the datefield?
Hi I'm trying to create rich text edit form, so I want to use tynamo. I have the following code: div class=t-beaneditor-row labelDate:/label t:DateField t:value=date / /div div class=t-beaneditor-row t:textarea t:value=text t:mixins=tynamo/ckeditor parameters={'toolbar': 'Full'} / /div So the richtext field is shown and looks ok, but the datafield data picker disappeared. Removing the mixin and the data picker is there. What is overriding the datefield behavior and how to prevent this? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: why is tynamo rich text editor overriding the datefield?
No, that was the first thing I did, but the button is not in the dom. Removing the mixin and the date picker button is back therejavascript:SendMsg(); - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
beaneditor for complex object
Hi I'm trying to create edit form for my hibernate entities. For example: @Entity @Table(name = SOME_OBJECT) public class SomeObject implements Serializable { ... @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = SUB_OBJECT_ID, nullable = false) private SubObject subObject; ... } How could I create edit form for this entity, I tried this way: div class=t-beaneditor div t:beaneditor t:object=someOBject t:exclude=id / /div div t:beaneditor t:object=someOBject.subObject t:exclude=id / /div div class=t-beaneditor-row input t:type=submit value=Save / /div /div someOBject is marked as persisted, but the inner object bean edit form is not there Any ideas? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
PageActivationContext issue
Hi, I have the following code: class Page1 { @InjectPage private Page2 page2; ... Object onSuccessFrom...() { ... ListCat catList = new ArrayList... catList.add(cat1); catList.add(cat2); page2.setCatList(catList); return page2; } } class Page2 { @PageActivationContext @Property(write = false) private ListCat catList; public void setBaList(ListCat catList) { this.catList= catList; } void onActivate() { //catList is null } void onActivate(ListCat catList) { //catList is null } void setupRender() { //catList is null } } If I replace @PageActivationContext with @Persist, I see the list populated, but I don't understand how should I use the @PageActivationContext - Само сега спечели смартфон SAMSUNG и още много награди!виж http://www.specheli.eu/specheli-textgbg.php - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to implement simple error/exception handling
Hi, I read about exceptions and error handling in tapestry, but still can not find the best way, to send messages to front-end. I want to be able to send exception messages and error codes, as I can do it in jquary ajax success or error blocks. When I throw some custom exception I don't want to redirect to the exception page, but to show the message in pop-up to the user. Or to send different completion messages and to display them in dialogs. I managed to open dialogs with callbacks of ajax object as here: ajaxResponseRenderer.addCallback(new JavaScriptCallback() { @Override public void run(JavaScriptSupport javaScriptSupport) { javaScriptSupport.addScript(showErrorModal();); } }) , but still can not make it enough generic. And it is not working working when I submit the whole page. - Само сега спечели смартфон SAMSUNG и още много награди!виж http://www.specheli.eu/specheli-textgbg.php - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
pagereset breaks form submit
Hi I have a form which I submit, also have onSuccess, onFailure and onPassivate methods and they worked just fine until I put @PageReset void reset() { System.out.println(test); } Than by submitting the form, I see onSuccess or OnFailure, than onPassivate are executed and after them - 11:57:52,465 ERROR [org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler] (http--0.0.0.0-8080-1) Processing of request failed with uncaught exception: IS loopback: java.lang.RuntimeException: IS loopback ... onPassivate() - Само сега спечели смартфон SAMSUNG и още много награди!виж http://www.specheli.eu/specheli-textgbg.php - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: RE: How to add dinamic content
Yes, that's the idea, I want to add any number of components on a page without submitting the whole page. For example: I want some input fields and an Add button to click, which openes a component - some form with different input fields. By every click - new such inner form to be opened and the other unsubmitted content to be not lost, also the inputs of the prev opened inner forms, to be not lost. And in the and I will submit/save the whole page. Despite the page dynamic content creation, I'm confused with the mapping of the dynamic added inner components and the java fields. I'm OK with using zones, but as I see it, because of not loosing dynamic content of prev opened components, every time new zone will be needed. - Crazy days на eMAG.bg! До 50% намаление! Кога: 20,21,22 август http://www.emag.bg/cmpnew/crazy-days-20-august?utm_source=NetInfoutm_medium=abv.bgutm_content=text_linkutm_campaign=CrazyDaysAugust - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
exception handling
Hi, I want to create my custom exception handling, I saw there are a few ways to replace the Exception Report Page or override the RequestExceptionHandler and again replace the default page. But is it possible to handle only specific type of exceptions, or exceptions from specific pages or forms, and to leave the rest to the default? It will be best if it can be done to redirect diferent exceptions to different pages again depending on the concrete page or form where the exception is thrown Best Regards! - Само сега спечели смартфон SAMSUNG и още много награди!виж http://www.specheli.eu/specheli-textgbg.php - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
upload files an zone
Hi all, I'm new to tapestry and have the following issue. I have a form with upload field in it. I use: @Property @Persist private UploadedFile file; After executing a button action, I try to refresh a zone, out of the form, and to fill it with the file content. Without zone it works fine, but I do not want to refresh the whole page, just the dynamic content part, so I put the zone, but after that I got some problem with the file persistence - it's not persisted at all, when I try to access it, I got null pointer. Оригинално писмо От: nn kk Относно: How to add dinamic content До: users@tapestry.apache.org Изпратено на: Неделя, 2013, Август 18 14:28:32 EEST Hi all, I want to be able to create and insert component dynamicly. For example, I want to have quot;add buttonquot; and by every click to add whole new tapestry page or component. I don't know how many addings will I have, I want this to be handeled dynamicly. It's like using spring to return ModelAndView object by ajax request and inserting it in some UI container. - Само сега спечели смартфон SAMSUNG и още много награди!виж http://www.specheli.eu/specheli-textgbg.php - Само сега спечели смартфон SAMSUNG и още много награди!виж http://www.specheli.eu/specheli-textgbg.php - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to add dinamic content
Hi all, I want to be able to create and insert component dynamicly. For example, I want to have add button and by every click to add whole new tapestry page or component. I don't know how many addings will I have, I want this to be handeled dynamicly. It's like using spring to return ModelAndView object by ajax request and inserting it in some UI container. - Само сега спечели смартфон SAMSUNG и още много награди!виж http://www.specheli.eu/specheli-textgbg.php - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org