aspose file tools*
The moose likes Struts and the fly likes tiles and <sx:autocompleter> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tiles and <sx:autocompleter>" Watch "tiles and <sx:autocompleter>" New topic
Author

tiles and <sx:autocompleter>

Luis Parente
Ranch Hand

Joined: Jan 17, 2012
Posts: 39
Hello,

I like to make a text field autocomplete <sx:autocompleter>.

I have two examples, one without tiles; and the other using tiles.

without Tiles; I have any problems.

But with tiles (input field) turns into a list of choices and I can not enter text.

Here is the code I have in the two examples:



I think the problem is with tiles .....

I attached the images with effects. Frame 1 shows the error made​​. 2 shows the image rendering <sx:autocomplete> that possibility.

Thank you for all the help you can give me


[Thumbnail for 1.JPG]

[Thumbnail for 2.JPG]

Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

There is not problem with tiles. Post your code how you are doing it.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Luis Parente
Ranch Hand

Joined: Jan 17, 2012
Posts: 39
Before all, I will say you thanks for your reply,


This is my Tiles page:




and my page with <sx:autocompleter>




and I don't know if it's necessary but I put it, this is my tiles file:




Thanks for your help
Luis Parente
Ranch Hand

Joined: Jan 17, 2012
Posts: 39
Hi all,

Well, I have resolved the problem. I have added the following lines:




and now it work perfectly. Well almost.....

Now the problem is that, I have all options in the first line like that:


[option1 option2 option3...... optionN+1]

If I double click I can delete the first line and after that, I can write and the auto complete works well.

But why I have all options in the first line?


Thanks for your help.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tiles and <sx:autocompleter>