Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread karthi
Thank you Arno Haase for your continuous help... I will check encoder method in my code for correct implementation, however I have used this in previous app without any issues... Also I just removed that encoder and directly assigned the string values to the list and display it in the tml page *it

Re: tapestry-push - proof of concept

2012-05-15 Thread xieweiguo
Yes ,that's the real question.the block/zone/component dependents on the environment (page or parent component ),so we can't just render it like call a function -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-push-proof-of-concept-tp5697644p5710470.html Sent from t

Re: dynamic validation for required / not required

2012-05-15 Thread Thiago H. de Paula Figueiredo
On Tue, 15 May 2012 17:33:06 -0300, George Christman wrote: lol I spoke to soon, I don't remember how to pass it back as a parameter Is it something like this? t:validate="prop:contactNameValidator(literal:contactName)" public FieldValidator getContactNameValidator(String clientId) {

Re: dynamic validation for required / not required

2012-05-15 Thread George Christman
lol I spoke to soon, I don't remember how to pass it back as a parameter Is it something like this? t:validate="prop:contactNameValidator(literal:contactName)" public FieldValidator getContactNameValidator(String clientId) { -- View this message in context: http://tapestry.1045711.n5.nabb

Re: dynamic validation for required / not required

2012-05-15 Thread George Christman
Ah yes, I forgot about that solution. Good idea, Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/dynamic-validation-for-required-not-required-tp4422440p5710378.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Add Tapestry validation to hidden element written with MarkupWriter

2012-05-15 Thread George Christman
I built a custom version of tagselect which uses jQuery rather than prototype. The token values are added to the hidden field by javascript. I just need to be sure there is a value there. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Add-Tapestry-validation-to-hidden-ele

Re: dynamic validation for required / not required

2012-05-15 Thread Thiago H. de Paula Figueiredo
On Tue, 15 May 2012 16:22:50 -0300, George Christman wrote: So you can't dynamically get the field id's like you can in mixens with ClientElement.getClientId Yes, but if you're not in a mixin, how do you know which field we're dealing? ;-) Maybe I just didn't understand your question, of

Add Tapestry validation to hidden element written with MarkupWriter

2012-05-15 Thread George Christman
//Sorry, I somehow split my example code. See code below. Hello, I have a component that has a markupWriter in it. I'm trying to figure out how to validate the hidden field created by the MarkupWriter. The field needs to be dynamically validated, so I'm using something like below to determine val

Add Tapestry validation to hidden element written with MarkupWriter

2012-05-15 Thread George Christman
Hello, I have a component that has a markupWriter in it. I'm trying to figure out how to validate the hidden field created by the MarkupWriter. The field needs to be dynamically validated, so I'm using something like below to determine validation requirements. page class @Inject private

Re: dynamic validation for required / not required

2012-05-15 Thread George Christman
So you can't dynamically get the field id's like you can in mixens with ClientElement.getClientId and use a single method? -- View this message in context: http://tapestry.1045711.n5.nabble.com/dynamic-validation-for-required-not-required-tp4422440p5710318.html Sent from the Tapestry - User maili

Tapestry 5.3.4-rc-2

2012-05-15 Thread Howard Lewis Ship
I've been working on some performance improvements for Tapestry; primarily, it is replacing the use of the synchronized keyword with ReentrantReadWriteLock on a few hotspots identified by Robert Lentz. He's already seen a near doubling of throughput in his load testing environment, and I've just p

Re: dynamic validation for required / not required

2012-05-15 Thread Thiago H. de Paula Figueiredo
On Tue, 15 May 2012 15:01:57 -0300, George Christman wrote: How could I use one method with multiple fields. Not sure how the method detects the client id. Use different methods for different fields with different logics. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5

Re: dynamic validation for required / not required

2012-05-15 Thread George Christman
I know this is a pretty old post, but had a question. How could I use one method with multiple fields. Not sure how the method detects the client id. @Inject private FieldValidatorSource source; @InjectComponent private Field contactName; @InjectComponent priv

Re: T5.3.1 How to show image modal dialog popup with prototype js?

2012-05-15 Thread Taha Siddiqi
Hi You can find some Prototype based alternatives at http://planetozh.com/projects/lightbox-clones/ also if you want to use jquery plugins, try http://tapestry5-jquery.com/. regards Taha On May 15, 2012, at 10:07 PM, wesleywj2 wrote: > hi, > > i have a page with few thumbnails, each thumbna

T5.3.1 How to show image modal dialog popup with prototype js?

2012-05-15 Thread wesleywj2
hi, i have a page with few thumbnails, each thumbnail when click will load a bigger image in modal window with close button on it, something like http://lokeshdhakar.com/projects/lightbox2/ lightbox 2 but it uses jquery, i would like to use prototype/scriptaculous to solve this since its alread

Re: Feature request: SymbolSource.getSymbolNames()

2012-05-15 Thread Lance Java
Searching jira for "symbol AND name" didn't find an issue so I raised https://issues.apache.org/jira/browse/TAP5-1930 Cheers, Lance. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Feature-request-SymbolSource-getSymbolNames-tp5709886p5710156.html Sent from the Tapestry -

Re: T4: an official 4.1.7 build?

2012-05-15 Thread Howard Lewis Ship
I know I haven't looked at that code in nearly six years, but it would not be impossible to quietly create a release for it. On Mon, May 14, 2012 at 10:55 PM, Patrick Moore wrote: > Hi there -- > > We are using 4.1.7-SNAPSHOT because it has some fixes from the last > official build 4.1.6. Using t

Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Your encoder returns null both ways - that is probably the cause for your NPE. It is responsible for storing (and retrieving) the collection elements of the loop for the time between rendering and submit - returning null basically means that all eleme

Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread karthi
Sorry, Constants.PAGINATION_URL; public interface Constants { String PAGINATION_URL = "./"; } -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-send-the-selected-button-value-from-tml-page-to-corr-java-page-tp5709890p5710046.html Sent from the Tapestry

Re: Feature request: SymbolSource.getSymbolNames()

2012-05-15 Thread Thiago H. de Paula Figueiredo
On Tue, 15 May 2012 06:32:28 -0300, Lance Java wrote: I'm currently integrating DWR with Tapestry and I'd like to pass all of the "dwr.*" symbols from tapestry to DWR. Unfortunately, I can't find a public API to list all of the symbols and I need to hard code the possible symbol names a

Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 could you post your entire page (java + tml)? Am 15.05.2012 14:47, schrieb karthi: > I just interchanged this > > context="videoItem.position" defer="false" > t:value="${videoItem.name}" /> > > to > > defer="false" t:value="${videoItem.position}"

Re: Component with several bodies

2012-05-15 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ah, that makes sense. Thanks a lot! Am 15.05.2012 13:12, schrieb Taha Siddiqi: > Hi > > One way would be to use Block Parameters. > > (Warning: Code not tested) > > public class MyLayout { > > @Parameter(defaultPrefix = BindingConstants.BLOCK) @Pr

Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread karthi
I just interchanged this to now it correctly displays the position in the ui like below 0 1 2 3 4 and when I clicked any one of those it throws the following exception Failure reading parameter 'context' of component Index:toplevel: Property 'videoItem' (within property expression 'vid

Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread Taha Siddiqi
Hi As the expection says "Property videoItem is null" and so videoItem.position will cause an NPE. regards Taha On May 15, 2012, at 4:48 PM, karthi wrote: > Arno Haase, > > Thank you for your reply. > > I have changed the code to: > > defer="false" t:value="${videoItem.name}" /> > > pu

Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread karthi
I have worked with samples using that tree component, but I need this also to work.. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-send-the-selected-button-value-from-tml-page-to-corr-java-page-tp5709890p5709941.html Sent from the Tapestry - User mailing list arch

Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread karthi
Arno Haase, Thank you for your reply. I have changed the code to: public void onSelectedFromTopLevel(int position) { System.out.println("Selected button item is --> " + position); } but it throws the following error: An unexpected application exception has occurred. F

Re: Component with several bodies

2012-05-15 Thread Bob Harner
I don't think you'll be able to pass more than one body, but your layout component can accept any number of parameters, which can accept blocks. On May 15, 2012 7:01 AM, "Arno Haase" wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > It is straightforward to build a component that embed

Re: Component with several bodies

2012-05-15 Thread Taha Siddiqi
Hi One way would be to use Block Parameters. (Warning: Code not tested) public class MyLayout { @Parameter(defaultPrefix = BindingConstants.BLOCK) @Property private Block myBlock; @Inject private Block myDefaultBlock; Block defaultMyBlock(){ return myDefaultBlock; }

Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread Lance Java
Have you considered using the Tree component? Examples: http://jumpstart.doublenegative.com.au/jumpstart/examples/component/treebrowse http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/treefromdatabasewithzones -- View this message in context: http://tapestry.1045711.n5.nabble.com/H

Component with several bodies

2012-05-15 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It is straightforward to build a component that embeds a single body, using . I would like to extend that so that a component can have several bodies. For example, I would like to build a layout component that allows a page to contribute to the title

Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Using the context attribute is the way to go. It's plain 'context' and not 't:context', though. The context must be a primitive (or encoded as a primitive), so I would recommend you start by passing only the position value="videoItem.position" There

Re: How to send the selected button value from tml page to corr. java page

2012-05-15 Thread karthi
Anyone help me? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-send-the-selected-button-value-from-tml-page-to-corr-java-page-tp5709890p5709916.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: tapestry-push - proof of concept

2012-05-15 Thread Lance Java
No matter what you do, you will need a fake request and probably a fake response. Tapestry converts components to RenderCommands but they still point to their resources. For example, if you have an EventLink on in your block, it requires a Request object for it to render. -- View this message in c

Re: tapestry-push - proof of concept

2012-05-15 Thread xieweiguo
Yes , you are right ,maybe using ComponentEventRequestHandler is the best way now . But I wish that the next version of tapestry will provide some service to render html more easily.^_^ The AjaxComponentEventRequestHandler is the key of partial-rendering , maybe I should spend much more time to

Feature request: SymbolSource.getSymbolNames()

2012-05-15 Thread Lance Java
I'm currently integrating DWR with Tapestry and I'd like to pass all of the "dwr.*" symbols from tapestry to DWR. Unfortunately, I can't find a public API to list all of the symbols and I need to hard code the possible symbol names and try/catch RuntimeException around SymbolSource.valueForSymbol(s

Re: mixin with t:datefield bug?

2012-05-15 Thread sommeralex
thanks for the answers! my dirty approach was to set the visibility just via a property. -- View this message in context: http://tapestry.1045711.n5.nabble.com/mixin-with-t-datefield-bug-tp5709435p5709863.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: mixin with t:datefield bug?

2012-05-15 Thread Lance Java
This sounds like the same problem that the RenderInformals mixin has (jira here https://issues.apache.org/jira/browse/TAP5-1918) I wonder how many mixins suffer from this problem. -- View this message in context: http://tapestry.1045711.n5.nabble.com/mixin-with-t-datefield-bug-tp5709435p5709859.

Re: tapestry-push - proof of concept

2012-05-15 Thread Lance Java
You might find http://tapestry.apache.org/5.3/apidocs/src-html/org/apache/tapestry5/internal/services/AjaxComponentEventRequestHandler.html this code interesting -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-push-proof-of-concept-tp5697644p5709846.html Sent fro

Re: tapestry-push - proof of concept

2012-05-15 Thread Lance Java
The tapestry request processing pipeline is quite complicated and as you get further down, it becomes less of a "black box" and you must know more of it's internals ("white box"). There is a great diagram at the bottom of http://tapestry.apache.org/request-processing.html this page. One thing to