Re: tapestry 4.0.2: How do I get a new page object?

2007-04-17 Thread Karthik N
You can instantiate a page by hand, but this will undermine the caching strategy of tapestry. My guess is, that you are better off rethinking your method of resolution. would you happen to know how i could achieve that? my requirement might not necessarily undermine tapestry's caching strategy

Re: tapestry 4.0.2: How do I get a new page object?

2007-04-17 Thread Karthik N
affected hence we're looking for a way to create a new instance of the page even though the cycle might already have instantiated the page once before Thanks, karthik On 4/16/07, Christian Haselbach <[EMAIL PROTECTED]> wrote: Quoting Karthik N <[EMAIL PROTECTED]>: > I have a

tapestry 4.0.2: How do I get a new page object?

2007-04-16 Thread Karthik N
Hi, While I am in a page "Page1" listener method and when I execute the following code: newPage = currentPage.getRequestCycle().getPage("Page1" ); I find that newPage and this page are both the same object i.e. System.out.println( newPage == this ); evals to true I have a req

Re: For loop Rewind problem

2006-12-14 Thread Karthik N
yet another option on similar lines is to have display=none for a bunch of fields that are actually there in your HTML form and rendered via tapestry, but show up only when the user clicks on the button to add a row. ( of course that would mean that you cannot support "infinite" adds! ) On 12/14/

Re: For loop Rewind problem

2006-12-14 Thread Karthik N
also you can consider using Tacos if you're wed to tapestry 4.0.x On 12/14/06, Ron Piterman <[EMAIL PROTECTED]> wrote: Tapestry traces the rendered components and uses this info on rewind - its better not to temper with that. If you need JS magic, try using T41 - using Ajax this should be possi

Re: render a previously non-existing component on ajax submit

2006-12-13 Thread Karthik N
have an enclosing Form 1 here Form 2 here and updateComponents will update twoForms On 12/13/06, karthik G <[EMAIL PROTECTED]> wrote: I have one page in my application. I want to display a panel/form (FORM-1) in the page that allows user to do ajax submit. Once t

Re: need "please wait" notice for slow loading pages

2006-12-07 Thread Karthik N
len, on your blog can you please post a screen shot of how the "Please wait" component display looks? Thanks

Re: wysiwyg editor

2006-12-01 Thread Karthik N
http://lombok.demon.co.uk/tapestry4Demo/TestFCKeditor2.html http://lombok.demon.co.uk/tapestry4Demo/TestFCKeditor1.html On 12/1/06, Peter Schröder <[EMAIL PROTECTED]> wrote: http://tapestryjava.blogspot.com/2006/10/ezing-builder-wysiwyg-builder-for.html -Ursprüngliche Nachricht- Von

Re: Checkbox in table (non-contrib)

2006-11-26 Thread Karthik N
1. if you can modify your pojo have a boolean isChecked in it which you can wire to the checkbox in your for loop 2. if not, wrap a DTO around your pojo which has this boolean 3. during the rewind cycle the checked boolean will be set 4. in your listener method you can iterate through the List tha

Re: Adding rows with javascript

2006-11-24 Thread Karthik N
On 11/24/06, jiju <[EMAIL PROTECTED]> wrote: Tacos & Ajax call seems a good solution, but these hidden fields also needed to be updated using updateComponents ? No need and one more query, is HTTPRequest available in page class ? get it through the cycle in the listener

Re: Adding rows with javascript

2006-11-24 Thread Karthik N
tapestry is not aware of your new form fields. if you use firebug you'll find that these fields don't figure in the "hidden" field that tapestry uses to keep track of its meta-info used for render/rewind. one way to solve this problem is to use Tacos and make an Ajax call. another way is to loo

Re: How to share hivemind registry between HiveMindFilter an ApplicationServlet?

2006-11-19 Thread Karthik N
can you share the steps and snippets from the config and web.xml files and other steps? On 11/19/06, Nick Evgeniev <[EMAIL PROTECTED]> wrote: Hi, I've solved the problem by switching to spring. It's too strange (after experience with hivemindfilter+applicationservlet) but spring tapestry inte

Re: handle on component's enclosed components

2006-11-17 Thread Karthik N
Look at the API docs http://tapestry.apache.org/tapestry4/tapestry/apidocs/index.html AbstractPage has getNestedComponent AbstractPage extends AbstractComponent that has getComponents() HTH On 11/17/06, Mike Oestereter <[EMAIL PROTECTED]> wrote: Hi Say I've got the following on a template

Re: Q: Tapestry 4.0.2 - Component containing a form containing a property selection fails on submit

2006-11-16 Thread Karthik N
we do a lot of this PropSel refreshes using Tacos and AjaxEventSubmit. HTH. On 11/16/06, Erik Husby <[EMAIL PROTECTED]> wrote: On Nov 15, 2006, at 8:58 PM, Karthik N wrote: > erik, > > from what i understand you have > > Custom Component -> contains Form -> c

Re: Q: Tapestry 4.0.2 - Component containing a form containing a property selection fails on submit

2006-11-15 Thread Karthik N
erik, from what i understand you have Custom Component -> contains Form -> contains PropSel - when the PropSel changes, then its enclosing Form causes the submit. i have a suspicion this Form might be causing your Custom Component not to rewind and hence probably the Custom Component never

Re: dialog problem in the latest 4.1.1 snapshot

2006-11-15 Thread Karthik N
Jesse, you rock! What I love about tapestry - 2 Books - TIA, EWDT4, and a small forum with experts on it. Just the right recipe for a wonderful framework :-) Thanks, Karthik

Re: Question regarding Block/RenderBlock

2006-11-09 Thread Karthik N
Hi Navin, You are right. That is exactly my doubt/question. How do OGNL bindings work for nested components inside a Block that is a part of a different page and NOT the page that is currently being rendered. Thanks, Karthik On 11/9/06, B.S.Navin <[EMAIL PROTECTED]> wrote: Hi Firas, I thin

Re: Question regarding Block/RenderBlock

2006-11-07 Thread Karthik N
o this: This is off the top of my head, so the syntax might not be exactly correct, but you get the general idea I hope. Hope that helps! On 11/6/06, Karthik N <[EMAIL PROTECTED]> wrote: > Hello, > > "RenderBlock does not mandate that the Block being rendered be > cont

Question regarding Block/RenderBlock

2006-11-06 Thread Karthik N
Hello, "RenderBlock does not mandate that the Block being rendered be contained within the page being rendered" I have seen this statement at so many places - but I am looking for an example/explanation of how to do it. Any pointers? Thanks, Karthik

Re: use unique id's generated by tapestry

2006-11-04 Thread Karthik N
yes i did use idPath for the hidden field. but i'm using tapestry 4.0.2 - could that be the reason i'm seeing different results than you are? On 11/5/06, Patrick Moore <[EMAIL PROTECTED]> wrote: did you assign the hidden field's id using idPath? Also I am using the 4.1.1 SVN build. I am havi

Re: Re: How can I pass a component as a parameter to my custom component

2006-11-03 Thread Karthik N
Sam is right. is correct We have used this before and it works well. On 11/3/06, Sam Gendler <[EMAIL PROTECTED]> wrote: I've never actually done this, but I imagine that the following statement in the your .page file would pass an IActionListener to your components That might be "listen

prepareForRender or pageBeginRender - which one should i use?

2006-11-02 Thread Karthik N
Hi, I would like to do some initialization in a custom component that I'm writing up. I observe that I can do it in two ways: 1. Implement the PageBeginRenderListener and use pageBeginRender 2. Override prepareForRender My question is: Which one should I use? Thanks, Karthik

Re: Component won't remember value

2006-11-02 Thread Karthik N
glad it worked. i think one of the powers of tapestry is the ability to be able to tap into lifecycle methods, as also register listeners (like pageBeginRender) i don't have exact answers to your question "but is this optimal?" - it depends on what you want to do. if you want your component to

Re: Component won't remember value

2006-11-01 Thread Karthik N
you are setting the searchText on the Result page and not on the SearchComponent in the result page. since you have the searchText on the Result page you need to now "transfer" it to the SearchComponent in the result page. you can consider setting the searchText of the SearchComponent in the pag

Re: Call listener after page appears on screen

2006-10-26 Thread Karthik N
please try click() instead of onclick() On 10/26/06, Peter Beshai <[EMAIL PROTECTED]> wrote: Is there an easy way of calling a listener after the page appears (rendered) on screen? I couldn't think of one, and so I tried having adding an event to the onload of the page: dojo.event.connect(win

Re: Tacos and Javascript Function: which comoponent?

2006-10-26 Thread Karthik N
use a hidden field to set the output of your javascript function. this hidden field is bound to a tapestry property. that way it will get set in the rewind cycle. in order to cause a submit you can have a hidden AjaxSubmit button that you can cause a click() on after you've set the hidden prope

Re: IValidationDelegate.clearError() clears user input on form refresh

2006-10-25 Thread Karthik N
any user/password that can be used for voting? On 10/25/06, andyhot <[EMAIL PROTECTED]> wrote: Please vote for this issue... it might get resolved faster :) Karthik N wrote: > carlos, any solutions you found? > > Thanks, Karthik > -- Andreas Andreou - [EMAIL

Re: IValidationDelegate.clearError() clears user input on form refresh

2006-10-25 Thread Karthik N
carlos, any solutions you found? Thanks, Karthik

Re: Creating DirectLink using DirectService

2006-10-25 Thread Karthik N
out of sheer curiosity. when you programmatically create the direct link, how will you also create the associated HTML for the anchor tag, and bind that HTML to the DirectLink created? Can you post your code snippet once done, please?

Re: jwcid + id in html template = bad idea?

2006-10-18 Thread Karthik N
hi peter, we use both jwcid and id. so far it's been good for us. Thanks, Karthik

Re: Anybody know of any Tapestry pdf presentations?

2006-10-17 Thread Karthik N
see if you find anything useful here http://howardlewisship.com/downloads/ ( ... and let me know!)

Re: How do you add custom dojo widget?

2006-10-16 Thread Karthik N
peter - the first step would be to isolate the issue are you able to make this widget work without tapestry and with just plain vanilla HTML and dojo? if not, then that would be an excellent starting point. On 10/17/06, Peter Beshai <[EMAIL PROTECTED]> wrote: I am interested in using the dojo

Re: RE @Component ApplicationRuntimeException... Tap-4.1.1 help please (thanks)

2006-10-16 Thread Karthik N
Thanks for any tips... First Tip: Kindly don't change the subject of your message - email clients like Gmail don't show them in the same thread and it becomes really hard to follow.

Re: Confusion over persistent page properties and editing

2006-10-15 Thread Karthik N
it's more of an HTML thing than Tapestry - if a field is marked disabled - then it doesn't figure in the HTTP request that the Browser sends to the server. and hence tapestry in turn will not assign these values, as they're not part of the HTTPRequest at all. On 10/15/06, Jabbar <[EMAIL PROTECT

Re: Confusion over persistent page properties and editing

2006-10-14 Thread Karthik N
First things first: have a lot of System.out.printlns or log statements to see what's going on. Anyway, I observe that you have a dependency on this code to return a List succsessfully setChannelSetup(getCello6DAO().getChannelSetup(getCelloSerialNumber())); Have you verified that the DAO indee

Re: Propertyselection model not working during render cycle

2006-10-14 Thread Karthik N
you're not the only one - it takes time to get a hang of PropSelModel - but once the functionality of PropSel is clear, it's a breeze. by the way - HL Ship's tapestry in action has a really nice explanation of PropSel - worth a read. all the best. On 10/14/06, Jabbar <[EMAIL PROTECTED]> wrote:

Re: Propertyselection model not working during render cycle

2006-10-13 Thread Karthik N
jabbar, without looking too deep into your code, the reason why the 1st value is getting selected is because you've not got any value in the PropSelection that equals loggingRate. i'd suggest two things 1. put some SOPs in your property selection model methods - especially translateValue to pri

Re: Tap 4.0.2: How to enable Logging to log enhanced class source code??

2006-10-13 Thread Karthik N
Kind of answering my own question: log4j.logger.tapestry.enhance=DEBUG does the trick. I can see the enhanced source code being printed. The unanswered part for me, but more for academic interest is: How the log4j configuration translates to hivemind knowing to create a new Log object for the C

Tap 4.0.2: How to enable Logging to log enhanced class source code??

2006-10-12 Thread Karthik N
Hi, In my tapestry app I'm trying to figure how to log the code of the Enhanced class. I dug through the sources and found that in the EnhancementOperationImpl there is this statement: if (_log != null) _log.debug("Creating class:\n\n" + _classFab); EnhancementOperationImpl

Re: Ajax Double Combo example?

2006-09-25 Thread Karthik N
if you're on 4.1 do as jesse suggests. if you're on 4.0 then: 1. make sure your ajaxeventsubmit is declared BEFORE the combo boxes 2. make sure you got your event name right - this can be tried out by having a simple alert('hello world') to make sure the right even is in fact getting generated.

Re: Ajax Double Combo example?

2006-09-23 Thread Karthik N
in tacos have a look at ajaxevensubmit and hook it to the onchange of your combo boxes. On 9/23/06, Mark Helmstetter <[EMAIL PROTECTED]> wrote: Are there any examples of how to implement an Ajax enabled double combo box? Is there a component that supports this? I was hoping for something simp

Re: Override session expiration page

2006-09-22 Thread Karthik N
is that we have some logic in the page validate which relies on stuff in the HTTP session, and i want to catch the expiration before the page validate gets called any pointers? On 9/23/06, andyhot <[EMAIL PROTECTED]> wrote: Karthik N wrote: > follow the thread: Expired Session Message

Re: Override session expiration page

2006-09-22 Thread Karthik N
i've been reading up on this http://www.nabble.com/Asynchronous-form-submission-tf2253801.html#a6270976 follow the thread: Expired Session Message - nabble seems to have mixed 2 or 3 threads in 1. the gist, as i've gathered so far - you can create and register your own StaleSession page good l

Re: tapestry - session / form management

2006-09-22 Thread Karthik N
it appears your hibernate session is not getting flushed properly. are you using transaction boundaries? somehow even though your objects are getting dirtied the first time around, it is the second time dirty of the form field that's causing the hibernate session to flush/commit to the DB. On

Re: OT - [Tapestry-Users] - prefix in mail subject?

2006-09-21 Thread Karthik N
Sometimes visual scanning of the Email subject seems to help me a lot. But maybe it's just me ... On 9/21/06, James Carman <[EMAIL PROTECTED]> wrote: Can't you categorize based on the recipient? Gmail offers that as an option when filtering. -Original Message-----

OT - [Tapestry-Users] - prefix in mail subject?

2006-09-21 Thread Karthik N
Is there any way to set up the mails that go out prefixed with [Tapestry-Users] or something such? Just helps categorization of mails an easier tasks, visually. Thanks, Karthik

Re: Doubt about implementing Ajax request

2006-09-20 Thread Karthik N
you should look at the excellent Tacos framework to help you on this. It makes Ajax with Tapestry a breeze, thanks to some great work done. http://tacos.sourceforge.net/ in addition, if need be, you can look at Dojo and DWR to help you with Ajax. On 9/21/06, Daniel Castro <[EMAIL PROTECTED]>

Re: Custom Components

2006-09-20 Thread Karthik N
I personally pass the objects as parameters. One thing we find is that we "set out" planning to use a Custom component for one page alone, but very soon there are so many uses and variants, that it's always preferable for the component to be loosely coupled with the service layer. Which in other

Re: tapestry-acegi anon svn

2006-09-20 Thread Karthik N
I have the same issues with tapernate SVN. It's been more than a month but no luck!! :-( On 9/20/06, Robin Ericsson <[EMAIL PROTECTED]> wrote: Hi, Couldn't find a specific list for tapestry-acegi so I post this here. I can't seem to access the anonymous svn repository. All I can find is tha

Re: Multiple buttons for one form

2006-09-13 Thread Karthik N
sure, why not. look at chap 4 for ewdt4 section "Distinguishing which button was clicked" - there are several techniques On 9/13/06, Peter Dawn <[EMAIL PROTECTED]> wrote: guys, i am using tap3 and am trying to implement a form. however the user has the option to click on two buttons, dependin

Re: "Force" a nested TextField to render container's name prefix?

2006-09-11 Thread Karthik N
nent. Could someone please validate. On 9/11/06, Karthik N <[EMAIL PROTECTED]> wrote: Hi, I am using 4.0.2 It shows the id of the caller component for . So id is always got from the enclosing component even though name isn't. TextField.jwc has which means that the id param

Re: "Force" a nested TextField to render container's name prefix?

2006-09-10 Thread Karthik N
.. What's the output when CustomComponent.html is Karthik N wrote: > Hi, > > I have a scenario in which a custom component "wraps" a TextField > component. > > CustomComponent.html > > > > CustomCo

"Force" a nested TextField to render container's name prefix?

2006-09-10 Thread Karthik N
Hi, I have a scenario in which a custom component "wraps" a TextField component. CustomComponent.html CustomComponent.jwc textfield snippet: Page configuration of CustomComponent: i find that the underlying TextField id hon

Re: Dynamic Link

2006-09-06 Thread Karthik N
look at the popuplinkrenderer component. On 9/6/06, Nilesh <[EMAIL PROTECTED]> wrote: hi, I need to add dynamic link to Tapestry Page, which should open in a pop-up window. can any one please let me know how can i do this? Thanks A lot -- View this message in context: http://www.nabble.com/D

Re: Checking when application closes

2006-09-04 Thread Karthik N
look at your web server/app server documentation for http sessions and how they time out. On 9/5/06, Peter Dawn <[EMAIL PROTECTED]> wrote: ok. how can i implement a session time-out. - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Retrieving table column names

2006-08-30 Thread Karthik N
Why don't you consider using @PropertySelection and implement the IPropertySelectionModel which will wire up to your table columns. On 8/31/06, Peter Dawn <[EMAIL PROTECTED]> wrote: guys, i am running into this problem within my web app. please help me. i am using tap3. now i am retrieving co

Tapernate: session per conversation support ?

2006-08-30 Thread Karthik N
Hello All, We're really eager to adopt Tapernate for our Tap + Spring + Hibernate application. I have a few questions, that would help me understand Tapernate better: 1) any idea when the session-per-conversation support may be wired in? I remember seeing a thread where James had mentioned tha

Re: Html include? same header and footer for each page

2006-08-25 Thread Karthik N
look at the @Border component On 8/26/06, Josh Joy <[EMAIL PROTECTED]> wrote: Hi All, Newbie question...I would like to maintain the same header and footer for each page (basically simulate an include)...what is the recommended approach to doing this? Thanks in advance. Thanks, Josh

Re: Custom annotations lost on abstract methods on a page class

2006-08-25 Thread Karthik N
ation of the annotation at runtime is to walk up the class hierarchy and ask each superclass for the declared methods that correspond the abstract method and get its annotations. As far as I've found out, that works. Kind regards, Robert Karthik N schrieb: Hi, I'm trying t

Custom annotations lost on abstract methods on a page class

2006-08-25 Thread Karthik N
Hi, I'm trying to use custom annotations on tapestry abstract methods of a page class After tapestry creates the enhanced class for these abstract methods, the annotations are lost. The annotations are however honored on methods with an implementation. I'm wondering is this annotations not car

Re: [ANN] Tacos 4.0.0 released

2006-08-25 Thread Karthik N
Neither do Masks work on FF 1.5.0.6 Also, Tabs with no contents worked on my colleague's machine. On mine, the text flashes and then disappears, and I see no Tabs too. I am on FF 1.5.0.6 Mac OS X 10.4.6 On 8/25/06, Mael Caldas <[EMAIL PROTECTED]> wrote: The Masks, from Core Components doesn't

Tapestry 4.0.2 Custom ApplicationInitializers Firing Twice!

2006-08-24 Thread Karthik N
Hi, We have a custom set of HiveMind initializers that we're using with Tapestry 4.0.2. OgnlFixesInitializer belongs to a different module than DomainPackagesInitializer. It should be fired BEFORE DomainPackagesInitializer and hence we have the dependency configured. While deploying this on To

Re: Variable columns in Table Component

2006-08-23 Thread Karthik N
instead of hardcoding the value as :orderId, ? filename, ? size, ? !delete: :delete, ? !moveUp: :moveUp, ? !moveDown: :mov

Re: new solution for concurrent requests

2006-08-22 Thread Karthik N
yes, i would be very interested in the source code. On 8/22/06, Henri Dupre <[EMAIL PROTECTED]> wrote: We've been having many strange errors message in our logs and several synchronization errors on session objects (especially visit). Also users kept getting error pages when they were clicking

Re: it works!

2006-08-20 Thread Karthik N
i don't have an exact explanation till i view your source code. i'm glad it works, so maybe you can do some more research to see why the volatile makes the difference for the ticked/unticked issue of yours. your understanding of volatile is incorrect. in fact, with volatile="false" the For comp

Re: its working, but a problem

2006-08-20 Thread Karthik N
Hmm. rather bizzare. Can you try setting volatile="true" on the For component and see how it goes? http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/For.html On 8/20/06, zqzuk <[EMAIL PROTECTED]> wrote: Hi, thanks for your hints, and its working, generally, but i m stuck with

Re: tableRowsIterator nullPointerException

2006-08-18 Thread Karthik N
you would need to post the source of your IBasicTableModel for any further specific help. considering you're new to tapestry, i'd suggest a hardcoded implementaiton of IBasicTableModel first and then get spring/hibernate into the picture. On 8/18/06, anil <[EMAIL PROTECTED]> wrote: Hi I'm f

Re: Dojo Floating Pane to Render a Tapestry Page?

2006-08-18 Thread Karthik N
Will if your Page1 was like: Yes, I've used this before and it works very well. Unfortunately I need to render an entire existing page as-is, and I can't have a multi-window app!(customer requirement) :-(

Dojo Floating Pane to Render a Tapestry Page?

2006-08-18 Thread Karthik N
Hello, First-off apologies for the cross-post, but I figured I might get answers from either of the forums. I'm using Tap 4.0 and Tacos4 beta2. I already have a "FindPage" developed. I have this requirement where I have a Page 1. Inside Page 1, I have a Find button. On click of the Find but

Re: hi, is it possible to do this with tapestry...

2006-08-18 Thread Karthik N
based on when you submit, then the value from the check box will be automatically inserted into currentAttendance.attended - you don't need to do anything. if you don't want to change the datatype of the Attendance domain objects, then you can just have the following methods on your attend

Re: hi, is it possible to do this with tapestry...

2006-08-18 Thread Karthik N
you should ensure that the Attendance list provided to the For loop is exactly the same both during render and rewind. then, irrespective of the number of rows the render/rewind sequence will be exactly the same. so the checkbox on render will correspond to the same Attendance object when the r

Re: toggle form display

2006-08-16 Thread Karthik N
you could also try using the disable informal parameter for some HTML input elements. something like this in the .html and this in the .page the isViewPage evaluates to true or false and makes the input element disabled. of course this makes for a server roundtrip.

Re: what we need: tutorials like this

2006-08-15 Thread Karthik N
's book and I love it. But, I did have to pay for it. It would be nice if there were free resources out there that folks could use to get started (and get hooked) using Tapestry. -Original Message- From: Karthik N [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 1:06 PM To:

Re: what we need: tutorials like this

2006-08-15 Thread Karthik N
get yourself a copy of Enjoying Web Development with Tapestry by Kent Tong. It's got the tutorial approach to tapestry. On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote: We need an equivalent set of tutorials very simiar to the asp.net quicjkstarts tutorial, but with tapestry. Step by step, build

Re: JWCID changing the look & feel of the Static HTML mocks

2006-08-14 Thread Karthik N
can you try prefixing your block with i think that should do the trick On 8/14/06, Rahat Khan <[EMAIL PROTECTED]> wrote: Dear All, I am using Tapestry4 for my project. My problem is after adding JWCID in the HTML mocks,The view of some of the mocks have been changed.That means the Static

Re: custom validator based on which button pressed

2006-08-13 Thread Karthik N
any reason why you'd not like to use javascript? On 8/11/06, Simon Raveh <[EMAIL PROTECTED]> wrote: Is there a way to tie a submit button to the refresh/cancel listener without using javascript using tapestry 4.0 Simon Karthik N wrote: > your search should be bound to th

Re: custom validator based on which button pressed

2006-08-11 Thread Karthik N
your search should be bound to the form refresh listener - that way validations won't fire. On 8/11/06, Theo vN <[EMAIL PROTECTED]> wrote: Hi I use the same Form to either create (create button) a record or to search (search button) for records. I want to do input validation (only server-side

Re: [OT] Why jwcid?

2006-08-10 Thread Karthik N
e when it doesn't need them. That way you can still use them in your own javascript. Cheers, Nick. Karthik N wrote: > every element that does not have the jwcid attribute is treated as "normal" > html - tapestry does not care too much about it. > > every element that has

Re: Validation

2006-08-10 Thread Karthik N
this is how tapestry works. field-level validations of one field are not known to other fields. we have a similar situation where we wanted to avoid DTOs and use Domain Objects (the exposed domain pattern). we find that the underlying objects can get dirtied in a number of ways. validation is j

Re: [OT] Why jwcid?

2006-08-09 Thread Karthik N
every element that does not have the jwcid attribute is treated as "normal" html - tapestry does not care too much about it. every element that has jwcid is an indicator to tapestry that we're creating a tapestry component - so such html takes a very different lease of life as a tapestry componen

Re: Manipulate components inside a @For with DirectLink.

2006-08-07 Thread Karthik N
} } TabGroup.html: TabGroup.java: @Parameter(name="parameters", required=false) public abstract Object getParameters(); @Parameter(name="listener", required=false) public abstract IActionListener getListener(); Not sure if this is the preferred way, but it works

Re: Manipulate components inside a @For with DirectLink.

2006-08-07 Thread Karthik N
any luck with this issue? After some discussions and experimentation with a colleague of mine, it appears that there is only one component. that's the nature of the For loop. We did this in the listener on the page: Map comps = this.getComponents(); Set keyMap = comps.keySet();

Re: @Persist'd property null

2006-08-05 Thread Karthik N
my understaing is that page property initial values are driven more off the initial-value attribute, rather than @Persist. On 8/6/06, hv @ Fashion Content <[EMAIL PROTECTED]> wrote: If you annotate a page property @Persist'd, will it be null until you assign it a value?

Re: Passing parameters to a JS function

2006-08-04 Thread Karthik N
el variable won't be known inside of it. On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: > > > > each value is stored in a model object in the page. this is because of > ognl:model > > imagine this being like a for loop > > for(i=0; i < 10; i++) { > >

Re: Passing parameters to a JS function

2006-08-04 Thread Karthik N
is iterating through On 8/4/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: How do you pass the Model object to your getAnswer function? And while writing the line on the page, how is he going to know which model is that line referring to? On 8/4/06, Karthik N < [EMAIL PROTECTED]>

Re: Passing parameters to a JS function

2006-08-04 Thread Karthik N
iable is inside an object through which I am iterating in a @For loop. The problem with trial and error is that I don't know where to begin. On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: > > please try this: > > href=ognl:answer > > and in > > publi

Re: Passing parameters to a JS function

2006-08-04 Thread Karthik N
trial and error you'll get it right in 5 attempts!! :-) On 8/4/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: I changed my code to this: But now I get an alert saying "ognl:model.answer". On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: &g

Re: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Karthik N
n TRUE/FALSE for rendering. They aren't typically (hidden input fields) meant to be human friendly so I appreciate the length of statements. (Esp as there are sometimes a great number of them) On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: > > Yes I meant changing the values of the hi

Re: Manipulate components inside a @For with DirectLink.

2006-08-04 Thread Karthik N
I am assuming that to the @DirectLink you are passing the appropriate parameter(s) that makes it render a unique URL for each iteration? Any code snippets would help. On 8/4/06, Reto Hotz <[EMAIL PROTECTED]> wrote: Hi Karthik, On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: &

Re: Passing parameters to a JS function

2006-08-04 Thread Karthik N
PROTECTED]> wrote: > > > > > > Yes, also don't forget the power of "this" and how it changes > depending > > on > > > context. I'd have to see your code but it's quite possible that you > can > > > navigate from "this&quo

Re: Passing parameters to a JS function

2006-08-04 Thread Karthik N
code but it's quite possible that you can > navigate from "this" to any dom node in your browser if "this" points to a > dom node. > > On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: > > > > i guess i'm not too clear what you want to

Re: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Karthik N
PROTECTED]> wrote: > > Javascript runs on the client browser, the @If is evaluated on the > server > > What are you trying to accomplish ?!?!?!?!? > > > -Original Message- > From: Karthik N [mailto:[EMAIL PROTECTED] > Sent: Freitag, 4. August 2006 14:45 >

Re: disable form component

2006-08-04 Thread Karthik N
i would suggest you use javascript to be able to do this on the client side only. iterate through the dom and set the disabled property for your form controls based on the button click On 8/4/06, zqzuk <[EMAIL PROTECTED]> wrote: mmm i meant to disable the component not to use the disabled com

Re: Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Karthik N
Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Perhaps we could be more helpful if you told us what the general purpose of your logic is? (ie does it have to do with validation?) On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: > > I have a rather bizzare requirement (I think) > &

Re: Manipulate components inside a @For with DirectLink.

2006-08-04 Thread Karthik N
I think you will have to look at the parameters that are passed to your TabGroup component. ensure you have cache="false" on all of them in the .jwc file of TabGroup On 8/4/06, Reto Hotz <[EMAIL PROTECTED]> wrote: Hello, In T4, I have a custom component (TabGroup) in a @For loop. The componen

Re: Tap 4.1 Migration - deprecated initialize()

2006-08-04 Thread Karthik N
we were able to get most of our code outside of the initialize method. one important learning, in trying to port the initialize() to pageBeginRender - pageBeginRender never gets called for a DirectLink, but only for Form Submits On 8/4/06, Nick Westgate <[EMAIL PROTECTED]> wrote: Hi Chris. I

Re: disable form component

2006-08-04 Thread Karthik N
I'm not sure about the form itself, but you can disable Form controls using the disabled HTML attribute. On 8/4/06, zqzuk <[EMAIL PROTECTED]> wrote: Hi, just wonder is there any way to disable a form component in code? i searched tapestry api, but seems theres only a method isDisabled() which

Forcing all @If to evaluate to True on Form Submit

2006-08-04 Thread Karthik N
I have a rather bizzare requirement (I think) My Form has 3 or 4 @If components. At any point only one of the @If is True, all others are false. But, for a particular Submit button I want all the @If to force-evaluate to True on the Rewind. One ugly way is to actually change the HTML using ja

Re: Passing parameters to a JS function

2006-08-04 Thread Karthik N
i guess i'm not too clear what you want to achieve: i suppose you can have an informal parameter onclick=ognl:clickAction and then create the javascript in the getClickAction which forms the string based on the current ID On 8/4/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: Hi all I need to pass

Re: recursive rendering

2006-08-03 Thread Karthik N
pestry considers the parameter cached and doesn't re-evaluate it. And I don't know of a way to tell tapestry not to cache it because obviously I can't change the @Block component specification. Any ideas? On Thu, 2006-08-03 at 19:17 +0530, Karthik N wrote: > i've faced a si

  1   2   >