Re: Help Tapestry5 Block with JavaScript? Anyone
Any Examples is appreciated ... Currently no luck in searching the nabble forum any links. alanearl wrote: > > Sory Oakstair i did not detail my problem. > First I dont have any problem integrating Tapestry & JQuery. > My Problem is executing my javascript when it is inside the BLOCK. > I think it will not execute > > Excuse me Sir Howard, > > I don't understand this part: > > This can be accomplished by using the Delegate component to call back > into your outer component (you have a getter method return an inner > class of type Renderable), and then you inject the stylesheets as > Assets and use RenderSupport to include them. > > What do you mean i need to create a new component then it will be called > by my page > using injectcomponent & put my javascript in the asset & use render > support? > > Sorry but Im confuse ... > > > > > > Howard Lewis Ship wrote: >> >> The @IncludeJavascriptLibrary annotation changes the beginRender phase >> of your component to add the JavaScript. >> >> When a block within your component is rendered, the component's >> beginRender phase does not execute, just the >> beginRender phase of components *inside* the block. >> >> This can be accomplished by using the Delegate component to call back >> into your outer component (you have a getter method return an inner >> class of type Renderable), and then you inject the stylesheets as >> Assets and use RenderSupport to include them. >> >> On Sun, Nov 22, 2009 at 6:44 PM, alanearl >> wrote: >>> >>> My Question is when one of my block has jquery. It will not load the >>> jquery >>> then action link perform. >>> Any help is appreciated Thanks! >>> >>> My Code .tml >>> >>> >>> >>> >>> Default >>> >>> >>> >>> >>> >>> Test >>> >>> >>> My Class >>> @IncludeJavaScriptLibrary({"jquery-1.3.2.min.js","test.js"}) >>> >>> �...@injectcomponent >>> private Zone output; >>> >>> �...@inject >>> private Block testBlock; >>> >>> private Block blockToRender; >>> >>> public Block getBlockToRender() >>> { >>> return blockToRender; >>> } >>> >>> Object onActionFromtestPage() >>> { >>> blockToRender = testBlock; >>> return blockToRender; >>> } >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/Help-Tapestry5-Block-with-JavaScript--Anyone-tp26471839p26471839.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 >>> >>> >> >> >> >> -- >> 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 >> >> >> > > -- View this message in context: http://old.nabble.com/Help-Tapestry5-Block-with-JavaScript--Anyone-tp26471839p26491350.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
method advisors... change parameters
Hi, is there a way to change the parameters of a service "invocation"? I have the T5Invocation, the java Method.. I saw that invocation has the real values inside (p0, p1.. fields). I can access them via reflection (brute force), maybe something more adecuate? thanks in advance - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Combining Javascript doesn't work with libraries like TinyMCE
Here is a workaround that I used in my tinymce mixin. void afterRender(MarkupWriter writer) { // inject script in a non-combinable way final String scriptelementid = "tinymce-script"; final Element src = writer.getDocument().getElementById(scriptelementid); if (src == null) { final String path = _symbolSource.valueForSymbol("tinymce") + "/tiny_mce.js"; final Asset asset = _assetSource.getAsset(_resources.getBaseResource(), path, _resources.getLocale()); Element dest = writer.getDocument().find("html/head"); if (dest != null) { dest.element("script", "src", asset.toClientURL(), "id", scriptelementid); } } } Josh On Mon, Nov 23, 2009 at 1:13 PM, raulmt wrote: > > Hello, > > Combining Javascripts feature in T5.1 is great, but sadly I had to disable > it. I use TinyMCE and this library uses its own path (where tiny_mce.js > "lives") to load other files that are needed (themes, languages, etc.). The > problem arises when tiny_mce.js is in the combined virtual asset because it > doesn't find any script tag with itself as the src so TinyMCE can't figure > out the path to load the other assets. > > I think there should be a way to specify that some scripts should not be > combined because sometimes (like in this case) is a must have... "all or > nothing" isn't optimal. I looked into the Tapestry code and doesn't seem to > be possible currently... is there a way? should I post a ticket in jira > about per-script combining configuration? > > Regards. > -- > View this message in context: > http://n2.nabble.com/Combining-Javascript-doesn-t-work-with-libraries-like-TinyMCE-tp4054005p4054005.html > Sent from the Tapestry Users 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 > > -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
AjaxFormLoop problem
I'm getting the following error on my page that uses an AjaxFormLoop: "Render queue error in AfterRender[EditGoal:ajaxformloop.fragment]: The rendered content did not include any elements that allow for the positioning of the hidden form field's element." I see that an issue has been raised: https://issues.apache.org/jira/browse/TAP5-733 Is there yet any fix or workaround for this issue? Regards, Greg. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Help Tapestry5 Block with JavaScript? Anyone
Search the archives, I'm pretty sure this has come up before. On Mon, Nov 23, 2009 at 3:24 PM, alanearl wrote: > > Sory Oakstair i did not detail my problem. > First I dont have any problem integrating Tapestry & JQuery. > My Problem is executing my javascript when it is inside the BLOCK. > I think it will not execute > > Excuse me Sir Howard, > > I don't understand this part: > > This can be accomplished by using the Delegate component to call back > into your outer component (you have a getter method return an inner > class of type Renderable), and then you inject the stylesheets as > Assets and use RenderSupport to include them. > > What do you mean i need to create a new component then it will be called by > my page > using injectcomponent & put my javascript in the asset & use render support? > > Sorry but Im confuse ... > > > > > > Howard Lewis Ship wrote: >> >> The @IncludeJavascriptLibrary annotation changes the beginRender phase >> of your component to add the JavaScript. >> >> When a block within your component is rendered, the component's >> beginRender phase does not execute, just the >> beginRender phase of components *inside* the block. >> >> This can be accomplished by using the Delegate component to call back >> into your outer component (you have a getter method return an inner >> class of type Renderable), and then you inject the stylesheets as >> Assets and use RenderSupport to include them. >> >> On Sun, Nov 22, 2009 at 6:44 PM, alanearl wrote: >>> >>> My Question is when one of my block has jquery. It will not load the >>> jquery >>> then action link perform. >>> Any help is appreciated Thanks! >>> >>> My Code .tml >>> >>> >>> >>> >>> Default >>> >>> >>> >>> >>> >>> Test >>> >>> >>> My Class >>> @IncludeJavaScriptLibrary({"jquery-1.3.2.min.js","test.js"}) >>> >>> �...@injectcomponent >>> private Zone output; >>> >>> �...@inject >>> private Block testBlock; >>> >>> private Block blockToRender; >>> >>> public Block getBlockToRender() >>> { >>> return blockToRender; >>> } >>> >>> Object onActionFromtestPage() >>> { >>> blockToRender = testBlock; >>> return blockToRender; >>> } >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/Help-Tapestry5-Block-with-JavaScript--Anyone-tp26471839p26471839.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 >>> >>> >> >> >> >> -- >> 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 >> >> >> > > -- > View this message in context: > http://old.nabble.com/Help-Tapestry5-Block-with-JavaScript--Anyone-tp26471839p26487973.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 > > -- 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: Help Tapestry5 Block with JavaScript? Anyone
Sory Oakstair i did not detail my problem. First I dont have any problem integrating Tapestry & JQuery. My Problem is executing my javascript when it is inside the BLOCK. I think it will not execute Excuse me Sir Howard, I don't understand this part: This can be accomplished by using the Delegate component to call back into your outer component (you have a getter method return an inner class of type Renderable), and then you inject the stylesheets as Assets and use RenderSupport to include them. What do you mean i need to create a new component then it will be called by my page using injectcomponent & put my javascript in the asset & use render support? Sorry but Im confuse ... Howard Lewis Ship wrote: > > The @IncludeJavascriptLibrary annotation changes the beginRender phase > of your component to add the JavaScript. > > When a block within your component is rendered, the component's > beginRender phase does not execute, just the > beginRender phase of components *inside* the block. > > This can be accomplished by using the Delegate component to call back > into your outer component (you have a getter method return an inner > class of type Renderable), and then you inject the stylesheets as > Assets and use RenderSupport to include them. > > On Sun, Nov 22, 2009 at 6:44 PM, alanearl wrote: >> >> My Question is when one of my block has jquery. It will not load the >> jquery >> then action link perform. >> Any help is appreciated Thanks! >> >> My Code .tml >> >> >> >> >> Default >> >> >> >> >> >> Test >> >> >> My Class >> @IncludeJavaScriptLibrary({"jquery-1.3.2.min.js","test.js"}) >> >> �...@injectcomponent >> private Zone output; >> >> �...@inject >> private Block testBlock; >> >> private Block blockToRender; >> >> public Block getBlockToRender() >> { >> return blockToRender; >> } >> >> Object onActionFromtestPage() >> { >> blockToRender = testBlock; >> return blockToRender; >> } >> >> -- >> View this message in context: >> http://old.nabble.com/Help-Tapestry5-Block-with-JavaScript--Anyone-tp26471839p26471839.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 >> >> > > > > -- > 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 > > > -- View this message in context: http://old.nabble.com/Help-Tapestry5-Block-with-JavaScript--Anyone-tp26471839p26487973.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: Combining Javascript doesn't work with libraries like TinyMCE
https://issues.apache.org/jira/browse/TAP5-935 If you have something to add or clarify, please do it as well ;) Thiago H. de Paula Figueiredo wrote: > > Em Mon, 23 Nov 2009 19:13:09 -0200, raulmt escreveu: > >> Hello, > > Hi! > >> should I post a ticket in jira about per-script combining configuration? > > Please do it. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, 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 > > > -- View this message in context: http://n2.nabble.com/Combining-Javascript-doesn-t-work-with-libraries-like-TinyMCE-tp4054005p405.html Sent from the Tapestry Users 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: Combining Javascript doesn't work with libraries like TinyMCE
Em Mon, 23 Nov 2009 19:13:09 -0200, raulmt escreveu: Hello, Hi! should I post a ticket in jira about per-script combining configuration? Please do it. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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
Combining Javascript doesn't work with libraries like TinyMCE
Hello, Combining Javascripts feature in T5.1 is great, but sadly I had to disable it. I use TinyMCE and this library uses its own path (where tiny_mce.js "lives") to load other files that are needed (themes, languages, etc.). The problem arises when tiny_mce.js is in the combined virtual asset because it doesn't find any script tag with itself as the src so TinyMCE can't figure out the path to load the other assets. I think there should be a way to specify that some scripts should not be combined because sometimes (like in this case) is a must have... "all or nothing" isn't optimal. I looked into the Tapestry code and doesn't seem to be possible currently... is there a way? should I post a ticket in jira about per-script combining configuration? Regards. -- View this message in context: http://n2.nabble.com/Combining-Javascript-doesn-t-work-with-libraries-like-TinyMCE-tp4054005p4054005.html Sent from the Tapestry Users 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: [T5]Has AjaxFormLoop-addrow-addrowlink-parameter context value?
Is it possible? Maybe there is a workaround for this. moonlee wrote: > > I use AjaxFormLoop-addrow-addrowlink-parameter to dynamic add a row , I > want to fill the row with some defult value which base on the link param > user click. > > for example: > > tml: > > > > Add a row > > > > Add a row > > > > > java: > > PersonHolder onAddRow(Object value) { > // Create a skeleton Person and add it to the displayed list > with a > unique key > Person newPerson = PersonService.findPersonById(value); > PersonHolder newPersonHolder = new PersonHolder(newPerson, > true, 0 - > System.nanoTime()); > _personHolders.add(newPersonHolder); > > return newPersonHolder; > } > > > -- View this message in context: http://old.nabble.com/-T5-Has-AjaxFormLoop-addrow-addrowlink-parameter-context-value--tp24581110p26482486.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: Browser scroll position - how does it work?
Thanks a lot! That did the trick .. 2009/11/23 Howard Lewis Ship > Check out the focus parameter of the Form component. > > On Mon, Nov 23, 2009 at 8:10 AM, Gunnar Eketrapp > wrote: > > Hi! > > > > We have a design with quite long pages. I.e. they all have a scroll bar. > > > > Now to my question: > > > > When clicking in the static HTML design I got from the HTML guy new pages > > starts at the top. > > > > BUT while clicking around in my T5 version of the site the browser > position > > itself somewhere in the middle or below. > > > > The page(s) all of them contains one or more forms (initially in hidden > > divs) > > > > Does anybody know why my browser does not start at the top of a new page > ? > > > > Thanks in advance, > > Gunnar Eketrapp > > > > > > -- > 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 > > -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
Re: Validation failing in IE6/7
I've taken a look and it's definitely within a form element. The problem appears to be that tapestry.js isn't adding that function to the element, IE6/7 complains thus: Error: Object doesn't support this property or method Interestingly, IE8 was making the exact same complaint until I upgraded Prototype to the latest version - now it works perfectly. This seems to suggest it's a problem (or some sort of conflict) with Prototype, but I'm still at a complete loss as to why. Drew On Mon, 2009-11-23 at 05:16 -0800, Howard Lewis Ship wrote: > That seems very odd, as Tapestry (i.e., tapestry.js) will create the > Tapestry.FormEventManager object if it does not already exist. Could > it be because the field in question is not contained within a form? > > On Mon, Nov 23, 2009 at 4:45 AM, Andrew Miller wrote: > > I've done a bit more digging on this and I made a mistake in my original > > assumption: > > > >> The failure occurs during the Tapestry.init function. I've traced the > >> javascript execution through and I've found the exact line it's failing > >> on - during the call to the Tapestry.Initializer.validate function, it's > >> failing on this line: > >> > >> $(field.form).getFormEventManager(); > >> > >> and stepping through the function it's specifically failing within the > >> $() call! In prototype.js, when it comes to returning the extended > >> element (last line of the $() function): > >> > >> return Element.extend(element); > >> > >> it fails and goes to the try/catch statement of Enumerable.each. > > > > This isn't where the function is failing - it's actually failing on the > > call to getFormEventManager(). I've done some further double- and > > triple-checking to make sure I'm right and this time I'm certain. > > Apologies for the mistake. > > > > Can anyone explain why this function wouldn't be available on this > > element? I've read through the code and I can't see what would be > > stopping these from being added to the element, but as it's only IE6/7 > > that's failing it could be something I'm completely overlooking. > > > > Does anyone have any ideas? > > > > Thanks again, > > Drew > > > > - > > 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: Browser scroll position - how does it work?
Check out the focus parameter of the Form component. On Mon, Nov 23, 2009 at 8:10 AM, Gunnar Eketrapp wrote: > Hi! > > We have a design with quite long pages. I.e. they all have a scroll bar. > > Now to my question: > > When clicking in the static HTML design I got from the HTML guy new pages > starts at the top. > > BUT while clicking around in my T5 version of the site the browser position > itself somewhere in the middle or below. > > The page(s) all of them contains one or more forms (initially in hidden > divs) > > Does anybody know why my browser does not start at the top of a new page ? > > Thanks in advance, > Gunnar Eketrapp > -- 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
Browser scroll position - how does it work?
Hi! We have a design with quite long pages. I.e. they all have a scroll bar. Now to my question: When clicking in the static HTML design I got from the HTML guy new pages starts at the top. BUT while clicking around in my T5 version of the site the browser position itself somewhere in the middle or below. The page(s) all of them contains one or more forms (initially in hidden divs) Does anybody know why my browser does not start at the top of a new page ? Thanks in advance, Gunnar Eketrapp
Re: "missing key" for localized resources on Linux
Even though OS X is Unix-based, the default filesystem shipped by Apple is case-insensitive. mrg On Mon, Nov 23, 2009 at 5:32 AM, Ilya Obshadko wrote: > Thanks, it worked. > > Looks like resource location methods on OS X are case insensitive. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: ognl question
http://tapestry.apache.org/tapestry5.1/guide/propexp.html On Mon, Nov 23, 2009 at 6:09 AM, Ken in nashua wrote: > > Thanks folks for offers. > > Still wondering... how do we do object graph notation in T5. Is there an > improvised construct/framework to take the place of OGNL? > > Ken > > > > > > From: nhhockeypla...@hotmail.com > To: users@tapestry.apache.org > Subject: ognl question > Date: Thu, 19 Nov 2009 08:41:11 -0500 > > > > > > > > > Folks, > > OGNL is used in t4. > > Is it being used in t5 ? If not what is the improv for OGNL in t5. > > Best regards > Ken in New Boston > > > > > Windows 7: I wanted simpler, now it's simpler. I'm a rock star. > _ > Hotmail: Trusted email with Microsoft's powerful SPAM protection. > http://clk.atdmt.com/GBL/go/177141664/direct/01/ > http://clk.atdmt.com/GBL/go/177141664/direct/01/ > -- 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: [Tapestry Central] Tapestry 5.1 and IE 8 -- Customizing Tapestry
U could create a new "URIAssetFactory" to obtain assets from a external resource or u could use the one provided by chenillekit. On Mon, Nov 23, 2009 at 2:36 PM, Borut Bolčina wrote: > Hello, > > I am also looking for a way to serve all T5 application's JavaScript, CSS > and images from our own CDN. Does anybody have an advice on this? Is it at > all possible with T5? > > Second question - has anybody ever noticed that scriptaculous.js or > prototype.js or tapestry css is returned to the user instead of normal > response? > > Thanks, > Borut > > 2009/10/16 Dave Greggory > >> I'm also looking for the ability to put all my assets (and Tapestry's) on a >> CDN, so that static content do not need to be served by the app server. >> While combining assets is an interesting feature, I would much rather prefer >> to have all static content on a CDN. Something about CDN functionality was >> mentioned by Howard during the lead up to 5.1 release, but I do not see any >> mention of it any where in the documentation. Did it not make the cut? >> >> >> >> - Original Message >> From: Angelo Chen >> To: users@tapestry.apache.org >> Sent: Thu, October 15, 2009 8:17:18 PM >> Subject: Re: [Tapestry Central] Tapestry 5.1 and IE 8 -- Customizing >> Tapestry >> >> >> Hi Thiago, >> >> Thanis for the link, but I was interested in the using of Google's CDN >> version of Prototype.js, of course T5's option to combine js into one file >> is a good option as well. >> >> >> Thiago H. de Paula Figueiredo wrote: >> > >> > Em Thu, 15 Oct 2009 13:13:02 -0300, Angelo Chen >> > escreveu: >> > >> >> Any update on this ? >> > >> > Have you seen http://www.nabble.com/Prototype-1.6.1-td25724717s302.html? >> > >> > -- >> > Thiago H. de Paula Figueiredo >> > Independent Java consultant, developer, and instructor >> > http://www.arsmachina.com.br/thiago >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> > For additional commands, e-mail: users-h...@tapestry.apache.org >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/-Tapestry-Central--Tapestry-5.1-and-IE-8Customizing-Tapestry-tp25729583p25918023.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 >> >> > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: ognl question
This may be useful http://tapestry.apache.org/tapestry5/guide/propexp.html On Mon, Nov 23, 2009 at 3:09 PM, Ken in nashua wrote: > > Thanks folks for offers. > > Still wondering... how do we do object graph notation in T5. Is there an > improvised construct/framework to take the place of OGNL? > > Ken > > > > > > From: nhhockeypla...@hotmail.com > To: users@tapestry.apache.org > Subject: ognl question > Date: Thu, 19 Nov 2009 08:41:11 -0500 > > > > > > > > > Folks, > > OGNL is used in t4. > > Is it being used in t5 ? If not what is the improv for OGNL in t5. > > Best regards > Ken in New Boston > > > > > Windows 7: I wanted simpler, now it's simpler. I'm a rock star. > _ > Hotmail: Trusted email with Microsoft's powerful SPAM protection. > http://clk.atdmt.com/GBL/go/177141664/direct/01/ > http://clk.atdmt.com/GBL/go/177141664/direct/01/ > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: ognl question
Thanks folks for offers. Still wondering... how do we do object graph notation in T5. Is there an improvised construct/framework to take the place of OGNL? Ken From: nhhockeypla...@hotmail.com To: users@tapestry.apache.org Subject: ognl question Date: Thu, 19 Nov 2009 08:41:11 -0500 Folks, OGNL is used in t4. Is it being used in t5 ? If not what is the improv for OGNL in t5. Best regards Ken in New Boston Windows 7: I wanted simpler, now it's simpler. I'm a rock star. _ Hotmail: Trusted email with Microsoft's powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141664/direct/01/ http://clk.atdmt.com/GBL/go/177141664/direct/01/
Re: [Tapestry Central] Tapestry 5.1 and IE 8 -- Customizing Tapestry
Hello, I am also looking for a way to serve all T5 application's JavaScript, CSS and images from our own CDN. Does anybody have an advice on this? Is it at all possible with T5? Second question - has anybody ever noticed that scriptaculous.js or prototype.js or tapestry css is returned to the user instead of normal response? Thanks, Borut 2009/10/16 Dave Greggory > I'm also looking for the ability to put all my assets (and Tapestry's) on a > CDN, so that static content do not need to be served by the app server. > While combining assets is an interesting feature, I would much rather prefer > to have all static content on a CDN. Something about CDN functionality was > mentioned by Howard during the lead up to 5.1 release, but I do not see any > mention of it any where in the documentation. Did it not make the cut? > > > > - Original Message > From: Angelo Chen > To: users@tapestry.apache.org > Sent: Thu, October 15, 2009 8:17:18 PM > Subject: Re: [Tapestry Central] Tapestry 5.1 and IE 8 -- Customizing > Tapestry > > > Hi Thiago, > > Thanis for the link, but I was interested in the using of Google's CDN > version of Prototype.js, of course T5's option to combine js into one file > is a good option as well. > > > Thiago H. de Paula Figueiredo wrote: > > > > Em Thu, 15 Oct 2009 13:13:02 -0300, Angelo Chen > > escreveu: > > > >> Any update on this ? > > > > Have you seen http://www.nabble.com/Prototype-1.6.1-td25724717s302.html? > > > > -- > > Thiago H. de Paula Figueiredo > > Independent Java consultant, developer, and instructor > > http://www.arsmachina.com.br/thiago > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/-Tapestry-Central--Tapestry-5.1-and-IE-8Customizing-Tapestry-tp25729583p25918023.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: Validation failing in IE6/7
That seems very odd, as Tapestry (i.e., tapestry.js) will create the Tapestry.FormEventManager object if it does not already exist. Could it be because the field in question is not contained within a form? On Mon, Nov 23, 2009 at 4:45 AM, Andrew Miller wrote: > I've done a bit more digging on this and I made a mistake in my original > assumption: > >> The failure occurs during the Tapestry.init function. I've traced the >> javascript execution through and I've found the exact line it's failing >> on - during the call to the Tapestry.Initializer.validate function, it's >> failing on this line: >> >> $(field.form).getFormEventManager(); >> >> and stepping through the function it's specifically failing within the >> $() call! In prototype.js, when it comes to returning the extended >> element (last line of the $() function): >> >> return Element.extend(element); >> >> it fails and goes to the try/catch statement of Enumerable.each. > > This isn't where the function is failing - it's actually failing on the > call to getFormEventManager(). I've done some further double- and > triple-checking to make sure I'm right and this time I'm certain. > Apologies for the mistake. > > Can anyone explain why this function wouldn't be available on this > element? I've read through the code and I can't see what would be > stopping these from being added to the element, but as it's only IE6/7 > that's failing it could be something I'm completely overlooking. > > Does anyone have any ideas? > > Thanks again, > Drew > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- 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: Validation failing in IE6/7
I've done a bit more digging on this and I made a mistake in my original assumption: > The failure occurs during the Tapestry.init function. I've traced the > javascript execution through and I've found the exact line it's failing > on - during the call to the Tapestry.Initializer.validate function, it's > failing on this line: > > $(field.form).getFormEventManager(); > > and stepping through the function it's specifically failing within the > $() call! In prototype.js, when it comes to returning the extended > element (last line of the $() function): > > return Element.extend(element); > > it fails and goes to the try/catch statement of Enumerable.each. This isn't where the function is failing - it's actually failing on the call to getFormEventManager(). I've done some further double- and triple-checking to make sure I'm right and this time I'm certain. Apologies for the mistake. Can anyone explain why this function wouldn't be available on this element? I've read through the code and I can't see what would be stopping these from being added to the element, but as it's only IE6/7 that's failing it could be something I'm completely overlooking. Does anyone have any ideas? Thanks again, Drew - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: "missing key" for localized resources on Linux
Thanks, it worked. Looks like resource location methods on OS X are case insensitive. On Mon, Nov 23, 2009 at 1:14 PM, DH wrote: > Please check whether the properties file name is the same as the filter > name in web.xml (case sensitive) . > I made such mistake before. > > DH > http://www.gaonline.com.cn > > - Original Message - > From: "Ilya Obshadko" > To: "Tapestry users" > Sent: Monday, November 23, 2009 6:07 PM > Subject: "missing key" for localized resources on Linux > > > > I've started deploying my project on staging server and encountered a > very > > strange issue. > > > > Running my JAR (I'm using embedded Jetty configuration) on Linux machine > > results in "missing key" messages instead of all localized strings. > > Running exactly the same JAR with same classpath on Mac OS X works > normally. > > > > Does anybody have an idea? > > > > > > -- > > Ilya Obshadko > > > -- Ilya Obshadko
Re: "missing key" for localized resources on Linux
Please check whether the properties file name is the same as the filter name in web.xml (case sensitive) . I made such mistake before. DH http://www.gaonline.com.cn - Original Message - From: "Ilya Obshadko" To: "Tapestry users" Sent: Monday, November 23, 2009 6:07 PM Subject: "missing key" for localized resources on Linux > I've started deploying my project on staging server and encountered a very > strange issue. > > Running my JAR (I'm using embedded Jetty configuration) on Linux machine > results in "missing key" messages instead of all localized strings. > Running exactly the same JAR with same classpath on Mac OS X works normally. > > Does anybody have an idea? > > > -- > Ilya Obshadko >
"missing key" for localized resources on Linux
I've started deploying my project on staging server and encountered a very strange issue. Running my JAR (I'm using embedded Jetty configuration) on Linux machine results in "missing key" messages instead of all localized strings. Running exactly the same JAR with same classpath on Mac OS X works normally. Does anybody have an idea? -- Ilya Obshadko
Re: Flash Served from Tapestry Context Not Playing
Then that should definitely be the default. On Mon, Nov 23, 2009 at 1:47 AM, Ben Gidley wrote: > I have also seen this locally so I don't believe it is proxy - I just add > flash to non-gzippable types. > > > > Ben Gidley > > www.gidley.co.uk > b...@gidley.co.uk > > > On Sun, Nov 22, 2009 at 12:16 PM, Howard Lewis Ship wrote: > >> On Fri, Nov 20, 2009 at 3:18 PM, Taylor Mathewson >> wrote: >> > Hi all, >> > >> > I found a possible problem and a workaround, and I just want to put it up >> > here in case anyone else encounters a similar problem. >> > >> > I have a Flex3 element embedded in a page. It would load, but it >> wouldn't >> > run. We stripped it down to a very simple app (hello world), but it >> still >> > wouldn't run. >> > >> > Right clicking on the flash element showed the problem: the "Play" item >> was >> > unchecked on the flash player context menu. Selecting it would run the >> flex >> > piece as expected, but reloading the page, it would again not play. >> > >> > Accessing the swf directly yielded strange results. >> > >> > Going through a standard path (e.g. >> > http://localhost:8080/appName/swf/myFlex.swf) worked fine but going >> through >> > Tapestry's context (e.g. >> > http://localhost:8080/appName/assets/ctx/631103cab3b12068/swf/myFlex.swf >> ) >> > would load the component but not play it. >> > >> > This offers with one option; link to all flash components directly. >> > However, the tapestry context urls present a nice solution to avoiding >> > cached older versions of flash elements, without forcing a client to >> > re-download on every view. >> > >> > The other solution I found was to disable GZIP on >> > application/x-shockwave-flash by contributing that content type to the >> > responsecompressionanalyzer >> >> Could a server in between Tapestry and the client be re-gzipping or >> otherwise corrupting the bytestream? >> >> In any case, I suspect adding flash as a non-compressable type would >> be a good idea; a JIRA issue would be appreciated. >> >> > >> > I'm not sure why this happens, and it seems not to happen with >> > flash-authored pieces, as opposed to flex-authored, even when they are >> > published with the same player version etc... and why it happens only in >> the >> > tapestry context path (according to LiveHTTP, both had gzip compression, >> but >> > the tapestry context had a content-length about 25 bytes higher). >> > >> > Just hoping to save others the couple hours of "wtf" I just went through. >> > >> > Thanks, >> > Taylor >> > >> >> >> >> -- >> 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 >> >> > -- 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: Flash Served from Tapestry Context Not Playing
I have also seen this locally so I don't believe it is proxy - I just add flash to non-gzippable types. Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Sun, Nov 22, 2009 at 12:16 PM, Howard Lewis Ship wrote: > On Fri, Nov 20, 2009 at 3:18 PM, Taylor Mathewson > wrote: > > Hi all, > > > > I found a possible problem and a workaround, and I just want to put it up > > here in case anyone else encounters a similar problem. > > > > I have a Flex3 element embedded in a page. It would load, but it > wouldn't > > run. We stripped it down to a very simple app (hello world), but it > still > > wouldn't run. > > > > Right clicking on the flash element showed the problem: the "Play" item > was > > unchecked on the flash player context menu. Selecting it would run the > flex > > piece as expected, but reloading the page, it would again not play. > > > > Accessing the swf directly yielded strange results. > > > > Going through a standard path (e.g. > > http://localhost:8080/appName/swf/myFlex.swf) worked fine but going > through > > Tapestry's context (e.g. > > http://localhost:8080/appName/assets/ctx/631103cab3b12068/swf/myFlex.swf > ) > > would load the component but not play it. > > > > This offers with one option; link to all flash components directly. > > However, the tapestry context urls present a nice solution to avoiding > > cached older versions of flash elements, without forcing a client to > > re-download on every view. > > > > The other solution I found was to disable GZIP on > > application/x-shockwave-flash by contributing that content type to the > > responsecompressionanalyzer > > Could a server in between Tapestry and the client be re-gzipping or > otherwise corrupting the bytestream? > > In any case, I suspect adding flash as a non-compressable type would > be a good idea; a JIRA issue would be appreciated. > > > > > I'm not sure why this happens, and it seems not to happen with > > flash-authored pieces, as opposed to flex-authored, even when they are > > published with the same player version etc... and why it happens only in > the > > tapestry context path (according to LiveHTTP, both had gzip compression, > but > > the tapestry context had a content-length about 25 bytes higher). > > > > Just hoping to save others the couple hours of "wtf" I just went through. > > > > Thanks, > > Taylor > > > > > > -- > 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: Submit(with context) in Loop In Form
matt22 wrote: > BUT in the testButton(Integer param) param is always 3(last index)!!! > (after click a button 1, 2, or 3) > where is a problem? I posted the same question two months ago. Please have a look at this thread: http://old.nabble.com/Wrong-context-for-submit-button-in-loop-td25449383.html HTH Stephan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org