Custom Validation Bubbles

2010-08-11 Thread Rich M
Hi, I've found resources that explain how to remove the validation bubbles, but I'm looking to display validation bubbles similar to how it's possible to record form errors to after a 'failed' form submission. I have tight spacing in the UI layout and having to accommodate for the isn't m

Re: Custom Validation Bubbles

2010-08-12 Thread Rich M
Thanks Josh, that was exactly what I was looking to do. Hopefully I'll be able to start seeing these things on my own sometime soon! -Rich On 08/11/2010 08:11 PM, Josh Canfield wrote: If you are looking to get the error bubble to pop up after you submit the form you could use this: public c

Re: Custom Validation Bubbles

2010-08-16 Thread Rich M
display the popup error when it becomes aware the parameter for the session timeout is triggered. Thanks, Rich On 08/12/2010 10:40 AM, Rich M wrote: Thanks Josh, that was exactly what I was looking to do. Hopefully I'll be able to start seeing these things on my own sometime soon! -Rich

Re: Custom Validation Bubbles

2010-08-18 Thread Rich M
blic Object onActionFromRegister(){ return "register"; } @Inject private Logger log; @Property @Persist("flash") private Boolean expired; @Component private CustomerLogin clogin; void onActivate(String s){ log.debug("in

Re: Custom Validation Bubbles

2010-08-19 Thread Rich M
like so: @Component(parameters = {"AttachError.message=fieldError"}) @Mixins("AttachError") private TextField _textField; Josh On Wed, Aug 18, 2010 at 2:16 PM, Rich M wrote: Hi, I'm still having a hard time grasping this. I tried thinking of a way

Restoring Live Page Class Reloading

2010-08-19 Thread Rich M
Hi, a couple months back I was attempting to solve this issue, but since it is more an issue of agility than functionality it got pushed back in my development priorities. I've got some free development time now and I'd really like to fix this once and for all. I'll try to break this down in

Re: Restoring Live Page Class Reloading

2010-08-19 Thread Rich M
asking =/ -Rich On 08/19/2010 03:04 PM, Thiago H. de Paula Figueiredo wrote: On Thu, 19 Aug 2010 15:41:20 -0300, Rich M wrote: a) ModuleIndex functions similar to the Layout page, it must contain the navigation menu and then directs content from a specific page of the Module (I will cal

Re: Restoring Live Page Class Reloading

2010-08-19 Thread Rich M
t the Component object from ComponentSource's getPage method to the Tab interface in order to access this method? I'm not sure if Tapestry links custom components to the Component class somehow, but my common Java sense would tell me this is silly. -Rich On 08/19/2010 04:20 PM, Rich

Re: Restoring Live Page Class Reloading

2010-08-19 Thread Rich M
e/template? Thanks, Rich On Thu, 19 Aug 2010 17:53:56 -0300, Rich M wrote: Actually I spoke a little too soon about the persistent fields. I'm not really clear on how that is solved by a ComponentRequestFilter, other than it's a good place to do it. ComponentSource doesn't provide

Re: Restoring Live Page Class Reloading

2010-08-20 Thread Rich M
d only one should be loaded at any time. The ModuleIndex can know the page path of the Tab and the simple class name from the way it uses ComponentSources. -Rich On 08/19/2010 07:29 PM, Thiago H. de Paula Figueiredo wrote: On Thu, 19 Aug 2010 19:13:43 -0300, Rich M wrote: Ah, great! That h

Re: Restoring Live Page Class Reloading

2010-08-20 Thread Rich M
kage. Loaded Conversion ::"+conv+":: from DB"); } On 08/19/2010 07:29 PM, Thiago H. de Paula Figueiredo wrote: On Thu, 19 Aug 2010 19:13:43 -0300, Rich M wrote: Ah, great! That helped move things forward. Transformation is starting to take place, I was able to get on

Re: Restoring Live Page Class Reloading

2010-08-20 Thread Rich M
13:07:06 -0300, Rich M wrote: Almost there.. I'm having a hard time with this environmental coding. If I can get it down for this one page then it should be simple enough for the rest. Your code that uses the environment looks correct. As of now, I'm getting a strange error in th

Re: Restoring Live Page Class Reloading

2010-08-20 Thread Rich M
hods don't even get called yet judging by the lack of debug log messages when these errors occur. Is there something special I need to be doing with the Environment to get the PageId back in there? -Rich On 08/20/2010 04:21 PM, Rich M wrote: Ah, I've finally got it. Many many thanks fo

Re: Restoring Live Page Class Reloading

2010-08-23 Thread Rich M
0 05:44 PM, Thiago H. de Paula Figueiredo wrote: On Fri, 20 Aug 2010 18:26:46 -0300, Rich M wrote: Spoke a little too soon. One minor thing remains in some of the sub-subPages related to the Environmental stuff. Passing the PageId Object from the containing page to the sub-page through the e

Re: Restoring Live Page Class Reloading

2010-08-23 Thread Rich M
On Aug 23, 2010, at 8/2311:50 AM , Thiago H. de Paula Figueiredo wrote: On Mon, 23 Aug 2010 13:38:14 -0300, Rich M wrote: I'm assuming you mean in the Containing Page? Yes. I tried switching it to onActivate instead of beginRender and in this case the afterRender m

Maintaing session objects

2010-08-26 Thread Rich M
Hi, I've been going through my code and doing some concurrency testing and realized that the implementation of sessions I wrote back in the beginning is very wrong. I had custom Session objects in the services package to track user information and other things, but these really don't belong i

Re: Maintaing session objects

2010-08-26 Thread Rich M
ser id as a string in the onPassivate context's like I previously thought. Who thought refactoring could be so fun! -Rich On 08/26/2010 12:06 PM, Rich M wrote: Hi, I've been going through my code and doing some concurrency testing and realized that the implementation of session

Aesthetic IE8 issues

2010-08-30 Thread Rich M
Hi, I've been doing some testing and noticed two peculiarities inherent to the framework in IE8, wondering if anyone has encountered these and possibly identified the issue at hand. First is the the JavaScript popup validation bubbles that accompany Tapestry forms do not display with the back

Re: Aesthetic IE8 issues

2010-09-03 Thread Rich M
maybe port the PNG files to a different format and serve them myself in my application? Thanks, Rich On 08/30/2010 05:19 PM, Rich M wrote: Hi, I've been doing some testing and noticed two peculiarities inherent to the framework in IE8, wondering if anyone has encountered these and possibly i

Asset Security in 5.1.0.5

2010-09-13 Thread Rich M
Hi, I just noticed I can access a disturbing amount of files through the assets/ path from my application. The user guide for 5.0 states that Tapestry automatically blocks access to all assets and only whitelists critical Tapestry files http://tapestry.apache.org/tapestry5.0/guide/assets.htm

Re: SessionState for simple types

2010-09-14 Thread Rich M
I'm not sure if this is the recommended way, but I find it both easy and self-descriptive to write wrapper classes for these java objects so you can use either SessionState or the Environment to move them across pages in the application. For example, if you have a String for the name of the use

Re: How to display form success?

2010-09-15 Thread Rich M
Here is how I tend to handle it: @Property @Persist("flash") private String commitMessage; public void onPrepare(){ if(commitMessage == null) commitMessage = ""; } void onSuccessFromUserForm(){ try{ //update call commitMessage = "User

[5.1.0.5] Firing javascript from page class from mixin handler method

2010-09-21 Thread Rich M
Hi, I have a new requirement that came up and I've been considering how to handle accordingly. The issue at hand is to use an AJAX mixin to read a change to a Select input, update the value bound to a TextField, and conditionally set the "disabled" attribute of the same TextField. I implemen

Re: [5.1.0.5] Firing javascript from page class from mixin handler method

2010-09-21 Thread Rich M
javascript from within a mixin handler if anyone knows. Thanks, Rich On 09/21/2010 01:46 PM, Rich M wrote: Hi, I have a new requirement that came up and I've been considering how to handle accordingly. The issue at hand is to use an AJAX mixin to read a change to a Select input, update

[5.1.0.5] Delete Confirmation Mixin

2010-09-29 Thread Rich M
Hi, I found this thread http://tapestry-users.832.n2.nabble.com/Confirm-mixin-won-t-cancel-when-in-zone-td5048950.html#a5048950 but it's not exactly what I'm trying to do because it's for eventlinks. I'm a bit stuck getting the pieces of a custom mixin I'm trying to write to work, and my tale

Re: Early steps getting Tapestry and Hibernate working via DAO

2010-10-08 Thread Rich M
Hi, so this thread has inspired me (along with some freetime) to clean up my Tapestry-Hibernate DAO code, but I'm having a hard time getting the @CommitAfter annotation to seemingly work correctly. I'm assuming I'm missing a small step. I advise the TransactionCommitAdvice in my AppModule: @

Re: Early steps getting Tapestry and Hibernate working via DAO

2010-10-08 Thread Rich M
ate() ) and in EntityDAO update() calls @CommitAfter public void executeUpdate() See anything wrong here? Thanks, Rich On 10/08/2010 12:10 PM, Thiago H. de Paula Figueiredo wrote: On Fri, 08 Oct 2010 12:41:41 -0300, Rich M wrote: Hi, Hi! @CommitAfter protected void executeUpdate(E

Re: Early steps getting Tapestry and Hibernate working via DAO

2010-10-08 Thread Rich M
age Transaction on your own. Once 5.2 comes out I'll try to remember to come back to this one and let you know about the @CommitAfter. Thanks for the help Thiago. -Rich On 10/08/2010 02:11 PM, Thiago H. de Paula Figueiredo wrote: On Fri, 08 Oct 2010 14:40:29 -0300, Rich M wrote:

Re: Component parameters-unintended persistent binding

2010-10-18 Thread Rich M
This may not be entirely your issue, but the t:if test parameter takes in property bindings, so I believe that is why it would be calling the getters on the mainMenuId even if it were blank/null on the second page. What happens if you have the test parameter link to a boolean method that handle

Re: setSortAscending on BeanModel in Grid

2010-10-20 Thread Rich M
Hi, I don't use 5.2, but it seems based on your code this should work (I do this in 5.1.0.5): ColumnSort colSort = _grid.getSortModel().getColumnSort("txnId"); while(!colSort.equals(ColumnSort.DESCENDING)){ _grid.getSortModel().updateSort("txnId"); //Should invert the sort

Re: change session id after login

2010-10-21 Thread Rich M
Hi, I thought it would be a nice security update to add this fix to my application, but I seem to be having a hard time finding out exactly where to invalidate the Tapestry session without getting exceptions. I have a Dispatcher that controllers page access and manages my internal session im

Form submit conditionally opening new window

2010-10-25 Thread Rich M
Hi, a while back I built in JasperReports support into my application, and on the pages accessing this I had a form with target="_blank" to open the reports in a new window. I'm now being required to enforce a restriction on some parameters feeding into the reports, and I want to do this on t

5.1.0.5: Supporting mixins in user defined components

2010-10-26 Thread Rich M
Hi, how do you provide parameters to a mixin when you are doing an Implementation Mixin? I'm running in 5.1.0.5 and the documentation isn't very clear on this. I have the code below in the component class where I would like to add the mixin, but I need to get the template parameters to this co

Re: 5.1.0.5: Supporting mixins in user defined components

2010-10-26 Thread Rich M
orman Franke Answering Service for Directors, Inc. www.myasd.com On Oct 26, 2010, at 2:46 PM, Rich M wrote: Hi, how do you provide parameters to a mixin when you are doing an Implementation Mixin? I'm running in 5.1.0.5 and the documentation isn't very clear on this. I have the co

[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

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

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

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: 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

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

[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

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

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

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.

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: 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

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
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-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-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
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
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
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-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:

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: 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

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-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
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-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-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
","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
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
. 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

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

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

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

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

[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: [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

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 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: 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: 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: 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: 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

[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: [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] 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: 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

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: [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-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

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: 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;

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: 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

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: 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

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-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: 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

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: 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

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

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: 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

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: 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: 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

  1   2   >