Re: Some Tapestry infection questions

2011-08-02 Thread Rich M
On 08/02/2011 12:16 PM, ERNESTO ARROYO RON wrote: I am on holidays, and trying to use some Tapestry awesome features, as the inyection. But I do not understand some issues, and cannot find the answer in the wiki or somewhere, to the info is not enough clear for me, sorry. This is very simple.

Re: Conversion from 5.1 to 5.2

2011-06-28 Thread Rich M
On 06/28/2011 01:13 PM, Kalle Korhonen wrote: For Rich, the definite resolution is to increase the max amount of memory allocated to permgen (for Sun's JVM). Yea, after the 1 day crash we updated the JVM settings to: -Xms512m -Xmx512m -XX:MaxPermSize=512m Will follow up if problems still pers

Re: Conversion from 5.1 to 5.2

2011-06-28 Thread Rich M
Just wanted to comment that I'm having very similar issues with an application that I upgraded the production version from 5.1 to 5.2. The 5.1 app ran fine indefinitely with no issues. After the upgrade it took about 1.5 days for the app to crash due to running out of PermGen space (at that po

Re: Tapestry Remembers which page to navigate after User Logs in ?

2011-06-14 Thread Rich M
It might help to know the structure by which you control login and navigation inside the authorized portion of your application. In my case, all the login forms explicitly return the Overview page : public onSuccessFromForm(){ // Login validation return overview; } @InjectPage private

Re: Safari , DOM 12 Exception, core.js

2011-06-14 Thread Rich M
On 06/14/2011 02:33 PM, Howard Lewis Ship wrote: Is is just one specific field that fails? Perhaps there's something odd about the field's name (the way naming a Form field "submit" can cause grief ... something Tapestry won't even try to do now). This code has changed in 5.3 recently, to defer

Safari , DOM 12 Exception, core.js

2011-06-14 Thread Rich M
Hi, an issue has recently been brought to my attention by QA, and I'm trying to unravel what is at play here. The core of the problem is that I have a form with validation on a page, and when this page is loaded in Safari (5.0.2), the error console appears at the top saying that the Tapestry

Re: Clearing @SessionState

2011-06-06 Thread Rich M
On 06/06/2011 01:58 PM, Thiago H. de Paula Figueiredo wrote: On Mon, 06 Jun 2011 14:34:20 -0300, robnangle wrote: Eh I dont understand what you mean here. Am i not setting the user when somebody logs in with a valid username and password? I'm sorry, I overlooked the only place user is set.

Re: Clearing @SessionState

2011-06-06 Thread Rich M
On 06/06/2011 12:48 PM, robnangle wrote: Rich M wrote: Most likely your page is not loading and assigning the adminUser boolean like you are expecting, and after your initial login, it's not calling any of that code anymore and thus your privileges appear to regress to a normal user,

Re: Clearing @SessionState

2011-06-06 Thread Rich M
On 06/06/2011 12:20 PM, robnangle wrote: Rich M wrote: On 06/06/2011 12:04 PM, robnangle wrote: No didn't seem to make a difference im afraid. I cant think of anything that would revert the user back to the previous logged in user? My updated code now looks like: @Session

Re: Clearing @SessionState

2011-06-06 Thread Rich M
On 06/06/2011 12:04 PM, robnangle wrote: No didn't seem to make a difference im afraid. I cant think of anything that would revert the user back to the previous logged in user? My updated code now looks like: @SessionState(create=false) @Property private User user;

Re: Actionlink + action

2011-05-25 Thread Rich M
You should use an eventlink instead. In that case you can provide an explicit event name that all the links can map to, while not having overlapping component Ids. http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/EventLink.html On 05/25/2011 05:58 P

Re: how can I clear the page context?

2011-05-20 Thread Rich M
You can use the public String onPassivate() function in a Page class to alter the context URL posted to the client browser. For example, I like to use it to beautify the URL so its not the more code-y page name it normally would be, and also to mask page names from the user so they cannot viol

Re: how to make tapestry ignore processing some paths

2011-05-18 Thread Rich M
Contributions and such should be in the Module class, typically AppModule. I believe that was omitted from that code excerpt because the rest of the page was in the context of the Module class. On 05/18/2011 05:02 PM, hese wrote: Hi, I dont want tapestry to process some urls, and want it to b

X-UA-Compatible & IE 9

2011-05-18 Thread Rich M
Hi, has anyone else had trouble with getting the X-UA-Compatible meta tag working in IE9 with Tapestry? I have verified that my rendered HTML page has the tag in the element, but going into Developer Tools it says the Document Mode for the page is not the one I set it to. The reason I men

Re: Updating only specific divs in Zone update

2011-05-17 Thread Rich M
Thanks, I suppose I should have responded after Thiago mentioned the MultiZoneUpdate a few days back, which did solve the problem for me. In my case, I have each Component using the triggerEvent method of Component Resources with a Callback to return the proper MultiZoneUpdate. I guess it was

Re: Hyperlink not becoming hyperlink

2011-05-17 Thread Rich M
If I understand you correctly, you have some information stored in a field of your entity that is HTML mark-up for a hyperlink. For example, a beanedit for the entity class Reference which has a field String website which for this entry has an html link like "href="somesite.com">Some Site". If

Re: TAP5-920 rears it's head again in 5.2 with a twist

2011-05-13 Thread Rich M
I've run into this issue now myself, was there ever a resolution to this or a workaround? As David said, supply an explicit value encoder isn't able to solve the issue for me either. Thanks, Rich On 03/24/2011 10:52 PM, David Rees wrote: TAP5-920 has long been an issue for one of our applicat

Updating only specific divs in Zone update

2011-05-13 Thread Rich M
Hi, I'm trying to put together an interactive page with multiple components, where each component can go through event/actions. For example, two components might be account details and reports. In account details the initial view is a display of your basic fields and their values, but if you

Using JavascriptSupport addInitializerCall

2011-05-10 Thread Rich M
Hi, I'm trying to leverage some of scriptaculous in a new application I'm working on. I've got the @Import worked out for including the modules of scriptaculous I want, but I'm having a hard time grasping how to create and use some Javascript libraries I create in my pages. The first simple

Re: Tapestry 5.2.5 Select component's multiple property

2011-04-15 Thread Rich M
I believe you would do It's just like any custom component you might make that has a package beyond *.components, you write out the extra packages in front of the component class name to qualify it. I checked my code and I guess I also do it a different way: model="pageListModel" encoder="p

Re: Tapestry 5.2.5 Select component's multiple property

2011-04-15 Thread Rich M
You want ChenilleKit 1.3.2, 1.1.0 is for older version of Tapestry. On 04/15/2011 12:26 PM, TG wrote: I do not use maven2. But I downloaded chenillekit-tapestry-1.1.0.jar manually, installed, run again and I got a new error during bootup - Caused by: java.lang.ClassNotFoundException: org.apache

Re: Absolute Paths in Tapestry 5.2.5

2011-04-13 Thread Rich M
We faced problems with the root and app contexts using HTTPD/Apache in front of a Servlet Container as well at my company. Our solution was as follows, all in HTTPD. I thought I'd post this in case you find it useful. You will probably be interested in the lines from ssl.conf (if you don't use

Re: Object creator set to null..

2011-04-11 Thread Rich M
For trivia it's worth noting that the String equals and equalsIgnoreCase methods also return false on null inputs, so you can also write: if("Admin".equalsIgnoreCase( user.getUserType() )) { ... } On 04/08/2011 08:51 AM, robnangle wrote: Richard Hill-7 wrote: Well you can't call a method on

Re: Implementation mixin and persistence

2011-04-06 Thread Rich M
Amazing, thanks for the example here. My implementation isn't exactly the same, but your code example made the concept quite clear and I've got it working now. Thanks! On 04/06/2011 01:14 PM, Taha Hafeez wrote: Dear Rich I tried to implement what you desired ( to the best of my understanding)

Re: Implementation mixin and persistence

2011-04-06 Thread Rich M
d by jquery and prototype, not the base object provided by the browser. Josh On Wed, Apr 6, 2011 at 9:11 AM, Rich M wrote: To add, I'm not sure creating a pure XHR request is working out quite how I might have expected. The following javascript snippet: var request = false;

Re: Implementation mixin and persistence

2011-04-06 Thread Rich M
doesn't seem right either. This code was loosely based off of http://tapestry.markmail.org/thread/fc2hubsb6dd6hait On 04/06/2011 11:49 AM, Rich M wrote: Thanks, that was an interesting read, but it doesn't help solve my problem. I still don't see how I would pass a persisted property

Re: Implementation mixin and persistence

2011-04-06 Thread Rich M
Parameters in Implementation Mixins'... http://tapestry.1045711.n5.nabble.com/Parameters-in-implementation-mixins-td3395407.html Hope it helps <http://tapestry.1045711.n5.nabble.com/Parameters-in-implementation-mixins-td3395407.html> regards Taha On Wed, Apr 6, 2011 at 2:22 AM, Rich

Implementation mixin and persistence

2011-04-05 Thread Rich M
Hi, I have a Page and it has a search form, contained within an ID'ed DIV. I made an implementation mixin that initializes an Event observer on the on click event of a 'button' in the Page's HTML. The event triggers javascript that hides/shows the search form. That works fine, but I want to

Generating popup window after form success

2011-03-30 Thread Rich M
Hi, I'm wondering if there is a good strategy to create a popup window after a successful form submit. The concept here is to popup a Voucher/Coupon window for the user if they complete a successful purchase. I've researched the basics of the concept in terms of HTML forms. You can run some

Re: BeanEditForm: What's happening to my object parameter?

2011-03-22 Thread Rich M
On 03/22/2011 05:10 PM, Thiago H. de Paula Figueiredo wrote: On Tue, 22 Mar 2011 17:53:12 -0300, Rich M wrote: Okay, maybe I'm not interpreting the page lifecycle properly here, or it has changed it some way that is causing me problems? The entity is referenced and loaded proper

Re: BeanEditForm: What's happening to my object parameter?

2011-03-22 Thread Rich M
On 03/22/2011 02:50 PM, Thiago H. de Paula Figueiredo wrote: Hi! BeanEditor, which is used inside BeanEditForm, only changes the value of the edited property if it's null, so the problem should be elsewhere. By the way, why are you using the Environment instead of component parameters? And wh

BeanEditForm: What's happening to my object parameter?

2011-03-22 Thread Rich M
Hi, I upgraded my application to 5.2.4 and everything seemed great, but I eventually noticed some weird behavior regarding some functionality that previously worked in my application. I have a page that displays Entities in a Grid. Each row has a link that triggers an event with the context

Re: 5.1 : Available pages downgrade

2011-03-21 Thread Rich M
le RAM). Then investigate if any of your forms are reserving a high amount of memory, possibly play with other JVM settings and *if* you are sending a lot of gzipped data, turn gzipping off and see if it makes a difference. Kalle On Mon, Mar 21, 2011 at 8:21 AM, Rich M wrote: Hi, I've bee

5.1 : Available pages downgrade

2011-03-21 Thread Rich M
Hi, I've been running a production version of a tapestry application for a couple months now. Just the other day it was reported to me that the application was no longer resolving pages normally, but instead displaying a directory view from the root context. Restarting the application solved

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-16 Thread Rich M
On 03/16/2011 01:48 PM, sunmoor007 wrote: Hi Rich Thanks. I understood the implementation of listener but i was looking at a way to integrate it so that all URL's in app gets modified. I understand that in app module we can plugin any service. Assume i have a impl class implementing the listener

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-16 Thread Rich M
The following is an internal Tapestry implementation of LinkCreationListener and a related class that the implementation makes use of. Maybe this can help you get on your way. http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/servic

Re: Grid Header Override and Sorting

2011-03-15 Thread Rich M
anyone agrees and can point me towards a more conceptually sound implementation strategy, I'm all ears. Thanks, Rich On 03/15/2011 12:23 PM, Rich M wrote: On 03/14/2011 02:14 PM, Rich M wrote: Hi, I found this thread http://tapestry.markmail.org/thread/ighytyllingci364 that refer

Re: Grid Header Override and Sorting

2011-03-15 Thread Rich M
On 03/14/2011 02:14 PM, Rich M wrote: Hi, I found this thread http://tapestry.markmail.org/thread/ighytyllingci364 that referenced overriding the grid header ala ... , but it seems there was no response. I'm working on overriding the headers for most of the grids in my application to

Grid Header Override and Sorting

2011-03-14 Thread Rich M
Hi, I found this thread http://tapestry.markmail.org/thread/ighytyllingci364 that referenced overriding the grid header ala ... , but it seems there was no response. I'm working on overriding the headers for most of the grids in my application to use built in search fields rather a separate

Re: tapestry-upload and zones?

2011-03-11 Thread Rich M
I'd share it in case anyone else comes across a situation similar to mine. On 03/11/2011 04:08 PM, Rich M wrote: Oh... I did not realize that. Great reference, I'll see what I can figure out, thanks! On 03/11/2011 03:17 PM, Thiago H. de Paula Figueiredo wrote: File uploading doesn

Re: tapestry-upload and zones?

2011-03-11 Thread Rich M
try or not, this is a limitation of AJAX itself. See this: http://stackoverflow.com/questions/543926/is-it-possible-to-use-ajax-to-do-file-upload. On Fri, 11 Mar 2011 16:40:43 -0300, Rich M wrote: Hi, I've been working on Image file upload and display. With the help of a previous th

tapestry-upload and zones?

2011-03-11 Thread Rich M
Hi, I've been working on Image file upload and display. With the help of a previous thread, I was able to get a fully working test component that could have a client upload a file from a form, and then have the file saved on the server and rendered back to the client in the browser. I've mov

Re: JasperReports integration

2011-03-11 Thread Rich M
How are you running your webapp. Maven and mvn jetty:run, deployed into some servlet, something else? The answer most likely depends on your answer here. If using Maven, you add the jars as a dependency in the pom.xml like: jasperreports-local jasperreports-local 3.5.0 Otherwise, look up ho

Re: Uploading then displaying Images

2011-03-11 Thread Rich M
Thanks everyone for the responses so far, conceptually I think this is coming together for me. So, I'm glad the context path was not a good idea, it felt dirty from the beginning. Avoiding that, there are two main options: use the database to store/retrieve the images, or use a configured syst

Re: Uploading then displaying Images

2011-03-10 Thread Rich M
On 03/10/2011 04:21 PM, Thiago H. de Paula Figueiredo wrote: On Thu, 10 Mar 2011 17:49:14 -0300, Rich M wrote: Okay, that makes sense. Is there a way to use the StreamResponse instead of the URL then to display an image in the browser? Unless you want to generate one of that data URLs

Re: Uploading then displaying Images

2011-03-10 Thread Rich M
On 03/10/2011 03:17 PM, Thiago H. de Paula Figueiredo wrote: On Thu, 10 Mar 2011 16:37:29 -0300, Rich M wrote: Hi, Hi! I had read this thread http://tapestry.1045711.n5.nabble.com/How-to-display-Blob-byte-array-image-td2436148.html along with other information regarding uploading

Uploading then displaying Images

2011-03-10 Thread Rich M
Hi, I think I've run into a conceptual understanding roadblock in trying to setup uploading then displaying of images in my application. I've got the uploading part working so far, although since my application is deployed as a WAR, the files upload to a system folder. That works alright, bu

Re: Label not displaying it's body

2011-03-03 Thread Rich M
Are you decorating the label or otherwise making use of it as a component, or just using it to display? If you want to give your own value for the label text disaply, why not just use an HTML label like ${myValueHere}. I'm not sure what is going on with your code example because it has a lot

Re: Capturing action, event, form requests

2011-03-01 Thread Rich M
On 03/01/2011 11:26 AM, Thiago H. de Paula Figueiredo wrote: On Tue, 01 Mar 2011 13:03:34 -0300, Rich M wrote: Hi, Hi! I currently have a Dispatcher implementation to handle page and asset requests in order to process authentication and security logic as necessary. However, it appears to

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Rich M
If you want it to return a String, do something like this. Also, @SessionState would not be necessary in a class like this. The @SessionState in your page class(es) will maintain the object for you. public class User { private String user_id; public User getUser_id() { return user_id;

Capturing action, event, form requests

2011-03-01 Thread Rich M
Hi, I currently have a Dispatcher implementation to handle page and asset requests in order to process authentication and security logic as necessary. However, it appears to me that (at least in 5.1) the Dispatcher does not intercept any ActionLinks, EventLinks, form events, or otherwise rela

Re: [5.1] recordError for Forms in Blocks

2011-02-28 Thread Rich M
On 02/25/2011 06:17 PM, Josh Canfield wrote: I grabbed your code and ran it. I'm not 100% sure what's supposed to happen if you perform an ajax post but don't return anything, but have errors. Me neither, I suppose I expected that simply using the recordError would have my page functioning the s

Re: [5.1] recordError for Forms in Blocks

2011-02-25 Thread Rich M
e on the page that's preventing normal initialization logic for occurring. On Fri, Feb 25, 2011 at 11:08 AM, Rich M wrote: Does anyone have insight into what I might be missing here? As I mentioned clicking the form submit will not render the validation bubbles, but if I click the form submi

Re: [5.1] recordError for Forms in Blocks

2011-02-25 Thread Rich M
form being part of a zone update versus a page render change the behavior or lack thereof of validation bubbles? Thanks, Rich On 02/24/2011 05:02 PM, Rich M wrote: Hi, I'm having a hard time tracking down my issue at hand here. I have Form components defined in a set of Block components

Re: Select with zone failing intermittently

2011-02-25 Thread Rich M
I can't say with any certainty this is your problem, but the one time I was having issues with an AJAX request being dumped and never showing up server side there was a race condition. I had it listening to the click event of a submit button, and on slower connections the form submit would beat

[5.1] recordError for Forms in Blocks

2011-02-24 Thread Rich M
Hi, I'm having a hard time tracking down my issue at hand here. I have Form components defined in a set of Block components in a Page class. The entire set of Blocks is nested within a Zone that allows for navigation between the Blocks without a page refresh. Each form has supporting onValid

Re: [5.1] NPE when re-rendering Zone with Blocks containing Forms

2011-02-23 Thread Rich M
return resources.getBlock(blockId); } One Two Josh On Wed, Feb 23, 2011 at 10:52 AM, Rich M wrote: Hi, I&

[5.1] NPE when re-rendering Zone with Blocks containing Forms

2011-02-23 Thread Rich M
Hi, I'm getting the following error Caused by: java.lang.NullPointerException at org.apache.tapestry5.corelib.components.Form._$environment_read_renderSupport(Form.java) at org.apache.tapestry5.corelib.components.Form.beginRender(Form.java:245) at org.apache.tapestry5.corelib.comp

Re: EventLink URI and loop component

2011-02-18 Thread Rich M
On 02/18/2011 12:59 PM, Thiago H. de Paula Figueiredo wrote: On Fri, 18 Feb 2011 15:45:54 -0200, Rich M wrote: The challenge in your case is I don't believe you can dynamically assign a component ID. I double checked myself just now, and t:id only took a discrete ID (in 5.1.0.5), and wa

Re: EventLink URI and loop component

2011-02-18 Thread Rich M
Hi, I believe this is a common stumbling point with Loops in Tapestry and the relation to static structure. Tapestry is able to set distinct component IDs in the first case because there is a definition for each facetbox component in your TML. However, in the version with the loop, there is o

Re: Regarding overlay image in tapestry

2011-02-09 Thread Rich M
Hi, still trying to clarify in my head what you are trying to do, but almost all of that functionality would still be HTML using CSS. I'm guessing you are laying a link element over the image element you have (or making the img the CSS background-image of a link element). The only difference

Re: Simple radiogroup question

2011-02-09 Thread Rich M
Here is some code I recently used with a RadioGroup and two buttons. Mine is tailored to decide whether a user wants to be contacted by Phone or E-Mail, but I'm sure you can adapt. The key for me was using an Enum as the value on the RadioGroup and as the value of each Radio. ContactBy.java:

Re: [5.1] Confusing ZoneUpdater behavior

2011-01-27 Thread Rich M
On 01/26/2011 07:32 PM, Josh Canfield wrote: On my local machine, it runs as expected. I take in parameters from a TML declaration of the mixin on a Submit button. I have it bind via Prototype to the mouseup event to fire a method that returns via AJAX back to the Page class. I just re-read your

Re: [5.1] Confusing ZoneUpdater behavior

2011-01-26 Thread Rich M
f stepping through with the debugger? Sometimes slowly stepping through code gives things a chance to complete that wouldn't otherwise, possibly it runs fast enough on your local machine that you don't notice the problem? Josh On Tue, Jan 25, 2011 at 11:13 AM, Rich M wrote: Hi, I w

Re: [5.1] Confusing ZoneManager behavior

2011-01-25 Thread Rich M
Hi, got my terms mixed up. ZoneUpdater is a popular mixin that I've used as a model for some of mine. ZoneManager is what I'm actually using here, specifically zoneManager.updateFromURL(updatedUrl); Sorry for the confusion. -Rich On 01/25/2011 02:13 PM, Rich M wrote: Hi, I

[5.1] Confusing ZoneUpdater behavior

2011-01-25 Thread Rich M
Hi, I wrote up a mixin that does delete confirmation. I'd put it through testing a while back and everything seemed fine. Recently it has turned up that it's functioning very strangely. On my local machine, it runs as expected. I take in parameters from a TML declaration of the mixin on a Su

Re: MarkupWriter element and IE8

2011-01-05 Thread Rich M
On 01/04/2011 05:14 PM, Thiago H. de Paula Figueiredo wrote: On Tue, 04 Jan 2011 19:44:34 -0200, Rich M wrote: Hi, Hi! The issue here being that in IE8 the ' characters got written out as &' This isn't a problem with Tapestry. IE doesn't handle HTML entities as

Re: Tapestry 5 and W3C HTML Validation

2011-01-04 Thread Rich M
see: http://validator.w3.org/check?uri=https%3A%2F%2Fwww.moremagicpoints.com%2Fmloyalty%2Findex&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&user-agent=W3C_Validator%2F1.1 -Rich On 01/04/2011 12:51 PM, Thiago H. de Paula Figueiredo wrote: On Tue

MarkupWriter element and IE8

2011-01-04 Thread Rich M
Hi, I noticed strange behavior with Internet Explorer 8 and some MarkupWriter output into HTML using the element method. I have the following in my page class: writer.element("a","href",formEvent,"id","submitPrefs","onclick", "javascript:setupSubmit(this,'"+(overridePar

Tapestry 5 and W3C HTML Validation

2011-01-04 Thread Rich M
Hi, I searched through the mailing list and the last thread on this topic seems to date back to 2006. First, I'd like to know what the expected doctype is, is it XHTML 1.0 Transitional, XHTML 1.0 Strict, or something else? Also, the best reference I've seen for using Layout components to st

Re: MarkupWriter and TML together?

2010-12-22 Thread Rich M
. de Paula Figueiredo wrote: On Wed, 22 Dec 2010 17:05:22 -0200, Rich M wrote: I suppose this is where I am confused. I currently use JavaScript to write the query parameter into the activation context of the EventLink. What I'm suggesting you is to *not* use the context as the

Re: MarkupWriter and TML together?

2010-12-22 Thread Rich M
On 12/22/2010 01:44 PM, Thiago H. de Paula Figueiredo wrote: On Wed, 22 Dec 2010 16:05:15 -0200, Rich M wrote: Hmm, I'd tried that several ways, every time the ParameterNames() list was empty and I couldn't fetch the parameter I was looking for. I tried peeking the Request paramet

Re: MarkupWriter and TML together?

2010-12-22 Thread Rich M
","javascript:setupSubmit(this);"); w.element("input", "type", "submit", "value", ms.get("save-rewards-preferences")); w.end(); //submit w.end(); //formEventLink

Re: MarkupWriter and TML together?

2010-12-22 Thread Rich M
s. Is there anything more elegant that this? I'd surely want to refactor this code ASAP after my deadline. Would an upgrade to 5.2 and using @RequestParameter be the best refactor I could do, or is there another solution, possibly 5.1 compatible? Thanks, Rich On 12/22/2010 11:07 AM, Thiago H

Re: MarkupWriter and TML together?

2010-12-22 Thread Rich M
y keeps getting better. Thanks again, Rich On 12/21/2010 07:26 PM, Thiago H. de Paula Figueiredo wrote: On Tue, 21 Dec 2010 21:36:54 -0200, Rich M wrote: writing it as a Component works. Not sure what the problem with the Page class was. Most probably your div was generated before the

Re: MarkupWriter and TML together?

2010-12-21 Thread Rich M
how a plain HTML form can trigger a Component method, is there a Tapestry Javascript method to leverage this? Alternately, is there a way to feed MarkupWriter content into a TML template, as in to write out HTML elements inside a element? Thanks, Rich On 12/21/2010 05:08 PM, Rich M wrot

Re: MarkupWriter and TML together?

2010-12-21 Thread Rich M
Have you tried the same thing in a page and a component? On Tue, Dec 21, 2010 at 7:59 AM, Rich M wrote: No luck, same result. No or elements in the generated HTML. On 12/20/2010 06:23 PM, Thiago H. de Paula Figueiredo wrote: On Mon, 20 Dec 2010 20:48:39 -0200, Rich M wrote:

Re: MarkupWriter and TML together?

2010-12-21 Thread Rich M
No luck, same result. No or elements in the generated HTML. On 12/20/2010 06:23 PM, Thiago H. de Paula Figueiredo wrote: On Mon, 20 Dec 2010 20:48:39 -0200, Rich M wrote: So that seems to narrow it down to some issue in my approach then, as I am not able to see anything written from my

Re: MarkupWriter and TML together?

2010-12-20 Thread Rich M
d(); } Thanks, Rich On 12/20/2010 05:21 PM, Howard Lewis Ship wrote: Yes, absolutely. Behind the scenes, the templates are parsed into collections of objects that operate on MarkupWriter, so you can mix a template with render phase methods and many other tricks. On Mon, Dec 20, 2010 at 2:10 PM

MarkupWriter and TML together?

2010-12-20 Thread Rich M
Hi, is it possible to use the MarkupWriter in the page class in a render stage in addition to a template? The page I'm trying to write needs to feed a component into a delegate from the Layout.tml it belongs to. As far as I can figure out I can only write Tapestry components in the TML file

Re: Referencing and displaying image asset from Webapp

2010-12-16 Thread Rich M
ed to be addressable by the url. If you were deploying to the root context you probably never would have noticed a problem! Josh On Wed, Dec 15, 2010 at 2:18 PM, Rich M wrote: Resending, I think my local links to the files somehow resolved in there... On 12/15/2010 05:16 PM, Rich M wrote:

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Rich M
Resending, I think my local links to the files somehow resolved in there... On 12/15/2010 05:16 PM, Rich M wrote: Sure, working: [img src="/app/assets/ctx/1.0/layout/images/products/filename.png "/] $5 - 250 MP $5 USD! Redeem not-working: [img src="/layout/

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Rich M
why, buy all evidence suggests as much to me. -Rich On 12/15/2010 05:06 PM, Josh Canfield wrote: Can you provide the HTML that is rendered for the image tag using under the working and non-working scenarios? The only thing that makes sense to me is that you are not generating the same src attri

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Rich M
On 12/15/2010 03:29 PM, Thiago H. de Paula Figueiredo wrote: On Wed, 15 Dec 2010 18:25:44 -0200, Rich M wrote: That doesn't quite solve it though, how do I get it to know "yourpicture.jpg"? That's a dynamic String within the system that changes throughout the loop. The i

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Rich M
o wrote: On Wed, 15 Dec 2010 16:03:19 -0200, Rich M wrote: Hi, Hi! I'm sorry I don't completely understand what you are asking here. The images are static and sit within the webapp context. Then you can refer to them without Tapestr

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Rich M
Hi, I'm sorry I don't completely understand what you are asking here. The images are static and sit within the webapp context. The component that writes the image tag provides the context image name to the src parameter of the img tag. It seems that when I fill in the context image name param

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread Rich M
FileNotFoundException, IOException { return new BufferedImageStreamResponse(ImageIO.read(productImageStorage.getProductImageInputStream(productId))); } Kalle On Mon, Dec 13, 2010 at 1:32 PM, Rich M wrote: Hi, I'm having a hard time figuring out how to dynamically display some ima

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread Rich M
I thinking because these files aren't being served, my local machine can resolve the "file:///<..>" urls to the image files, but they won't actually display in the page. I'm thinking this might not be my best solution for a production environment. Thanks, R

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread Rich M
Hi, Yea, I wasn't expecting TML shorthand, rather some way to load the proper information in the page class. I couldn't really see how the ContextAssetFactory would be useful. I was under the impression internal services shouldn't be used, in fact trying to Inject it gives an error. In te

Referencing and displaying image asset from Webapp

2010-12-13 Thread Rich M
Hi, I'm having a hard time figuring out how to dynamically display some images I have in a sub-path of my webapp/ folder in my Tapestry application (1.5.0.5). I have db entities that store the names of files in a folder in webapp/layout/images/products/, and in a TML page using a grid, I wan

Re: Default value for @Persist'd object

2010-12-03 Thread Rich M
Hi, I don't believe so, source for @Persist only seems to support the value parameter to set the persistence type (client,session,flash). The approach I use is to set any persisted values I want defaults for in a pre-render stage (BeginRender usually). I like to group them all in one method.

Re: creating property in beaneditform

2010-11-18 Thread Rich M
On 11/18/2010 02:29 PM, ami999 wrote: i'm having list of string and want to create a drop down with that. is it possible to do this with beaneditform. Look into the Select component. It can take a comma-separated String listing the values for each drop down row. It's pretty simple, I use

ContextResource when executing WAR deployment?

2010-11-18 Thread Rich M
Hi, I had been using the following code to dynamically lookup files in my Tapestry [5.1.0.5] applications context: private Logger log; private Context cimpl; private JasperService js; public ReportServiceImpl(Logger log, Context cimpl, JasperService js

[5.1.0.5] Log4J and Jetty Stand-Alone?

2010-11-16 Thread Rich M
Hi, I've been running 5.1.0.5 just fine using Maven to run the jetty:run goal. I had been loading a dependency to the log4j-1.2.8.jar file on my local system to run logging throughout the application. Everything worked fine. Now I've been asked to remove Maven from the execution path for a

Re: T5 Working Tapestry Hibernate with DAO.

2010-11-10 Thread Rich M
Not sure exactly what you are responding to, but.. to automatically commit from your DAO methods check out the section about Committing Changes and the @CommitAfter annotation on this page: http://tapestry.formos.com/nightly/tapestry5/tapestry-hibernate/userguide.html You should be able to us

Re: session is NULL

2010-11-10 Thread Rich M
On 11/10/2010 03:42 AM, Anas Mughal wrote: I have setup my DAO as a Tapestry service in the AppModule as: public class AppModule { public static void bind(ServiceBinder binder) { binder.bind(BranchDAO.class, BranchHibernateDAO.class); } } Then, I try

Getting form client input to persist through zone update

2010-11-02 Thread Rich M
Hi, so I've had to add some mixins to a form to conditionally handle some form elements based on used input. A user selects a certain select list option, some fields get disabled or enabled as a result type thing. The form is actually a BeanEditForm, not just a Form. Anyway, when my mixin re

Re: Form submit conditionally opening new window

2010-10-27 Thread Rich M
Whoops, just a quick comment, the DateFields are the Tapestry Core components, not the ChenilleKit DateTimeFields, forgot to edit that after double checking.-Rich On 10/27/2010 04:59 PM, Rich M wrote: Ah okay. I'm trying to decide where is best to hook up some AJAX request to achieve

Re: Form submit conditionally opening new window

2010-10-27 Thread Rich M
ouseover, but that seems like a real hack not to mention something that would probably surprise the user. Any suggestions? Thanks, Rich On 10/25/2010 01:35 PM, Thiago H. de Paula Figueiredo wrote: On Mon, 25 Oct 2010 15:29:52 -0200, Rich M wrote: Hi, Hi! Is there a way to get the bro

[5.1.0.5] - SSL, @Secure annotation, Jetty

2010-10-27 Thread Rich M
Hi, so I need to get my application running happily in SSL and I'm encountering some issues. I am trying to figure out where exactly my problem lies. I run Jetty as the servlet container for my Tapestry application, and previously had it working nicely on port 8080 in HTTP. Now I need to b

  1   2   >