Re: Tapestry on OpenShift: did someone already tried it?

2012-05-28 Thread Magnus Kvalheim
Hi Thiago. This is unfortunately expected behavior. Openshift is running JBoss(7.1) and tapestry is not supported on jboss out of the box. I was a bit sad to discover this myself - I was kinda expecting it to work for all major deployment env. Basically what you need is a ClasspathURLConverter l

Re: img tag src value not get render on run time in lazy loading

2012-05-28 Thread karthi
The following is the error I received, [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Input string '${videoItem.image}' is not valid; the '$' character at position 1 should be followed by another '$' or a four digit hex number (a unicode value)

Re: img tag src value not get render on run time in lazy loading

2012-05-28 Thread karthi
These urls are not coming from inside the webapp. I have an external url, hit that & read the json response and parse the json to retrieve the title, description, preview image url etc., My problem is, using that lazy loading to load the images used the code --> that lazy load needs the comment

Re: getting asset path in 5.3.3

2012-05-28 Thread Robert Zeigler
Inject the SymbolConstants.ASSET_PATH_PREFIX symbol. Robert On May 28, 2012, at 5/2810:40 PM , Angelo C. wrote: > Hi, > > In 5.3, this is how to get asset path: > > RequestConstants.ASSET_PATH_PREFIX > > in 5.3.3, how? Thanks, > > Angelo > > -- > View this message in context: > http://tap

getting asset path in 5.3.3

2012-05-28 Thread Angelo C.
Hi, In 5.3, this is how to get asset path: RequestConstants.ASSET_PATH_PREFIX in 5.3.3, how? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/getting-asset-path-in-5-3-3-tp5713480.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Official jboss support

2012-05-28 Thread Geoff Callender
Wow, you wasted a week with it and this is the first I've heard about it? Why? As far as I know the instructions work fine - I can't know differently if you don't tell me. So Jon, for the benefit of all of us, please post specifics that can be acted on and I will see what I can do. Much more usef

Re: Official jboss support

2012-05-28 Thread Chris Mylonas
Hey mate, Did you try JBoss community forums for your DB woes. Good on you for venting... Release 7.1.1 has two bugs I have been waiting for a fix since Feburary, but they only got fixed in 7.1.2 which is an EAP release. I'll have to wait it out til 7.1.3 is released to the community for the fi

Re: TAP5-1779 and ASSET_PATH_PREFIX

2012-05-28 Thread Lenny Primak
The updated code in the FlowLogix library (code.google.com/p/flowlogix) has the updated code that at least works with 5.3.2, and should work with 5.3.3 On May 28, 2012, at 9:00 AM, Angelo C. wrote: > Hi, > > Lenny Primak has this jira for the security issue in 5.3: > > https://issues.apache.or

Tapestry on OpenShift: did someone already tried it?

2012-05-28 Thread Thiago H de Paula Figueiredo
Hi, guys! Did anyone try to deploy a Tapestry application to RedHat's OpenShift? I've picked a very, very, very simple application with just a couple pages and no external dependency but every URL returns the same "The requested resource (/) is not available." . Here's its URL: http://tes

Re: Property is null onSuccess()

2012-05-28 Thread Thiago H de Paula Figueiredo
On Mon, 28 May 2012 14:39:34 -0300, Juan Alba wrote: Thanks for the help Taha. I am taking a look on these links. At first sight I see that the onPassivate is returning a Long (in the example), in the case that I have 2 parameters on the onActivate method, how do I use them without persist?

Re: Official jboss support

2012-05-28 Thread Jon Williams
Well, the last version of the Jumpstart supposedly worked on JBoss also. Press 1 button, CPU cycles spin for 5 minutes, then your app is pooped out into the appropriate JBoss directory. At this point you are told by the directions that's all there is to do, proceed with the next stage of your proje

Listener not get invoked when i enable button through javascript

2012-05-28 Thread karthick
Hi All, I have the requirement like when the user save the data by clicking save button ,then the button should gets diabled status to avioid multiple save. I have done button disabled by using disabled ="ognl:ruleSaved"* listener="listener:saveData"/> Again i need

Re: Property is null onSuccess()

2012-05-28 Thread Juan Alba
Thanks for the help Taha. I am taking a look on these links. At first sight I see that the onPassivate is returning a Long (in the example), in the case that I have 2 parameters on the onActivate method, how do I use them without persist? I can't do 2 onPassivate() :S Regards! On Mon, May 28,

Re: Official jboss support

2012-05-28 Thread Gmail
Be advised that as7 is very different from previous versions so proceed with that in mind. Sent from my iPhone On May 28, 2012, at 7:58 AM, Geoff Callender wrote: > It's not what you'd call a mission critical app, but the JumpStart demo runs > on JBoss AS 7.1.1. > > On 28/05/2012, at 7:49 P

Re: Property is null onSuccess()

2012-05-28 Thread Taha Siddiqi
You need to use both Please read http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/onactivateandonpassivate/3 http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/whatiscalledandwhen regards Taha On May 28, 2012, at 10:31 PM, Juan Alba wrote: > Hi Taha, than

Re: Property is null onSuccess()

2012-05-28 Thread Juan Alba
Hi Taha, thanks for your help. I am using an onActivate() to receive the parameter, I have to use onPassivate() instead? I think, that I am not understanding. Regards! On Mon, May 28, 2012 at 12:36 PM, Taha Siddiqi wrote: > Hi > > You can use onPassivate()/onActivate instead of @Persist. > > Y

Re: Cannot get component library to load

2012-05-28 Thread Lance Java
Strange, can you add the following to one of your pages/components in the main app (that is working) System.out.println(getClass().getClassLoader().findResources("org/test/pages/TestPage.class")); System.out.println(getClass().getClassLoader().findResources("org/test/pages/TestPage.tml")); -- Vie

Re: Cannot get component library to load

2012-05-28 Thread Taha Siddiqi
Have you contributed to the ComponentClassResolver in your TestModule :- public static void contributeComponentClassResolver( Configuration configuration) { configuration.add(new LibraryMapping("mylib", "org.test")); } then you can use it like My Test Page regards Taha

Re: Cannot get component library to load

2012-05-28 Thread LanceWhite
Jar Contents META-INF MANIFEST.MF org test pages TestPage.class TestPage.tml services TestModule.class Only one copy of Tapestry & my module jar. I've tried running it in Eclipse and standalone, and with 5.3.2, and it's still doesn't fi

Re: AssetProtectionDispatcher for 5.3.3?

2012-05-28 Thread Robert Zeigler
https://github.com/robertdzeigler/T5AssetProtectionDispatcher With Apache 2.0 License headers in place. Robert On May 28, 2012, at 5/2810:29 AM , Alejandro Scandroli wrote: > Hi All > > Even for 5.2.6 I needed to change the RegexAuthorizer contributions. > This is how my configuration looks li

Re: AssetProtectionDispatcher for 5.3.3?

2012-05-28 Thread Robert Zeigler
Thanks for the feedback. I'll take a look at this a little later today. Robert On May 28, 2012, at 5/2810:42 AM , Angelo C. wrote: > It runs, but seems css, js are blocked, here is my old code that works with > 5.2: > > public void contributeRegexAuthorizer(Configuration conf) { > conf.add("^.*

Re: TAP5-1779 and ASSET_PATH_PREFIX

2012-05-28 Thread Lenny Primak
The updated code in the FlowLogix library (code.google.com/p/flowlogix) has the updated code that at least works with 5.3.2, and should work with 5.3.3 On May 28, 2012, at 9:00 AM, Angelo C. wrote: > Hi, > > Lenny Primak has this jira for the security issue in 5.3: > > https://issues.apache.or

Re: AssetProtectionDispatcher for 5.3.3?

2012-05-28 Thread Angelo C.
It runs, but seems css, js are blocked, here is my old code that works with 5.2: public void contributeRegexAuthorizer(Configuration conf) { conf.add("^.*\\.png$"); conf.add("^.*\\.jpg$"); conf.add("^.*\\.jpeg$"); conf.add("^.*\\.js$"); conf.add("^.*\\.swf$"); conf.add("^.*\\.gif$"); conf.add("^.

Re: Property is null onSuccess()

2012-05-28 Thread Taha Siddiqi
Hi You can use onPassivate()/onActivate instead of @Persist. Your code is missing an onPassivate, so context will not persisted. regards Taha On May 28, 2012, at 8:59 PM, Juan Alba wrote: > Hi, > > I am having problems with my pages and I am not sure if what I am doing to > solve it is right

Re: AssetProtectionDispatcher for 5.3.3?

2012-05-28 Thread Robert Zeigler
Yeah, I need to formally release it with the Apache 2.0 license. I'll try to get it on github today. Robert On May 28, 2012, at 5/2810:29 AM , Alejandro Scandroli wrote: > Hi All > > Even for 5.2.6 I needed to change the RegexAuthorizer contributions. > This is how my configuration looks like:

Re: AssetProtectionDispatcher for 5.3.3?

2012-05-28 Thread Angelo C.
hi robert, thanks, will try this out, but what is "extended paths"? Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/AssetProtectionDispatcher-for-5-3-3-tp5713443p5713458.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: AssetProtectionDispatcher for 5.3.3?

2012-05-28 Thread Alejandro Scandroli
Hi All Even for 5.2.6 I needed to change the RegexAuthorizer contributions. This is how my configuration looks like: public void contributeRegexAuthorizer(Configuration regex, ClasspathAssetAliasManager classpathAssetAliasManager, @Symbol(SymbolConstants.APP

Property is null onSuccess()

2012-05-28 Thread Juan Alba
Hi, I am having problems with my pages and I am not sure if what I am doing to solve it is right. Page Class: ... @Property private Long myObjectId; @Inject private MyService myService; onActivate(Long objectId){ myObjectId = objectId; } void onSuccess(){ MyObject myObject = myServi

Re: Cannot get component library to load

2012-05-28 Thread Lance Java
Is there anything strange with your classpath? eg. multiple copies of the tapestry jars or multiple copies of your Page class / template? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713455.html Sent from the Tapestry - Use

Re: Cannot get component library to load

2012-05-28 Thread Taha Siddiqi
Hi Can you paste the jar contents (jar tvf your_jar_file.jar) regards Taha On May 28, 2012, at 8:42 PM, LanceWhite wrote: > Yep. > > > Tapestry-Module-Classes: org.test.services.TestModule > > Where TestModule.java contains the contributeComponentClassResolver posted > above. > > Lance > >

Re: Cannot get component library to load

2012-05-28 Thread LanceWhite
Yep. Tapestry-Module-Classes: org.test.services.TestModule Where TestModule.java contains the contributeComponentClassResolver posted above. Lance -- View this message in context: http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713453.html Sent from the T

Re: Cannot get component library to load

2012-05-28 Thread Lance Java
> The library contains a page rather than a component A page is a component ;) Have you included a "Tapestry-Module-Classes" entry in your jar's manifest? http://tapestry.apache.org/autoloading-modules.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/Cannot-get-compone

Re: AssetProtectionDispatcher for 5.3.3?

2012-05-28 Thread Robert Zeigler
I have pushed version 1.2.0 up to the saiwai repo. It compiles against 5.3.3; the unit tests pass, but it isn't "field" tested and I won't have time to really give it a workout for awhile. But I'm happy to incorporate any feedback. In particular, 5.3.3 has the "extended paths" for assets and the

Re: Cannot get component library to load

2012-05-28 Thread LanceWhite
OK, The library contains a page rather than a component (although a component copied in from teh tapestry upload library didn't work either...) If I try & reference it from the main app, all I get is this : I would also expect the library pages to show on the list of available pages that

Re: AssetProtectionDispatcher for 5.3.3?

2012-05-28 Thread Robert Zeigler
I have it compiling for/running on 5.3, but I haven't had a chance to vet that the current default whitelisting regular expressions cover the set of "public" resources in 5.3, so I haven't released it. I can release a snapshot for people to test and provide feedback on. Robert On May 28, 2012,

Re: Cannot get component library to load

2012-05-28 Thread Lance Java
Please copy/paste the following: 1. Your contributeComponentClassResolver() method 2. The fully qualified classname of one of your components. 3. A TML entry where you are trying to reference one of your components -- View this message in context: http://tapestry.1045711.n5.nabble.com/Cannot-get

TAP5-1779 and ASSET_PATH_PREFIX

2012-05-28 Thread Angelo C.
Hi, Lenny Primak has this jira for the security issue in 5.3: https://issues.apache.org/jira/browse/TAP5-1779 and he got a fix that works very well in 5.3, it uses a constant ASSET_PATH_PREFIX, but this does not work any more in 5.3.3 as the latter does not have ASSET_PATH_PREFIX, any fix to thi

Re: Cannot get component library to load

2012-05-28 Thread LanceWhite
This is with 5.3.3 by the way. Lance -- View this message in context: http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713446.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Cannot get component library to load

2012-05-28 Thread LanceWhite
Hi. I'm trying to write a small component library, and just cannot get any component or pages linked in to my main Tapestry app. 1) I've got the component jar manifest file pointing at the module file in the services. 2) the contributeComponentClassResolver *is* getting called - I can see this i

AssetProtectionDispatcher for 5.3.3?

2012-05-28 Thread Angelo C.
Hi, Do we have Robert's AssetProtectionDispatcher for 5.3.3? thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/AssetProtectionDispatcher-for-5-3-3-tp5713443.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: img tag src value not get render on run time in lazy loading

2012-05-28 Thread karthi
Thank you for your reply, I used lazy loading only for images loading since it contains a lot of images. I got the images url by *//Tapestry loop* public List getVideoDatas() { *//Tapestry loop source* videoItems = null; if(isContent) { f

Re: img tag src value not get render on run time in lazy loading

2012-05-28 Thread Thiago H de Paula Figueiredo
On Mon, 28 May 2012 09:48:19 -0300, karthi wrote: Hi, Hi! Do the images work without the lazy loading? How do you get the images URLs? -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For addi

img tag src value not get render on run time in lazy loading

2012-05-28 Thread karthi
Hi, I am now creating an application where am having a page called content, in that page now am displaying an image in the left side and a title, description and some other info in the right side. It contains more than 40 items and displays 3 to 4 items in the screen at a time. The problem is it

Re: Official jboss support

2012-05-28 Thread Geoff Callender
It's not what you'd call a mission critical app, but the JumpStart demo runs on JBoss AS 7.1.1. On 28/05/2012, at 7:49 PM, Magnus Kvalheim wrote: > Hi tapestry friends. > > We are in process of converting a project to deploy on JBoss AS7 in > production. > I've used http://wiki.apache.org/tapes

[ANN] JumpStart gets Type Coercers and Property Editors examples

2012-05-28 Thread Geoff Callender
Hi all, JumpStart 6.1.1 is out, with: * Example of Type Coercers. In it we enable Tapestry's DateField to seamlessly handle Joda Time types. * Example of Property Editors. In it we enables Grid, BeanDisplay, and BeanEditor to display and edit Joda Time types. The working demo i

Official jboss support

2012-05-28 Thread Magnus Kvalheim
Hi tapestry friends. We are in process of converting a project to deploy on JBoss AS7 in production. I've used http://wiki.apache.org/tapestry/HowToRunTapestry5OnJBoss6Dot1 and seems to work fine. I'm wondering though if anyone else have/are using this in production. Is it stable and efficient en