a form per row in contrib:Table in Tap4?

2006-03-13 Thread Sam Gendler
I've got a very short 2 field form, but I have many instances of it, one for each of many dates. In most instances, a user will only update a single date or two, so loading the entire set of values, and then looking them back up in the primary key convertor is needlessly wasteful, so I'd rather h

RE: Block render in contrib:table

2006-03-13 Thread y.turban
Thank you ! > -Original Message- > From: Mike Snare [mailto:[EMAIL PROTECTED] > Sent: Monday, March 13, 2006 8:00 PM > To: Tapestry users > Subject: Re: Block render in contrib:table > > right, but only if the objects in the saleItems collection > have a select attribute. > > If, inst

Problem with Namespace, Page Specification Loading & WebRequestServicerFilter

2006-03-13 Thread Hugues
Hi, For an application of mine, I need to list all pages, contained both in libraries and under the WEB-INF directory. In order to achieve this as soon as possible in the process, I have created a WebRequestServicerFilter, initialized only once, in charge of listing the pages and retrieving their

Re: No type converter error in InsertText

2006-03-13 Thread Daniel Lydiard
you got ongl instead of ognl. - Original Message - From: "Oscar Picasso" <[EMAIL PROTECTED]> To: Sent: Monday, March 13, 2006 7:51 PM Subject: No type converter error in InsertText Hi, If I have: everything works fine. I want to use paragraphs instead of break lines. So I have do

No type converter error in InsertText

2006-03-13 Thread Oscar Picasso
Hi, If I have: everything works fine. I want to use paragraphs instead of break lines. So I have done: I get the following Exception: Error converting value for template parameter mode: No type converter for type org.apache.tapestry.html.InsertTextMode is available. binding:StaticBinding[ong

Re: "double-clicking" user - a possible problem?

2006-03-13 Thread Nick Westgate
Hi Christian. This may not be relevant - but just in case - there was an issue with Tapestry 3 to do with double clicking submits. I'm not using T4 yet and things may have changed, but read this: http://article.gmane.org/gmane.comp.java.tapestry.user/19128/match=locked+filter Cheers, Nick. Ch

Re: embedding tapestry

2006-03-13 Thread Geoff Longman
ooch. I've never heard of anyone trying to do this! You want to serve markup from inside your app? Why not just embed Jetty? This might be a question better asked on the dev list where the readers are more into the deep deep guts of Tapestry. Geoff On 3/13/06, Fedor Tcherepanov <[EMAIL PROTECTE

embedding tapestry

2006-03-13 Thread Fedor Tcherepanov
Hello everyone, I'd like to embed tapestry in my application outside servlet container. Just to throw requests to engine and catch the results. I'm new to tapestry, so I've just browsed the code and tried to see how to do that. It seems to me that it should be possible with 4.0 without real diffi

Re: "double-clicking" user - a possible problem?

2006-03-13 Thread Christian Mittendorf
Thanks for the hint. I will give your approach a try tomorrow! Christian Am 13.03.2006 um 18:20 schrieb Inge Solvoll: See the token-discussion in another recent thread, which discusses this issue. (double submit) On 3/13/06, Bryan Lewis <[EMAIL PROTECTED]> wrote: Look in your page spec o

Re: Contrib:Table drop down selection column

2006-03-13 Thread Izak Wessels
Ahh ok. Presume you are referring to the editable weight textfields. Seems the correct way to do it, thanks. On 3/13/06, Daniel Lydiard <[EMAIL PROTECTED]> wrote: > Use @Block and insert the PropertySelection component. I've never done > this, but I'm pretty sure that's how you would do it. > > h

Re: Best way to give pojo access to a file?

2006-03-13 Thread Jesse Kuhnert
http://tacos.sourceforge.net/hivemind/SiteMap.html It does almost exactly what you describe, except the UI portions are really more of an after thought, with the core work being done in a full fledged hivemind service. The tacos demo navigation system is built using this, but one could easily make

Re: Contrib:Table drop down selection column

2006-03-13 Thread Daniel Lydiard
Use @Block and insert the PropertySelection component. I've never done this, but I'm pretty sure that's how you would do it. https://tapestrywebcomponentexamples.dev.java.net/ - Original Message - From: "Izak Wessels" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Monday, March 13,

Contrib:Table drop down selection column

2006-03-13 Thread Izak Wessels
Hi, I am trying to display a drop down selection list in one of my columns of my contrib:table. There will be button associated with each row that allows the user to save any changes made in the drop down selection list. Anybody have any ideas as to how I can insert a drop down selection list as

Best way to give pojo access to a file?

2006-03-13 Thread Rob Dennett
I am writing a small sample app to demonstrate a menu component to my boss. I want to populate this menu using an xml file. Later I may change to using a database. I wrote a pojo that is supposed to read the xml doc describing the menu and parse its contents into java beans for use by the com

Re: tapestry hibernate Object was not of the specified subclass...

2006-03-13 Thread Marc Ende
Hi Sam, I've found the point. It's hibernate. It forgets that associations has got an discriminator-column. So it loads (if you've got two associations to different subclasses on the same table) the same entity twice. But the second time it remembers the first and so it results in a WrongClass

Re: Tapestry and Cookies

2006-03-13 Thread Sam Gendler
Well, you could replace the OutputStream in the response with an OutputStream that will just buffer the response. But that may increase user-perceived latency because it will take so long for the first byte to come back. If your application can handle just doing the work before the final render o

Re: Anyone have any idea about this exception?

2006-03-13 Thread Chris Chiappone
Here is the only methods in my Border.java file: /** * Listener method to show terms of use popup * @return */ public IPage termsOfUsePopup(){ return getTermsOfUse(); } /** * Listener method to show privac

Re: How to access HttpServletRequest from inside an IEngineService?

2006-03-13 Thread Raul Raja Martinez
As James pointed out you use set... so that the service gets autowired by hivemind (setter based dependency injection) http://jakarta.apache.org/hivemind/hivemind-examples/setters.html Oscar Picasso wrote: Hi, I have an IEngineService that needs to know the HTTP method (HEAD or GET) that was

Tapestry and Cookies

2006-03-13 Thread Adam Zimowski
Hi I extended ApplicationServlet to do some non-Tapestry work. From my servlet I need to set a persistent cookie after super.doGet, but when Tapestry's doGet is finished response is already committed and my setting a cookie does not take effect: @Override public void doGet(HttpServletRequest aReq

Re: [NewB] Validators don't act...

2006-03-13 Thread ZedroS Schwart
My mistake, sorry... On 3/13/06, ZedroS Schwart <[EMAIL PROTECTED]> wrote: > > Hi all > > I'm afraid I've another newB question... > > My point is quite simple : I would a field of my form to be required. > > I've done the following : > Test.html : > > Test > > > border="0" cellpaddi

Re: Tapestry and portlets question

2006-03-13 Thread Raul Raja Martinez
Hi Zheng, take a look at http://jakarta.apache.org/tapestry/tapestry-portlet/coding-issues.html#User+Attributes Zheng JinYuan wrote: I user tapestry as my web UI develop framework.It's great! But when I use tapestry for portal develop how can I access portal current user information from tapest

[NewB] Validators don't act...

2006-03-13 Thread ZedroS Schwart
Hi all I'm afraid I've another newB question... My point is quite simple : I would a field of my form to be required. I've done the following : Test.html : Test Login :

Re: AW: Components & Portlets

2006-03-13 Thread Raul Raja Martinez
check out jboss portal and liferay, there is a tapestry hello world sample portle for jb2 http://labs.jboss.com/portal/index.html?ctrl:id=page.default.downloads&project=portletswap&category=.portlets Korbinian Bachl wrote: Hi, ok, to see if i understand it right: i might build a e-shop in ta

Contributing .library file

2006-03-13 Thread Aslak Gronflaten
Hi, first of all thanks for all previous help. I'm wondering if it is possible to add a component library to the application, via a hivemodule.xml configuration contribution for example, so I won't have to alter the .application file (which in my case is autogenerated). I realize this is somethi

Re: Block render in contrib:table

2006-03-13 Thread Mike Snare
right, but only if the objects in the saleItems collection have a select attribute. If, instead, you're trying to change the rendering of the IdDemand column header and the idDemand column value, you need to change the id of each block to idDemandColumnHeader and idDemandColumnValue, respectively.

Tapestry developers in Greece/Athens?

2006-03-13 Thread FTP
calling for Tapestry/Java interested developers in Greece/Athens to start a local OS project. If you like the idea please send an e-mail to [EMAIL PROTECTED] Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Dynamic checkbox values

2006-03-13 Thread Nima Boustanian
Hey all (again) I've been trying to assign values to my dynamic checkboxes, but can't really grasp how I should do it. I have been successful with generating them, but in Tapestry you'll need a abstract getter for each checkbox right? So how do I know which checkboxes have been checked? Here'

Re: Overriding gif images for contrib:Table

2006-03-13 Thread Robert Zeigler
Uh... maybe I'm missing something here, but if you're using the table component... why not just use the "arrowUpAsset" and the "arrowDownAsset" parameters? Give it an asset and it will use your images instead... you can save yourself having to specify your assets constantly by creating a custom tab

Re: "double-clicking" user - a possible problem?

2006-03-13 Thread Inge Solvoll
See the token-discussion in another recent thread, which discusses this issue. (double submit) On 3/13/06, Bryan Lewis <[EMAIL PROTECTED]> wrote: > > Look in your page spec or template for a binding like map.areaCode. It > sounds like you have a hashmap with an areaCode key, and the map isn't > d

Re: "double-clicking" user - a possible problem?

2006-03-13 Thread Bryan Lewis
Look in your page spec or template for a binding like map.areaCode. It sounds like you have a hashmap with an areaCode key, and the map isn't declared persistent. Or pehaps it's being nullified in the first submit. When the second submit comes along, the page is trying to store the areaCode in a

Re: {SPAM?} copying assets to static directory

2006-03-13 Thread Andreas Andreou
This was removed in Tapestry 4. The asset service now writes out correct http headers that allow the content to be cached by browsers and proxies. gaz jones wrote: >yo, > >i noticed in the >docsi

Re: Overriding gif images for contrib:Table

2006-03-13 Thread Andreas Andreou
You could try creating the folder WEB-INF/classes/org/apache/tapestry/contrib/table/components/inserted/ and add there your own arrow-up.gif arrow-down.gif But this is a server-dependent solution. Many will use the files from the classes dir, but some will use the ones from the jar. In that case y

Re: ANN: FCKeditor TextArea component for Tapestry 4

2006-03-13 Thread Eric Schneider
Kinda knew this was too useful to not exist already. The Snippets plugin... http://sourceforge.net/tracker/index.php?func=detail&aid=1396390&group_id=75348&atid=737639 Very easy to gear up, exactly what I was looking for. Cheers, Eric On 3/13/06, Eric Schneider <[EMAIL PROTECTED]> wrote: > Shi

Re: Block render in contrib:table

2006-03-13 Thread Andreas Bulling
You have to add "select" to the columns property. Andreas On 13. Mär 2006 - 18:17:33, [EMAIL PROTECTED] wrote: | I'm really happy with this mailing list, and hope that you guys can help me | out with contrib:table | | Here is what I have in HTML : | | | | safdasfdjhgasjh | | |

Block render in contrib:table

2006-03-13 Thread spamsucks
I'm really happy with this mailing list, and hope that you guys can help me out with contrib:table Here is what I have in HTML : safdasfdjhgasjh select Q: why doesn't it show either of those Blocks ? It's like they don't even exist. I can't find a

"double-clicking" user - a possible problem?

2006-03-13 Thread Christian Mittendorf
Hello! Using a double-click for selecting buttons is - as far as I can tell from my observations - a common "mistake" of computer beginners. I know a number of new computer users, that apply this pattern - which they know from the desktop for opening files - to navigating web pages and su

Overriding gif images for contrib:Table

2006-03-13 Thread Martin Carel
Hi folks, Is there a nice way to replace the 2 (green arrows) GIF images defined in the SimpleTableColumnComponent specification (used to display the sort order, next to the column header), other than hacking the contrib jar, that is, replacing those 2 GIF files? I'd like to use the contrib jar "

Overriding gif images for contrib:Table

2006-03-13 Thread Martin Carel
Hi folks, Is there a nice way to replace the 2 (green arrows) GIF images defined in the SimpleTableColumnComponent specification (used to display the sort order, next to the column header), other than hacking the contrib jar, that is, replacing those 2 GIF files? I'd like to use the contrib jar "

Re: ANN: FCKeditor TextArea component for Tapestry 4

2006-03-13 Thread Eric Schneider
Shing, Excellent job on porting the FckEditor to Tapestry. I'm finding it very useful. Quick question. I'm trying to create some behavior similar to Template functions built into the FckEditor. Ideally, I'd like to create "chunk" templates that could inserted into existing content in the edito

Re: Problem using properties in component

2006-03-13 Thread Mike Snare
Update: I tried creating properties in the page that would store the values, having the page pass them in to the component. This didn't work either. I get the same error about there not being an xCoord property, this time it just references the page instead of the component. Again, the error on

RE: Inject locale

2006-03-13 Thread James Carman
You can use your HiveMind Messages object to do the i18n/formatting. It will automatically use the correct locale. -Original Message- From: Norbert Sándor [mailto:[EMAIL PROTECTED] Sent: Monday, March 13, 2006 6:45 AM To: Tapestry users Subject: Re: Inject locale I think that the Thread

Re: Inject locale

2006-03-13 Thread Norbert Sándor
I think that the ThreadLocale (http://jakarta.apache.org/hivemind/hivemind/ThreadLocale.html) service is for this purpose. Regards, Norbi Martin Strand wrote: Hi. Newbie question... I wanna do some extra date formatting ("today", "yesterday" and similar) in a HM service. How do I inject the

Re: [Newb] Sending arguments via ognl

2006-03-13 Thread Nima Boustanian
Arghh... (smacks forehead) - thanks Mike! Mike Snare wrote: when calling a method, use the actual method name not ognl:tags(2l) but ognl:getTags(2l) -Mike On 3/13/06, Nima Boustanian <[EMAIL PROTECTED]> wrote: Thanks - nice and short answer Daniel :) But I changed my method to: publi

Re: [Newb] Sending arguments via ognl

2006-03-13 Thread Mike Snare
when calling a method, use the actual method name not ognl:tags(2l) but ognl:getTags(2l) -Mike On 3/13/06, Nima Boustanian <[EMAIL PROTECTED]> wrote: > Thanks - nice and short answer Daniel :) > > But I changed my method to: > > public List getTags(Long postId) { >return getTagManager(

Re: [Newb] Sending arguments via ognl

2006-03-13 Thread Nima Boustanian
Thanks - nice and short answer Daniel :) But I changed my method to: public List getTags(Long postId) { return getTagManager().getTagsByPostId(postId, 1); } and I am testing it with: And I keep getting this error: java.lang.NoSuchMethodException tag

Re: TapestryTables.war for T4 anyone ?

2006-03-13 Thread Peter Svensson
I'm no expert, but I've made this work by using 'listener:' instead of 'listeners.' in my .page file Cheers, PS On 3/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > Is there TapestryTables.war ( examples ) ported to T4 anywhere ? > Specifically, I'm interested in DirectLinkColumn

TapestryTables.war for T4 anyone ?

2006-03-13 Thread smamsucks
Hi, Is there TapestryTables.war ( examples ) ported to T4 anywhere ? Specifically, I'm interested in DirectLinkColumn.html + .page + .java I'm trying to insert DirectLink into table and I get en Exception : Attribute "listener" must be declared for element type "component". The offensive xml is

copying assets to static directory

2006-03-13 Thread gaz jones
yo, i noticed in the docsit describes configuring tapestry to copy assets to a static directory, rather than piping them as binary content every time. the two settings: org.apache.tapestry.asset.d

RE: contrib:table with Tapestry 4

2006-03-13 Thread Apache
Well, I am sort of entertaining myself here ;-) But I hope other people find this posting on google if they have the same problem for the previous postings! Right now I am running into this problem here: Could not find a strategy instance for class tm.om.PrivateMessage as soon as I want to add

RE: contrib:table with Tapestry 4

2006-03-13 Thread Apache
      select It works like that! But something else: I am not sure whether I should do it in such a simple way or whether this would use to much memory if someone has many messages in his/her mailbox. Are also all the user details stored in memory now as PrivateMessage references a User ta

Inject locale

2006-03-13 Thread Martin Strand
Hi. Newbie question... I wanna do some extra date formatting ("today", "yesterday" and similar) in a HM service. How do I inject the Locale for the current request? Does this formatting service need to be model="threaded" or will HiveMind handle that automagically? (since I'm injecting the cu

Re: [Newb] Sending arguments via ognl

2006-03-13 Thread Daniel Lydiard
ognl:myMethod(tag.id) - Original Message - From: "Nima Boustanian" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Monday, March 13, 2006 1:38 AM Subject: [Newb] Sending arguments via ognl Hey all How do you send arguments to methods via ognl? I have something like this:

RE: contrib:table with Tapestry 4

2006-03-13 Thread Apache
the error i get is: Unable to read OGNL expression '' of [EMAIL PROTECTED]: $Inbox_24.subject although there is a getSubject() method within the PrivateMessage class. m2f Sent from www.TapestryForums.com Read this topic online here: <> http://www.tap

contrib:table with Tapestry 4

2006-03-13 Thread Apache
I am trying to use the Table with Tapestry 4 and somehow I can't find out what is going wrong...maybe someone of you sees the problem? Inbox.page             Inbox.html Inbox.java public List getPrivateMessages() {       return getPrivateMessageDAO().getPrivateMessages(             getVi

[Newb] Sending arguments via ognl

2006-03-13 Thread Nima Boustanian
Hey all How do you send arguments to methods via ognl? I have something like this: class="tableheader"> value="ognl:post.title">Post title Now I want to for each loop in the

Re: tapestry hibernate Object was not of the specified subclass...

2006-03-13 Thread Marc Ende
Okay, then I can give the solution for my hibernate problem a try. Therefore I need the interfaces and I was not sure how tapestry would handle them. Thanks! marc Sam Gendler schrieb: > Well, Tapestry shouldn't care whether a bean is implementing an > interface or not. A bean is a bean, and if

Re: tapestry hibernate Object was not of the specified subclass...

2006-03-13 Thread Sam Gendler
Well, Tapestry shouldn't care whether a bean is implementing an interface or not. A bean is a bean, and if it has a property with the specified name, then it will be able to use it. Tapestry rarely asks for the class of a user defined object at all. NO need to include the Interface name. If I h

Re: tapestry hibernate Object was not of the specified subclass...

2006-03-13 Thread Marc Ende
Hi Sam, thanks for your Help... It looks like it is my problem. I'll try it on the evening... But this solutions produces the next question: Can tapestry handle if I provide an interface instead of a "normal" bean for values? For example: Marc Sam Gendler schrieb: > There's mention of this pr