Re: Tapestry Service Cache and Ioko-Cache conflict

2011-04-05 Thread Yury Luneff
> Hello again! > I have noticed there is a conflict with adding both the > tapestry-service-cache and the ioko cache to a Tapestry project. > The reason is different ehcache versions > Is there any way to "marry" those 2 projects, also to avoid conflicts in the > future? just a guess -- ex

Re: Writing a commandline script that uses IOC+Hibernate

2011-03-28 Thread Yury Luneff
> hello everyone! > i am trying to write a script that will use tapestry-hibernate to > will do some database processing tasks from a command line. It also needs to > access IOC Services: > public static void main(String[] args) { > RegistryBuilder builder = new RegistryBuilder(

hibernatesessionmanager produces redundant exception

2010-11-29 Thread Yury Luneff
Greetings. I made a simple example playing with hibernate spatial / etc. I have following event handler on my page (tapestry 5.1.0.5): public void onClick() { Stop stop = new Stop(); WKTReader fromText = new WKTReader(); Geometry poly = null; Transaction tx = null

Re: T5.1 Setters returning value

2010-04-21 Thread Yury Luneff
> Tapestry follows the definition of JavaBeans properties, set by Sun, isn't "isSmth" and "setSmth" a standard for boolean properties? well, tapestry seeks "setSmth" disregarding the type. Maybe, it is an old holywar topic, but it still bothers me sometime as getter/setter generation in IDEA re

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
> i've done something like this once (outside tapestry) using cookies to store > the selections (which were basically the entity ids) - then added some js > to make each checkbox checked if needed. > This keeps each page's selections fine. > Additionally, as soon as a page's checkboxes are all ch

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
> i guess i just need a persisted property on the page of default > selection value and use it in "get" property for checkbox value. And > change this property from action link or smth. A page reload, but it > seem to be right thing. It is almost ok, but when grid switches pages, noone on serve

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
> i've meant not quite that, but it is close. The topic is "select all > button" -- select all once, then user deselects uninteresting rows. > For ex, there maybe 50 rows on two pages and user may want not to have > just 2 or 3 of them in the report. So he presses "select all", all of > 50 recor

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
> On Thu, 15 Apr 2010 10:55:20 -0300, Yury Luneff wrote: >> I have rows i'd like to see in my report. Most probably, I would like >> to select them all, but perhaps I just need to drop out some >> uninteresting records (such as guys that already had their payment or

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
Actually use case is something like that: I have rows i'd like to see in my report. Most probably, I would like to select them all, but perhaps I just need to drop out some uninteresting records (such as guys that already had their payment or so). So that user would decide if he needs that reco

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
i'll see if ioko-tapestry-commons/tapestry-mixins/ BoundCheckBox helps :) Other ideas are in great welcome. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.ap

Re: multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
> Maybe the info is in this list, but I seem to be blind to that. > I want to make a grid of entities with checkbox column. That's easy -- > jumpstart proposes "set..." that is called for each row so I could see > what rows are selected. > But I want also something to select all rows in a grid an

multipage grid with "select all" button

2010-04-15 Thread Yury Luneff
Maybe the info is in this list, but I seem to be blind to that. I want to make a grid of entities with checkbox column. That's easy -- jumpstart proposes "set..." that is called for each row so I could see what rows are selected. But I want also something to select all rows in a grid and select

Re: exception page debug

2010-03-15 Thread Yury Luneff
> On Mar 15, 2010, at 2:10 PM, Yury Luneff wrote: >>> Hi, >> >>> Have you overrided the ExceptionReport or even >>> ExceptionRequestHandler ? >> >>> Regards, >>> Christophe Cordenier. >> >> in s

Re: exception page debug

2010-03-15 Thread Yury Luneff
> Perhaps you have injected a service before the exception handler/filter? > -- > Robert Hailey i guess, i have solved the issue ;) the problem was in custom logic i've added to stock timingFilter! So I am happy again, thanks to everyone! :-D -

Re: exception page debug

2010-03-15 Thread Yury Luneff
> Hi, > Have you overrided the ExceptionReport or even ExceptionRequestHandler ? > Regards, > Christophe Cordenier. in security module from tapestry5.localhost.nu ()there is: @InjectService("SpringSecurityExceptionFilter") final SpringSecurityExceptionTranslationFilter springSecurit

exception page debug

2010-03-15 Thread Yury Luneff
I have already raised this question some time ago, but we still did not overcome our situation. It is frequent in our project that when a exception page should be shown, we have completely null response (no data at all). And often even no log messages in log4j with stacktrace. At a glance, I'v

Re: exceptions sometimes are omitted completely

2010-02-19 Thread Yury Luneff
> maybe some kind of service catches all of your > Exceptions maybe a Tapestry filter or dispatcher? > obviously RuntimeExceptions make it through we have spring-security here and Timing filter from default tapestry app. > we also have a large T5 application and never > experienced your pro

Re: exceptions sometimes are omitted completely

2010-02-19 Thread Yury Luneff
right now i have exception stacktrace in log, but none on page: Caused by: java.lang.RuntimeException: Bean editor model for does not contain a property named 'route'. Available properties: carmodel, drivername, endDate, mileage, passengersInsideVehicle, passengersTransported, registrationnum

Re: exceptions sometimes are omitted completely

2010-02-19 Thread Yury Luneff
> configuration.add(SymbolConstants.PRODUCTION_MODE, "false"); so it is definetely not production mode. Actually, code posting here is difficult -- the project is large. As for now I can tell about some problems. I had with model of string like "00:00,00:30,..." for all the day. The bi

exceptions sometimes are omitted completely

2010-02-18 Thread Yury Luneff
Hello! I'm fighting with my app for features now. There is a problem about valueencoders and such and i guess this problem should report as any kind of exception - either the beautiful one done by tapestry or at least stacktrace in log window. But tapestry chooses neither. Just empty page

Re: what is classpath of running tapestry application?

2010-02-10 Thread Yury Luneff
it seemed i did not actually overcome font problem in ireport standalone so happy night hacking russian fonts in the world in fully internationalized java apps ;( - To unsubscribe, e-mail: users-unsubscr...@tapestry.apa

what is classpath of running tapestry application?

2010-02-10 Thread Yury Luneff
I'm trying to have jasperreports integrated in my application and the thing is that I must point out the font file for jasperreports to render cyrillic. I do this by: The main attribute is, of cource, "pdfFontName". In standalone jasper generator iReport everything works fine as "a

Re: nested jsonobjects/arrays

2010-01-07 Thread Yury Luneff
wrong JSONArray :) sorry :) - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: nested jsonobjects/arrays

2010-01-07 Thread Yury Luneff
tes.put(jsonRoutePoints); } return jsonRoutes.toString(); } > jsonRoutePoints.put(jsonPoint) > 2010/1/7 Yury Luneff : >> Hello! >> >> I have following code: >> public String getRoutes() { >>        List routes = routeDAO.findAll(); >>        JSONArray jso

nested jsonobjects/arrays

2010-01-07 Thread Yury Luneff
Hello! I have following code: public String getRoutes() { List routes = routeDAO.findAll(); JSONArray jsonRoutes = new JSONArray(); for (Route route : routes) { JSONArray jsonRoutePoints = new JSONArray(); for (RoutePoint point : route.getPoints())

Re: testify forcomponents problem

2009-12-19 Thread Yury Luneff
ok, that's a bit of great clarification :) but here is what i'm having now: public class SmokeTest extends ServTest { @ForComponents public HttpServletRequest request; @Override protected void doSetUp() { request = createNiceMock(HttpServletRequest.class); expect(reque

testify forcomponents problem

2009-12-17 Thread Yury Luneff
hello! I'm experiencing a sort of difficulty coping with testify. I have the following: public class ServTest extends TapestryTest { private static final TapestryTester SHARED_TESTER = new TapestryTester("serv", "app", "src/main/webapp"); public ServTest() { super(SHARED_TESTER

Re[5]: page & components activation contexts

2009-05-18 Thread Yury Luneff
ent link which has none of these parameters in the context > and add them manually on the client side according to the logic of my > code and js event handling. >> Link el = componentResources.createEventLink("getchildren", new Object[] { >> param1,param2 }); &g

Re[4]: page & components activation contexts

2009-05-14 Thread Yury Luneff
he client side according to the logic of my code and js event handling. > Link el = componentResources.createEventLink("getchildren", new Object[] { > param1,param2 }); > param 1 and 2 should be wired to the relevant component parameters of course. > Peter > - Ori

Re[4]: Zone and loop problem

2009-05-14 Thread Yury Luneff
thank you for the great tip :) > This is possible, isn't it? > > @InjectComponent > private Zone myZone; > public String getCurrentZoneId() { > return "somethingUnique"; > } > myZone will be treated like a normal component id by tapestry, and makes it > possible to inject the zone in the clas

Re[2]: page & components activation contexts

2009-05-14 Thread Yury Luneff
; Hi Yury, > Please post some code, it will be easier to guide you. > Peter > - Original Message - > From: "Yury Luneff" > To: users@tapestry.apache.org > Sent: Wednesday, 13 May, 2009 18:59:20 GMT +02:00 Athens, Beirut, Bucharest, > Istanbul > Subject: page &

Re[2]: Zone and loop problem

2009-05-14 Thread Yury Luneff
I use something like: > > t:id="commentRating${comment.id}">${comment.rating} > And if I do it, how can I inject it into my page? > Yury Luneff-2 wrote: >> >> i guess you should make different id's for all the zones you create >> dynamically.

Re: Zone and loop problem

2009-05-13 Thread Yury Luneff
i guess you should make different id's for all the zones you create dynamically. > Hello, > This is my simple example code, > tml: > > ${comment.rating} > t:zone="commentRating">+ > t:zone="commentRating">- > > java: > @InjectComponent > private Zone commentRating; > public Object onA

page & components activation contexts

2009-05-13 Thread Yury Luneff
Hello, users. Is there a way to separate activation contexts for page and its components? I wrote a component that uses AJAX to interact from client side. Render part of the component creates links for callbacks using ComponentResources. And callbacks are method with fixed number of arguments (2

combobox cascade

2009-04-25 Thread Yury Luneff
Hello, users. I need to write a component for tapestry 5.0.18. The idea is simple: data is organized in a tree and tree is represented by cascade of comboboxes. When the page is first loaded, component draws a combobox (select) with options that represent roots of that forest, then when the one

who decides which control gets focus?

2009-04-18 Thread Yury Luneff
Hello, users. When the page is rendered, it has "$('control_id').activate();" in the JS part of the page. How do I manually decide which control gets focus? As for now tapestry seem to choose control that is first on page. -- Best regards, Yury

Re[3]: doing post request to a tapestry page

2009-02-27 Thread Yury Luneff
>> Yuri, >>instead of using the /FIleReceiver URL, do construct a URL by using >> component resources in your page, e.g. >> FileReceiver...: >> public String getUploadUrl() { >> return >> componentResources.createEventLink("fileUploaded").toAbsoluteURI(); >> } >> in your page tem

Re[2]: doing post request to a tapestry page

2009-02-27 Thread Yury Luneff
> Yuri, >instead of using the /FIleReceiver URL, do construct a URL by using > component resources in your page, e.g. > FileReceiver...: > public String getUploadUrl() { > return > componentResources.createEventLink("fileUploaded").toAbsoluteURI(); > } > in your page template, us

doing post request to a tapestry page

2009-02-27 Thread Yury Luneff
Hello, users. I'm trying to link a java applet to jetty/tapestry. I need to pass data through POST request. I'm doing it like this: URL url = new URL("http://localhost:8080/FileReceiver";); System.out.println(url.toString()); HttpURLConnection connection = (Http

Re[2]: tapestry + maven2 + hibernate + jetty like in tutorial

2009-02-24 Thread Yury Luneff
> Include tapestry-hibernate version 5.0.18 instead of 5.0.5 > Uli thank you. it was eclipse's maven plugin that proposed 5.0.5 as the newest tapestry-hibernate. >> Hello! >> >> I'm trying to run simple straighforward HelloWorld as in >> http://tapestry.apache.org/tapestry5/tutorial1/forms2.htm

tapestry + maven2 + hibernate + jetty like in tutorial

2009-02-24 Thread Yury Luneff
Hello! I'm trying to run simple straighforward HelloWorld as in http://tapestry.apache.org/tapestry5/tutorial1/forms2.html. I created a tapestry project using maven2 archetype. It deploys in jetty without any problem and I can make changes and so on. Although, when I add to pom.xml following: