Re: Some tips... client side

2012-01-22 Thread Lenny Primak
It should work I think. Are you saying that if you remove autocomplete then it 
starts working?
The only time I believe you need JS code is if the DOM is getting modified at 
runtime outside tapestry control. 


On Jan 22, 2012, at 2:51 AM, csckid testnowsh...@gmail.com wrote:

 eventlink cannot read the value of the autocomplete mixin textfield. 
 fNameTf returns null
 
 form t:type=form
Type in a First name:
 input t:id=fNameTf t:type=TextField t:mixins=autocomplete 
 /
  # Add  
 /form
 
 
 @Property
 private String fNameTf;
 
 void onAddToPrescriptionTest(){
System.out.println(\n\n\n + fNameTf + \n\n\n);
 }
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Some-tips-client-side-tp5163718p5163777.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
 

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Some tips... client side

2012-01-22 Thread csckid
Eventlink cannot retrieve the value of a textfield with or without
autocomplete mixin. However, submit button can retrieve the value.



 void onAddToPrescriptionTest(){
 System.out.println(\n\n\n + fNameTf + \n\n\n); //returns null
 } 
 void onSuccess(){
 System.out.println(\n\n\n + fNameTf + \n\n\n); //return
textfield value
 } 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Some-tips-client-side-tp5163718p5163809.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: Some tips... client side

2012-01-22 Thread Thiago H. de Paula Figueiredo

On Sun, 22 Jan 2012 04:32:25 -0200, csckid testnowsh...@gmail.com wrote:

I need to populate a grid using values entered into a autocomplete  
textfield. In order to enter the values into the grid what sort of  
button should I use? Should I use an eventlink, or submit button or  
should I write javascript

code into the page?


Probably using a zone around the grid and a form around the textfield to  
submit the entered value is the easiest way of doing it. You'll need a  
little bit of JavaScript to catch the event of the user stopped typing and  
submitting the form. An EventLink would be harder to do because you'd need  
to change the URL it generates to put the typed text in iti.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Some tips... client side

2012-01-21 Thread csckid
I need to populate a grid using values entered into a autocomplete textfield.
In order to enter the values into the grid what sort of button should I use?
Should I use an eventlink, or submit button or should I write javascript
code into the page? 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Some-tips-client-side-tp5163718p5163718.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: Some tips... client side

2012-01-21 Thread Lenny Primak
Could be an event link to a zone update, form submit or a page redirect to an 
activation context,
take your pick

On Jan 22, 2012, at 1:32 AM, csckid wrote:

 I need to populate a grid using values entered into a autocomplete textfield.
 In order to enter the values into the grid what sort of button should I use?
 Should I use an eventlink, or submit button or should I write javascript
 code into the page? 
 
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Some-tips-client-side-tp5163718p5163718.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
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Some tips... client side

2012-01-21 Thread csckid
eventlink cannot read the value of the autocomplete mixin textfield. 
fNameTf returns null

form t:type=form
Type in a First name:
 input t:id=fNameTf t:type=TextField 
t:mixins=autocomplete /
  # Add  
/form


@Property
private String fNameTf;

 void onAddToPrescriptionTest(){
System.out.println(\n\n\n + fNameTf + \n\n\n);  

}

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Some-tips-client-side-tp5163718p5163777.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