Re: HTML Ajax components package for Tapestry
Ok, thank you for your reply 2011/1/21 Thiago H. de Paula Figueiredo > On Fri, 21 Jan 2011 06:42:00 -0200, Gavin Lei > wrote: > > Hi guys, >> > > Hi! > > > Recently, i want to develop a tapestry based Web2.0 application. So, i >> want to know that where there are some projects which supply HTML components >> with Ajax features for Taperstry? Such as Auto-complete tapestry component ? >> If there are some famous project, i think we can use these components >> directly, it will save us much time. >> > > Tapestry already provides lots of AJAX features out of the box. The > documentation is here: http://tapestry.apache.org/ajax-javascript.html > Tapestry already provides an Autocomplete mixin. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- - Best Regards Gavin Lei (雷银) Email: gavingui2...@gmail.com
Re: T.5.2.x Possible page pooling removal impact query
Anyone care to have a quick glance at the attachment for coding red flags they could highlight, or even just advise on whether it is a question of tracking down third party source to check if there are thread safety issues in any of their called methods? Thanks a million. As far as I can remember, the removal of the page pool only affects *non*-static fields. Anyway, as a general rule, you should never initialize a non-static field in its declaration (unless the value is immutable). Your code only has static fields, so using or not the page pool won't make any difference at all. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Create a component event link for another page
Tapestry is specifically architected not to allow this approach. Events are local to a specific page. What's so wrong with: public class Master { @Inject private Detail detailPage; Object onShowDetail(DetailEntity detail) { detailPage.initializeFor(detail); return detailPage; } } and allow detailPage to *decide* how to encode the detail it will display (as page activation contet, as activation request parameter, by storing in session, but setting a cookie, etc.). On Fri, Jan 21, 2011 at 2:22 AM, Markus Feindler wrote: > No, I do not want to send a redirect in my Event Link to a different page. > I want to create an Event Link on Page1, which is handled directly / > triggers the event in Page2. > >> >> Original-Nachricht >> Datum: Fri, 21 Jan 2011 11:12:18 +0100 >> Von: Alberto Almagro >> An: Tapestry users >> Betreff: Re: Create a component event link for another page >> >> Maybe this can help? >> >> >> http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/eventlinks >> >> Alberto >> >> 2011/1/21 Markus Feindler : >> > Hi, >> > >> > how to create a Component Event Link for a different page? >> > >> > This is not a suitable solution for my problem: >> > http://www.mail-archive.com/users@tapestry.apache.org/msg36825.html >> > >> > Best Regards >> > Markus >> > >> > >> > -- >> > GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit >> > gratis Handy-Flat! http://portal.gmx.net/de/go/dsl >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > -- > GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit > gratis Handy-Flat! http://portal.gmx.net/de/go/dsl > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T.5.2.x Possible page pooling removal impact query
I glanced over it, it looks okay. A few notes: You didn't give the package name for Logger, Money, or Scalar, so I can't comment on them, although Log4j's Logger is thread safe, and I would guess most loggers are. Pattern is thread safe, but note that Matcher is not. Yes, it is just a matter of looking through any objects that you initialize in the Page class, outside of a method. An alternative is to create any variables you need in setupRender() rather than when you declare them in the class, only moving them out if they cause poor performance (and checking that they're thread safe beforehand). My coding style normally is not to have many objects like that in the page class, instead having them in services. Attachment text for the archives: In the release notes for T.5.2.0 (http://tapestry.apache.org/release-notes-52.html#ReleaseNotes5.2-Tap5.2.0) there is a section on references to non thread-safe objects and the impact upon them of the removal of Page Pooling, using: private final DateFormat format = DateFormat.getDateInstance(DateFormat.MEDIUM, locale); ... as a problem example. I have a few examples below of some code I am using and am concerned about introducing subtle bugs that are difficult to track down. private final static Logger log = LoggerFactory.getLogger(VitasBasePage.class); public static final Money MAX_VALUE = new Money(".99"); public static final Currency DEFAULT_CURRENCY = Currency.getInstance("EUR"); public static final boolean USE_PRODUCTION_PORTS = !("false".equals(System.getProperty(PRODUCTION_PORTS_PARAM))); private static final int ROUNDING_MODE = BigDecimal.ROUND_HALF_EVEN; public static final Scalar HALF = new Scalar("0.5"); static final String VALIDATOR_PATTERN="(?wrote: > The spam filter has blocked this email up to the 4th attempt so I've put > most of it into the attached text file. > > The query relates to thread safety, specifically the example in the T.5.2.0 > release notes > (http://tapestry.apache.org/release-notes-52.html#ReleaseNotes5.2-Tap5.2.0 > ) > > Anyone care to have a quick glance at the attachment for coding red flags > they could highlight, or even just advise on whether it is a question of > tracking down third party source to check if there are thread safety issues > in any of their called methods? Thanks a million. > > Regards, > Jim. > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >
T.5.2.x Possible page pooling removal impact query
The spam filter has blocked this email up to the 4th attempt so I've put most of it into the attached text file. The query relates to thread safety, specifically the example in the T.5.2.0 release notes (http://tapestry.apache.org/release-notes-52.html#ReleaseNotes5.2-Tap5.2.0) Anyone care to have a quick glance at the attachment for coding red flags they could highlight, or even just advise on whether it is a question of tracking down third party source to check if there are thread safety issues in any of their called methods? Thanks a million. Regards, Jim. In the release notes for T.5.2.0 (http://tapestry.apache.org/release-notes-52.html#ReleaseNotes5.2-Tap5.2.0) there is a section on references to non thread-safe objects and the impact upon them of the removal of Page Pooling, using: private final DateFormat format = DateFormat.getDateInstance(DateFormat.MEDIUM, locale); ... as a problem example. I have a few examples below of some code I am using and am concerned about introducing subtle bugs that are difficult to track down. private final static Logger log = LoggerFactory.getLogger(VitasBasePage.class); public static final Money MAX_VALUE = new Money(".99"); public static final Currency DEFAULT_CURRENCY = Currency.getInstance("EUR"); public static final boolean USE_PRODUCTION_PORTS = !("false".equals(System.getProperty(PRODUCTION_PORTS_PARAM))); private static final int ROUNDING_MODE = BigDecimal.ROUND_HALF_EVEN; public static final Scalar HALF = new Scalar("0.5"); static final String VALIDATOR_PATTERN="(? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T.5.2.x Removal of page pooling impact
The spam filter keeps blocking this email (4th attempt) so it is mostly in the attached txt file.
Re: Http Basic authentication with Tapestry
It seems unlikely that this is a Tapestry issue. Best I can tell you are saying that when you run your unit tests you can connect, but when you try to do it from withint a Tapestry (Page?) it gives you an error. As a test, I'd suggest that you copy the code from the unit test and stick it in a Tapestry page. Basically see if you can get the unit test code to work in the page's .java file. If that works then you know the problem isn't with Tapestry and you can modify your unit test code to do whatever you want to do. If it doesn't work in Tapestry, then I'd try to make sure your environment is as close to the environment as what you are running the unit tests in. For example, if you are running the unit test from maven, then launch jetty from maven as well, etc. Mark On Fri, Jan 21, 2011 at 4:14 AM, AlbertoAlmagro wrote: > > I can't believe that nobody knows the solution or even a hint for this > issue... > > Any help please? > > Thank you so much... > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Http-Basic-authentication-with-Tapestry-tp3348700p3351113.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ids for Testing BeanEditor in AjaxFormLoop
Ah ok I see. Thank you! On Fri, Jan 21, 2011 at 3:12 PM, Robert Zeigler wrote: > Yup: > > xpath=(//input[starts-with(@id,'firstName')])[2] > > Or as a utility function: > > String field(String id, int instance) { > return String.format("xpath=(//input[starts-with(@id,'%s')])[%d]", id, > instance); > } > > You can make that more general, as per my previous e-mail, by selecting an > input or a textarea or a select. xpath is a 1-based language, so the second > instance is 2. If you prefer to keep your code consistent with 0-based java, > you could do that easily, as well... > > Robert > > On Jan 21, 2011, at 1/213:01 PM , Mark wrote: > >> On Fri, Jan 21, 2011 at 2:27 PM, Thiago H. de Paula Figueiredo >> wrote: >>> On Fri, 21 Jan 2011 17:50:30 -0200, Mark wrote: >>> However, I'm running into a problem with Selenium testing because the fields get ids like: firstName_12da594667a and of course it is different each time. This is causing problems because I can't test it with Selenium. >>> >>> You can still do that. Just use XPath and the name or class attributes >>> instead of the id. >> >> Ok the problem is that there is more than one field with the same >> name. Something like this: >> >> >> >> [firstname] [lastname] >> >> >> [firstname] [lastname] >> >> >> [firstname] [lastname] >> >> >> [firstname] [lastname] >> >> >> >> The name attribute of the input boxes are the same as the id. There >> doesn't appear to be a way to set the class since it is being >> generated by the beaneditor. >> >> Is there a way to tell XPath to: >> >> select the second text field that has a name that matches "firstName*"' >> >> If so, I guess I need to dig deeper on the XPath side of things. >> >> Mark >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ids for Testing BeanEditor in AjaxFormLoop
Yup: xpath=(//input[starts-with(@id,'firstName')])[2] Or as a utility function: String field(String id, int instance) { return String.format("xpath=(//input[starts-with(@id,'%s')])[%d]", id, instance); } You can make that more general, as per my previous e-mail, by selecting an input or a textarea or a select. xpath is a 1-based language, so the second instance is 2. If you prefer to keep your code consistent with 0-based java, you could do that easily, as well... Robert On Jan 21, 2011, at 1/213:01 PM , Mark wrote: > On Fri, Jan 21, 2011 at 2:27 PM, Thiago H. de Paula Figueiredo > wrote: >> On Fri, 21 Jan 2011 17:50:30 -0200, Mark wrote: >> >>> However, I'm running into a problem with Selenium testing because the >>> fields get ids like: firstName_12da594667a >>> and of course it is different each time. This is causing problems >>> because I can't test it with Selenium. >> >> You can still do that. Just use XPath and the name or class attributes >> instead of the id. > > Ok the problem is that there is more than one field with the same > name. Something like this: > > > > [firstname] [lastname] > > > [firstname] [lastname] > > > [firstname] [lastname] > > > [firstname] [lastname] > > > > The name attribute of the input boxes are the same as the id. There > doesn't appear to be a way to set the class since it is being > generated by the beaneditor. > > Is there a way to tell XPath to: > > select the second text field that has a name that matches "firstName*"' > > If so, I guess I need to dig deeper on the XPath side of things. > > Mark > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ids for Testing BeanEditor in AjaxFormLoop
On Fri, Jan 21, 2011 at 2:27 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 21 Jan 2011 17:50:30 -0200, Mark wrote: > >> However, I'm running into a problem with Selenium testing because the >> fields get ids like: firstName_12da594667a >> and of course it is different each time. This is causing problems >> because I can't test it with Selenium. > > You can still do that. Just use XPath and the name or class attributes > instead of the id. Ok the problem is that there is more than one field with the same name. Something like this: [firstname] [lastname] [firstname] [lastname] [firstname] [lastname] [firstname] [lastname] The name attribute of the input boxes are the same as the id. There doesn't appear to be a way to set the class since it is being generated by the beaneditor. Is there a way to tell XPath to: select the second text field that has a name that matches "firstName*"' If so, I guess I need to dig deeper on the XPath side of things. Mark - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ids for Testing BeanEditor in AjaxFormLoop
On Fri, 21 Jan 2011 17:50:30 -0200, Mark wrote: However, I'm running into a problem with Selenium testing because the fields get ids like: firstName_12da594667a and of course it is different each time. This is causing problems because I can't test it with Selenium. You can still do that. Just use XPath and the name or class attributes instead of the id. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Ids for Testing BeanEditor in AjaxFormLoop
What I usually do is use an xpath expression in selenium, something along the lines of: assertEquals("xyz",s.getValue(field("id"))); public static String field(String id) { return String.format("xpath=(//input[starts-with(@id,'%s')] | //select[starts-with(@id,'%s')] | //textarea[starts-with(@id,'%s')]", id, id, id); } You have to be a little careful if you have a complex component that renders multiple fields with related ids, but on the whole, it works nicely. Robert On Jan 21, 2011, at 1/211:50 PM , Mark wrote: > I have an AjaxFormLoop that contains a BeanEditor. The BeanEditor > renders to fields. For example, firstName and lastName. This works > just fine and I can add and remove rows. When I submit the enclosing > form it all works perfectly. > > However, I'm running into a problem with Selenium testing because the > fields get ids like: > firstName_12da594667a > and of course it is different each time. This is causing problems > because I can't test it with Selenium. > > Is there a way for me to tell the BeanEditor what to use after the _ > for any field names? I think if I built the all the fields manually I > could probably get it to work, but I'd like to continue to use the > BeanEditor if possible. Is there another, better way to handle this > that I'm not thinking of? > > Thanks! > > Mark > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Ids for Testing BeanEditor in AjaxFormLoop
I have an AjaxFormLoop that contains a BeanEditor. The BeanEditor renders to fields. For example, firstName and lastName. This works just fine and I can add and remove rows. When I submit the enclosing form it all works perfectly. However, I'm running into a problem with Selenium testing because the fields get ids like: firstName_12da594667a and of course it is different each time. This is causing problems because I can't test it with Selenium. Is there a way for me to tell the BeanEditor what to use after the _ for any field names? I think if I built the all the fields manually I could probably get it to work, but I'd like to continue to use the BeanEditor if possible. Is there another, better way to handle this that I'm not thinking of? Thanks! Mark - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry 4 radio group
Richard is right. It would have to be more like this: Also if values assigned to radio components are 'activeServer.id', let's assume it's Long, then 'selected' parameter of your activeServerRadioGroup component should be of type Long as well, so maybe you need another property and then use it like this: I haven't tested this code though. Dariusz On Thu, Jan 20, 2011 at 2:33 PM, Richard Kirby wrote: > Hi, > > Can you say a little more exactly what you are trying to do as your HTML > doesn't appear to be correct. The RadioGroup needs to wrap around the Radio > buttons at the very least. > > Richard > > On 19 Jan 2011, at 19:29, sunray 2003 wrote: > > > Hi, > > > > I am unable to get the tapestry 4 radio group working. > > > > My HTML > > > > > > > > > > My .page > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In my .java file I have a method getActiveServers() that returns a list > of > > custom class with selected, id attributes. The above structure is not > > working. Can somebody help? > > > > Thanks. > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Create a component event link for another page
Here is a sample. If you return null or void from the event in the other page then you stay on the first page. You can return any of the standard things from the event on the other page to get different redirecting behavior. public class FirstPage { @InjectPage private OtherPage otherPage; public Link getOtherPageEvent() { return otherPage.getEventLink("hello", "one", "two", "three"); } } public class OtherPage { @Inject private ComponentResources resources; @Property private String[] strings; public Link getEventLink(String event, Object... context) { return resources.createEventLink(event, context); } public void onHello(String one, String two, String three) { strings = new String[] {one, two, three}; } public Object onStayHere() { return this; } } On Fri, Jan 21, 2011 at 2:08 AM, Markus Feindler wrote: > Hi, > > how to create a Component Event Link for a different page? > > This is not a suitable solution for my problem: > http://www.mail-archive.com/users@tapestry.apache.org/msg36825.html > > Best Regards > Markus > > > -- > GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit > gratis Handy-Flat! http://portal.gmx.net/de/go/dsl > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Http Basic authentication with Tapestry
> I can't believe that nobody knows the solution or even a hint for this > issue... I don't believe you are running into a problem with Tapestry. I'm suggesting a proxy for debugging your http communication with the server, that is a pretty strong hint at how to track down your problem. You are probably sending something different during your tests than in your web app. Have you considered talking to OpenStreetMap support? You said: "When I wrote the unit tests I didn't need to use credentials" Do you mean your unit tests don't need to pass username/password but you do in Tapestry? That sounds fishy. Josh On Fri, Jan 21, 2011 at 2:14 AM, AlbertoAlmagro wrote: > > I can't believe that nobody knows the solution or even a hint for this > issue... > > Any help please? > > Thank you so much... > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Http-Basic-authentication-with-Tapestry-tp3348700p3351113.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Question on Tapesry Services IoC
Thanks Kristian, first I want to ask a conceptual question: if a build method receives for example a String value not a map,... can I contribute to that build method using Configuration/OrderedConfiguration? what if the build method has no parameters?, is it possible to contribute? in practice..., now I 'm facing this problem: I need to override a property from the service AuthenticationProcessingFilter, (this is from tapestry-spring-security.. I can't modify that code): here's it's build method @Marker(SpringSecurityServices.class) > public static AuthenticationProcessingFilter > buildRealAuthenticationProcessingFilter( > @SpringSecurityServices > final AuthenticationManager manager, @SpringSecurityServices > final RememberMeServices rememberMeServices, @Inject > @Value("${spring-security.check.url}") > final String authUrl, @Inject > @Value("${spring-security.target.url}") > final String targetUrl, @Inject > @Value("${spring-security.failure.url}") > final String failureUrl) throws Exception { > AuthenticationProcessingFilter filter = new > AuthenticationProcessingFilter(); > filter.setAuthenticationManager(manager); > filter.setAuthenticationFailureUrl(failureUrl); > filter.setDefaultTargetUrl(targetUrl); > filter.setFilterProcessesUrl(authUrl); > filter.setRememberMeServices(rememberMeServices); > filter.afterPropertiesSet(); > return filter; > } > What I 'd like to do is to have something like filter.set AlwaysUseDefaultTargetUrl(true) in my own AppModule as a contribution Here, for example is another build method from the same library module, which uses that object: @Marker(SpringSecurityServices.class) > public static HttpServletRequestFilter > buildAuthenticationProcessingFilter( > final AuthenticationProcessingFilter filter) throws Exception { > return new HttpServletRequestFilterWrapper(filter); > } > I 'd need some advice on how to "contribute" and set that property to the required value in my AppModule, I guess that in the tapestry-spring-security site they say something about overriding values using contributeAlias, but as I 'ver read that this type of contribution is going to be deprecated on 5.3 I didn't try that way yet. hope I was clear, thanks as usual... Nicolás.- On Thu, Jan 20, 2011 at 9:01 AM, Kristian Marinkovic < kristian.marinko...@porscheinformatik.at> wrote: > hi nicloas, > > you could use a builder method to decouple tapestry ioc from 3rd party > libraries/constructors > > public SomethingManager buildSomethinManager(Map<> map, ...) > { > return new SomethingManger(map, ... ); > } > > public void contributeSomethingManager(MappedConfiguration<> map) > {} > > g, > kris > > > Von:Nicolas Barrera > An: Tapestry users > Datum: 20.01.2011 12:55 > Betreff:Re: Question on Tapesry Services IoC > > > > Thanks Josh, > > sorry for my verbosity > > So in order to use contributions to a Service (SomethingManager) through a > MappedConfiguration, > > this SomethingManager should have a constructor that receives the > corresponding Map, and tapestry will inject the contributed > MappedConfiguration into it? > > ok i got it..., tomorrow I m going to test it on code.., the thing is > that > in my case SomethingManager is a 3rd party class > (tapestry-spring-security) > but i think i can handle it with this information. > > thanks for the concept. > > Do you know why will Alias Contributions be deprecated? I guess that what > you explained me will be the defacto way of contributing and overriding > contributions? > > thanks again and cheers > > Nicolás.- > > > On Wed, Jan 19, 2011 at 8:04 PM, Josh Canfield > wrote: > > > You had me all the way up until you started talking about what you > > wanted to do. Here is a short primer: > > > > You have a service that manages a collection of Something: > > > > private Map allMyConfiguredSomethings; > > > > // I get my Somethings in the constructor > > public SomeThingManagerImpl(Map somethingMap) { > >this.allMyConfiguredSomethings = somethingMap; > > } > > > > // In your app module you tell tapestry about your SomethingManager > > service. > > > > public static void bind(ServiceBinder binder) { > >binder.bind(SomethingManager.class, SomethingManagerImpl.class); > > } > > > > // and tell the something manager which somethings it's going to manage > > > > public static void > > contributeSomethingManager(MappendConfiguration > > configuration) { > > // put items in that eventually end up in SomethingManager > > } > > > > MappedConfiguration has an override method which you can use to set a > > value on top of another from within your contribute method. > > > > Josh > > > > On Wed, Jan 19, 2011 at 12:09 PM, Nicolas Barrera > > wrote: > > > Hi, > > > > > > I 'm trying to understand how d
Re: Create a component event link for another page
On Fri, 21 Jan 2011 08:08:09 -0200, Markus Feindler wrote: Hi, Hi! how to create a Component Event Link for a different page? Why do you want that? Using an event link from one page to another is not recommended at all. Tell us what logic you want to implement. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: HTML Ajax components package for Tapestry
On Fri, 21 Jan 2011 06:42:00 -0200, Gavin Lei wrote: Hi guys, Hi! Recently, i want to develop a tapestry based Web2.0 application. So, i want to know that where there are some projects which supply HTML components with Ajax features for Taperstry? Such as Auto-complete tapestry component ? If there are some famous project, i think we can use these components directly, it will save us much time. Tapestry already provides lots of AJAX features out of the box. The documentation is here: http://tapestry.apache.org/ajax-javascript.html Tapestry already provides an Autocomplete mixin. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Create a component event link for another page
I am not quite sure what that means but you can always generate the links completely manually. http://www.yourdomain.com/yourApp/yourPage:yourEvent/eventContextIfNeeded?t:ac=pageActivationContextIfNeeded Cheers, Joost On 21/01/11 12:08 PM, Markus Feindler wrote: Thanks, but this won't work for me, cause Im using the portletbridge which creates a RenderUrl for pagelinks instead of ActionUrls. Original-Nachricht Datum: Fri, 21 Jan 2011 11:34:54 +0100 Von: "Joost Schouten (ml)" An: Tapestry users Betreff: Re: Create a component event link for another page You can create a normal pagelink with PageRenderLinkSource and manually add the event name. Like so: Link link = pageRenderLinkSource.createPageRenderLink(YourOtherPage.class); return link.toRedirectURI() + ":yourEventName"; Add context is required return link.toRedirectURI() + ":yourEventName/contextValue"; There might be a service for it somewhere but not much that can go wrong here ;-) Cheers, Joost On 21/01/11 11:22 AM, Markus Feindler wrote: No, I do not want to send a redirect in my Event Link to a different page. I want to create an Event Link on Page1, which is handled directly / triggers the event in Page2. Original-Nachricht Datum: Fri, 21 Jan 2011 11:12:18 +0100 Von: Alberto Almagro An: Tapestry users Betreff: Re: Create a component event link for another page Maybe this can help? http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/eventlinks Alberto 2011/1/21 Markus Feindler: Hi, how to create a Component Event Link for a different page? This is not a suitable solution for my problem: http://www.mail-archive.com/users@tapestry.apache.org/msg36825.html Best Regards Markus -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Create a component event link for another page
Thanks, but this won't work for me, cause Im using the portletbridge which creates a RenderUrl for pagelinks instead of ActionUrls. > > Original-Nachricht > Datum: Fri, 21 Jan 2011 11:34:54 +0100 > Von: "Joost Schouten (ml)" > An: Tapestry users > Betreff: Re: Create a component event link for another page > > You can create a normal pagelink with PageRenderLinkSource > and > manually add the event name. Like so: > > Link link = > pageRenderLinkSource.createPageRenderLink(YourOtherPage.class); > return link.toRedirectURI() + ":yourEventName"; > > Add context is required > return link.toRedirectURI() + ":yourEventName/contextValue"; > > There might be a service for it somewhere but not much that can go wrong > here ;-) > > Cheers, > Joost > > On 21/01/11 11:22 AM, Markus Feindler wrote: > > No, I do not want to send a redirect in my Event Link to a different > page. > > I want to create an Event Link on Page1, which is handled directly / > > triggers the event in Page2. > > > >> > >> Original-Nachricht > >> Datum: Fri, 21 Jan 2011 11:12:18 +0100 > >> Von: Alberto Almagro > >> An: Tapestry users > >> Betreff: Re: Create a component event link for another page > >> > >> Maybe this can help? > >> > >> > >> > http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/eventlinks > >> > >> Alberto > >> > >> 2011/1/21 Markus Feindler: > >>> Hi, > >>> > >>> how to create a Component Event Link for a different page? > >>> > >>> This is not a suitable solution for my problem: > >>> http://www.mail-archive.com/users@tapestry.apache.org/msg36825.html > >>> > >>> Best Regards > >>> Markus > >>> > >>> > >>> -- > >>> GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit > >>> gratis Handy-Flat! http://portal.gmx.net/de/go/dsl > >>> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >> For additional commands, e-mail: users-h...@tapestry.apache.org > >> > >> > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
Re: Create a component event link for another page
oops: "Add context *is* required" should be "Add context *if* required" On 21/01/11 11:34 AM, Joost Schouten (ml) wrote: You can create a normal pagelink with PageRenderLinkSource and manually add the event name. Like so: Link link = pageRenderLinkSource.createPageRenderLink(YourOtherPage.class); return link.toRedirectURI() + ":yourEventName"; Add context is required return link.toRedirectURI() + ":yourEventName/contextValue"; There might be a service for it somewhere but not much that can go wrong here ;-) Cheers, Joost On 21/01/11 11:22 AM, Markus Feindler wrote: No, I do not want to send a redirect in my Event Link to a different page. I want to create an Event Link on Page1, which is handled directly / triggers the event in Page2. Original-Nachricht Datum: Fri, 21 Jan 2011 11:12:18 +0100 Von: Alberto Almagro An: Tapestry users Betreff: Re: Create a component event link for another page Maybe this can help? http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/eventlinks Alberto 2011/1/21 Markus Feindler: Hi, how to create a Component Event Link for a different page? This is not a suitable solution for my problem: http://www.mail-archive.com/users@tapestry.apache.org/msg36825.html Best Regards Markus -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Create a component event link for another page
You can create a normal pagelink with PageRenderLinkSource and manually add the event name. Like so: Link link = pageRenderLinkSource.createPageRenderLink(YourOtherPage.class); return link.toRedirectURI() + ":yourEventName"; Add context is required return link.toRedirectURI() + ":yourEventName/contextValue"; There might be a service for it somewhere but not much that can go wrong here ;-) Cheers, Joost On 21/01/11 11:22 AM, Markus Feindler wrote: No, I do not want to send a redirect in my Event Link to a different page. I want to create an Event Link on Page1, which is handled directly / triggers the event in Page2. Original-Nachricht Datum: Fri, 21 Jan 2011 11:12:18 +0100 Von: Alberto Almagro An: Tapestry users Betreff: Re: Create a component event link for another page Maybe this can help? http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/eventlinks Alberto 2011/1/21 Markus Feindler: Hi, how to create a Component Event Link for a different page? This is not a suitable solution for my problem: http://www.mail-archive.com/users@tapestry.apache.org/msg36825.html Best Regards Markus -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Http Basic authentication with Tapestry
Thank you for your response Werner, OpenStreetMap implements OAuth 1.0 so far. When you go to your user profile settings and click on OAuth settings it prompts you to register your application filling a form that requires the Name of the app, main URL, callback URL and support URL. I haven't tried it yet because as I develop my app at home and I have a variable IP address, I don't know what I have to do to avoid changing the main, callback and support URL each time I connect my router. And also I haven't find a good tutorial for OAuth in Java (ruby has lots of them) It could be a good alternative to use OAuth, Can you help me with the problem of the variable address and the one of the tutorial/documentation? Thank you so much, Alberto 2011/1/21 Werner Keil : > Have you considered OpenId or OAuth for authentication, or are those not > supported by OpenStreetMap so far? > > On Fri, Jan 21, 2011 at 3:44 PM, AlbertoAlmagro > wrote: > >> >> I can't believe that nobody knows the solution or even a hint for this >> issue... >> >> Any help please? >> >> Thank you so much... >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/Http-Basic-authentication-with-Tapestry-tp3348700p3351113.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > > -- > > Werner Keil | UOMo Lead | Eclipse Foundation | Agile Coach, Principal > Consultant | *emergn* limited > > 590 Madison Avenue. New York. NY 10022 | 68 Lombard Street. London EC3V 9LJ > UK > > US Toll Free: +1-877.964.1981 | Worldwide Toll Free: +800.225.53482 > Skype: werner.keil|www.emergn.com | Reshaping IT > > * STP Conference & Expo: March 24, 2011, Nashville, TN. Werner Keil, Agile > Coach and Principal Consultant, will be presenting "Agile Test Automation" > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Create a component event link for another page
No, I do not want to send a redirect in my Event Link to a different page. I want to create an Event Link on Page1, which is handled directly / triggers the event in Page2. > > Original-Nachricht > Datum: Fri, 21 Jan 2011 11:12:18 +0100 > Von: Alberto Almagro > An: Tapestry users > Betreff: Re: Create a component event link for another page > > Maybe this can help? > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/eventlinks > > Alberto > > 2011/1/21 Markus Feindler : > > Hi, > > > > how to create a Component Event Link for a different page? > > > > This is not a suitable solution for my problem: > > http://www.mail-archive.com/users@tapestry.apache.org/msg36825.html > > > > Best Regards > > Markus > > > > > > -- > > GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit > > gratis Handy-Flat! http://portal.gmx.net/de/go/dsl > > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
Re: Http Basic authentication with Tapestry
Have you considered OpenId or OAuth for authentication, or are those not supported by OpenStreetMap so far? On Fri, Jan 21, 2011 at 3:44 PM, AlbertoAlmagro wrote: > > I can't believe that nobody knows the solution or even a hint for this > issue... > > Any help please? > > Thank you so much... > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Http-Basic-authentication-with-Tapestry-tp3348700p3351113.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Werner Keil | UOMo Lead | Eclipse Foundation | Agile Coach, Principal Consultant | *emergn* limited 590 Madison Avenue. New York. NY 10022 | 68 Lombard Street. London EC3V 9LJ UK US Toll Free: +1-877.964.1981 | Worldwide Toll Free: +800.225.53482 Skype: werner.keil|www.emergn.com | Reshaping IT * STP Conference & Expo: March 24, 2011, Nashville, TN. Werner Keil, Agile Coach and Principal Consultant, will be presenting "Agile Test Automation"
Re: Http Basic authentication with Tapestry
I can't believe that nobody knows the solution or even a hint for this issue... Any help please? Thank you so much... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Http-Basic-authentication-with-Tapestry-tp3348700p3351113.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Create a component event link for another page
Maybe this can help? http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/eventlinks Alberto 2011/1/21 Markus Feindler : > Hi, > > how to create a Component Event Link for a different page? > > This is not a suitable solution for my problem: > http://www.mail-archive.com/users@tapestry.apache.org/msg36825.html > > Best Regards > Markus > > > -- > GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit > gratis Handy-Flat! http://portal.gmx.net/de/go/dsl > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Create a component event link for another page
Hi, how to create a Component Event Link for a different page? This is not a suitable solution for my problem: http://www.mail-archive.com/users@tapestry.apache.org/msg36825.html Best Regards Markus -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
Re: HTML Ajax components package for Tapestry
More examples at: http://jumpstart.doublenegative.com.au/jumpstart/ Cheers, Joost On 21/01/11 9:54 AM, Taha Hafeez wrote: > Hi > > You may find some here http://www.chenillekit.org/. Demo is > http://www.chenillekit.org/demo/tapcomp > > regards > Taha > > > 2011/1/21 Gavin Lei > >> Hi guys, >> >> Recently, i want to develop a tapestry based Web2.0 application. So, i want >> to know that where there are some projects which supply HTML components >> with >> Ajax features for Taperstry? Such as Auto-complete tapestry component ? If >> there are some famous project, i think we can use these components >> directly, >> it will save us much time. >> >> So, helping replies from your guys, thank you :-) >> >> -- >> - >> Best Regards >> Gavin Lei (雷银) >> Email: gavingui2...@gmail.com >> - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: HTML Ajax components package for Tapestry
Hi You may find some here http://www.chenillekit.org/. Demo is http://www.chenillekit.org/demo/tapcomp regards Taha 2011/1/21 Gavin Lei > Hi guys, > > Recently, i want to develop a tapestry based Web2.0 application. So, i want > to know that where there are some projects which supply HTML components > with > Ajax features for Taperstry? Such as Auto-complete tapestry component ? If > there are some famous project, i think we can use these components > directly, > it will save us much time. > > So, helping replies from your guys, thank you :-) > > -- > - > Best Regards > Gavin Lei (雷银) > Email: gavingui2...@gmail.com >
HTML Ajax components package for Tapestry
Hi guys, Recently, i want to develop a tapestry based Web2.0 application. So, i want to know that where there are some projects which supply HTML components with Ajax features for Taperstry? Such as Auto-complete tapestry component ? If there are some famous project, i think we can use these components directly, it will save us much time. So, helping replies from your guys, thank you :-) -- - Best Regards Gavin Lei (雷银) Email: gavingui2...@gmail.com