oh and the objects in the ArrayList are Strings , that was something
that wasn't 100% clear to me from the Autocompleter , but I assumed it
needs Strings
On 3/15/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote:
> ELEMENTT has no properties ( in ff )
>
> On 3/15/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > What error message are you getting? (If you do it in FF )
> >
> >
> > On 3/15/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote:
> > >
> > I am trying to get the autocompleter working . I have done preety much
> > the same thing that I have seen in the demo component , and it's not
> > working too great .
> >
> > I can't seem to get the popup to show up . It showed up only once
> > aftetr a server restart and it was huge taking over the whole page .
> >
> > The error that I'm getting is at this line :
> > for (var i = 0; i < element.childNodes.length; i++) { in the
> > cleanWhitespace method of prototype.js ... I wasn't able to track
> > much more about the error .
> >
> > At first I tried it while downloading the code through an ajax
> > response the way I normally try to do , but wasn't successfull at
> > getting it to work . Then I moved it in the acutal .page component of
> > my application ( since i use only one , so basically i moved it where
> > it loads through a normal request ) and that's when it worked ... once
> > . sort off .
> >
> > Here is my code almost just like the demo :
> >
> > jwc :
> > <bean name="delegate"
> > class="org.apache.tapestry.valid.ValidationDelegate"/>
> >
> > <bean name="textValidator" class="
> > org.apache.tapestry.valid.StringValidator">
> > <set name="required" value="true"/>
> > </bean>
> >
> > <component id="autoCompleterFname" type="tacos:Autocompleter" >
> > <binding name="displayName" value="literal:Note" />
> > <binding name="value" value="ognl:fnameValue" />
> > <binding name="listSource" value="ognl:fnameSearchList" />
> > <binding name="listener" value="listener:searchFname" />
> > <binding name="direct" value="ognl:true" />
> > </component>
> >
> > <property name="fnameValue" persist="session" />
> > <property name="lastValue" persist="session" />
> > <property name="fnameSearchList" initial-value="ognl:new
> > java.util.ArrayList()" />
> >
> > .html :
> > <style>
> > div.auto_complete {
> > width: 350px;
> > background: #fff;
> > }
> > div.auto_complete ul {
> > border:1px solid #888;
> > margin:0;
> > padding:0;
> > width:100%;
> > list-style-type:none;
> > }
> > div.auto_complete ul li {
> > margin:0;
> > padding:3px;
> > }
> > div.auto_complete ul li.selected {
> > background-color: #ffb;
> > }
> > div.auto_complete ul strong.highlight {
> > color: #800;
> > margin:0;
> > padding:0;
> > }
> > </style>
> > <div class="note" >
> > <h2>Patient Search</h2>
> >
> > <form jwcid="@tacos:AjaxForm">
> > <span class="auto_complete" jwcid="autoCompleterFname" />
> > <!-- <span class="auto_complete_lname" jwcid="autoCompleterLname" /> -->
> > </form>
> > </div>
> >
> > .java :
> > public void searchFname(String search) {
> >
> >
> > setFnameSearchList(getManager().searchPatientByFName(search
> > ,
> > getLnameValue()));
> >
> > }
> >
> > public abstract ArrayList getFnameSearchList();
> > public abstract void setFnameSearchList(ArrayList values);
> > /** form note value */
> > public abstract String getFnameValue();
> > public abstract String getLnameValue();
> >
> >
> > Any ideeas ?
> > Thanks ,
> > Cosmin
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast
> > and join the prime developer group breaking into this new coding territory!
> > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > _______________________________________________
> > Tacos-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> >
> >
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel