Re: Tapestry 5.1.0.5 FCKEDITOR PROBLEM
Hi, you can take a look at: http://kenai.com/projects/t5-easy-fckeditor The documentation lives here: http://t5-easy-fckeditor.kenai.com/ Please report any problems to http://kenai.com/jira/browse/T5_EASY_FCKEDITOR Or if you want to use the Chenillekit one then please report this problem to Chenillekit mailing list / issue tracking. - Ville Boban Stojanovski wrote: > > Hi > can someone tell me how to implement a fckeditor in a tapestry webapp. > > i use maven. > The Pom.XML is a bit large so ill paste just the fckeditor part > > > org.chenillekit > chenillekit-core > 1.2.0 > jar > false > > > org.chenillekit > chenillekit-tapestry > 1.2.0 > jar > false > > > Chenillekit has a FCKeditor. > > I tried to use it in my web app but i have a problem. > > the *.java page > > import org.chenillekit.tapestry.core.components.Editor; > > @Property > @Persist > private String testValue; > @Component(parameters = {"value=testValue", "width=100%"}) > private Editor editor; > > the *.tml part of the page > > > > this is a test input > > > ${testValue} > . > > > i get an error > > HTTP ERROR: 403 > > org/chenillekit/tapestry/core/components/fckeditor/editor/fckeditor.html > > RequestURI=/assets/classpath/959ef68b8f100eee/org/chenillekit/tapestry/core/components/fckeditor/editor/fckeditor.html > > Powered by Jetty:// > > can anyone give me some advice about fixing the problem? > > -- View this message in context: http://old.nabble.com/Tapestry-5.1.0.5-FCKEDITOR-PROBLEM-tp26717402p26723282.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
Locale switcher and exception reporter
I have an Error page which implements ExceptionReporter and intercepts all exceptions thrown by other pages. As every other page in my app, Error page contains locale switcher - user should be able to change language of displayed error message. (Locale switcher is part of Layout component). In examples on tapestry page, 'message' variable is persistent with FLASH strategy. But with this strategy error message doesn't survive locale change which is quite obvious because locale switcher links, which are defined this way: # ${locale.language} link to their containing page which is Error page, not the page which throws exception. Is there any method to handle exceptions with single Error page allowing user to change language of error message? -- View this message in context: http://old.nabble.com/Locale-switcher-and-exception-reporter-tp26719842p26719842.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: rendered as textfield ???
Thanks a lot! I had by mistake a TexField annotation in the java class for the password field! T5 has such a great error handling and perhaps an error should be thrown here pointing out the error. Anyway thanks a lot I have spent some time searching for this one /G 2009/12/9 Ulrich Stärk > You don't have a TextField password2 annotated with @Component in your page > class, do you? And you aren't manipulating the DOM in some way (either > server or client side)? > > Uli > > On 09.12.2009 21:18 schrieb Gunnar Eketrapp: > > Hi! >> >> I have a strange problem with ! For some reason this >> TML >> ... >> >> > class="formfield1input" value="password2" size="20" maxlength="20" >> onBlur="showPassword2()" /> >> >> ... renders this HTML ... >> >> > name=" >> password2" value="Lösenord*" size="20" maxlength="20" onblur=" >> showPassword2()"/> >> >> >> Can anyone come up with a reason why type is rendered as text and not >> password ? >> >> Thanks in advance! >> Gunnar Eketrapp >> (from a dark and wet Stockholm, Let's hope the climate conerence get us >> back >> to the snowy white winters I had as a child ...) >> >> > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
Tapestry 5.1.0.5 FCKEDITOR PROBLEM
Hi can someone tell me how to implement a fckeditor in a tapestry webapp. i use maven. The Pom.XML is a bit large so ill paste just the fckeditor part org.chenillekit chenillekit-core 1.2.0 jar false org.chenillekit chenillekit-tapestry 1.2.0 jar false Chenillekit has a FCKeditor. I tried to use it in my web app but i have a problem. the *.java page import org.chenillekit.tapestry.core.components.Editor; @Property @Persist private String testValue; @Component(parameters = {"value=testValue", "width=100%"}) private Editor editor; the *.tml part of the page this is a test input ${testValue} . i get an error HTTP ERROR: 403 org/chenillekit/tapestry/core/components/fckeditor/editor/fckeditor.html RequestURI=/assets/classpath/959ef68b8f100eee/org/chenillekit/tapestry/core/components/fckeditor/editor/fckeditor.html Powered by Jetty:// can anyone give me some advice about fixing the problem?
Re: t5 handling events by components, event handling sequence
> > I beg to differ. The framework itself does not use the session. If you're > using an onActivate()/onPassivate() method pair, you don't need to persist > the corresponding fields. ActionLink and EventLink preserve the page context as long as you provide it > to the context parameter. > After your post I made a small example again and this time it started to work without any passing context values to component or persisting context at page's level. I really dont know why I had so strange behaviours before and cannot reproduce them.. maybe I misspelled the onPasivate or something I really cant tell now. maybe I spent to much time on that before and was to tired to see the bug. anyway it works as it should be and how I wanted :) it to work so please accept my apologise about all bad things I said about framework :-) now it rocks ;] and I am really happy that finally I got the thing pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __
Re: Select does not submit form on change
Em Wed, 09 Dec 2009 16:10:44 -0200, Vangel V. Ajanovski escreveu: - t:id="my submit" - works AFAIK, t:id can't have a space on it. - id="my submit" does not work Does this mean that theoretically a single component can have two id-s? One tapestry id, and another non-tapestry one? Yes, and it has a purpose. When a component is put inside a Grid or Loop, it has one t:id, but each generated HTML tag a different id. t:id is a Tapestry component id. id is the HTML id. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: rendered as textfield ???
You don't have a TextField password2 annotated with @Component in your page class, do you? And you aren't manipulating the DOM in some way (either server or client side)? Uli On 09.12.2009 21:18 schrieb Gunnar Eketrapp: Hi! I have a strange problem with ! For some reason this TML ... ... renders this HTML ... Can anyone come up with a reason why type is rendered as text and not password ? Thanks in advance! Gunnar Eketrapp (from a dark and wet Stockholm, Let's hope the climate conerence get us back to the snowy white winters I had as a child ...) - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
rendered as textfield ???
Hi! I have a strange problem with ! For some reason this TML ... ... renders this HTML ... Can anyone come up with a reason why type is rendered as text and not password ? Thanks in advance! Gunnar Eketrapp (from a dark and wet Stockholm, Let's hope the climate conerence get us back to the snowy white winters I had as a child ...)
Re: Best practice for initializing page to default context
Opened https://issues.apache.org/jira/browse/TAP5-948 for it. Kalle On Tue, Dec 8, 2009 at 11:24 AM, Kalle Korhonen wrote: > On Tue, Dec 8, 2009 at 10:59 AM, Howard Lewis Ship wrote: >> I've had to solve this problem for one of my clients as well and I >> think it's something that should go into the framework. The approach >> I took was to identify self-referential links (page render links that >> are to the same page they originate from) using an additional query >> parameter. This allows Tapestry to differentiate between requests that >> start on a new page vs. those that continue on the page. Tapestry can >> then fire a notification on components to perform initialization (on >> page render requests without the query parameter). >> This would be a new lifecycle method, like pageAttached() or >> pageLoaded(). I'm still working on the right terminology, for Widen >> it is "initialized", as in method pageInitialized(). > > Thank you Howard, that would excellent. Until it's in the framework, > obviously you can get it done one way or another but framework support > would make things easier and more consistent. I'd hate to come up with > something that is half-there as an optional module if you are already > working on solving it at the core framework level. Sounds like there's > no issue open on it (?) - if not, I'll open one. > > Kalle > > >> On Mon, Dec 7, 2009 at 10:22 PM, Kalle Korhonen >> wrote: >>> Most things in T5 are delightfully simple, but I find this >>> surprisingly difficult: how to best initialize a page to default >>> context (and redirect to it). Imagine you have a search & result page. >>> If I access the page without any context I want all records to be >>> displayed. In onActivate() without parameters I set the context to >>> *all* and return this to redirect, then I query the database in >>> setupRender() to initialize the data for the grid. However, sorting >>> the grid will also cause a call to onActivate() without parameters, >>> resetting my data to the default context. The parameter-less call to >>> onActivate() would be harmless if I didn't do a redirect from >>> onActivate() but then I cannot set the default context and redirect. >>> In setupRender() I could decide whether redirect is needed or not but >>> at that time, I'm already committed to rendering the request. >>> >>> Because events cause a parameterless onActivate() call, I tend to >>> reserve onActivate() for possible component/event initialization needs >>> only and always link to pages with initial context already set. I also >>> find it roughly impossible to use overloaded versions of onActivate() >>> and subsequently, if my page has multiple entry points, I typically >>> resort to implementing it in a single onActivate(EventContext >>> eventContext) operation containing a big if-else clause. Since the >>> activation context is anyway sent with an event request (as in >>> ?t:ac=mycontext), rather than using the encoded context for rendering, >>> wouldn't it be just simpler if that context was used for activating >>> the page for the event request and the following redirect for >>> rendering would just use whatever context onPassivate() returns? What >>> do others think, how do you handle this? >>> >>> Kalle >>> >>> - >>> 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 >> >> > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Select does not submit form on change
On 09.12.2009 11:24, sandeepraj singh wrote: > Its because, when you do not assign t:id to a submit button, it assigns > name="submit" > which has a conflict with any other submit in your page(even through java > Script) > > i got it working with t:id="My Submit" then even on Change works. > Huh :( I never thought about putting t: prefix on id. - t:id="my submit" - works - id="my submit" does not work Does this mean that theoretically a single component can have two id-s? One tapestry id, and another non-tapestry one? smime.p7s Description: S/MIME Cryptographic Signature
Re: t5 handling events by components, event handling sequence
Em Wed, 09 Dec 2009 15:34:52 -0200, kamiseq escreveu: The session itself is extremely overused in the framework and it could be limited if only actionLink's call preserve page's context. I beg to differ. The framework itself does not use the session. If you're using an onActivate()/onPassivate() method pair, you don't need to persist the corresponding fields. ActionLink and EventLink preserve the page context as long as you provide it to the context parameter. By the way, when using redirect-after-post, any framework would need some session use to hold values between an action request and the subsequent render request. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: t5 handling events by components, event handling sequence
> > I don't understand what's your problem. Page activation context would >> always be kept between any requests of the same page, if you add the context >> that given to the tab component tot he page activation conetext, and provide >> the correct onActivate and onPassivate handler, there would be no problem at >> all. Everything should work. >> > > with onPasivate() you are totally right although it forces to set additional context value and onPassivate() at each page that uses the controller and contextfield needs to be @persist-ed in session. Contrary to that when you pass context value(s), while in page's onActive(..) , to component and then redirect with *pagerender.createPageRenderLinkWithContext * then at least the field can be persisted using flash type and you dont need additional code. Everything right, as long as the context value is passed to the tab > component. > It seems to me that the tab state is not preserved between requests. > > yes it is not, and what I noticed is that when using onPassivate then the action link gets ?t.ac=context_value so someone there has been thinking about that but went wrong way :| (at least in my opinion) The session itself is extremely overused in the framework and it could be limited if only actionLink's call preserve page's context. that are my thoughts about that and maybe I just think in wrong way -- pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __
Re: Select does not submit form on change
https://issues.apache.org/jira/browse/TAP5-947 On Wed, Dec 9, 2009 at 1:17 PM, sandeepraj singh < sandeepraj.si...@atosorigin.com> wrote: > > Hi Inge, > I am not able to raise the jira since i am sitting behind a firewall. > Do you mind raising it? > > Thanks > Sandeep > > > Inge Solvoll-2 wrote: > > > > I think this should be a JIRA issue in T5. If you don't specify an id for > > a > > submit, T5 generates name="submit", which breaks form javascript. T5 > > should > > generate a safe default name for submit component. > > > > On Wed, Dec 9, 2009 at 11:24 AM, sandeepraj singh < > > sandeepraj.si...@atosorigin.com> wrote: > > > >> > >> Hi, > >> > >> Its because, when you do not assign t:id to a submit button, it assigns > >> name="submit" > >> which has a conflict with any other submit in your page(even through > java > >> Script) > >> > >> i got it working with t:id="My Submit" then even on Change works. > >> > >> This is such an irritating error that we have put it our development > >> checklist to check that there is no submit button with name as submit. > >> > >> Thanks > >> sandeep > >> > >> > >> Mite wrote: > >> > > >> > I removed the submit button and it works indeed. > >> > Thank you for the answer. > >> > > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p26708037.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 > >> > >> > > > > > > -- > View this message in context: > http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p26709309.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: t5 handling events by components, event handling sequence
Em Wed, 09 Dec 2009 12:44:31 -0200, ningdh escreveu: I don't understand what's your problem. Page activation context would always be kept between any requests of the same page, if you add the context that given to the tab component tot he page activation conetext, and provide the correct onActivate and onPassivate handler, there would be no problem at all. Everything should work. Everything right, as long as the context value is passed to the tab component. It seems to me that the tab state is not preserved between requests. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: t5 handling events by components, event handling sequence
I don't understand what's your problem. Page activation context would always be kept between any requests of the same page, if you add the context that given to the tab component tot he page activation conetext, and provide the correct onActivate and onPassivate handler, there would be no problem at all. Everything should work. DH - Original Message - From: "kamiseq" To: "Tapestry users" Sent: Wednesday, December 09, 2009 6:40 PM Subject: Re: t5 handling events by components, event handling sequence yes eventually I did so *BUT* answering your question, it -in my opinion- how tab component renders doesn't depend on page context, because it just groups/organise content of the page and if removed page remains unchanged. component model depends on context but it is given by page and component is not aware where it came from. the context is needed here just to preserve the original context of the page that contains the component. so if tapestry rendered the actionLink from component like */myapp/user/1/index.tabnavigation.tabselect/tabVersions* and then redirect to page using original context */myapp/user/1 *there wouldnt be a problem. but it doesnt and you need pass additional values. maybe I am missing something here so if someone can clarify all this I would appreciate. 2009/12/9 Geoff Callender > Why don't you want to pass the page's context to the tab component? Isn't > the content of the tabs dependent on the value of the page's context? > > On 09/12/2009, at 4:46 AM, kamiseq wrote: > > > ok one more thing, my tabs are working great but let examine such a > usecase > > > > 1)I have user page with a grid of a user list > > 2)when user is selected I rerender the page with context specified by > grid > > element > > 3)my url then is something like myapp/user/1 and the tab control is > > displayed with 3 tabs (for example) > > 4)when I click a tab event is triggered to component and then it > redirects > > back to the page to rerender its context and here where the problem > occurs > > cos the link is incorrect and the initial selection is lost > > > > I figured out something like in tab component > > > > @Inject > > private PageRenderLinkSource pagerender; > > @Inject > > private ComponentResources resources; > > > > @OnEvent(component = "tabSelect") > > Object onTabActivated(String panelId) { > >this.activeTabInfo = new TabInfo(panelId); > > *return > > > pagerender.createPageRenderLinkWithContext(this.resources.getPage().getClass(), > > ??);* > > } > > > > and if I replace "??" with the initial context value (let say "1" > everything > > works fine - the question is where to get the initial page's context > from. > > > > maybe I can aquire it as well from ComponentResources as it seams that > > framework knows about it > > [INFO] AppModule.TimingFilter Request time: 3 ms > > 127.0.0.1 - - [08/gru/2009:17:15:06 +] > > "GET*/myapp/user/index.tabnavigation.tabselect/tabVersions HTTP/1.1" > > *302 0 *"http://localhost:8080/myapp/user/1"; > > .. > > *127.0.0.1 - - [08/gru/2009:17:15:06 +]* "GET /myapp/user > > HTTP/1.1"*200 1954 > > * "http://localhost:8080/myapp/user/1"* > > > > the page's Long onPasivate() doesn't help so I am a bit stuck here, and I > > dont want to pass page's context value to tab component > > > > pozdrawiam > > Paweł Kamiński > > > > kami...@gmail.com > > pkaminski@gmail.com > > __ > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __
Re: page name generating
There's a JIRA issue about this with a variety of ideas and discussion: https://issues.apache.org/jira/browse/TAP5-633 There really isn't a good answer to this at the moment, that I can see. The URL rewriting means you still need to use the "Page" postfix in .tml fies (e.g. for links), which I think is confusing. Currently, we're tending to use "View" as the postfix (e.g. ArticleView and UserView) because at least it resembles a REST-style verb in the URLs (as opposed to having the word "page" in the URL - which sucks), but it's really not ideal for us. Paul "Thiago H. de Paula Figueiredo" wrote on 08/12/2009 11:59:28: > Em Tue, 08 Dec 2009 08:40:34 -0200, Jan Jirout > escreveu: > > > Hi, > > Hi! > > > I think that both problems are related to "name stripping", but I don't > > know how to add new rules to this process. It seems to me, that "URL > > rewriting" doesn't help at all. > > URL rewriting is definitely the best solution to both your problems. Using > it, you have total control about your URLs. > > The "I woud like to use page names as ArticlePage and UserPage but in tml > file use refference to them as 'user' and 'article'" could be solved by > decorating or advising the ComponentSource and changing the parameter of > the getPage() method. I suggest you to not do that, as one of the beauties > of Tapestry is exactly that the page class, the template and how you > reference the page are all the same. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, 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 > --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
Re: [beginner] - PageLink doesn't work
Thanks :) I had wrong jars in my libraries. On jars *-5.1.0.5 everyting works good :) 2009/12/9, Inge Solvoll : > I'm guessing you have T5.0 installed. You have to install T5.1 to use 5.1 > schema. > > On Wed, Dec 9, 2009 at 1:29 PM, marioosh.net wrote: > >> 2009/12/9, Mario Udina : >> > hello! >> > >> > first of all you are using a >> > href="#" in the link indicates the page You are linking to, and the >> > quotation part is the location of the page. >> > hashmark indicates the current page. >> > >> > I use pagelinks like this: >> > >> > >> > >> > regards, >> > mario >> > >> > On Wed, Dec 9, 2009 at 12:25 PM, marioosh.net > >wrote: >> > >> >> I have PageLink like that: >> >> >> >> http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> >> >> ... >> >> go page2 >> >> ... >> >> >> >> >> >> I see link, but nothing happens when i click on it. >> >> >> >> -- >> >> Pozdrawiam, >> >> Mariusz >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> >> >> > >> >> This works. Link look like a link and i can click on it: >> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >>To Page2 >> >> >> But this doesn't work. Two links look like text and i can't click on them: >> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> >>To Page2 >>Page2 >> >> >> I'm beginner with tapestry5. >> What is going on with schemas ? >> >> -- >> Pozdrawiam, >> Mariusz >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > -- Pozdrawiam, Mariusz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [beginner] - PageLink doesn't work
I'm guessing you have T5.0 installed. You have to install T5.1 to use 5.1 schema. On Wed, Dec 9, 2009 at 1:29 PM, marioosh.net wrote: > 2009/12/9, Mario Udina : > > hello! > > > > first of all you are using a > > href="#" in the link indicates the page You are linking to, and the > > quotation part is the location of the page. > > hashmark indicates the current page. > > > > I use pagelinks like this: > > > > > > > > regards, > > mario > > > > On Wed, Dec 9, 2009 at 12:25 PM, marioosh.net >wrote: > > > >> I have PageLink like that: > >> > >> http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> > >> ... > >> go page2 > >> ... > >> > >> > >> I see link, but nothing happens when i click on it. > >> > >> -- > >> Pozdrawiam, > >> Mariusz > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >> For additional commands, e-mail: users-h...@tapestry.apache.org > >> > >> > > > > This works. Link look like a link and i can click on it: > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> >To Page2 > > > But this doesn't work. Two links look like text and i can't click on them: > http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> >To Page2 >Page2 > > > I'm beginner with tapestry5. > What is going on with schemas ? > > -- > Pozdrawiam, > Mariusz > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: [beginner] - PageLink doesn't work
2009/12/9, Mario Udina : > hello! > > first of all you are using a > href="#" in the link indicates the page You are linking to, and the > quotation part is the location of the page. > hashmark indicates the current page. > > I use pagelinks like this: > > > > regards, > mario > > On Wed, Dec 9, 2009 at 12:25 PM, marioosh.net wrote: > >> I have PageLink like that: >> >> http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> >> ... >> go page2 >> ... >> >> >> I see link, but nothing happens when i click on it. >> >> -- >> Pozdrawiam, >> Mariusz >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > This works. Link look like a link and i can click on it: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> To Page2 But this doesn't work. Two links look like text and i can't click on them: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> To Page2 Page2 I'm beginner with tapestry5. What is going on with schemas ? -- Pozdrawiam, Mariusz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [beginner] - PageLink doesn't work
Em Wed, 09 Dec 2009 09:48:21 -0200, marioosh.net escreveu: I'm starting with Tapestry. I choose 5 because is newer... and i suppouse is better ;) Right choice! Tapestry 5 is better and easier. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: Select does not submit form on change
Hi Inge, I am not able to raise the jira since i am sitting behind a firewall. Do you mind raising it? Thanks Sandeep Inge Solvoll-2 wrote: > > I think this should be a JIRA issue in T5. If you don't specify an id for > a > submit, T5 generates name="submit", which breaks form javascript. T5 > should > generate a safe default name for submit component. > > On Wed, Dec 9, 2009 at 11:24 AM, sandeepraj singh < > sandeepraj.si...@atosorigin.com> wrote: > >> >> Hi, >> >> Its because, when you do not assign t:id to a submit button, it assigns >> name="submit" >> which has a conflict with any other submit in your page(even through java >> Script) >> >> i got it working with t:id="My Submit" then even on Change works. >> >> This is such an irritating error that we have put it our development >> checklist to check that there is no submit button with name as submit. >> >> Thanks >> sandeep >> >> >> Mite wrote: >> > >> > I removed the submit button and it works indeed. >> > Thank you for the answer. >> > >> >> -- >> View this message in context: >> http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p26708037.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 >> >> > > -- View this message in context: http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p26709309.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: Select does not submit form on change
I think this should be a JIRA issue in T5. If you don't specify an id for a submit, T5 generates name="submit", which breaks form javascript. T5 should generate a safe default name for submit component. On Wed, Dec 9, 2009 at 11:24 AM, sandeepraj singh < sandeepraj.si...@atosorigin.com> wrote: > > Hi, > > Its because, when you do not assign t:id to a submit button, it assigns > name="submit" > which has a conflict with any other submit in your page(even through java > Script) > > i got it working with t:id="My Submit" then even on Change works. > > This is such an irritating error that we have put it our development > checklist to check that there is no submit button with name as submit. > > Thanks > sandeep > > > Mite wrote: > > > > I removed the submit button and it works indeed. > > Thank you for the answer. > > > > -- > View this message in context: > http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p26708037.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: [beginner] - PageLink doesn't work
I'm starting with Tapestry. I choose 5 because is newer... and i suppouse is better ;) 2009/12/9, Ulrich Stärk : > You are mixing things up here. jwc...@... was the syntax used by Tapestry 3 > and 4 while the XML > namespace declaration indicates that you want to use Tapestry 5 (although > you got the schema URL > wrong). So you might want to start over by telling us what version you are > using and what you want > to achieve. > > Uli > > On 09.12.2009 12:25 schrieb marioosh.net: >> I have PageLink like that: >> >> http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> >> ... >> go page2 >> ... >> >> >> I see link, but nothing happens when i click on it. >> > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Pozdrawiam, Mariusz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [beginner] - PageLink doesn't work
You are mixing things up here. jwc...@... was the syntax used by Tapestry 3 and 4 while the XML namespace declaration indicates that you want to use Tapestry 5 (although you got the schema URL wrong). So you might want to start over by telling us what version you are using and what you want to achieve. Uli On 09.12.2009 12:25 schrieb marioosh.net: I have PageLink like that: http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> ... go page2 ... I see link, but nothing happens when i click on it. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [beginner] - PageLink doesn't work
Hi! Em Wed, 09 Dec 2009 09:25:35 -0200, marioosh.net escreveu: I have PageLink like that: http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> The correct schema is http://tapestry.apache.org/schema/tapestry_5_1_0.xsd go page2 ... jwcid was used in Tapestry 4. If you're using Tapestry 5, use t:type="PageLink" t:page="page2"> -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: [beginner] - PageLink doesn't work
are you using T4 or T5? there have been some major changes. g, kris "marioosh.net" 09.12.2009 12:31 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema Re: [beginner] - PageLink doesn't work What do you mean check the source ? 2009/12/9, Ashwanth Kumar : > Use this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd > > - Ashwanth > > On Wed, Dec 9, 2009 at 4:55 PM, marioosh.net wrote: > >> I have PageLink like that: >> >> http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> >> ... >> go page2 >> ... >> >> >> I see link, but nothing happens when i click on it. >> >> -- >> Pozdrawiam, >> Mariusz >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > -- Pozdrawiam, Mariusz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [beginner] - PageLink doesn't work
What do you mean check the source ? 2009/12/9, Ashwanth Kumar : > Use this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd > > - Ashwanth > > On Wed, Dec 9, 2009 at 4:55 PM, marioosh.net wrote: > >> I have PageLink like that: >> >> http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> >> ... >> go page2 >> ... >> >> >> I see link, but nothing happens when i click on it. >> >> -- >> Pozdrawiam, >> Mariusz >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > -- Pozdrawiam, Mariusz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [beginner] - PageLink doesn't work
hello! first of all you are using a href="#" in the link indicates the page You are linking to, and the quotation part is the location of the page. hashmark indicates the current page. I use pagelinks like this: regards, mario On Wed, Dec 9, 2009 at 12:25 PM, marioosh.net wrote: > I have PageLink like that: > > http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> > ... > go page2 > ... > > > I see link, but nothing happens when i click on it. > > -- > Pozdrawiam, > Mariusz > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: [beginner] - PageLink doesn't work
Use this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd - Ashwanth On Wed, Dec 9, 2009 at 4:55 PM, marioosh.net wrote: > I have PageLink like that: > > http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> > ... > go page2 > ... > > > I see link, but nothing happens when i click on it. > > -- > Pozdrawiam, > Mariusz > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Login Filter,
Hi Thiago, I created my own AccessController dispatcher but i have entered into another problem One first access to any page, redirection to Login page happens but it is without any stylesheet. My order of configuration is configuration.add( "AccessController", accessController, "before:RootPath,before:ComponentEvent, before:PageRender, after:Asset,after:VirtualAsset"); While accessing the Login page directly via url in the browser, there is no problem of stylesheet Any pointers? Thanks sandeep Thiago H. de Paula Figueiredo wrote: > > Em Thu, 26 Nov 2009 07:27:16 -0200, Juan E. Maya > escreveu: > >> or Tapestry-Spring-Security Integration > > I don't recommend it because the checks are made in the setup render > event, *after* the activate (onActivate()) one. It does not cover action > requests, so I created my own one, Tapestry Security, not released yet. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, 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 > > > -- View this message in context: http://old.nabble.com/Login-Filter%2C-tp26525297p26708778.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: [beginner] - PageLink doesn't work
Did u chk the source?? - Ashwanth On Wed, Dec 9, 2009 at 4:55 PM, marioosh.net wrote: > I have PageLink like that: > > http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> > ... > go page2 > ... > > > I see link, but nothing happens when i click on it. > > -- > Pozdrawiam, > Mariusz > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
[beginner] - PageLink doesn't work
I have PageLink like that: http://tapestry.apache.org/schema/tapestry_5_0_2.xsd";> ... go page2 ... I see link, but nothing happens when i click on it. -- Pozdrawiam, Mariusz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5 handling events by components, event handling sequence
yes eventually I did so *BUT* answering your question, it -in my opinion- how tab component renders doesn't depend on page context, because it just groups/organise content of the page and if removed page remains unchanged. component model depends on context but it is given by page and component is not aware where it came from. the context is needed here just to preserve the original context of the page that contains the component. so if tapestry rendered the actionLink from component like */myapp/user/1/index.tabnavigation.tabselect/tabVersions* and then redirect to page using original context */myapp/user/1 *there wouldnt be a problem. but it doesnt and you need pass additional values. maybe I am missing something here so if someone can clarify all this I would appreciate. 2009/12/9 Geoff Callender > Why don't you want to pass the page's context to the tab component? Isn't > the content of the tabs dependent on the value of the page's context? > > On 09/12/2009, at 4:46 AM, kamiseq wrote: > > > ok one more thing, my tabs are working great but let examine such a > usecase > > > > 1)I have user page with a grid of a user list > > 2)when user is selected I rerender the page with context specified by > grid > > element > > 3)my url then is something like myapp/user/1 and the tab control is > > displayed with 3 tabs (for example) > > 4)when I click a tab event is triggered to component and then it > redirects > > back to the page to rerender its context and here where the problem > occurs > > cos the link is incorrect and the initial selection is lost > > > > I figured out something like in tab component > > > > @Inject > > private PageRenderLinkSource pagerender; > > @Inject > > private ComponentResources resources; > > > > @OnEvent(component = "tabSelect") > > Object onTabActivated(String panelId) { > >this.activeTabInfo = new TabInfo(panelId); > > *return > > > pagerender.createPageRenderLinkWithContext(this.resources.getPage().getClass(), > > ??);* > > } > > > > and if I replace "??" with the initial context value (let say "1" > everything > > works fine - the question is where to get the initial page's context > from. > > > > maybe I can aquire it as well from ComponentResources as it seams that > > framework knows about it > > [INFO] AppModule.TimingFilter Request time: 3 ms > > 127.0.0.1 - - [08/gru/2009:17:15:06 +] > > "GET*/myapp/user/index.tabnavigation.tabselect/tabVersions HTTP/1.1" > > *302 0 *"http://localhost:8080/myapp/user/1"; > > .. > > *127.0.0.1 - - [08/gru/2009:17:15:06 +]* "GET /myapp/user > > HTTP/1.1"*200 1954 > > * "http://localhost:8080/myapp/user/1"* > > > > the page's Long onPasivate() doesn't help so I am a bit stuck here, and I > > dont want to pass page's context value to tab component > > > > pozdrawiam > > Paweł Kamiński > > > > kami...@gmail.com > > pkaminski@gmail.com > > __ > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __
Re: Select does not submit form on change
Hi, Its because, when you do not assign t:id to a submit button, it assigns name="submit" which has a conflict with any other submit in your page(even through java Script) i got it working with t:id="My Submit" then even on Change works. This is such an irritating error that we have put it our development checklist to check that there is no submit button with name as submit. Thanks sandeep Mite wrote: > > I removed the submit button and it works indeed. > Thank you for the answer. > -- View this message in context: http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p26708037.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: Select does not submit form on change
What was your way out mite.How did you get it working But anyways, do you think writing a java script for submitting a select should be the ideal way that it should be working? Thanks Sandeep Mite wrote: > > At last. This way works. > > This is the second time you get me out of the mud. :) > Thank you > -- View this message in context: http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p26707889.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: Select does not submit form on change
I solved this problem just a few weeks ago myself :) It is a very bad bug that is very hard to track down, the only error is "submit is not a function". The solution is to assign an id to your submit button, like this: . You should always do that anyway, it makes code clearer and it is easier to test with tools like selenium. On Wed, Dec 9, 2009 at 1:33 AM, Vangel V. Ajanovski wrote: > Sorry, but there might be some problem with the mailing list, my message > was considered as a SPAM and first the text was removed from the > message, and the next time I got info that it was considered as SPAM. > > I am sending the message again. > > On 08.12.2009 02:47, Mite wrote: > > I have written this code so far: > > > > > > > labelField="literal:courseId" onChange="form.submit();"/> > > > > > > > > This issue is not really a problem of Tapestry, this is a Javascript > browser implementation problem. > In my code sample this works in IE 8, and it does not work in Firefox > 3.6 or Opera 10 > > Take the submit button out, and it will work with no problem. > > So, What exactly happens in for example Firefox is that when you add a > Submit button, the Submit() function is overriden with the Submit button > and it becomes a property. > Now the form.submit is not the function for submitting any more, but in > fact now it is the submit button itself. > > I think that I never ever had a need to use a button and a list for > submitting at the same time, so I never saw this as a problem. > > But, the bad thing is that here Thiago's solution does not help - with > it I get an >Event.observe is not a function > And now it does not work even in IE. > >