Script component locality of definition

2007-11-12 Thread Ken nashua
Folks, I have ParentTemplate.html and ChildTemplate.html ChildTemplate is a tapestry Component ChildTemplate happens to exercise tapestry script and has a respective ChildTemplate.script QUES: Where should I place the @Script definition... in ParentTemplate or ChildTemplate ? I

RE: Script component locality of definition

2007-11-12 Thread Ken nashua
The reason why I am asking this... is because then I specify the @Script definition in the parent, the javascript code gets rendered properly in the initialization of the body and just near the actual widget markup. If I specify the @script definition in the child, no scripting gets rendered

RE: Script component locality of definition

2007-11-12 Thread Ken nashua
Just another tidbit... The parent is actually Home.html I guess I am wondering why the Script component is not rendering when specified deeper beyond Home.html Are there limitations?Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Script component locality of

IJSONRender usage

2007-11-05 Thread Ken nashua
Hi, Is the usage of IJSONRender required to be within the context of an org.apache.tapestry.dojo.form.AbstractFormWidget derivative or a org.apache.tapestry.form.AbstractFormComponent derivative ? I am considering just using it in a widget that operates links... no form... meaning... I

Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
Folks, I am using simple div/span... no form. When I attempt to index an element is showing undefined. 1. document.forms[0] produces my form alright and it has a name BUT document.forms.${myFormName} produces undefined at runtime ? Why the lapse ? myFormname equates to the

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
I have read over and over these docs... http://tapestry.apache.org/tapestry4.1/ajax/basics.html http://tapestry.apache.org/tapestry4.1/components/general/script.html http://tapestry.apache.org/tapestry4.1/faq.html#script-component Including Kent Tongs doc on scripting which is solely focused

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
correction... BUT document.forms.${myFormName} produces undefined at the above works... But if I have a DIV or SPAN above in a containing html file I am unable to assign a name to it or dereference it in the document object. clarification on how to dereference and assign output data to these

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
Someruntime output... input-symbol key=theWidget class=org.trails.demo.components.Gallery required=yes/ input-symbol key=theTableSize required=yes/ let key=galleryFormdocument.forms[0]/let let key=galleryFormIddocument.forms[0].id/let let key=tableWidth

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
Attached is the modules in question... My tableSize parameter is specified in Home.html along with the component. I am able to dereference the form and get/set the value of the select component. I guess I want to get the value of the select and assign it to the ognl property of my

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
more clarification... alert(document.forms.tableSizeSelect.value); ${theWidget.tableSize} = document.forms.tableSizeSelect.value; why is the above assignment not possible? Inside the widget I have tableSize declared as a Parameter. This poses a dereferencing dilemma as ${theWidget.tableSize}

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
corrected syntax... forgot form name The alert works... alert(document.forms.galleryForm.tableSizeSelect.value); The assignment does not. ${theWidget.tableSize} = document.forms.tableSizeSelect.value; This is what the assignment parses to... 2 =

@Script Component docs - clarification please

2007-10-29 Thread Ken nashua
Folks, Can someone please elaborate on this T-4.1.3 documentary... http://tapestry.apache.org/tapestry4.1/components/general/script.html Components within a Script's body may access the input and output parameters of the Script via the OGNL expression components.scriptId.symbols.name.

RE: @Script Component docs - clarification please

2007-10-29 Thread Ken nashua
According to FAQ .value notation is legal ? input-symbol key=theWidget class=org.trails.demo.components.Gallery required=yes/ input-symbol key=theTableSize required=yes/ let key=tableWidth unique=yes${theWidget.tableWidth}/let let key=tableSize unique=yes${theWidget.tableSize}/let So..

who needs JSON or AJAX ?

2007-10-26 Thread Ken nashua
Folks, I am operating the @Script component and the scripting features tapestry offers for components to facilitate surgical portions of javascript specific to particular components that reflect, mirror, and persist properties off of java objects or java components from the client side to

widget recommendation request

2007-10-18 Thread Ken nashua
Folks, I have a widget that extends from Image and automates a temporary surrogate image if the image happens to be blank. public abstract class MimedImage extends Image No forms... no templates... no html. Just a pure java tapestry widget. And it also fixes up mime properties too. In

script component usage

2007-10-18 Thread Ken nashua
Folks, Can someone provide clarity about usage of @SCRIPT I have used this component successfully with my CustomHead.JAVA which is a @Shell extension... and obviously this KIND of logic/code lives right around the @Body component + html body tag But I want to design/implement some

RE: Does tapestry need an IntegerPropertySelectionModel ?

2007-10-15 Thread Ken nashua
Hi Jesse, Did this weekends checkins for OGNL address this? Just curious. Thanks if you got time to reply. Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: RE: Does tapestry need an IntegerPropertySelectionModel ? Date: Fri, 12 Oct 2007 15:34:05 -0400

RE: Does tapestry need an IntegerPropertySelectionModel ?

2007-10-15 Thread Ken nashua
Just some feedback...Nothing works with latest OGNL build.Best regardsKen in nashuan exception has occurred. You may continue by restarting the session. [ +/- ] Exception: Unable to update OGNL expression 'parsed OGNL expression' of [EMAIL PROTECTED]/galleryWidget] to 3: Binding

RE: Does tapestry need an IntegerPropertySelectionModel ?

2007-10-15 Thread Ken nashua
I am re-testing this... Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: RE: Does tapestry need an IntegerPropertySelectionModel ? Date: Mon, 15 Oct 2007 12:09:28 -0400 Just some feedback...Nothing works with latest OGNL build.Best regardsKen in

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-12 Thread Ken nashua
Thanks josh... couple more ques... Do I point eclipse to the sources from my local repo (zipped) or to SVN folder? Also, there is this -Djavassist-write-dir=target/classes Where do I set this up... and is the above configuration valid ? I put it in my window/preferences/java/installedjre's

Re: how to translate input into double/float value

2007-10-12 Thread Ken nashua
Nick, For a PropertySelection component housing strings... am I free to perform OGNL arithmetic on those elements if they happen to be numeric strings? I am wondering if I need a translator or if it is illegal to perform ognl arithmetic on PropertySelection strings that happen to be 1, or 2..

Re: T4.1.2 and 3: Mysterious stack trace ??

2007-10-12 Thread Ken nashua
Dude, The issue is in your code trust me (now I wish I could say the same about my code). Your referencing an OGNL variable with wrong case or something like that or semantically it is not constructed properly in order to follow thru with the processing. What is happening is the OGNL

Persistent properties may only be changed prior to the rendering of the response page

2007-10-12 Thread Ken nashua
What is the solution for initializing a persistent property in T-4.1.3 Can someone elaborate on this? Seems to go back to 2005 and remains an issue... http://mail-archives.apache.org/mod_mbox/tapestry-users/200509.mbox/[EMAIL PROTECTED] Thanks in advance... Best regards Ken in nashua

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-12 Thread Ken nashua
Thanks josh... couple more ques... Since I already have tapestry imported to my workspace... I am questioning the need to tell my project where the sources are. They are already imported to the workspace. Also your manner in which to tell eclipse where the sources is unclear... do I

Does tapestry need an IntegerPropertySelectionModel ?

2007-10-12 Thread Ken nashua
I am trying to operate a PropertySelection that uses an array of strings but their content are numbers. private static final String[] tableSizeOptions = new String[] { 1, 2, 3 }; I am assuming OGNL is smart enough to coerce these during render cycle on IF conditions that attempt

RE: Does tapestry need an IntegerPropertySelectionModel ?

2007-10-12 Thread Ken nashua
Thanks Jesse... I will give your stuff a shot... but am already building/trying an IntegerPropertySelectionModel right now to see if it induces the proper coercian. I am happy to try any new builds/patches you submit. It would be nice to know when it happens. Thanks for your patience. Best

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua
Hi Nick, Attached is my Home.html... Home.java The other modules are original as posted yesterday the same. I basically specified the parameter bindings in the template at the widget definition. The select component keeps punching back to 1 when I attempt to change. I even added

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua
An exception has occurred. You may continue by restarting the session. [ +/- ] Exception: Unable to parse OGNL expression '(index % tableSize) == 0': For input string: tableSize

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua
An exception has occurred. You may continue by restarting the session. [ +/- ] Exception: Unable to update OGNL expression 'parsed OGNL expression' of [EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1 (StaticBinding[1]) may not be updated.

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua
An exception has occurred. You may continue by restarting the session. [ +/- ] Exception: A binding for parameter 'value' of component Home/galleryWidget.tableSizeSelect in the template for Home/galleryWidget conflicts with an existing binding in the specification.

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua
Well I finally got something to stick... property name=tableSize persist=session/ property name=pagingSpan persist=session/ I eliminated all references from Home.html since these parameters are self contained inside Gallery widget... why pollute the upper level container component and

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua
Attached is the markup. It indicates no collision on ID's. The actual select ID for the header Block is taken from the JWC file. Subsequent select ID modeled for subsequent RenderBlocks of the same Block are auto-generated. So it remains a mystery as to WHY one is updating the other when both

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua
Attempts to model the solution below using @Persist in the JAVA defaulting to session never worked. Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION Date: Thu, 11 Oct 2007 12:40:18 -0400

how to tell one component to update another

2007-10-11 Thread Ken nashua
Folks, In T-4.1.3, is there support for components to auto update each other onChange? text, select, radio ? For instance, 2 select components modeled identically with @Block and rendered with @RenderBlock (how can one update the other onChange?) Best regards Ken in nashua

RE: propertyselection not cached

2007-10-11 Thread Ken nashua
Thanks James, That seems like a viable concern (parameter names versus component id's). I segregated them by postpending PARM to all my parameter names. No relief so I am kinda stuck. form jwcid=[EMAIL PROTECTED] listener=listener:onFormSubmit div jwcid=[EMAIL PROTECTED]

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-11 Thread Ken nashua
Josh, I checked out 4.1.3 and built/deployed/installed it to my local repo. Then I re-generated all the eclipse projects for this 4.1.3 tapestry and imported them into my workspace. How do you integrate tapestry source step/debugging into eclipse? When I set a breakpoint on a source module,

parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Ken nashua
Folks, I have been chasing my tail trying to get a simple parameter to work. I am 2 years tapestry and developed parameters for quite sometime. Can someone confirm this as bug or present a solution? This is what I have... Gallery.JAVA public abstract class Gallery extends BaseComponent {

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Ken nashua
An exception has occurred. You may continue by restarting the session. [ +/- ] Exception: Unable to update OGNL expression 'parsed OGNL expression' of [EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1 (StaticBinding[1]) may not be updated.

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Ken nashua
This guy has the same issue days ago... http://article.gmane.org/gmane.comp.java.tapestry.user/53716 Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION Date: Wed, 10 Oct 2007 11:51:35 -0400

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Ken nashua
Since I am using a simple non-boolean single-select... Can I still use the StringProeprtySelectionModel and operate OGNL arithmetic on the integer strings (assuming they will coerce properly)? Or do I have to implement a OptionRenderer for Integer? Thank you for any light on this issue.

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Ken nashua
I decided to model T-4 examples and it still produces exception private static final String[] tableSizeOptions = new String[] { 1, 2, 3, 4, 5, 10, 25, 50, 100, 500, 1000, 2500, 5000, 1, 25000, 5 }; private static final String[] pagingSpanOptions = new String[] { 5,

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Ken nashua
I tried... @Override protected void prepareForRender(IRequestCycle cycle) { super.prepareForRender(cycle); setCollection(loadCollection(getCollectionType())); if (getTableSize() == null) setTableSize(tableSizeOptions[0]); if

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Ken nashua
An exception has occurred. You may continue by restarting the session. [ +/- ] Exception: Unable to update OGNL expression 'parsed OGNL expression' of [EMAIL PROTECTED]/galleryWidget] to 2: Binding with value 1 (ExpressionBinding[Home/galleryWidget 1]) may not be updated.

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Ken nashua
An exception has occurred. You may continue by restarting the session. [ +/- ] Exception: Unable to parse OGNL expression '(index % tableSize) == 0': / by zero org.apache.tapestry.BindingException

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Ken nashua
If tableSize is != 0 (according to OGNL condition check) then how is OGNL letting it get in? An exception has occurred. You may continue by restarting the session. [ +/- ] Exception: Unable to parse OGNL expression '(index % tableSize) == 0': / by zero

RE: parameter binding broken in T-4.1.* - PROPERTYSELECTION

2007-10-10 Thread Ken nashua
Folks, I have attached all my modules to this Gallery Widget. Can someone comment on a solution? Here are the issues... 1. OGNL cannot do arithmetic on tableSize due to divide by ZERO. My blocker to prevent exception is check for null but thats not a solution. 2. Parameters are not updatable

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
Can anyone explain why this code renders only the true case? It is as if the ELSE does not even work. span jwcid=[EMAIL PROTECTED] source=ognl:collection value=ognl:currentObject index=ognl:index span jwcid=@If condition=(ognl:index % 3)) == 0 tr tdtrue case/td

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
Richard... that worked... (or at least the condition is functioning). Thanks. BUT... Only half the rows contain 2 elements. So the logic is working only half way. To get this proper, there needs to be a startOfRow condition and an endOfRow condition. Can anyone elaborate on a formula for

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
OK given 9 elements... 0 1 2 3 4 5 6 7 8 9 Here is the case logic... 1. I need to render a TR on the 1st of every 3rd. 2. I need to render a /TR on 3rd of every 3rd I am not sure if ognl:(index % 3) == 0 even qualifies for any of these but I need two cases. Best regards

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
I guess I am trying to determine what the two conditions are for rendering. There is a startOfRow TR condition and then an endOfRow /TR condition. Thanks for any tips. Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: RE: does T-4.1.* have a COUNT

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
I am giving this a shot... tr span jwcid=[EMAIL PROTECTED] source=ognl:collection value=ognl:currentObject index=ognl:index span jwcid=@If condition=ognl:(index % 3) == 0 /trtr /span td

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
Ok, now I have the template PARSE problem... on the /trtr line... this is what ROB was referring to in earlier post. Why hasn't tapestry fixed this? Is there a way around it? tr span jwcid=[EMAIL PROTECTED] source=ognl:collection value=ognl:currentObject index=ognl:index span

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
Ok, I am trying this now... hopefully it will work... tr span jwcid=[EMAIL PROTECTED] source=ognl:collection value=ognl:currentObject index=ognl:index span jwcid=@If condition=ognl:(index % 3) == 0 /trtr td/td /span span jwcid=@Else

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
I will try that Rob... so your saying I do not need the ELSE component? Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: RE: does T-4.1.* have a COUNT component? Date: Tue, 9 Oct 2007 10:36:01 -0400 Ok, I am trying this now... hopefully it will

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
Thanks Rob... I got it to work... here is the template logic. tr span jwcid=[EMAIL PROTECTED] source=ognl:collection value=ognl:currentObject index=ognl:index span jwcid=@If condition=ognl:(index % 3) == 0 span jwcid=@Insert value=/trtr raw=true/ td

PropertySelection component - automatic submit

2007-10-09 Thread Ken nashua
Folks, Is there a way to get a PropertySelection component to automatically submit on selection event (I think it's onChange). My javascript has no effect... onChange=javascript:document.GalleryForm.submit() Best regards Ken in nashua

ognl requirements on documented components

2007-10-09 Thread Ken nashua
Folks, I understand of an existing ognl issue whereby SETTER methods are required. In tapestry documentation... http://tapestry.apache.org/tapestry4.1/components/form/propertyselection.html Example 1, shows getGender() Do we now need to implement a setter method in order for this to be air

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
Just one final help ques... I switched to PropertySelection my condition now always yeilds a divide by zero exception. Since my propertlselection is strings... how do i model my condition now? condition=ognl:(index % tableSize) ??? span jwcid=[EMAIL PROTECTED] table width=100% border=1

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
Here is my static model... (just strings of numbers) public static final IPropertySelectionModel tableSizeModel = new StringPropertySelectionModel(new String[] { 1, 2, 3, 4, 5, 10, 25, 50, 100, 500, 1000, 2500, 5000, 1, 25000, 5 }); Then I set it up during initialize

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
oops... bad init call This I think will fix it... setTableSize(tableSizeModel.getOption(0).toString()); Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: RE: does T-4.1.* have a COUNT component? Date: Tue, 9 Oct 2007 14:12:23 -0400

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua
Folks, I still cannot get any coercian on this propertyselection Can anyone elaborater on whats going on? Aren't we suppose to use this as-is in OGNL? span jwcid=@If condition=ognl:(index % tableSize) == 0 My condition keeps causing this exception... For input string: tableSize

propertyselection not cached

2007-10-09 Thread Ken nashua
Folks, I have a propertyselection component rigged with 1,2,3,4,5... Everytime I select from my propertyselection... the this.form.submit() listener gets called... but my property gets reset. Nothing sticks... Gallery.JAVA public IPage onFormSubmit (IRequestCycle cycle) { IPage

is not bound and can not be updated or BINDINGEXCEPTION ?

2007-10-09 Thread Ken nashua
Folks, I am thrashing back and forth from is not bound and can not be updated exception to a BindingException Originally the app is runnable with public abstract String getTableSize(); public abstract void setTableSize(String tableSize); public abstract String getPagingSpan();

RE: is not bound and can not be updated or BINDINGEXCEPTION ?

2007-10-09 Thread Ken nashua
This is tapestry-101 stuff... and I am still wrestling with it. I decided to use @Persist instead of @Parameter and now I get An exception has occurred. You may continue by restarting the session. [ +/- ] Exception: Error: Change to persistent property tableSize of

RE: is not bound and can not be updated or BINDINGEXCEPTION ?

2007-10-09 Thread Ken nashua
This could be the reason why... @Override protected void prepareForRender(IRequestCycle cycle) { super.prepareForRender(cycle); setCollection(loadCollection(getCollectionType())); if ( getTableSize() == null )

Re: T4 Custom Component Questions

2007-10-09 Thread Ken nashua
Hi Norm, Below is text from a CustomHead I wrote. It does header/splash/icon images for appfuse css-framework. Integrated to trails features I developed of course. It will give you some insights for the shell derivative. I am a trails developer. So anything trails you might want to tailor.

RE: T4 Custom Component Questions

2007-10-09 Thread Ken nashua
Here's what you'll see in the markup... !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; script type=text/javascriptdjConfig =

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua
Thanks Martino but FOR does not cut it. It blindly iterates a collection from 0..N. I need a component with which I can manipulate the front end starting index and jump out break at a specified numeric index. Example: I have a list of 100 . Now I want to render trtd/td/tr and show 7 elements

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua
martino I am already using the FOR component on my list. I have a select component that sets a tableSize at the top of page for a list==100. If tableSize = 10, then I want to render 10 items within a TR/TR And continue until the list is exhausted. Then I will see 10 rows. Right? FOR does not

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua
I can whip off a solution in JSP while I am typing... span jwcid=[EMAIL PROTECTED] source=ognl:collection value=ognl:currentObject index=ognl:index % for ( int i = 0; i 3; i++) spit out TRTD.../TD/TR % /span Why is it so hard to do such a fundamental thing in

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua
Thanks Bob but I need to span the whole list. Thanks Andy but I how do I cause a for loop to iterate N iterations independent of any collection? I guess I am looking for static iteration independent of any collection. I am inheriting from baseComponent so I am not inclined to do this as a

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua
All I am looking for is a Loop component. Tap-4.1.2 has none. Unless someone wants to point it out and skip all the heck. Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: RE: does tapestry 4.2 have an iterator component Date: Mon, 8 Oct 2007 12:05:46

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua
tassle component LOOP is for 3.0. No indicator it is for T-4.1.2 Still blue in the face,.,.,. Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: RE: does tapestry 4.2 have an iterator component Date: Mon, 8 Oct 2007 12:51:17 -0400 All I am

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua
Andy, I will give that IntIterator a try... but I have a parameter in OGNL called tableSize. How do I pass this into the IntIterator constructor? source=ognl:new IntIterator(1,ognl:tableSize) ? thanks for helping Best regards Ken in nashua From: [EMAIL PROTECTED] To:

RE: does tapestry 4.2 have an iterator component

2007-10-08 Thread Ken nashua
How do I resolve contention over INDEX on the nested loop? If I refer to INDEX... is it inner or outer? span jwcid=[EMAIL PROTECTED] source=ognl:collection value=ognl:currentObject index=ognl:index span jwcid=[EMAIL PROTECTED] source=ognl:new IntIterator(1,100) index=ognl:index /span

does T-4.1.* have a COUNT component?

2007-10-08 Thread Ken nashua
Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices between collection and loop. All I want to do is increment a count within the template and act on it when it reaches a certain value and then reset it. IE. render TR tag every 3 iterations of my outer For loop. Does

RE: does T-4.1.* have a COUNT component?

2007-10-08 Thread Ken nashua
Although I appreciate the attempts to solve, I disagree with all solutions and am disheartened. This capability should be available gracefully without having to touch any java. Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: does T-4.1.* have a COUNT

How to coordinate two renderBlock instances as one

2007-10-05 Thread Ken nashua
Folks, I am doing a Gallery widget... it is rendering now with output. See attached... I have a quirky question here... I have a BLOCK declaration span jwcid='[EMAIL PROTECTED]' span jwcid='@Insert' value='Table Size'/ select jwcid='[EMAIL PROTECTED]' span

Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
Folks... per doc text that follows... 1. Components that inherit from BaseComponent will use an HTML template. 2. Components that inherit from AbstractComponent will render output in Java code, by implementing method renderComponent() . I would like to build a component that operates combined

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
If it means anything... I am designing a Gallery.HTML here is my component layout... -- auto-paging -- content -- auto-paging -- 1. auto-paging just operates auto-paging buttons top/bottom just

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
Here is another case... I can set up listener handlers easily via template. In JAVA, I have to become on keyboard tapestry and determine what the proper javascript:... () notation is for the rendering output... and hope it will work? ID's ? guesswork? Sorry nah uh. I am seeing that

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
Hi Martino... the component I need to extend from is AbstractFormWidget, as part of the demo Jesse made. import org.apache.tapestry.dojo.form.AbstractFormWidget; It is not part of the BaseComponent hierarchy and does not support the processing of templates. he uses it in AutoCompleter and

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
Hi Martino... Referring to your suggested RenderBlock usage... Is the @RenderBlock specified from within the template or within the JAVA? How would I rig up a listener=listener:edit within the JAVA? I appreciate your help and just trying to grasp the concept of what can be

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
Thanks Martino... I am still confused... The action handlers for each auto-paging button (or link) needs to dispatch to a handler. Handlers are normally assigned in forms. Here is the layout of the auto-paging links 1 2 3 4 5 6 7 8 9 10 content goes here

How to render template inside a component

2007-09-24 Thread Ken nashua
Folks, I have a template in html that is a makeup of tapestry and html markup... Markup is below... I want to render it inside my component as the body. Does tap-4.1.2 support this? I'd hate to have to convert it all to JAVA. Inside my protected void renderComponent(IMarkupWriter

RE: How to render template inside a component

2007-09-24 Thread Ken nashua
Tried this in my Home.html... Tag span on line 10 is a dynamic component, and may not appear inside an ignored block. org.apache.tapestry.parse.TemplateParseException Tag span on line 10 is a dynamic component, and may not appear inside an ignored block. location:

RE: How to render template inside a component

2007-09-24 Thread Ken nashua
Here is my Home.html span jwcid=[EMAIL PROTECTED] div jwcid=@custom:Gallery classType=ognl:@[EMAIL PROTECTED] tableSize=ognl:tableSize span jwcid=@RenderBody/ /div /span My Gallery.JAVA gets called... But my Gallery.html gets ignored. How can I get this thing to

RE: How to render template inside a component

2007-09-24 Thread Ken nashua
Another issue is I am extending from public abstract class Gallery extends AbstractFormWidget So I can leverage JSON and Script... like AutoComplete widget This guy is not a BaseComponent... and will not leverage the template. Am I locked out from operating a template now? Jesse, can you

can someone explain rewinding in tapestry

2007-09-20 Thread Ken nashua
Whoever decided to use this terminology is assuming it is easy to conceptualize. Given all aggregations and context pushes/pops... Identfying all the hierarchies that apply would be a first. Topology? Could someone please explain in a more understandable manner the concept of rewinding in

Re: how to tile/stretch a header image in css

2007-09-04 Thread Ken nashua
Ok, so how does one instrument the usage of css3 thanks _ Get a FREE small business Web site and more from Microsoft® Office Live! http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/

Re: JavaScript *.js, *.script - not showing up in markup

2007-09-04 Thread Ken nashua
Thanks Friend... completer was extra text taken from the autocompleter example... extraneous... let key=completer unique=yes I can put it in... should I... I am still trying to interpret this new framework for scripting. Below is what I have so far... any thoughts? Best regards Ken in

Re: JavaScript *.js, *.script - not showing up in markup

2007-09-04 Thread Ken nashua
Still no rendering... on markup of this script. ? Any ideas... Best regards Ken in nashua CustomHead.script -- ?xml version=1.0 encoding=UTF-8? !DOCTYPE script PUBLIC -//Apache Software Foundation//Tapestry Script Specification 4.0//EN

Re: JavaScript *.js, *.script - not showing up in markup

2007-09-04 Thread Ken nashua
Well... heck... thats what I am looking for. I didn't know it had to be included in the template. Thanks for pointing that out. I will give that a shot. Best regards Ken in nashua CustomHead.script -- ?xml version=1.0 encoding=UTF-8? !DOCTYPE script PUBLIC

Re: JavaScript *.js, *.script - not showing up in markup

2007-09-04 Thread Ken nashua
I thought by including it in the JWC file it would be taken care of. Best regards Ken in nashua CustomHead.script -- ?xml version=1.0 encoding=UTF-8? !DOCTYPE script PUBLIC -//Apache Software Foundation//Tapestry Script Specification 4.0//EN

Re: JavaScript *.js, *.script - not showing up in markup

2007-09-04 Thread Ken nashua
Andy, Regarding the ID in the script... who initiates that? Is it suppose to be a parameter in my java module? I am wondering where If at all I need to specify... or if there is a general way for tracking ID. I guess my usage of ID is just for my Customhead component... although I have not

Re: JavaScript *.js, *.script - not showing up in markup

2007-09-04 Thread Ken nashua
Andy, Below is my border.html... I am receiving NPE on ognl:components.headComponent Is that a valid usage of providing the input of my component/widget? It is declared at the top in my html tag ? BORDER.HTML span jwcid=@ScriptIncludes / html jwcid=[EMAIL PROTECTED]

Re: JavaScript *.js, *.script - not showing up in markup

2007-09-04 Thread Ken nashua
Well I cannot do anything with this script... getScript is failing java.lang.NullPointerException Stack Trace: org.apache.tapestry.util.xml.RuleDirectedParser.parse(RuleDirectedParser.java:122) org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java:112)

Re: JavaScript *.js, *.script - not showing up in markup

2007-09-04 Thread Ken nashua
Ok, I added abstract getScript()... to my component and others. I am receiving a parse exception... see bottom Can someone look at my script and tell whats wrong? SCRIPT FOLLOWS: ?xml version=1.0 encoding=UTF-8? !DOCTYPE script PUBLIC -//Apache Software Foundation//Tapestry Script

Re: how to tile/stretch a header image in css

2007-08-31 Thread Ken nashua
- From: Ken nashua [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: Tuesday, July 03, 2007 11:14 AM Subject: how to tile/stretch a header image in css Sorry folks if this does not belong in this group but I think it might. I have the following: div#header { color: black; clear: both

Re: how to tile/stretch a header image in css

2007-08-31 Thread Ken nashua
Evan thanks for the follow up... but things are not working. I am not sure I understood. Well I guess I did not understand how you semantically wanted things wrapped? then wrap that div with another div called headerContainer{}, use that to control layout positioning of your inner header

  1   2   3   >