Re: Realize operations on "blur" from a textfield
I have found on Jumpstart Doublenegative a mixin which matches my needs. It's the ZoneUpdater mixin by Inge Solvoll, and it is very easy to setup. Here is the source code of the ZoneUpdater : http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html Here is the demonstration in Jumpstart : http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxonevent If it can be useful to someone else. Thanks for your answers ! - Claude Dubois -- View this message in context: http://old.nabble.com/Realize-operations-on-%22blur%22-from-a-textfield-tp29106396p29115371.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Realize operations on "blur" from a textfield
Hello everybody, I'm developing a Tapestry 5 application, and I would like to add an autocomplete functionality, but not like the one integrated in T5. What I want to do is to search in my database the corresponding name of one part from its number, e.g. to detect the "onblur" action on my textfield to trigger this search. Once the search is over, the part name will appear in the corresponding textfield. Does anyone have any idea of how it is possible to detect "onBlur" like we could do in Javascript? Thank you in advance - Claude Dubois -- View this message in context: http://old.nabble.com/Realize-operations-on-%22blur%22-from-a-textfield-tp29106396p29106396.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5 Validation on Form Submit
Hello, I have continued searching information about my validation problem, and I found a great solution on the forum. It's a script written by Scott Russel, you will find it http://old.nabble.com/Re:-Disabling-onBlur-field-validation-p22179557.html here . It allows you to validate components only when the form is submitted, keeping the error bubbles displayed next to the fields. Maybe it will be useful to someone else. Regards, - Claude Dubois -- View this message in context: http://old.nabble.com/Tapestry-5-Validation-on-Form-Submit-tp28691739p28753624.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry 5 Validation on Form Submit
Hello Guys, I'm developping a Tapestry5 app, and I need to validate some fields on form submit. I am using the @Validate annotation, which do what I want, except that the field is validated on "blur", e.g. when the user focuses on another field. I have many fields on my page, and it's quite unpleasant. Would anyone know how to realize fields validation only when the form is submitted? Thanks - Claude Dubois -- View this message in context: http://old.nabble.com/Tapestry-5-Validation-on-Form-Submit-tp28691739p28691739.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to use a grid with some "null" cells
Thank you, it works very well ! Is it possible to use this syntax in other cases? For example adding a "else"? I tried to add ":" like this : ${user.shop?.shoCode:"No Data"} and it doesn't work. Does someone know a way to do that? Thanks ! Pierce T. Wetter III-3 wrote: > > > On May 11, 2010, at 5:59 AM, Claude Dubois wrote: > > The problem is slightly different then just being a null. The problem is > that shop is null, so user.getShop().getShoCode() throws an exception. So > the problem is that one step removed from the value to be displayed is a > null. > > You can deal with this more easily by using the ?. operator. > > ${user.shop?.shoCode} > > ?. will stop if shop is null. > > Pierce > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > - Claude Dubois -- View this message in context: http://old.nabble.com/How-to-use-a-grid-with-some-%22null%22-cells-tp28521840p28534060.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to use a grid with some "null" cells
You put me on the right way. It still didn'twork using the tag, so I tried to add a . My tml looks like that : ${user.shop.shoCode} Using this method it works well. Thanks for your help Joost Schouten (ml) wrote: > > Hi, > > What problem do you experience (exception/stacktrace)? You should just > see an empty cell if your null value is of a type recognized by the > BeanModel. > > You can override every cell by using this: > > > display whatever you want eg: ${row.yourPropertyName} or > ${computedValueInTheComponent} > > > Hope this helps, > Joost > > - Claude Dubois -- View this message in context: http://old.nabble.com/How-to-use-a-grid-with-some-%22null%22-cells-tp28521840p28523766.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to use a grid with some "null" cells
Hi everybody, I am developping an application on Tapestry 5 with JPA/Hibernate persistence. I am using the grid component, which is very powerful, but I encounter a problem while trying to display some data whose one field contains a "null" value. Does anyone know a solution to make possible to display a row even if one of its fields is null? For example display a default value instead of it? Thanks Claude Dubois ----- Claude Dubois -- View this message in context: http://old.nabble.com/How-to-use-a-grid-with-some-%22null%22-cells-tp28521840p28521840.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Grid / sortable additionnal column
Hello, I am trying to add a sortable column like you, but when I try to implement PropertyConduit, as you explained, it doesn't work, and I have a java.lang.NullPointerException. Could you explain how you implement your class, and what problems you got (if you got someones). Thank you Francois Malet wrote: > > Perfect! > Here is my PropertyConduit implementation > > public class DownloadPropertyConduit implements PropertyConduit { > > public T getAnnotation(Class > annotationClass) { > return null; > } > > /** > * @see org.apache.tapestry5.PropertyConduit#get(java.lang.Object) > */ > public Object get(Object instance) { > Upload upload = (Upload) instance; > return upload.getName(); > } > > @SuppressWarnings("unchecked") > public Class getPropertyType() { > return String.class; > } > > public void set(Object instance, Object value) { > Upload upload = (Upload) instance; > upload.setName((String) value); > } > > > } > -- View this message in context: http://old.nabble.com/Grid---sortable-additionnal-column-tp24288365p28386255.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org