Change property names on class level without renaming the var?

2012-10-14 Thread membersound
Hi, I know I can rename a backend property by creating a *.properties file for a page and use property-label=new name. But if let's say I have a product class with timestamp variable, and want it to be shown everywhere on every page as "creation date". Then I have to create a properties file for

Specify tapestry-specific paths?

2012-10-26 Thread membersound
HI, where can I specify the tapestry specific path, like ApplicationModule.java or in general the folders pages and components. How can I changes these paths? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Specify-tapestry-specific-paths-tp5717310.html Sent from

Table with custom columns?

2012-10-27 Thread membersound
Hi, how can I add custom columns to a t:table component? I mean data that is not a variable in the class that is displayed. Like parameters that are to be calculated based on data found in the object to display. Like: A product has a price and a quantity variable. How could I display an additiona

Placeholders in root template as in jsf?

2012-10-27 Thread membersound
HI, I'm trying to understand how I could do the following: Having a root template, which defines several areas like: header, content, footer. Header and footer may be the same on all pages, so I just define them within the root layout template. The content should be divided in left, right, middle

Call subfolders from t:pagelink?

2012-10-27 Thread membersound
I could not find the following anywhere: I created a components/admin folder with a Admin.java and Admin.tml file. How can I call this subpage from a ? I tried admin/Admin, admin.admin, or just Admin. But neither of them works, the path is always "unable to resolve". How can I call subpages? --

Subtemplates are not found / exception

2012-10-27 Thread membersound
I'm trying to sublayout a admin menu likewise to http://tapestry.apache.org/layout-component.html. But cannot get it to work. Layout.tml with some links and a . SubLayout.tml with t:type="layout" and ...some links Admin.tml with t:type="sublayout" Result: Exception assembling embedded componen

Re: Subtemplates are not found / exception

2012-10-27 Thread membersound
OK quity stilly, but my class adminmenu was actually named "AdminMenu". Did not know T5 is case sensitive there. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Subtemplates-are-not-found-exception-tp5717333p5717335.html Sent from the Tapestry - User mailing list archive

Re: Subtemplates are not found / exception

2012-10-27 Thread membersound
Do I need a private Block element in my layout.java class for /every /delegate component? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Subtemplates-are-not-found-exception-tp5717333p5717336.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Subtemplates are not found / exception

2012-10-27 Thread membersound
So if I don't - why does Tapestry throw an exception if I remove the Block element from the layout class? Probably I really need a block element for every delegate... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Subtemplates-are-not-found-exception-tp5717333p5717340.ht

Inject managed beans?

2012-10-28 Thread membersound
What is the T5 equivalent to the following JSF? @RequestScoped @Named class Person {} class SigninPage { @Inject Person person; } If I try this in tapestry, I'm getting: org.apache.tapestry5.runtime.ComponentEventException Error obtaining injected value for field person: No service implement

Define a method as source for a grid?

2012-10-28 Thread membersound
How can I get the source for a grid from a method, instead of a property? Something like: public class UserPage { @Property User user; List getUsers() { return userService.getUsers(); } } -- View this message in context: http://tap

Re: Define a method as source for a grid?

2012-10-28 Thread membersound
Without a @Property List users? No change: "Failure reading parameter 'source' of component ". And with a list property: "Unable to create new accessor method public java.util.List getUsers() <()Ljava/util/List;> on class UserPage as the method is already implemented." -- View this message in

DAO is always null??

2012-10-28 Thread membersound
I created a DAO and inject it into my UserService. But whenever I access my UserService, the dao is always null! Can someone spot what I might be doing wrong? interface CrudServiceDAO{} class HibernateCrudServiceDAO implements CrudServiceDAO { @Inject Session session; } class AppModule

Re: Define a method as source for a grid?

2012-10-28 Thread membersound
OK sorry your were right. I had some problems in my session injection. You solution works as expected without the need of adding a extra List property. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Define-a-method-as-source-for-a-grid-tp5717349p5717356.html Sent from th

Quick way of showing embedded object properties?

2012-10-28 Thread membersound
HI, is there any quick way of showing embedded object properties within a table grid? Like: class User { @Property String username; @Embedded Address address; } @Embeddable class Address { String firstname, lastname, street, zip, state; } ${user.firstname} ... Is there any quicker way th

Re: Inject managed beans?

2012-10-29 Thread membersound
OK thanks I see. Yes it was not a good example, probably I should rather be injecting a service here. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Inject-managed-beans-tp5717346p5717369.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Quick way of showing embedded object properties?

2012-10-29 Thread membersound
That looks quite nice, but do you know where I could find some tynamo examples on this? I could not find any on the page itself... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Quick-way-of-showing-embedded-object-properties-tp5717357p5717370.html Sent from the Tapestry

Re: Quick way of showing embedded object properties?

2012-10-29 Thread membersound
That looks quite nice, but do you know where I could find some tynamo examples on this? I could not find any on the page itself... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Quick-way-of-showing-embedded-object-properties-tp5717357p5717371.html Sent from the Tapestry

Retain BeanModel when sorting columns?

2012-10-29 Thread membersound
@Property @Persist private BeanModel model; void setupRender() { this.model = beanModelSource.createDisplayModel(User.class, messages); this.model.add("...).sortable(true); } Result: everytime I sort, the db-fetch is triggered. How can I persist the beanmodel data and just sor

Re: Retain BeanModel when sorting columns?

2012-10-29 Thread membersound
OK I see. I'm doing it with BeanModelSource based on this example: http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/gridmodel1 Would you recommend me switching to a GridDataSource in my page class for providing the data instead of a list and a BeanModel? Especially regarding to th

Re: Retain BeanModel when sorting columns?

2012-10-29 Thread membersound
Ok I will stick to this. Anyhow, concerning my latest question: how could I display the size of a list contained in my user object? Because I cannot just add the property to the bean model like "list.size"... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Retain-BeanMod

Render whole table grid row as a link?

2012-10-29 Thread membersound
Hi, is it possible to just make a whole row of a table grid clickable? I know how to apply a t:pagelink to the text of a specific entry. But for this the link is only executed if I click on the text directly. How can I just click somewhere on that row? Or is this ever possible? Thanks -- View

Why is ajaxRenderer needed for zone update?

2012-10-29 Thread membersound
Why do I need a ajaxResponseRenderer within my backing class, when I want to update a zone? Eg: having a table with all users, and when clicking a user I want to update another table which shows the address of the selected user. Now I have to: -create a zone with the address table grid, and place i

Make zones always fade in?

2012-10-29 Thread membersound
Hi, can I make zones to always fade-in? I like the t:update="fade" very much, but with this of course the zone fades out again on every 2nd click. Can I enforce to always fade in? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Make-zones-always-fade-in-tp5717397.html Se

Only update specific table zone on delete of object?

2012-10-30 Thread membersound
I want to delete an object within a table grid, and after that only update the table itself, but not the rest of the page. UserPage.tml: Heading DEL UserPage (excerpt): @InjectComponent Zone outer; onDelete(long id) { dao.delete(id); return outer.getBody

Re: Only update specific table zone on delete of object?

2012-10-30 Thread membersound
I'm not getting this error anymore, though I don't know what is different now. Anyhow, the zone update is not working. Now I'm getting a red tapestry notification which points me to inner zones like: > Could not find zone element 'showRoom' to update on click of element > 'eventlink_4_13ab23fef82'

[Bug] t:zone update loses background style

2012-10-31 Thread membersound
Sometimes if a t:zone is updated, I'm losing any background styling. Firebug then shows: Very strange, is somebody else having this issue? Or moreover: HOW can i prevent this? What do I maybe have to override with css? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble

Re: [Bug] t:zone update loses background style

2012-10-31 Thread membersound
Great!! I did not specify the update attribute. with update="show" the style is not lost anymore! Though I'm unsure if this is a bug or not. Is the behavior expected if update attribute is omitted? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Bug-t-zone-update-loses-b

Re: [Bug] t:zone update loses background style

2012-10-31 Thread membersound
Yes zone.getBody(). And I too use CSS, the style ...background-color is the result that is somehow changed by tapestry in the back, and overwrites my css styles. I did not specify this myself! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Bug-t-zone-update-loses-backgr

BeanModel - how to add results from a method?

2012-11-01 Thread membersound
Hi, when I create a BeanModel, how can I add results eg from a method that is not contained in the Entity-Object with which the BeanModel has been created? Like: Here I create a beanmodel for the class UserProfile. And I want to add a field that gets its content from a method that is placed NOT i

Grid - align all numbers to the right?

2012-11-01 Thread membersound
Hi, is it possible to automatically align all numbers (int, double, BigDecimal) to the right within a row? Standard alignment is to the left which is fine for all strings, but I'd like to have numbers aligned different. Thanks -- View this message in context: http://tapestry.1045711.n5.nabble

Re: Render whole table grid row as a link?

2012-11-01 Thread membersound
Could you provide more input on that? This looks great, but cannot get it working. -where do I have to place the mixin? I placed it into /components. -RowType is the object that is displayed in the grid? Eg onRowClick(UserProfile user)? I implemented it that way, but rowclicks are not recognized

Re: Grid - align all numbers to the right?

2012-11-01 Thread membersound
Ja but then I have to add every myself in the tml files and align them (eg with a custom css text-aligment tag). That's what I hoped to avoid as I create my BeanModel completely in the backing java page class... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-align-

Re: BeanModel - how to add results from a method?

2012-11-01 Thread membersound
Sorry, I think I didn't get it. Lets make an example here: http://tapestry.1045711.n5.nabble.com/BeanModel-how-to-add-results-from-a-method-tp5717499p5717512.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Render whole table grid row as a link?

2012-11-01 Thread membersound
OK i placed it in the mixins package, and /now/ Tapestry complains about missing rowEvent class :( -- View this message in context: http://tapestry.1045711.n5.nabble.com/Render-whole-table-grid-row-as-a-link-tp5717388p5717513.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Render whole table grid row as a link?

2012-11-01 Thread membersound
Close... but: [ERROR] admin.UserProfilePage Render queue error in AfterRender[admin/UserProfilePage:grid]: org.apache.tapestry5.ioc.internal.util.TapestryException org.apache.tapestry5.ioc.internal.util.TapestryException [at classpath:admin/UserProfilePage.tml, line 9] at org.apache.tapest

Re: BeanModel - how to add results from a method?

2012-11-01 Thread membersound
OK got it, thank you very much! > Why not? That would be perfectly good, even recommended, object-oriented Because it was just an example here, I want to apply some calculations for some rows, which should not clutter my entities. And of course itself rely again on other entities, so the calcu

Re: Grid - align all numbers to the right?

2012-11-01 Thread membersound
I think css cannot differ between strings and integers? How could this be possible? I could only use css to align the whole table columns to the right. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-align-all-numbers-to-the-right-tp5717500p5717524.html Sent from the

Must a property of grid row be always directly in backing class?

2012-11-01 Thread membersound
HI, must a t:grid row="object" always be in the backing page java class? Or can I also have something like this: t:grid source="service.objects" row="service.object" class Page{ @Inject @Property private ObjectService service; } class ObjectService { private List objects; private Obje

Re: Grid - align all numbers to the right?

2012-11-01 Thread membersound
Ok that's not perfect but definitely sufficient for now. THanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-align-all-numbers-to-the-right-tp5717500p5717565.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Multiple objects in beaneditform?

2012-11-01 Thread membersound
HI, how can I display multiple objects for one single beaneditform? I mean: with all the fields from several objects displayed with only one submit button at the end. I could only imagine to use t:add="prop1, prop2, prop3" and use object1.prop object2.prop ... But with that I would lose a lot o

Rename a property globally?

2012-11-02 Thread membersound
Hi, is there an option to rename a Entity property globally? Similar to the @NonVisual annotation? Or else: could renaming be specified within the tml file, without having to create a backing model in the page java class? Thanks -- View this message in context: http://tapestry.1045711.n5.nab

Re: Rename a property globally?

2012-11-02 Thread membersound
Yes as stated above I know I can do this. I just wanted to know if there are possibilities for annotations or direct renaming in tml files. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Rename-a-property-globally-tp5717595p5717597.html Sent from the Tapestry - User mail

Grid display several implementations of an object?

2012-11-04 Thread membersound
Can a list for a t:grid contain several implementations of an object? I just want to make sure the following is in general possible? class Fruit; class Apple extends Fruit class Banana extends Fruit class Page { List fruits; Foo fruit; } Result atm: Render queue error in Begin

Re: Grid display several implementations of an object?

2012-11-04 Thread membersound
Ok, but as I already have another BeanModel for another entity within the same page, it seems as if I cannot create additional beanmodels like: @Inject @Property private BeanModel userModel; @Inject @Property private BeanModel orderModel; void setupRender() {

Re: Grid display several implementations of an object?

2012-11-04 Thread membersound
Ok even though I provide an BeanModel now, still having issues with this: On one page, I display a t:grid list of Users, and if I click on one of the users I display an additional t:grid below. I make use of 2 different BeanModels here which works fine now. BUT when I come from another page by a

onPrepare from grid?

2012-11-04 Thread membersound
Hi, can I specify a onPrepareFromGrid() method somehow? I tried onPrepareFromMygrid() { sysout("never gets called"); } Can't I assign a onPrepare method only to a specific grid? -- View this message in context: http://tapestry.1045711.n5.nabble.com/onPrepare-from-grid-tp5717639.html Sen

Testing of classes with injected resources?

2012-11-05 Thread membersound
Hi, how can I JUnit test a class within a Tapestry application? I mean: a class where I make eg use of tapestry service bindings and @Inject my own services there. In the docs I just found how to test components and pages, but I want to directly test against my business classes... Thanks -- Vi

Quick coloring for grid rows text?

2012-11-05 Thread membersound
Hi, how can I apply simple coloring for a grid row text? Let's say an amount that should be green (+) or red (-)? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Quick-coloring-for-grid-rows-text-tp5717652.html Sent from the Tapestry - User mailing list archive a

Re: Quick coloring for grid rows text?

2012-11-05 Thread membersound
Ok but this would apply coloring to the whole row. I'd just like to color a the specific output text of the property amount, but not the whole row neither other values. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Quick-coloring-for-grid-rows-text-tp5717652p5717661.ht

Re: Quick coloring for grid rows text?

2012-11-05 Thread membersound
Ok cool I see. Is it further possible to apply some "custom renderer" to an amount class, let's say add a (-) in front of all negative values? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Quick-coloring-for-grid-rows-text-tp5717652p5717664.html Sent from the Tapestry

Show and hide fields based on boolean dynamic property?

2012-11-05 Thread membersound
Hi, how can I show and hide files of a based on a boolean variable within the object that is displayed? class Car { boolean flag; String name; } How can I tell Tapestry to only display the name is flag is marked. And if I uncheck the checkbox in beanEditor, I want the name to disappear.

Re: Quick coloring for grid rows text?

2012-11-05 Thread membersound
Are you talking about thinks like ? That's what I meant, just omited the p-tags. Or are there other "viewing blocks" of what you mentioned? (http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/BeanEditForm.html) -- View this message in context: http://tapestry.1

Re: onPrepare from grid?

2012-11-05 Thread membersound
setupRender is invoked for the whole page. I have 2 different grids (and thus 2 different models) to be displayed at once on a single page. And therefore would like to catch from which table the "refresh" comes (on..FromTable or so). -- View this message in context: http://tapestry.1045711.n5.n

Re: Show and hide fields based on boolean dynamic property?

2012-11-06 Thread membersound
What do I need the beanmodel for? I mean, the boolean checkbox is already displayed, as well as the property that I want to hide by checking the box. Both fields are in the same object. Can I apply conditions somehow on a object?? Is there any example that I did not find yet? At the moment I coul

T5 jQuery - how to integrate?

2012-11-06 Thread membersound
How do I include http://tapestry5-jquery.com/ into my application? added this to pom: org.got5 tapestry5-jquery 3.3.3 But when I add an example form to one of my pages: I get an ex: Caused by: org.apache.tapestry5.ioc.

jQuery submit button for beaneditform?

2012-11-06 Thread membersound
Can I make use of Tapestry jQuery module within a t:beaneditform? Eg that the button is styled according to the jquery mixing? Or do I explicitly have to specify the button together with the mixin? I only could get it to work by the latter example. But is there some "out of the box" chance

Re: jQuery submit button for beaneditform?

2012-11-06 Thread membersound
Ok, does this mean I have to place /every/ property of the object in it's own ? Because jQuery renders http://tapestry.1045711.n5.nabble.com/jQuery-submit-button-for-beaneditform-tp5717703p5717706.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

t-error-icon align before error message but after inputfield?

2012-11-06 Thread membersound
Hi, how can I align the .t-error-icon as follows: [ ] X .t-error-icon { float: left; //aligns before input field float: none; //aligns after error message } How can I place it in between? -- View this message in context: http://tapestry.1045711.n5.nabble.com/t-error-icon-align

Re: Testing of classes with injected resources?

2012-11-06 Thread membersound
Taha Hafeez wrote > registry = builder.build(); Gives exception: java.lang.IllegalArgumentException: Contribution AppModule.contributeRequestHandler(OrderedConfiguration, RequestFilter) (at AppModule.java:172) is for service 'RequestHandler', which does not exist. at org.apache.tape

jQuery bind example does not work?

2012-11-06 Thread membersound
Hi, did anyone ever try the http://tapestry5-jquery.com/mixins/docsbind example? Especially, how do I use bind.event and bind.eventType? The example is very bad, maybe someone has experience in this? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-ex

Configurable scheduled jobs?

2012-11-07 Thread membersound
Hi, I'd like to create some configurable job. It should basically run between certain hours of the day, so CRON should be the way to go. I also found an example for this: public class AppModule { @Startup public static void scheduleJobs( PeriodicExecutor executor,

Re: jQuery bind example does not work?

2012-11-07 Thread membersound
Ok but what do I have to set the class parameter? I want to create a got5-jquery checkbox with a value change event in the backing. How would I have to change the following to make it work? Thanks alot -- View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-examp

Highlight grid header after sorting?

2012-11-08 Thread membersound
Hi, does Tapestry provide some highlighting of the header column after that the current sorting is applied? I know the icon changes accodingly, but I want to give the specific headline an additional different color. Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.co

Re: Highlight grid header after sorting?

2012-11-08 Thread membersound
Found it out! Just for reference if someone needs it too some time: sorted column headline: th.t-sort-column-ascending, th.t-sort-column-descending { font-style: italic; background-color: red; } sorted column content: td.t-sort-column-ascending, td.t-sort-column-descending { font-styl

Shorten CSS selector styles for table grid?

2012-11-09 Thread membersound
I want to style serveral grid columns differently. How can I shorten these expressions? I always need the prefix "table.t-data-grid thead tr th.", followed by the specific property. Can't I just specify that prefix and after list all property classes that shoud be matched? Or do I always have to wr

Re: Shorten CSS selector styles for table grid?

2012-11-09 Thread membersound
OK I thought it where a T5 question as T somehow forces us to use those selector statements by the way the framework is build. So I thought I'd get answers on this more quickly here... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Shorten-CSS-selector-styles-for-table-g

Re: onPrepare from grid?

2012-11-09 Thread membersound
Charlouze wrote > Same for me, my need was to have a specific prepare action for my grid to > display on ajax request. There is an "inPlaceUpdate" event called when > page > changes but the grid rendering process is done before calling this event > in > my component. I think it's because of the gri

Re: onPrepare from grid?

2012-11-09 Thread membersound
OK you're right, the method is triggered without the annotation. BUT: it is only triggered when the form is shown. There is nothing happening if I check/uncheck the checkbox. Just initial on form rendering. Is something else wrong? -- View this message in context: http://tapestry.1045711.n5.na

Re: onPrepare from grid?

2012-11-09 Thread membersound
Yes I know and it does what it is for. But I thought I could also make a quick adaption for checkbox... -- View this message in context: http://tapestry.1045711.n5.nabble.com/onPrepare-from-grid-tp5717639p5717871.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Negate a triggerfragment?

2012-11-09 Thread membersound
Hi, how can I negate a triggerfragment? So that it only shows up if checkbox is /un/checked? Especially: why does the following not work? It initially does not show the fragment (as default value of object.bool = true). But if I uncheck the checkbox, it does not trigger the fragment. BUT if I t

Re: Render whole table grid row as a link?

2012-11-09 Thread membersound
Hmm I'm still stuck with a NPE @ List children = tbody.getChildren(); Which means tbody is null. But why? org.apache.tapestry5.internal.services.RenderQueueException Render queue error in AfterRender[admin/Page:mygrid]: org.apache.tapestry5.ioc.internal.util.TapestryException java.lang.NullPointe

Trigger multiple fragments from one event?

2012-11-09 Thread membersound
Can I somehow trigger to formfragments with one component? My goal is to swap two fragments on a checkbox click, where one is initially shown, and on checkbox click it is hidden an another one is shown. But as I cannot assign the same t:id to two fragments, how can I trigger two fragment-id's at

Re: Negate a triggerfragment?

2012-11-10 Thread membersound
Well the invert works in general. BUT though the inverted fragment /is /visible on first rendering with uncheck box! If I then check>uncheck the box one time, it disappears for unchecked as expected. But this it not the case for the initial render! -- View this message in context: http://tapest

Re: Trigger multiple fragments from one event?

2012-11-10 Thread membersound
Thanks for your hints. I do not know how to parse an array. But I found I workaround: I just took the TriggerFragment source, renamed the class and the ClientElement within, and now can apply a 2nd t:mixins="triggerfragment, mycustomtriggerfragment" fragment="firstFrag" customfrag="secondFrag".

[BUG] invert variable of TriggerFragment is always FALSE!

2012-11-10 Thread membersound
I just used the TriggerFragment source of 5.3.6 to create my own TriggerFragment. But I discovered that without changing anything apart from the classname, the invert attribute is always false! Even though it is set for the fragment by invert="true". See following example: public class MyTrigg

What is @ApplicationScoped for tapestry?

2012-11-16 Thread membersound
Hi, how can I make an @ApplicationScoped within tapestry? Is there any pendant to share the same data within one single class across the application in T5? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/What-is-ApplicationScoped-for-tapestry-tp5718048.html Sent

Re: What is @ApplicationScoped for tapestry?

2012-11-16 Thread membersound
This shares a variable between multiple pages. BUT I'm looking for some kind of "data-pool" service. So I want to annotate the service and it should contain the same data among ALL sessions. -- View this message in context: http://tapestry.1045711.n5.nabble.com/What-is-ApplicationScoped-for-tap

Re: What is @ApplicationScoped for tapestry?

2012-11-16 Thread membersound
That's very keen, ty! And again one more point why I hate having to use plain JSF at work ;) -- View this message in context: http://tapestry.1045711.n5.nabble.com/What-is-ApplicationScoped-for-tapestry-tp5718048p5718053.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

How to reuse a form?

2012-11-21 Thread membersound
Hi, I have a form that I want to reuse for another action of a page. Q1) How can I define a t:form and just reuse the exact definitions without having to copy/paste the whole form all the time? Q2) How can I place an additional field (I require a dropdown t:select) into that form? Without having t

Re: Problem with checkboxes in dynamic tables

2012-11-21 Thread membersound
If you define the checkbox yourself, try adding this: public class PrepareEvent { @Parameter private Object[] context; @Inject private ComponentResources componentResources; void setupRender() { componentResources.triggerEvent("prepare", context, null); } } On

Re: How to reuse a form?

2012-11-22 Thread membersound
So am I doing it this way? Is this the proper way of using blocks for my need in Q2? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-reuse-a-form-tp5718166p5718187.html Sent from the Tapestry - User mailing list archive at Nabble.com.

How to pass the object itself by eventlink?

2012-11-23 Thread membersound
How can I just pass the object of an eventlink within a table row? The following does not work, I don't understand why: Create Object class MyPage { @Property Object object; @Property List objects; public void onCreateObject(Object object) { object.getXX(); }

How to detect if input field loses focus?

2012-11-24 Thread membersound
HI, I know I can catch client events like t:clientEvent="keyup". But how can I detect if the focus of an input field is lost (eg by TAB or just by clicking into another input field)? Thanks for any hints -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-detect-if-i

Re: How to detect if input field loses focus?

2012-11-24 Thread membersound
I thought this would be a clear question. Ok, example: Instead of "keyup" I'm looking for some event that is triggered whenever the user leaves the textfield (either but hitting TAB or clicking into another field). -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-t

Re: How to detect if input field loses focus?

2012-11-24 Thread membersound
Thanks, ok then let my question tapestry-related: Is is possible to attach some kind of "listener" to a @Property String variable? So that whenever the property is changed by interface, the listener detects it and comes in? I've done this with JSF sometimes, is it also possible in T without JS?

Re: How to detect if input field loses focus?

2012-11-24 Thread membersound
Thanks, ok then let my question tapestry-related: Is is possible to attach some kind of "listener" to a @Property String variable? So that whenever the property is changed by interface, the listener detects it and comes in? I've done this with JSF sometimes, is it also possible in T without JS?

Re: jQuery bind example does not work?

2012-11-24 Thread membersound
I had a look into this again, and still cannot get it to work, although it seems straight forward: .tml: .java: public onClick() { System.out.println("works"); //this never gets called! } Why is this not working?? -- View this message in context: http://tapestry.1045711.n5.nabble.com/jQ

Re: jQuery bind example does not work?

2012-11-24 Thread membersound
Damn. That's strange as the rest of my T5 application works just fine... Did you try it in a clean project and could provide the working sample? -- View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712p5718237.html Sent from the Tapestr

Re: jQuery bind example does not work?

2012-11-24 Thread membersound
OK thanks, at least I'm glad that I now have a working example for jquery bind. -- View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-bind-example-does-not-work-tp5717712p5718239.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Read value of a textfield from serverside without submit?

2012-11-24 Thread membersound
Hi, I want to read a value from a textfield that is inside a form, but has not been submitted. Who can I extract the unsubmitted value from serverside using java-code (not js)? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Read-value-of-a-textfield-from-servers

Re: Read value of a textfield from serverside without submit?

2012-11-24 Thread membersound
OK I see. What I want to do: the user should enter some values in a textfield, and if he goes to the next field a backing method is invoked. This is done by using t:mixins="jquery/bind" t:event="theEvent". Now within the onTheEvent() method I want to have the value that the user just entered in t

Re: Read value of a textfield from serverside without submit?

2012-11-24 Thread membersound
Sorry for hiding information. But my question still does not only apply to T-jquery, but Tapestry in general. I could for example create a form and a link that says "fetch the value from specific input field" without submitting the form. The link would be bound to any backing method, and within t

Include the same t:block multiple times?

2012-11-24 Thread membersound
Hi, I have a t:block element which I want to be displayed 2 times. Inside is a zone that if updated should update in BOTH locations. Problem is: whenever I update the zone, only the first delegate gets updated. The second stays on the old value. Can't I use a block multiple times? How can I

Re: How to detect if input field loses focus?

2012-11-24 Thread membersound
Thanks, that's nice. I also just found the ajax OnEvent example very useful. Just changed the keyup event to "blur" and voila, that's exactly what I needed. (http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/onevent) -- View this message in context: http://tapestry.1045711.n5.nabb

Divide a page into smaller pieces?

2012-11-25 Thread membersound
HI, is it possible to divide a page into smaller pages as combine them as one page? I have a single page which has to display 3 different grids and other things. The backing code is almost 500 lines and still growing, tml about 200. Can I divide the codes for one page somehow into smaller pieces

Restrict fractions in a textfield?

2012-11-25 Thread membersound
Hi, can I restrict the input format on a input textfield? I don't mean things like custom validations. I mean eg restricting a number input to only be possible with 2 fractions, like "50.10" $ and not "50.101"? Is that possible to force the input format in such a way? Thansk -- View this messa

JS does not work within t:block?

2012-11-25 Thread membersound
Hi, I'm just trying to integrate JS script which formats decimal numbers as follows: (from: http://www.decorplanit.com/plugin/) // input tag for the above Which works fine as long as I do not place the inputtext within a element! The script is not applied to the field if it is placed in

Add icon to a t:submit

2012-11-27 Thread membersound
Hi, I want to add icons to my buttons. For a link I do it like <${context:layout/icon.png}> But how can I apply this to a ? How to I get the icon into the value field? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Add-icon-to-a-t-submit-tp5718324.html Sent from the

How to execute a method automatically after deployment?

2012-11-28 Thread membersound
Hi, how can I execute a method automatically after the whole application is loaded an up running? I don't mean static blocks to initialize something. I mean just executing a method as it would be called after application deployed. With all injected services working and so on. Can Tapestry do this

  1   2   >