Dear Igor, I am sorry but I couldn't get on the quick start yet. I am having
some troubles with maven (surely because I am a newby).

I am getting at the JavaScript that uses the Autocomplete and I found out
that one problem is that it uses first element from child list of the root
element instead of maybe using name or id properties.

that means that it will work for:
<ul><li>
<p><p>
etc etc.

the function gets the node from the element.firstChild.childNodes[i]; in
other words the menuDivElement.TheULelment.listof_LI_[i];

that is why I cannot put a simple table, because the table would be:

<table>
  <tr>
     <th>Title Header 1</th>
  </tr>
  <tr>
     <td>THIS IS A MENU/List ITEM</td>
  </tr>
</table>

f(t).
pd: if you wish to try it out I've attached the CustomRenderer.java. And
also if you don't want to write any code I've attached the home page html
and java.


   function render(){
       var element= getAutocompleteMenu();
       for(var i=0;i<elementCount;i++){
           var node=element.firstChild.childNodes[i];

           var classNames = node.className.split(" ");
           for (var j=0; j<classNames.length; j++) {
               if (classNames[j] == 'selected') {
                   classNames[j] = '';
               }
           }

           if(selected==i){
               classNames.push('selected');
           }

           node.className = classNames.join(" ");
       }
   }



On 7/13/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
wrote:

Ok I'll do that. Don't know much about maven yeat. I'll work on that also.

f(t)


On 7/13/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> On 7/13/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
> wrote:
> >
> > Here is the quick start. Well is actually a netbeans project without
> > the war and build contents.
> >
> > Is that what you expected? please let me know.
> >
>
> i dont mind that it is a netbeans project, but i do mind that it doesnt
> have a pom so i cannot do mvn eclipse:eclipse and get an eclipse project set
> up quickly.
>
> the idea way to build a quickstart is to use the new maven archetype in
> svn, or checkout wicket-quickstart. once you do that modify it to reproduce
> the testcase. that way all the core devs have to do is import it into
> eclipse with a command and have a running project.
>
> i dont want to spend my time setting up a project manually.
>
> -igor
>
>
>
>
>
>  thanks,
> > f(t)
> >
> >
> > On 7/13/07, Igor Vaynberg < [EMAIL PROTECTED] > wrote:
> > >
> > > why dont you create a quickstart so we can run it real quick and see
> > >
> > >
> > > -igor
> > >
> > >
> > >  On 7/13/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > >  Hi all, I wanted to see if I could add an autocomplete that
> > > > displays a little table (3 columns).
> > > >
> > > > It is a simple locations table that shows a ZIPCODE a Provine/City
> > > > and a Canton/Kanton (CH) field. I already have it working with the 
default
> > > > IAutoCompleteRenderer, that renders an Unordered list:
> > > >
> > > > <ul>
> > > >    <li textvalue="80008032">8032 Neumünster ZH</li>
> > > >     etc...
> > > > </ul>
> > > >
> > > > I tried my own renderer putting a table on the renderHeader
> > > > method. Then the TableRow and TableData elements in the render. And 
finally
> > > > a the end of Table element in the renderFooter method.
> > > >
> > > > This worked fine for look and feel but I lost the selection up and
> > > > down behavior. And also the Click selecting behavior that put the 
innerHtml
> > > > on the textfield as says in the documentation if no textvalue was 
available.
> > > > I put the textvalue on the <tr textvalue="bla"> and also I tried to put 
it
> > > > in the <td> element.
> > > >
> > > > Can some one help me out a bit?
> > > >
> > > >
> > > > Regards,
> > > >
> > > > f(t)
> > > >
> > > >
> > > > 
-------------------------------------------------------------------------
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > >
> > >
> > > -------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

Attachment: CustomRenderer.java
Description: Binary data

Attachment: Home.java
Description: Binary data

AutoComplete Field Test Case

[BasicCalculatorFormLegend]

Attachment: BasePage.java
Description: Binary data

Title: Autocomplete Simple Test
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to