Re: pac4j with tapestry-security

2017-04-28 Thread Dusko Jovanovski
Take a look at the excellent tynamo-federatedaccounts module at http://www.tynamo.org/tynamo-federatedaccounts+guide/ Cheers! On Fri, Apr 28, 2017 at 1:11 AM, Tapestry wrote: > Hey all! > > I am trying to use pac4j (https://github.com/bujiio/buji-pac4j) with >

Re: Tynamo Security Login Page

2016-11-10 Thread Dusko Jovanovski
The behaviors that you are describing can be easily configured using Symbols. Take a look at the SecuritySymbols class: https://github.com/tynamo/tapestry-security/blob/master/src/main/java/org/tynamo/security/SecuritySymbols.java The Symbols that you are looking for are: LOGIN_URL and

Re: Remove Tapestry Meta Tag

2014-11-13 Thread Dusko Jovanovski
Sure, you just need to override this symbol: SymbolConstants.OMIT_GENERATOR_META. Here's a sample of overriding it in a module: @Contribute(SymbolProvider.class) @ApplicationDefaults public static void provideSymbols(MappedConfigurationString, Object configuration) { // ...

Re: Tapestry-jpa commitAfter advisor problem

2014-09-25 Thread Dusko Jovanovski
The @CommitAfter annotation should be used as a convenience for simple scenarios, it doesn't support nesting. This has been discussed many times in the past on this mailing list. For the scenario that you described, I would remove the @CommitAfter annotation from method2, this way all of the code

Re: How to Declare JSONObject function ?

2014-03-20 Thread Dusko Jovanovski
options.put(start, new JSONLiteral(function() {$(this).hide();})); is the right way to pass the function, but it won't work for AJAX requests in tapestry 5.4. Could you please tell us what version of tapestry, tapestry-jquery you are using? And provide the stacktraces so we can debug further.

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-11 Thread Dusko Jovanovski
. I could just implement this as a new default CookieRememberMeManager in tapestry-security. Dusko, you mind if I use your SimplePrincipalSerializer? Kalle On Thu, Mar 6, 2014 at 3:21 AM, Dusko Jovanovski dusk...@gmail.com wrote: Thanks for pointing that out, I wasn't finishing the GZIP

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-06 Thread Dusko Jovanovski
Hello Lidija, could you try out this custom serializer and report back with the results? https://gist.github.com/duskote/0f8cce8d1b0d1cc56844 On Thu, Mar 6, 2014 at 10:48 AM, Lidija Dolinar lidija@gmail.comwrote: Ah, I see, you ment SimplePrincipalSerializer from the patch. It doesn't

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-06 Thread Dusko Jovanovski
] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.9.v20130131.jar:8.1.9.v20130131] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_43] Regards, Lidija On Thu, Mar 6, 2014 at 11:14 AM, Dusko Jovanovski dusk...@gmail.com wrote

Re: Override AssertSource

2014-01-31 Thread Dusko Jovanovski
try configuration.addInstance(AssetSource.class, MyAssetSourceImpl.class); Here's the documentation for MappedConfiguration: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/MappedConfiguration.html On Fri, Jan 31, 2014 at 5:05 PM, garz g...@gmx.net wrote: Hi all, i want

Re: @Cached

2013-12-06 Thread Dusko Jovanovski
It works both in pages and components. On Fri, Dec 6, 2013 at 2:20 PM, John j...@quivinco.com wrote: does @Cached work in only pages, or should it work in components too?

Re: Loving the eclipse-tapestry5-plugin

2013-12-03 Thread Dusko Jovanovski
Use the update site from the readme. https://github.com/anjlab/eclipse-tapestry5-plugin#install On Tue, Dec 3, 2013 at 2:40 PM, Athneria, Mahendra mahendra.athne...@atos.net wrote: I am not able to download it from Eclipse. Is there any other way to install it on Eclipse?? Regards,

Re: Quick ActivationContext question

2013-08-13 Thread Dusko Jovanovski
I'm not sure what your exact scenario is, but are you aware that you can pass an varargs parameter to the createEventLink method? http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ComponentResourcesCommon.html#createEventLink(java.lang.String, java.lang.Object...) Seems like

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-28 Thread Dusko Jovanovski
+1 On Mon, May 27, 2013 at 7:50 PM, Eli Doran e...@elidoran.com wrote: I like the simplicity of using the @Startup annotation compared to the startup contribution method. However, it doesn't have the ability to order its execution as in the contribution method. It seems it would be a

Re: how to trigger onValueChanged from AutoComplete mixin?

2013-05-28 Thread Dusko Jovanovski
Autocomplete only triggers the EventConstants.PROVIDE_COMPLETIONS event. Take a look at the onClick function in controls.js (line 183) (Tapestry 5.3). That's the place that you need to modify to get the desired behavior. On Mon, May 27, 2013 at 11:25 PM, George Ludwig

Re: [5.3.6] A homepage instead of Index

2012-12-11 Thread Dusko Jovanovski
Try overriding the SymbolConstants.START_PAGE_NAME symbol. On Tue, Dec 11, 2012 at 10:55 PM, Muhammad Gelbana m.gelb...@gmail.comwrote: I'm not sure if that's a usual requirement but here it is. I need to have another page as a default homepage instead of the Index page. I can do that by

Re: How to create custom div using t:loop functionality

2012-10-18 Thread Dusko Jovanovski
The jumpstart project is an awesome resource for beginners http://jumpstart.doublenegative.com.au/jumpstart/examples/http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/linkingloop1 For your scenario, take a look at

Re: foward to https

2012-09-19 Thread Dusko Jovanovski
Link link = pageRenderLinkSource.createPageRenderLinkWithContext(Index.class); link.setSecurity(LinkSecurity.FORCE_SECURE); or String link = pageRenderLinkSource.createPageRenderLinkWithContext(Index.class).toAbsoluteURI(true); On Wed, Sep 19, 2012 at 7:52 PM, captain_rhino

Re: loading .js and scripts in a specific order

2012-09-15 Thread Dusko Jovanovski
You can use the @Import annotation on render methods. Try this: @Import(library = {context:js/OverlappingMarkerSpiderfier.js}) void afterRender(){} On Sat, Sep 15, 2012 at 7:12 PM, sommeralex alexander.som...@gmail.comwrote: Hi! I need to ensure that google maps api 3 is loaded before

Re: loading .js and scripts in a specific order

2012-09-15 Thread Dusko Jovanovski
@Import for the google maps library instead of the import via script. On Sat, Sep 15, 2012 at 10:05 PM, Dusko Jovanovski dusk...@gmail.comwrote: You can use the @Import annotation on render methods. Try this: @Import(library = {context:js/OverlappingMarkerSpiderfier.js}) void afterRender

Re: loading .js and scripts in a specific order

2012-09-15 Thread Dusko Jovanovski
Dusko Jovanovski [via Tapestry] ml-node+s1045711n5716314...@n5.nabble.com Just read your question again (on nabble, the script tag was lost in the email), and I realized that's not gonna help. Take a look at this thread: http://tapestry.1045711.n5.nabble.com/Referencing-external

Re: AjaxResponseRenderer help

2012-08-12 Thread Dusko Jovanovski
You are missing the zone parameter on your eventLink component. On Sun, Aug 12, 2012 at 2:31 PM, Angelo C. angelochen...@gmail.com wrote: Hi, I am trying out AjaxResponseRenderer to update multiple zones in a page, here is the code: java: @Inject private AjaxResponseRenderer

Re: AjaxResponseRenderer help

2012-08-12 Thread Dusko Jovanovski
@Component(parameters = { event=ModeUpdate, zone=zone1 }) private EventLink UpdateOff; This should do the trick. On Sun, Aug 12, 2012 at 3:30 PM, Angelo C. angelochen...@gmail.com wrote: How to specify two zones in a event link? -- View this message in context:

Re: Adding a dynamic sub directory to URL

2012-07-18 Thread Dusko Jovanovski
Take a look at http://tynamo.org/tapestry-routing+guide It's a tynamo module written for this purpose. On Wed, Jul 18, 2012 at 3:04 AM, dkeenan david_siedle...@yahoo.co.ukwrote: This looks perfect! Tapestry is outstandingly good. -- View this message in context:

Re: Problem with range operator

2012-07-08 Thread Dusko Jovanovski
Why don't you just return an array from 1 to lastDayInMonth? .tml t:source=rangeOfDates .java public ListInteger getRangeOfDates() { ListInteger list = new LinkedListInteger(); for(Integer i=1; i =lastDayInMonth; i++) list.add(i); return list; } On Sun, Jul 8, 2012 at 10:55 AM, bhorvat

Re: Problem with range operator

2012-07-08 Thread Dusko Jovanovski
I don't think you can use it like that, only with fixed values. On Sun, Jul 8, 2012 at 11:35 AM, bhorvat horvat.z.bo...@gmail.com wrote: That is the option, but tapestry has this cool option so I would like to use it -- View this message in context:

Re: Problem with range operator

2012-07-08 Thread Dusko Jovanovski
I made an oversight, try this: t:loop t:source=1..lastDayInMonth t:value=day //html code /t:loop On Sun, Jul 8, 2012 at 11:54 AM, bhorvat horvat.z.bo...@gmail.com wrote: Hm...Well it says here that it should http://tapestry.apache.org/property-expressions.html The rangeOp creates a

Re: How to have every second value in the t:loop different

2012-07-04 Thread Dusko Jovanovski
Hello there If the change you want to apply to those elements is purely visual, I would suggest the :nth-child(even) pseudo selector [1]. On the other hand, if you still want to apply that particular class to the div, I would suggest this approach: t:loop t:source=selectedModule.settings

Re: T5 template expansion for component

2012-06-19 Thread Dusko Jovanovski
I don't see why you couldn't customize t:label, it supports informal parameters, everything you pass as an attribute will be passed down to the label tag. In the for parameter of t:label you pass the server id of the component. On Tue, Jun 19, 2012 at 5:47 PM, Norman Franke nor...@myasd.com

Re: How to create Ajax subforms (recursive forms)?

2012-06-16 Thread Dusko Jovanovski
Have you tried the AjaxFormLoop component? I think that you can accomplish your scenario with it. Here is a live demo from the jumpstart project: http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1 And here is the documentation for the component:

Re: How to pass page name with parameters in pagelink

2012-02-22 Thread Dusko Jovanovski
tml: a href=${linkWithParameters}More news/a java: @Inject private PageRenderLinkSource pageRenderLinkSource; public Link getLinkWithParameters() { Link link = pageRenderLinkSource.createPageRenderLink(MoreNews.class); link.addParameter(startIndex, 3); link.addParameter(endIndex, 11); return

Tynamo Security Components

2012-02-20 Thread Dusko Jovanovski
Hello Tynamo developers First of all, I love the module, keep up the good work. I would like to propose one improvement for all the security components (org.tynamo.security.components package), an else block parameter (very similar to the tapestry if component). That would come in pretty handy.

Re: Tynamo Security Components

2012-02-20 Thread Dusko Jovanovski
from the community On Mon, Feb 20, 2012 at 11:57 AM, Dusko Jovanovski dusk...@gmail.comwrote: Hello Tynamo developers First of all, I love the module, keep up the good work. I would like to propose one improvement for all the security components (org.tynamo.security.components package

Re: How to create my own zone update Effect?

2012-02-19 Thread Dusko Jovanovski
I can point you to this article by Howard: http://tapestryjava.blogspot.com/2011/12/adding-ajax-throbbers-to-zone-updates.html He covers everything you are trying to do. Cheers On Sun, Feb 19, 2012 at 6:20 PM, Bo Gao eli...@gmail.com wrote: How to create my own zone update Effect? The most

Re: Perform tasks when starting the application

2012-02-15 Thread Dusko Jovanovski
Annotate your method with @Startup and it will be executed when starting the application. Reference: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/annotations/Startup.html On Wed, Feb 15, 2012 at 8:22 PM, iberck ibe...@gmail.com wrote: I need to perform certain tasks when

Re: Mixin for select

2012-02-14 Thread Dusko Jovanovski
Take a look here: http://tapestry.apache.org/component-mixins.html and here: http://tapestry.apache.org/5.3.2/apidocs/org/apache/tapestry5/annotations/BindParameter.html 2012/2/14 Михаил Слободянюк slobodyanu...@gmail.com Hi! How i do bound Select's parametels (model, label etc.) from mixin?

Re: exclude a column from a grid component, by a condition

2012-01-31 Thread Dusko Jovanovski
Try this: .tml: t:grid t:source=reports t:row=evntRow t:exclude=${excludeColumn} / .java: public String getExcludeColumn(){ if(excludeCondition) return somecolumn; else return null; } I didn't test this code, but it should work. 2012/1/31 Vladimir Bauer vba...@slb.com Good day

Re: How to override the sort image tooltip of a grid ?

2011-12-28 Thread Dusko Jovanovski
This is really an IE issue. In order to get IE to behave correctly, use an empty title attribute (title=). Here's a small jQuery snippet that solves your problem (not tested, i don't have access to IE7) jQuery('.t-sort-icon').attr('title', ''); On Wed, Dec 28, 2011 at 9:38 AM, danyboy85

Re: Alerts

2011-12-23 Thread Dusko Jovanovski
Try manager.alert(Duration.TRANSIENT, Severity.INFO, INFO TRANSIENT); This will display the message for 15 seconds before closing. There is an open JIRA that would allow us to set this duration at: https://issues.apache.org/jira/browse/TAP5-1640 -- Dusko Jovanovski On Fri, Dec 23, 2011 at 10

Re: T5.3: unable to change color of beaneditor border

2011-12-04 Thread Dusko Jovanovski
Try replacing your entry in your layout.css with this snippet: DIV.t-beaneditor { border: 2px outset blue !important; } On Mon, Dec 5, 2011 at 12:53 AM, George Ludwig georgelud...@gmail.comwrote: I'm want to change the border color of all the beaneditors to blue, so I added this to my

Re: JQueryDateField is not popuping up

2011-11-16 Thread Dusko Jovanovski
Prototype (included by default in Tapestry) and jQuery use. Look into jQuery.noConflict(); http://api.jquery.com/jQuery.noConflict/ I personally find it easiest to just add that line at the end of the included jQuery library. -- Dusko Jovanovski On Wed, Nov 16, 2011 at 10:24 AM, ramakanthreddy.t

Re: fckeditor for Tapestry 5.3

2011-11-14 Thread Dusko Jovanovski
Without looking at your code I can only guess you have forgotten to pass the zone as parameter somewhere, or the request isn't ajax. Something like this: t:eventLink event=event *zone=client-zone-id*Link/t:eventLink Attach the source if you still have errors after trying this. On Mon, Nov 14,

Re: fckeditor for Tapestry 5.3

2011-11-12 Thread Dusko Jovanovski
are reading our minds, we are currently working on an ajax-upload component based on this this demo right here: http://aquantum-demo.appspot.com/file-upload Follow our public github profile to get it as soon as it comes out https://github.com/plannowtech -- Dusko Jovanovski On 12 November 2011 02:16

Re: fckeditor for Tapestry 5.3

2011-11-11 Thread Dusko Jovanovski
You can try out our implementation: https://github.com/plannowtech/tapestry5-ckeditor It's still not thoroughly tested, but should work fine. Any remarks/complaints/bugs should be reported on GitHub. -- Dusko Jovanovski On Fri, Nov 11, 2011 at 4:50 AM, TG tapestry...@hotmail.com wrote: Do we

Re: Beaneditform with two submit buttons?

2011-11-06 Thread Dusko Jovanovski
You should add this: xmlns:p=tapestry:parameter to the root element in your .tml file, and use p:id instead of t:parameter name=id On Sun, Nov 6, 2011 at 6:12 PM, TG tapestry...@hotmail.com wrote: I changed my codes to something like this - form t:id=form validate=object t:errors/

Re: remove red cross from the field vlidator

2011-08-20 Thread Dusko Jovanovski
Try overriding the img.t-error-icon rule in your css. Sample: img.t-error-icon{ margin-left: 0; width: 0; height: 0; background: none; } The background: none; line would get rid of the image, but you would still have some white space, so i added the other rules On Sat, Aug 20, 2011 at 4:20