Re: Help with bug report

2013-04-16 Thread Josh Canfield
I haven't had a chance to look at the code, but: > I guess I'm leaning towards JSONArray.put(null) should throw an exception, that way you know exactly when you're screwing up. Since null is a valid value in the JSON array, it seems like the null pointer exception should get fixed. Perhaps put ne

Re: Long running process in onSuccess causing Life Cycle methods to rerun.

2013-04-16 Thread Josh Canfield
Hi George. Probably need to know more about how your system is set up. Did you run the test in the exact same environment as you are seeing the problem? (same codebase different page?) Are you seeing the problem only in a production environment? Are you running apache mod_proxy, or something else

Re: Now hotness at SX vs 5.4

2013-04-15 Thread Josh Canfield
;http://blog.progs.be/453/profiling-live-application> >> . >> > > What about > https://github.com/**joshcanfield/tapestry-**monitoring<https://github.com/joshcanfield/tapestry-monitoring>, > from Josh Canfield? > > > -- > Thiago H. de Paula Figueiredo >

Re: Long running process in onSuccess causing Life Cycle methods to rerun.

2013-04-15 Thread Josh Canfield
Hmm... I can't reproduce. I assume you're running in a test environment with controlled requests. I could imagine extra GET requests caused by broken CSS, but that shouldn't trigger a onValidate, unless maybe you've rigged something up to process the form from a GET? public class About { @In

Re: transparent text overlay on an image

2012-12-18 Thread Josh Canfield
"better to have static js" On Tue, Dec 18, 2012 at 12:08 PM, Josh Canfield wrote: > Tapestry5 is not an upgrade from Tapestry4. I know, the name makes that > confusing for sure, but it's a totally separate beast. > > I think that creating javascript template file

Re: custom edit page not possible

2012-12-17 Thread Josh Canfield
I spent the last 45 minutes installing tynamo for the first time. It's NOT tapestry, it's a third party extension that I have never used, and I have no idea how many people use it. It looks like the problem is in the tynamo documentation. > To start customizing a page, make a copy of the appropri

Re: Best way to prevent page to be accessed without context?

2012-12-14 Thread Josh Canfield
> > I have tried to return > false in onActiavate() method but no luck. Not sure what you'd expect to happen here if you return false. Redirecting to another page is a good answer, even if it's just back to the front page. Don't forget that your empty onActivate handler is always called. I ofte

Re: Sharing the Registry instance between web applications (deployed in the same container)

2012-12-13 Thread Josh Canfield
You're running into a problem with with the way classloaders work in an application server. You might be able to make this work by putting the tapestry jars + dependencies in the shared lib for jetty, they would then be loaded from the same classloader. I haven't tried this and I'm not sure it's go

Re: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

2012-12-07 Thread Josh Canfield
* You are closing the t:beaneditor element. * ** On Fri, Dec 7, 2012 at 5:22 PM, Ken in Nashua wrote: > > Well here is the code... > > It yeilds same solution from Josh snippet. > > > > > >

Re: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

2012-12-07 Thread Josh Canfield
Hey Ken. Your question was poorly formatted. You didn't include the code that was failing except the snippet that was reported in the exception. Extracting that code is extra work that I have to do to figure out what you're doing wrong. If you aren't going to take the time to format good question

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Josh Canfield
Tapestry-Hibernate creates it's own instance of the SessionFactory http://tapestry.apache.org/current/apidocs/index.html?org/apache/tapestry5/internal/hibernate/HibernateSessionSourceImpl.html You can have multiple SessionFactory instances (if you have multiple databases for instance) so calling t

Re: T5.3: what's the correct usage of PerThreadValue

2012-11-28 Thread Josh Canfield
> > > > Would yield three log messages of "rendered 1 time". > > -- > Robert Hailey > > > > On 2012/11/28 (Nov), at 5:08 PM, Josh Canfield wrote: > > > Hi Robert. > > > > Are you looking for a reason to use PreThreadValue? O

Re: @CommitAfter not committing my transaction

2012-11-28 Thread Josh Canfield
I'm not sure why you'd expect Tapestry to find a session that it didn't create and commit a transaction that it doesn't know about? On Wed, Nov 28, 2012 at 1:07 PM, Pillar wrote: > It is in a Controller. If it was in DAO Layer, do I still use the @Inject > for > a session or get it from Hibern

Re: T5.3: what's the correct usage of PerThreadValue

2012-11-28 Thread Josh Canfield
Hi Robert. Are you looking for a reason to use PreThreadValue? Or do you just want to have a page/component level property that you can access for the life of the request? In a page or component you just declare the variable and let tapestry do it's magic in the background. private int w

Re: Generating dynamic Hypertext from a component

2012-10-12 Thread Josh Canfield
If you need to create a link, take a look at PageRenderLinkSource. Then create your component so that it generates the html using the MarkupWriter. Josh On Fri, Oct 12, 2012 at 8:58 AM, Peter Wendorff wrote: > Hi. > I would like to have a component that is able to create arbitrary > hypertext,

Re: Change default Log4J logger tapestry

2012-10-09 Thread Josh Canfield
I believe this is your problem. http://veerasundar.com/blog/2009/08/log4j-tutorial-additivity-what-and-why/ Josh On Tue, Oct 9, 2012 at 4:21 AM, djst wrote: > Hi there. > > Do any of you know how I can specify which Log4J logger tapestry should > use? > > You see, I'm trying to set Log4J up so

Re: Tapestry 5.3.2 autocomplete mixin not working

2012-09-13 Thread Josh Canfield
Hmm.. I cut and pasted your example and it works for me. Are you getting javascript errors? On Wed, Sep 12, 2012 at 7:48 AM, djst wrote: > Hi there. > > I'm trying to get the auto-completion mixin in Tapestry 5.3.2 to work put I > cannot get it to function properly. Tapestry does not call my >

Re: Confirm mixin with form validation errors

2012-09-13 Thread Josh Canfield
I don't think this addresses the problem though, right? If client-side form validation fails you still are in a state where you can't click the submit button again after fixing the error. Tapestry doesn't have an event for "validation failed", and I don't know of an approved way to workaround tha

Re: Retreieving specific blog

2012-09-13 Thread Josh Canfield
Wow... Hi ZiciuM. You may get someone to write you a specific example, but I'm pretty sure this one lives in the docs. You're asking for something pretty basic which makes me feel like you haven't spent any time reading before asking. Here is a good place to start: http://tapestry.apache.org/doc

Re: Plastic: Test that 2 object references are equal

2012-09-04 Thread Josh Canfield
osh, > > I am trying to generate byte-code that will test if 2 object references > are equal using Plastic. > > Thanks. > Thim. > > > On 08/25/2012 05:13 PM, Josh Canfield wrote: > > Hi Thim. > > Your question doesn't make any sense. What are you trying t

Re: Plastic: Test that 2 object references are equal

2012-08-25 Thread Josh Canfield
Hi Thim. Your question doesn't make any sense. What are you trying to do at a higher level? Josh On Aug 24, 2012 2:03 PM, "Thim Anneessens" wrote: > Hello, > > I am wondering how to achieve the following java code in plastic: > > Object a,b; > if(a==b) > // Do something > else > // Do somet

Re: Using outputraw to render eventlinks fails, is there a workaround?

2012-08-02 Thread Josh Canfield
Has it been that long? :) On Wed, Aug 1, 2012 at 6:19 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 01 Aug 2012 19:57:52 -0300, George Ludwig > wrote: > > Josh, >> Wow, thanks so much! I can definitely learn from this example... >> > > Who's Josh? :P > > > >> -George >

Re: Example of overriding the default ValidationDecorator

2012-08-01 Thread Josh Canfield
You are probably running into the fact that Tapestry rewrites your page/component classes so that there is only one instance of the class used across all requests. To do this all of the property accesses are intercepted and replaced with ThreadLocal values. When you are in development mode tapestry

Re: Using outputraw to render eventlinks fails, is there a workaround?

2012-07-31 Thread Josh Canfield
hashtag. If I > remove it, Tapestry works as expected. If I put it back in, then I get the > exception saying I need to add a onAddXXTerm method. > > I also tried using the html code for the hashtag, however it still fails. > > For now, I'll just strip the hashtag from the

Re: Using outputraw to render eventlinks fails, is there a workaround?

2012-07-31 Thread Josh Canfield
You need to implement a handler in your component "Refine" for the event. public void onAddNoTerm() { } for instance. On Tue, Jul 31, 2012 at 6:04 PM, George Ludwig wrote: > Actually, this doesn't work either. I get this exception: > > org.apache.tapestry5.ioc.internal.util.TapestryException:

Re: Using outputraw to render eventlinks fails, is there a workaround?

2012-07-31 Thread Josh Canfield
Hi George. If I understand what you're trying to do correctly, it's not going to work and you'll need a new approach. You've stated that you're trying to use but you haven't included the element in your examples. I'm going to have to guess that you've put your component html into a string and ar

Re: #again #strange No service implements the interface tap.execounting.dal.mediators.TeacherMedImpl

2012-07-31 Thread Josh Canfield
Can you show where you are injecting the service? tap.execounting.pages.TeacherPage.tMed: No service implements the interface tap.execounting.dal.mediators.TeacherMedImpl It seems like you are trying to inject the impl something like: @Inject private TeacherMedImpl tMed; On Tue, Jul 31, 2012 a

Re: problem in custom javascript with scriptaculous

2012-03-19 Thread Josh Canfield
Start by saying what isn't working. On Mar 19, 2012 5:36 AM, "gaurav" wrote: > Hi, > I created a drop down box and want to add scriptaculous Draggable in my > drop > down box but it is not working together. So how can I fix the things. > > @AfterRender >void afterRen

Re: HttpSessionListener interface implementation by Tapestry5 component

2012-03-16 Thread Josh Canfield
Are you sure you're using the instance that Tapestry created? If you registered your HttpSessionListener via your web.xml then Tomcat is creating the instance. In this case you want to grab the instance of Registry stored in the ServletContext. http://tapestry.1045711.n5.nabble.com/Hello-Can-anyo

Re: [OT] Re: T5: encoding issues

2012-03-16 Thread Josh Canfield
Did you try adding -Dfile.encoding=utf-8 to the jvm command line? On Fri, Mar 16, 2012 at 10:02 AM, bigcache1 wrote: > BUMP!! > > I've recently updated my app to the Tapestry 5.3 > Everything works great, thanks to all developers. > Just have a little problem with encoding of russian symbols in

Re: T5 Class Reloading & InvalidationListener

2012-03-15 Thread Josh Canfield
It sounds like you have Tomcat set to watch for changes to your webapp and reload the whole context. If tomcat is reloading your context and giving you that message, then you aren't actually using tapestry's class reloading feature, right?. The InvalidationEventHub calls objectWasInvalidated when

Re: How to represent this?

2012-03-13 Thread Josh Canfield
Ah. That seems poorly decomposed. Why are you creating a MenuFruits.java component? Is the behavior of the Fruits so drastically different than the Meats and Vegetables? On Tue, Mar 13, 2012 at 3:16 PM, TechniciuM wrote: > That's not exactly what I was looking for, but thanks for the effort. Her

Re: How to represent this?

2012-03-13 Thread Josh Canfield
I can't really follow what you are saying here. You asked about categorized pages, I assumed they were parameterized and not actually new .tml files for each category. Is that what you are saying here? Are you building Fruit.tml, Vegetable.tml? and you want to put a component on them that figures

Re: How to represent this?

2012-03-13 Thread Josh Canfield
I assume that's a response to me, bu there's no context... That really depends on how you are going to render your menu items. For a menu I'd probably handle it by generating the list of items in java and using the tml to render it. ${menuItem.label} Off the top of my head... On Mon, Mar 12

Re: How to represent this?

2012-03-12 Thread Josh Canfield
I'd suggest passing the category as a parameter to the component. your page receives the category identifier as a parameter: /menu/meat Menu.java onActivate(String category) etc. Then provide the category as a parameter etc. Josh On Mon, Mar 12, 2012 at 12:42 PM, TechniciuM wrote: > Let

Re: html pentaho report missing some data

2012-03-12 Thread Josh Canfield
> yes i did, please give me an solution for this problem. No, you are on the wrong list. You have a Pentaho problem and you're asking the Tapestry list. Josh On Sun, Mar 11, 2012 at 10:10 PM, ram89 wrote: > yes i did, please give me an solution for this problem. > > -- > View this message in co

Re: Tapestry Interview Questions

2012-03-05 Thread Josh Canfield
If you have good questions you can add them to smarterer. http://smarterer.com/test/tapestry5/questions/new :) On Mon, Mar 5, 2012 at 4:42 AM, Thiago H. de Paula Figueiredo wrote: > On Mon, 05 Mar 2012 08:42:37 -0300, Muhammad Gelbana > wrote: > >> Interesting isn't it :D >> How would tapestry

Re: Hibernate/Tapestry5 - MySQL database

2012-03-02 Thread Josh Canfield
It seems like the OP is asking about using update To upgrade the schema of his database. It's generally considered bad practice to let hibernate auto upgrade your production database, although it's really handy during development. This is entirely a hibernate problem though and unrelated to Ta

Re: Best practise to extend tapestry 5 so http sessions are stored in db

2012-02-22 Thread Josh Canfield
If all you are after is storing your sessions in the database, have you considered configuring it in the app server? Both Jetty and Tomcat have solutions. On Wed, Feb 22, 2012 at 8:07 AM, tompeter wrote: > Hi, > > I am also trying to use an alternate storage strategy but Tapestry doesn't > load

Re: Applying Foundation Framework decoration Serverside on Custom Button Componet

2012-02-09 Thread Josh Canfield
Something mangled your code, but with a little deciphering I think what you are trying to do is add a class to the input button by replacing the beginRender method of Submit? You can't extend Submit and override the beginRender method. The beginRender method isn't public... Have you considered a

Re: T5.3.1, Page with StreamResponse no longer work

2012-02-07 Thread Josh Canfield
So little information... this isn't a familiar error but here are some shots in the dark. Do you have a constructor defined in Map? How are you getting the instance of Map to return from the Start page? Can you create a simple class that recreates this problem and that you can give us complete s

Re: T5.3.1, Page with StreamResponse no longer work

2012-02-06 Thread Josh Canfield
Where is the ImageStreamResponse class defined? You should move it out of your pages package. On Mon, Feb 6, 2012 at 8:11 PM, sigenz wrote: > Hi, > > I have a page which displays an image from StreamResponse: > > public class Map { > .. >public Object onActivate(){ >re

Re: Still struggling with templates...

2012-01-27 Thread Josh Canfield
Take a look here: http://jumpstart.doublenegative.com.au/jumpstart/previews/withlayout/helloworld It has an example of passing text to the layout as a parameter. Josh On Fri, Jan 27, 2012 at 9:03 AM, Julien Martin wrote: > Hello, > I would like to have a tag defined in my app main/root templa

Re: t:container vs t:content?

2012-01-23 Thread Josh Canfield
gt; from the template that is going to use the layout: > *http://tapestry.apache.org/schema/tapestry_5_3.xsd";>* > ** > *Hello; this is part1 implementation.* > ** > * > * > ** > *Hello; this is part2 implementation.* > ** > ** > > > > 2012/1/23 Josh Canfield >

Re: t:container vs t:content?

2012-01-22 Thread Josh Canfield
>From the docs: http://tapestry.apache.org/component-templates.html A element contains markup without being considered part of the template. marks a portion of the template as the actual template content; any markup outside the element is ignored. t:container must be the root element. It allow

Re: messages bundle containing special characters

2012-01-19 Thread Josh Canfield
Oh, and Tapestry will read your properties file in UTF8, so you could just store the ® directly in the file. http://tapestry.apache.org/localization.html On Thu, Jan 19, 2012 at 8:34 PM, Josh Canfield wrote: > Use unicode escapes? > > http://docs.oracle.com/javase/6/docs/api/

Re: messages bundle containing special characters

2012-01-19 Thread Josh Canfield
Use unicode escapes? http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html#load(java.io.InputStream) http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.3 \u00AE http://www.fileformat.info/info/unicode/char/ae/index.htm Josh On Thu, Jan 19, 2012 at 7:21 PM, Paul S

Re: Attribute rendering in tags with variables

2012-01-19 Thread Josh Canfield
>> if an attribute >> that is being rendered by a variable that is null/doesn't exist is removed >> from the DOM? Yes, although technically "doesn't exist" is impossible in java, your ${bodyClass} property will always exist, it just might evaluate to null. Tapestry builds a proprietary DOM repres

Re: Any Tapestry-specific performance analytics packages available?

2012-01-17 Thread Josh Canfield
Hey Kalle. I started tapestry-monitoring so that I could keep track of specific methods runtime (loading data from the database etc). https://github.com/joshcanfield/tapestry-monitoring I've had visions of extending it but I haven't needed other features enough to bump up the priority. I think

Re: T5.3.1 passing parameters to datasource method

2012-01-14 Thread Josh Canfield
That was snarky. Your question is terse and could have been tried before trying the list. Here are the docs. http://tapestry.apache.org/property-expressions.html On Sat, Jan 14, 2012 at 10:08 PM, Josh Canfield wrote: > nope. > > On Sat, Jan 14, 2012 at 9:53 PM, angelochen >

Re: T5.3.1 passing parameters to datasource method

2012-01-14 Thread Josh Canfield
nope. On Sat, Jan 14, 2012 at 9:53 PM, angelochen wrote: > Hi, > > is the following code possible? > > < t:loop source="rows(1)" value="row" > > > thanks, > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/T5-3-1-passing-parameters-to-datasource-method-tp5146041p51460

Re: can someone explain what t:ac is?

2012-01-13 Thread Josh Canfield
> So the part before the query param is the event context, and t:ac is the > page context.  Right? > You are right. t:ac is the parameters passed to onActivate when your event is processed > '/programs/info.requestoverride:internalevent/10508?t:ac=10508' Here you have a component id of info.requ

Re: Advice on creating new components

2012-01-13 Thread Josh Canfield
The answers you get to this is are going to be mostly personal preference, so I'll give you mine. I would definitely create at least one component to contain all three of the types of identifiers, then when you add a fourth, or remove one, they magically get updated on all the pages. Whether you

Re: RadioGroup & loop: coercion problem

2012-01-12 Thread Josh Canfield
> I've found a> > http://tapestry.1045711.n5.nabble.com/Loop-RadioGroup-and-Coercion-td2422576.html> > piece of solution  (with the encoder, where I get the right object!) but it> > doesn't work neither. Can you describe how it doesn't work? What errors are you getting? Is it passing the id tha

Re: Unable to render exceptions thrown in AppModule

2012-01-10 Thread Josh Canfield
12 at 4:36 PM, Howard Lewis Ship wrote: > On Tue, Jan 10, 2012 at 11:59 AM, Josh Canfield > wrote: >> The actual error reported is caused by what looks like a defect: >> >> java.lang.NullPointerException >>       >> org.apache.tapestry5.internal.services

Re: Unable to render exceptions thrown in AppModule

2012-01-10 Thread Josh Canfield
The actual error reported is caused by what looks like a defect: java.lang.NullPointerException org.apache.tapestry5.internal.services.assets.CompressionAnalyzerImpl.isCompressable The code: public boolean isCompressable(String contentType) { assert contentType != null;

Re: help : displaying Images that are stored outside the Web application

2012-01-05 Thread Josh Canfield
> I am a newbie to Tapestry. I need help on how to display the Images stored> > outside the Web application. One way to do it is is read the file and return a StreamResponse. http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile Josh On Wed, Jan 4, 2012 at 9:16 PM, Suma wrote:

Re: [T5.2.6] Component class transformation on initialized private instance fields

2012-01-04 Thread Josh Canfield
> Does the inline initialization claim the field at transformation-time > so that it is not cleared during request detachment? The inline initialization is used to reset the value at the end of a request. So, if you put stuff in the default list then you are going to see it in all of your pages. I

Re: Why Components in Loop are the only one instance? What should I do?

2012-01-03 Thread Josh Canfield
ike a fine solution. > > Is there some other solutions? If sometimes I put my existing complex > Component into a Loop, It will not work. > > > On Jan 4, 2012, at 1:44 AM, Josh Canfield wrote: > >>> I have changed all the values I want to persist to context values

Re: Why Components in Loop are the only one instance? What should I do?

2012-01-03 Thread Josh Canfield
olve this problem? > > Sent from my iPad > > On 2012-1-3, at 4:08, Josh Canfield wrote: > >> This is by design. Tapestry pages/ components have static structure so no >> matter how many times you g through the loop you only get one instance >> of the component. &

Re: Why Components in Loop are the only one instance? What should I do?

2012-01-02 Thread Josh Canfield
This is by design. Tapestry pages/ components have static structure so no matter how many times you g through the loop you only get one instance of the component. What specifically are you trying to do? Maybe someone can offer some design tips. Josh On Jan 2, 2012 12:17 AM, "Bo Gao" wrote:

Re: t 5.3.1 tree

2012-01-01 Thread Josh Canfield
I'm guessing that the LI sits on top of the UL when rendered. The tree images use transparency and if you don't set the background color of the LI then the background is also transparent and the UL image bleeds through. Now you have the two backgrounds merged together. On Dec 31, 2011 1:34 PM, "Chr

Re: issue

2011-12-26 Thread Josh Canfield
Please explain what doesn't work? What does the generated html look like? On Dec 26, 2011 10:17 AM, "yuzi" wrote: > This is my tml code > > //problem with > >//image tag here > > > >${pojo.url} > > > > This is my jquery for overlay > >$("a[rel]").overlay({

Re: xhr requests and thread safety

2011-12-26 Thread Josh Canfield
> "Tapestry also shields you from the multi-threaded aspects of web > application development..." unless you're dealing with concurrent requests to objects in a users session. When you're dealing with shared resources, protecting them from concurrent access is in the developers hands. > I had ass

Re: Exception assembling embedded component 'exceptiondisplay'

2011-12-19 Thread Josh Canfield
What version of Tapestry? There was an openJDK incompatibility in early versions of 5.3, but it should be resolved in recent versions. You get the error with the sun JDK? That would be new, the known error was specifically with openJDK. How possible is it that you thought you'd changed the JDK th

Re: template refresh in development

2011-12-17 Thread Josh Canfield
I seem to recall with Intellij that you also have to add ?*.tml to the resource patterns copied after doing a compile. You access it through the compiler settings. On Wed, Dec 14, 2011 at 12:24 PM, Howard Lewis Ship wrote: > IntelliJ requires that you rebuild (Cmd-F9) after making a change for >

Tapestry Tests

2011-12-17 Thread Josh Canfield
Hey all. I've been playing around with the smarterer.com (I'm not an employee and have no stake in it's success) and decided to start a test for Tapestry5. There are some glitches with their test management (site is in beta) so I've got an email in to their dev team to get the bad image I uploaded

Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Josh Canfield
A copy of the request would be helpful. It seems like in the first report the "t:submit" parameter was coming back as a quoted string, but later reports seem to have it fixed by checking if it's empty. On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp wrote: > I have no idea! For sure there must be

Re: [T5.3] Bug PageTester

2011-11-28 Thread Josh Canfield
> My current fix is monkey-patch the PageTester class file. Hopefully this > will be fixed in next release of T53. It's unlikely to be fixed unless you file a defect in Jira. :) It's curious that none of the internal tests include a query parameter that would have caught this. Josh On Mon, Nov

Re: Dynamic Disabled fields with binding

2011-11-28 Thread Josh Canfield
Hi George. I answered your base question on a different thread, but for the sake of search engines: I don't think you'll come across a scenario where you need to get the BindingSource and create your own bindings in this way. In general the binding that you want is defined in your TML or via the

Re: [T5.3] @ActivationRequestParameter not encoding to be URL friendly

2011-11-28 Thread Josh Canfield
Hehe... You found it, you can file it! ;) I just verified that it's a problem. I highly recommend keeping a copy of the Tapestry source handy though! On Mon, Nov 28, 2011 at 6:28 PM, Kartweel wrote: > Thanks for the reply, should I file a bug report for this or are you > more qualified for doing

Re: [T5.3] Need a replacement for pageDetached (or a better way to achieving this...)

2011-11-28 Thread Josh Canfield
> But I don't think afterRender will be called unless the ajax response> > contains the form? True. That seems to be what you're asking for. > > I have the following code which I've been using to work around forms > > invalidly persisting data on ajax requests (ie. form is rendered in > the ajax

Re: [T5.3] @ActivationRequestParameter not encoding to be URL friendly

2011-11-28 Thread Josh Canfield
Looks like a defect, not sure if it's been filed yet. ActivationRequestParameterWorker isn't encoding the client value returned by the ValueEncoder. String clientValue = encoder.toClient(value); link.addParameter(parameterName, clientValue); addParameter is documented as not doing the encodin

Re: [T5.3] Need a replacement for pageDetached (or a better way to achieving this...)

2011-11-28 Thread Josh Canfield
Hmm... somewhere between nabble and my inbox your sourcecode was stripped. This seems to be a pretty common problem with nabble. I'm not sure that this is addressed in 5.3, or if there is a defect filed yet. But, seems like you could use a mixin? // In your page/component holding the form @Comp

Re: Radio button inside ajaxformloop

2011-11-28 Thread Josh Canfield
Hi! > I'm trying to use a radio component inside a ajaxformloop. My template looks> > like this: Ok, I struggled a bit, and it took a while but I think I can guess what you are trying to do. You are creating an editor for a multiple choice test/questionnaire. You want to the test editor to be ab

Re: T5: dynamically set disabled attribute

2011-11-28 Thread Josh Canfield
There are at least a few reasonable approaches to this problem, different approaches make more sense depending on how you're storing the data. For instance, I can't tell from your description whether you are determining the enable/disable state using business logic about the workflow/role, or if y

Re: Which IDE for Tapestry?? [short and medium term]

2011-11-15 Thread Josh Canfield
> somewhat frustrated with my experience. I have to redeploy everything each> > time I make a change. This isn't my experience. You have to make sure that your artifact is configured to rebuild on make. On Tue, Nov 15, 2011 at 7:20 AM, Julien Martin wrote: > Hello, > I have tried to use IntelliJ

Fwd: Decoding URL

2011-11-15 Thread Josh Canfield
Hi Mike. Wrong list. dev is for the development of tapestry, users is for development with tapestry. What do you expect the url to be? It looks like it's encoding some non-ascii characters. -- Forwarded message -- From: Mike Date: Tue, Nov 15, 2011 at 10:52 AM Subject: Decoding

Re: T5.3 rc3 upload exception

2011-11-14 Thread Josh Canfield
> after that, no matter what file I upload, I will catch the same exception,> > even if the uploaded file doesn't exceed the size limit. If you upload an empty file you get the same error with the same size reported? That doesn't make sense. Without more code it's going to be hard to debug. Can yo

Re: Changes in the tml and components are not reflecting

2011-11-08 Thread Josh Canfield
How are you starting Jetty? You need to make sure that the edited tml file is getting into the location where jetty is loading them. Also, set -Dtapestry.production-mode=false On Tue, Nov 8, 2011 at 5:49 AM, ramakanthreddy.t wrote: > I am working on simple examples that are there in the Tapestry

Re: e.stop() is invalid in the Link

2011-11-08 Thread Josh Canfield
You're message came through empty. What would you like help with? On Tue, Nov 8, 2011 at 5:02 AM, dick_hu wrote: > Can anyone help me? > I am very worried. > > Or can anyone tell me how validate the checkbox with "t:validate", > It seems invalid in the checkbox > > -- > View this message in conte

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread Josh Canfield
Is the form in your page tml or the component tml? From your description it sounds like it's not in the page, which is the error you are getting. On Nov 6, 2011 6:13 AM, "9902468" wrote: > The saga continues: > > I have a "onSuccessFromProductSizeForm" -method on my page. When the form > is > en

Re: Submit inside loop

2011-11-01 Thread Josh Canfield
onValidate is fired by your form after all of fields have been processed, your fields also trigger an validate event. You may want to be more specific about which field/form your validate method is intended to service. Here is a test:     @P

Re: Submit inside loop

2011-10-31 Thread Josh Canfield
> Unless you know of a way to use context without defer, I could always use > css positioning to handle this. Use defer=false so that you can capture the context, then use the same strategy that the submit component does and defer your processing code until after the rest of the form has been proc

Re: Submit inside loop

2011-10-28 Thread Josh Canfield
:) It's all about understanding the component model and how form components interact during a post. I'd recommend reading the source of the submit/textfield/form components it's not that long and could provide some light as to what's going on. Using the debugger and walking through is also very ill

Re: Submit inside loop

2011-10-28 Thread Josh Canfield
When are you seeing the values as null? I can't see any reason that what you are doing shouldn't work, unless you're trying to access the values from the onSelected method with defer = false before the fields have been processed. You could set a breakpoint on the setter for your form properties an

Re: property expressions

2011-10-27 Thread Josh Canfield
> Most tapestry folk will agree that putting logic in your templates makes them brittle and hard to maintain, but sometimes need a little something in the template. I created a simple utility binding to help out in these kinds of situations. Example usage: Why | ? because : isn't valid in the

Fwd: Multiple Formats for datefield

2011-10-26 Thread Josh Canfield
Hi Kunal. The user list is more appropriate for questions about using Tapestry. Your question is a little vague. What have you tried? What isn't working? Josh -- Forwarded message -- From: rocksdj Date: Wed, Oct 26, 2011 at 8:02 PM Subject: Multiple Formats for datefield To: d..

Re: T5.3 Datepicker color/style problem only on WebKit/Mac browsers

2011-10-13 Thread Josh Canfield
The problem is the datapicker.css uses system colors which for some reason result as black on black. http://www.w3.org/TR/CSS2/ui.html#system-colors It's supposed to make the datepicker match your system colors. http://www.iangraham.org/books/xhtml1/appd/update-23feb2000.html The two classes that

Re: [5.3] Possible issue with entity names in HTML attributes

2011-10-05 Thread Josh Canfield
> In my defense, since Josh asked, I have actually tried it - but only in a > browser (by copying and pasting the encoded URL) where such URL wouldn't > work for me in Chrome (target PHP page would see a variable named "amp;2" > instead of "2") but when I use an encoded URL in a Tapestry template,

Re: [5.3] Possible issue with entity names in HTML attributes

2011-10-05 Thread Josh Canfield
Did you try it? The browser should do the right thing and decode it before using the link. If you use firebug you'll probably see that it's already been unescaped in the Dom. On Oct 5, 2011 7:37 AM, "Radoslav Bielik" wrote: > Uli, thank you for your response. I'm confused though. The ampersand is

Re: beanedit form issues (the FAQ seems to be incorrect)

2011-10-04 Thread Josh Canfield
"This occurs when the BeanEditForm's object parameter is bound to null" Looking at the code, it seems that it only calls the constructor if your "object" parameter is null. Can you provide some of the actual template/project code or a small example project that reproduces the problem? Also, I ma

Re: Tapestry component for input multiple=multiple

2011-10-03 Thread Josh Canfield
Hi Julien. Can you be more specific about what you are trying to do? What do you mean by > what Tapestry component will properly map to the code below. Josh On Sun, Oct 2, 2011 at 8:33 AM, Julien Martin wrote: > Hello, > I have the following html generated by a jQuery plugin i.e. FCBKComplete >

Re: TAP5-1233 re-open ? java.lang.IllegalAccessError:

2011-10-03 Thread Josh Canfield
Is it just me, or is there code missing form this message? On Oct 3, 2011 6:14 AM, "antalk" wrote: > Hi all, > > I've hit TAP5-1233 again, ( i think) but in some different way: > > Take a service: > > > > And its implementation: > > > > The contribution class is as follows: > > > > And lives in th

Re: Tapestry component for input multiple=multiple

2011-10-02 Thread Josh Canfield
I don't understand, I must be missing something that is unspoken. Why can't you do this with a simple loop. When is the data for the HTML known? On Oct 2, 2011 8:56 AM, "Taha Hafeez Siddiqi" wrote: > Hi Julien > > As Tapestry's structure is not dynamic, you cannot map a dynamically generated html

Re: Intellij & jetty

2011-09-30 Thread Josh Canfield
Under "Project Settings" | "Artifacts" you'll see your web application artifact. Look for "Build on make" and check the box. this isn't set by default so your compiled changes aren't stored into the file system. There is an issue that I haven't worked around. When you change a class file it seems

Re: how to get orioginal filename for UploadedFile

2011-09-26 Thread Josh Canfield
Contemporary browsers don't send the path, just the filename. http://www.google.com/search?q=html+file+input+path On Mon, Sep 26, 2011 at 9:10 PM, Ken in Nashua wrote: > > Folks, > > I am using this tap5 UploadedFile > > >                trailsBlob.setContentType(file.getContentType()); >      

Re: Error in T5.3 & openJDK = java.lang.reflect.GenericSignatureFormatError

2011-09-22 Thread Josh Canfield
Which specific build of Tapestry 5.3? That looks like something fixed a while back. On Sep 22, 2011 4:56 AM, "Ernesto Arroyo" wrote: > Anyone with this same issue? > > This error happens in a Tapestry 5.3 app, deployed in a Tomcat 6 with > OpenJDK > OpenJDK Runtime Environment (IcedTea6 1.9.8) (rh

Re: tapestry select model

2011-09-20 Thread Josh Canfield
This is pretty light on details. You may need to provide some code that demonstrates the problem. On Tue, Sep 20, 2011 at 12:17 PM, csckid wrote: > I am developing a page that will load value of combobox from a database > table. The table is loaded fine. But when I clicked on submit, I can't > a

Re: T5.2, message encoding

2011-09-19 Thread Josh Canfield
You're production system is possibly not configured with UTF-8 as it's default encoding. Try adding -Dfile.encoding=UTF-8 to your jvm arguments. Josh On Mon, Sep 19, 2011 at 11:16 AM, Dimitri wrote: > Hi all, > While everything if good on my dev pc, i have an encoding problem with the > produc

  1   2   3   4   5   6   7   8   9   >