Re: Anyone still using Java 8 in Tapestry webapps
latter… YES! ~150 web sites with t5 and java8 Thomas Le 03/10/2023 à 19:34, Thiago H. de Paula Figueiredo a écrit : Hello, everyone! While planning the next Tapestry steps, one piece of information that would be useful is whether there's still Tapestry webapps out there running on Java 8. No need to tell what the webapps are, just raise your virtual hand if the answer is yes. Thanks in advance. Cheers! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.4-beta-35] No more td css class from t:datagrid
Hi thank you for your answer. But can you explain the reason why css class has been removed. Thomas Le 27/10/2015 11:12, Thiago H de Paula Figueiredo a écrit : On Mon, 26 Oct 2015 06:56:28 -0200, TNO wrote: Hi, Hi! idem for the class css, become with T5.4-beta-35 this is a problem for me, because all tr and td css has to be changed You can write a mixin which changes data-grid-property="xxx" into class="xxx" using Tapestry DOM rewriting. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.4-beta-35] No more td css class from t:datagrid
Hi, idem for the class css, become with T5.4-beta-35 this is a problem for me, because all tr and td css has to be changed Thomas Le 23/10/2015 12:37, TNO a écrit : Hi, with T5.3, using a t:dataGrid, for each td, there is a css class from property name : 13 oct. 2014 but whith T5.4-beta-35, no more css class but a data-grid-property attribute ! 13 oct. 2014 Why the td css class from t:dataGrid was removed ? Best regards, Thomas - 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
[T5.4-beta-35] No more td css class from t:datagrid
Hi, with T5.3, using a t:dataGrid, for each td, there is a css class from property name : 13 oct. 2014 but whith T5.4-beta-35, no more css class but a data-grid-property attribute ! 13 oct. 2014 Why the td css class from t:dataGrid was removed ? Best regards, Thomas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Startup service needs Request
Hi, I'm using Tapestry 5.3.7, and I'm trying to send mails at tapestry startup application. In these mails, I need the full url of the website to create dynamic links. I create a service which needs org.apache.tapestry5.services.Request (Usually, I use getServerName and getContextPath from Request to create the url), but I would like to use it outside the pages at the startup application. But the request is always null. Is there a solution to use the Request or to get the full path outside tapestry pages ? Any help is welcome Thanks, Thomas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: DateTimePicker Component
Hi, I found one here : https://github.com/trsvax/Jacquard It works ! Thomas Le 20/03/2015 10:34, TNO a écrit : Hi, I'm using tapestry 5.3.7 with tapsetry-jquery. I'm looking for a DateTimePicker component. Tapestry have only a datepicker Chenille Kit used to have one (ck.DateTimeField), but this project seems to be dead Thanks for your help, Thomas - 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: DateTimePicker Component
Hi, I found one here : https://github.com/trsvax/Jacquard It works ! Thomas Le 20/03/2015 10:34, TNO a écrit : Hi, I'm using tapestry 5.3.7 with tapsetry-jquery. I'm looking for a DateTimePicker component. Tapestry have only a datepicker Chenille Kit used to have one (ck.DateTimeField), but this project seems to be dead Thanks for your help, Thomas - 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
Startup service needs Request
Hi, I'm using Tapestry 5.3.7, and I'm trying to send mails at tapestry startup application. In these mails, I need the full url of the website to create dynamic links. I create a service which needs org.apache.tapestry5.services.Request (Usually, I use getServerName and getContextPath from Request to create the url), but I would like to use it outside the pages at the startup application. But the request is always null. Is there a solution to use the Request or to get the full path outside tapestry pages ? Any help is welcome Thanks, Thomas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
DateTimePicker Component
Hi, I'm using tapestry 5.3.7 with tapsetry-jquery. I'm looking for a DateTimePicker component. Tapestry have only a datepicker Chenille Kit used to have one (ck.DateTimeField), but this project seems to be dead Thanks for your help, Thomas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [tapestry5-jquery] jquery.palette bug in production mode
Hi, I found the problem ! When I start using tapestry5-jquery, I replace all my |@Import(library = {"classpath:org/.../jquery.js"}) | with |@Import(library = {"${jquery.core.path}"}) | No problem in dev mode, but in production mode, problem with palette (and may be others...) So I remove all ${jquery.core.path} and it works ! Thnaks, Thomas Le 01/09/2014 17:10, françois facon a écrit : Hi I tried to reproduce the problem without success on the 3.4.1-snapshot. Have you tested this version? please post you comments to https://github.com/got5/tapestry5-jquery/issues/335 François 2014-08-30 21:25 GMT+02:00 TNO : Hi, I'm using * tapestry 5.3.7 * tapestry5-jquery 3.3.7 * a simple form (login, password and list of role), a jquery.palette is used to choose the roles. It works when PRODUCTION_MODE is set to false, but my role list is always null when PRODUCTION_MODE = true. Using Firebug, I saw * When PRODUCTION_MODE=true and I select an item, the value of hidden pallette-value doesn't fill with it | | * So in Pallette java, parameterValue is always null | @Override protected void processSubmission(String controlName) { String parameterValue = request.getParameter(controlName + "-values"); | But when PRODUCTION_MODE=false, it's OK Another problem in production mode, when I click on plus arrow, a submit is launched... thanks for any help, Thomas
[tapestry5-jquery] jquery.palette bug in production mode
Hi, I'm using * tapestry 5.3.7 * tapestry5-jquery 3.3.7 * a simple form (login, password and list of role), a jquery.palette is used to choose the roles. It works when PRODUCTION_MODE is set to false, but my role list is always null when PRODUCTION_MODE = true. Using Firebug, I saw * When PRODUCTION_MODE=true and I select an item, the value of hidden pallette-value doesn't fill with it | | * So in Pallette java, parameterValue is always null | @Override protected void processSubmission(String controlName) { String parameterValue = request.getParameter(controlName + "-values"); | But when PRODUCTION_MODE=false, it's OK Another problem in production mode, when I click on plus arrow, a submit is launched... thanks for any help, Thomas
Re: Tapestry-csrf-protection with Tapestry-Spring-Security.
Thanks a lot Eugen ! Le 15/07/2014 22:12, Eugen a écrit : Yes, this is the "normal" way, another way is to make a tapestry form, f.e.: and in OnSuccess event something like: @inject AuthenticationManager authenticationManager; void onSuccess() { Authentication authentication = new UsernamePasswordAuthenticationToken(username, password); Authentication authResult = authenticationManager.authenticate(authentication); SecurityContextHolder.getContext().setAuthentication(authResult); } this code throws an AuthenticationException if authentication fails. Eugen 2014-07-15 19:09 GMT+02:00 TNO : Thanks, but This is a form with an action value This is not a tapestry form (t:form), I don't think I can use the onSuccess Thomas Le 15/07/2014 18:49, Eugen a écrit : Hi, You can login programatically in onSucces function of a tapestry form. Best regards Eugen Am 15.07.2014 16:16 schrieb "TNO" : Hello, Is there anybody who already use tapestry-csrf-protection with Tapestry-Spring-Security ? tapestry-csrf-protection works out of the box with t:form, but Tapestry-Spring-Security works with is a simple html form and uses the Spring HttpServletRequestFilter. I'm using in the login form but I can't check the token value in the filters... Thanks for any help Cheers, Thomas - 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: Tapestry-csrf-protection with Tapestry-Spring-Security.
Thanks, but This is a form with an action value class="line"> This is not a tapestry form (t:form), I don't think I can use the onSuccess Thomas Le 15/07/2014 18:49, Eugen a écrit : Hi, You can login programatically in onSucces function of a tapestry form. Best regards Eugen Am 15.07.2014 16:16 schrieb "TNO" : Hello, Is there anybody who already use tapestry-csrf-protection with Tapestry-Spring-Security ? tapestry-csrf-protection works out of the box with t:form, but Tapestry-Spring-Security works with is a simple html form and uses the Spring HttpServletRequestFilter. I'm using in the login form but I can't check the token value in the filters... Thanks for any help Cheers, Thomas - 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: Tapestry-csrf-protection with Tapestry-Spring-Security.
The trace : |java.lang.NullPointerException: Unable to delegate method invocation to property 'request' of , because the property is null. at $Request_1ce08361bf2a.readProperty(Unknown Source) at $Request_1ce08361bf2a.getSession(Unknown Source) at $Request_1ce08361bee0.getSession(Unknown Source) at org.apache.tapestry5.internal.services.SessionApplicationStatePersistenceStrategy.exists(SessionApplicationStatePersistenceStrategy.java:80) at $ApplicationStatePersistenceStrategy_1ce08361c07b.exists(Unknown Source) at org.apache.tapestry5.internal.services.ApplicationStateManagerImpl$ApplicationStateAdapter.exists(ApplicationStateManagerImpl.java:60) at org.apache.tapestry5.internal.services.ApplicationStateManagerImpl.getIfExists(ApplicationStateManagerImpl.java:140) at $ApplicationStateManager_1ce08361bf33.getIfExists(Unknown Source) at org.apache.tapestry5.csrfprotection.internal.SessionCsrfTokenRepository.loadToken(SessionCsrfTokenRepository.java:39) at $CsrfTokenRepository_1ce08361c079.loadToken(Unknown Source) at $CsrfTokenRepository_1ce08361beff.loadToken(Unknown Source) at org.atlog.mjweb.services.user.GemwebCsrfAuthenticationProcessingFilter.checkToken(GemwebCsrfAuthenticationProcessingFilter.java:40) at org.atlog.mjweb.services.user.GemwebCsrfAuthenticationProcessingFilter.attemptAuthentication(GemwebCsrfAuthenticationProcessingFilter.java:35) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:211) at nu.localhost.tapestry5.springsecurity.services.internal.HttpServletRequestFilterWrapper.service(HttpServletRequestFilterWrapper.java:52) ... | Le 15/07/2014 16:15, TNO a écrit : Hello, Is there anybody who already use tapestry-csrf-protection with Tapestry-Spring-Security ? tapestry-csrf-protection works out of the box with t:form, but Tapestry-Spring-Security works with is a simple html form and uses the Spring HttpServletRequestFilter. I'm using in the login form but I can't check the token value in the filters... Thanks for any help Cheers, Thomas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry-csrf-protection with Tapestry-Spring-Security.
Hello, Is there anybody who already use tapestry-csrf-protection with Tapestry-Spring-Security ? tapestry-csrf-protection works out of the box with t:form, but Tapestry-Spring-Security works with is a simple html form and uses the Spring HttpServletRequestFilter. I'm using in the login form but I can't check the token value in the filters... Thanks for any help Cheers, Thomas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.3.6] AjaxFormLoop not populating values after submission
Hi, No one... It's OK when I use a simple t:loop. Le 16/09/2013 18:48, TNO a écrit : Hi, I'm trying to use AjaxFormLoop inspired from * http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1 * http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/AjaxFormLoop.html but I have a big problem. My new pojos are not populated with their values. Did I miss something ? Can somebody help me ?? Thanks Here's the java code : public class MatchDetail extends BasePageEquipe { @Property private Match _match; @Property private Buteur _buteur; @Property(read=false) private List _listButeur; public List getListButeur() { if (_listButeur == null) { _listButeur = _match.getListButeur(); } return _listButeur; } @Inject private ServiceDAO _dao; @Property private boolean _update = false; public void onActivate(final Long idMatch) { _match = _dao.getMatchDAO().get1N(idMatch); if (_match == null) { _match = new Match(); _match.setIdMatch(idMatch); _match.setIdConvocation(idMatch); } } public Long onPassivate() { if (_match == null || _match.getIdMatch() == null) { return 0L; } else { return _match.getIdMatch(); } } public void onSuccess() { getWebUtilisateur(); try { _dao.getMatchDAO().save(_match, _listButeur); setOkMsg("Mise à jour OK"); } catch (Exception e) { setErrorMsg(e.getMessage()); } } @Property private SelectLicencieIdModel _licencieModel = new SelectLicencieIdModel(); @Property private MyButeurValueEncoder _buteurEncoder = new MyButeurValueEncoder(); Object onAddRowFromButeurs() { getWebUtilisateur(); Buteur buteur = new Buteur(); try { Licencie licencie = _dao.getLicencieDAO().getFirstLicencie(); buteur.setIdMatch(_match.getIdMatch()); buteur.setIdLicencie(licencie.getIdLicencie()); _dao.getButeurDAO().save(buteur); _listButeur.add(buteur); } catch (Exception e) { setErrorMsg(e.getMessage()); } return buteur; } void onRemoveRowFromButeurs(Buteur buteur) { getWebUtilisateur(); try { _dao.getButeurDAO().delete(buteur.getIdButeur()); _listButeur.remove(buteur); } catch (Exception e) { setErrorMsg(e.getMessage()); } } private class MyButeurValueEncoder extends BaseValueEncoder { public String toClient(Buteur buteur) { Long id = buteur.getIdButeur(); return id == null ? null : id.toString(); } public Buteur toValue(String value) { Buteur buteur = null; Long idButeur = LongUtil.toLong(value); if (idButeur == null) { buteur = new Buteur(); } else { buteur = getButeurDAO().get(idButeur); } if (buteur == null) { _logger.error(String.format("Probléme Buteur introuvable id: [%s]", idButeur)); buteur = new Buteur(); } return buteur; } private ButeurDAO getButeurDAO() { return getDAO().getButeurDAO(); } } } Here's the tml code : xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> content="${msg}" duration="${duration}" /> Détail Match context="match.idConvocation" class="pure-button pure-button-active"> src="actions/edit-find-replace.png" title="Edition" alt="Edition" border="0" /> Retour à la convocation Id [${match.idMatch}] t:mixins="tynamo/ckeditor" value="match.compteRendu" width="70%" /> source="listButeur" value="buteur" t:encoder="buteurEncoder" t:show="show"> ${buteur.idButeur}
[T5.3.6] AjaxFormLoop not populating values after submission
Hi, I'm trying to use AjaxFormLoop inspired from * http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1 * http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/AjaxFormLoop.html but I have a big problem. My new pojos are not populated with their values. Did I miss something ? Can somebody help me ?? Thanks Here's the java code : public class MatchDetail extends BasePageEquipe { @Property private Match _match; @Property private Buteur _buteur; @Property(read=false) private List _listButeur; public List getListButeur() { if (_listButeur == null) { _listButeur = _match.getListButeur(); } return _listButeur; } @Inject private ServiceDAO _dao; @Property private boolean _update = false; public void onActivate(final Long idMatch) { _match = _dao.getMatchDAO().get1N(idMatch); if (_match == null) { _match = new Match(); _match.setIdMatch(idMatch); _match.setIdConvocation(idMatch); } } public Long onPassivate() { if (_match == null || _match.getIdMatch() == null) { return 0L; } else { return _match.getIdMatch(); } } public void onSuccess() { getWebUtilisateur(); try { _dao.getMatchDAO().save(_match, _listButeur); setOkMsg("Mise à jour OK"); } catch (Exception e) { setErrorMsg(e.getMessage()); } } @Property private SelectLicencieIdModel _licencieModel = new SelectLicencieIdModel(); @Property private MyButeurValueEncoder _buteurEncoder = new MyButeurValueEncoder(); Object onAddRowFromButeurs() { getWebUtilisateur(); Buteur buteur = new Buteur(); try { Licencie licencie = _dao.getLicencieDAO().getFirstLicencie(); buteur.setIdMatch(_match.getIdMatch()); buteur.setIdLicencie(licencie.getIdLicencie()); _dao.getButeurDAO().save(buteur); _listButeur.add(buteur); } catch (Exception e) { setErrorMsg(e.getMessage()); } return buteur; } void onRemoveRowFromButeurs(Buteur buteur) { getWebUtilisateur(); try { _dao.getButeurDAO().delete(buteur.getIdButeur()); _listButeur.remove(buteur); } catch (Exception e) { setErrorMsg(e.getMessage()); } } private class MyButeurValueEncoder extends BaseValueEncoder { public String toClient(Buteur buteur) { Long id = buteur.getIdButeur(); return id == null ? null : id.toString(); } public Buteur toValue(String value) { Buteur buteur = null; Long idButeur = LongUtil.toLong(value); if (idButeur == null) { buteur = new Buteur(); } else { buteur = getButeurDAO().get(idButeur); } if (buteur == null) { _logger.error(String.format("Probléme Buteur introuvable id: [%s]", idButeur)); buteur = new Buteur(); } return buteur; } private ButeurDAO getButeurDAO() { return getDAO().getButeurDAO(); } } } Here's the tml code : xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> content="${msg}" duration="${duration}" /> Détail Match context="match.idConvocation" class="pure-button pure-button-active"> src="actions/edit-find-replace.png" title="Edition" alt="Edition" border="0" /> Retour à la convocation Id [${match.idMatch}] t:mixins="tynamo/ckeditor" value="match.compteRendu" width="70%" /> source="listButeur" value="buteur" t:encoder="buteurEncoder" t:show="show"> ${buteur.idButeur} model="licencieModel" /> | Suppression Ajouter un buteur thanks, Thomas
[T5.3] Authentification by url with tapestry-spring-security
Hi, I'm trying to identicate automatically an user with a string token in an url. Example : www.toto.fr/mypage/mytoken I'm trying to do this using the setupRender of myPage by doing this : public void setContext(String tokenKey) { UserDetails ud = loadUserByUsername(tokenKey); UsernamePasswordAuthenticationToken result = new UsernamePasswordAuthenticationToken ( ud, null, ud.getAuthorities()); SecurityContextImpl sc = new SecurityContextImpl(); sc.setAuthentication(result); SecurityContextHolder.clearContext(); SecurityContextHolder.setContext(sc); } It seems to not works properly. Did someone already try to do this ? Is this the good way ? Thanks for any help, Thomas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Return URL POST Redirection from onActivate
Ok, thanks you, so it is not possible to redirect and post at same time Le 12/12/2012 11:07, Thiago H de Paula Figueiredo a écrit : On Wed, 12 Dec 2012 06:33:10 -0200, TNO wrote: Hello everybody, Hi! I'm working on a web site using Tapestry 5.2.6. I need to simulate a POST form data to authenticated a client to another site. I'm trying to do it using the return URL from onActivate. That's a redirect, and, as far as I know, HTTP doesn't allow you to redirect and POST at the same time. If you really need to post something to an external server, you either create HTML form pointing to it or do it using JavaScript, as Lance suggested. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Return URL POST Redirection from onActivate
Hello everybody, I'm working on a web site using Tapestry 5.2.6. I need to simulate a POST form data to authenticated a client to another site. I'm trying to do it using the return URL from onActivate. Object onActivate(@RequestParameter(value="id", allowBlank=true ) String id) throws IOException { _idCrypt = id; return getUrl(); } private URL getUrl() throws IOException { String data = "username=toto&password=titi"; URL url = new URL("https://myurl/login";); HttpURLConnection connection = null; //Create connection connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); connection.setRequestProperty("Content-Length", "" +Integer.toString(data.getBytes().length)); connection.setUseCaches (false); connection.setDoInput(true); connection.setDoOutput(true); //Send request DataOutputStream wr = new DataOutputStream (connection.getOutputStream ()); wr.writeBytes (data); wr.flush (); wr.close (); connection.getInputStream(); return connection.getURL(); } But it doesn't work, Tapestry redirect on my url (https://myurl/login), but no authenticated... Is it possible to simulate a POST redirection using an URL object and onActivate from Tapestry ? Thanks, Tom - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5.3.2 - NoSuchMethodError from RegistryShutdownHub.addRegistryShutdownListener
Hi, I'm trying to switch my application to Tapestry 5.3.2 from 5.2.6. I'm using TapestrySpringFilter in the web.xml file to expose an url from web service. What could I miss ? Here's the exception : ERROR 09:54:35.117 org.apache.tapestry5.ioc.services.RegistryShutdownHub.addRegistryShutdownListener(Ljava/lang/Runnable;)V (OperationTrackerImpl.java:108) ERROR 09:54:35.117 Operations trace: (OperationTrackerImpl.java:109) ERROR 09:54:35.118 [ 1] Realizing service ApplicationContext (OperationTrackerImpl.java:118) ERROR 09:54:35.118 [ 2] Invoking ObjectCreator for Spring ApplicationContext (OperationTrackerImpl.java:118) ERROR 09:54:35.118 [ 3] Creating Spring ApplicationContext via ContextLoader (OperationTrackerImpl.java:118) 2012-02-14 09:54:35.119:WARN::failed app: java.lang.NoSuchMethodError: org.apache.tapestry5.ioc.services.RegistryShutdownHub.addRegistryShutdownListener(Ljava/lang/Runnable;)V 2012-02-14 09:54:35.119:WARN::failed org.mortbay.jetty.webapp.WebAppContext@2d7892d5{/gemweb,/home/thomas/Dev/Java/WorkspaceS/Wema/WebMandataire/src/main/webapp}: java.lang.NoSuchMethodError: org.apache.tapestry5.ioc.services.RegistryShutdownHub.addRegistryShutdownListener(Ljava/lang/Runnable;)V 2012-02-14 09:54:35.119:WARN::Error starting handlers java.lang.NoSuchMethodError: org.apache.tapestry5.ioc.services.RegistryShutdownHub.addRegistryShutdownListener(Ljava/lang/Runnable;)V at org.apache.tapestry5.internal.spring.SpringModuleDef$3$1.invoke(SpringModuleDef.java:197) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1063) at org.apache.tapestry5.internal.spring.SpringModuleDef$3.createObject(SpringModuleDef.java:184) at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1063) at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49) at org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29) at org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:46) at org.apache.tapestry5.ioc.internal.AdvisorStackBuilder.createObject(AdvisorStackBuilder.java:60) at org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:52) at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60) at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1063) at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49) at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:68) at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:57) at $ConfigurableWebApplicationContext_1357b1203f8.delegate($ConfigurableWebApplicationContext_1357b1203f8.java) at $ConfigurableWebApplicationContext_1357b1203f8.getBeanDefinitionCount($ConfigurableWebApplicationContext_1357b1203f8.java) at org.apache.tapestry5.spring.SpringModule$1.initializeApplication(SpringModule.java:61) at $ApplicationInitializer_1357b120414.initializeApplication($ApplicationInitializer_1357b120414.java) at $ApplicationInitializer_1357b120410.initializeApplication($ApplicationInitializer_1357b120410.java) at org.apache.tapestry5.services.TapestryModule$ServletApplicationInitializerTerminator.initializeApplication(TapestryModule.java:298) at $ServletApplicationInitializer_1357b1203f5.initializeApplication($ServletApplicationInitializer_1357b1203f5.java) at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:102) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) at org.mortbay.jetty.servlet.Context.startContext(
Re: keep username on failed logins with tapestry-spring-security
Hi Which version of tapestry-security are you using with T5.3 ? Where can I find it ? Tom Le 02/02/2012 18:59, Beat Durrer a écrit : > Hi guys > > I was able to solve the issue myself, yay! > For those interested, here is the simple solution: > > By reading the source code of t-s-s I discovered that the > UsernamePasswordAuthenticationFilter saves the username into the session. > > void onActivate(String extra) { > if (extra.equals("failed")) { > failed = true; > } > > Session session = request.getSession(false); > if( session != null) { > Object usrnameObj = > session.getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_USERNAME_KEY); > username = (usrnameObj != null) ? usrnameObj.toString() : null; > } > } > > > Cheers > Beat > > > > 2012/2/2 Beat Durrer > >> Hi there, >> >> I added tapestry-spring-security 3.0.3 to the T5.3 archetype, following >> the sample app under >> http://www.localhost.nu/java/tapestry-spring-security/conf.html >> Everything works fine. >> >> How can I retrieve the username when a user fails to log in (to put it >> into the input field again)? >> The tapestry-spring-security handler does not bother to include the >> username when redirecting to a login failed URL (which I defined to be the >> Login page). >> >> Can I somehow elegantly intercept a form before forwarding all data to the >> j_spring_security_check? >> I considered a tapestry form and a onSuccess handler, but then I would >> need to forge a request including all the form fields (which just isn't >> really cool). >> >> Any suggestions, please? :) >> >> Thanks in advance! >> Beat >> - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.3 beta 2] Using Tapestry-Spring-Security with 5.3?
Hi, Where can I find the new version of Tapestry-Spring-Security comptatible with Tapestry 5.3 ? Thanks, Tom Le 01/02/2012 10:13, Florian Parain a écrit : > Hi, > > First of all, thanks a lot for your update. > Replacing TransformerWorker by PlasticClass might have been painful. > > I'm currently using Tapestry 5.3.2 and Spring 3.1.0. > Still, there are two issues left. > > First, in the SpringSecurityWorker class, PlasticClassImpl is now lockable > and so cannot be used directly in the advise method. If you do, you get an > exception from Tapestry. An easy way to fix this is to get the FieldHandle > before (in the transformPage and transformMethod methods). > > Second, in the RequestInvocationDefinition class, AntUrlPathMatcher has been > removed in the Spring 3.1.0. We should use AntPathRequestMatcher instead and > then replace RequestKey by RequestMatcher. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/T5-3-beta-2-Using-Tapestry-Spring-Security-with-5-3-tp4775194p5446925.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: [T5.3 beta 2] Using Tapestry-Spring-Security with 5.3?
That's a great news. Do you always need a repositroy ? Thomas Le 11/01/2012 13:44, antalk a écrit : > Hi all, > > I'm in the process of upgrading our webapps to Tap 5.3.x and we use this > library for our authentication process. I'm happy to announce that i've > updated the 3.0.0 trunk of tapestry-spring-security to work with Tapestry > 5.3.x. > > Now all i need is a repository where i can place the source code from which > other developers can build the jar themselves. > > Antal > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/T5-3-beta-2-Using-Tapestry-Spring-Security-with-5-3-tp4775194p5136745.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: 5.1 : Dynamic add (and remove) JS taspestry validator
Nobody... Le 10/04/2011 17:31, TNO a écrit : Hi everybody, I try to do dynamic cross validation on two fields. I have a grid into a form. On each row, I have a select field (OK and KO) and a textarea commentary. When the user select KO, commentary is enabled and his value is required. When the user select OK, commentary is disabled and no value is required. My JS code : function setReadOnly(selectValue, id) { var myId = [id + 'C']; if (selectValue=='KO') { myId.each(function(item) { var myId = $(item); if (myId != null) { myId.removeAttribute('readOnly'); Tapestry.Validator.required(myId, 'Please explain'); } }); } else { myId.each(function(item) { var myId = $(item); if (myId != null) { myId.clear(); myId.setAttribute('readOnly', 'true'); myId.getFieldEventManager().removeDecorations(); myId.getFieldEventManager().requiredCheck = null; } }); } } It seems working but when I select KO, fill commentary, submit then select OK and submit, the submit is good but the ErrorPopup appears without message (only the red cross) Two questions : 1. Did I miss something ? 2. Is there a better way to do it ? Thanks in advance, Thomas - 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
5.1 : Dynamic add (and remove) JS taspestry validator
Hi everybody, I try to do dynamic cross validation on two fields. I have a grid into a form. On each row, I have a select field (OK and KO) and a textarea commentary. When the user select KO, commentary is enabled and his value is required. When the user select OK, commentary is disabled and no value is required. My JS code : function setReadOnly(selectValue, id) { var myId = [id + 'C']; if (selectValue=='KO') { myId.each(function(item) { var myId = $(item); if (myId != null) { myId.removeAttribute('readOnly'); Tapestry.Validator.required(myId, 'Please explain'); } }); } else { myId.each(function(item) { var myId = $(item); if (myId != null) { myId.clear(); myId.setAttribute('readOnly', 'true'); myId.getFieldEventManager().removeDecorations(); myId.getFieldEventManager().requiredCheck = null; } }); } } It seems working but when I select KO, fill commentary, submit then select OK and submit, the submit is good but the ErrorPopup appears without message (only the red cross) Two questions : 1. Did I miss something ? 2. Is there a better way to do it ? Thanks in advance, Thomas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: GridPager with go to a choosen page number
Ok I dit it, but in another simpliest way I create a form with a textfield in my Grid component. I inject the value in the Grid with setCurrentPage thats'all thanks Le 14/04/2010 17:15, TNO a écrit : Any example, please... Le 14/04/2010 16:58, Christophe Cordenier a écrit : Hi 2010/4/14 TNO Hi everybody, I'm working on display a huge list (60 000 elements) with 20 per page. I've defined my own GridDataSource to get only the data that I display in a classic Grid component. It's very easy and it works fine ! Thanks to Tapestry... But now, I want to add a textfield and a button (go to page number) to the GridPager of my Grid. It's seems less easy. Did somebody already create a new GridPager ? How can I defined my own GridPager without create a new Grid component ?? Set pager position to none and implement your own GridPager using the Grid component as the GridDataSource (can be obtained via @InjectComponent in your containing page) Regards, Christophe Cordenier. Thanks, Thomas - 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: GridPager with go to a choosen page number
Any example, please... Le 14/04/2010 16:58, Christophe Cordenier a écrit : Hi 2010/4/14 TNO Hi everybody, I'm working on display a huge list (60 000 elements) with 20 per page. I've defined my own GridDataSource to get only the data that I display in a classic Grid component. It's very easy and it works fine ! Thanks to Tapestry... But now, I want to add a textfield and a button (go to page number) to the GridPager of my Grid. It's seems less easy. Did somebody already create a new GridPager ? How can I defined my own GridPager without create a new Grid component ?? Set pager position to none and implement your own GridPager using the Grid component as the GridDataSource (can be obtained via @InjectComponent in your containing page) Regards, Christophe Cordenier. Thanks, Thomas - 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
GridPager with go to a choosen page number
Hi everybody, I'm working on display a huge list (60 000 elements) with 20 per page. I've defined my own GridDataSource to get only the data that I display in a classic Grid component. It's very easy and it works fine ! Thanks to Tapestry... But now, I want to add a textfield and a button (go to page number) to the GridPager of my Grid. It's seems less easy. Did somebody already create a new GridPager ? How can I defined my own GridPager without create a new Grid component ?? Thanks, Thomas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5 security and ConcurrentSessionController
Hello i am trying to setup the concurrent session control feature provided by Spring Security Framework with tapestry-spring-security 2.1.1. My idea is to prevent a user from logging in many times. It didn't work at all, I have this ERROR 22:00:51.843 /admin/j_spring_security_check (?:?) java.lang.NullPointerException at org.springframework.security.ui.session.HttpSessionEventPublisher.sessionCreated(HttpSessionEventPublisher.java:70) ... Here's my AppModule : public static AuthenticationManager buildMyProviderManager() throws Exception { ConcurrentSessionControllerImpl c = new ConcurrentSessionControllerImpl(); c.setSessionRegistry(new SessionRegistryImpl()); c.setMaximumSessions(1); c.setExceptionIfMaximumExceeded(true); c.afterPropertiesSet(); ProviderManager pm = new ProviderManager(); pm.setSessionController(c); pm.afterPropertiesSet(); return pm; } in web.xml : org.springframework.security.ui.session.HttpSessionEventPublisher I appreciate any help. Best Regards, Thomas --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 100127-0, 27/01/2010 Analyse le : 27/01/2010 22:04:34 avast! - copyright (c) 1988-2010 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Eclipse, Maven, T5 web project and library component in same workspace
Perfect, it works Thanks a lot Le 26/01/2010 13:49, Jun Tsai a écrit : > I think you can use -Dtapestry.modules=xx.xxx.xxx to enable other tapestry > modules in same workspace. > > 2010/1/26 TNO > > >> Hello, >> >> I have a problem, here's the situation : >> Eclipse + Maven >> In the same workspace : a T5 web project and a T5 component library. >> >> When I'm using Workspace resolution, my T5 web project can not find my >> T5 component library. >> But when not, it's OK, it works. >> >> I think this is the Tapestry-Module-Classes which is in my T5 component >> library pom.xm. >> >> Is there a way to use the T5 web project and a T5 component library in >> Eclipse with the workspace resolution enabled ? >> >> thanks, Thomas >> >> >> --- >> Antivirus avast! : message Sortant sain. >> Base de donnees virale (VPS) : 100125-2, 25/01/2010 >> Analyse le : 26/01/2010 13:28:22 >> avast! - copyright (c) 1988-2010 ALWIL Software. >> http://www.avast.com >> >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> > > --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 100125-2, 25/01/2010 Analyse le : 26/01/2010 14:40:34 avast! - copyright (c) 1988-2010 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Eclipse, Maven, T5 web project and library component in same workspace
Hello, I have a problem, here's the situation : Eclipse + Maven In the same workspace : a T5 web project and a T5 component library. When I'm using Workspace resolution, my T5 web project can not find my T5 component library. But when not, it's OK, it works. I think this is the Tapestry-Module-Classes which is in my T5 component library pom.xm. Is there a way to use the T5 web project and a T5 component library in Eclipse with the workspace resolution enabled ? thanks, Thomas --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 100125-2, 25/01/2010 Analyse le : 26/01/2010 13:28:22 avast! - copyright (c) 1988-2010 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Spring Security for T5 : Different target urls for different user roles
;) final > String authUrl, > @Inject @Symbol("spring-security.target.url") final String targetUrl, > @Inject @Symbol("spring-security.failure.url") final > String > failureUrl, @InjectService("SuccessLoginChain") LoginActionCommand > successLoginChain, > @InjectService("FailedLoginChain") LoginActionCommand > failedLoginChain) throws Exception { > > AuthenticationProcessingFilter filter = new > YourAuthenticationProcessingFilter(successLoginChain, > failedLoginChain, > new > AfterLoginRedirectServiceImpl(configuration), logger); > > filter.setAuthenticationManager(manager); > filter.setAuthenticationFailureUrl(failureUrl); > filter.setDefaultTargetUrl(targetUrl); > filter.setFilterProcessesUrl(authUrl); > filter.setRememberMeServices(rememberMeServices); > filter.afterPropertiesSet(); > return filter; > } > > public static void > contributeAliasOverrides(Configuration> > configuration, > @InjectService("YourAuthenticationProcessingFilter") > AuthenticationProcessingFilter yourAuthenticationProcessingFilter) { > > //rewrite the authentication processing filter > > configuration.add(AliasContribution.create(AuthenticationProcessingFilter.class, > yourAuthenticationProcessingFilter)); > > } > > And to configure the target urls in any module u can contribute to > your Filter : > public static void > contributeYourAuthenticationProcessingFilter(MappedConfiguration String> configuration, > @Inject > @Symbol(NebulaConstants.Symbols.DEFAULT_ADVISOR_URL) String > defaultAdvisorUrl) { > > configuration.add(SecurityConstants.Defaults.ADVISOR_ROLE_ID, > defaultAdvisorUrl); > } > > I hope it helps > > On Fri, Dec 4, 2009 at 12:06 PM, TNO wrote: > >> Hi, >> >> is it possible to have different target urls for different user roles. >> >> The ROLE_ADMIN goes to /admin, the ROLE_TOTO goes /page/toto, the >> ROLE_TITI goes to /page/titi, ... >> >> >> thanks >> >> >> --- >> Antivirus avast! : message Sortant sain. >> Base de donnees virale (VPS) : 091203-1, 03/12/2009 >> Analyse le : 04/12/2009 12:06:56 >> avast! - copyright (c) 1988-2009 ALWIL Software. >> http://www.avast.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 > > > --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 091203-1, 03/12/2009 Analyse le : 04/12/2009 13:29:53 avast! - copyright (c) 1988-2009 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Spring Security for T5 : Different target urls for different user roles
Hi, is it possible to have different target urls for different user roles. The ROLE_ADMIN goes to /admin, the ROLE_TOTO goes /page/toto, the ROLE_TITI goes to /page/titi, ... thanks --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 091203-1, 03/12/2009 Analyse le : 04/12/2009 12:06:56 avast! - copyright (c) 1988-2009 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Simplified paths for dynamic asset context
These are kind of static assets. They rarely change... and how do you get the context name ? Le 30/11/2009 12:55, Ulrich Stärk a écrit : Don't use assets in this case. Assets are for static content that rarely changes. Hence the version number and far future expire headers. Uli Am 30.11.2009 11:57 schrieb TNO: Hi, I migrate from T5.0.18 to T5.0.1.5 a couple of days ago. Ok works fine ! But I work on an application which users can upload document and image. So my link to these assets must not contains the application version in their path. They can be dependant of my application version which change sometime. I have this : '/wema/assets/ctx/1.7/pj/image/0/wm.jpg' and I would like (only for the pj subpath) : '/wema/assets/ctx/pj/image/0/wm.jpg' I have tried to use contributeClasspathAssetAliasManager without success. Is it possible to create an alias only for one path in the context without the application version ? Thanks, Thomas --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 091129-1, 29/11/2009 Analyse le : 30/11/2009 11:57:57 avast! - copyright (c) 1988-2009 ALWIL Software. http://www.avast.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 --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 091130-0, 30/11/2009 Analyse le : 30/11/2009 13:39:57 avast! - copyright (c) 1988-2009 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Simplified paths for dynamic asset context
Hi, I migrate from T5.0.18 to T5.0.1.5 a couple of days ago. Ok works fine ! But I work on an application which users can upload document and image. So my link to these assets must not contains the application version in their path. They can be dependant of my application version which change sometime. I have this : '/wema/assets/ctx/1.7/pj/image/0/wm.jpg' and I would like (only for the pj subpath) : '/wema/assets/ctx/pj/image/0/wm.jpg' I have tried to use contributeClasspathAssetAliasManager without success. Is it possible to create an alias only for one path in the context without the application version ? Thanks, Thomas --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 091129-1, 29/11/2009 Analyse le : 30/11/2009 11:57:57 avast! - copyright (c) 1988-2009 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
[T5] Dynamic generation of sitemap.xml
Hello, I have one tapestry application with many different databases. So I want to generate dynamically the sitemap.xml file. I would like to generate it when I deploy the application. Is it possible to get the server name and the context path in the AppModule class with the RequestGlobals class ? thanks, Thomas --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 090208-1, 08/02/2009 Analyse le : 09/02/2009 10:55:41 avast! - copyright (c) 1988-2009 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
[RESOLVED] Re: T5.0.15 Problem with localized app.properties
No I didn't... and now it works The third issue of Tapestry Thanks a lot Tobias Wehrum a écrit : > Hi Thomas, > > do you have a global app.properties? > See https://issues.apache.org/jira/browse/TAP5-3 > > - Tobias > > TNO schrieb: >> Hi everybody, >> >> I'm trying to localize my application, it works very well with >> properties files for components or pages! >> >> But when I try to use the application message catalog (app_en.properties >> and app_fr.properties in the WEB-INF path), it doesn't work anymore, it >> can't find any message and I have a lot of "missing key". >> >> Did I miss something ? >> >> I'm using Tapestry 5.0.15 with Jetty, Eclipse and Maven >> >> thanks, Thomas >> >> >> >> >> --- >> Antivirus avast! : message Sortant sain. >> Base de donnees virale (VPS) : 081001-0, 01/10/2008 >> Analyse le : 01/10/2008 17:43:33 >> avast! - copyright (c) 1988-2008 ALWIL Software. >> http://www.avast.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] > > > --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 081001-0, 01/10/2008 Analyse le : 01/10/2008 18:27:01 avast! - copyright (c) 1988-2008 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5.0.15 Problem with localized app.properties
Hi everybody, I'm trying to localize my application, it works very well with properties files for components or pages! But when I try to use the application message catalog (app_en.properties and app_fr.properties in the WEB-INF path), it doesn't work anymore, it can't find any message and I have a lot of "missing key". Did I miss something ? I'm using Tapestry 5.0.15 with Jetty, Eclipse and Maven thanks, Thomas --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 081001-0, 01/10/2008 Analyse le : 01/10/2008 17:43:33 avast! - copyright (c) 1988-2008 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[RESOLVED] Re: T5.0.14 - OnActivate problem and coercion error
I resolve the problem !!! But, in my case, it is not a classic problem ! Because my problem come from javascript code : In an onload fonction, I found this code : // http://slayeroffice.com/code/imageCrossFade/xfade2.css //css = d.createElement("link"); //css.setAttribute("href","xfade2.css"); //css.setAttribute("rel","stylesheet"); //css.setAttribute("type","text/css"); //d.getElementsByTagName("head")[0].appendChild(css); So my java code was OK, my application work but I have some exceptions trace. I remove the javascript code and now it's OK Thanks Szemere Szemere a écrit : This is a classic problem. The path to your assets is shifted by one level because of the parameter you are passing. Not sure of the fix for your specific case, but if you referenced an asset like this in a .tml, you would use href="${asset:context:org/atlog/mjweb/components/xfade2.css}" HTH, Szemere --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 080828-0, 28/08/2008 Analyse le : 29/08/2008 12:17:04 avast! - copyright (c) 1988-2008 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5.0.14 - OnActivate problem and coercion error
Hello, here's my problem : the short exception ERROR 14:28:02.703 Processing of request failed with uncaught exception: Exception in method org.atlog.mjweb.base.BaseInfo.onActivate(long) (at BaseInfo.java:15), parameter #1: Coercion of xfade2.css to type java.lang.Long (via String --> Long) failed: For input string: "xfade2.css" (DefaultRequestExceptionHandler.java:54) org.apache.tapestry5.runtime.ComponentEventException: Exception in method org.atlog.mjweb.base.BaseInfo.onActivate(long) (at BaseInfo.java:15), parameter #1: Coercion of xfade2.css to type java.lang.Long (via String --> Long) failed: For input string: "xfade2.css" at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1054) at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) ... my component @IncludeJavaScriptLibrary("classpath:org/atlog/mjweb/components/xfade2.js") @IncludeStylesheet("classpath:org/atlog/mjweb/components/xfade2.css") public class Bandeau extends BasePage { public Info getInfo() { return getOneInfo("BANDEAU"); } } my class BaseInfo public class BaseInfo extends BasePage { private Info _info; void onActivate(long idInfo) { _info = findById(idInfo); } Object[] onPassivate() { Object[] o = new Object[2]; o[0] = _info.getIdInfo(); o[1] = getUrlName(_info.getTitre()); return o; } private Info findById(Long idInfo) { return getDAO().getInfoDAO().get(idInfo); } public Info getInfo() { return _info; } } my page class public class MandatInfo extends BaseInfo { } My component "Bandeau" is included in my "MandatInfo" page. I don't understand what's wrong... Is there a problem whith @IncludeStylesheet ? thanks for help --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 080827-0, 27/08/2008 Analyse le : 28/08/2008 14:53:16 avast! - copyright (c) 1988-2008 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Simple question about select and enum
It works ! thanks but the Component Reference says that parameter "model" is required... lasitha a écrit : > Tom, try it without specifing a select model. > > The following is working for me: > > > Where the page class has just the report property and accessors. > > Also note that you don't need to use expansions (the ${..}s) on these. > > Cheers, > lasitha. > > On Nov 15, 2007 10:00 PM, Michael Courcy <[EMAIL PROTECTED]> wrote: > >> Do you have error messages ? >> >> TNO a écrit : >> >> >>> Hi, >>> >>> I want to create a very simple select list from an enum. >>> >>> >>> >>> But in a select component, the model (org.apache.tapestry.SelectModel) >>> is required, I try to use EnumSelectModel but it did not work... >>> I can't have my enum list... >>> >>> please help, thanks >>> >>> Tom >>> >>> >>> >>> --- >>> Antivirus avast! : message Sortant sain. >>> Base de donnees virale (VPS) : 071114-0, 14/11/2007 >>> Analyse le : 15/11/2007 16:50:02 >>> avast! - copyright (c) 1988-2007 ALWIL Software. >>> http://www.avast.com >>> >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> -- >> Michael Courcy >> http://courcy.blogspot.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] > > > > --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 071114-0, 14/11/2007 Analyse le : 15/11/2007 18:25:38 avast! - copyright (c) 1988-2007 ALWIL Software. http://www.avast.com
Re: [T5] Simple question about select and enum
No error message, but in the HTML page : instead of my enum value... My java code : public EnumSelectModel getReportModel() { return new EnumSelectModel(Report.class, _resources.getMessages()); } Michael Courcy a écrit : > Do you have error messages ? > > TNO a écrit : >> Hi, >> >> I want to create a very simple select list from an enum. >> >> >> >> But in a select component, the model (org.apache.tapestry.SelectModel) >> is required, I try to use EnumSelectModel but it did not work... >> I can't have my enum list... >> >> please help, thanks >> >> Tom >> >> >> >> --- >> Antivirus avast! : message Sortant sain. >> Base de donnees virale (VPS) : 071114-0, 14/11/2007 >> Analyse le : 15/11/2007 16:50:02 >> avast! - copyright (c) 1988-2007 ALWIL Software. >> http://www.avast.com >> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 071114-0, 14/11/2007 Analyse le : 15/11/2007 17:47:28 avast! - copyright (c) 1988-2007 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] Simple question about select and enum
Hi, I want to create a very simple select list from an enum. But in a select component, the model (org.apache.tapestry.SelectModel) is required, I try to use EnumSelectModel but it did not work... I can't have my enum list... please help, thanks Tom --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 071114-0, 14/11/2007 Analyse le : 15/11/2007 16:50:02 avast! - copyright (c) 1988-2007 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 : Pb with Spring integration with xml file from another JAR
Hi, I can't find my beans !!! I try to get them from another jar. I found the config files, the Spring logs seems OK, but when I inject my DAO, exception ! here's my pb : * java.lang.ClassNotFoundException caught an exception while obtaining a class file for org.atlog.mjweb.pages.Start exception org.apache.tapestry.internal.services.TransformationException: Error obtaining injected value for field org.atlog.mjweb.pages.Start.infoDAO: No service implements the interface arc.db.auto.dao.InfoDAO. Can you help me please... here my web.xml 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";> Mj Web contextConfigLocation classpath:/arc/db/config/application-context-arcdb.xml classpath:/arc/db/config/application-context-arcdb-config.xml tapestry.app-package org.atlog.mjweb app org.apache.tapestry.TapestryFilter app /* org.springframework.web.context.ContextLoaderListener Start And my java class : public class Start extends BasePage { private Info infoTitre; public Start() { super(); } public List getListInfo() { return infoDAO.getList(); } @Inject private InfoDAO infoDAO; } Thanks... --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 000780-1, 10/10/2007 Analyse le : 11/10/2007 17:58:43 avast! - copyright (c) 1988-2007 ALWIL Software. http://www.avast.com