Locale switcher and exception reporter

2009-12-09 Thread shymon
I have an Error page which implements ExceptionReporter and intercepts all exceptions thrown by other pages. As every other page in my app, Error page contains locale switcher - user should be able to change language of displayed error message. (Locale switcher is part of Layout component). In e

LinkSubmit problem - invalid form action

2009-11-09 Thread shymon
Hi, I use LinkSubmit on two pages of my app. On one page it works fine but on the other it's not; when I click on that link nothing happens. The only difference I have noticed is in form action generated by T5. On "working" page it looks like: action="/appContext/pageName.formId" and on "n

Re: Login page - passing context between pages

2009-10-16 Thread shymon
DH-14 wrote: > > In that case, the context is only useful for Login page, but not the > following page, so only returning logic name of source page would not > carry the context. > Try PageRenderLinkSource#createPageRenderLinkWithContext(String pageName, > Object... context) and return that lin

Login page - passing context between pages

2009-10-15 Thread shymon
Some pages of my app are available only to authorized users. When user enters such a page and is not logged in, appropriate message is shown with link to login page. After logon user should return to the same page he came from to login page. So I pass logical name of restricted page and it's con

Re: Strange java applet behavior with T5

2009-09-30 Thread shymon
Thiago H. de Paula Figueiredo wrote: > > Em Wed, 30 Sep 2009 13:24:40 -0300, shymon > escreveu: > >> Hi, > > Hi! > >> Moreover, during the second pass my activation context variable has >> unexpected value. eg.: > > Make sure you use ${asset:

Strange java applet behavior with T5

2009-09-30 Thread shymon
rom. What could be the problem? How should I embed java applets in tapestry page? thx for any help, Shymon -- View this message in context: http://www.nabble.com/Strange-java-applet-behavior-with-T5-tp25684505p25684505.html Sent from the Tapestry - User mailing list archive at

changing grid sort constraints from event handler

2009-07-20 Thread shymon
How can I change grid sorting constraints from actionLink event handler? -- View this message in context: http://www.nabble.com/changing-grid-sort-constraints-from-event-handler-tp24570524p24570524.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: TextField component and body background attachement

2009-07-14 Thread shymon
Ok, to exclude influence of some other components I'm using in project, I have created new project using Tapestry 5 Quickstart Archetype (5.1.0.5) and put long placeholder text in Index.tml. In internet explorer background was scrolled _with_ the rest of content. So then I added following code t

TextField component and body background attachement

2009-07-13 Thread shymon
Hi, I have noticed that whenever I put TextField component on my page eg. like this: element in generated page source in MSIE gets additional style attribute: style="background-attachment: fixed;" This occurs _only_ in MSIE. Is it a bug or feature? (T5.1.0.5) -- View this message i

Re: ActionLink in bundle message

2009-07-07 Thread shymon
Thiago H. de Paula Figueiredo wrote: > > On Tue, Jul 7, 2009 at 12:15 PM, shymon wrote: > > You don't need a component id to handle its event: just handle the > event normally: > > @OnEvent("nameOfYourEvent") > void handle() {...} > > If

ActionLink in bundle message

2009-07-07 Thread shymon
How can I insert actionLink into message from resource bundle? I have message with parameter which I replace using messages.format method. I also create link object with createEventLink() and element using Element class. It almost works, but link created this way has no id so I cannot handle o

SessionState values in url

2009-06-25 Thread shymon
I need to exchange small amount of data (for now one string value) between majority of my app pages, but I want to store this value in the page url. AFAIK SessionState offers only 'session' strategy. Moreover I don't want to handle this single value in each page's onActivate. I thought I could

T5 app - Tomcat with security manager deployment problem

2008-12-08 Thread shymon
Hello, I'm trying to deploy t5 app to Tomcat 6.0.18 with security manager turned on. In the beginning there were some access exceptions but I have granted following Permissions: grant codeBase "file:${catalina.base}/webapps/myapp/WEB-INF/lib/-" { permission java.lang.reflect.ReflectPermission "

Path to files in WEB-INF?

2008-11-25 Thread shymon
I have a file placed in WEB-INF folder - file which I want to be deployed with application. I also want to load that file in page code. How can I obtain path to that file? -- View this message in context: http://www.nabble.com/Path-to-files-in-WEB-INF--tp20679893p20679893.html Sent from the Tap

Re: T 5.0.16 - maven repository

2008-11-20 Thread shymon
Ok, I solved my "problem" :) I was not quite aware of how to use maven plugin. -- View this message in context: http://www.nabble.com/T-5.0.16---maven-repository-tp20599623p20602492.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

T 5.0.16 - maven repository

2008-11-20 Thread shymon
.maven.org/maven2/) I can see 5.0.16 is there. What have I to do to see 5.0.16 from netbeans? How can I add 5.0.16 dependency? please help, Shymon -- View this message in context: http://www.nabble.com/T-5.0.16---maven-repository-tp20599623p20599623.html Sent from the Tapestry - User mailing list

Re: Tapestry 5.0.16 (Release Candidate) now available

2008-11-19 Thread shymon
Forgive me my question but I'm not very familiar with maven stuff: How can I get 5.0.16 from maven repository? I have updated Central Repository index and still nothing. 5.0.15 is the newest version I can find. I also have 'Include snapshots' option turned on. (netbeans plugin)

Re: Component with recurrent markup

2008-11-15 Thread shymon
How can I create ActionLink dynamically in component class? Especially, how can I add zone attribute? addParameter() method of Link is not what I want. And how can I write this link through Writer? When I use Writer I'm not able to write Tapestry components like ActionLink. When I use template, I

Re: Component with recurrent markup

2008-11-14 Thread shymon
Thiago H. de Paula Figueiredo wrote: > > Use a MarkupWriter instead: > > @BeginRender > public void render(MarkupWriter writer) { > // read the MarkupWriter section in > http://tapestry.apache.org/tapestry5/guide/dom.html. > } > But can I use @BeginRender if i use template? And i h

Component with recurrent markup

2008-11-14 Thread shymon
I want to create an ajax component: kind of tree which shows current node and all its parent and child nodes (but only for current node - nodes which are not relatives of current are not visible). Component consists of zone which is reloaded after user clicks on any of visible nodes. Component t

Re: How do you initialize contents of a Zone when the page is loaded?

2008-11-14 Thread shymon
Your action link event handler probably returns Block. So you can use delegate component: ... shymon -- View this message in context: http://www.nabble.com/How-do-you-initialize-contents-of-a-Zone-when-the-page-is-loaded--tp20494166p20497787.html Sent from the Tapestry - User

Re: Form elements in Zones

2008-11-12 Thread shymon
Thiago H. de Paula Figueiredo wrote: > > >> Of course, I was not precise. >> The problem is that I can't place form in zone. Only one form element >> should be ajax reloaded - not whole form. > > If there's not a JIRA filed for it, we should file one, because this > limitation can be quit

Re: Form elements in Zones

2008-11-12 Thread shymon
Thiago H. de Paula Figueiredo wrote: > > >> If form elements are not allowed in zones, what is the solution? > > This is not strictly true. Form elements are allowed in zones as long as > they're inside a form that is completely enclosed in a Zone. > > Of course, I was not precise. The p

Form elements in Zones

2008-11-12 Thread shymon
I have written an ajax component: kind of tree which shows current node and all its parent ind child nodes (but only for current node - nodes which are not relatives of current are not visible). Component consists of zone which is reloaded after user clicks on any of visible nodes. I want this co

Re: T5: Multiple handlers for one event - calling order

2008-10-30 Thread shymon
Thiago H. de Paula Figueiredo wrote: > > > You're welcome again! > > Is it just me or this message list has been having an increase in new > members? This is very good news, IMHO. :) > > I'm totally new member so this._messageListUsers++; ;) After about two years of dealing with serv

Re: T5: Multiple handlers for one event - calling order

2008-10-30 Thread shymon
g/apache/tapestry5/EventContext.html. > > I was just playing with activation context. Finally I replaced all onActivate methods with one taking object array as argument: onActivate(Object[] aParams). But now I will give EventContext a try. Thanks once again :), Shymon -- View this m

Re: T5: Multiple handlers for one event - calling order

2008-10-29 Thread shymon
hmmm, what to say... thanks :) -- View this message in context: http://www.nabble.com/T5%3A-Multiple-handlers-for-one-event---calling-order-tp20239292p20239594.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

T5: Multiple handlers for one event - calling order

2008-10-29 Thread shymon
In comments to http://tapestryjava.blogspot.com/2007/08/handling-direct-urls-in-tapestry-5.html Lewis has written that: > When a single method is overloaded with different parameters, the order of > invocation is fewest parameters to most parameters. > So onActivate() will be invoked before onA

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-27 Thread shymon
akochnev wrote: > > Shymon, >I'm not sure what the solution to your problem is going to be. The > reason > why things worked in the original setup is that when you specify > archiveClasses to false, when the app is deployed in Glassfish, it's > deployed as

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-26 Thread shymon
akochnev wrote: > > Shymon, >I think your issue with the missing jar entry might have to do with how > Maven deploys the war > In the meantime, try switching the archiveClasses option to false (by > default it's true). > > >

Re: String encoding in activation context

2008-10-21 Thread shymon
shymon wrote: > > > ... > [INFO] AppModule.TimingFilter Request time: 1 ms > [INFO] AppModule.TimingFilter Request time: 3 ms > [INFO] AppModule.TimingFilter Request time: 0 ms > > When onPassivate method is called for the first time all characters are > ok, but i

String encoding in activation context

2008-10-20 Thread shymon
. Application source and output encoding is set to UTF-8. thanks in advance for any help. Shymon -- View this message in context: http://www.nabble.com/String-encoding-in-activation-context-tp20075742p20075742.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Grid component and available rows number

2008-10-14 Thread shymon
Andy Huhn-3 wrote: > > Hi Shymon, > > If you don't want the pager to show up at all on the grid component, you > can set > > pagerPosition="none" > > on the grid. This might prevent the row count from being generated at > all. > > Andy

Re: Grid component and available rows number

2008-10-14 Thread shymon
d have to send ALL results through XML-RPC and limit them in prepare method - I don't think it's a good idea... regards, Shymon -- View this message in context: http://www.nabble.com/Grid-component-and-available-rows-number-tp19964529p19968644.html Sent fro

Grid component and available rows number

2008-10-13 Thread shymon
I wanted to use a grid component to display search results. So I tried to define a class which implements GridDataSource interface. Unfortunatelly getAvailableRecords() method is called by T5 before prepare(...) method. This doesn't suit me as I receive total record number with search results onl

BeanEditForm and Date problem

2008-10-10 Thread shymon
I have a bean with property of type java.util.Date. There is also a constructor getting Date value as parameter. When I try to use BeanEditForm with this bean RenderQueueException is thrown saying: ...(for service 'BeanModelSource'): No service implements the interface java.util.Date Another

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-03 Thread shymon
akochnev wrote: > > Shymon, >I know you said you already resolved your issue. However, instead of > using a stock netbeans Web Application project, I would strongly recommend > using the NetBeans Maven support when starting a project; it really makes > the ramp up almo

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-01 Thread shymon
kristian.marinkovic wrote: > > do you have the library in your classpath? > Now it works. I removed only tapestry-hibernate... jars. tapestry-spring-5.0.15.jar also had to be removed. Thanx! -- View this message in context: http://www.nabble.com/Tapestry-5.0.15%2C-NetBeans-6.1-and-Hibernat

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-01 Thread shymon
kristian.marinkovic wrote: > > you have to remove the dependency to tapestry-hibernate > > g, > kris > Didn't help. Now, I added only one dependency to tapestry-core-5.0.15.jar. And the problem remains the same: java.lang.NoClassDefFoundError: org/hibernate/Session ... Caused by: java.lang.

Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-01 Thread shymon
I'm trying to create my first simple application using Tapestry 5.015. My IDE is NetBeans 6.1, and app is deployed to Glassfish v2ur2. I have created web application, added Tapestry to project libraries, configured web.xml, created Start.tml and Start class. But when I deploy app to appserver I