Re: List loaded twice from DB

2006-05-30 Thread Nick Westgate
Hi Mark. The "initial-value" attribute is poorly named. What it does is initialize your page property when the page is being *returned* to the pool, so that a page pulled from the pool has this "initial" property value. Of course, to facilitate the above, when a page is first constructed it mus

RE: List loaded twice from DB

2006-05-30 Thread Schulte Marcus
do you have caching disabled? I suspect the following? Tap inits your prop 1. whenever your page is built from the spec/template 2. whenever it's put back into the pool after use. With caching disabled 1. and 2. will occur in each request-cycle. With production settings, 1 *and* 2 will

Re: List loaded twice from DB

2006-05-30 Thread Mark
Hi Ron, it sounds like this would work, but isn't this just a workaround for something that really should not happen this way in the first place? Thanks, MARK Ron Piterman wrote: just an idea: try to implement the 'roomlist' property yourself, as I described in my previous postings, instead

Re: Dynamic assigning component id

2006-05-30 Thread Pratibha Gopalam
Great! Thanks a lot! Mike Snare wrote: thanks! -Mike On 5/30/06, Nick Westgate <[EMAIL PROTECTED]> wrote: A tip: note that you don't need the element attribute for components that default it to templateTag (check the .jwc file). DRY ;-) So just is fine. Cheers, Nick. Mike Snare wrote:

Re: TCP-IP Communication help

2006-05-30 Thread Peter Dawn
finally got it to work. the trick was to create another thread for it. so now i have a new listener class which is running in the background in sep threads for sending and receiving data. thanks to all for their help. the only other thing I can see is that my web.xml is flagging an error on the l

Re: TCP-IP Communication help

2006-05-30 Thread Peter Dawn
right so thats the problem, my socket call is a blocking call and i should start it in a new thread. thanks jesse, will give that a shot and see how i go. i will keep the current implementation and will only add a sep thread for it. let me know if you think of something else.

Re: TCP-IP Communication help

2006-05-30 Thread Jesse Kuhnert
Do you mean you are doing a ServerSocket.bind() call? You need to do that in a new thread, it's a blocking call. On 5/30/06, Peter Dawn <[EMAIL PROTECTED]> wrote: i have implemented a separate listener-class which includes the context-initiliazed and contextdestroyed methods. i have put my sock

Re: TCP-IP Communication help

2006-05-30 Thread Peter Dawn
i have implemented a separate listener-class which includes the context-initiliazed and contextdestroyed methods. i have put my socket connection stuff in the initialized method. it seems to load up with tomcat and with the webapp and is working fine. the problem is that once its started the sock

RE: TCP-IP Communication help

2006-05-30 Thread Mark Stang
Peter, Are you thinking of using iframes? We tried using those and it worked quite well, until someone turned on IE security. At the higher levels of IE Security things stopped working. However, ours was with an automated download, your experience may vary. You can also just insert a compone

Re: TCP-IP Communication help

2006-05-30 Thread Peter Dawn
both hivemind and "ServletContextListener" look good. need to do a bit of reading on both i guess. what do you guys think of just putting that code into a separate class and into a hidden frame and let it start in the background. --

Re: Script component example with List

2006-05-30 Thread Sam Gendler
what about this: var pane = dojo.widget.createWidget("ContentPane", {id:"${content.id}"+"AccordionContainer", label:"${content.label}"}); pane.setContent("${content.content}"); That works fine in my script file. On 5/30/06, Eric Schneider <[EMAIL PROTECTED]> wrote: Shing

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-30 Thread Sam Gendler
You have to bear in mind that the jvm uses the default charset when READING a file before tapestry ever gets its hands on it. If you have characters in a file that are incompatible with the default charset, they can get mangled on their way in to the jvm, and no setting of output parameters can p

Re: 508 compliance on FormTable

2006-05-30 Thread Mind Bridge
Please add an issue to JIRA -- this is an important issue... -- View this message in context: http://www.nabble.com/508+compliance+on+FormTable-t1706408.html#a4633061 Sent from the Tapestry - User forum at Nabble.com. - To unsu

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-30 Thread Mind Bridge
Strange. There is a unit test that verifies precisely that. Since Tapestry cannot be built without the correct execution of the unit tests, I suspect that the problem is either the naming of the .application file or in the version of Tapestry. What happens when you have "-Dorg.apache.tapestry.te

508 compliance on FormTable

2006-05-30 Thread Sunny Young
In order to pass 508 compliance, all the images need to have ALT tag. In FormTable, the arrowUp and arrowDown image don't have ALT tag with them. Does anyone know how to add ALT tag in arrowUpAssest and arrowDownAsset of the contrib:FormTable component? Thank you.

Re: How to implement a 'application property with persistence strategy client:app' ?

2006-05-30 Thread Henri Dupre
I asked here long ago and Howard answered that in Tapestry 4 this is not possible due to some internal design. I opened an JIRA issue http://issues.apache.org/jira/browse/TAPESTRY-729. Is there any chance for this to make it for tapestry 4.1? Henri. On 5/30/06, Gerald Schöffel <[EMAIL PROTECTED

Re: How to implement a 'application property with persistence strategy client:app' ?

2006-05-30 Thread Gerald Schöffel
Hi Norbert, thank you for your quick reply ! The problem with "client:app" is, that it stores the property of the page in a application scope. So every time I browse to this page the property is set to the persisted value. I need exactly this behaviour independent of a page, so every page

Re: TCP-IP Communication help

2006-05-30 Thread Paul Cantrell
I like to use a ServletContextListener to do this: start your service's thread in contextInitialized(), and end it in contextDestroyed(). Google "ServletContextListener" for more info. On May 30, 2006, at 3:44 AM, Peter Dawn wrote: i will try and have a look at it. another way of looking a

Re: TCP-IP Communication help

2006-05-30 Thread Jesse Kuhnert
http://jakarta.apache.org/hivemind/ On 5/30/06, Peter Dawn <[EMAIL PROTECTED]> wrote: i will try and have a look at it. another way of looking at my question is, whats the best way of running a program in the background as a service within the web app without halting any other processes or pro

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-30 Thread Paul Cantrell
I specify the option in WEB-INF/tapestry.application. I see you already wrote that this didn't work for you ... don't know what to tell you! It works for me. I would like to give it a try. Also, where can I find a complete of keys for Tapestry 4? http://jakarta.apache.org/tapestry/UsersGu

Re: How to implement a 'application property with persistence strategy client:app' ?

2006-05-30 Thread Norbert Sándor
What about the strategy "client:app"? If not then check out ClientPropertyPersistenceStrategy and the related classes for reference (eg. how to add a value into every URL). Regards, Norbi Gerald Schöffel wrote: Hi there ! I need to persist a application-scope property on the client side, wi

How to implement a 'application property with persistence strategy client:app' ?

2006-05-30 Thread Gerald Schöffel
Hi there ! I need to persist a application-scope property on the client side, without using of a session and/or an ASO and without a reference to a specific page. In fact I need to be able to compare a value stored in a visit-ASO with the persisted property send from the client. This prope

Re: Does Tapestry work with XHTML?

2006-05-30 Thread Galam
Thanks everyone for the tips and advices. I'll stick with HTML then. On 5/29/06, Todd Orr <[EMAIL PROTECTED]> wrote: Yet, not all of Tapestry's components produce compliant xhtml, so you may be wasting your time going through these measures. On 5/29/06, Paul Cantrell <[EMAIL PROTECTED]> wrot

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-30 Thread Galam
Hi mb, Thanks for the link to the configuration page. The explanation of the problem was in my original email. I hard coded a few chinese text in my UTF-8 encoded Home.html (see below), but the text didn't get render properly in web browser. The "-Dfile.encoding=UTF-8" option fixed it, but the

Re: Script component example with List

2006-05-30 Thread Eric Schneider
Shing, Thanks for the thread. Alternatively, you could contruct your 'Loop part' in a java class and pass it to the script. The content is html intensive, I'd prefer not to construct it in Java, but it's definitely a fall back plan. Thanks again. Eric On 5/30/06, Shing Hing Man <[EMAIL PROT

Re: Script component example with List

2006-05-30 Thread Shing Hing Man
There are some posts on in the archive. Here is one of them : http://article.gmane.org/gmane.comp.java.tapestry.user/31759/match=foreach+script Alternatively, you could contruct your 'Loop part' in a java class and pass it to the script. Shing --- Eric Schneider <[EMAIL PROTECTED]> wrote: > H

Re: Dynamic assigning component id

2006-05-30 Thread Mike Snare
thanks! -Mike On 5/30/06, Nick Westgate <[EMAIL PROTECTED]> wrote: A tip: note that you don't need the element attribute for components that default it to templateTag (check the .jwc file). DRY ;-) So just is fine. Cheers, Nick. Mike Snare wrote: > Right. You have to use jwcid otherwise i

Re: ServiceEncoder gets garbage characters with pathInfo?

2006-05-30 Thread sp y
No one is getting the same problem? or anyone that has no problem working on unicode file name? Thanks. regards, On 5/29/06, sp y <[EMAIL PROTECTED]> wrote: Hi all, I have a custom ServiceEncoder implementation, the path that might include UNICODE characters that need to be decoded. I'm s

Portlet page resolving.

2006-05-30 Thread John Singleton
I've written my own PortletPageResolver, to resolve portlet pages to subdirs - i.e. View gets resolved to /View This works fine, except when I want to navigate to a different make. When I submit a form I want to go to a page called Winner. From the form success listener I've tried returning "Winn

Cleanup when the session expires

2006-05-30 Thread Christian Surlykke
Hi Sorry if this has been asked before. Under tapestry 3.0 I had some resources attached to my visit object that I needed to release on session expiration. I did something like: public class MyEngine extends BaseEngine implements HttpSessionBindingListener{ public void valueUnbound(HttpS

Re: Dynamic assigning component id

2006-05-30 Thread Nick Westgate
A tip: note that you don't need the element attribute for components that default it to templateTag (check the .jwc file). DRY ;-) So just is fine. Cheers, Nick. Mike Snare wrote: Right. You have to use jwcid otherwise it's not a tapestry component. Keep using jwcid, but also use plain old

Script component example with List

2006-05-30 Thread Eric Schneider
Hi, I trying to track down an example of a Script component that iterates over a list. The ${expression} syntax seems easy enough, but I'm unclear how create the equivalent of a foreach in Script component land. The desired result is something like this: var scrollingContentElement=

Re: Dynamic assigning component id

2006-05-30 Thread Mike Snare
Right. You have to use jwcid otherwise it's not a tapestry component. Keep using jwcid, but also use plain old id. For an implicit component, it would look something like this: -Mike On 5/30/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: On 30. Mai 2006 - 16:19:37, Pratibha Gopalam wrote: |

Re: Component Tab with AJAX

2006-05-30 Thread Hugo Palma
Cool, thanks. On 5/30/06, Sam Gendler <[EMAIL PROTECTED]> wrote: > Still, i have one question. Is it possible with your component to have tabs > in a separate page/component ? Currently, no, but it will be getting an update that will likely allow it. Currently, the content of any tab is j

Re: Component Tab with AJAX

2006-05-30 Thread Sam Gendler
Still, i have one question. Is it possible with your component to have tabs in a separate page/component ? Currently, no, but it will be getting an update that will likely allow it. Currently, the content of any tab is just the content of a div in the same page, and the ids of the necessary div

Re: Component Tab with AJAX

2006-05-30 Thread Hugo Palma
I haven't seen the source, but i will as soon as i can find some time to do so. Still, i have one question. Is it possible with your component to have tabs in a separate page/component ? On 5/30/06, Sam Gendler <[EMAIL PROTECTED]> wrote: I have checked the tab component into tacos trunk, so if

Re: Component Tab with AJAX

2006-05-30 Thread Sam Gendler
I have checked the tab component into tacos trunk, so if you build from svn, you should get a tab component which has had some improvement since the version you are playing with. It will get a larger update sometime later this week. I also added dojo accordion and dojo content pane, as well as a

Re: [SPAM] Re: Redirecting to HTTPS in pageValidate(), or something?

2006-05-30 Thread Josip Gracin
Shing Hing Man wrote: @InjectObject("service:tapestry.globals.WebRequest") public abstract WebRequest getWebRequest() Thanks, I try that! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: Dynamic assigning component id

2006-05-30 Thread Andreas Bulling
On 30. Mai 2006 - 16:19:37, Pratibha Gopalam wrote: | Thanks for the reply. | | In the template (.html) we normally use the jwcid to give a id and tell | tapestry what type of component to instantiate. How do I do the same | thing with id? | | -- -- this works, but the id | 'someid' is stat

Re: Dynamic assigning component id

2006-05-30 Thread Pratibha Gopalam
Thanks for the reply. In the template (.html) we normally use the jwcid to give a id and tell tapestry what type of component to instantiate. How do I do the same thing with id? -- -- this works, but the id 'someid' is static. Now I want to make that dynamic. -- : This doesn't work b

Re: Dynamic assigning component id

2006-05-30 Thread Mike Snare
Just use id, not jwcid. The jwcid tells it which component in the .jwc/page file to use, but the id can be set however you wish. I just did that on a few custom components I've written so I know it works. I imagine there may be some components for which it doesn't if ID is reserved, but I don't

Formatting DatePicker output

2006-05-30 Thread Rui Pacheco
Hi all I'm trying to format the output of a DatePicker component. Right now its returning dates as "Tue May 30 00:00:00 WEST 2006" and I want it to return in this format: "2006/5/30". I am using a date translator on my component, with this syntax: But for some reason he's ignoring that. Is ther

Re: Component Tab with AJAX

2006-05-30 Thread Hugo Palma
I think it might have something to do with the firewall i'm behind. I'll try from home later. On 5/30/06, Peter Svensson <[EMAIL PROTECTED]> wrote: Hmm. It works for me. Strange. /PS On 5/30/06, Hugo Palma <[EMAIL PROTECTED]> wrote: > > Still can't see it. It takes forever to load and then i

Re: Component Tab with AJAX

2006-05-30 Thread Peter Svensson
Hmm. It works for me. Strange. /PS On 5/30/06, Hugo Palma <[EMAIL PROTECTED]> wrote: Still can't see it. It takes forever to load and then i just get a blank screen. On 5/29/06, spamsucks <[EMAIL PROTECTED]> wrote: > > The tab component on steroids is ready. > > Supports client-side and serve

Re: Component Tab with AJAX

2006-05-30 Thread Hugo Palma
Still can't see it. It takes forever to load and then i just get a blank screen. On 5/29/06, spamsucks <[EMAIL PROTECTED]> wrote: The tab component on steroids is ready. Supports client-side and serverside switching (in the same tabset), hiding tabs, enabling/disabling tabs. There is a demo o

Re: Redirecting to HTTPS in pageValidate(), or something?

2006-05-30 Thread Shing Hing Man
Please try something like this in .page: @InjectObject("service:tapestry.globals.WebRequest") public abstract WebRequest getWebRequest() Shing --- Josip Gracin <[EMAIL PROTECTED]> wrote: > Hi! > > Nick Westgate wrote: > > RequestContext requestContext = > > event.getRequestCycle().g

Re: contrib:Table and utf-8 characters

2006-05-30 Thread Rui Pacheco
"ISO-8859-1" worked for me. Thanks for the help! On 5/29/06, Mind Bridge <[EMAIL PROTECTED]> wrote: As mentioned in another email, you can specify the character set which your .property files use by placing the following in your .application: You may set the value to "UTF-8" or "ISO-8859-1"

Re: TCP-IP Communication help

2006-05-30 Thread Peter Dawn
i will try and have a look at it. another way of looking at my question is, whats the best way of running a program in the background as a service within the web app without halting any other processes or programs. any thought. ---

Re: Redirecting to HTTPS in pageValidate(), or something?

2006-05-30 Thread Josip Gracin
Hi! Nick Westgate wrote: RequestContext requestContext = event.getRequestCycle().getRequestContext(); I've thought about that, yes, but it seemed like a bit of a hack. Is this the right way to do it in Tapestry 4 (except that instead of calling getRequestContext(), the context shoul

Re: List loaded twice from DB

2006-05-30 Thread Ron Piterman
just an idea: try to implement the 'roomlist' property yourself, as I described in my previous postings, instead of letting tapestry do it. may be this will help. don't forget to implement a pageDetachListener which sets the property to null. I always had good experience when doing it like this

Re: TCP-IP Communication help

2006-05-30 Thread Stephane Decleire
Have you tried to use the asynchronous functions of the socket API instead of the synchronous ones ? Peter Dawn wrote: jesse, thanks for your feedback. though, i have managed to get TCP/IP communication happening within the web application. by that i mean that my web app can send and receive

Re: Servlet Mapping ??? Help Me

2006-05-30 Thread Peter Svensson
Also, have you considered just placing all images on a separate apache server on the same or other machine? I admit I did just that for scirpt and images for a project, because I didn't have the moral strength to battle with tomcat configs. Cheers, PS On 5/30/06, Jesse Kuhnert <[EMAIL PROTECTED]