Re: AssetExternaliser in 4.1.2
It actually saved the content of the assets in a specified directory, so they'd be served by Apache rather than tomcat L. Jesse Kuhnert a écrit : I've never really used T3 (other than the progression of alpha/beta builds from T3->T4 when I first found it ) - what exactly did externalizing an asset mean? On 7/21/07, Lionel Touati <[EMAIL PROTECTED]> wrote: Hi List, In Tapestry 3, there was the ability to externalize assets on the web server to avoid contention on the Tomcat instance. Apparently this feature does not exist anymore. Is this something I've missed, or a requirement for V4 ? Thanks for your feedback - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry5 and WebSphere6.1
Hi That's very nice that you've posted your web.xml here, it seems somehow strange for me because I woudln't expect filter without any servlets inside. I've checked tapestry quickstart and it seems that the same configuration there. I guess here is minor differences in the servlet container implementation are the problem, usually client specified web.xml is kind of extending vendor provided web.xml which for WS might be a bit different. Try to create a fake servlet that will accept everything "/*" and run example again. Renat On 24/07/07, yosemite <[EMAIL PROTECTED]> wrote: > > Hello Renat, > > thank you for your interest. This is what I got: > > > xmlns="http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> > TestWeb > > > tapestry.app-package > cz.test > > > > TapestryFilter > TapestryFilter > > org.apache.tapestry.TapestryFilter > > > TapestryFilter > /* > > > index.jsp > > > My Start.html and Start.class are in > > \profiles\AppSrv01\installedApps\MyPCNode01Cell\TestApp.ear\TestWeb.war\WEB-INF\classes\cz\test\ > > then javassist.jar, tapestry-core-5.0.5.jar, tapestry-ioc-5.0.5.jar and > testng-5.1-jdk15.jar are in > > \profiles\AppSrv01\installedApps\MyPCNode01Cell\TestApp.ear\TestWeb.war\WEB-INF\lib\ > > Because http://localhost:9080/TestWeb/start gives me HTTP 404 - File not > found I have another > > \profiles\AppSrv01\installedApps\MyPCNode01Cell\TestApp.ear\TestWeb.war\WEB-INF\Start.html > and > \profiles\AppSrv01\installedApps\MyPCNode01Cell\TestApp.ear\TestWeb.war\Start.html > > but still HTTP 404. There is also > > \profiles\AppSrv01\installedApps\MyPCNode01Cell\TestApp.ear\TestWeb.war\index.jsp > > which works perfect and this guy gets the TapestryFilter invoked, each > index.jsp invokation displays a message to console: > > org.apache.tapestry.services.TapestryModule.RequestGlobals - Invoking > constructor org.apache.tapestry.internal.services.RequestGlobalsImpl() (at > RequestGlobalsImpl.java:31). > [24.7.07 11:38:05:921 SELČ] 0021 SystemOut O 1389031 [WebContainer : > 3] DEBUG org.apache.tapestry.ioc.services.TapestryIOCModule.ThreadLocale - > Invoking constructor > org.apache.tapestry.ioc.internal.services.ThreadLocaleImpl() (at > ThreadLocaleImpl.java:26). > > Thanks for any comment > Karel > > ___ > > Renat Zubairov wrote: > > > > Hi > > > > Could you may be post your web.xml here because 404 means that > > servelet mappings might be incorrect. Otherwise it's very strange. > > > > Renat > > > > On 23/07/07, yosemite <[EMAIL PROTECTED]> wrote: > >> > >> Hello, > >> > >> thanks. Security on WebSphere is turned off. I also tried to modify to > >> was.policy with no success: > >> > >> grant codeBase "file:${application}" { > >> permission java.security.AllPermission; > >> }; > >> > >> Funny thing is that a default welcome jsp gets displayed OK and Tapestry > >> filter seems to get invoked OK because > >> http://localhost:9080/TestWeb/index.jsp displays: > >> > >> [WebContainer : 2] DEBUG > >> org.apache.tapestry.ioc.services.TapestryIOCModule.ThreadLocale - > >> Invoking > >> constructor org.apache.tapestry.ioc.internal.services.ThreadLocaleImpl() > >> (at > >> ThreadLocaleImpl.java:26). > >> > >> in the console; while anything like http://localhost:9080/TestWeb/start > >> says > >> HTTP 404 - File not found. > >> > >> Maybe deployment descriptor mapping > >> > >> > >> > >> tapestry.app-package > >> cz.test > >> > >> > >> works different in WebSphere? I have packaged my Tapestry class and html > >> into > >> TestApp.ear\TestWeb.war\WEB-INF\classes\ and Tapestry cannot find it > >> there? > >> > >> Karel > >> > >> > >> > >> Renat Zubairov wrote: > >> > > >> > Hi > >> > > >> > Is security on the WebSphere on? > >> > > >> > I had significant problems in WS 5 with Security ON because of > >> > Javassist bug with classloaders. > >> > > >> > Renat > >> > > >> > On 20/07/07, yosemite <[EMAIL PROTECTED]> wrote: > >> >> > >> >> Hello everybody, > >> >> > >> >> I tried to deploy a T5 application that works fine on Jetty and Tomcat > >> >> onto > >> >> WebSphere 6.1.0.3, and although the app deploys OK, TapestryFilter > >> does > >> >> not > >> >> get invoked on url-patterrn /* so I get HTTP 404. > >> >> > >> >> SystemOut.log contains lines like > >> >> ... [WebContainer : 1] DEBUG > >> >> org.apache.tapestry.ioc.services.TapestryIOCModule.ClassFactory - > >> >> Creating > >> >> class from ClassFab[ > >> >> public class $ServletApplicationInitializer_113e33644e7 extends > >> >> java.lang.Object > >> >> implements > >> org.apache.tapestry.services.ServletApplicationIniti
Re: T3: loosing the User object as soon as the edit action is invoked?
Sure, the old data persists until it is changed. When you want a new user, you need to create it somewhere, eg: >public void userNewAction(IRequestCycle cycle) { > > UserEdit nextPage = (UserEdit) cycle.getPage("UserEdit"); > nextPage.setUserId(0); --> nextPage.setUser(new EfiUser()); // need to init this obj? > nextPage.setNewUser(true); > cycle.activate(nextPage); Cheers, Nick. Nazmul Bhuiyan wrote: After making the EfiUser persist in the UserEdit.page the edit works fine but after editing one user if I want to add a new user then the page get populated the previous user. I’m setting user to the EditUser page only in edit action. But in new action I’m not setting any user but still it is getting the previous user. Note I’m using same page for add and update. There must be something that I’m doing wrong in pageBeginRender method. please look at the following code below? UserListActive page invoke the action below and set the user to the UserEdit page accordingly: public void userNewAction(IRequestCycle cycle) { UserEdit nextPage = (UserEdit) cycle.getPage("UserEdit"); nextPage.setUserId(0); nextPage.setNewUser(true); cycle.activate(nextPage); } public void userEditAction(IRequestCycle cycle) { UserEdit nextPage = (UserEdit) cycle.getPage("UserEdit"); Object[] parameters = cycle.getServiceParameters(); int id = ((Integer) parameters[0]).intValue(); EfiUser user = EfiUserDAO.getEfiUserById(id); nextPage.setUser(user); nextPage.setNewUser(false); cycle.activate(nextPage); } Page spec: UserEdit page: public void pageBeginRender(PageEvent event) { if (!getNewUser() && !event.getRequestCycle().isRewinding()) { EfiUser user = getUser(); setActiveDate(getUser().getUsrActiveDate().getTime()); if (getUser().getUsrExpiryDate() != null) { setExpiryDate(getUser().getUsrExpiryDate().getTime()); } } else { userLoggedIn = AuthorisationUtil.getNormalisedRemoteUserName(event); if (getUser() == null) { setUser(new EfiUser()); } } } Thanks Naz Nick Westgate wrote: How is the User object persisted? (What relates to it in your UserEdit.page file?) Cheers, Nick. Nazmul Bhuiyan wrote: I’m loosing the User object as soon as the edit action is invoked? I’m setting an object (e.g. User) in page UserMaint.java to the page UserEdit.java. UserMaint.java public void userEditAction(IRequestCycle cycle) { UserEdit nextPage = (UserEdit) cycle.getPage("UserEdit"); Object[] parameters = cycle.getServiceParameters(); int id = ((Integer) parameters[0]).intValue(); EfiUser user = EfiUserDAO.getEfiUserById(id); nextPage.setUser(user); nextPage.setNewUser(false); cycle.activate(nextPage); } In pageBeginRender method of UserEdit shows the User object with all the attributes: UserEdit.java public abstract void setUser(EfiUser user); public abstract EfiUser getUser() public void pageBeginRender(PageEvent event) { if (!getNewUser() && !event.getRequestCycle().isRewinding()) { System.out.println("Inside pageBeginRender.."); System.out.println("user: " + getUser()); System.out.println("ID: " + getUser().getUsrUserId()); . . etc } } >From Debug: Inside pageBeginRender.. user: [EMAIL PROTECTED] ID: 1 But in the updateUser method the User object is different and the fields I don’t want to update are null. UserEdit.java public void updateUser(IRequestCycle cycle) { System.out.println("In updateUser"); IValidationDelegate delegate = getValidationDelegate(); //HibernateUtil.restartSession(); System.out.println("Inside updateUser.."); System.out.println("user: " + getUser()); System.out.println("ID: " + getUser().getUsrUserId()); . . etc } >From Debug: Inside updateUser.. user: [EMAIL PROTECTED] ID: 0 Please help. Naz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Redirecting to out-of-tapestry page
'cause Howard told me not to use internal classes :) I simply extended the Link interface myself. Pretty much like the ACEGI trick. Bill On 7/25/07, Daniel Jue <[EMAIL PROTECTED]> wrote: Can you share your implementation? Is there a reason you couldn't return a link as used on the wiki's Acegi tutorial? http://wiki.apache.org/tapestry/Tapestry5LinkingToNonTapestryURIs On 7/24/07, Bill Holloway <[EMAIL PROTECTED]> wrote: > Got it going with my own implementation of Link. > > bill > > On 7/23/07, Nick Westgate <[EMAIL PROTECTED]> wrote: > > > > Probably the best way would be a new method on ComponentResourcesCommon > > to get an external link, or an ExternalLink class or something. > > > > In the meantime see if you can return a new LinkImpl() with what you need. > > > > Cheers, > > Nick. > > > > > > Bill Holloway wrote: > > > Apologies if this has already been asked, but I need to redirect from a > > > page's onActivate() to a page on another site altogether. What's the > > best > > > technique? > > > > > > bill > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T3: loosing the User object as soon as the edit action is invoked?
After making the EfiUser persist in the UserEdit.page the edit works fine but after editing one user if I want to add a new user then the page get populated the previous user. I’m setting user to the EditUser page only in edit action. But in new action I’m not setting any user but still it is getting the previous user. Note I’m using same page for add and update. There must be something that I’m doing wrong in pageBeginRender method. please look at the following code below? UserListActive page invoke the action below and set the user to the UserEdit page accordingly: public void userNewAction(IRequestCycle cycle) { UserEdit nextPage = (UserEdit) cycle.getPage("UserEdit"); nextPage.setUserId(0); nextPage.setNewUser(true); cycle.activate(nextPage); } public void userEditAction(IRequestCycle cycle) { UserEdit nextPage = (UserEdit) cycle.getPage("UserEdit"); Object[] parameters = cycle.getServiceParameters(); int id = ((Integer) parameters[0]).intValue(); EfiUser user = EfiUserDAO.getEfiUserById(id); nextPage.setUser(user); nextPage.setNewUser(false); cycle.activate(nextPage); } Page spec: UserEdit page: public void pageBeginRender(PageEvent event) { if (!getNewUser() && !event.getRequestCycle().isRewinding()) { EfiUser user = getUser(); setActiveDate(getUser().getUsrActiveDate().getTime()); if (getUser().getUsrExpiryDate() != null) { setExpiryDate(getUser().getUsrExpiryDate().getTime()); } } else { userLoggedIn = AuthorisationUtil.getNormalisedRemoteUserName(event); if (getUser() == null) { setUser(new EfiUser()); } } } Thanks Naz Nick Westgate wrote: > > How is the User object persisted? > (What relates to it in your UserEdit.page file?) > > Cheers, > Nick. > > > Nazmul Bhuiyan wrote: >> I’m loosing the User object as soon as the edit action is invoked? >> >> I’m setting an object (e.g. User) in page UserMaint.java to the page >> UserEdit.java. >> >> UserMaint.java >> >> public void userEditAction(IRequestCycle cycle) { >> UserEdit nextPage = (UserEdit) cycle.getPage("UserEdit"); >> Object[] parameters = cycle.getServiceParameters(); >> int id = ((Integer) parameters[0]).intValue(); >> >> EfiUser user = EfiUserDAO.getEfiUserById(id); >> >> nextPage.setUser(user); >> nextPage.setNewUser(false); >> cycle.activate(nextPage); >> } >> >> In pageBeginRender method of UserEdit shows the User object with all the >> attributes: >> >> UserEdit.java >> >> public abstract void setUser(EfiUser user); >> public abstract EfiUser getUser() >> >> public void pageBeginRender(PageEvent event) { >> >> if (!getNewUser() && !event.getRequestCycle().isRewinding()) { >> >> System.out.println("Inside pageBeginRender.."); >> System.out.println("user: " + getUser()); >> System.out.println("ID: " + getUser().getUsrUserId()); >> . >> . >> etc >> } >> } >> >>>From Debug: >> Inside pageBeginRender.. >> user: [EMAIL PROTECTED] >> ID: 1 >> >> But in the updateUser method the User object is different and the fields >> I >> don’t want to update are null. >> >> UserEdit.java >> >> public void updateUser(IRequestCycle cycle) { >> System.out.println("In updateUser"); >> >> IValidationDelegate delegate = getValidationDelegate(); >> >> //HibernateUtil.restartSession(); >> >> System.out.println("Inside updateUser.."); >> System.out.println("user: " + getUser()); >> System.out.println("ID: " + getUser().getUsrUserId()); >> . >> . >> etc >> } >> >>>From Debug: >> Inside updateUser.. >> user: [EMAIL PROTECTED] >> ID: 0 >> >> Please help. >> >> Naz > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T3%3A-loosing-the-User-object-as-soon-as-the-edit-action-is-invoked--tf4133892.html#a11804499 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ajax question
Yea! "..because they are evil bastards" +1 On 7/26/07, Marcus Schulte <[EMAIL PROTECTED]> wrote: - at least, that's a pretty decent reason, isn't it? 2007/7/26, Jesse Kuhnert <[EMAIL PROTECTED]>: > > IE won't let you do it. ..because they are evil bastards. > > On 7/25/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: > > > > Does anybody know if there are some problems in updating a tbody element > > when performing an ajax request? > > > > Thx, > > kiuma > > > > > > -- > Jesse Kuhnert > Tapestry/Dojo team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > -- Marcus Schulte http://marcus-schulte.blogspot.com
Re: ajax question
- at least, that's a pretty decent reason, isn't it? 2007/7/26, Jesse Kuhnert <[EMAIL PROTECTED]>: IE won't let you do it. ..because they are evil bastards. On 7/25/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: > > Does anybody know if there are some problems in updating a tbody element > when performing an ajax request? > > Thx, > kiuma > -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- Marcus Schulte http://marcus-schulte.blogspot.com
Re: [T4] about component id
Look at the "How client ids are generated" section here: http://tapestry.apache.org/tapestry4.1/ajax/basics.html It's all covered in excruciating detail. The gist of it is that you do this: public void renderSomething(){ super.renderIdAttribute(writer, cycle); } and everything else gets handled for you. On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Igor Drobiazko a écrit : > Well, your component looks somehow strange to me. I don't see what it > should > do. > However id="checkbox" is written when your contained checkbox is > rendered. > That's expected behavior. Your own component does nothing except > registering > to the group. So why do you expect id="ckL1"? Because it will do something soon ... :-) Perhaps it is not a good practice to force the clientId for a component. Thanks for your time ! cyrille > > On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: >> >> Igor Drobiazko a écrit : >> > It is inpossible to help you without having a look into your >> > GroupableCheckbox.java and GroupableCheckbox.html >> > Please post it. >> Ha! That's another story, a more complex problem ;-) >> After relearned Ids concept, I can talk to you about the component >> GroupableCheckbox which I try to construct. >> >> The rendered version of the concept/need is looking like (where "x" are >> checkboxes) : >> x List1 >>x List1Choice1 >>x List1Choice2 >> x List2 >>x List2Choice1 >>x List2Choice2 >> With those constraints : >> 1/ you can select list's choices only in the selected list. eg: is List1 >> is selected you can choice List1Choice1 or List1Choice2 but not >> List2Choice1 or List2Choice2 >> 2/ The validation must be done on the client-side *without* any >> communication with the server, but the validation has to exist on the >> server to check validity at form's submit. >> 3/ I do not want to have encapsulation of component html tags like the >> CheckboxGroup component do. This constraint is to let free html >> designer. >> >> I've not yet many sources to show because I've to learning and find many >> stuff to complete this 3 constraints. At first I've to verify that the >> third constraint is possible ... >> For da moment I've got : >> >> >> TestGroupableCheckbox.html : >> >> >> >> L1 > value="L1" /> >> >> L1C1> value="0" group="component:ckL1" /> >> L1C2> value="ognl:null" group="component:ckL1" /> >> L1C3> group="component:ckL1" /> >> >> >> >> GroupableCheckbox.html : >> >> >> >> >> >> >> GroupableCheckbox.jwc : >> >> > PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0 >> //EN" >> "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";> >> >> > class="web.components.mycomps.GroupableCheckbox" >> allow-body="no" >> allow-informal-parameters="yes" > >> >> >> A checkbox whose state may be controlled/validated by an other >> checkbox which acting as a checkbox group controler. >> >> >> >> >> >> >> >> >> Specifies the GroupableCheckbox this component belongs to. >> >> >> >> > inherit-informal-parameters="yes"> >> >> >> >> >> >> >> >> >> >> >> >> And the UGLY java file. I'm just at the time of tracing all calls to >> learn more on cycle... >> GroupableCheckbox.java : >> >> public abstract class GroupableCheckbox extends BaseComponent >> { >> public abstract Object getGroup(); >> public abstract Collection getSubCheckboxesId() ; >> public void registerSubCheckbox( GroupableCheckbox groupableCheckbox) >> { >> getSubCheckboxesId().add( groupableCheckbox ); >> } >> protected void renderComponent( IMarkupWriter writer, IRequestCycle >> cycle >> ) >> { >> log.info( "*** renderComponent()" ); >> log.info( "getBoundId: "+this.getBoundId() ); >> log.info( "id: "+this.getId()+", clientId: >> "+this.getClientId()+", specifiedId: "+this.getSpecifiedId() ); >> log.info( "getIdPath: "+this.getIdPath() + ", getExtendedId: >> "+this.getExtendedId() ); >> Object group = this.getGroup(); >> log.info( "group: "+group ); >> if( group != null ) >> { >> ((GroupableCheckbox)group).registerSubCheckbox( this ); >> } >> super.renderComponent( writer, cycle ); >> } >> ... >> ... Overrided methods with log.info("methodName") >> ... >> } >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: T4.1.2 id bug?
I think Andreas has some kind of multi-form-factory-generator-thinger but I have no idea how it should be used. I still think it seems like a core bug that should just be fixed and dealt with by default but I haven't looked at it in a while. maybe Andy has some thoughts? Besides that, if you would file a bug (if one doesn't exist - I think one does in this case) it would be helpful. On 7/25/07, Peter Schröder <[EMAIL PROTECTED]> wrote: hi, i have 2 forms, both should be submitted via ajax. 1. one is in my home.html and should be submitted using a submit-component: 2. one is in a subcomponent and should also be submitted via submit-component: this renders to two submits, both with id 'Submit': ... and because auf this, dojo can not submit the 2. form via ajax, cause it is listening for the other submit with the id of 'Submit'. kind regards, peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Upload file component(async problem)
It hasn't. On 7/25/07, Networm <[EMAIL PROTECTED]> wrote: I want to know in which version of Tapestry this bug has been fixed .Thanks! -- View this message in context: http://www.nabble.com/Upload-file-component%28async-problem%29-tf3361721.html#a11781685 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: ajax question
IE won't let you do it. ..because they are evil bastards. On 7/25/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: Does anybody know if there are some problems in updating a tbody element when performing an ajax request? Thx, kiuma -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Page render after the rewind
You can just call : public void pageBeginRender(PageEvent event) { event.getRequestCycle().isRewinding(); } If you need to know if something "has rewound" after the fact I think the only logical next question is "why" ? It indicates that you are probably attacking whatever problem you are handling the wrong way. On 7/25/07, talk.small <[EMAIL PROTECTED]> wrote: Hi, Ben Thanks for your reply, that is also exactly what I am doing now, I am also wondering if there is a Tapestry API for this functionality. talk small Ben Dotte-2 wrote: > > Do all of your pages extend from a common base page of your own? In > the base page you could set a transient page property during rewind > indicating a rewind had occurred, then check that again during render. > Something like this: > > public abstract boolean isFromRewind(); > public abstract void setFromRewind(boolean val); > > public void pageBeginRender() > { > if (getRequestCycle().isRewinding()) > { > setFromRewind(true); > } > else > { > if (isFromRewind()) > { > // We got here from a rewind > } > } > } > > HTH > > Ben > > On 7/24/07, talk.small <[EMAIL PROTECTED]> wrote: >> >> I want to determine in pageBeginRender whether the current rendering of a >> page is from a rewound page, any thoughs? Thanks. >> -- >> View this message in context: >> http://www.nabble.com/Page-render-after-the-rewind-tf4136080.html#a11763349 >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Page-render-after-the-rewind-tf4136080.html#a11776411 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: t4.1.2 internet explorer only issue with cycle.getResponseBuilder().updateComponent("foo")
Even with client side debugging turned on you don't see any problems? (ie debugEnabled=true for Shell or equivalent) If you are targeting elements="someId" I guess things could get a little squirrelly as I don't personally do that very often. There should be ~something~ that comes out of the client side debugging (which works in a slightly less friendly way in IE - but still works). I like to use fiddler for IE development as well - www.fiddler2.com. I think some of the microsoft developers use it for ie development too so you know it has to be good. ;) (it shows various kinds of information in the request / response on the browser side - just to give you a sanity check on what content exactly is being returned by the server and such) The combination of fiddler && client side debugging being turned on (preferably with a log level of DEBUG) should reveal whether there is a problem on the server or the client side. It's probably on the server but I guess it's possible it's on the client in core.js . On 7/24/07, Anna Vo <[EMAIL PROTECTED]> wrote: I've been using IE Developer Toolbar and there are no script errors and the elements with the proper IDs are found on the page using the @Any component. I noticed Shing sent this link out in his reply to tabs supporting listeners post (sent 7/23/07 "The following has an example (in Tap 4.1.2).") and this example also does not work in IE7. http://lombok.demon.co.uk/tapestry41Demo/pages/eventlistener/TestELOncli ck.html Using SysOuts the page parameters are set and persisted, the BrowserEvent sends back the right target id and the event name and it does another sysout when it gets past the cycle.getResponseBuilder().updateComponent("blah") so it seems like IE is doing everything except updating the component. I also tried adding a submitForm="formName) to the EventListener in case there was a regression (saw that in some other post) but that did not help either. Any other things I can try? Anna -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Friday, July 20, 2007 6:47 PM To: Tapestry users Subject: Re: t4.1.2 internet explorer only issue with cycle.getResponseBuilder().updateComponent("foo") Nothing would change on the server side for any specific browser (except maybe with asset cache handling) - so I'd turn on client side debugging and see what happens? (and also install micro$oft script debugger - http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4 569-b3c4-dffdf19ccd99&displaylang=en) On 7/20/07, Anna Vo <[EMAIL PROTECTED]> wrote: > > I have a property selection that when selected updates a page property > and then a few components. In Safari and FF (mac and pc) everything > works, but when I test in IE7 and IE6 it does everything (sets the page > property) but then fails to update the specified components (some text > and some form elements). Basically it seems to not be doing anything > with cycle.getResponseBuilder().updateComponent(). Has anyone run into > this? > > Sample Code: > @EventListener(targets="theSelectId", events="onchange") > public void doFooSelected(IRequestCycle cycle) > { > setSomeId(getCurrentOptionValue().getId()); > cycle.getResponseBuilder().updateComponent("someId"); > cycle.getResponseBuilder().updateComponent("someId2"); > } > > > Some text > > > > Form component > > > success="listener:doFooSelected"> > > value="ognl:currentOptionValue" model="ognl:someModel" /> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Editable table and DirectLink
If you feel like living on the edge (not really, but it's a snapshot build) - the InlineEditBox supports listener/parameter stuff and allows you to do this sort of thing you are doing. (I think? ) http://tapestry.apache.org/tapestry4.1/components/dojo/inlineeditbox.html On 7/23/07, Ying Lee <[EMAIL PROTECTED]> wrote: Thanks for replying! I haven't tried this approach, but I will give it a shot. The difficulty here is that how do I get the "valueFromInputField"? Since each row has its own TextField that accepts input, and I think that Tapestry will automatically assign unique ID (correct me if I am wrong) for each textfield, so the javascript must need to know which row's DirectLink is being clicked on, and then what is the "counter" that is used by Tapestry to construct the textfield DOM component's ID, and then I can use that ID to get the component's input value... I will think a little bit in this direction and if I find a solution I will let you all know.. Also other suggestions are still welcome! Ron >From: Shing Hing Man <[EMAIL PROTECTED]> >Reply-To: "Tapestry users" >To: Tapestry users >Subject: Re: Editable table and DirectLink >Date: Mon, 23 Jul 2007 13:05:04 -0700 (PDT) > >Have you tried the following ? > > >function append() { > window.location = >document.anchors.link1.href+"&sp=s"+valueFromInputField >} > > > >onclick="append()">foo > >where append() is a javascript function that >appends the value of your input field to the >Directlink >URL. > >Shing > > >--- Ying Lee <[EMAIL PROTECTED]> wrote: > > > Greetings all, > > > > I am using Tapestry 4.0 and trying to make a simple > > shopping area that shows > > a table of items, and each row has a textfield where > > users can input the > > quantity they want to buy, and I want to add a > > DirectLink for each row so > > that it will send a purchase action for that > > particular item, pretty > > standard stuff. > > > > I am able to embed the item ID in the DirectLink > > parameter list (using > > "parameters" attribute), but I could not get the > > user input for the Quantity > > textfield once the link calls the Listener. > > > > I can wrap the table in a form, then put a submit > > button to submit all > > changes altogether, in that case I would look at the > > data in my > > implementation of IBasicTableModel (which queries > > the database, and store > > the data in a list) and see which row has a non-zero > > quantity value, which > > indicates the user wants to purchase that particular > > item in the specified > > quantity. However I also want to provide user the > > option to purchase each > > item individually by clicking on the DirectLink at > > the end of the row. > > > > I notice the HTML of the DirectLink has my itemID > > encoded, so how can I get > > the Quantity value at runtime encode in the link as > > parameters?? The values > > of editable fields in a form are not submitted to > > the page's until the > > "submit" button is pressed > > > > thx. > > > > Ron > > > > >_ > > Learn English via Shopping Game, FREE! > > >http://www.linguaphonenet.com/BannerTrack.asp?EMSCode=MSN06-03ETFJ-0211E > > > > > > >- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > >Home page : http://www.lombok.demon.co.uk/ > > > > ___ >Yahoo! Mail is the world's favourite email. Don't settle for less, sign up >for >your free account today > http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _ Get 10Mb extra storage for MSN Hotmail. Subscribe Now! http://join.msn.com/?pgmarket=en-hk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: about T4.1.2 sources in SVN
If you want to look at 4.1.2 source use the tag - if you want to look at whatever the current development version is use trunk. (currently 4.1.3 but that will probably change more frequently now) On 7/22/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello If I want to have a look at T4.1.2 source code, should I use http://svn.apache.org/repos/asf/tapestry/tapestry4/tags/4.1.2 or http://svn.apache.org/repos/asf/tapestry/tapestry4/trunk or somewhere else ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: AssetExternaliser in 4.1.2
I've never really used T3 (other than the progression of alpha/beta builds from T3->T4 when I first found it ) - what exactly did externalizing an asset mean? On 7/21/07, Lionel Touati <[EMAIL PROTECTED]> wrote: Hi List, In Tapestry 3, there was the ability to externalize assets on the web server to avoid contention on the Tomcat instance. Apparently this feature does not exist anymore. Is this something I've missed, or a requirement for V4 ? Thanks for your feedback - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: T5: Redirecting to out-of-tapestry page
This is exactly why the framework should provide something, so I guess I'll add the JIRA issue. https://issues.apache.org/jira/browse/TAPESTRY-1671 Any code additions would be helpful. If you use anything with "internal" in the package name, expect it to break one day. It's not part of Tapestry's external API. Cheers, Nick. Daniel Jue wrote: Can you share your implementation? Is there a reason you couldn't return a link as used on the wiki's Acegi tutorial? http://wiki.apache.org/tapestry/Tapestry5LinkingToNonTapestryURIs On 7/24/07, Bill Holloway <[EMAIL PROTECTED]> wrote: Got it going with my own implementation of Link. bill On 7/23/07, Nick Westgate <[EMAIL PROTECTED]> wrote: > > Probably the best way would be a new method on ComponentResourcesCommon > to get an external link, or an ExternalLink class or something. > > In the meantime see if you can return a new LinkImpl() with what you need. > > Cheers, > Nick. > > > Bill Holloway wrote: > > Apologies if this has already been asked, but I need to redirect from a > > page's onActivate() to a page on another site altogether. What's the > best > > technique? > > > > bill > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check in tapestry
Alexa22 a écrit : Hi, I have a problem, I'm developing a Tapestry's aplication and I need to active the security in there, but the page is autenticated by WAS (WebShere Application Server) and LDAP, When the user is already authenticate, Is Tapestry running on the WAS ? If yes, have a look at Authentication auth = SecurityContextHolder.getContext().getAuthentication(); To retrieve current credentials. cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
j_security_check in tapestry
Hi, I have a problem, I'm developing a Tapestry's aplication and I need to active the security in there, but the page is autenticated by WAS (WebShere Application Server) and LDAP, When the user is already authenticate, I don't Know how to pass to the other page, My html is this: Do you have any idea to solved it? Autenticación Nombre Usuario: Contraseña: MM function validar(formulario){ if (formulario.j_username.value.length==0) { alert("Tiene que escribir su nombre de usuario"); return false; } if (formulario.j_password.value.length==0) { alert("Tiene que escribir su contraseña"); return false; } return true; } -- View this message in context: http://www.nabble.com/j_security_check-in-tapestry-tf4148843.html#a11802593 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 - Access configured application default value from component
No unordinary log messages (I switched on debug logging ... oo boy... but nothing stood out) and no exceptions. I put ${filesystemroot} in my template and it renders blank. On 7/25/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Off the top of my head, that should work. What behavior are you seeing? Any log messages or exceptions? On 7/25/07, Peter Beshai <[EMAIL PROTECTED]> wrote: > > In my application, people can upload files. What is the best way to > configure the root of the location the files go to? > > I thought I'd contribute to ApplicationDefaults like so: > > public static void contributeApplicationDefaults( > MappedConfiguration configuration) > { > configuration.add("tutor.file-system-root", > "/Users/pbeshai/tmproot/"); > configuration.add("tapestry.supported-locales", "en"); > configuration.add("tapestry.start-page-name", "Login"); > } > > > And hopefully be able to inject that value into components where > necessary. Is there a more advised way of doing this? > > Unfortunately, I am unable to retrieve this value in my component > (from simple lack of know-how). > > I thought it might be similar to > @Inject > @Value("${tutor.file-system-root}") > private String _fileSystemRoot; > > public String getFileSystemRoot() { return _fileSystemRoot; } > > But I've had no such luck. > > Does anyone know the correct way to do this? > > Thanks, > -- > Peter Beshai > > CS 134 Tutor > University of Waterloo > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com -- Peter Beshai CS 134 Tutor University of Waterloo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 - Access configured application default value from component
Off the top of my head, that should work. What behavior are you seeing? Any log messages or exceptions? On 7/25/07, Peter Beshai <[EMAIL PROTECTED]> wrote: In my application, people can upload files. What is the best way to configure the root of the location the files go to? I thought I'd contribute to ApplicationDefaults like so: public static void contributeApplicationDefaults( MappedConfiguration configuration) { configuration.add("tutor.file-system-root", "/Users/pbeshai/tmproot/"); configuration.add("tapestry.supported-locales", "en"); configuration.add("tapestry.start-page-name", "Login"); } And hopefully be able to inject that value into components where necessary. Is there a more advised way of doing this? Unfortunately, I am unable to retrieve this value in my component (from simple lack of know-how). I thought it might be similar to @Inject @Value("${tutor.file-system-root}") private String _fileSystemRoot; public String getFileSystemRoot() { return _fileSystemRoot; } But I've had no such luck. Does anyone know the correct way to do this? Thanks, -- Peter Beshai CS 134 Tutor University of Waterloo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
T5 - Access configured application default value from component
In my application, people can upload files. What is the best way to configure the root of the location the files go to? I thought I'd contribute to ApplicationDefaults like so: public static void contributeApplicationDefaults( MappedConfiguration configuration) { configuration.add("tutor.file-system-root", "/Users/pbeshai/tmproot/"); configuration.add("tapestry.supported-locales", "en"); configuration.add("tapestry.start-page-name", "Login"); } And hopefully be able to inject that value into components where necessary. Is there a more advised way of doing this? Unfortunately, I am unable to retrieve this value in my component (from simple lack of know-how). I thought it might be similar to @Inject @Value("${tutor.file-system-root}") private String _fileSystemRoot; public String getFileSystemRoot() { return _fileSystemRoot; } But I've had no such luck. Does anyone know the correct way to do this? Thanks, -- Peter Beshai CS 134 Tutor University of Waterloo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 component parameter binding not updated
On Wed, 2007-07-25 at 09:09 -0700, Howard Lewis Ship wrote: > https://issues.apache.org/jira/browse/TAPESTRY-1667 > > And, yes, it's a bug. Expansions were treated as invariant when they are, > in fact, variant. Wow, very fast in fixing this! Respect :) cheers, Martin > > On 7/25/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > > > You've bound the parameter _currentPage to the value obtained from > > ${currentPage}. > > > > Expansions are always read-only. prop:currentPage is read/write, but > > ${currentPage} is read-only. > > > > The instance variable in the component is always reading or updating the > > binding. So if you update _currentPage its going to try to update the > > binding to match the new value; for ${currentPage} this fails (as it is a > > read-only binding). > > > > There may be a bug here, however. It looks like Tapestry may be overly > > aggressive in terms of caching the value of ${currentPage}, as if it were a > > literal value and not a dynamic expression. Again, prop:currentPage will do > > the right thing. > > > > > > On 7/20/07, Martin Grotzke <[EMAIL PROTECTED]> wrote: > > > > > > Anybody out there? > > > > > > What should I check for analysing this issue? > > > > > > Thanx && cheers, > > > Martin > > > > > > > > > On Fri, 2007-07-13 at 18:17 +0200, Martin Grotzke wrote: > > > > I suppose that what I'm expecting is not the way it should work. > > > > > > > > Can I do anything to see what's the reason for this? > > > > > > > > Any help appreciated, > > > > thx, > > > > Martin > > > > > > > > > > > > On Thu, 2007-07-12 at 09:43 +0200, Martin Grotzke wrote: > > > > > On Thu, 2007-07-12 at 08:45 +0200, Kristian Marinkovic wrote: > > > > > > > > > > > > hi martin, > > > > > > > > > > > > try to set the "cache" attribute of your @Parameter > > > > > > annotation of your "currentPage" component parameter > > > > > > to false > > > > > I tried that, but it didn't solve the issue - same behavior. > > > Debugging > > > > > showed that _$currentPage_cached is still true... > > > > > > > > > > > > > > > Then I tried to "reset" the currentPage property manually and added > > > > > > > > > > _currentPage = 0; > > > > > > > > > > to the start of the beginRender method, which produced the following > > > > > > > > error: > > > > > > > > > > Failure writing parameter currentPage of component Search:pager: > > > Binding > > > > > > > > [EMAIL PROTECTED] > > > > > is read-only. > > > > > > > > > > Is there another way of resetting a parameter binding? > > > > > > > > > > How is it intended to work, when is a cached parameter reset? > > > > > > > > > > Thanx && cheers, > > > > > Martin > > > > > > > > > > > > > > > > > > > > > > > > > > > > @Parameter(cache=false,...) > > > > > > > > > > > > g, > > > > > > kris > > > > > > > > > > > > > > > > > > > > > > > > Martin Grotzke > > > > > > <[EMAIL PROTECTED]> > > > > > > > > > > > > 11.07.2007 22:20 > > > > > > Bitte antworten an > > > > > > "Tapestry users" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >An > > > > > > Tapestry users > > > > > > > > > > > > Kopie > > > > > > > > > > > > Thema > > > > > > T5 component > > > > > > parameter binding > > > > > > not updated > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > I wrote a simple pager component but one parameter (currentPage) > > > > > > is not updated in a second request. > > > > > > > > > > > > In the template I have the following: > > > > > > > > > > > > > > > > >t:currentPage="${currentPage}" > > > > > >... some other attributes ... /> > > > > > > > > > > > > In the page class this currentPage accessor: > > > > > > > > > > > >public int getCurrentPage() { > > > > > >return _currentPage; > > > > > >} > > > > > > > > > > > > which is an int and has the correct values in all requests. > > > > > > > > > > > > The pager component contains this currentPage property > > > > > > > > > > > >@Parameter(required = true, defaultPrefix="prop") > > > > > >private Integer _currentPage; > > > > > > > > > > > > which is used in > > > > > > > > > > > >@BeginRender > > > > > >boolean beginRender( MarkupWriter writer ) > > > > > > > > > > > > which returns false (no other render methods, no template). > > > > > > > > > > > > When I debug the code I see, that the first time, the _currentPage > > > is > > > > > > accessed, the pages getCurrentPage method is invoked. > > > > > > In all subsequent page requests, the value of the first request is > > > > > > still stored and not updated. > > > > > > > > > > > > What am I doing wrong, or should T5 behave differently? > > > > > > > > > > > > Do I have to take any action to unbind/uncache/reset the > > > currentPage > > > > > > property in the pager component? > > > > > > > > > > > > Thanx && cheers, > > > > > > Martin > > > > > > > >
Re: T5 component parameter binding not updated
Hi Howard, thanx a lot for this explanation, again I learned s.th. about T5 :) Indeed, prop:currentPage works, unfortunately my eyes were blind these days to tell me that there's the ${expansions} stuff - or my brain didn't tell my eyes that this is s.th. special ;) Thanx a lot, cheers, Martin On Wed, 2007-07-25 at 09:00 -0700, Howard Lewis Ship wrote: > You've bound the parameter _currentPage to the value obtained from > ${currentPage}. > > Expansions are always read-only. prop:currentPage is read/write, but > ${currentPage} is read-only. > > The instance variable in the component is always reading or updating the > binding. So if you update _currentPage its going to try to update the > binding to match the new value; for ${currentPage} this fails (as it is a > read-only binding). > > There may be a bug here, however. It looks like Tapestry may be overly > aggressive in terms of caching the value of ${currentPage}, as if it were a > literal value and not a dynamic expression. Again, prop:currentPage will do > the right thing. > > > On 7/20/07, Martin Grotzke <[EMAIL PROTECTED]> wrote: > > > > Anybody out there? > > > > What should I check for analysing this issue? > > > > Thanx && cheers, > > Martin > > > > > > On Fri, 2007-07-13 at 18:17 +0200, Martin Grotzke wrote: > > > I suppose that what I'm expecting is not the way it should work. > > > > > > Can I do anything to see what's the reason for this? > > > > > > Any help appreciated, > > > thx, > > > Martin > > > > > > > > > On Thu, 2007-07-12 at 09:43 +0200, Martin Grotzke wrote: > > > > On Thu, 2007-07-12 at 08:45 +0200, Kristian Marinkovic wrote: > > > > > > > > > > hi martin, > > > > > > > > > > try to set the "cache" attribute of your @Parameter > > > > > annotation of your "currentPage" component parameter > > > > > to false > > > > I tried that, but it didn't solve the issue - same behavior. Debugging > > > > showed that _$currentPage_cached is still true... > > > > > > > > > > > > Then I tried to "reset" the currentPage property manually and added > > > > > > > > _currentPage = 0; > > > > > > > > to the start of the beginRender method, which produced the following > > > > error: > > > > > > > > Failure writing parameter currentPage of component Search:pager: > > Binding > > > > [EMAIL PROTECTED] > > > > is read-only. > > > > > > > > Is there another way of resetting a parameter binding? > > > > > > > > How is it intended to work, when is a cached parameter reset? > > > > > > > > Thanx && cheers, > > > > Martin > > > > > > > > > > > > > > > > > > > > > > > @Parameter(cache=false,...) > > > > > > > > > > g, > > > > > kris > > > > > > > > > > > > > > > > > > > > Martin Grotzke > > > > > <[EMAIL PROTECTED]> > > > > > > > > > > 11.07.2007 22:20 > > > > > Bitte antworten an > > > > > "Tapestry users" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >An > > > > > Tapestry users > > > > > > > > > > Kopie > > > > > > > > > > Thema > > > > > T5 component > > > > > parameter binding > > > > > not updated > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > I wrote a simple pager component but one parameter (currentPage) > > > > > is not updated in a second request. > > > > > > > > > > In the template I have the following: > > > > > > > > > > > > > >t:currentPage="${currentPage}" > > > > >... some other attributes ... /> > > > > > > > > > > In the page class this currentPage accessor: > > > > > > > > > >public int getCurrentPage() { > > > > >return _currentPage; > > > > >} > > > > > > > > > > which is an int and has the correct values in all requests. > > > > > > > > > > The pager component contains this currentPage property > > > > > > > > > >@Parameter(required = true, defaultPrefix="prop") > > > > >private Integer _currentPage; > > > > > > > > > > which is used in > > > > > > > > > >@BeginRender > > > > >boolean beginRender( MarkupWriter writer ) > > > > > > > > > > which returns false (no other render methods, no template). > > > > > > > > > > When I debug the code I see, that the first time, the _currentPage > > is > > > > > accessed, the pages getCurrentPage method is invoked. > > > > > In all subsequent page requests, the value of the first request is > > > > > still stored and not updated. > > > > > > > > > > What am I doing wrong, or should T5 behave differently? > > > > > > > > > > Do I have to take any action to unbind/uncache/reset the currentPage > > > > > property in the pager component? > > > > > > > > > > Thanx && cheers, > > > > > Martin > > > > > > > > > > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > > Martin Grotzke > > http://www.javakaffee.de/blog/ > > > > > > -- Martin G
[T4] need help on multi-checkbox validation
Hello, This days I'm trying to find a way for managing validation between severals checkbox. The need is: there are several checkboxes in a form and each checkbox needs to match rules which exprims dependencies between those checkboxes. For example : you can check this one if you have checked those two others, but only if a third on is not checked. I come here to ask your opinion, ideas and tips on the way you will do it in different layer : server-side validation, client-side validation, a rules manager component or not, is validation can have a view on several component to return error or not ... Please, tell me want idea comes to you about that need. Thanks a lot cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Set the text field size in BeanEditForm
this is easy, but when you have a dozen fields to set, this becomes a little verbose... isn't a way to set it via .properties file? Em 25/07/07, Marcus <[EMAIL PROTECTED]> escreveu: > > Olá Marcelo, > > > submitLabel="Gravar"> > > > > t:value="registration.firstName" size="40"/> > (Informe o nome) > > > > > > Marcus > -- Atenciosamente, Marcelo Lotif
Re: [T5] Set the text field size in BeanEditForm
Olá Marcelo, (Informe o nome) Marcus
[T5] Set the text field size in BeanEditForm
Hi all, anyone knows how set the size of a text field in BeanEditForm, preferentially using the .properties file? -- Atenciosamente, Marcelo Lotif
Re: [T5] Specifying parameters in templates (apropos if / else)
It's a very, very good idea! On 7/25/07, Ognen Ivanovski <[EMAIL PROTECTED]> wrote: I often look at: ... and think if there could be a better (and yet generic) way to express this. The only thing that comes to my mind is to use another namespace (with prefix p) and then do something like: ... Of course this can easily confuse. One that doesn't know that else is a parameter to the component if, would expect more that both 'if' and 'else' belong to the same namespace. Yet using the t prefix also for parameters will easily overload component types. Just a thought comes back over and over again... What do you think? -- Ognen Ivanovski | [EMAIL PROTECTED] phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495 Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
[T5] Specifying parameters in templates (apropos if / else)
I often look at: ... and think if there could be a better (and yet generic) way to express this. The only thing that comes to my mind is to use another namespace (with prefix p) and then do something like: ... Of course this can easily confuse. One that doesn't know that else is a parameter to the component if, would expect more that both 'if' and 'else' belong to the same namespace. Yet using the t prefix also for parameters will easily overload component types. Just a thought comes back over and over again... What do you think? -- Ognen Ivanovski | [EMAIL PROTECTED] phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495 Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 component parameter binding not updated
https://issues.apache.org/jira/browse/TAPESTRY-1667 And, yes, it's a bug. Expansions were treated as invariant when they are, in fact, variant. On 7/25/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: You've bound the parameter _currentPage to the value obtained from ${currentPage}. Expansions are always read-only. prop:currentPage is read/write, but ${currentPage} is read-only. The instance variable in the component is always reading or updating the binding. So if you update _currentPage its going to try to update the binding to match the new value; for ${currentPage} this fails (as it is a read-only binding). There may be a bug here, however. It looks like Tapestry may be overly aggressive in terms of caching the value of ${currentPage}, as if it were a literal value and not a dynamic expression. Again, prop:currentPage will do the right thing. On 7/20/07, Martin Grotzke <[EMAIL PROTECTED]> wrote: > > Anybody out there? > > What should I check for analysing this issue? > > Thanx && cheers, > Martin > > > On Fri, 2007-07-13 at 18:17 +0200, Martin Grotzke wrote: > > I suppose that what I'm expecting is not the way it should work. > > > > Can I do anything to see what's the reason for this? > > > > Any help appreciated, > > thx, > > Martin > > > > > > On Thu, 2007-07-12 at 09:43 +0200, Martin Grotzke wrote: > > > On Thu, 2007-07-12 at 08:45 +0200, Kristian Marinkovic wrote: > > > > > > > > hi martin, > > > > > > > > try to set the "cache" attribute of your @Parameter > > > > annotation of your "currentPage" component parameter > > > > to false > > > I tried that, but it didn't solve the issue - same behavior. > Debugging > > > showed that _$currentPage_cached is still true... > > > > > > > > > Then I tried to "reset" the currentPage property manually and added > > > > > > _currentPage = 0; > > > > > > to the start of the beginRender method, which produced the following > > > > error: > > > > > > Failure writing parameter currentPage of component Search:pager: > Binding > > > > [EMAIL PROTECTED] > > > is read-only. > > > > > > Is there another way of resetting a parameter binding? > > > > > > How is it intended to work, when is a cached parameter reset? > > > > > > Thanx && cheers, > > > Martin > > > > > > > > > > > > > > > > > > @Parameter(cache=false,...) > > > > > > > > g, > > > > kris > > > > > > > > > > > > > > > > Martin Grotzke > > > > <[EMAIL PROTECTED]> > > > > > > > > 11.07.2007 22:20 > > > > Bitte antworten an > > > > "Tapestry users" > > > > > > > > > > > > > > > > > > > > > > > >An > > > > Tapestry users > > > > > > > > Kopie > > > > > > > > Thema > > > > T5 component > > > > parameter binding > > > > not updated > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > I wrote a simple pager component but one parameter (currentPage) > > > > is not updated in a second request. > > > > > > > > In the template I have the following: > > > > > > > > > > >t:currentPage="${currentPage}" > > > >... some other attributes ... /> > > > > > > > > In the page class this currentPage accessor: > > > > > > > >public int getCurrentPage() { > > > >return _currentPage; > > > >} > > > > > > > > which is an int and has the correct values in all requests. > > > > > > > > The pager component contains this currentPage property > > > > > > > >@Parameter(required = true, defaultPrefix="prop") > > > >private Integer _currentPage; > > > > > > > > which is used in > > > > > > > >@BeginRender > > > >boolean beginRender( MarkupWriter writer ) > > > > > > > > which returns false (no other render methods, no template). > > > > > > > > When I debug the code I see, that the first time, the _currentPage > is > > > > accessed, the pages getCurrentPage method is invoked. > > > > In all subsequent page requests, the value of the first request is > > > > still stored and not updated. > > > > > > > > What am I doing wrong, or should T5 behave differently? > > > > > > > > Do I have to take any action to unbind/uncache/reset the > currentPage > > > > property in the pager component? > > > > > > > > Thanx && cheers, > > > > Martin > > > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > -- > Martin Grotzke > http://www.javakaffee.de/blog/ > > -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work.
Re: T5 component parameter binding not updated
You've bound the parameter _currentPage to the value obtained from ${currentPage}. Expansions are always read-only. prop:currentPage is read/write, but ${currentPage} is read-only. The instance variable in the component is always reading or updating the binding. So if you update _currentPage its going to try to update the binding to match the new value; for ${currentPage} this fails (as it is a read-only binding). There may be a bug here, however. It looks like Tapestry may be overly aggressive in terms of caching the value of ${currentPage}, as if it were a literal value and not a dynamic expression. Again, prop:currentPage will do the right thing. On 7/20/07, Martin Grotzke <[EMAIL PROTECTED]> wrote: Anybody out there? What should I check for analysing this issue? Thanx && cheers, Martin On Fri, 2007-07-13 at 18:17 +0200, Martin Grotzke wrote: > I suppose that what I'm expecting is not the way it should work. > > Can I do anything to see what's the reason for this? > > Any help appreciated, > thx, > Martin > > > On Thu, 2007-07-12 at 09:43 +0200, Martin Grotzke wrote: > > On Thu, 2007-07-12 at 08:45 +0200, Kristian Marinkovic wrote: > > > > > > hi martin, > > > > > > try to set the "cache" attribute of your @Parameter > > > annotation of your "currentPage" component parameter > > > to false > > I tried that, but it didn't solve the issue - same behavior. Debugging > > showed that _$currentPage_cached is still true... > > > > > > Then I tried to "reset" the currentPage property manually and added > > > > _currentPage = 0; > > > > to the start of the beginRender method, which produced the following > > error: > > > > Failure writing parameter currentPage of component Search:pager: Binding > > [EMAIL PROTECTED] > > is read-only. > > > > Is there another way of resetting a parameter binding? > > > > How is it intended to work, when is a cached parameter reset? > > > > Thanx && cheers, > > Martin > > > > > > > > > > > > > @Parameter(cache=false,...) > > > > > > g, > > > kris > > > > > > > > > > > > Martin Grotzke > > > <[EMAIL PROTECTED]> > > > > > > 11.07.2007 22:20 > > > Bitte antworten an > > > "Tapestry users" > > > > > > > > > > > > > > > > > >An > > > Tapestry users > > > > > > Kopie > > > > > > Thema > > > T5 component > > > parameter binding > > > not updated > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > I wrote a simple pager component but one parameter (currentPage) > > > is not updated in a second request. > > > > > > In the template I have the following: > > > > > > > >t:currentPage="${currentPage}" > > >... some other attributes ... /> > > > > > > In the page class this currentPage accessor: > > > > > >public int getCurrentPage() { > > >return _currentPage; > > >} > > > > > > which is an int and has the correct values in all requests. > > > > > > The pager component contains this currentPage property > > > > > >@Parameter(required = true, defaultPrefix="prop") > > >private Integer _currentPage; > > > > > > which is used in > > > > > >@BeginRender > > >boolean beginRender( MarkupWriter writer ) > > > > > > which returns false (no other render methods, no template). > > > > > > When I debug the code I see, that the first time, the _currentPage is > > > accessed, the pages getCurrentPage method is invoked. > > > In all subsequent page requests, the value of the first request is > > > still stored and not updated. > > > > > > What am I doing wrong, or should T5 behave differently? > > > > > > Do I have to take any action to unbind/uncache/reset the currentPage > > > property in the pager component? > > > > > > Thanx && cheers, > > > Martin > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] -- Martin Grotzke http://www.javakaffee.de/blog/ -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
Re: T5 Loading Component Assets
That seems to be exactly the issue. Thanks a lot! On 7/25/07, Steven Coco <[EMAIL PROTECTED]> wrote: If filtering is enabled in Maven, then it will filter binary files too: and it is the case with Maven that your images are nearly guaranteed to be corrupted. The ideal way to solve it is to separate files that need filtering from those that don't, by defining several resource directories: http://maven.apache.org/plugins/maven-resources-plugin/examples/resource-directory.html You may at first think that this would only collide if the image so happened to contain a replacement that exactly matched some available property -- like ${version} by coincidence -- however, Maven has the tendency to touch seemingly everything in a filtered directory, in a way that causes it to differ after the resource phase executes. I don't know exactly what it uses for an algorithm there, but my rule of thumb is to 100% strictly separate things that do and don't want filtering. (It's likely that Maven simply copies, and re-writes every file, using the resources plugin's declared encoding; thereby munging any binary file that did not stay intact after reading and re-writing in that encoding.) You are guaranteed to have a problem if you put a binary file into a filtered resource directory. And filtering would be inherited if it were turned on in the parent POM. On Tue July 24 2007 9:05:12 pm you wrote: > I figured out that it has something to do with maven corrupting the > image files in the resource directory. I'm trying to pin down the > exact problem before blaming maven. However, just by pulling out a > parent POM ref in my projects POM everything started to work. > > On 7/24/07, 小司 <[EMAIL PROTECTED]> wrote: > > You can read this link > > http://tapestry.apache.org/tapestry5/tapestry-core/guide/assets.html > > or this link (in chinese) > > http://www.javaeye.com/article/78348 > > > > Maybe you can get some idea > > > > 2007/7/24, Todd Orr <[EMAIL PROTECTED]>: > > > Ugh. I created a small test project and it works correctly there. > > > Unfortunately, my real project is much larger. So, now I have the > > > incredibly tedious task of starting a new project and adding code bit > > > by bit until it breaks so that I can attempt to determine what is > > > causing the failure. > > > > > > On 7/24/07, Nick Westgate <[EMAIL PROTECTED]> wrote: > > > > Hi Todd. > > > > > > > > I just tested this, not with a template, but just writing HTML. > > > > Details of my successful test follow, but first ... > > > > > > > > Are your images under the "resources" tree: > > > > \myapp\src\main\resources\jp\co\key_planning\myapp\tapestry\component > > > >s > > > > > > > > That's important, I think. > > > > > > > > My component CheckBoxImage.java > > > > > > > > ... > > > > @Inject > > > > @Path("check_checked.gif") > > > > private Asset checkedImage; > > > > ... > > > > boolean beginRender(MarkupWriter writer) > > > > { > > > > writer.element("img", "src", _test ? checkedImage : > > > > uncheckedImage); ... > > > > > > > > Turns out fine in the HTML: > > > > > > > src="/myapp/assets/jp/co/key_planning/myapp/tapestry/components/check > > > >_checked.gif"> > > > > > > > > And I can view the image in the browser at: > > > > http://localhost:8080/myapp/assets/jp/co/key_planning/myapp/tapestry/ > > > >components/check_checked.gif > > > > > > > > Cheers, > > > > Nick. > > > > > > > > Todd Orr wrote: > > > > >> From what I see in the GridColumns code, I've coded this > > > > >> correctly. > > > > > > > > > > I'm still confused about why this works for a core component but > > > > > not a custom component. Unless anyone has any insight I'll create a > > > > > Jira item. > > > > > > > > > > On 7/20/07, Todd Orr <[EMAIL PROTECTED]> wrote: > > > > >> Tap 5.0.5. > > > > >> > > > > >> I'm having trouble loading an asset from the classpath. Everywhere > > > > >> I've looked I see that it should be dead simple. However, when I > > > > >> attempt to view the image directly in the browser (firefox) I get: > > > > >> > > > > >> The image > > > > >> "http://localhost:8080/testapp/assets/com/test/testapp/web/compone > > > > >>nts/slider_default_selected.png" > > > > >> > > > > >> cannot be displayed, because it contains errors. > > > > >> > > > > >> > > > > >> The code that injects the image is: > > > > >> > > > > >> @Inject > > > > >> @Path("slider_default_selected.png") > > > > >> //@Path("context:images/slider_default_selected.png") // testing > > > > >> private Asset defaultSelectedImage; > > > > >> > > > > >> ... > > > > >> > > > > >> getter too. > > > > >> > > > > >> > > > > >> The template code: > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> Has anyone run into this before? For testing the code works fine > > > > >> when using a context relative injection. However, this is not my > > > > >> ideal choice for packaging. > > > > >> > > > > >> Thanks > > > > > > > > > > --- > > >
Re: T5 Loading Component Assets
If filtering is enabled in Maven, then it will filter binary files too: and it is the case with Maven that your images are nearly guaranteed to be corrupted. The ideal way to solve it is to separate files that need filtering from those that don't, by defining several resource directories: http://maven.apache.org/plugins/maven-resources-plugin/examples/resource-directory.html You may at first think that this would only collide if the image so happened to contain a replacement that exactly matched some available property -- like ${version} by coincidence -- however, Maven has the tendency to touch seemingly everything in a filtered directory, in a way that causes it to differ after the resource phase executes. I don't know exactly what it uses for an algorithm there, but my rule of thumb is to 100% strictly separate things that do and don't want filtering. (It's likely that Maven simply copies, and re-writes every file, using the resources plugin's declared encoding; thereby munging any binary file that did not stay intact after reading and re-writing in that encoding.) You are guaranteed to have a problem if you put a binary file into a filtered resource directory. And filtering would be inherited if it were turned on in the parent POM. On Tue July 24 2007 9:05:12 pm you wrote: > I figured out that it has something to do with maven corrupting the > image files in the resource directory. I'm trying to pin down the > exact problem before blaming maven. However, just by pulling out a > parent POM ref in my projects POM everything started to work. > > On 7/24/07, 小司 <[EMAIL PROTECTED]> wrote: > > You can read this link > > http://tapestry.apache.org/tapestry5/tapestry-core/guide/assets.html > > or this link (in chinese) > > http://www.javaeye.com/article/78348 > > > > Maybe you can get some idea > > > > 2007/7/24, Todd Orr <[EMAIL PROTECTED]>: > > > Ugh. I created a small test project and it works correctly there. > > > Unfortunately, my real project is much larger. So, now I have the > > > incredibly tedious task of starting a new project and adding code bit > > > by bit until it breaks so that I can attempt to determine what is > > > causing the failure. > > > > > > On 7/24/07, Nick Westgate <[EMAIL PROTECTED]> wrote: > > > > Hi Todd. > > > > > > > > I just tested this, not with a template, but just writing HTML. > > > > Details of my successful test follow, but first ... > > > > > > > > Are your images under the "resources" tree: > > > > \myapp\src\main\resources\jp\co\key_planning\myapp\tapestry\component > > > >s > > > > > > > > That's important, I think. > > > > > > > > My component CheckBoxImage.java > > > > > > > > ... > > > > @Inject > > > > @Path("check_checked.gif") > > > > private Asset checkedImage; > > > > ... > > > > boolean beginRender(MarkupWriter writer) > > > > { > > > > writer.element("img", "src", _test ? checkedImage : > > > > uncheckedImage); ... > > > > > > > > Turns out fine in the HTML: > > > > > > > src="/myapp/assets/jp/co/key_planning/myapp/tapestry/components/check > > > >_checked.gif"> > > > > > > > > And I can view the image in the browser at: > > > > http://localhost:8080/myapp/assets/jp/co/key_planning/myapp/tapestry/ > > > >components/check_checked.gif > > > > > > > > Cheers, > > > > Nick. > > > > > > > > Todd Orr wrote: > > > > >> From what I see in the GridColumns code, I've coded this > > > > >> correctly. > > > > > > > > > > I'm still confused about why this works for a core component but > > > > > not a custom component. Unless anyone has any insight I'll create a > > > > > Jira item. > > > > > > > > > > On 7/20/07, Todd Orr <[EMAIL PROTECTED]> wrote: > > > > >> Tap 5.0.5. > > > > >> > > > > >> I'm having trouble loading an asset from the classpath. Everywhere > > > > >> I've looked I see that it should be dead simple. However, when I > > > > >> attempt to view the image directly in the browser (firefox) I get: > > > > >> > > > > >> The image > > > > >> "http://localhost:8080/testapp/assets/com/test/testapp/web/compone > > > > >>nts/slider_default_selected.png" > > > > >> > > > > >> cannot be displayed, because it contains errors. > > > > >> > > > > >> > > > > >> The code that injects the image is: > > > > >> > > > > >> @Inject > > > > >> @Path("slider_default_selected.png") > > > > >> //@Path("context:images/slider_default_selected.png") // testing > > > > >> private Asset defaultSelectedImage; > > > > >> > > > > >> ... > > > > >> > > > > >> getter too. > > > > >> > > > > >> > > > > >> The template code: > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> Has anyone run into this before? For testing the code works fine > > > > >> when using a context relative injection. However, this is not my > > > > >> ideal choice for packaging. > > > > >> > > > > >> Thanks > > > > > > > > > > --- > > > > >-- To unsubscribe, e-mail: [EMAIL PROTECTED] For > > > > > additional commands, e-mail:
j_security_check Tapestry
Hi, I have a problem, I'm developing a Tapestry's aplication and I need to active the security in there, but the page is autenticated by WAS (WebShere Application Server) and LDAP, My html is this: but I don't know later of authenticated the user to take it to the main page!!.. Do you have any idea to solved it? Autenticación Nombre Usuario: Contraseña: MM function validar(formulario){ if (formulario.j_username.value.length==0) { alert("Tiene que escribir su nombre de usuario"); return false; } if (formulario.j_password.value.length==0) { alert("Tiene que escribir su contraseña"); return false; } return true; } -- View this message in context: http://www.nabble.com/j_security_check-Tapestry-tf4142640.html#a11784126 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Redirecting to out-of-tapestry page
Can you share your implementation? Is there a reason you couldn't return a link as used on the wiki's Acegi tutorial? http://wiki.apache.org/tapestry/Tapestry5LinkingToNonTapestryURIs On 7/24/07, Bill Holloway <[EMAIL PROTECTED]> wrote: Got it going with my own implementation of Link. bill On 7/23/07, Nick Westgate <[EMAIL PROTECTED]> wrote: > > Probably the best way would be a new method on ComponentResourcesCommon > to get an external link, or an ExternalLink class or something. > > In the meantime see if you can return a new LinkImpl() with what you need. > > Cheers, > Nick. > > > Bill Holloway wrote: > > Apologies if this has already been asked, but I need to redirect from a > > page's onActivate() to a page on another site altogether. What's the > best > > technique? > > > > bill > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Redirecting to out-of-tapestry page
Well, I'm not sure that's warranted. bill On 7/24/07, Nick Westgate <[EMAIL PROTECTED]> wrote: Don't forget to log a JIRA issue. ;-) Cheers, Nick. Bill Holloway wrote: > Got it going with my own implementation of Link. > > bill > > On 7/23/07, Nick Westgate <[EMAIL PROTECTED]> wrote: >> >> Probably the best way would be a new method on ComponentResourcesCommon >> to get an external link, or an ExternalLink class or something. >> >> In the meantime see if you can return a new LinkImpl() with what you >> need. >> >> Cheers, >> Nick. >> >> >> Bill Holloway wrote: >> > Apologies if this has already been asked, but I need to redirect from a >> > page's onActivate() to a page on another site altogether. What's the >> best >> > technique? >> > >> > bill >> > >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Igor Drobiazko a écrit : Well, your component looks somehow strange to me. I don't see what it should do. However id="checkbox" is written when your contained checkbox is rendered. That's expected behavior. Your own component does nothing except registering to the group. So why do you expect id="ckL1"? Because it will do something soon ... :-) Perhaps it is not a good practice to force the clientId for a component. Thanks for your time ! cyrille On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Igor Drobiazko a écrit : > It is inpossible to help you without having a look into your > GroupableCheckbox.java and GroupableCheckbox.html > Please post it. Ha! That's another story, a more complex problem ;-) After relearned Ids concept, I can talk to you about the component GroupableCheckbox which I try to construct. The rendered version of the concept/need is looking like (where "x" are checkboxes) : x List1 x List1Choice1 x List1Choice2 x List2 x List2Choice1 x List2Choice2 With those constraints : 1/ you can select list's choices only in the selected list. eg: is List1 is selected you can choice List1Choice1 or List1Choice2 but not List2Choice1 or List2Choice2 2/ The validation must be done on the client-side *without* any communication with the server, but the validation has to exist on the server to check validity at form's submit. 3/ I do not want to have encapsulation of component html tags like the CheckboxGroup component do. This constraint is to let free html designer. I've not yet many sources to show because I've to learning and find many stuff to complete this 3 constraints. At first I've to verify that the third constraint is possible ... For da moment I've got : TestGroupableCheckbox.html : L1 L1C1 L1C2 L1C3 GroupableCheckbox.html : GroupableCheckbox.jwc : http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";> A checkbox whose state may be controlled/validated by an other checkbox which acting as a checkbox group controler. Specifies the GroupableCheckbox this component belongs to. And the UGLY java file. I'm just at the time of tracing all calls to learn more on cycle... GroupableCheckbox.java : public abstract class GroupableCheckbox extends BaseComponent { public abstract Object getGroup(); public abstract Collection getSubCheckboxesId() ; public void registerSubCheckbox( GroupableCheckbox groupableCheckbox) { getSubCheckboxesId().add( groupableCheckbox ); } protected void renderComponent( IMarkupWriter writer, IRequestCycle cycle ) { log.info( "*** renderComponent()" ); log.info( "getBoundId: "+this.getBoundId() ); log.info( "id: "+this.getId()+", clientId: "+this.getClientId()+", specifiedId: "+this.getSpecifiedId() ); log.info( "getIdPath: "+this.getIdPath() + ", getExtendedId: "+this.getExtendedId() ); Object group = this.getGroup(); log.info( "group: "+group ); if( group != null ) { ((GroupableCheckbox)group).registerSubCheckbox( this ); } super.renderComponent( writer, cycle ); } ... ... Overrided methods with log.info("methodName") ... } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T4.1.2 id bug?
hi, i have 2 forms, both should be submitted via ajax. 1. one is in my home.html and should be submitted using a submit-component: 2. one is in a subcomponent and should also be submitted via submit-component: this renders to two submits, both with id 'Submit': ... and because auf this, dojo can not submit the 2. form via ajax, cause it is listening for the other submit with the id of 'Submit'. kind regards, peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JumpStart v1.6 - for Tapestry 4.1.2
Hi Naz, Is it possible for you to put some tips to use tomcat with your JumpStart? Sorry but I don't have any plans for doing a Tomcat-only implementation, so the short answer is "no". The reason is that JumpStart uses EJB3 for the business layer. That pretty much means an application server has to be involved. Today, the instructions cover just one app server: JBoss (note that JBoss has Tomcat embedded in it to handle the web layer, and the instructions cover this). In future, instructions are planned for other EJB3 implementations: Glassfish, JBoss MicroContainer, and perhaps one other app server (JOnAS? OC4J?). If someone else would like to do instructions then I'd really appreciate it, as my time for JumpStart is very limited. I'm sure it would benefit many in the Tapestry community. Regards, Geoff On 24/07/2007, at 10:51 AM, Bhuiyan, Nazmul wrote: Hi, Is it possible for you to put some tips to use tomcat with your JumpStart? Thanks Naz -Original Message- From: Geoff Callender [mailto:[EMAIL PROTECTED] Sent: Tuesday, 24 July 2007 2:18 a.m. To: Tapestry users Subject: JumpStart v1.6 - for Tapestry 4.1.2 Hi all, JumpStart v1.6.0 is now available. New features include: it works with Tapestry 4.1.2, it has a more Maven-like project structure, and it builds its exploded EAR file on the fly. You'll find it at the usual place: http://files.doublenegative.com.au/jumpstart JumpStart v1.5.0 has also been released today for those wanting to stay with Tapestry 4.0.2 but get the other new features. Comments and suggestions welcomed. Be brutal or helpful - I don't care which, because it all helps to make this stuff more useful. Cheers, Geoff Callender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upload file component(async problem)
I want to know in which version of Tapestry this bug has been fixed .Thanks! -- View this message in context: http://www.nabble.com/Upload-file-component%28async-problem%29-tf3361721.html#a11781685 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Well, your component looks somehow strange to me. I don't see what it should do. However id="checkbox" is written when your contained checkbox is rendered. That's expected behavior. Your own component does nothing except registering to the group. So why do you expect id="ckL1"? On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Igor Drobiazko a écrit : > It is inpossible to help you without having a look into your > GroupableCheckbox.java and GroupableCheckbox.html > Please post it. Ha! That's another story, a more complex problem ;-) After relearned Ids concept, I can talk to you about the component GroupableCheckbox which I try to construct. The rendered version of the concept/need is looking like (where "x" are checkboxes) : x List1 x List1Choice1 x List1Choice2 x List2 x List2Choice1 x List2Choice2 With those constraints : 1/ you can select list's choices only in the selected list. eg: is List1 is selected you can choice List1Choice1 or List1Choice2 but not List2Choice1 or List2Choice2 2/ The validation must be done on the client-side *without* any communication with the server, but the validation has to exist on the server to check validity at form's submit. 3/ I do not want to have encapsulation of component html tags like the CheckboxGroup component do. This constraint is to let free html designer. I've not yet many sources to show because I've to learning and find many stuff to complete this 3 constraints. At first I've to verify that the third constraint is possible ... For da moment I've got : TestGroupableCheckbox.html : L1 L1C1 L1C2 L1C3 GroupableCheckbox.html : GroupableCheckbox.jwc : http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";> A checkbox whose state may be controlled/validated by an other checkbox which acting as a checkbox group controler. Specifies the GroupableCheckbox this component belongs to. And the UGLY java file. I'm just at the time of tracing all calls to learn more on cycle... GroupableCheckbox.java : public abstract class GroupableCheckbox extends BaseComponent { public abstract Object getGroup(); public abstract Collection getSubCheckboxesId() ; public void registerSubCheckbox( GroupableCheckbox groupableCheckbox) { getSubCheckboxesId().add( groupableCheckbox ); } protected void renderComponent( IMarkupWriter writer, IRequestCycle cycle ) { log.info( "*** renderComponent()" ); log.info( "getBoundId: "+this.getBoundId() ); log.info( "id: "+this.getId()+", clientId: "+this.getClientId()+", specifiedId: "+this.getSpecifiedId() ); log.info( "getIdPath: "+this.getIdPath() + ", getExtendedId: "+this.getExtendedId() ); Object group = this.getGroup(); log.info( "group: "+group ); if( group != null ) { ((GroupableCheckbox)group).registerSubCheckbox( this ); } super.renderComponent( writer, cycle ); } ... ... Overrided methods with log.info("methodName") ... } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Igor Drobiazko a écrit : It is inpossible to help you without having a look into your GroupableCheckbox.java and GroupableCheckbox.html Please post it. Ha! That's another story, a more complex problem ;-) After relearned Ids concept, I can talk to you about the component GroupableCheckbox which I try to construct. The rendered version of the concept/need is looking like (where "x" are checkboxes) : x List1 x List1Choice1 x List1Choice2 x List2 x List2Choice1 x List2Choice2 With those constraints : 1/ you can select list's choices only in the selected list. eg: is List1 is selected you can choice List1Choice1 or List1Choice2 but not List2Choice1 or List2Choice2 2/ The validation must be done on the client-side *without* any communication with the server, but the validation has to exist on the server to check validity at form's submit. 3/ I do not want to have encapsulation of component html tags like the CheckboxGroup component do. This constraint is to let free html designer. I've not yet many sources to show because I've to learning and find many stuff to complete this 3 constraints. At first I've to verify that the third constraint is possible ... For da moment I've got : TestGroupableCheckbox.html : L1 value="L1" /> L1C1value="0" group="component:ckL1" /> L1C2value="ognl:null" group="component:ckL1" /> L1C3group="component:ckL1" /> GroupableCheckbox.html : GroupableCheckbox.jwc : http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";> A checkbox whose state may be controlled/validated by an other checkbox which acting as a checkbox group controler. Specifies the GroupableCheckbox this component belongs to. inherit-informal-parameters="yes"> And the UGLY java file. I'm just at the time of tracing all calls to learn more on cycle... GroupableCheckbox.java : public abstract class GroupableCheckbox extends BaseComponent { public abstract Object getGroup(); public abstract Collection getSubCheckboxesId() ; public void registerSubCheckbox( GroupableCheckbox groupableCheckbox) { getSubCheckboxesId().add( groupableCheckbox ); } protected void renderComponent( IMarkupWriter writer, IRequestCycle cycle ) { log.info( "*** renderComponent()" ); log.info( "getBoundId: "+this.getBoundId() ); log.info( "id: "+this.getId()+", clientId: "+this.getClientId()+", specifiedId: "+this.getSpecifiedId() ); log.info( "getIdPath: "+this.getIdPath() + ", getExtendedId: "+this.getExtendedId() ); Object group = this.getGroup(); log.info( "group: "+group ); if( group != null ) { ((GroupableCheckbox)group).registerSubCheckbox( this ); } super.renderComponent( writer, cycle ); } ... ... Overrided methods with log.info("methodName") ... } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
It is inpossible to help you without having a look into your GroupableCheckbox.java and GroupableCheckbox.html Please post it. On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Igor Drobiazko a écrit : > Cyrille, > > please provide your sources. Otherwise we have to use our glass sphere :) But I do not need to debug my source, I just need more memory ;-) I do not remember some tapestry syntax. I think I'm handsaking component's ids in my brain. Is that syntax definition right ? Before kiuma's answer I tought : where Id should be used as clientId. but it's wrong, ins't it ? thanks cyrille > > On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: >> >> Andrea Chiumenti a écrit : >> > ciao, >> > the fact is that tapestry uses the form form['componentname'] , so >> > for >> > Tapestry name is sufficient to specify ur id u should use >> > id="clientId:yourComponentId". >> But why the shortest way jwcid="[EMAIL PROTECTED]" does not create >> a html element with a id="myCompId" ? >> >> Perhaps there are not same ids : clientId <> tapestryId ? Is that >> right ? >> >> cyrille >> >> > >> > Hope this helps. >> > >> > kiuma >> > >> > On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: >> >> >> >> Hello >> >> I'm writing my first "complex" component : GroupableCheckbox (not >> same >> >> behaviors as CheckboxGroup). >> >> >> >> The question is about the component id. To define the id of the >> >> component I think to use the text before the @ in the jwcid but it >> does >> >> work, I had to add an id attribute : >> >> >> >> does not write my defined id : >> >> >> >> render is : >> >> > >> id="checkbox" /> >> >> >> >> does works : >> >> >> >> render is : >> >> >> >> >> >> >> >> What the reason ? The theory ? >> >> Thanks for your explanation. >> >> cyrille >> >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Igor Drobiazko a écrit : Cyrille, please provide your sources. Otherwise we have to use our glass sphere :) But I do not need to debug my source, I just need more memory ;-) I do not remember some tapestry syntax. I think I'm handsaking component's ids in my brain. Is that syntax definition right ? Before kiuma's answer I tought : where Id should be used as clientId. but it's wrong, ins't it ? thanks cyrille On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Andrea Chiumenti a écrit : > ciao, > the fact is that tapestry uses the form form['componentname'] , so > for > Tapestry name is sufficient to specify ur id u should use > id="clientId:yourComponentId". But why the shortest way jwcid="[EMAIL PROTECTED]" does not create a html element with a id="myCompId" ? Perhaps there are not same ids : clientId <> tapestryId ? Is that right ? cyrille > > Hope this helps. > > kiuma > > On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: >> >> Hello >> I'm writing my first "complex" component : GroupableCheckbox (not same >> behaviors as CheckboxGroup). >> >> The question is about the component id. To define the id of the >> component I think to use the text before the @ in the jwcid but it does >> work, I had to add an id attribute : >> >> does not write my defined id : >> >> render is : >> > id="checkbox" /> >> >> does works : >> >> render is : >> >> >> >> What the reason ? The theory ? >> Thanks for your explanation. >> cyrille >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Cyrille, please provide your sources. Otherwise we have to use our glass sphere :) On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Andrea Chiumenti a écrit : > ciao, > the fact is that tapestry uses the form form['componentname'] , so > for > Tapestry name is sufficient to specify ur id u should use > id="clientId:yourComponentId". But why the shortest way jwcid="[EMAIL PROTECTED]" does not create a html element with a id="myCompId" ? Perhaps there are not same ids : clientId <> tapestryId ? Is that right ? cyrille > > Hope this helps. > > kiuma > > On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: >> >> Hello >> I'm writing my first "complex" component : GroupableCheckbox (not same >> behaviors as CheckboxGroup). >> >> The question is about the component id. To define the id of the >> component I think to use the text before the @ in the jwcid but it does >> work, I had to add an id attribute : >> >> does not write my defined id : >> >> render is : >> > id="checkbox" /> >> >> does works : >> >> render is : >> >> >> >> What the reason ? The theory ? >> Thanks for your explanation. >> cyrille >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Well this question should be addressed to Jesse On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Andrea Chiumenti a écrit : > ciao, > the fact is that tapestry uses the form form['componentname'] , so > for > Tapestry name is sufficient to specify ur id u should use > id="clientId:yourComponentId". But why the shortest way jwcid="[EMAIL PROTECTED]" does not create a html element with a id="myCompId" ? Perhaps there are not same ids : clientId <> tapestryId ? Is that right ? cyrille > > Hope this helps. > > kiuma > > On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: >> >> Hello >> I'm writing my first "complex" component : GroupableCheckbox (not same >> behaviors as CheckboxGroup). >> >> The question is about the component id. To define the id of the >> component I think to use the text before the @ in the jwcid but it does >> work, I had to add an id attribute : >> >> does not write my defined id : >> >> render is : >> > id="checkbox" /> >> >> does works : >> >> render is : >> >> >> >> What the reason ? The theory ? >> Thanks for your explanation. >> cyrille >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Andrea Chiumenti a écrit : ciao, the fact is that tapestry uses the form form['componentname'] , so for Tapestry name is sufficient to specify ur id u should use id="clientId:yourComponentId". But why the shortest way jwcid="[EMAIL PROTECTED]" does not create a html element with a id="myCompId" ? Perhaps there are not same ids : clientId <> tapestryId ? Is that right ? cyrille Hope this helps. kiuma On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello I'm writing my first "complex" component : GroupableCheckbox (not same behaviors as CheckboxGroup). The question is about the component id. To define the id of the component I think to use the text before the @ in the jwcid but it does work, I had to add an id attribute : does not write my defined id : render is : does works : render is : What the reason ? The theory ? Thanks for your explanation. cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
ciao, the fact is that tapestry uses the form form['componentname'] , so for Tapestry name is sufficient to specify ur id u should use id="clientId:yourComponentId". Hope this helps. kiuma On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello I'm writing my first "complex" component : GroupableCheckbox (not same behaviors as CheckboxGroup). The question is about the component id. To define the id of the component I think to use the text before the @ in the jwcid but it does work, I had to add an id attribute : does not write my defined id : render is : does works : render is : What the reason ? The theory ? Thanks for your explanation. cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] about component id
Hello I'm writing my first "complex" component : GroupableCheckbox (not same behaviors as CheckboxGroup). The question is about the component id. To define the id of the component I think to use the text before the @ in the jwcid but it does work, I had to add an id attribute : does not write my defined id : render is : id="checkbox" /> does works : render is : What the reason ? The theory ? Thanks for your explanation. cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]